/* ==========================================================================
   STRATTON — recreated from the Claude Design canvas (Stratton.dc.html)
   Palette, type scale, spacing and motion are transcribed 1:1 from the design.
   ========================================================================== */

:root {
  /* Grounds */
  --bg:            #0a0908;   /* base / narrative / pair / cta */
  --bg-firm:       #0d0c0a;   /* firm / broker code */
  --bg-desk:       #111009;   /* broker desk / training */
  --bg-card:       #141310;
  --bg-card-hover: #1a1912;
  --bg-footer:     #080706;

  /* Ink */
  --ink:        #ece6d8;
  --ink-warm:   #dcd4bd;
  --ink-soft:   #b8b2a0;
  --ink-muted:  #9b968a;
  --ink-dim:    #6b6759;
  --ink-fine:   #4d4a40;
  --ink-nav:    #c9c4b6;

  /* Accents */
  --green:  #3ea86a;
  --amber:  #c9a24a;
  --retail: #484338;

  /* Hairlines */
  --line:        rgba(236, 230, 216, 0.08);
  --line-2:      rgba(236, 230, 216, 0.10);
  --line-3:      rgba(236, 230, 216, 0.12);
  --line-strong: rgba(236, 230, 216, 0.16);

  /* Type */
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --serif:   'Newsreader', Georgia, 'Times New Roman', serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Rhythm */
  --gutter: 8vw;
}

/* --------------------------------------------------------------- reset -- */

*,
*::before,
*::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  cursor: none;
}

body {
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: #2f4a37; color: var(--ink); }

h2, h3, p { margin: 0; }

button { font: inherit; cursor: none; }

/* ------------------------------------------------------------ keyframes -- */

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink-cursor {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* --------------------------------------------------------------- cursor -- */

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
  transform: translate3d(-100px, -100px, 0);
}

.cursor-dot.is-hidden { width: 0; height: 0; }

.cursor-label {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--bg);
  background: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  mix-blend-mode: difference;
  transform: translate3d(-200px, -200px, 0);
  display: none;
}

.cursor-label.is-on { display: block; }

/* ---------------------------------------------------------------- grain -- */

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.05;
  pointer-events: none;
  z-index: 9998;
}

/* ----------------------------------------------------------------- page -- */

.page {
  position: relative;
  width: 100%;
  background: var(--bg);
}

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(94vw, 980px);
  padding: 12px 14px 12px 26px;
  background: rgba(20, 19, 16, 0.35);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(236, 230, 216, 0.14);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav__brand {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-nav);
  opacity: 0.9;
  white-space: nowrap;
  transition: color 0.25s, opacity 0.25s;
}

.nav__links a:hover { color: var(--ink); opacity: 1; }

/* Right-hand cluster: X link + CTA on desktop, X link + burger on mobile. */
.nav__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__x {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ink-nav);
  opacity: 0.9;
  transition: color 0.25s, opacity 0.25s;
}

/* 16px glyph, 38px tap target — same as the burger, without disturbing layout. */
.nav__x::after {
  content: '';
  position: absolute;
  inset: -11px;
}

.nav__x:hover { color: var(--ink); opacity: 1; }

.nav__x svg { width: 100%; height: 100%; display: block; }

.nav__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(236, 230, 216, 0.08);
  border: 1px solid rgba(236, 230, 216, 0.22);
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s;
}

.nav__cta:hover {
  background: rgba(236, 230, 216, 0.2);
  border-color: rgba(236, 230, 216, 0.4);
}

.nav__burger {
  display: none;
  width: 38px;
  height: 38px;
  background: rgba(236, 230, 216, 0.08);
  border: 1px solid rgba(236, 230, 216, 0.22);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
}

/* ---------------------------------------------------------- mobile menu -- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.menu[hidden] { display: none; }

.menu a {
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: 2px;
  color: var(--ink);
}

.menu__cta {
  margin-top: 10px;
  font-family: var(--mono) !important;
  font-size: 13px !important;
  letter-spacing: 1.4px !important;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(236, 230, 216, 0.1);
  border: 1px solid rgba(236, 230, 216, 0.25);
}

.menu__close {
  position: absolute;
  top: 26px;
  right: 26px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  /* Stand-in ground so the composition holds if the reel is not yet in place */
  background:
    radial-gradient(120% 90% at 50% 18%, #1b1913 0%, #0f0e0b 55%, #0a0908 100%);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 9, 8, 0.25) 0%,
    rgba(10, 9, 8, 0.05) 30%,
    rgba(10, 9, 8, 0.05) 70%,
    rgba(10, 9, 8, 0.95) 100%
  );
}

/* --------------------------------------------------------- scroll reveal -- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------- 01 · THE FIRM -- */

.firm {
  position: relative;
  padding: 170px var(--gutter) 150px;
  background: var(--bg-firm);
}

.firm__meta {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.firm__meta--tl { top: 36px; left: var(--gutter); }
.firm__meta--br { bottom: 36px; right: var(--gutter); text-align: right; }

.firm__body { max-width: 900px; }

.firm__title {
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: 1px;
  margin: 0 0 28px;
  color: var(--ink);
  font-weight: 400;
}

.firm__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--ink-soft);
  max-width: 560px;
}

/* ------------------------------------------------- 02 · NARRATIVE / 1% -- */

.narrative {
  position: relative;
  padding: 150px var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.narrative__head {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 100px;
}

.narrative__h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 72px);
  letter-spacing: 1px;
  margin: 0 0 18px;
  color: var(--ink);
}

.narrative__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ink-muted);
  margin: 0 0 46px;
}

.narrative__h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 150px);
  letter-spacing: 1px;
  color: var(--ink);
}

.narrative__copy {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-muted);
  max-width: 520px;
  margin: 36px auto 0;
  line-height: 1.6;
}

/* Client classification bars */

.bars {
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--mono);
}

.bars__label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar + .bar { margin-top: 16px; }

.bar__name { width: 64px; font-size: 12px; color: var(--ink-muted); }
.bar__name--bright { color: var(--ink-warm); }

.bar__track {
  flex: 1;
  height: 10px;
  background: rgba(236, 230, 216, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  width: 0;
  transition: width 1.4s var(--ease);
}

.bar__fill--retail { background: var(--retail); }
.bar__fill--target { background: var(--green); transition-delay: 0.2s; }

.narrative.is-visible .bar__fill--retail { width: 99%; }
.narrative.is-visible .bar__fill--target { width: 1%; }

.bar__value {
  width: 44px;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: right;
}

.bar__value--green { color: var(--green); }

.narrative__foot { text-align: center; margin-top: 90px; }

.narrative__kicker {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 1px;
  color: var(--ink);
}

.narrative__kicker--green { color: var(--green); }

/* ------------------------------------------------ 03 · THE BROKER DESK -- */

.desk {
  position: relative;
  padding: 140px var(--gutter) 120px;
  background: var(--bg-desk);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.desk__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: 1px;
  margin: 0 0 60px;
  color: var(--ink);
}

.desk__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  margin-bottom: 40px;
}

.log {
  background: var(--bg-card);
  padding: 24px;
  font-family: var(--mono);
  transition: background 0.3s, transform 0.3s;
}

.log:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.log__row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ink-dim);
  margin-bottom: 14px;
}

.log__client {
  font-size: 13px;
  color: var(--ink-warm);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.log__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex: none;
}

/* Ticker */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 14px 0;
}

.ticker__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
}

.ticker__track span { padding: 0 26px; }

/* -------------------------------------------------- 04 · TRAINING FILM -- */

.training {
  position: relative;
  padding: 150px var(--gutter);
  background: var(--bg-desk);
  border-top: 1px solid var(--line);
}

.training__meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.training__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 72px);
  letter-spacing: 1px;
  margin: 0 0 18px;
  color: var(--ink);
  max-width: 820px;
}

.training__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ink-muted);
  margin: 0 0 50px;
  max-width: 560px;
}

.training__frame {
  max-width: 900px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}

.training__stage {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #17150f 0%, #0c0b09 100%);
}

.training__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  cursor: auto;
}

.training__badge {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ink);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* ------------------------------------------------------------ 05 · PAIR -- */

.pair {
  position: relative;
  padding: 150px var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.pair__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 58px);
  letter-spacing: 1px;
  margin: 0 0 60px;
  max-width: 760px;
  line-height: 1.05;
  color: var(--ink);
}

.card {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  max-width: 820px;
  overflow: hidden;
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 34px;
  border-bottom: 1px solid var(--line-3);
  background: rgba(236, 230, 216, 0.03);
}

.card__pair {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 1px;
  color: var(--ink);
}

.card__note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--ink-dim);
  text-align: right;
}

.card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  font-family: var(--mono);
}

.cell { padding: 26px 34px; }
.cell--r { border-right: 1px solid var(--line-2); }
.cell--b { border-bottom: 1px solid var(--line-2); }
.cell--full { grid-column: 1 / -1; }

.cell__k {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.cell__v { font-size: 15px; color: var(--ink-warm); }

.cell__v--addr {
  font-size: 14px;
  color: var(--ink-muted);
  word-break: break-all;
}

/* ----------------------------------------------- 06 · THE BROKER CODE -- */

.code {
  position: relative;
  padding: 150px var(--gutter);
  background: var(--bg-firm);
  border-top: 1px solid var(--line);
}

.code__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 58px);
  letter-spacing: 1px;
  margin: 0 0 70px;
  color: var(--ink);
}

.code__list { display: flex; flex-direction: column; }

.rule {
  display: flex;
  gap: 34px;
  padding: 30px 0;
  border-top: 1px solid var(--line-3);
  transition: background 0.3s, padding-left 0.3s;
}

.rule--last { border-bottom: 1px solid var(--line-3); }

.rule:hover {
  background: rgba(236, 230, 216, 0.03);
  padding-left: 14px;
}

.rule__n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-dim);
  padding-top: 6px;
  flex: none;
}

.rule__t {
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: 0.5px;
  color: var(--ink);
}

/* ------------------------------------------------------------- 07 · CTA -- */

.cta {
  position: relative;
  padding: 170px var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 9vw, 120px);
  letter-spacing: 1px;
  margin: 0 0 26px;
  color: var(--ink);
}

.cta__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ink-muted);
  margin: 0 0 54px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 44px;
}

.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  padding: 18px 34px;
  border-radius: 999px;
}

.btn--solid {
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn--solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn--ghost {
  background: rgba(236, 230, 216, 0.06);
  border: 1px solid rgba(236, 230, 216, 0.25);
  color: var(--ink);
  transition: transform 0.25s, border-color 0.25s;
}

.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(236, 230, 216, 0.5);
}

.cta__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--ink-muted);
}

.cta__status .dot { width: 7px; height: 7px; }

/* --------------------------------------------------------------- footer -- */

.footer {
  position: relative;
  padding: 50px var(--gutter);
  background: var(--bg-footer);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--ink);
}

.footer__tag,
.footer__links {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
}

.footer__links { display: flex; gap: 22px; letter-spacing: 1.4px; }
.footer__links a { transition: color 0.25s; }
.footer__links a:hover { color: var(--ink); }

.disclaimer {
  padding: 22px var(--gutter) 40px;
  background: var(--bg-footer);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.5px;
  color: var(--ink-fine);
  line-height: 1.6;
  max-width: 900px;
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 860px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav { justify-content: space-between; gap: 12px; }
}

@media (min-width: 861px) {
  .menu { display: none !important; }
}

/* Touch / no-hover pointers: hand the system cursor back and drop the dot. */
@media (hover: none), (pointer: coarse) {
  html, body, button { cursor: auto; }
  .cursor-dot, .cursor-label { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  .dot { animation: none; }
  .hero__video { transform: none !important; }
  .bar__fill { transition: none; }
}
