/* Crane Financial, Sales Position. One theme (dark), one accent (gold), one radius (6px). */
:root {
  --bg: #070605;
  --surface: #110f0b;
  --ink: #f4efe6;
  --ink-soft: #a9a092;
  --gold: #d8b25a;
  --gold-hi: #f0dc9c;
  --gold-ink: #15100a;
  --line: rgba(216, 178, 90, 0.2);
  --line-soft: rgba(244, 239, 230, 0.1);
  --r: 6px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* z scale: 1 scene planes, 5 sticky stage, 20 nav, 30 grain */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 30; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, blockquote, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 48px, 1280px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 40; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--gold); color: var(--gold-ink);
  font: 700 1rem/1 var(--text); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 30px -12px rgba(216, 178, 90, 0.55);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 1.0625rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-stuck { background: rgba(7, 6, 5, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.nav-brand { min-height: 44px; display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 0.9375rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.nav-brand img { width: 36px; }

/* HERO */
.hero { position: relative; min-height: 100dvh; padding: calc(var(--nav-h) + 40px) 0 64px; overflow: clip; display: flex; align-items: center; }
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(216, 178, 90, 0.16), transparent 70%),
    radial-gradient(40% 40% at 8% 96%, rgba(216, 178, 90, 0.08), transparent 70%);
}
.hero-emblem { position: absolute; z-index: 1; right: -6vw; top: 4vh; width: min(62vh, 46vw); opacity: 0.13; pointer-events: none; will-change: transform; }
.hero-dust { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(28px, 4.5vh, 52px); align-items: end; }
.hero-title { grid-column: 1 / -1; font: 800 clamp(2.5rem, 4.9vw, 4.75rem)/1.02 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero-title .line > span { display: block; will-change: transform; }
.hero-title em { font-style: normal; color: var(--gold); }
.hero-side { grid-column: 1 / span 4; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 6px; }
.hero-sub { color: var(--ink-soft); font-size: 1.1875rem; line-height: 1.5; max-width: 30ch; }
.terms { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 0.9375rem; color: var(--ink-soft); }
.terms li + li { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); }
.hero-video { grid-column: 6 / -1; will-change: transform; }

/* Player facade */
.player {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font: inherit; text-align: left;
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.player img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.player:hover img { transform: scale(1.035); }
.player-tall { aspect-ratio: 720 / 760; max-width: 400px; }
.player-ui { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; }
.play {
  position: relative; width: 60px; height: 60px; flex: none; border-radius: 50%;
  background: rgba(7, 6, 5, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--gold);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.play::after { content: ""; position: absolute; left: 53%; top: 50%; width: 16px; height: 18px; transform: translate(-50%, -50%); background: var(--gold); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: background-color 0.3s var(--ease); }
.player:hover .play { background: var(--gold); transform: scale(1.06); }
.player:hover .play::after { background: var(--gold-ink); }
.player:active .play { transform: scale(0.96); }
.player-meta { padding: 8px 12px; border-radius: var(--r); background: rgba(7, 6, 5, 0.72); font-weight: 500; font-size: 0.9375rem; line-height: 1.2; }
.player-meta i { font-style: normal; color: var(--gold); font-variant-numeric: tabular-nums; }
.player-meta i:not(:only-child) { margin-left: 8px; }
.player-live { position: relative; width: 100%; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.player-live.player-tall { max-width: 400px; }
.player-live wistia-player { display: block; width: 100%; height: 100%; }

/* APPLICATION */
.apply { padding: clamp(88px, 14vh, 160px) 0; border-top: 1px solid var(--line-soft); }
.apply-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.apply-copy { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + 48px); }
.apply-copy h2 { font: 800 clamp(2.25rem, 3.6vw, 3.5rem)/1.04 var(--display); letter-spacing: -0.02em; }
.apply-copy p { margin-top: 20px; color: var(--ink-soft); max-width: 28ch; }
.apply-mark { margin-top: 56px; width: 84px; opacity: 0.5; }
.apply-form { grid-column: 6 / -1; background: var(--surface); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), 0 60px 120px -50px rgba(216, 178, 90, 0.18); overflow: hidden; }
.tf { width: 100%; height: 640px; }

/* RESULTS */
.results { padding: clamp(88px, 14vh, 160px) 0 0; border-top: 1px solid var(--line-soft); }
.results-title { font: 800 clamp(2.25rem, 3.6vw, 3.5rem)/1.04 var(--display); letter-spacing: -0.02em; max-width: 14ch; }
.ledger { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.ledger-stage { grid-column: 1 / span 6; position: sticky; top: 0; height: 100dvh; z-index: 5; display: flex; flex-direction: column; justify-content: center; }
.odo { font: 800 clamp(4.5rem, 8.6vw, 8.25rem)/1 var(--display); letter-spacing: 0; color: var(--gold); overflow: hidden; margin-left: -0.06em; }
.odo-inner, .odo-cur { transition: transform 0.9s var(--ease); }
.odo-inner { display: flex; }
.odo-cur, .odo-col { display: block; width: 0.62em; height: 1.04em; text-align: center; }
.odo-sep { display: block; width: 0.26em; height: 1.04em; text-align: center; }
.odo-col { overflow: hidden; transition: opacity 0.5s var(--ease); }
.odo-col.is-off { opacity: 0; }
.odo-strip { display: block; transition: transform 1.2s var(--ease); will-change: transform; }
.odo-strip b { display: block; height: 1.04em; line-height: 1.04; font-weight: inherit; }
.stage-what { margin-top: 18px; font: 700 clamp(1.25rem, 1.8vw, 1.625rem)/1.25 var(--display); max-width: 22ch; min-height: 2.5em; }
.stage-from { margin-top: 10px; color: var(--ink-soft); font-size: 1.0625rem; }
.stage-what, .stage-from { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.is-swapping .stage-what, .is-swapping .stage-from { opacity: 0; transform: translateY(8px); }
.stage-rail { margin-top: 36px; width: min(320px, 70%); height: 1px; background: var(--line-soft); }
.stage-rail span { display: block; height: 1px; background: var(--gold); transform-origin: left center; transform: scaleX(0.111); transition: transform 0.9s var(--ease); }

.ledger-list { grid-column: 8 / -1; padding: 22vh 0 26vh; }
.entry { padding: 9vh 0; transition: opacity 0.6s var(--ease); }
.js .entry { opacity: 0.28; }
.js .entry.is-active { opacity: 1; }
.entry h3 { margin-top: 26px; font: 700 clamp(1.375rem, 1.9vw, 1.75rem)/1.2 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.entry blockquote { margin-top: 14px; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.6; }
.who { margin-top: 18px; font-size: 0.9375rem; color: var(--ink-soft); }
.who b { color: var(--ink); font-weight: 700; margin-right: 8px; }
.who span { display: block; color: var(--gold); margin-top: 2px; }

/* CLOSE */
.close { position: relative; padding: clamp(120px, 22vh, 240px) 0; overflow: clip; border-top: 1px solid var(--line-soft); }
.close::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 50% 105%, rgba(216, 178, 90, 0.2), transparent 70%); }
.close::after { content: ""; position: absolute; left: 50%; top: 50%; width: min(70vh, 80vw); aspect-ratio: 900 / 931; transform: translate(-50%, -50%); background: url("assets/emblem.png") center / contain no-repeat; opacity: 0.07; pointer-events: none; }
.close-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.close-quote { font: 800 clamp(2.25rem, 5.4vw, 5rem)/1.06 var(--display); letter-spacing: -0.025em; max-width: 17ch; text-wrap: balance; }
.close-quote .w { display: inline-block; }
.close-who { margin-top: 28px; color: var(--ink-soft); }
.close .btn { margin-top: 44px; }

/* FOOTER */
.foot { border-top: 1px solid var(--line-soft); padding: 56px 0 64px; color: var(--ink-soft); font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 48px; align-items: start; }
.foot-text p + p { margin-top: 16px; }
.foot-links a { display: inline-block; padding: 12px 0; margin-right: 24px; color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--line); }
.foot-links a:hover { text-decoration-color: var(--gold); }
.fine { max-width: 78ch; font-size: 0.875rem; line-height: 1.6; }

/* Phone dock: the one action, back in reach during the long proof section */
.dock { display: none; }

/* Motion start states: only when the head script has confirmed motion is welcome */
.motion .hero-title .line > span { transform: translateY(112%); }
.motion [data-rise], .motion .hero-video { opacity: 0; transform: translateY(28px); }
.motion .hero-emblem { opacity: 0; }
.motion [data-reveal] { opacity: 0; transform: translateY(32px); }

/* Tablet and phone */
@media (max-width: 900px) {
  body { font-size: 1.0625rem; }
  .wrap { width: min(100% - 40px, 640px); }
  .nav { padding-inline: 20px; }
  .nav-brand span { display: none; }
  .hero { align-items: flex-start; padding: calc(var(--nav-h) + 28px) 0 56px; min-height: 0; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; row-gap: 28px; }
  .hero-title { font-size: clamp(2.125rem, 9.2vw, 3.25rem); line-height: 1.04; }
  .hero-title .line { display: inline; overflow: visible; padding: 0; margin: 0; }
  .hero-title .line > span { display: inline; }
  .motion .hero-title .line > span { transform: none; }
  .motion .hero-title { opacity: 0; transform: translateY(24px); }
  .hero-emblem { width: 88vw; right: -30vw; top: 2vh; opacity: 0.1; }
  .hero-sub { max-width: none; font-size: 1.125rem; }
  .hero-side .btn { width: 100%; }
  .player-ui { left: 12px; bottom: 12px; gap: 10px; }
  .play { width: 52px; height: 52px; }

  .apply-grid { display: block; }
  .apply-copy { position: static; }
  .apply-copy p { max-width: none; }
  .apply-mark { display: none; }
  .apply-form { margin-top: 32px; }
  .tf { height: 600px; }

  .ledger { display: block; margin-top: 24px; }
  .ledger-stage { top: var(--nav-h); height: auto; padding: 14px 0 16px; margin-inline: -20px; padding-inline: 20px; background: rgba(7, 6, 5, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .odo { font-size: clamp(3rem, 15vw, 4.25rem); }
  .stage-what { margin-top: 6px; font-size: 1.0625rem; min-height: 0; max-width: none; }
  .stage-from, .stage-rail { display: none; }
  .ledger-list { padding: 8px 0 72px; }
  .entry { padding: 44px 0; }
  .js .entry { opacity: 1; }
  .player-tall, .player-live.player-tall { max-width: 300px; }

  .dock {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 20;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(7, 6, 5, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(105%); transition: transform 0.5s var(--ease);
  }
  .dock.is-on { transform: none; }
  .nav .btn { transition: opacity 0.3s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease); }
  .dock-on .nav .btn { opacity: 0; pointer-events: none; }
  .dock .btn { width: 100%; }
  .foot { padding-bottom: 120px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid > img { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .entry { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-stuck, .ledger-stage { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}
