.home-overlay-brand {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.home-overlay-brand img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgb(16 22 16 / 75%));
}

.channel-shortcut span { font-size: 12px; line-height: 1.45; }
.channel-shortcut svg { flex: none; width: 25px; height: 25px; }
.channel-shortcuts:not(.hero-channels) .channel-shortcut {
  display: inline-flex;
  justify-content: flex-start;
  gap: 7px;
  width: auto;
  min-height: 44px;
  padding-inline: 8px;
  border-radius: 4px;
}
.hero-channels .channel-shortcut { width: 46px; height: 46px; }
.hero-channels .channel-shortcut span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.desktop-nav [data-rail-link] {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.4;
  padding-block: 5px;
}
.desktop-nav [data-rail-link="meditation"] { font-weight: 700; }
.home-brand-player {
  background: #172623 url("/temple-design/media/brand-film-poster.webp") center / cover no-repeat;
}
.home-brand-player:not([data-ready]) video { opacity: 0; }
.home-brand-play:disabled { cursor: progress; }
.home-service {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(22px, 5vw, 82px);
  align-items: center;
  padding-block: clamp(28px, 5vw, 70px);
  border-top: 1px solid var(--line);
}
.home-service h2 { color: var(--brand-ink); font-size: clamp(29px, 3.45vw, 52px); line-height: 1.28; text-wrap: balance; }
.home-service p { color: var(--muted); margin-top: 12px; max-width: 36ch; }
.home-service figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.home-service-stay figure img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
.home-service-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 12px; }
@media (min-width: 1320px) {
  .rail-bottom .channel-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-bottom .channel-shortcut { padding-inline: 3px; height: auto; gap: 4px; min-width: 0; }
  .rail-bottom .channel-shortcut svg { width: 20px; height: 20px; }
  .rail-bottom .channel-shortcut span { font-size: 11px; word-break: keep-all; }
}
@media (max-width: 640px) {
  .home-service { grid-template-columns: minmax(0, 1fr); }
  .home-service figure { order: 1; }
}

.home-companions-entry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: clamp(6px, 2vh, 19px);
  padding: 4px 11px;
  border-bottom: 1px solid #fffefaab;
  color: #fffefa;
  font-size: 14px;
  text-shadow: 0 1px 7px #121914, 0 1px 2px #121914;
}

.home-companions-entry:hover { border-color: #fffefa; }
.home-companions {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: center;
  gap: clamp(22px, 5.5vw, 88px);
  padding-block: clamp(45px, 7vw, 110px) clamp(30px, 5vw, 70px);
}
.home-companions-copy h2 {
  color: var(--brand-ink);
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 1.26;
  text-wrap: balance;
}
.home-companions-copy .section-label { margin-bottom: 13px; }
.home-companions-copy h2 + p {
  color: var(--muted);
  max-width: 32ch;
  margin-top: 20px;
  font-size: clamp(16px, 1.65vw, 21px);
}
.home-companions-links { display: flex; flex-wrap: wrap; gap: 3px 22px; margin-top: 18px; }
.home-companions-portrait { width: min(100%, 405px); justify-self: center; }
.home-companions-portrait a { display: block; }
.home-companions-portrait img { width: 100%; height: auto; }
.home-companions-portrait figcaption { margin-top: 7px; }

@media (max-width: 640px) {
  .home-companions { grid-template-columns: minmax(0, 1fr); }
  .home-companions-portrait { width: min(86%, 320px); }
  .home-companions-links { margin-top: 12px; }
}
@media (orientation: landscape) and (max-height: 510px) {
  .home-companions-entry { margin-top: 2px; }
}

.home-quick-links > a {
  max-width: 8em;
  text-shadow: 0 1px 6px rgb(15 20 15 / 80%);
}

@media (max-width: 480px) {
  .home-quick-links > [data-home-quick="stay"] { display: none; }
}

.home-quick-links > a > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-preview-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-block-start: 5px;
}

.home-preview-tools:not(:has(:not([hidden]))) {
  display: none;
}

.home-explore {
  padding-block: clamp(52px, 6vw, 88px);
}

.home-explore .home-section-heading {
  margin-block-end: clamp(24px, 3.2vw, 44px);
}

.home-explore-grid {
  gap: clamp(11px, 1.7vw, 25px);
}

.home-tile { aspect-ratio: 1.47; background: #ede9df; }
.home-tile-label small { display: block; margin-top: 4px; font-size: clamp(11px, 1vw, 13px); }

.home-tile[data-home-tile="gallery"] img {
  object-position: center 55%;
}

.home-tile[data-home-tile="practice"] img {
  object-position: center 39%;
}

.home-tile[data-home-tile="stay"] img {
  object-position: center 48%;
}

.home-tile[data-home-tile="dining"] img {
  object-position: center 76%;
}

.home-experience-story:first-child .home-experience-photo {
  aspect-ratio: 1.5;
}

.home-experience-story:nth-child(3) img {
  object-position: center 56%;
}

.home-scene-run a {
  position: relative;
  display: block;
  flex: none;
  width: var(--scene-width);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eeece6;
}

.home-scene-run a img {
  width: 100%;
  height: 100%;
  object-position: var(--scene-position, center);
}

.home-scene-run a span {
  position: absolute;
  inset: auto 9px 9px auto;
  display: grid;
  width: 29px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 65%);
  background: rgb(22 30 23 / 70%);
  color: #fffefa;
  font: 19px/1 var(--font-sans);
}

.home-scene-run a:focus-visible {
  outline-color: #fffefa;
  outline-offset: -5px;
}

@media (hover: hover) {
  .home-scene-gallery[data-ready] .home-scene-window:hover .home-scene-track {
    animation-play-state: paused;
  }
}

.home-scene-window:has(:focus-visible) {
  overflow-x: auto;
}

.home-scene-window:has(:focus-visible) .home-scene-track {
  animation: none;
}

.home-scene-window:has(:focus-visible) [data-scene-copy] {
  display: none;
}

.home-instagram-grid {
  gap: clamp(12px, 1.7vw, 24px);
}

.home-instagram-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ede9df;
}

.home-instagram-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

[data-instagram-post="1"] .home-instagram-thumb img {
  object-position: center bottom;
}

[data-instagram-post="6"] .home-instagram-thumb img {
  object-position: center top;
}

.home-instagram-format {
  position: absolute;
  inset: auto auto 9px 9px;
  padding: 2px 8px;
  background: rgb(22 30 23 / 81%);
  color: #fffefa;
  font-size: 11px;
  white-space: nowrap;
}

.home-instagram-title {
  display: block;
  margin-top: 6px;
  color: var(--green-ink);
  font-size: 13px;
}

@media (max-width: 1319px) {
  body[data-page="home"] .site-header {
    position: fixed;
    inset: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .home-overlay {
    gap: 8px;
    padding-inline: clamp(12px, 4vw, 24px);
  }

  .home-quick-links {
    gap: clamp(7px, 2.5vw, 18px);
  }

  .home-quick-links > a,
  .home-overlay-menu summary {
    font-size: 12px;
  }

  .home-quick-links > a {
    max-width: 5.5em;
  }

  .home-overlay-brand {
    min-width: 39px;
  }

  .home-menu-icon {
    width: 13px;
    margin-inline-start: 5px;
  }

  .home-preview-tools {
    justify-content: center;
  }

  .home-tile { aspect-ratio: 1.27; }

}

@media (max-width: 360px) {
  .home-quick-links > [data-home-quick="explore"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-scene-window {
    overflow-x: auto;
  }

  .home-scene-window [data-scene-copy] {
    display: none;
  }
}
