/* ============================================================
   VILLA AUREA — Cinematic Immersive Scroll
   ============================================================ */

:root {
  --ink: #201B16;
  --paper: #F4EEE3;
  --stone: #E4DAC8;
  --gold: #B4915B;
  --gold-soft: #D8BD8B;
  --marine: #26485B;
  --sunset: #E2A465;
  --overlay-ink: rgba(20, 16, 12, 0.55);
  --ink-muted: #5c5142;  /* secondary body copy on light/paper sections */

  --ease: cubic-bezier(.16, 1, .3, 1);

  --font-display: "Canela", "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Switzer", "General Sans", "Inter Tight", system-ui, sans-serif;
}

/* ---- Fonts: Fraunces (Canela stand-in) + a clean grotesque body ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500&family=Manrope:wght@300;400;500;600&display=swap');

:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: auto;
  background: var(--ink);
}

/* Set by app.js while the snap tour has captured scroll — belt-and-braces
   alongside the wheel/touch preventDefault, so a scrollbar drag or
   Home/End/Space (which don't fire cancelable wheel events) can't skip
   past the room-by-room navigation either. */
html.tour-locked {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;                /* clip, not hidden — protects sticky */
  line-height: 1.5;
}

img { display: block; max-width: 100%; }

/* ============================================================
   TOP CHROME — minimal wordmark bar
   ============================================================ */
.chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(18px, 2.4vw, 34px) clamp(22px, 4vw, 64px);
  pointer-events: none;
}
/* Fixed dark scrim behind the wordmark bar — guarantees contrast over any
   frame (bright marble, sky, glass) instead of relying on mix-blend-mode,
   which can wash text out to near-invisible over mid-tone footage. Plain
   gradient, no blur, in line with the site's performance rules. */
.chrome::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(90px, 12vh, 150px);
  background: linear-gradient(to bottom, rgba(10,8,6,.68) 0%, rgba(10,8,6,.34) 55%, transparent 100%);
  z-index: -1;
}
.chrome__mark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .34em;
  font-size: clamp(12px, 1.1vw, 15px);
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0,0,0,.55);
}
.chrome__meta {
  font-size: clamp(9px, .8vw, 11px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #fff;
  opacity: .92;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}

/* ============================================================
   PINNED SCRUBBER
   ============================================================ */
.tour {
  position: relative;
  width: 100%;
  /* Exactly one viewport tall — the tour no longer maps scroll distance
     to frame position. Scroll is captured (locked) while this section
     fills the viewport, and each gesture snaps to the next/previous
     room via an auto-animated tween (see app.js).
     100vh kept as a fallback; 100svh ("small" viewport height — the
     height once a mobile browser's address bar is fully shown) is the
     REAL fix for mobile: plain 100vh is taller than the actually-visible
     viewport while the toolbar is showing, so this section's box never
     quite matched the on-screen viewport on phones. app.js locks scroll
     capture only once its IntersectionObserver sees the section at
     ~full ratio — with the old 100vh/actual-viewport mismatch that ratio
     could never reach threshold on mobile, so the lock never engaged and
     the whole gesture-driven tour silently never started (no error, just
     no animation — scroll just ran straight through it). svh is a fixed
     value that doesn't change as the toolbar shows/hides mid-interaction
     (unlike dvh), which matters here since the lock state must stay
     stable through a gesture, not recompute under it. */
  height: 100vh;
  height: 100svh;
  background: var(--ink);
}
.tour__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}
.tour__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;                       /* revealed on first-scroll crossfade */
  transition: opacity 600ms var(--ease);
}
.tour__canvas.is-live { opacity: 1; }

/* Poster hero layer — sits above canvas until threshold crossfade */
.tour__poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: cover;
  background-position: center;
  transition: opacity 600ms var(--ease);
  will-change: transform, opacity;
}
.tour__poster.is-gone { opacity: 0; pointer-events: none; }

/* Ken-burns drift on the poster only */
@keyframes kenburns {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.12) translateY(-1.4%); }
}
.tour__poster--anim { animation: kenburns 14s var(--ease) forwards; }

/* Vignette overlay — simple gradients, no blur */
.tour__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(20,16,12,.42) 100%),
    linear-gradient(to bottom, rgba(20,16,12,.30) 0%, transparent 22%, transparent 74%, rgba(20,16,12,.46) 100%);
}

/* ---- Opening title card (bug camouflage) ---- */
.tour__title {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 6vw;
  transition: opacity 500ms var(--ease);
}
.tour__title.is-gone { opacity: 0; pointer-events: none; }
/* localized scrim only behind the type, not a full bar */
.tour__title::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(120vw, 1100px);
  height: min(70vh, 560px);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
              rgba(20,16,12,.62) 0%, rgba(20,16,12,.38) 45%, transparent 72%);
  z-index: -1;
}
.tour__wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 11vw, 11rem);
  line-height: .92;
  letter-spacing: .02em;
  color: var(--paper);
  text-shadow: 0 2px 40px rgba(0,0,0,.4);
}
.tour__wordmark em {
  display: block;
  font-style: italic;
  color: var(--gold-soft);
}
.tour__tagline {
  margin-top: clamp(18px, 2vw, 30px);
  font-size: clamp(.72rem, 1.1vw, .95rem);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: .95;
  text-shadow: 0 1px 3px rgba(0,0,0,.65), 0 2px 16px rgba(0,0,0,.45);
}

/* ---- Chapter captions ---- */
.tour__caption {
  position: absolute;
  left: clamp(24px, 5vw, 84px);
  bottom: clamp(64px, 11vh, 130px);
  z-index: 5;
  max-width: min(78vw, 560px);
  padding: 18px 22px 20px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  will-change: opacity, transform;
}
/* Guaranteed-contrast backdrop panel — the caption sits directly over live
   footage, which can be bright (marble, sky, sea) in any given frame. A
   soft dark scrim behind the text, not just a shadow on the glyphs, keeps
   it legible no matter what's playing underneath. */
.tour__caption::before {
  content: "";
  position: absolute;
  inset: -6px -18px -10px -18px;
  background: linear-gradient(110deg, rgba(10,8,6,.60) 0%, rgba(10,8,6,.42) 55%, rgba(10,8,6,.08) 100%);
  border-radius: 6px;
  z-index: -1;
}
.tour__caption.is-in { opacity: 1; transform: translateY(0); }
.tour__caption.is-out {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 250ms var(--ease);
}
.tour__caption-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  color: var(--gold-soft);
  letter-spacing: .01em;
  margin-bottom: .55em;
  text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 2px 18px rgba(0,0,0,.5);
}
.tour__caption-line {
  font-size: clamp(1.18rem, 2.4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.75), 0 2px 26px rgba(0,0,0,.55);
}

/* ---- "Continua a scorrere" cue ---- */
.tour__scrollcue {
  position: absolute;
  left: 50%; bottom: clamp(28px, 5vh, 54px);
  transform: translateX(-50%);
  z-index: 5;
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 14px rgba(0,0,0,.4);
  opacity: 0;
  transition: opacity 600ms var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.tour__scrollcue.is-in { opacity: .9; }
.tour__scrollcue::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--gold-soft), transparent);
}

/* ---- Gold chapter rail (desktop only) ---- */
.rail {
  position: fixed;
  right: clamp(20px, 2.4vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  height: min(46vh, 420px);
  width: 22px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 600ms var(--ease);
  pointer-events: none;   /* re-enabled once .is-visible — see below */
}
.rail.is-visible { opacity: 1; pointer-events: auto; }
.rail__track {
  position: relative;
  width: 1px;
  height: 100%;
  background: rgba(244,238,227,.22);
  pointer-events: none;   /* only the dots themselves are clickable */
}
.rail__fill {
  position: absolute;
  inset: 0 0 auto 0;
  width: 1px;
  height: 0%;
  background: linear-gradient(to bottom, var(--gold-soft), var(--gold));
  transform-origin: top;
  pointer-events: none;
}
/* Dots are real <button> elements — reset all UA button styling, then
   reapply the original visual. A generous invisible hit-area (::before)
   makes the small 7px dot comfortably clickable. */
.rail__dot {
  all: unset;
  position: absolute;
  left: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--gold-soft);
  background: transparent;
  cursor: pointer;
  transition: background 400ms var(--ease), box-shadow 400ms var(--ease), transform 200ms var(--ease);
}
.rail__dot::before {
  content: "";
  position: absolute;
  inset: -12px;
}
.rail__dot:hover,
.rail__dot:focus-visible {
  transform: translate(-50%, -50%) scale(1.7);
}
.rail__dot:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 4px;
}
.rail__dot.is-passed {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(216,189,139,.7);
}
.rail__dot-label {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 3px;
  /* solid contrast chip — readable over any frame, no dependence on the
     footage's brightness behind it */
  background: rgba(10, 8, 6, .62);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.rail__dot.is-passed .rail__dot-label { opacity: 1; }

/* ============================================================
   EDITORIAL CONTENT BELOW THE TOUR
   ============================================================ */
.info {
  position: relative;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
}

/* ---- Scroll-reveal primitive ---- */
/* Soft focus-pull on top of the original fade+rise — text arrives slightly
   blurred and undersized, then resolves into focus. Cheap (no layout
   thrash) and reads as more cinematic than a plain fade. */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(.97);
  filter: blur(6px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
  will-change: opacity, transform, filter;
}
.reveal.is-seen { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.reveal--d1 { transition-delay: 120ms; }
.reveal--d2 { transition-delay: 240ms; }

/* Parallax bg layer (JS drives --py) + a slow continuous Ken Burns drift,
   so the full-bleed photo sections feel alive rather than static wallpaper
   even before the visitor scrolls them. Desktop only — see §responsive. */
[data-parallax] { position: relative; overflow: hidden; }
@keyframes bgDrift {
  0%   { transform: translate3d(0, var(--py, 0px), 0) scale(1.05); }
  100% { transform: translate3d(0, var(--py, 0px), 0) scale(1.16); }
}
.intro__bg, .feature__bg, .viewing__bg {
  position: absolute;
  inset: -12% 0 -12% 0;      /* extra height so parallax never reveals edges */
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.06);
  animation: bgDrift 28s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

/* ============================================================
   AUREA BACKDROPS — animated, photography-free, LIGHT palette
   From "Materials" onward the villa's own photos started repeating shots
   already seen in the tour above, so those three sections (.feature__bg on
   Materials + the closing terrace band, .viewing__bg on Contact) carry a
   living abstract composition instead: a warm paper/cream field (matching
   the Specs section's already-light palette, not the dark tour) with two
   very soft, low-opacity colour washes drifting on independent, non-round
   cycles (26s/32s, 34s/40s, 30s/24s) so the motion never lines up into a
   visible loop, over a fine static grain so a plain gradient never reads
   as flat. Pure CSS — no extra image weight. Deliberately understated: the
   colour tints sit at 7–16% opacity, a hint of hue rather than a block of
   colour, so the overall impression stays white/cream and elegant. Each
   section keeps its own faint palette so Materials, the terrace line and
   Contact still feel distinct from one another. This layers underneath the
   existing bgDrift zoom + the scroll parallax (--py) on the very same
   element, so all three motions compose together.
   ============================================================ */
.aurea-bg { overflow: hidden; background-color: var(--paper); }
.aurea-bg::before,
.aurea-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  pointer-events: none;
  will-change: transform;
}

.aurea-bg--materials {
  /* Layer order: fine grain on top (tiled), the generated Higgsfield plate
     underneath (cover-fit) — background-size/repeat below apply per-layer
     in this same order. Falls back to the ::before/::after washes' own
     .aurea-bg { background-color: var(--paper) } if the photo 404s. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    url("assets/bg-materials.jpg");
  background-repeat: repeat, no-repeat;
  background-size: 160px 160px, cover;
  background-position: center, center;
}
.aurea-bg--materials::before {
  width: 62vw; height: 62vw; left: -14%; top: -20%;
  background: radial-gradient(circle, rgba(180,145,91,.16) 0%, transparent 70%);
  animation: aureaDrift1 26s ease-in-out infinite alternate;
}
.aurea-bg--materials::after {
  width: 50vw; height: 50vw; right: -16%; bottom: -22%;
  background: radial-gradient(circle, rgba(38,72,91,.10) 0%, transparent 72%);
  animation: aureaDrift2 32s ease-in-out infinite alternate;
}

.aurea-bg--terrace {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    url("assets/bg-terrace.jpg");
  background-repeat: repeat, no-repeat;
  background-size: 160px 160px, cover;
  background-position: center, center;
}
.aurea-bg--terrace::before {
  width: 72vw; height: 72vw; left: 50%; top: -32%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(226,164,101,.16) 0%, transparent 68%);
  animation: aureaDrift3 34s ease-in-out infinite alternate;
}
.aurea-bg--terrace::after {
  width: 58vw; height: 30vw; left: -12%; bottom: -10%;
  background: radial-gradient(ellipse, rgba(38,72,91,.10) 0%, transparent 74%);
  animation: aureaDrift2 40s ease-in-out infinite alternate;
}

.aurea-bg--contact {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    url("assets/bg-contact.jpg");
  background-repeat: repeat, no-repeat;
  background-size: 160px 160px, cover;
  background-position: center, center;
}
.aurea-bg--contact::before {
  width: 56vw; height: 56vw; right: -14%; top: -22%;
  background: radial-gradient(circle, rgba(216,189,139,.18) 0%, transparent 70%);
  animation: aureaDrift1 30s ease-in-out infinite alternate;
}
.aurea-bg--contact::after {
  width: 46vw; height: 46vw; left: -14%; bottom: -20%;
  background: radial-gradient(circle, rgba(38,72,91,.09) 0%, transparent 72%);
  animation: aureaDrift3 24s ease-in-out infinite alternate;
}

@keyframes aureaDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4%, 3%) scale(1.08); }
  100% { transform: translate(-3%, 5%) scale(0.96); }
}
@keyframes aureaDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-5%, -4%) scale(1.1); }
  100% { transform: translate(3%, -2%) scale(0.94); }
}
@keyframes aureaDrift3 {
  0%   { transform: translate(-50%, 0) scale(1); }
  50%  { transform: translate(-46%, 4%) scale(1.06); }
  100% { transform: translate(-54%, -3%) scale(0.97); }
}
/* the terrace's first blob keeps a translateX(-50%) baseline (it's centred),
   so it runs aureaDrift3 — defined with that same baseline — instead of 1/2 */

/* ============================================================
   INTRO — text over image, dark editorial
   ============================================================ */
.intro {
  min-height: 100vh;
  display: grid;
  align-items: center;
}
.intro__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(20,16,12,.92) 0%, rgba(20,16,12,.74) 42%, rgba(20,16,12,.32) 100%),
    linear-gradient(to bottom, rgba(20,16,12,.5), transparent 30%, transparent 70%, rgba(20,16,12,.6));
}
.intro__inner {
  position: relative; z-index: 2;
  padding: clamp(80px, 12vh, 170px) clamp(24px, 8vw, 150px);
  max-width: 1080px;
}
.intro__eyebrow {
  position: relative;
  font-size: .74rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: clamp(24px, 4vh, 46px);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.intro__lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.6vw, 3.8rem);
  line-height: 1.14;
  letter-spacing: -.012em;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.intro__lead em { font-style: italic; color: var(--gold-soft); }
.intro__body {
  margin-top: clamp(30px, 5vh, 56px);
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.85;
  color: var(--paper);
  opacity: .88;
  text-shadow: 0 1px 12px rgba(0,0,0,.3);
}

/* ============================================================
   FEATURE BANDS — full-bleed image + copy
   ============================================================ */
.feature {
  min-height: 92vh;
  display: grid;
  align-items: center;
}
.feature--tall { min-height: 100vh; }
.feature__scrim {
  position: absolute; inset: 0; z-index: 1;
  /* Now sitting on the light Aurea backdrop (§Aurea), not a photo — this is
     a whisper-soft ink vignette for depth, not a contrast-darkening layer;
     the text below is dark-on-cream and no longer needs a dark scrim to
     stay legible. */
  background: linear-gradient(to top, rgba(32,27,22,.07) 0%, rgba(32,27,22,.02) 50%, rgba(32,27,22,.05) 100%);
}
.feature__scrim--left {
  background: linear-gradient(100deg, rgba(32,27,22,.08) 0%, rgba(32,27,22,.03) 45%, transparent 80%);
}
.feature__inner {
  position: relative; z-index: 2;
  padding: clamp(60px, 9vw, 150px);
  max-width: 620px;
}
.feature__inner--center {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.feature__eyebrow {
  position: relative;
  font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: clamp(18px, 2.4vh, 30px);
}
.feature__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--ink);
}
.feature__title em { font-style: italic; color: var(--gold); }
.feature__title--big { font-size: clamp(2.6rem, 7vw, 6.2rem); }
.feature__body {
  margin-top: clamp(24px, 3.4vh, 40px);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 46ch;
}

/* Small gold accent line under section eyebrows — draws in once the
   eyebrow itself has revealed (both share the .reveal/.is-seen lifecycle). */
.intro__eyebrow::after,
.feature__eyebrow::after,
.viewing__eyebrow::after {
  content: "";
  display: block;
  margin-top: .65em;
  width: 34px;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease) 150ms;
}
.intro__eyebrow.is-seen::after,
.feature__eyebrow.is-seen::after,
.viewing__eyebrow.is-seen::after {
  transform: scaleX(1);
}
/* Materials/Terrace/Contact sit on the light Aurea backdrop now, not a dark
   photo (§Aurea) — gold-soft reads too faint against cream, so these two
   get the more saturated --gold instead. .intro keeps gold-soft: it's still
   the dark photo section. */
.feature__eyebrow::after,
.viewing__eyebrow::after {
  background: var(--gold);
}

/* ============================================================
   SPECS — paper section, quiet
   ============================================================ */
.specs {
  position: relative; z-index: 2;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(90px, 14vh, 190px) clamp(24px, 8vw, 150px);
  overflow: hidden;
}
/* A thin gold line sweeps the top edge on a slow, lazy cycle — the one
   piece of ambient motion in this otherwise quiet paper section, so it
   doesn't read as a static, inert break between two moving sections. */
.specs::before {
  content: "";
  position: absolute;
  top: 0; left: -45%;
  width: 45%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: .8;
  animation: specsSweep 11s ease-in-out infinite;
}
@keyframes specsSweep {
  0%   { left: -45%; }
  50%  { left: 100%; }
  100% { left: -45%; }
}
.specs__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  margin-bottom: clamp(46px, 7vh, 84px);
  max-width: 20ch;
  color: var(--ink);
}
.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(38px, 5vw, 72px) clamp(30px, 5vw, 80px);
  max-width: 1040px;
}
.spec {
  position: relative;
  border-top: 1px solid var(--stone);
  padding-top: clamp(16px, 2vh, 24px);
  transition: transform 340ms var(--ease), border-color 340ms var(--ease);
}
/* Subtle hover lift — pointer-capable devices only, so it never gets stuck
   "on" after a tap on touchscreens. */
@media (hover: hover) and (pointer: fine) {
  .spec:hover { transform: translateY(-5px); border-color: var(--gold); }
}
/* A gold line draws in left-to-right over the static border the instant
   this card enters view — reuses .reveal's existing IntersectionObserver
   (.is-seen), no extra JS needed. */
.spec::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease) 200ms;
}
.spec.is-seen::before { transform: scaleX(1); }
.spec__k {
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9em;
}
.spec__v {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  color: var(--ink);
  line-height: 1.05;
}
.spec__v small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .44em;
  letter-spacing: .16em;
  text-transform: uppercase;
  /* Darkened from #8a7d6d — that was under WCAG AA contrast against the
     --paper background at this small a size. */
  color: #5c5142;
  margin-top: .5em;
}

/* ============================================================
   VIEWING / CONTACT — image background
   ============================================================ */
.viewing {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  color: var(--ink);
}
.viewing__scrim {
  position: absolute; inset: 0; z-index: 1;
  /* Same whisper-soft ink vignette as §Aurea/.feature__scrim — on the light
     backdrop now, not a photo, so no dark contrast layer is needed. */
  background:
    linear-gradient(75deg, rgba(32,27,22,.08) 0%, rgba(32,27,22,.03) 46%, transparent 100%),
    linear-gradient(to bottom, rgba(32,27,22,.05), transparent 40%, rgba(32,27,22,.06));
}
.viewing__inner {
  position: relative; z-index: 2;
  padding: clamp(80px, 12vh, 170px) clamp(24px, 8vw, 150px);
  width: 100%;
}
.viewing__eyebrow {
  position: relative;
  font-size: .74rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold); margin-bottom: clamp(22px, 3vh, 38px);
}
.viewing__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  margin-bottom: clamp(16px, 2vh, 28px);
  color: var(--ink);
}
.viewing__title em { font-style: italic; color: var(--gold); }
.viewing__note {
  max-width: 50ch;
  color: var(--ink-muted);
  line-height: 1.8;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  margin-bottom: clamp(44px, 6vh, 72px);
}
.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.6vw, 34px);
  max-width: 720px;
}
.field { position: relative; display: flex; flex-direction: column; }
.field label {
  font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9em;
}
.field input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(32,27,22,.25);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  padding: .75em 0;
  transition: border-color 320ms var(--ease);
}
.field input::placeholder { color: rgba(32,27,22,.38); }
.field input:focus { outline: none; border-color: var(--gold); }
/* Gold underline grows in from the left on focus — a small, premium
   confirmation the field is active. Layered on top of the static
   border-bottom above, not a replacement for it. */
.field::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(180,145,91,.5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
  pointer-events: none;
}
.field:focus-within::after { transform: scaleX(1); }
.form__submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: clamp(16px, 2vh, 26px);
  background: var(--gold);
  color: var(--ink);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 1.15em 2.8em;
  cursor: pointer;
  transition: background 320ms var(--ease), transform 320ms var(--ease), letter-spacing 320ms var(--ease);
}
.form__submit:hover { background: var(--gold-soft); transform: translateY(-2px); letter-spacing: .24em; }
.form__submit:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.form__status {
  grid-column: 1 / -1;
  font-size: .88rem;
  color: var(--gold-soft);
  min-height: 1.2em;
}
.foot {
  margin-top: clamp(70px, 10vh, 120px);
  padding-top: clamp(28px, 4vh, 44px);
  border-top: 1px solid rgba(32,27,22,.16);
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  justify-content: space-between;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-muted);
}

/* Editorial photo bands (fallback stack only) */
.band {
  position: relative;
  min-height: 78vh;
  display: grid; align-items: end;
  background-size: cover; background-position: center;
  color: #fff;
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,16,12,.72) 0%, transparent 55%);
}
.band__cap { position: relative; z-index: 2; padding: clamp(40px, 7vw, 96px); max-width: 640px; }
.band__cap-eyebrow {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.4rem); color: var(--gold-soft); margin-bottom: .5em;
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
}
.band__cap-line {
  font-size: clamp(1.2rem, 2.2vw, 1.9rem); font-weight: 300; line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 20px rgba(0,0,0,.4);
}
/* ============================================================
   REDUCED-MOTION / FALLBACK STACK
   ============================================================ */
.rm-stack { display: none; }
.rm-stack .band { min-height: 100vh; }

body.is-fallback .tour { height: auto; }
body.is-fallback .tour__sticky { position: relative; height: auto; }
body.is-fallback .tour__canvas,
body.is-fallback .rail { display: none; }
body.is-fallback .rm-stack { display: block; }
body.is-fallback .tour__poster {
  position: relative;
  height: 100vh;
}
/* in fallback, keep captions always-on inside the stacked bands (handled by markup) */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .rail { display: none; }
  .chrome__meta { display: none; }
  .tour__caption { left: 20px; right: 20px; bottom: 84px; max-width: none; }
  .form { grid-template-columns: 1fr; }
  .foot { flex-direction: column; gap: 10px; }
  .intro, .viewing { min-height: auto; }
  .feature { min-height: 82vh; }
  .intro__scrim {
    background: linear-gradient(to bottom, rgba(20,16,12,.85), rgba(20,16,12,.7));
  }
  /* .viewing sits on the light Aurea backdrop now (§Aurea) — no mobile
     override needed, the desktop whisper-soft ink vignette already works
     at any viewport size. (Previously forced a heavy dark gradient here,
     back when this section had a dark photo background.) */
  /* parallax + Ken Burns drift off on mobile for perf */
  .intro__bg, .feature__bg, .viewing__bg { transform: scale(1.04); inset: 0; animation: none; }
  /* same perf policy for the aurea blobs — keep the static gradient + grain,
     drop the drift animation on lower-powered devices */
  .aurea-bg::before, .aurea-bg::after { animation: none; }
}

/* In fallback: force all reveals visible (no observer running) */
body.is-fallback .reveal { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .tour__poster--anim { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .intro__bg, .feature__bg, .viewing__bg { transform: scale(1.04) !important; animation: none !important; }
  .spec { transition: none; }
  * { scroll-behavior: auto !important; }
  .aurea-bg::before, .aurea-bg::after { animation: none !important; }
  .specs::before { animation: none !important; left: 10% !important; }
  .spec::before { transition: none !important; transform: scaleX(1) !important; }
}
