:root {
  --black:  #0A0A0C;
  --panel:  #101216;
  --steel:  #2A2E33;
  --brass:  #B98A45;
  --amber:  #E0A55B;
  --text:   #EDE4D6;
  --muted:  #8A8072;
  --dim:    #5E5850;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --display: "Cinzel", "Iowan Old Style", Palatino, Georgia, serif;

  --header-h: 62px;
}

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

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }   /* or the flight scrubs away behind the menu */

.mono { font-family: var(--mono); }

/* ── Chrome ─────────────────────────────────────────────────────────────────
   Deliberately in the Oculus system — sans, dark, quiet. The Cinzel serif lives only inside
   the flight, so the header reads identically on every page of the site. */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 44px);
  /* the flight's bright frames (whitespace, compute) would eat a bare header */
  background: linear-gradient(180deg, rgba(10,10,12,.92), rgba(10,10,12,.55) 70%, transparent);
  backdrop-filter: blur(3px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.wordmark__name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .26em;
  font-weight: 500;
}
.wordmark__tag {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .01em;
  padding-left: 12px;
  border-left: 1px solid var(--steel);
}

.diamond {
  width: 9px; height: 9px;
  background: var(--brass);
  transform: rotate(45deg);
  flex: none;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .25s ease;
}
.nav a:hover { color: var(--text); }
.nav__cta {
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: .12em;
  color: var(--amber) !important;
  border: 1px solid var(--steel);
  padding: 9px 14px;
  transition: border-color .25s ease, background .25s ease;
}
.nav__cta:hover { border-color: var(--brass); background: rgba(185,138,69,.08); }

.burger {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
}
.burger span {
  display: block; height: 1px; width: 22px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: var(--black);
  display: grid;
  align-content: center;
  padding: 0 clamp(24px, 8vw, 60px);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 4px; }
.menu a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--steel);
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  letter-spacing: .01em;
}
.menu a .mono { font-size: 10px; color: var(--dim); letter-spacing: .2em; }
.menu__cta { color: var(--amber) !important; border-bottom: 0 !important; font-size: 15px !important; }
.menu__cta--ghost { color: var(--muted) !important; padding-top: 0 !important; }

/* ── The flight ─────────────────────────────────────────────────────────────── */

#flight {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  display: block;
  z-index: 0;
  background: var(--black);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 30%, rgba(10,10,12,.5) 100%),
    linear-gradient(180deg, rgba(10,10,12,.8) 0%, transparent 26%, transparent 52%, rgba(10,10,12,.92) 100%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: .035;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(4) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(2%, 2%); }
}

/* ── Loading gate ───────────────────────────────────────────────────────────── */

.gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--black);
  transition: opacity 1.1s ease .15s, visibility 0s linear 1.3s;
}
.gate.done { opacity: 0; visibility: hidden; }
.gate__inner { display: grid; gap: 14px; justify-items: center; width: 240px; }
.gate__label { font-size: 10px; letter-spacing: .34em; color: var(--muted); }
.gate__bar { width: 100%; height: 1px; background: var(--steel); overflow: hidden; }
.gate__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--amber));
  transition: width .25s ease;
}
.gate__pct { font-size: 10px; letter-spacing: .2em; color: var(--brass); }

/* ── Overlay cards ──────────────────────────────────────────────────────────── */

#track { position: relative; z-index: 10; }

.card {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  display: grid;
  align-content: center;
  padding: 0 clamp(28px, 8vw, 140px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

/* A bed for the type.
 *
 * The flight runs bright in places — polished copper, lit racks, the glowing board — and the
 * claim and spec rows were washing out against it. The claim is the most important sentence on
 * the page; it cannot be a matter of luck whether it lands on a dark patch. This scrim rides
 * with the card (it fades in and out with it) so it only darkens the frame where and when
 * there is type to read. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(10,10,12,.90) 0%,
    rgba(10,10,12,.72) 30%,
    rgba(10,10,12,.30) 52%,
    rgba(10,10,12,0) 70%);
}
.card--end::before {
  background: linear-gradient(270deg,
    rgba(10,10,12,.90) 0%,
    rgba(10,10,12,.72) 30%,
    rgba(10,10,12,.30) 52%,
    rgba(10,10,12,0) 70%);
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--amber);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: 16px;
}

.card h1, .card h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.08;
  font-size: clamp(32px, 5.2vw, 74px);
  text-shadow: 0 2px 40px rgba(10,10,12,.9);
}

/* The serif carries the feeling. This carries the argument. */
.claim {
  margin-top: 22px;
  max-width: 44ch;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.75;
  color: #C9BFAF;
  letter-spacing: .01em;
}

/* And this carries the underwriting — the technical-label voice the design already speaks. */
.spec {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--steel);
  max-width: 44ch;
}
.spec > div {
  padding: 12px 26px 0 0;
  margin-right: 26px;
  border-right: 1px solid var(--steel);
}
.spec > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.spec dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--dim);
  margin-bottom: 5px;
}
.spec dd {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--amber);
}

.scroll-hint {
  margin-top: 46px;
  font-size: 10px;
  letter-spacing: .4em;
  color: var(--muted);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .35 } 50% { opacity: 1 } }

.card--end { justify-items: end; text-align: right; }
.card--end .eyebrow::before { display: none; }
.card--end .eyebrow::after {
  content: ""; display: inline-block; width: 34px; height: 1px;
  background: var(--brass); vertical-align: middle; margin-left: 16px;
}
.card--end .spec { justify-content: flex-end; }

/* ── Skip + rail ────────────────────────────────────────────────────────────── */

.skip {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 25;
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--dim);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--steel);
  background: rgba(10,10,12,.55);
  transition: color .25s ease, border-color .25s ease, opacity .5s ease;
}
.skip:hover { color: var(--amber); border-color: var(--brass); }

.rail {
  position: fixed;
  right: clamp(16px, 2.4vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: grid;
  gap: 16px;
  justify-items: center;
  transition: opacity .5s ease;
}
.rail ul { list-style: none; display: grid; gap: 14px; }
.rail button {
  background: none; border: 0; cursor: pointer;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--steel);
  padding: 2px 4px;
  transition: color .4s ease;
}
.rail li.on button { color: var(--amber); }
.rail button:hover { color: var(--text); }
.rail__progress { width: 1px; height: 120px; background: var(--steel); position: relative; }
.rail__progress span {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--brass), var(--amber));
}

.gone { opacity: 0; pointer-events: none; }

/* ── The offer — opaque, so it slides up over the canvas ─────────────────────── */

#offer {
  position: relative;
  z-index: 15;
  background: var(--black);
  border-top: 1px solid var(--steel);
}

.band {
  padding: clamp(70px, 11vh, 130px) clamp(28px, 8vw, 140px);
  border-bottom: 1px solid var(--steel);
}
.band h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: .01em;
  margin-bottom: 26px;
}
.band .body {
  max-width: 60ch;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.8;
  color: var(--muted);
}
.band--lede .body { max-width: 52ch; font-size: clamp(15px, 1.15vw, 18px); color: #C9BFAF; }

.services {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px;
  background: var(--steel);       /* hairlines between cells */
  border: 1px solid var(--steel);
}
.service {
  background: var(--black);
  padding: clamp(26px, 3vw, 42px);
  display: grid;
  align-content: start;
}
.service__idx {
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--amber);
  margin-bottom: 22px;
}
.service h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.25;
  margin-bottom: 16px;
}
.service .body { font-size: 14px; line-height: 1.75; color: var(--muted); }
.service .spec { margin-top: 26px; max-width: none; }

.band--model .note {
  margin-top: 32px;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--dim);
}

.band--fork {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 90px);
}
.door h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.door .body { margin-bottom: 30px; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-decoration: none;
  color: var(--amber);
  border: 1px solid var(--steel);
  padding: 14px 22px;
  transition: border-color .25s ease, background .25s ease;
}
.btn:hover { border-color: var(--brass); background: rgba(185,138,69,.08); }
.btn--solid { background: rgba(185,138,69,.12); border-color: var(--brass); }
.btn--solid:hover { background: rgba(185,138,69,.2); }

.foot {
  padding: 44px clamp(28px, 8vw, 140px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.foot p { font-size: 9px; letter-spacing: .24em; color: var(--dim); }

/* ── Portrait ───────────────────────────────────────────────────────────────
   The footage is 16:9 and architectural; a cover crop on a phone keeps a narrow centre slice
   and throws the composition away. main.js sits between contain and cover (PORTRAIT_FILL) and
   anchors the picture near the top; the type then sits over its lower edge, on the scrim. */

body.is-portrait .card {
  align-content: end;
  padding-bottom: 8vh;
}

/* In portrait the type sits at the bottom, over the picture's lower edge — so the bed comes
 * from below rather than from the side. */
body.is-portrait .card::before,
body.is-portrait .card--end::before {
  background: linear-gradient(0deg,
    rgba(10,10,12,.94) 0%,
    rgba(10,10,12,.86) 30%,
    rgba(10,10,12,.45) 52%,
    rgba(10,10,12,0) 72%);
}
body.is-portrait .card h1,
body.is-portrait .card h2 { font-size: clamp(26px, 7.6vw, 40px); }
body.is-portrait .claim { margin-top: 14px; font-size: 13px; line-height: 1.65; max-width: none; }
body.is-portrait .eyebrow { margin-bottom: 14px; }
body.is-portrait .spec { margin-top: 16px; padding-top: 0; }
body.is-portrait .spec > div { padding-top: 10px; padding-right: 16px; margin-right: 16px; }
body.is-portrait .spec dd { font-size: 10px; }
body.is-portrait .scroll-hint { margin-top: 22px; }

body.is-portrait .card--end { justify-items: start; text-align: left; }
body.is-portrait .card--end .spec { justify-content: flex-start; }
body.is-portrait .card--end .eyebrow::after { display: none; }
body.is-portrait .card--end .eyebrow::before {
  content: ""; display: inline-block; width: 34px; height: 1px;
  background: var(--brass); vertical-align: middle; margin-right: 16px;
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .wordmark__tag { display: none; }
  .rail { display: none; }
  .skip { bottom: 14px; }
  .band--fork { gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint { animation: none; }
}
