:root {
  --acid: #b7ff56;
  --acid-deep: #79c91e;
  --paper: #f4f0e7;
  --paper-2: #ebe5d9;
  --ink: #11130f;
  --muted: #666a60;
  --line: #c9c4b9;
  --orange: #ff6947;
  --blue: #85a7ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }

.nav { height: 70px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(244,240,231,.9); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.wordmark { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.wordmark span { color: var(--orange); font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { font-size: 13px; font-weight: 600; text-decoration: none; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border: 1px solid var(--ink); background: var(--acid); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.button:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.button-small { padding: 9px 15px; box-shadow: 3px 3px 0 var(--ink); }
.button-large { padding: 16px 28px; font-size: 16px; }

.hero { min-height: calc(100vh - 70px); display: grid; grid-template-columns: minmax(0,1.2fr) minmax(360px,.8fr); position: relative; overflow: hidden; border-bottom: 1px solid var(--ink); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .2; background-image: linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right,#000,transparent 68%); }
.hero-inner { padding: clamp(72px,10vw,140px) clamp(24px,7vw,110px); position: relative; z-index: 1; }
.eyebrow,.kicker { margin: 0 0 24px; font-family: "DM Mono",monospace; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,105,71,.17); }
h1 { max-width: 7ch; margin: 0; font-size: clamp(70px,10vw,150px); line-height: .78; letter-spacing: -.075em; font-weight: 800; }
h1 em,h2 em { font-family: "Instrument Serif",serif; font-weight: 400; }
h1 em { color: var(--orange); }
.hero-copy { max-width: 650px; margin: 45px 0 0; font-size: clamp(17px,1.5vw,21px); line-height: 1.55; color: #3f433b; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.text-link { font-family: "DM Mono",monospace; font-size: 12px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.text-link span { color: var(--orange); }

.scoreboard { background: var(--ink); color: white; display: grid; align-content: end; padding: clamp(36px,6vw,80px); position: relative; z-index: 2; }
.scoreboard:before { content:""; width: 170px; aspect-ratio: 1; border: 26px solid var(--acid); border-radius: 50%; position: absolute; right: -72px; top: 8%; opacity: .85; }
.scoreboard-loading { color: #a8aca2; font-family: "DM Mono",monospace; }
.score-label { font-family: "DM Mono",monospace; color: var(--acid); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.score-main { font-size: clamp(56px,7vw,96px); letter-spacing: -.07em; font-weight: 800; line-height: .9; }
.score-main small { display: block; margin-top: 12px; color: #a8aca2; font-size: 15px; letter-spacing: 0; font-weight: 500; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #383b34; margin-top: 50px; border: 1px solid #383b34; }
.score-stat { background: var(--ink); padding: 20px 0; }
.score-stat:nth-child(even) { padding-left: 20px; }
.score-stat strong { display: block; color: white; font-size: 27px; letter-spacing: -.04em; }
.score-stat span { font-family: "DM Mono",monospace; color: #94998e; text-transform: uppercase; font-size: 9px; letter-spacing: .1em; }

.proof-strip { min-height: 75px; padding: 20px 4vw; display: flex; align-items: center; justify-content: center; gap: clamp(14px,3vw,50px); background: var(--acid); border-bottom: 1px solid var(--ink); font-family: "DM Mono",monospace; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.proof-strip i { width: 5px; height: 5px; background: var(--ink); transform: rotate(45deg); }

.results-section,.cost-section { max-width: 1500px; margin: 0 auto; padding: clamp(80px,10vw,150px) clamp(20px,4vw,64px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading.compact { margin-bottom: 44px; }
.kicker { color: var(--acid-deep); margin-bottom: 14px; }
h2 { max-width: 16ch; margin: 0; font-size: clamp(46px,6vw,86px); line-height: .93; letter-spacing: -.06em; }
.section-intro { max-width: 770px; color: var(--muted); font-size: 16px; line-height: 1.65; margin: 24px 0 54px; }
.view-toggle { display: inline-flex; border: 1px solid var(--ink); padding: 4px; background: white; }
.view-toggle button { border: 0; padding: 9px 15px; background: transparent; cursor: pointer; font-family: "DM Mono",monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.view-toggle button.active { background: var(--ink); color: white; }
.cases { display: grid; gap: 90px; }
.loading-card { border: 1px dashed var(--line); padding: 60px; color: var(--muted); text-align: center; }

.case { border-top: 1px solid var(--ink); padding-top: 26px; }
.case-head { display: grid; grid-template-columns: 1fr minmax(280px,.8fr); gap: 40px; margin-bottom: 25px; }
.case-number { color: var(--orange); font-family: "DM Mono",monospace; font-size: 11px; }
.case h3 { margin: 6px 0 10px; font-size: clamp(28px,3vw,45px); letter-spacing: -.045em; }
.brief { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 70ch; }
.judge-quote { align-self: end; margin: 0; border-left: 4px solid var(--blue); padding-left: 20px; font-family: "Instrument Serif",serif; font-size: 21px; line-height: 1.3; }
.judge-quotes { display: grid; gap: 12px; align-self: end; }
.comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.candidate { min-width: 0; }
.candidate-head { min-height: 58px; padding: 11px 13px; border: 1px solid var(--ink); border-bottom: 0; background: white; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.model-name { font-size: 13px; font-weight: 800; }
.model-note { color: var(--muted); font-family: "DM Mono",monospace; font-size: 9px; text-transform: uppercase; }
.winner { padding: 5px 8px; background: var(--acid); border: 1px solid var(--ink); font-family: "DM Mono",monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.shot-link { display: block; position: relative; overflow: hidden; border: 1px solid var(--ink); background: #d8d4ca; cursor: zoom-in; }
.shot-link img { width: 100%; height: auto; display: block; transition: transform .45s ease; }
.shot-link:hover img { transform: scale(1.012); }
.shot-link[data-view="mobile"] { background: #dad6cd; padding: 24px calc((100% - min(393px,75%))/2); }
.shot-link[data-view="mobile"] img { border: 1px solid #a6a198; box-shadow: 0 18px 40px rgba(17,19,15,.16); }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--ink); border-top: 0; background: white; }
.metric { padding: 13px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-size: 18px; letter-spacing: -.03em; }
.metric span { font-family: "DM Mono",monospace; font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.comments { margin-top: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.45); }
.comments summary { cursor: pointer; padding: 13px; font-size: 12px; font-weight: 700; }
.comments ul { margin: 0; padding: 0 28px 17px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.cost-section { border-top: 1px solid var(--line); }
.table-shell { border: 1px solid var(--ink); overflow-x: auto; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th,td { padding: 17px 19px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--ink); color: white; font-family: "DM Mono",monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
td { font-size: 13px; }
td strong { font-size: 16px; }
tbody tr:last-child td { border-bottom: 0; }
.premium-cell { color: #b93418; font-weight: 700; }
.fine-print { max-width: 800px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.method-section { margin: 0 clamp(15px,3vw,45px); padding: clamp(70px,9vw,130px); background: var(--ink); color: white; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(60px,9vw,150px); }
.kicker.light { color: var(--acid); }
.method-copy h2 { max-width: 11ch; }
.method-copy > p:not(.kicker) { max-width: 650px; color: #b9beb2; font-size: 16px; line-height: 1.7; }
.method-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #41463d; }
.method-steps li { display: grid; grid-template-columns: 48px 1fr; padding: 22px 0; border-bottom: 1px solid #41463d; }
.method-steps span { grid-row: 1/3; color: var(--acid); font-family: "DM Mono",monospace; font-size: 11px; }
.method-steps strong { font-size: 19px; }
.method-steps small { color: #93998e; margin-top: 4px; }

.closing { padding: clamp(100px,13vw,190px) 25px; text-align: center; }
.closing .eyebrow { justify-content: center; }
.closing h2 { max-width: 15ch; margin: 0 auto; }
.closing h2 em { color: var(--orange); }
.closing > p:not(.eyebrow) { max-width: 620px; margin: 25px auto 35px; color: var(--muted); font-size: 18px; line-height: 1.55; }
footer { padding: 35px clamp(20px,4vw,64px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 11px; }
footer div { display: flex; gap: 18px; }

dialog { width: min(95vw,1500px); max-height: 94vh; padding: 0; border: 1px solid var(--ink); background: var(--paper); box-shadow: 12px 12px 0 rgba(17,19,15,.5); }
dialog::backdrop { background: rgba(17,19,15,.8); backdrop-filter: blur(5px); }
dialog img { display: block; width: 100%; height: auto; }
.dialog-close { position: fixed; right: 4vw; top: 3vh; width: 42px; height: 42px; border: 1px solid var(--ink); background: var(--acid); font-size: 25px; cursor: pointer; z-index: 2; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .scoreboard { min-height: 470px; }
  .case-head,.method-section { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr 1fr; gap: 20px 10px; }
  .candidate-head { align-items: flex-start; flex-direction: column; }
  .proof-strip { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 650px) {
  .nav-links > a:not(.button) { display: none; }
  .hero-inner { padding: 70px 20px; }
  h1 { font-size: clamp(68px,23vw,100px); }
  .scoreboard { padding: 45px 24px; }
  .results-section,.cost-section { padding-left: 15px; padding-right: 15px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .comparison { grid-template-columns: 1fr; gap: 38px; }
  .case-head { gap: 22px; }
  .judge-quote { font-size: 19px; }
  .method-section { margin: 0; padding: 75px 23px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*:before,*:after { transition: none !important; }
}
