/* ============================================================
   VENTURA TOURS — v2 choreography
   Bordeaux #242620 · Wine #141611 · Ivory #F4F0E7
   Sky #DCD5C5 · Ink #262923 · Brass #C2A777
   Display: Cormorant Garamond · Text: Archivo
   ============================================================ */

:root {
  --charcoal: #242620;
  --obsidian: #141611;
  --ivory: #F4F0E7;
  --ivory-dim: rgba(242, 236, 227, 0.55);
  --stone: #DCD5C5;
  --ink: #262923;
  --ink-soft: #55594F;
  --brass: #C2A777;      /* on dark grounds only */
  --brass-deep: #79613B; /* on ivory — 4.0:1 */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --grain: 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'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; scrollbar-gutter: stable; }
html.lock { overflow: hidden; overscroll-behavior: none; }
html.lock body { overflow: hidden; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--charcoal); color: var(--ivory); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

main[tabindex="-1"]:focus,
section[tabindex="-1"]:focus,
footer[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top));
  left: calc(0.75rem + env(safe-area-inset-left));
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--ivory);
  background: var(--obsidian);
  border: 1px solid rgba(242, 236, 227, 0.5);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(calc(-100% - 2rem - env(safe-area-inset-top)));
  transition: transform 0.2s ease;
}
.skip-link:focus-visible { transform: translateY(0); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.char { display: inline-block; }
.word { display: inline-block; white-space: nowrap; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ============ HEADER ============ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding:
    calc(clamp(1.1rem, 2.6vw, 2rem) + env(safe-area-inset-top))
    calc(var(--gutter) + env(safe-area-inset-right))
    clamp(1.1rem, 2.6vw, 2rem)
    calc(var(--gutter) + env(safe-area-inset-left));
  color: var(--ivory);
  pointer-events: none;
}
.header.blend { mix-blend-mode: difference; }
.header a,
.header button { pointer-events: auto; }

.corner-label {
  justify-self: start;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.8;
}
html.js .corner-label { opacity: 0; visibility: hidden; }
html.js .header.ready .corner-label,
html.js .is-static .corner-label { opacity: 0.8; visibility: visible; transition: opacity 0.5s ease; }

/* takes over from the stage title once the wipe covers it —
   sized to land exactly where the Flip-docked title sits */
.header-brand {
  justify-self: center;
  display: block;
  line-height: 0;
}
.header-brand picture { display: block; }
.header-brand img {
  width: clamp(130px, 15vw, 200px);
  height: auto;
  display: block;
}
html.js .header-brand { opacity: 0; visibility: hidden; }
html.js .is-static .header-brand { opacity: 1; visibility: visible; }

.nav-toggle { display: none; }

.nav {
  justify-self: end;
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
}
.nav-link {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  /* expand the ~18px text box to a ~44px touch target without moving layout */
  padding: 0.9rem 0.7rem;
  margin: -0.9rem -0.7rem;
}
html.js .nav-link { opacity: 0; visibility: hidden; }
html.js .header.ready .nav-link { opacity: 0.85; visibility: visible; }
html.js .header.ready .nav-link:hover { opacity: 1; }

/* ============ HERO (pinned stage) ============ */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 540px;
  min-height: min(540px, 100svh);
  background: radial-gradient(120% 120% at 50% 20%, var(--charcoal) 0%, var(--obsidian) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  /* 1px overshoot on every edge swallows sub-pixel rounding gaps that
     otherwise expose the burgundy background at the right/bottom */
  inset: -1px;
  z-index: 1;
  /* hardware acceleration — prevents clip-path rendering artifacts */
  transform: translateZ(0);
}
.hero-media.is-unavailable {
  background: radial-gradient(120% 120% at 50% 20%, #505246 0%, #242620 100%);
}
/* the doorway arch: narrow, true dome top (oversized radii clamp to half
   the width), sides running off the bottom of the screen — no bottom edge */
html.js .hero-media {
  opacity: 0;
  clip-path: inset(40% 38% 0.001% 38.001% round 50vw 50vw 0vw 0vw);
}
html.js .hero.is-revealed .hero-media {
  opacity: 1;
  clip-path: none;
}
html.no-js .hero-media,
html.js .is-static .hero-media {
  opacity: 1;
  clip-path: none;
}

/* oversized pan box: 42% taller than the hero so the scroll tilt has
   guaranteed travel on every aspect ratio */
.hero-pan {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 142%;
}
.hero-pan picture {
  display: block;
  width: 100%;
  height: 100%;
}
html.js .is-static .hero-pan,
html.no-js .hero-pan { height: 100%; }

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transform-origin: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  z-index: 5;
  background: linear-gradient(to top, rgba(20, 22, 17, 0.5), transparent);
  pointer-events: none;
}

/* ---- the Flip logo: centred lockup → docked top-centre ---- */

.title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: clamp(300px, 44vw, 620px);
  line-height: 0;
  pointer-events: none;
}
.title img {
  width: 100%;
  height: auto;
  display: block;
}
.title picture { display: block; }
/* docked = the hero's standing title: large, centred in the upper third */
.title.docked {
  top: 16.5vh;
  transform: translate(-50%, -50%);
  width: clamp(460px, 46vw, 860px);
}
.title.blend { mix-blend-mode: difference; }
html.js .is-static .title,
html.no-js .title {
  top: 16.5vh;
  transform: translate(-50%, -50%);
  width: clamp(460px, 46vw, 860px);
}

/* labels flanking the doorway arch — gone once it expands */
.arch-label {
  position: absolute;
  top: 62%;
  z-index: 6;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ivory);
}
.arch-label--l { left: calc(50% - 31vw); transform: translateX(-100%); }
.arch-label--r { right: calc(50% - 31vw); transform: translateX(100%); }
html.js .arch-label { opacity: 0; visibility: hidden; }

.hero-line {
  position: absolute;
  left: calc(var(--gutter) + env(safe-area-inset-left));
  bottom: calc(clamp(1.4rem, 4vh, 2.6rem) + env(safe-area-inset-bottom));
  z-index: 6;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  line-height: 1.35;
  max-width: 34ch;
  text-wrap: balance;
  color: var(--ivory);
}
html.js .hero-line { opacity: 0; visibility: hidden; }
html.js .is-static .hero-line { opacity: 1; visibility: visible; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(clamp(1.4rem, 4vh, 2.4rem) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory);
  mix-blend-mode: difference;
}
.scroll-cue i {
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(to bottom, currentColor, transparent);
  animation: cue 2.2s ease-in-out infinite;
}
html.js .scroll-cue { opacity: 0; visibility: hidden; }
html.js .is-static .scroll-cue { display: none; }

@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- circle wipe + curved rim text ---- */

.wipe-circle {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--stone);
  clip-path: circle(0% at 50% 100%);
  pointer-events: none;
}
html.js .is-static .wipe-circle,
html.no-js .wipe-circle { display: none; }

.arc {
  position: absolute;
  inset: 0;
  z-index: 11;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
html.js .is-static .arc,
html.no-js .arc { display: none; }

.arc-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.8vw, 1.5rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  fill: var(--ink);
  /* a hair of stroke thickens the serif beyond its heaviest weight */
  stroke: var(--ink);
  stroke-width: 0.7px;
  paint-order: stroke fill;
  opacity: 0;
}

/* ============ BLUE RISE (text climbs in with the circle) ============ */

/* one composed slide: everything readable at a glance, centred */
.wipe-rise {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3.2vh, 2.2rem);
  text-align: center;
  color: var(--ink);
  pointer-events: none;
  overflow: hidden;
}

.rise-centre {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.rise-label {
  font-size: clamp(0.8rem, 1.05vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.rise-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1;
}

.rise-rule {
  width: 1px;
  height: clamp(3.2rem, 8vh, 5.5rem);
  background: rgba(38, 41, 35, 0.55);
}

.rise-tag {
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.9;
}

.rise-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 8.4vw, 8.6rem);
  line-height: 1.06;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

html.js .is-static .wipe-rise,
html.no-js .wipe-rise { display: none; }

/* ============ BLUE BEATS (three reasons, one at a time) ============ */

.wipe-copy {
  position: absolute;
  inset: 0;
  z-index: 12;
  color: var(--ink);
  pointer-events: none;
}

.wipe-beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-align: center;
  padding: 0 var(--gutter);
  perspective: 900px;
}
.wipe-beat .eyebrow { color: var(--ink-soft); margin-bottom: 0; }
.beat-line {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform-style: preserve-3d;
  max-width: 16ch;
}
.wipe-beat p {
  font-size: clamp(0.85rem, 1.3vw, 1.02rem);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  max-width: 46ch;
}
html.js .beat-line .char { opacity: 0; }
html.js .is-static .beat-line .char { opacity: 1; }
html.js .wipe-beat .eyebrow,
html.js .wipe-beat p { opacity: 0; }

/* static / no-js: the beats stack as a plain blue band */
html.js .is-static .hero,
html.no-js .hero { height: auto; min-height: 0; }
html.js .is-static .hero-media,
html.no-js .hero-media { position: relative; inset: auto; height: 100vh; }
html.js .is-static .wipe-copy,
html.no-js .wipe-copy {
  position: static;
  background: var(--stone);
  padding: clamp(4rem, 12vh, 7rem) var(--gutter);
  pointer-events: auto;
}
html.js .is-static .wipe-beat,
html.no-js .wipe-beat {
  position: static;
  padding: 1.6rem 0;
}
html.js .is-static .wipe-beat .eyebrow,
html.js .is-static .wipe-beat p { opacity: 1; }
html.js .is-static .hero-line,
html.no-js .hero-line { display: none; }

/* ============ SAMPLE TOUR (big centred arch plate) ============ */

#tour,
#process,
#contact { scroll-margin-top: clamp(6rem, 12vw, 10rem); }

.tour {
  background: var(--ivory);
  padding: clamp(5rem, 14vh, 10rem) var(--gutter);
}

.tour-head {
  text-align: center;
  margin-bottom: clamp(2.2rem, 6vh, 4rem);
}
.tour-head .eyebrow { color: var(--charcoal); }
.tour-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
}
.tour-head h2 em { font-style: italic; font-weight: 400; }

.tour-frame {
  position: relative;
  /* portrait proportions: dome on top, a long straight wall below it */
  width: min(78vw, 72vh, 960px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 999px 999px 0 0; /* oversized → clamps to a true dome */
  overflow: hidden;
  background: var(--obsidian);
}

.tour-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Reveal the player's corner controls when visitors enter the tour. */
.tour-frame:focus-within { border-radius: 1rem; }
.tour-frame:focus-within { outline: 2px solid var(--ink-soft); outline-offset: 4px; }
.tour-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}
.tour-copy > .tour-instructions {
  font-size: .8rem;
  margin-bottom: 1.25rem;
}

.tour-copy {
  text-align: center;
  margin-top: clamp(2.2rem, 6vh, 3.6rem);
}
.tour-copy > p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 2rem;
}

.tour-meta {
  display: flex;
  justify-content: center;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  margin-bottom: 2.2rem;
}
.tour-meta dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.tour-meta dd {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease, letter-spacing 0.3s ease;
}
@media (hover: hover) {
  .text-link:hover { opacity: 0.7; letter-spacing: 0.3em; }
}

/* ============ PROCESS ============ */

.process {
  background: var(--ivory);
  padding: 0 var(--gutter) clamp(6rem, 16vh, 11rem);
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
}
.process .eyebrow { color: var(--charcoal); margin-bottom: 2rem; }

.process-list { list-style: none; }

.process-step {
  display: grid;
  grid-template-columns: 5rem minmax(0, 18rem) 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(36, 38, 32, 0.18);
}
.process-step:last-child { border-bottom: 1px solid rgba(36, 38, 32, 0.18); }

.process-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brass-deep);
}
.process-step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}
.process-step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 52ch;
}

/* ============ FOOTER ============ */

.footer {
  position: relative;
  background: radial-gradient(130% 130% at 50% 110%, var(--charcoal) 0%, var(--obsidian) 70%);
  color: var(--ivory);
  text-align: center;
  padding:
    clamp(6rem, 18vh, 11rem)
    calc(var(--gutter) + env(safe-area-inset-right))
    calc(1.6rem + env(safe-area-inset-bottom))
    calc(var(--gutter) + env(safe-area-inset-left));
  overflow: hidden;
}
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}

.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -0.18em;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(9rem, 32vw, 30rem);
  line-height: 1;
  color: rgba(242, 236, 227, 0.05);
  white-space: nowrap;
  pointer-events: none;
}

.footer-kicker {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 1.6rem;
}

.footer-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 2.4rem;
}
.footer-title em { font-style: italic; font-weight: 300; }

.footer-mail {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 236, 227, 0.4);
  padding: 0.35rem 0.25rem;
  transition: border-color 0.25s ease;
}
@media (hover: hover) {
  .footer-mail:hover { border-color: var(--ivory); font-style: italic; }
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(5rem, 14vh, 9rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(242, 236, 227, 0.14);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.footer-base a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.9rem 0.7rem;
  margin: -0.9rem -0.7rem;
}
.footer-base a:hover { color: var(--ivory); }

/* ============ REVEAL DEFAULTS ============ */

html.js [data-reveal] { opacity: 0; transform: translateY(14px); }
html.js .is-static [data-reveal],
html.no-js [data-reveal] { opacity: 1; transform: none; }

/* ============ REDUCED MOTION ============ */

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

/* ============ PRINT ============ */

@media print {
  html.js [data-reveal],
  html.js .beat-line .char,
  html.js .wipe-beat .eyebrow,
  html.js .wipe-beat p,
  html.js .hero-line,
  html.js .nav-link,
  html.js .header-brand,
  html.js .corner-label {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
  .scroll-cue, .wipe-circle, .arc { display: none !important; }
  .header {
    position: static;
    mix-blend-mode: normal;
    color: var(--ink);
  }
  .hero { height: auto; min-height: 0; }
  .hero-media { position: relative; height: 90vh; opacity: 1 !important; clip-path: none !important; }
  .hero-pan { height: 100%; transform: none !important; }
  html.js .title { position: static; transform: none; width: 180px; mix-blend-mode: normal; }
  .arch-label { display: none; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .process-step { grid-template-columns: 3rem 1fr; }
  .process-step p { grid-column: 2; }
}

@media (max-width: 760px) {
  /* slide one: wrap the big line, breathe the tagline */
  .rise-headline {
    white-space: normal;
    font-size: clamp(2.5rem, 11.5vw, 3.2rem);
    line-height: 1.05;
    padding: 0 0.8rem;
  }
  .rise-tag { font-size: 0.8rem; letter-spacing: 0.16em; padding: 0 1rem; }
  .rise-centre { gap: 0.9rem; }
  .rise-label { font-size: 0.72rem; letter-spacing: 0.24em; }
  .arch-label { display: none; }

  .corner-label { display: none; }
  .header { grid-template-columns: auto 1fr auto; }
  .header.nav-open { mix-blend-mode: normal; color: var(--ivory); }
  .header-brand {
    grid-column: 1;
    justify-self: start;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-toggle {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0.65rem 0.7rem;
    color: inherit;
    background: rgba(20, 22, 17, 0.18);
    border: 1px solid currentColor;
    border-radius: 2px;
    font: 600 0.625rem/1 var(--sans);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav-toggle i,
  .nav-toggle i::before,
  .nav-toggle i::after {
    display: block;
    width: 0.9rem;
    height: 1px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle i { position: relative; }
  .nav-toggle i::before,
  .nav-toggle i::after { content: ""; position: absolute; left: 0; }
  .nav-toggle i::before { top: -0.28rem; }
  .nav-toggle i::after { top: 0.28rem; }
  .nav-toggle[aria-expanded="true"] i { background: transparent; }
  .nav-toggle[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
  html.js .nav-toggle { opacity: 0; visibility: hidden; }
  html.js .header.ready .nav-toggle { opacity: 0.9; visibility: visible; }

  .nav {
    position: absolute;
    top: calc(100% - 0.35rem);
    right: calc(var(--gutter) + env(safe-area-inset-right));
    display: grid;
    min-width: min(14rem, calc(100vw - 2 * var(--gutter)));
    max-height: calc(100dvh - 5rem - env(safe-area-inset-top));
    gap: 0;
    padding: 0.55rem;
    overflow-y: auto;
    color: var(--ivory);
    background: rgba(20, 22, 17, 0.97);
    border: 1px solid rgba(242, 236, 227, 0.28);
    box-shadow: 0 1rem 2.5rem rgba(20, 22, 17, 0.32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem;
    margin: 0;
  }
  html.js .header.ready .nav:not(.is-open) .nav-link { opacity: 0; visibility: hidden; }
  html.js .header.ready .nav.is-open .nav-link { opacity: 0.9; visibility: visible; }

  .title { width: min(72vw, 320px); }
  .title.docked,
  html.js .is-static .title,
  html.no-js .title {
    top: 24vh;
    top: 24svh;
    width: min(78vw, 360px);
  }
  .header-brand img { width: 106px; }
  .tour-frame { width: min(92vw, 64vh); }
  .hero-line { max-width: 26ch; }
  .scroll-cue {
    left: auto;
    right: calc(var(--gutter) + env(safe-area-inset-right));
    transform: none;
  }
  .footer-base { justify-content: center; text-align: center; }

  html.no-js .header { grid-template-columns: 1fr; }
  html.no-js .header-brand,
  html.no-js .nav-toggle { display: none; }
  html.no-js .nav {
    position: static;
    grid-column: 1;
    display: flex;
    justify-self: stretch;
    justify-content: space-between;
    min-width: 0;
    max-height: none;
    padding: 0;
    overflow: visible;
    color: inherit;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  html.no-js .nav-link {
    min-height: 44px;
    padding: 0.7rem 0.25rem;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    opacity: 0.9;
    visibility: visible;
  }
}

@media (max-height: 500px) {
  .hero { min-height: 100vh; min-height: 100svh; }
  .title.docked,
  html.js .is-static .title,
  html.no-js .title {
    top: 34vh;
    top: 34svh;
    width: min(54vw, 400px);
  }
  .hero-line { font-size: 1rem; max-width: 31ch; }
  .scroll-cue {
    left: auto;
    right: calc(var(--gutter) + env(safe-area-inset-right));
    transform: none;
  }
  .scroll-cue i { height: 1.5rem; }
}

/* Ventura — charcoal, limestone and aged brass. */
.eyebrow, .nav-link, .corner-label, .footer-kicker, .footer-base,
.tour-meta dt, .text-link { font-size: 0.75rem; }
.eyebrow { letter-spacing: 0.24em; }
.nav-link { letter-spacing: 0.18em; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,12,.32), transparent 48%, rgba(14,17,12,.24)); pointer-events: none; }
.hero::after { height: 42%; background: linear-gradient(to top, rgba(14,17,12,.7), transparent); }
.hero-line { font-size: clamp(1.6rem, 2.5vw, 2.5rem); max-width: 34ch; bottom: 3rem; }
.hero-line span { font: 400 clamp(.875rem, 1.1vw, 1rem)/1.6 var(--sans); display: inline-block; margin-top: .65rem; }
.intro-skip { position: absolute; z-index: 65; right: var(--gutter); bottom: 2rem; color: var(--ivory); border: 1px solid rgba(244,240,231,.4); background: rgba(20,22,17,.3); border-radius: 0; padding: .85rem 1.1rem; cursor: pointer; font: 500 .75rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.intro-skip span { margin-left: 1.5rem; }
.intro-skip[hidden], html.no-js .intro-skip, .is-static .intro-skip { display: none; }
.hero-cta { position: absolute; right: var(--gutter); bottom: 3rem; z-index: 22; padding: .85rem 0; min-height: 44px; color: var(--ivory); border-bottom: 1px solid var(--brass); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.hero-cta span { margin-left: 2rem; }
html.js .hero-cta { visibility: hidden; opacity: 0; }
html.js .intro-complete .hero-cta { visibility: visible; opacity: 1; }
.is-static .hero-cta, html.no-js .hero-cta { display: none; }
.scroll-cue { bottom: 2.8rem; font-size: .75rem; }
.tour { padding-bottom: clamp(4rem, 10vh, 7rem); }
.tour-head h2 { font-size: clamp(3.2rem, 6vw, 6rem); }
.tour-head .eyebrow { color: var(--brass-deep); }
.tour-frame { width: min(78vw, 76vh, 960px); }
.tour-copy > p { max-width: 60ch; }
.tour-meta { gap: clamp(1rem, 4vw, 3.5rem); }
.tour-meta dd { font-size: clamp(1.2rem, 2vw, 1.7rem); }
.client-section { background: var(--charcoal); color: var(--ivory); padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); }
.section-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; }
.section-intro h2 { font: 400 clamp(2.5rem, 4vw, 4rem)/1.1 var(--serif); }
.section-intro p { color: #C1C2B8; font-size: .875rem; }
.client-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid #53554A; }
.client-logos > span { text-align: center; padding: 1rem 0; font: 400 clamp(1.5rem, 2.4vw, 2.2rem) var(--serif); color: #C1C2B8; }
.client-logos small { font: 400 .75rem var(--sans); color: var(--brass); vertical-align: super; margin-left: .5rem; }
.project-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: clamp(4rem, 8vw, 7rem) var(--gutter); }
.project-slots article { border-top: 1px solid #B9BAAD; padding-top: 1.5rem; }
.project-slots .eyebrow { color: var(--brass-deep); }
.project-slots h3 { font: 400 clamp(2rem, 3.6vw, 3.5rem)/1.1 var(--serif); max-width: 20ch; margin-bottom: 1rem; }
.project-slots p { color: var(--ink-soft); }
.coming-soon { display: inline-block; margin-top: 2rem; font-size: .75rem; color: var(--ink-soft); }
.process { padding-top: 2rem; }
.process-step { padding: 2.2rem 0; }
.process-step p { font-size: 1rem; }
.footer-description { color: #C1C2B8; margin: 0 auto 2rem; max-width: 52ch; }
.footer-kicker { color: var(--brass); letter-spacing: .16em; }
.footer-base { letter-spacing: .1em; color: #B9BBAF; }
.footer-mail { overflow-wrap: anywhere; max-width: 100%; }
html.js .is-static .title, html.no-js .title { top: 30vh; }
html.js .is-static .hero-media, html.no-js .hero-media { height: 85svh; }
html.js .is-static .hero::after, html.no-js .hero::after { display: none; }
@media (max-width: 760px) {
  .hero-line { bottom: 7.5rem; font-size: 1.9rem; max-width: calc(100% - 2 * var(--gutter)); }
  .hero-line span { max-width: 28ch; font-size: .875rem; }
  .hero-cta { left: var(--gutter); right: auto; bottom: 2.5rem; }
  .scroll-cue { bottom: 2.6rem; font-size: .625rem; }
  .scroll-cue i { height: 1.8rem; }
  .section-intro { display: block; }
  .section-intro p { margin-top: 1rem; }
  .client-logos { grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
  .project-slots { grid-template-columns: 1fr; gap: 3rem; }
  .tour-frame { width: min(88vw, 70vh); }
  .tour-meta { flex-wrap: wrap; }
  .footer-description br { display: none; }
  .nav-toggle { font-size: .75rem; }
  .title.docked { top: 24svh; }
}
@media (max-height: 500px) and (min-width: 761px) {
  .hero-line { bottom: 1.4rem; font-size: 1.5rem; }
  .hero-cta { bottom: 1.4rem; }
  .scroll-cue { display: none; }
}

/* Keep navigation legible over both photography and the light sections. */
.header.blend { mix-blend-mode: normal; }
.header { background: linear-gradient(to bottom, rgba(20,22,17,.28), transparent); }
.header.on-content { background: rgba(244,240,231,.96); color: var(--ink); border-bottom: 1px solid rgba(38,41,35,.12); }
.header.on-content .header-brand img { filter: brightness(0); }
.header.nav-open { color: var(--ivory); }
.header.on-content.nav-open .nav-toggle { color: var(--ink); }
@media (max-width: 760px) { .hero-img { object-position: 65% 50%; } }
