/* ==========================================================================
   The Ohm — Design Tokens
   Thomas Beach, Uluwatu. Where the jungle meets the ocean.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Color — volcanic night, warm sand, deep reef teal, sunset clay */
  --ink:          #17181A;
  --ink-soft:     #2B2C27;
  --sand:         #F3ECDE;
  --sand-2:       #EAE0C8;
  --paper:        #FBF8F2;
  --teal:         #1F4740;
  --teal-2:       #35625A;
  --teal-tint:    #E5EEEA;
  --clay:         #C1613B;
  --clay-2:       #D97B4F;
  --clay-tint:    #F6E2D3;
  --gold:         #B08A4E;
  --muted:        #74695A;
  --muted-strong: #5C5346;
  --muted-on-dark: rgba(251, 248, 242, 0.64);
  --line:         #DED0AE;
  --line-soft:    rgba(23, 24, 26, 0.08);
  --line-dark:    rgba(251, 248, 242, 0.16);
  --placeholder:  #DCD3BE;

  --color-bg: var(--sand);
  --color-fg: var(--ink);

  /* Type */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --step-xs: 0.78rem;
  --step-sm: 0.95rem;
  --step-base: 1.0625rem;
  --step-md: 1.3rem;
  --step-lg: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem);
  --step-xl: clamp(1.9rem, 1.5rem + 1.8vw, 2.75rem);
  --step-2xl: clamp(2.5rem, 1.3rem + 4.2vw, 4.6rem);
  --step-3xl: clamp(3rem, 0.9rem + 8.5vw, 7.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-36: 9rem;

  --container-max: 1320px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 22px;

  /* Three-layer depth: a tight contact shadow, a soft ambient layer, and a
     wide diffuse falloff — reads as "held above the page" rather than a flat drop-shadow. */
  --shadow-sm: 0 1px 1px rgba(23,24,26,.05), 0 3px 6px -2px rgba(23,24,26,.08);
  --shadow-card: 0 1px 1px rgba(23,24,26,.05), 0 8px 20px -8px rgba(23,24,26,.18), 0 32px 56px -28px rgba(23,24,26,.28);
  --shadow-lift: 0 2px 2px rgba(23,24,26,.06), 0 16px 32px -12px rgba(23,24,26,.24), 0 48px 80px -32px rgba(23,24,26,.38);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 200ms;
  --dur-base: 420ms;
  --dur-slow: 1100ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }

body {
  font-family: var(--font-sans);
  background: radial-gradient(ellipse 120% 60% at 50% -10%, var(--sand-2) 0%, var(--sand) 45%) fixed;
  color: var(--color-fg);
  font-size: var(--step-base);
  font-weight: 400;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  animation: pageIn 0.6s var(--ease-out) both;
  position: relative;
  overflow-x: hidden;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}
button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-16); } }

section { padding-block: var(--space-36); }
@media (max-width: 700px) { section { padding-block: var(--space-20); } }

.section-head { max-width: 680px; margin-bottom: var(--space-20); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--step-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-bottom: var(--space-8);
}
.eyebrow svg { width: 15px; height: 15px; }
.eyebrow--center { justify-content: center; margin-bottom: var(--space-8); }
.eyebrow--on-dark { color: var(--muted-on-dark); }

.section-title { font-size: var(--step-2xl); font-weight: 400; letter-spacing: -0.02em; }
.section-title em { font-style: italic; color: var(--teal); }
.section-title--narrow { max-width: 16ch; }
.section-title--on-dark { color: var(--paper); }

.section-sub {
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: var(--step-md);
  font-weight: 400;
  max-width: 50ch;
  font-family: var(--font-serif);
  font-style: italic;
}
.section-sub--on-dark { color: var(--muted-on-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--step-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-lux),
    box-shadow var(--dur-base) var(--ease-lux);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(23,24,26,.35); }
.btn:active { transform: translateY(0); transition-duration: 80ms; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn-primary { background: var(--ink); color: var(--sand); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }
.btn-primary:hover { background: transparent; color: var(--ink); }

.btn-clay { background: var(--clay); color: var(--sand); border-color: var(--clay); box-shadow: inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-clay:hover { background: transparent; color: var(--clay); box-shadow: 0 14px 28px -14px rgba(193,97,59,.45); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--sand); }

.btn-on-image { border-color: rgba(251, 248, 242, 0.75); color: var(--paper); }
.btn-primary-image { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-primary-image:hover { background: transparent; color: var(--paper); }
.btn-ghost-image:hover { background: rgba(251, 248, 242, 0.14); }

.btn-sm { padding: var(--space-2) var(--space-6); }

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -48px; left: var(--space-6);
  background: var(--ink); color: var(--sand);
  padding: var(--space-3) var(--space-6);
  z-index: 200; border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

/* ==========================================================================
   Photography — real images, cover-fit, soft rounded frames
   ========================================================================== */

.photo {
  position: relative;
  background: var(--placeholder);
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-lux);
}
.photo::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(23, 24, 26, 0.08);
  border-radius: inherit;
  pointer-events: none;
}
.photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s var(--ease-out);
}

/* Photos ease in with a gentle settle-zoom alongside the fade-up reveal.
   Covers both markup patterns: data-reveal on .photo itself, or on an
   ancestor wrapper (room cards, story image, etc). */
.photo[data-reveal] img,
[data-reveal] .photo img { transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
.photo[data-reveal].is-visible img,
[data-reveal].is-visible .photo img { transform: scale(1); }

.photo:hover img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) {
  .photo[data-reveal] img, [data-reveal] .photo img { transform: none; transition: none; }
  .photo:hover img { transform: none; }
}

.photo--portrait { aspect-ratio: 4 / 5; }
.photo--square { aspect-ratio: 1; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo--fill { width: 100%; height: 100%; border-radius: 0; }
.photo--fill::after { border-radius: 0; }

svg[aria-hidden] use { color: inherit; }
.icon { width: 24px; height: 24px; }
.icon-sm { width: 16px; height: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  padding-block: var(--space-6);
  transition: padding var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  /* Transparent over the hero photo by default; --header-fg/--header-border
     flip once .is-scrolled lands, so text stays legible either way. */
  --header-fg: var(--paper);
  --header-fg-soft: rgba(251, 248, 242, 0.72);
  --header-border: rgba(251, 248, 242, 0.22);
  color: var(--header-fg);
}
.site-header.is-scrolled {
  padding-block: var(--space-3);
  border-bottom-color: var(--line-soft);
  --header-fg: var(--ink);
  --header-fg-soft: var(--muted);
  --header-border: var(--line-soft);
}
/* backdrop-filter lives on a pseudo-element, not .site-header itself —
   filter/backdrop-filter on an ancestor creates a containing block for
   position:fixed descendants (like the mobile .nav panel), which breaks it. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(243, 236, 222, 0);
  backdrop-filter: blur(0px);
  transition: background var(--dur-base) var(--ease-out), backdrop-filter var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled::before {
  background: rgba(243, 236, 222, 0.92);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--header-fg); }
.brand__mark { color: var(--header-fg); transition: color var(--dur-base) var(--ease-out); }
.brand__word {
  font-family: var(--font-serif);
  font-size: var(--step-md);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.brand__word span { display: block; font-family: var(--font-sans); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--header-fg-soft); margin-top: 2px; transition: color var(--dur-base) var(--ease-out); }

.nav__list { display: none; }
@media (min-width: 1180px) {
  .nav__list {
    display: flex; gap: var(--space-6);
    font-size: var(--step-xs); letter-spacing: 0.07em; text-transform: uppercase;
    flex-wrap: nowrap;
  }
  .nav__list li { flex-shrink: 0; }
  .nav__list a {
    position: relative; padding-block: var(--space-1);
    white-space: nowrap; color: var(--header-fg);
    transition: color var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
  }
  .nav__list a::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -2px;
    height: 1px; background: var(--clay);
    transition: right var(--dur-base) var(--ease-out);
  }
  .nav__list a:hover::after, .nav__list a:focus-visible::after { right: 0; }
}

.site-header__actions { display: flex; align-items: center; gap: var(--space-4); flex-shrink: 0; }
.header-icons { display: flex; align-items: center; gap: var(--space-3); }
@media (min-width: 1180px) {
  .header-icons { padding-right: var(--space-4); margin-right: var(--space-1); border-right: 1px solid var(--header-border); transition: border-color var(--dur-base) var(--ease-out); }
}
.header-cta { display: none; }
@media (min-width: 1180px) { .header-cta { display: inline-flex; } }

.icon-link {
  color: var(--header-fg); opacity: 0.8; transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-base) var(--ease-out);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
}
.icon-link:hover { opacity: 1; }
.icon-link svg { width: 20px; height: 20px; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; align-items: center;
}
@media (min-width: 1180px) { .nav-toggle { display: none; } }
.nav-toggle__bar { width: 20px; height: 1px; background: var(--header-fg); transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-3px) rotate(-45deg); }
/* Once the mobile panel is open, force dark icon bars — it opens over the
   solid cream panel regardless of header scroll state. */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: var(--ink); }

@media (max-width: 1179px) {
  .nav {
    position: fixed; top: var(--header-h, 88px); right: 0; bottom: 0; left: 0;
    background: var(--sand); opacity: 0; pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out); z-index: 90;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav__list {
    display: flex; flex-direction: column; gap: var(--space-8);
    padding: var(--space-16) var(--space-6); font-size: var(--step-lg); font-family: var(--font-serif);
  }
}

/* ==========================================================================
   Hero — full-bleed photo
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.08); will-change: transform; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(23,24,26,0.8) 0%, rgba(23,24,26,0.38) 46%, rgba(23,24,26,0.12) 76%);
}

.hero__content {
  position: relative; z-index: 1; width: 100%;
  padding: var(--space-16) var(--space-6) var(--space-24);
  color: var(--paper);
}
@media (min-width: 768px) { .hero__content { padding: var(--space-24) var(--space-16) var(--space-32); } }

/* Hero: graceful staggered entrance on page load — not scroll-triggered,
   plays once immediately since the hero is visible on first paint. */
.hero__content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.9s var(--ease-out) forwards;
}
.hero__content > *:nth-child(1) { animation-delay: 0.15s; }
.hero__content > *:nth-child(2) { animation-delay: 0.28s; }
.hero__content > *:nth-child(3) { animation-delay: 0.42s; }
.hero__content > *:nth-child(4) { animation-delay: 0.55s; }
.hero__content > *:nth-child(5) { animation-delay: 0.68s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero__content > * { opacity: 1; transform: none; animation: none; }
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--step-xs); letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(251,248,242,0.8); margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--step-3xl); font-weight: 400; max-width: 22ch; letter-spacing: -0.03em;
  line-height: 1.02;
  /* Overrides the generic fade-up with a slower wipe-reveal — the one
     element on the page that should feel unmistakably handcrafted. */
  animation-name: heroTitleIn;
  animation-duration: 1.3s;
  will-change: clip-path, transform;
}
.hero__title em { font-style: italic; color: var(--clay-2); }
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(34px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0% 0); }
}
@media (prefers-reduced-motion: reduce) { .hero__title { clip-path: none; } }

.hero__lede {
  margin-top: var(--space-6); font-size: var(--step-md); font-weight: 300;
  color: rgba(251,248,242,0.9); max-width: 52ch;
}

.hero__closing {
  margin-top: var(--space-6); font-family: var(--font-serif); font-style: italic;
  font-size: var(--step-lg); color: var(--paper);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-16); }

.hero__scroll {
  position: absolute; right: var(--space-6); bottom: var(--space-8);
  display: none; align-items: center; gap: var(--space-2);
  color: rgba(251,248,242,0.7); font-size: var(--step-xs); letter-spacing: 0.14em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
@media (min-width: 768px) { .hero__scroll { display: inline-flex; } }
.hero__scroll svg { writing-mode: horizontal-tb; width: 14px; height: 14px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ==========================================================================
   Our Story
   ========================================================================== */

.story__grid { display: grid; gap: var(--space-16); align-items: center; }
@media (min-width: 900px) { .story__grid { grid-template-columns: 1fr 0.85fr; gap: var(--space-24); } }

/* A quiet, art-directed frame: a museum-mat offset peeking out behind the
   photo, like a printed plate rather than a flat crop. box-shadow
   (not a ::before) so it isn't clipped by .photo's own overflow:hidden. */
.story__grid .photo {
  position: relative;
  box-shadow: 18px 18px 0 0 var(--line), var(--shadow-card);
}
@media (max-width: 640px) {
  .story__grid .photo { box-shadow: 12px 12px 0 0 var(--line), var(--shadow-card); }
}

.story__lead {
  font-family: var(--font-serif); font-style: italic; font-size: var(--step-xl);
  max-width: 20ch; margin-bottom: var(--space-8); color: var(--ink);
}
.story__body { color: var(--ink-soft); max-width: 58ch; }

/* ==========================================================================
   Thomas Beach
   ========================================================================== */

/* Cinematic full-bleed banner — breaks the section out of .container to
   read as a proper editorial spread rather than another boxed photo. */
.beach { padding-block-start: 0; }
.beach__bleed {
  width: 100vw; margin-left: calc(50% - 50vw);
  height: 62vh; min-height: 380px; max-height: 640px;
  overflow: hidden; margin-bottom: var(--space-20);
}
.beach__bleed img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 1.2s var(--ease-out);
}
.beach__bleed.is-visible img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .beach__bleed img { transform: none; transition: none; } }

.beach__intro { margin-bottom: var(--space-16); }

/* Deliberately mirrored against .story__grid — Our Story is text-led
   (narrative, intimate), Thomas Beach is image-led (place, monumental) so
   the two "photo + copy" sections don't read as the same template twice. */
.beach__grid { display: grid; gap: var(--space-8); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) {
  .beach__grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-24); }
  .beach__grid .photo { order: -1; }
}
.beach__grid > *:nth-child(1) { transition-delay: 0ms; }
.beach__grid > *:nth-child(2) { transition-delay: 120ms; }

.beach__copy { max-width: 56ch; }
.beach__lead { color: var(--ink-soft); }
.beach__closing {
  margin-top: var(--space-8); font-family: var(--font-serif); font-style: italic;
  font-size: var(--step-lg); color: var(--teal);
}

/* ==========================================================================
   The Rhythm of Uluwatu
   ========================================================================== */

.rhythm { background: radial-gradient(120% 100% at 50% 0%, #202124 0%, var(--ink) 62%); color: var(--paper); }

.rhythm__list { margin-top: var(--space-16); display: grid; gap: var(--space-4); max-width: 60ch; }
.rhythm__list li {
  display: flex; align-items: baseline; gap: var(--space-4);
  font-family: var(--font-serif); font-size: var(--step-lg); font-style: italic;
  padding-block: var(--space-3); border-top: 1px solid var(--line-dark);
}
.rhythm__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.rhythm__list li span { font-family: var(--font-sans); font-style: normal; font-size: var(--step-xs); color: var(--clay-2); letter-spacing: 0.14em; }

.rhythm__strip {
  margin-top: var(--space-20); display: grid; gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}
/* A loose, staggered contact-sheet rhythm rather than a flat Instagram
   grid — the second and fourth frames drop, giving the strip a candid,
   documentary cadence distinct from the Stay section's structured bento. */
@media (min-width: 700px) {
  .rhythm__strip { grid-template-columns: repeat(4, 1fr); align-items: start; }
  .rhythm__strip > *:nth-child(2), .rhythm__strip > *:nth-child(4) { margin-top: var(--space-12); }
}
.rhythm__strip > *:nth-child(1) { transition-delay: 0ms; }
.rhythm__strip > *:nth-child(2) { transition-delay: 90ms; }
.rhythm__strip > *:nth-child(3) { transition-delay: 180ms; }
.rhythm__strip > *:nth-child(4) { transition-delay: 270ms; }

.rhythm__body { margin-top: var(--space-16); max-width: 62ch; color: var(--muted-on-dark); }
.rhythm__body p + p { margin-top: var(--space-4); }

/* ==========================================================================
   Stay — six rooms
   ========================================================================== */

.rooms__intro { max-width: 62ch; }
.rooms__intro p + p { margin-top: var(--space-4); color: var(--ink-soft); }

.rooms__grid { display: grid; gap: var(--space-8); margin-top: var(--space-16); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .rooms__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-12); } }
/* A single featured room breaks the uniform grid into a proper portfolio
   rhythm — one wide statement tile, five in steady portrait rhythm. */
@media (min-width: 900px) {
  .rooms__grid > li:first-child { grid-column: span 2; }
  .rooms__grid > li:first-child .photo { aspect-ratio: 16 / 10; }
}
.rooms__grid > li { transition: transform var(--dur-base) var(--ease-lux); }
.rooms__grid > li:hover { transform: translateY(-6px); }
.rooms__grid > li:hover .photo { box-shadow: var(--shadow-lift); }
.rooms__grid .photo { transition: box-shadow var(--dur-base) var(--ease-lux); }
@media (prefers-reduced-motion: reduce) { .rooms__grid > li:hover { transform: none; } }
.rooms__grid > *:nth-child(1) { transition-delay: 0ms; }
.rooms__grid > *:nth-child(2) { transition-delay: 80ms; }
.rooms__grid > *:nth-child(3) { transition-delay: 160ms; }
.rooms__grid > *:nth-child(4) { transition-delay: 240ms; }
.rooms__grid > *:nth-child(5) { transition-delay: 320ms; }
.rooms__grid > *:nth-child(6) { transition-delay: 400ms; }

.room__caption { margin-top: var(--space-3); font-size: var(--step-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-strong); text-align: center; }

.rooms__cta { margin-top: var(--space-16); text-align: center; }

/* ==========================================================================
   Closing band
   ========================================================================== */

.closing { position: relative; padding-block: 0; }
.closing__frame {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.closing__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); will-change: transform; }
.closing__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,24,26,0.5) 0%, rgba(23,24,26,0.62) 55%, rgba(23,24,26,0.72) 100%); }
.closing__content { position: relative; z-index: 1; padding: var(--space-16) var(--space-6); color: var(--paper); }
.closing__title { font-size: var(--step-2xl); }
.closing__title span { display: block; }
.closing__sub { margin-top: var(--space-8); font-family: var(--font-serif); font-style: italic; font-size: var(--step-md); color: rgba(251,248,242,0.85); max-width: 30ch; margin-inline: auto; }
.closing__actions { margin-top: var(--space-8); display: flex; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }

/* ==========================================================================
   Contact / Book
   ========================================================================== */

.contact { background: radial-gradient(120% 100% at 50% 0%, #202124 0%, var(--ink) 62%); color: var(--paper); }
.contact .eyebrow { color: var(--clay-2); }
.contact .section-title { color: var(--paper); }
.contact .section-sub { color: var(--muted-on-dark); }

.contact__grid { display: grid; gap: var(--space-16); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: var(--space-24); } }

.contact__details {
  margin-top: var(--space-16); display: grid; gap: var(--space-6);
  border-top: 1px solid var(--line-dark); padding-top: var(--space-8);
}
.contact__details dt { font-size: var(--step-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-on-dark); }
.contact__details dd { margin-top: var(--space-1); font-size: var(--step-md); font-weight: 400; }
.contact__details dd.dd-icon { display: flex; align-items: center; gap: var(--space-2); }
.contact__details dd.dd-icon .icon-sm { flex-shrink: 0; }
.contact__details a:hover { text-decoration: underline; }

.contact__form { display: grid; gap: var(--space-6); align-content: start; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--step-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); }
.field input, .field select, .field textarea {
  border-bottom: 1px solid rgba(251, 248, 242, 0.25);
  padding-block: var(--space-3); background: transparent; color: var(--paper);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--paper); }
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; gap: var(--space-6); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.contact__submit {
  justify-self: start; margin-top: var(--space-2);
  border-color: var(--clay); background: var(--clay); color: var(--paper);
}
.contact__submit:hover { background: transparent; color: var(--clay-2); border-color: var(--clay-2); }
.contact__status { font-size: var(--step-sm); color: var(--clay-2); min-height: 1.2em; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: radial-gradient(120% 100% at 50% 0%, #202124 0%, var(--ink) 62%); color: var(--paper); padding-top: var(--space-16); border-top: 1px solid var(--line-dark); }

.footer__top {
  display: grid; gap: var(--space-12); padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 700px) { .footer__top { grid-template-columns: 1fr auto; } }

.footer .brand--on-dark .brand__word { color: var(--paper); }
.footer .brand--on-dark .brand__mark { color: var(--clay-2); }
.footer .brand--on-dark span { color: var(--muted-on-dark); }
.footer__tagline { margin-top: var(--space-4); color: var(--muted-on-dark); max-width: 32ch; font-family: var(--font-serif); font-style: italic; }

.footer__nav { display: flex; gap: var(--space-16); flex-wrap: wrap; }
.footer__col h4 { font-size: var(--step-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-on-dark); margin-bottom: var(--space-4); }
.footer__col ul { display: grid; gap: var(--space-3); font-size: var(--step-sm); }
.footer__col a:hover { text-decoration: underline; }

.footer__bottom {
  padding-block: var(--space-8); font-size: var(--step-xs); color: var(--muted-on-dark);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
}

/* ==========================================================================
   Signature motion — back to top, card tilt
   ========================================================================== */

.back-to-top {
  position: fixed; right: var(--space-6); bottom: var(--space-6); z-index: 60;
  width: 46px; height: 46px; border-radius: 100px;
  background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 32px -14px rgba(23,24,26,0.45);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base), background var(--dur-fast) var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--clay); }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: opacity var(--dur-fast) ease, visibility var(--dur-fast); } }

/* Subtle 3D tilt on hover for room/who cards — fine-pointer devices only,
   class + inline transform applied via JS, reduced-motion is skipped there.
   Scoped to .is-visible so it only takes over transform timing once the
   scroll-reveal transition has already finished, not during entry. */
[data-reveal].is-visible.tilt {
  transform-style: preserve-3d; will-change: transform;
  transition: transform 0.35s var(--ease-out), opacity 900ms var(--ease-out);
}
