:root {
  --bg: #0a0a0a;
  --bg-2: #101010;
  --line: rgba(255,255,255,.14);
  --line-soft: rgba(255,255,255,.08);
  --text: #f5f5f4;
  --muted: #9a9a98;
  --dim: #6b6b69;
  --gold: #c9a35f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; margin: 0; line-height: 1.04; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(10,10,10,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { width: 26px; height: 26px; display: block; }
.brand-name { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.12rem; letter-spacing: .14em; }
.brand-sub { font-size: .68rem; color: var(--muted); letter-spacing: .3em; text-transform: uppercase; }
.nav-cta {
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  padding: .68rem 1.4rem; border: 1px solid var(--line); border-radius: 0;
  transition: background .2s, color .2s, border-color .2s;
}
.nav-cta:hover { background: #fff; color: #0a0a0a; border-color: #fff; }

/* ---------- SCREENS ---------- */
.screen { min-height: 100svh; display: flex; border-bottom: 1px solid var(--line-soft); }

.split { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.split-copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 1.6rem; padding: 7rem clamp(1.4rem, 5vw, 4.5rem) 4rem;
}
.split-media { position: relative; overflow: hidden; }
.split-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(1) contrast(1.05);
}
.split-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 22%);
}
.split-rev .split-media::after { background: linear-gradient(270deg, var(--bg) 0%, transparent 22%); }
.media-caption {
  position: absolute; bottom: 1.1rem; right: 1.3rem; z-index: 2;
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.55);
}

.eyebrow {
  font-size: .7rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: .9rem;
}
.eyebrow::before { content: ''; width: 42px; height: 1px; background: var(--gold); }

.screen h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); letter-spacing: -.02em; }
.screen h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.02em; }
.screen h1 em, .screen h2 em { font-style: italic; font-weight: 500; }
.screen h2 em { color: var(--gold); }
.underline { border-bottom: 2px solid var(--gold); padding-bottom: .04em; }

.lede { font-size: clamp(.98rem, 1.6vw, 1.08rem); color: var(--muted); line-height: 1.75; max-width: 480px; }
.lede strong { color: var(--text); font-weight: 600; }

/* ---------- AUDIT FORM (two-step) ---------- */
.audit { width: 100%; max-width: 480px; }
.audit .step { display: flex; flex-direction: column; gap: .9rem; }
.audit .step[hidden] { display: none; }
.audit label {
  font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); line-height: 1.8;
}
.audit .row { display: flex; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.audit input {
  flex: 1 1 auto; min-width: 0; font-size: 1rem; padding: 1.05rem 1.15rem;
  background: transparent; border: 0; color: var(--text); font-family: inherit; outline: none;
}
.audit input::placeholder { color: var(--dim); }
.audit .row:focus-within { border-color: rgba(255,255,255,.55); }
.audit button[type="submit"] {
  font-family: 'Inter'; font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  background: #fff; color: #0a0a0a; border: 0; padding: 0 1.6rem; cursor: pointer;
  transition: opacity .2s; white-space: nowrap;
}
.audit button[type="submit"]:hover { opacity: .85; }
.audit button[type="submit"]:disabled { opacity: .4; cursor: wait; }
.chosen { font-size: .82rem; color: var(--muted); display: flex; gap: .8rem; align-items: baseline; }
.chosen b { color: var(--text); font-weight: 600; word-break: break-all; }
.chosen .change {
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid var(--line); cursor: pointer; flex-shrink: 0;
}
.chosen .change:hover { color: var(--text); }
.form-error { color: #d9d9d7; font-size: .85rem; min-height: 1.2em; border-left: 2px solid #fff; padding-left: .7rem; margin-top: .8rem; }
.form-error:empty { border: 0; padding: 0; }
.form-note { font-size: .74rem; color: var(--dim); letter-spacing: .04em; line-height: 1.7; }
.form-note a { color: var(--gold); border-bottom: 1px solid rgba(201,163,95,.4); }
.form-note a:hover { color: var(--text); }

/* progress */
.progress-box { display: none; margin-top: .9rem; }
.progress-box.active { display: block; }
.progress-bar { height: 2px; background: var(--line-soft); overflow: hidden; }
.progress-bar > div { height: 100%; width: 0%; background: var(--gold); transition: width .6s ease; }
.progress-label {
  font-size: .68rem; color: var(--muted); margin-top: .75rem;
  letter-spacing: .24em; text-transform: uppercase;
}

/* ---------- STATS ---------- */
.stats { width: 100%; max-width: 480px; border-top: 1px solid var(--line); }
.stat { display: flex; align-items: baseline; gap: 1.4rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line-soft); }
.stat b { font-family: 'Space Grotesk'; font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; min-width: 5.2rem; }
.stat span { font-size: .84rem; color: var(--muted); line-height: 1.55; }

/* ---------- BASICS LIST ---------- */
.basics { width: 100%; max-width: 520px; border-top: 1px solid var(--line); counter-reset: b; }
.basic { display: grid; grid-template-columns: 3rem 1fr; gap: .2rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.basic::before {
  counter-increment: b; content: "0" counter(b);
  grid-row: 1 / span 2; align-self: start;
  font-family: 'Space Grotesk'; font-size: .8rem; color: var(--gold); letter-spacing: .1em; padding-top: .2rem;
}
.basic h3 { font-size: .98rem; font-weight: 600; letter-spacing: .01em; }
.basic p { font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* ---------- ENGINES ---------- */
.engines { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }

/* ---------- FINAL SCREEN ---------- */
.finale { position: relative; align-items: center; justify-content: center; }
.finale-bg { position: absolute; inset: 0; }
.finale-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.62); }
.finale-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 90% 90% at 50% 50%, rgba(10,10,10,.55), rgba(10,10,10,.92)); }
.finale-inner {
  position: relative; z-index: 2; width: 100%; max-width: 640px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6rem;
  padding: 7rem clamp(1.4rem, 5vw, 3rem) 8.5rem;
}
.finale .lede { max-width: 520px; }
.finale .audit { text-align: left; }

.mini-footer {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 1.2rem clamp(1.2rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: .5rem; align-items: center;
  border-top: 1px solid var(--line-soft); background: rgba(10,10,10,.5);
}
.mini-footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.mini-footer .links a:hover { color: var(--text); }
.mini-footer .fine { font-size: .6rem; color: var(--dim); text-align: center; max-width: 760px; line-height: 1.6; }

/* ---------- MOBILE ---------- */
@media (max-width: 880px) {
  .screen { min-height: 0; }
  .split { grid-template-columns: 1fr; }
  .split-media { position: relative; height: 240px; order: -1; }
  .split-media::after, .split-rev .split-media::after {
    background: linear-gradient(180deg, rgba(10,10,10,.25), transparent 40%, var(--bg) 100%);
  }
  .split-copy { padding: 2.2rem 1.4rem 3rem; gap: 1.3rem; }
  #s1 .split-copy { padding-top: 1.2rem; }
  #s1 .split-media { height: 300px; }
  .screen h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .screen h2 { font-size: clamp(1.7rem, 7.5vw, 2.3rem); }
  .brand-sub { display: none; }
  .nav { padding: .85rem 1.2rem; }
  .nav-cta { padding: .55rem 1rem; letter-spacing: .16em; }
  .audit .row { flex-direction: column; }
  .audit input { padding: 1rem 1.05rem; border-bottom: 1px solid var(--line); }
  .audit button[type="submit"] { padding: 1.05rem; }
  .finale { flex-direction: column; }
  .finale-inner { padding: 4.5rem 1.4rem 3rem; }
  .mini-footer { position: static; width: 100%; background: var(--bg); }
  .media-caption { display: none; }
}
