:root {
  --bg: #07080b;
  --bg-2: #0d0f14;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ecebe6;
  --muted: #8b8d94;
  --gold: #d8b46a;
  --gold-2: #f3dca3;
  --bid: #4fd1a5;
  --ask: #f0716b;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold); }
.mono { font-family: var(--mono); }
::selection { background: var(--gold); color: #000; }

/* film grain */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-5%,3%); }
  40% { transform: translate(3%,-6%); }
  60% { transform: translate(-4%,5%); }
  80% { transform: translate(6%,-2%); }
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; border-radius: 4px; }
.brand-name { font-family: "IBM Plex Sans", var(--sans); font-weight: 500; font-size: 21px; color: #fff; }
.brand-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); margin-left: 10px;
  vertical-align: middle;
}
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 18px;
  transition: border-color .2s, background .2s !important;
}
.nav-cta:hover { border-color: var(--gold); background: rgba(216,180,106,.08); }

/* HERO */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
}
#book { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 15% 55%, rgba(7,8,11,.92), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--bid);
  box-shadow: 0 0 0 0 rgba(79,209,165,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,209,165,.55); }
  70% { box-shadow: 0 0 0 12px rgba(79,209,165,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,209,165,0); }
}
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 10vw, 148px); line-height: .92; letter-spacing: -.02em;
}
h1 em, h2 em {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 45%, var(--gold) 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s ease-in-out infinite;
  padding-right: .08em;
}
@keyframes sheen { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.lede { margin-top: 32px; font-size: clamp(17px, 1.5vw, 20px); color: #b9bac0; max-width: 520px; font-weight: 300; }
.hero-ctas { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: transform .25s, background .25s, border-color .25s, box-shadow .25s;
  cursor: pointer; border: 1px solid transparent; font-family: var(--sans);
}
.btn-primary { background: var(--gold); color: #0a0a0a; }
.btn-primary:hover { background: var(--gold-2); box-shadow: 0 10px 40px -10px rgba(216,180,106,.6); transform: translateY(-1px); }
.btn-primary .arrow { transition: transform .25s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

.hero-readout {
  position: absolute; z-index: 2; right: var(--pad); bottom: 56px;
  display: grid; grid-template-columns: repeat(4, auto); gap: 6px 28px;
  font-size: 12px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(13,15,20,.6); backdrop-filter: blur(10px);
}
.hero-readout div { display: flex; flex-direction: column; gap: 4px; }
.k { color: var(--muted); font-size: 10px; letter-spacing: .2em; }
.v { font-size: 15px; font-variant-numeric: tabular-nums; }
.bid { color: var(--bid); }
.ask { color: var(--ask); }

/* TICKER */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 18px 0;
  font-size: 13px; letter-spacing: .3em; color: var(--muted);
}
.ticker-track { display: inline-flex; gap: 40px; animation: tick 40s linear infinite; }
.ticker i { color: var(--gold); font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { padding: clamp(90px, 14vw, 180px) var(--pad); position: relative; }
.section-head { margin-bottom: 72px; }
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -.015em;
}
.body { color: #a7a8ae; font-size: 17px; max-width: 460px; margin-top: 28px; font-weight: 300; }

.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.card {
  position: relative; padding: 40px 30px 46px; background: var(--bg);
  border-right: 1px solid var(--line); transition: background .4s;
  overflow: hidden;
}
.card:last-child { border-right: 0; }
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(216,180,106,.12), transparent 50%);
}
.card:hover::before { opacity: 1; }
.card-ico {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--gold); font-size: 18px; margin-bottom: 64px;
}
.card h3 { font-weight: 500; font-size: 19px; margin-bottom: 12px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15px; }

.section-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.coverage-list { list-style: none; border-top: 1px solid var(--line); }
.coverage-list li {
  display: flex; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .35s;
}
.coverage-list li:hover { padding-left: 14px; }
.coverage-list li:hover .idx { color: var(--gold); border-color: var(--gold); }
.idx {
  flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 12px; color: var(--muted); transition: .3s;
}
.coverage-list h4 { font-weight: 500; font-size: 20px; margin-bottom: 6px; }
.coverage-list p { color: var(--muted); font-size: 15px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 0 28px 0 0; position: relative; }
.steps li::before {
  content: ""; display: block; height: 1px; margin-bottom: 30px;
  background: linear-gradient(90deg, var(--gold), var(--line) 40%);
}
.steps .n { color: var(--gold); font-size: 13px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 10px 0 12px; }
.steps p { color: var(--muted); font-size: 15px; }

/* CONTACT */
.contact {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 60% at 85% 30%, rgba(216,180,106,.07), transparent 70%);
}
.contact-alt { margin-top: 48px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.contact-alt a { color: var(--gold); border-bottom: 1px solid rgba(216,180,106,.3); align-self: flex-start; padding-bottom: 2px; }

.intake {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 26px;
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.8);
}
fieldset { border: 0; }
legend { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 14px var(--sans); color: var(--text); background: transparent;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px;
  cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--text); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #0a0a0a; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; background: rgba(0,0,0,.25); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 24px 16px 10px; font: 16px var(--sans); outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field span {
  position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: 15px;
  pointer-events: none; transition: all .18s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(216,180,106,.12); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span {
  top: 8px; font-size: 11px; letter-spacing: .06em; color: var(--gold);
}
.field.err input { border-color: var(--ask); }
.hp { position: absolute; left: -9999px; opacity: 0; }

.btn-submit { align-self: flex-start; padding: 18px 30px; }
.btn-submit[disabled] { opacity: .6; cursor: wait; }
.form-status { font-size: 13px; min-height: 1em; color: var(--muted); }
.form-status.ok { color: var(--bid); }
.form-status.bad { color: var(--ask); }

.intake.sent { align-items: center; justify-content: center; text-align: center; min-height: 420px; }
.sent-mark {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; color: var(--gold); font-size: 26px; margin-bottom: 8px;
}
.intake.sent h3 { font-family: var(--serif); font-weight: 400; font-size: 44px; }
.intake.sent p { color: var(--muted); }

/* FOOTER */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 40px var(--pad); border-top: 1px solid var(--line);
}
.small { font-size: 12px; color: var(--muted); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card:nth-child(2) { border-right: 0; }
  .card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-split, .contact { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 0; }
  .hero-readout { display: none; }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .card-ico { margin-bottom: 32px; }
  .row, .steps { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  #book { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.def .serif-i { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold); letter-spacing: 0; }
