: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;
  /* Newsreader, same as the firm's pages. The type is now the constant across the threshold the
   * way brass is: one voice, two worlds. Cinzel was a Roman monumental face and read theatrical
   * where this needs to read institutional — and it split the brand in half at the handoff, which
   * was the one seam a visitor actually crosses. The mono below stays: it belongs to the flight's
   * instrumentation and does not follow onto the paper. */
  --display: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;

  --header-h: 72px;
}

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

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  /* Newsreader carries an optical size axis (6-72); let the beat titles take the display cut. */
  font-optical-sizing: auto;
  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, so the header reads identically on every
   page of the site — here over the film, and inverted onto paper in paper.css. */

/* Scroll-aware glass chrome. Transparent and floating over the opening frame, then frosts to
 * glass, drops a hairline and condenses once the flight is scrubbing. main.js toggles
 * .is-scrolled. The frost keeps the wordmark and nav legible over the bright frames
 * (whitespace, compute) that a bare transparent bar would lose. */
.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);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: height .3s ease, background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  height: 60px;
  background: rgba(12,13,16,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--steel);
}

/* The chrome crosses the threshold with the content. main.js sets this once #offer clears the bar.
 * Same trick as the offer: invert the tokens, the children follow, because they are all written in
 * them. Solid rather than glass, because ink ghosts straight through translucent chrome at any
 * alpha worth having, which is the thing that caught paper.css on the firm's own pages. */
.site-header.is-on-paper {
  --text:  #1F1914;
  --muted: #6D6155;
  --steel: #DED6CE;
  --brass: #BA8745;
  --amber: #8C622C;
  background: #F8F5F2;
  border-bottom-color: var(--steel);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* The live dot is an instrument, and instruments read as instruments on a lit console, not on a
 * document. It keeps the pulse and loses the glow, which on paper just reads as a smudge. */
.site-header.is-on-paper .nav__cta { background: rgba(185,138,69,.07); }
.site-header.is-on-paper .nav__cta::before { box-shadow: none; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text);
}
/* Wordmark lockup: mark is the "O", CULUS matched to it. ROLLBACK: gap 12px | name mono 15px/.26em | mark 40/34. */
.wordmark__name {
  font-family: var(--sans);
  font-size: 40px;
  letter-spacing: .02em;
  font-weight: 500;
  line-height: 1;
}
.is-scrolled .wordmark__name { font-size: 33px; }
.wordmark__tag {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .01em;
  padding-left: 13px;
  border-left: 1px solid var(--steel);
  transition: opacity .25s ease;
}
.is-scrolled .wordmark__tag { opacity: 0; }
.wordmark__mark { transition: width .3s ease, height .3s ease; }
.is-scrolled .wordmark__mark { width: 28px; height: 28px; }

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

/* The medallion mark. Replaces the bare diamond in the header wordmark. */
.wordmark__mark {
  width: 34px; height: 34px;
  flex: none;
  display: block;
  object-fit: contain;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .25s ease;
}
.nav a:not(.nav__cta) { position: relative; }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.nav__cta):hover { color: var(--text); }
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 12px !important;
  letter-spacing: .12em;
  color: var(--amber) !important;
  border: 1px solid var(--steel);
  background: rgba(185,138,69,.05);
  padding: 10px 16px;
  border-radius: 3px;
  transition: border-color .25s ease, background .25s ease;
}
.nav__cta::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none;
  background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: cta-pulse 2.6s ease-in-out infinite;
}
@keyframes cta-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.nav__cta:hover { border-color: var(--brass); background: rgba(185,138,69,.12); }

.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 threshold. The offer, opaque, so it slides up over the canvas ───────
 *
 * This is where the flight lands, and what lands is the firm, not more film: the same content the
 * ten paper pages carry. It was still black, which meant the paper only existed for a visitor who
 * touched the nav. On the page most of them arrive at, the whole system was invisible.
 *
 * Rather than restate forty rules, the tokens invert here and every component in the layer follows,
 * because this layer is written entirely in tokens. The values are paper.css's, not new ones.
 *
 * Two things do not survive a straight remap, and are patched below:
 *   --amber is spent on TEXT in this layer (.eyebrow, .service__idx, .btn), and #E0A55B on paper
 *     is unreadable, so it lands on brass-ink at 4.96:1.
 *   --dim is the label grey. On paper it cannot go lighter than 5.54:1 and stay legible, so it
 *     takes --muted's value and --muted moves down to carry body copy.
 */

#offer {
  position: relative;
  z-index: 15;

  --black:  #F8F5F2;   /* the ground inverts. this is the paper. */
  --panel:  #F0EBE5;
  --steel:  #DED6CE;   /* every hairline in the layer */
  --text:   #1F1914;   /* ink, 16.01:1 */
  --muted:  #463D34;   /* body copy, 9.78:1 */
  --dim:    #6D6155;   /* labels, 5.54:1, the floor */
  --brass:  #BA8745;   /* rules and marks only, exactly as on paper */
  --amber:  #8C622C;   /* brass-ink, because this layer spends it on text */

  background: var(--black);
  color: var(--text);
  border-top: 1px solid var(--steel);
}

/* The layer's one hardcoded colour: a lede pitched brighter than body, which inverts to darker. */
#offer .band--lede .body { color: var(--muted); }

/* Mono is the film's voice: it is the instrument dress the flight's readouts and rail are written
 * in, and it belongs over the canvas. This layer inherited it, so the offer landed on paper still
 * wearing eyebrows, datasheets and a disclosure in JetBrains Mono, which is the exact costume the
 * firm's ten pages took off. An advisory does not publish equipment specs. Scoped to #offer, so
 * the flight above keeps every bit of its instrumentation. */
#offer .mono { font-family: var(--sans); }
#offer .eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
#offer .note { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; }
#offer .spec dt {
  font-family: var(--sans); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim);
}
#offer .spec dd {
  font-family: var(--sans); font-size: 14px; letter-spacing: 0;
  text-transform: none; color: var(--text);
}

/* Buttons in ink, not brass. Same reason paper.css gives: brass measures 2.91:1 here and has no
 * contrast to spend on a control. Solid fills to ink and knocks the label out to paper. */
#offer .btn { color: var(--text); border-color: var(--text); background: transparent; }
#offer .btn:hover { border-color: var(--text); background: var(--text); color: var(--black); }
#offer .btn--solid { background: var(--text); border-color: var(--text); color: var(--black); }
#offer .btn--solid:hover { background: var(--amber); border-color: var(--amber); color: var(--black); }

.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; }
}
