/* ==========================================================================
   AERODRAM — Homepage "Departures"
   Standalone stylesheet for index.html. The legal pages and scanmadira.html
   keep using style.css.
   ========================================================================== */

:root {
  --ink: #090806;
  --ink-2: #0e0c09;
  --char: #14110c;
  --gold: #d6b06a;
  --gold-bright: #f0d498;
  --gold-deep: #8e672d;
  --amber: #c9782a;
  --ivory: #f4ecdd;
  --ivory-2: #ddd2c1;
  --muted: #a89c88;
  --dim: #6f6556;
  --line: rgba(214, 176, 106, .18);
  --line-strong: rgba(214, 176, 106, .42);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --max: 1440px;

  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(214, 176, 106, .35); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 5px;
  border-radius: 2px;
}

.skip {
  position: fixed;
  top: 1rem; left: 1rem;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--gold);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* --- Typographic primitives ------------------------------------------- */

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  line-height: 1.6;
}

.eyebrow--rule {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow--rule::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--gold);
  opacity: .8;
}

.board {
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.02em;
  color: var(--ivory);
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
}

/* Line mask reveal: JS sets html.motion; only then do we hide lines. */
.line { display: block; overflow: hidden; }
.line > span { display: block; transform: translateZ(0); }
html.motion .line > span { transform: translateY(112%); }
.line em { padding-right: .06em; } /* italic overhang */

/* CTA ------------------------------------------------------------------ */

.cta {
  position: relative;
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: .9rem;
  min-height: 48px;
  padding: .3rem 0;
  color: var(--gold-bright);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.cta__arrow {
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--gold);
  position: relative;
  transition: width .6s var(--ease-out);
}
.cta__arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -4px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: rotate(45deg);
}
@media (hover: hover) {
  .cta:hover::after { transform: scaleX(.35); }
  .cta:hover .cta__arrow { width: 52px; }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  color: var(--ivory);
  transition: height .6s var(--ease-out), background-color .6s ease, box-shadow .6s ease;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 8, 6, .55), rgba(9, 8, 6, 0));
  opacity: 1;
  transition: opacity .6s ease;
  pointer-events: none;
}
.nav::after {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.nav.is-scrolled {
  height: 64px;
  background-color: rgba(9, 8, 6, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav.is-scrolled::before { opacity: 0; }
.nav.is-scrolled::after { transform: scaleX(1); }
html.motion .nav { opacity: 0; }

.nav__brand {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: .01em;
  line-height: 1;
}

.nav__links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: clamp(1.4rem, 3vw, 2.8rem);
}
.nav__links a {
  position: relative;
  padding: .6rem 0;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory-2);
  transition: color .4s ease;
}
.nav__links a::before {
  content: "";
  position: absolute;
  left: -.9rem; top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform .5s var(--ease-out);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .25rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.nav__links a.is-active { color: var(--ivory); }
.nav__links a.is-active::before { transform: scale(1); }
@media (hover: hover) {
  .nav__links a:hover { color: var(--ivory); }
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}

.nav__toggle {
  position: relative;
  z-index: 1;
  display: none;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  padding: 0 .2rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.nav__toggle i {
  position: relative;
  width: 22px; height: 10px;
}
.nav__toggle i::before, .nav__toggle i::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--ivory);
  transition: transform .5s var(--ease-out);
}
.nav__toggle i::before { top: 0; }
.nav__toggle i::after { bottom: 0; }

/* Full-screen menu (mobile) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.2rem var(--gutter) 2rem;
  background: var(--ink);
  color: var(--ivory);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io);
  pointer-events: none;
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; visibility: visible; }
.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.menu__close {
  min-height: 44px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.menu__links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .4rem;
}
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 11vw, 4rem);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .8s var(--ease-out);
}
.menu__links a small {
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .33s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .41s; }
.menu__foot { display: flex; justify-content: space-between; }

/* Scroll progress hairline */
.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Entrance curtain */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  grid-template-rows: 1fr 1fr;
  pointer-events: none;
}
.curtain span { background: var(--ink); display: block; }
.curtain span:first-child { transform-origin: top; }
.curtain span:last-child { transform-origin: bottom; }
html:not(.motion) .curtain { display: none; }

/* ==========================================================================
   HERO — "The window"
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: -4% -3%;
  z-index: 0;
  will-change: transform;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  transform-origin: 60% 45%;
}
.hero__bloom {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem 26rem at 72% 34%, rgba(240, 184, 96, .38), rgba(240, 184, 96, 0) 70%);
  opacity: 0;
  pointer-events: none;
}
html:not(.motion) .hero__bloom { opacity: .9; }
.hero__grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 8, 6, .96) 0%, rgba(9, 8, 6, .84) 28%, rgba(9, 8, 6, .38) 58%, rgba(9, 8, 6, .12) 100%),
    linear-gradient(180deg, rgba(9, 8, 6, .35) 0%, rgba(9, 8, 6, 0) 30%, rgba(9, 8, 6, 0) 55%, rgba(9, 8, 6, .92) 100%);
  pointer-events: none;
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .07;
  pointer-events: none;
  background-image: url("grain.png");
  background-size: 160px 160px;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: calc(var(--nav-h) + 4vh) 0 6vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
}
.hero__eyebrow { margin-bottom: clamp(1.4rem, 3vh, 2.4rem); }
.hero__eyebrow span { display: inline-block; }
html.motion .hero__eyebrow span { opacity: 0; transform: translateY(10px); }

.hero__title {
  max-width: 12ch;
  font-size: clamp(3.3rem, 8.6vw, 8.6rem);
  line-height: .93;
  letter-spacing: -.028em;
  text-shadow: 0 10px 60px rgba(0, 0, 0, .5);
}
.hero__title .line { padding-bottom: .06em; margin-bottom: -.06em; }

.hero__copy {
  max-width: 34rem;
  margin: clamp(1.4rem, 3.4vh, 2.4rem) 0 0;
  color: var(--ivory-2);
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.75;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .5);
}
html.motion .hero__copy { opacity: 0; transform: translateY(14px); }

.hero__cta { margin-top: clamp(1.8rem, 4vh, 2.8rem); }
html.motion .hero__cta { opacity: 0; transform: translateY(14px); }

/* Departure board strip at the bottom of the hero */
.hero__board {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: 1.1rem 0 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
}
html.motion .hero__board { opacity: 0; }
.hero__board::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 18%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-bright), rgba(214, 176, 106, 0));
}
.board__ticker {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  overflow: hidden;
  white-space: nowrap;
}
.board__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  flex: 0 0 auto;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.board__ticker .board { color: var(--ivory-2); }
.board__ticker .board b { color: var(--gold-bright); font-weight: 600; }
.board__scroll {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex: 0 0 auto;
}
.board__scroll i {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--gold), rgba(214, 176, 106, 0));
  overflow: hidden;
  position: relative;
}
.board__scroll i::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--ivory);
  animation: drop 2.2s var(--ease-io) infinite;
}
@keyframes drop { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ==========================================================================
   STUDIO STATEMENT
   ========================================================================== */

.studio {
  position: relative;
  padding: clamp(7rem, 16vh, 12rem) 0 clamp(6rem, 14vh, 11rem);
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(201, 120, 42, .07), transparent 60%),
    var(--ink);
}

.studio__title {
  font-size: clamp(3rem, 10.4vw, 10.4rem);
  line-height: .95;
  letter-spacing: -.03em;
  max-width: 100%;
}
.studio__title .w {
  display: inline-block;
  opacity: .14;
  color: var(--ivory);
}
.studio__title .line:last-child .w { color: var(--gold-bright); }
.studio__title .line:last-child { padding-left: clamp(0px, 10vw, 12rem); }
html:not(.motion) .studio__title .w { opacity: 1; }

.studio__runway {
  position: relative;
  height: 1px;
  margin: clamp(3rem, 8vh, 5.5rem) 0 clamp(3.5rem, 8vh, 5.5rem);
  background: var(--line);
  overflow: hidden;
}
.studio__runway::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold), rgba(214, 176, 106, 0));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
html:not(.motion) .studio__runway { --p: 1; }

.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 8rem);
  align-items: start;
}
.studio__lede {
  margin: 0;
  max-width: 30ch;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  line-height: 1.32;
  color: var(--ivory);
}
.studio__lede strong { font-weight: 500; color: var(--gold-bright); }

.index {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: idx;
}
.index li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.index li:last-child { border-bottom: 1px solid var(--line); }
.index li::before {
  counter-increment: idx;
  content: "0" counter(idx);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold);
  padding-top: .55rem;
  font-variant-numeric: tabular-nums;
}
.index h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1.05;
}
.index p {
  margin: .5rem 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: .95rem;
}
html.motion .reveal { opacity: 0; transform: translateY(26px); }

/* ==========================================================================
   SCANMADIRA REVEAL — "The scan"
   ========================================================================== */

.scan {
  position: relative;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.scan__pin {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: calc(var(--nav-h) + 2vh) 0 4vh;
  overflow: hidden;
}

.scan__text { position: relative; min-height: 22rem; }
.scan__beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
html.motion .scan__beat { opacity: 0; }
html:not(.motion) .scan__beat { position: relative; margin-bottom: 3rem; }
.scan__beat h2 {
  margin-top: 1.4rem;
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  line-height: .98;
}
.scan__beat p {
  max-width: 32rem;
  margin: 1.4rem 0 0;
  color: var(--ivory-2);
  font-size: clamp(.98rem, 1.05vw, 1.08rem);
}
.scan__beat .cta { margin-top: 2rem; align-self: flex-start; }
.scan__logo {
  width: clamp(120px, 12vw, 160px);
  height: auto;
  margin: 1.6rem 0 0 -2%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6));
}

/* Stage */
.scan__stage {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-height: 78svh;
  width: 100%;
  margin-inline: auto;
  perspective: 1400px;
}
.scan__stage::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(closest-side, rgba(201, 120, 42, .16), rgba(201, 120, 42, 0));
  filter: blur(20px);
  opacity: var(--glow, 0);
}
html:not(.motion) .scan__stage { --glow: 1; }

.brk {
  position: absolute;
  width: 14%;
  height: 14%;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(214, 176, 106, .45));
}
.brk svg { width: 100%; height: 100%; overflow: visible; }
.brk path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
html:not(.motion) .brk path { stroke-dashoffset: 0; }
.brk--tl { top: 8%; left: 14%; }
.brk--tr { top: 8%; right: 14%; transform: scaleX(-1); }
.brk--bl { bottom: 8%; left: 14%; transform: scaleY(-1); }
.brk--br { bottom: 8%; right: 14%; transform: scale(-1); }

.bottle {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 68%;
  width: auto;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}
html.motion .bottle { opacity: 0; transform: translate(-50%, -38%); }
.bottle svg { height: 100%; width: auto; overflow: visible; }
.bottle .glass {
  fill: rgba(244, 236, 221, .03);
  stroke: var(--ivory-2);
  stroke-width: 1.4;
  stroke-opacity: .9;
}
.bottle .liquid { fill: url(#liq); opacity: .9; }
.bottle .label {
  fill: rgba(9, 8, 6, .55);
  stroke: var(--gold);
  stroke-width: 1;
  stroke-opacity: .7;
}
.bottle .label-line { stroke: var(--gold); stroke-opacity: .55; stroke-width: 1.2; }
.bottle .cap { fill: var(--gold-deep); stroke: var(--gold); stroke-width: 1; }
.bottle .shine {
  fill: url(#shine);
  opacity: .5;
}

.beam {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 12%;
  height: 2px;
  background: linear-gradient(90deg, rgba(240, 212, 152, 0), var(--gold-bright) 30%, var(--gold-bright) 70%, rgba(240, 212, 152, 0));
  box-shadow: 0 0 18px 2px rgba(240, 212, 152, .55), 0 0 60px 8px rgba(214, 176, 106, .25);
  opacity: 0;
  pointer-events: none;
}
.beam::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(214, 176, 106, .14), rgba(214, 176, 106, 0));
}

/* Data labels */
.tag {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: .25rem;
  min-width: 9rem;
  padding: .1rem 0 .6rem;
  border-bottom: 1px solid var(--line-strong);
  transform-style: preserve-3d;
}
html.motion .tag { opacity: 0; transform: translateY(12px); }
.tag .board { color: var(--gold); font-size: .6rem; }
.tag strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
  line-height: 1.1;
  color: var(--ivory);
}
.tag small { color: var(--muted); font-size: .82rem; letter-spacing: .02em; }
.tag::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 44px;
  height: 1px;
  background: var(--gold);
}
.tag--l::after { right: -44px; }
.tag--r::after { left: -44px; }
.tag--id { top: 20%; left: 0; }
.tag--age { top: 45%; left: 2%; }
.tag--prof { top: 16%; right: 0; min-width: 10rem; }
.tag--cmp { top: 56%; right: 0; }

.cmp {
  display: grid;
  gap: .3rem;
  margin-top: .3rem;
  font-variant-numeric: tabular-nums;
}
.cmp span {
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
  font-size: .9rem;
  color: var(--muted);
}
.cmp span b { font-weight: 500; color: var(--ivory-2); }
.cmp span.best { color: var(--gold-bright); }
.cmp span.best b { color: var(--gold-bright); }

.radar { width: 136px; height: 136px; margin: .3rem 0 .2rem .6rem; overflow: visible; }
.radar .grid { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.radar .axis { stroke: var(--line); stroke-width: 1; }
.radar .shape {
  fill: rgba(214, 176, 106, .18);
  stroke: var(--gold-bright);
  stroke-width: 1.4;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
html:not(.motion) .radar .shape { stroke-dashoffset: 0; }
.radar text {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.scan__spirits {
  position: relative;
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.6rem;
  color: var(--muted);
}
.scan__spirits .board { color: var(--gold); }
.scan__spirits span + span::before {
  content: "·";
  margin-right: 1.6rem;
  color: var(--dim);
}
.scan__spirits span:nth-child(2)::before { content: none; }

/* ==========================================================================
   STORY — "Real decisions"
   ========================================================================== */

.story {
  position: relative;
  padding: clamp(7rem, 16vh, 12rem) 0 clamp(5rem, 12vh, 9rem);
  background: var(--ink);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.story__head {
  display: grid;
  grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr);
  gap: 2rem;
  margin-bottom: clamp(4rem, 10vh, 7rem);
}
.story__head p {
  margin: 1.4rem 0 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1rem;
}
.story__head h2 {
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: .98;
}

.story__set {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 5vh, 4rem) 1rem;
  align-items: center;
}
.stmt {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.2vw, 5.6rem);
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--ivory);
}
.stmt small {
  display: block;
  margin-top: .8rem;
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--muted);
  max-width: 34ch;
}
.stmt--1 { grid-column: 1 / span 8; }
.stmt--2 { grid-column: 5 / span 8; text-align: right; }
.stmt--2 small { margin-left: auto; }
.stmt--3 { grid-column: 2 / span 8; }
.stmt--3 em { color: var(--gold-bright); font-style: italic; }

.story__window {
  grid-column: 1 / -1;
  position: relative;
  margin: 0;
  height: clamp(260px, 52vh, 520px);
  overflow: hidden;
  clip-path: inset(14% 22% 14% 22%);
}
html:not(.motion) .story__window { clip-path: inset(0); }
.story__window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.18);
  filter: saturate(.92);
}
.story__window::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 8, 6, .25), rgba(9, 8, 6, 0) 40%, rgba(9, 8, 6, .55) 100%);
}
.story__window figcaption {
  position: absolute;
  left: 1.6rem;
  bottom: 1.4rem;
  z-index: 1;
}

/* ==========================================================================
   CONTACT — "The horizon" + FOOTER
   ========================================================================== */

.contact {
  position: relative;
  padding: clamp(6rem, 15vh, 11rem) 0 0;
  background: var(--ink);
  overflow: hidden;
}
.horizon {
  position: absolute;
  left: 0; right: 0;
  top: clamp(4rem, 10vh, 7rem);
  height: 1px;
  pointer-events: none;
}
.horizon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(214, 176, 106, 0), var(--gold) 40%, var(--gold-bright) 50%, var(--gold) 60%, rgba(214, 176, 106, 0));
  transform: scaleX(var(--p, 0));
}
html:not(.motion) .horizon { --p: 1; }
.horizon::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: min(70vw, 900px);
  height: 40vh;
  transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 0%, rgba(201, 120, 42, .28), rgba(201, 120, 42, 0) 70%);
  opacity: var(--p, 0);
}

.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr);
  gap: 2rem;
}
.contact h2 {
  font-size: clamp(3rem, 7.4vw, 7.6rem);
  line-height: .95;
}
.contact p {
  max-width: 34rem;
  margin: 1.8rem 0 0;
  color: var(--ivory-2);
}

.mail {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .8rem;
  margin-top: clamp(2rem, 5vh, 3.2rem);
  padding-bottom: .35rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 3.6rem);
  line-height: 1.1;
  color: var(--gold-bright);
  overflow-wrap: anywhere;
}
.mail::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line-strong);
}
.mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, rgba(240, 212, 152, 0), var(--gold-bright), rgba(240, 212, 152, 0));
  transform: translateX(-100%);
  opacity: 0;
}
@media (hover: hover) {
  .mail:hover::after { animation: travel 1.4s var(--ease-io) infinite; }
}
@keyframes travel {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(333%); opacity: 0; }
}
.mail__note {
  display: block;
  margin-top: .9rem;
  min-height: 1.2rem;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity .4s ease;
}
.mail__note.is-on { opacity: 1; }

.foot {
  position: relative;
  margin-top: clamp(6rem, 16vh, 12rem);
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
}
.foot .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.5rem 3rem;
}
.foot__brand {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}
.foot__links { display: flex; gap: 2rem; }
.foot__links a, .foot__top {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .4s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.foot__links a:hover, .foot__top:hover { color: var(--gold-bright); }
.foot__copy { color: var(--dim); font-size: .72rem; letter-spacing: .08em; grid-column: 1 / -1; }
.foot__top { gap: .6rem; }
.foot__top i {
  width: 1px; height: 22px;
  background: linear-gradient(0deg, var(--gold), rgba(214, 176, 106, 0));
}

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

@media (max-width: 1100px) {
  .scan__pin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tag strong { font-size: 1.1rem; }
  .radar { width: 100px; height: 100px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 72px; }

  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }

  .hero__title { font-size: clamp(3rem, 12.5vw, 6rem); }
  .hero__media img { object-position: 52% 50%; }
  .hero__grade {
    background:
      linear-gradient(180deg, rgba(9, 8, 6, .55) 0%, rgba(9, 8, 6, .06) 24%, rgba(9, 8, 6, .3) 40%, rgba(9, 8, 6, .78) 56%, rgba(9, 8, 6, .95) 74%, rgba(9, 8, 6, 1) 100%);
  }
  .hero__eyebrow { font-size: .6rem; letter-spacing: .16em; }
  .hero__eyebrow::before { width: 24px; flex: 0 0 auto; }
  .hero__title { text-shadow: 0 6px 40px rgba(0, 0, 0, .7); }
  .board__tail { display: none; }
  .hero__bloom { background: radial-gradient(22rem 18rem at 62% 30%, rgba(240, 184, 96, .34), rgba(240, 184, 96, 0) 70%); }
  .hero__content { justify-content: flex-end; padding-bottom: 3vh; }
  .board__ticker .board { font-size: .6rem; letter-spacing: .16em; }
  .board__scroll span { display: none; }

  .studio__grid { grid-template-columns: 1fr; gap: 3rem; }
  .studio__title .line:last-child { padding-left: 0; }

  /* Scan: stacked, not pinned */
  .scan__pin {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 5rem 0 2rem;
    gap: 2.5rem;
  }
  .scan__text { min-height: 0; display: contents; }
  .scan__beat { position: relative; inset: auto; }
  html.motion .scan__beat--intro { opacity: 1; }
  .scan__beat--intro { order: 1; }
  .scan__stage { order: 2; }
  .scan__beat--outro { order: 3; }
  .scan__stage {
    aspect-ratio: 1 / 1.25;
    max-height: none;
    max-width: 560px;
  }
  .brk--tl, .brk--bl { left: 6%; }
  .brk--tr, .brk--br { right: 6%; }
  .tag { min-width: 7.4rem; }
  .tag strong { font-size: 1rem; }
  .tag small { font-size: .7rem; }
  .tag::after { width: 22px; }
  .tag--l::after { right: -22px; }
  .tag--r::after { left: -22px; }
  .tag--id { top: 14%; }
  .tag--age { top: 42%; left: 0; }
  .tag--prof { top: 8%; min-width: 7.4rem; }
  .tag--cmp { top: 58%; }
  .radar { width: 84px; height: 84px; }
  .cmp span { font-size: .74rem; gap: .8rem; }
  .bottle { height: 62%; }

  .story__head { grid-template-columns: 1fr; gap: 1.2rem; }
  .stmt--1, .stmt--2, .stmt--3 { grid-column: 1 / -1; text-align: left; }
  .stmt--2 small { margin-left: 0; }
  .story__window { height: clamp(220px, 36vh, 340px); clip-path: inset(10% 8%); }

  .contact__inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .foot .wrap { grid-template-columns: 1fr auto; }
  .foot__links { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.7rem, 12.8vw, 3.6rem); }
  .hero__copy { font-size: .95rem; max-width: 92%; }
  .studio__title { font-size: clamp(2.6rem, 12.5vw, 4rem); }
  .studio__lede { font-size: 1.32rem; }
  .index li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .scan__beat h2 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .scan__stage { aspect-ratio: 1 / 1.35; }
  .tag { min-width: 6.6rem; }
  .tag--age { top: 46%; }
  .tag--cmp { top: 60%; }
  .stmt { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .contact h2 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .mail { font-size: clamp(1.45rem, 7.4vw, 2rem); }
  .foot .wrap { grid-template-columns: 1fr; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 640px; }
}

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