/* Lean page styles: the home page and the Golden Twin page (decision 28). */
:root {
  --bg: #0E1013; --bg-2: #13161A; --bg-3: #1A1E24;
  --ink: #EDEEE8; --mute: #A3A8AD; --faint: #6F757C; --line: #262B32; --line-2: #343A42;
  --gold: #F4CC64; --gold-dim: rgba(244, 204, 100, 0.16); --red: #E5352B;
  --sans: 'Archivo', system-ui, sans-serif; --mono: 'Martian Mono', ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px); --max: 1240px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.eyebrow .n { color: var(--faint); margin-right: 10px; }
h1, h2, h3 { margin: 0; font-stretch: 108%; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5vw, 76px); line-height: 0.95; font-weight: 800; }
h1 .ln { display: block; white-space: nowrap; }
h2 { font-size: clamp(32px, 3.6vw, 54px); line-height: 1.02; font-weight: 780; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.lines { margin: 0; display: grid; gap: 4px; }
.lines .ln { display: block; color: var(--mute); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.45; }
.lines .ln.ink { color: var(--ink); }
.go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid var(--line-2); transition: border-color .15s, color .15s; }
.go:hover { color: var(--gold); border-color: var(--gold); }
.go .ar { color: var(--gold); }
.links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid var(--line-2); color: var(--ink); transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.solid:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* Sections */
section { border-top: 1px solid var(--line); padding: clamp(72px, 9vw, 128px) 0; }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head .lines { padding-bottom: 6px; }

/* Hero */
.hero { border-top: 0; padding: clamp(56px, 7vw, 104px) 0; background-image: radial-gradient(ellipse 70% 90% at 62% 45%, transparent 0%, var(--bg) 82%), linear-gradient(rgba(38,43,50,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(38,43,50,.7) 1px, transparent 1px); background-size: auto, 48px 48px, 48px 48px; background-position: 0 0, -1px -1px, -1px -1px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 32px; }
.hero h1 .gold { color: var(--gold); }
.hero .lines .ln { font-size: clamp(18px, 1.5vw, 22px); }
.lines .vision { color: var(--gold); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .fine { margin: 18px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--faint); }

/* Twin slider (from the live home page) */
.twin-slider { display: flex; flex-direction: column; gap: 10px; margin: 0; --pos: 50%; }
.ts-stage { position: relative; aspect-ratio: 1600 / 1417; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ts-stage picture, .ts-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ts-stage picture { -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 92%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 92%, transparent); mask-composite: intersect; }
.ts-real { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ts-twin { clip-path: inset(0 0 0 var(--pos)); mix-blend-mode: lighten; }
.ts-handle { position: absolute; top: 4%; bottom: 4%; left: var(--pos); width: 0; border-left: 1px solid rgba(244, 204, 100, 0.7); box-shadow: 0 0 18px 1px rgba(244, 204, 100, 0.35); pointer-events: none; }
.ts-grip { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; gap: 5px; box-shadow: 0 0 0 4px rgba(244, 204, 100, 0.12); }
.ts-grip i { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ts-grip i:first-child { border-right: 6px solid var(--gold); }
.ts-grip i:last-child { border-left: 6px solid var(--gold); }
.ts-lbl { position: absolute; bottom: 5%; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; white-space: nowrap; }
.ts-lbl-real { right: calc(100% - var(--pos) + 16px); color: var(--mute); }
.ts-lbl-twin { left: calc(var(--pos) + 16px); color: var(--gold); }
.ts-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; z-index: 3; }
.ts-stage:has(.ts-range:focus-visible) .ts-grip { outline: 2px solid var(--gold); outline-offset: 3px; }
.twin-slider figcaption { text-align: right; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--faint); }

/* Founder */
.founder-grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(0.15); border: 1px solid var(--line); }
.founder-grid h2 { margin-bottom: 24px; }
.founder-grid .lines { margin-bottom: 28px; }
.cv { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 640px; }
.cv li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--mute); line-height: 1.45; }
.cv .org { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); padding-top: 3px; }
.quote { margin: 0 0 8px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--ink); font-weight: 500; }
/* Problem graphic: four builds, failures found late, and the same failures found first */
.builds { width: 100%; height: auto; display: block; }
.builds text { font-family: var(--mono); }

/* Problem: three cards */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.card3 { padding: 28px 28px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.card3:last-child { border-right: 0; }
.card3 .k { margin: 0 0 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.card3 .k span { color: var(--faint); margin-right: 10px; }
.card3 h3 { margin-bottom: 12px; min-height: 2.4em; }
.card3 .lines .ln { font-size: 15px; }
.card3 .art { width: 100%; height: auto; margin-top: auto; padding-top: 28px; }
.card3 .go { margin-top: 22px; align-self: flex-start; border-bottom: 0; }

/* How it works: data, model, output */
.flow3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.fstep { position: relative; display: flex; flex-direction: column; }
.fstep:not(:last-child)::after { content: ""; position: absolute; right: -30px; top: calc(37.5% - 7px); width: 14px; height: 14px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg); }
.v { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.v:hover { border-color: var(--gold); }
.v-op { background: #132842; }
.op-brand { position: absolute; left: 16px; top: 14px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #E9EEF5; z-index: 1; }
.op-mark { width: 20px; height: 20px; }
.op-puck { position: absolute; left: 6%; top: 14%; height: 82%; width: auto; }
.op-file { position: absolute; right: 5%; top: 50%; transform: translateY(-44%); width: 40%; display: grid; gap: 5px; padding: 10px; background: rgba(8, 18, 36, 0.72); border: 1px solid rgba(233, 238, 245, 0.22); font-family: var(--mono); color: #E9EEF5; }
.op-file .fn { font-size: 10px; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 2px; }
.op-file .ch { display: grid; grid-template-columns: 30px 1fr; align-items: baseline; gap: 6px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 8px; border: 1px solid rgba(233, 238, 245, 0.14); white-space: nowrap; }
.op-file .ch b { font-weight: 500; color: #9AA6B5; }
.op-file .ch em { font-style: normal; font-size: 9.5px; color: #9AA6B5; text-transform: none; letter-spacing: 0.02em; text-align: right; overflow: hidden; text-overflow: ellipsis; }
.v-twin { background: #1A1C20; }
.v-twin img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.v-twin:hover img { transform: scale(1.03); }
.vtag { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 9px; background: rgba(14, 16, 19, 0.82); border: 1px solid var(--gold-dim); color: var(--gold); }
.v-fix { background: #13161A; display: grid; grid-template-rows: auto 1fr; }
.runs { display: grid; gap: 8px; padding: 16px 18px 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.run { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; color: var(--ink); }
.run .bar { grid-column: 1 / -1; grid-row: 2; height: 9px; background: #262B32; position: relative; }
.run .bar b { position: absolute; inset: 0 auto 0 0; }
.run .bar.ok { background: transparent; border: 1px solid var(--gold); }
.run .red { background: var(--red); color: var(--red); } .rv.red { background: none; }
.run .rv.gold { color: var(--gold); }
.runs .step { color: var(--faint); font-size: 9.5px; }
.rep { position: relative; margin: 0 18px; overflow: hidden; border: 1px solid #2A2F36; border-bottom: 0; }
.rep img { width: 100%; height: auto; display: block; }
.fstep .meta { display: flex; justify-content: space-between; margin: 20px 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.fstep .meta b { color: var(--gold); font-weight: 500; }
.fstep h3 { margin-bottom: 6px; }
.fstep .sub { margin: 0; font-size: 15.5px; color: var(--mute); }
.loopback { position: relative; margin: 30px calc(100% / 3 * 0.5) 0 calc(100% / 3 * 1.5); height: 26px; border: 1.5px dashed rgba(244, 204, 100, 0.55); border-top: 0; }
.loopback::before { content: ""; position: absolute; left: -6px; top: -2px; border: 5px solid transparent; border-bottom: 8px solid var(--gold); }
.loopback span { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 0 12px; background: var(--bg); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.outcomes { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 44px; border-top: 1px solid var(--line); }
.outcomes li { display: flex; align-items: baseline; gap: 14px; padding: 22px 24px 0 0; }
.outcomes b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--gold); }
.outcomes span { font-size: clamp(19px, 1.6vw, 24px); font-weight: 700; font-stretch: 108%; letter-spacing: -0.015em; }

/* How it works tiles, picked 2026-11-02 (A, A, A) */
.v-opd { background: #132842; color: #E9EEF5; padding: 16px; display: grid; grid-template-columns: 30% 1fr; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px 14px; }
.o-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.o-top .op-mark { width: 18px; height: 18px; }
.o-fn { margin-left: auto; color: var(--gold); letter-spacing: 0.06em; text-transform: none; font-size: 11px; }
.o-pk { background: #0B1A30; border: 1px solid rgba(233, 238, 245, 0.15); display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
.o-pk img { max-height: 100%; max-width: 100%; width: auto; height: auto; }
.o-ch { display: grid; gap: 5px; font-family: var(--mono); font-size: 10px; align-content: stretch; }
.o-ch > span { display: grid; grid-template-columns: 26px auto 1fr; align-items: center; gap: 6px; border: 1px solid rgba(233, 238, 245, 0.14); padding: 0 8px; white-space: nowrap; }
.o-ch b { font-weight: 500; color: #9AA6B5; } .o-ch i { font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; } .o-ch em { font-style: normal; color: #9AA6B5; font-size: 9.5px; text-align: right; }
.o-ft { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 9.5px; color: #9AA6B5; border-top: 1px solid rgba(233, 238, 245, 0.14); padding-top: 8px; }
.o-badge { color: #0E1013; background: #E9EEF5; padding: 1px 6px; }
.v-twin .split-line { position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid rgba(244, 204, 100, 0.85); box-shadow: 0 0 12px rgba(244, 204, 100, 0.4); }
.v-twin .vtag.vl { left: 12px; bottom: 12px; color: var(--ink); border-color: var(--line); }
.v-twin .vtag.vr { left: auto; right: 12px; bottom: 12px; }
.v-fx { background: #13161A; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); color: var(--ink); }
.f-k { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.f-h { font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.f-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-big > span { border: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 6px; }
.f-big em { font-style: normal; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.f-big b { font-family: var(--sans); font-size: 17px; font-weight: 700; white-space: nowrap; } .f-big b i { font-style: normal; color: var(--gold); }
.f-list { display: grid; gap: 2px; font-size: 9.5px; color: var(--mute); letter-spacing: 0.02em; margin-top: auto; }

/* How it works */
.loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.step { padding: 28px 28px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.step:last-child { border-right: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: translateY(-50%) rotate(45deg); background: var(--bg); z-index: 1; }
.step .gen { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; }
.step .gen b { color: var(--gold); font-weight: 500; }
.step .pic { height: 168px; margin: 22px 0 24px; display: flex; align-items: center; justify-content: center; }
.step .pic svg { width: 100%; height: 100%; }
.step h3 { margin-bottom: 10px; }
.step .lines .ln { font-size: 15.5px; }
.step .go { margin-top: auto; padding-top: 22px; align-self: flex-start; border-bottom: 0; }
.frame-note { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 36px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--faint); }
.frame-note b { color: var(--ink); font-weight: 500; margin-right: 8px; }

/* Plus One */
.p1 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); }
.p1 .shot { position: relative; display: block; border-right: 1px solid var(--line); overflow: hidden; background: #191c21; }
.p1 .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.p1 .shot:hover img { transform: scale(1.02); }
.p1 .tag { position: absolute; left: 16px; top: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 10px; background: rgba(14, 16, 19, 0.82); border: 1px solid var(--gold-dim); color: var(--gold); }
.p1 .play { position: absolute; right: 16px; bottom: 16px; }
.p1 .side { padding: 32px; display: flex; flex-direction: column; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0 0 28px; }
.stats div { padding: 16px 16px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.stats dd { margin: 0; font-size: 26px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.02em; }
.p1 .side .lines .ln { font-size: 15.5px; }
.p1 .side .links { margin-top: auto; padding-top: 28px; }

/* Plus One in the Golden Twin: real line to twin */
.cmp { position: relative; margin: 0; overflow: hidden; background: #1A1C20; border-bottom: 1px solid var(--line); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.cmp img { display: block; width: 100%; height: auto; }
.cmp .cmp-twin { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 0 var(--pos)); }
.cmp .cmp-real { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; border-left: 1px solid rgba(244, 204, 100, 0.8); box-shadow: 0 0 16px 1px rgba(244, 204, 100, 0.35); pointer-events: none; }
.cmp-grip { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; gap: 5px; }
.cmp-grip i { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.cmp-grip i:first-child { border-right: 6px solid var(--gold); } .cmp-grip i:last-child { border-left: 6px solid var(--gold); }
.cmp-lbl { position: absolute; bottom: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 9px; background: rgba(14, 16, 19, 0.82); pointer-events: none; }
.cmp-l { left: 16px; color: var(--ink); } .cmp-r { right: 16px; color: var(--gold); bottom: 72px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; z-index: 2; }
.cmp .play { position: absolute; right: 16px; bottom: 16px; z-index: 3; }
.cmp:has(.cmp-range:focus-visible) .cmp-grip { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Plus One in the Golden Twin */
.twin-grid { border: 1px solid var(--line); }
.twin-shot { position: relative; display: block; overflow: hidden; background: #1A1C20; border-bottom: 1px solid var(--line); }
.twin-shot img { width: 100%; height: auto; transition: transform .5s; }
.twin-shot:hover img { transform: scale(1.02); }
.twin-shot .tag { position: absolute; left: 16px; bottom: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 10px; background: rgba(14, 16, 19, 0.82); border: 1px solid var(--gold-dim); color: var(--gold); }
.twin-shot .play { position: absolute; right: 16px; bottom: 16px; }
.layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lay { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 22px 26px; border-right: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .15s; }
.lay:last-child { border-right: 0; }
.lay:hover { background: #13161A; }
.lay b { font-size: 18px; font-weight: 700; }
.lay span { grid-column: 1 / -1; font-size: 15px; color: var(--mute); }
.lay em { grid-row: 1; grid-column: 2; align-self: center; font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--gold); }
.lay:hover b, .lay.on b { color: var(--gold); }
.twin-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 18px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--faint); }

/* Grades */
.grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.grade { padding: 26px 26px 28px; border-right: 1px solid var(--line); }
.grade:last-child { border-right: 0; }
.grade .meter { height: 4px; background: var(--line); margin-bottom: 22px; position: relative; }
.grade .meter i { position: absolute; inset: 0 auto 0 0; background: var(--mute); }
.grade.g1 .meter i { width: 33%; background: var(--faint); }
.grade.g2 .meter i { width: 66%; background: var(--ink); }
.grade.g3 .meter i { width: 100%; background: var(--gold); box-shadow: 0 0 14px rgba(244, 204, 100, 0.45); }
.grade .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.grade.g3 .n { color: var(--gold); }
.grade h3 { font-size: 19px; }
.backtest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 28px; counter-reset: s; }
.backtest li { list-style: none; padding: 0 24px 0 0; display: flex; gap: 14px; align-items: baseline; }
.backtest li b { font-family: var(--mono); font-size: 11px; color: var(--gold); font-weight: 500; letter-spacing: 0.1em; }
.backtest li span { font-size: 16px; }
.backtest { padding: 0; margin-top: 0; }

/* Closing call to action: backtest or sign up */
.cta2 { padding: clamp(80px, 9vw, 128px) 0; }
.cta2 h2 { text-align: center; font-size: clamp(34px, 4.2vw, 60px); margin-bottom: 40px; }
.cta2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.cta2-card { border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 14px; background: #101216; }
.cta2-card.on { border-color: rgba(244, 204, 100, 0.55); }
.cta2-card .k { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.cta2-card .k span { color: var(--faint); margin-right: 10px; }
.cta2-card .lines .ln { font-size: 16px; }
.cta2-card > .btn, .cta2-card .sub { margin-top: auto; }
.sub { display: flex; gap: 8px; }
.sub input[type=email] { flex: 1; min-width: 0; height: 48px; padding: 0 14px; background: #0B0D10; border: 1px solid var(--line-2); color: var(--ink); font: 400 15px var(--sans); }
.sub input[type=email]:focus { outline: none; border-color: var(--gold); }
.sub .hp, .sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sub-note { margin: 0; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.cta2-mail { text-align: center; margin: 28px 0 0; font-family: var(--mono); font-size: 12px; }
.cta2-mail a { color: var(--mute); text-decoration: none; } .cta2-mail a:hover { color: var(--ink); }

/* Contact */
.contact { text-align: center; padding: clamp(88px, 10vw, 144px) 0; }
.contact h2 { font-size: clamp(36px, 4.6vw, 68px); margin-bottom: 20px; }
.contact .lines { justify-items: center; margin-bottom: 36px; }
.contact .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* MadeCell section (moved from the old home page; script in /madecell/madecell.js) */
.mc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 22px; }
.mc-head h2 { font-size: clamp(34px, 4vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 14px; }
.mc-head p { margin: 0; max-width: 38em; color: var(--mute); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; }
.mc-modes { display: flex; border: 1px solid var(--line); }
.mc-modes button { appearance: none; background: none; border: 0; border-right: 1px solid var(--line); color: var(--mute); font: inherit; font-size: 14px; padding: 12px 18px; cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.mc-modes button:last-child { border-right: 0; }
.mc-modes button b { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--faint); letter-spacing: 0.1em; }
.mc-modes button[aria-pressed="true"] { color: var(--ink); background: #1A1E24; box-shadow: inset 0 -2px 0 var(--gold, #F4CC64); }
.mc-modes button[aria-pressed="true"] b { color: var(--gold, #F4CC64); }
.mc-modes button:focus-visible { outline: 2px solid var(--gold, #F4CC64); outline-offset: -2px; }
.mc-fig { margin: 0; }
.mc-stage { position: relative; aspect-ratio: 16 / 8.2; background: #0E1013; border: 1px solid var(--line); overflow: hidden; cursor: grab; }
.mc-stage:active { cursor: grabbing; }
.mc-stage canvas { display: block; width: 100%; height: 100%; }
.mc-labels { position: absolute; inset: 0; pointer-events: none; }
.mc-labels span { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 0.3s; will-change: transform; }
.mc-dim { color: var(--gold, #F4CC64); background: rgba(14, 16, 19, 0.82); padding: 3px 7px; margin: -11px 0 0 0; translate: -50% 0; }
.mc-tag { color: var(--ink); display: flex; align-items: center; gap: 8px; margin: -11px 0 0 -4px; background: rgba(14, 16, 19, 0.78); padding: 3px 8px 3px 4px; }
.mc-tag i { width: 8px; height: 8px; border: 1.5px solid var(--gold, #F4CC64); border-radius: 50%; flex: none; box-shadow: 0 0 10px rgba(244, 204, 100, 0.6); }
.mc-tag::after { content: ""; position: absolute; left: 12px; top: 50%; width: 0; }
.mc-corner { position: absolute; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--faint); pointer-events: none; }
.mc-corner.mc-tl { left: 16px; top: 14px; } .mc-corner.mc-tr { right: 16px; top: 14px; }
.mc-stage::before, .mc-stage::after { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 1; }
.mc-stage::before { left: 8px; bottom: 8px; border-left: 1px solid #4A5058; border-bottom: 1px solid #4A5058; }
.mc-stage::after { right: 8px; bottom: 8px; border-right: 1px solid #4A5058; border-bottom: 1px solid #4A5058; }
.mc-fig figcaption { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--mute); }
.mc-fine { font-size: 12.5px; color: var(--faint); }
@media (max-width: 760px) { .mc-stage { aspect-ratio: 4 / 3.4; } .mc-modes { width: 100%; } .mc-modes button { flex: 1; justify-content: center; } .mc-labels span { font-size: 9.5px; } }
.mc-flow { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); counter-reset: none; }
.mc-flow li { position: relative; padding: 18px 28px 6px 0; display: flex; flex-direction: column; gap: 6px; }
.mc-flow li b { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--gold, #F4CC64); }
.mc-flow li span { font-size: 15px; line-height: 1.5; color: var(--mute); }
.mc-flow li:not(:last-child)::after { content: ""; position: absolute; right: 10px; top: 24px; width: 10px; height: 10px; border-top: 1px solid #4A5058; border-right: 1px solid #4A5058; transform: rotate(45deg); }
.mc-flow li:nth-child(2) b { color: var(--ink); }
@media (max-width: 760px) { .mc-flow { grid-template-columns: 1fr 1fr; gap: 0 16px; } .mc-flow li::after { display: none; } }
@media (max-width: 460px) { .mc-modes button { padding: 12px 6px; gap: 6px; font-size: 13px; min-width: 0; } }
.mc-bar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.mc-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mc-journey figure { margin: 0; }
.mc-journey img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); background: #0E1013; }
.mc-journey figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; font-size: 15px; color: var(--ink); }
.mc-journey figcaption b { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--gold, #F4CC64); }
.mc-then { margin: 22px 0 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.mc-then::before { content: "\2193"; margin-right: 10px; color: var(--gold, #F4CC64); }
@media (max-width: 760px) { .mc-journey { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .mc-journey::-webkit-scrollbar { display: none; } .mc-journey li { scroll-snap-align: start; } }
@media (max-width: 760px) { .mc-corner.mc-tr { display: none; } .mc-bar { justify-content: stretch; } }
.mc-fig figcaption .mc-fine { display: block; }

/* Plain page header (pricing and other pages without a hero picture) */
.pg { border-top: 0; padding-top: clamp(56px, 7vw, 104px); }
.pg-h1 { font-size: clamp(38px, 4.4vw, 64px); line-height: 0.98; }
.pg-h1 .ln { display: block; }
.pg .head { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }

/* MadeCell page */
.mc-art { margin: 0; }
.mc-art img { width: 100%; height: auto; border: 1px solid var(--line); }
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats4 div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats4 dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.stats4 dd { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 700; font-stretch: 108%; letter-spacing: -0.02em; }
.plan { margin: 0; background: #F4F4F1; border: 1px solid var(--line); padding: 16px; }
.plan img { width: 100%; height: auto; display: block; }
.mc-first { border: 1px solid var(--line); }
.mc-first img { width: 100%; height: auto; display: block; }
.mc-drawing { margin-top: 22px; background: #ffffff; padding: 12px; }
@media (max-width: 760px) { .mc-drawing { overflow-x: auto; } .mc-drawing img { min-width: 640px; } .mc-drawing.wide img { min-width: 960px; } }

/* Product lockups: mark, name, by N+1 Labs */
.lockup { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); margin-bottom: 30px; }
.lockup img { width: clamp(40px, 4vw, 58px); height: auto; flex: none; }
.lk-w { display: grid; gap: 8px; }
.lk-n { font-size: clamp(24px, 2.9vw, 42px); font-weight: 700; font-stretch: 125%; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1; color: var(--gold); white-space: nowrap; }
.lk-n.ink { color: var(--ink); }
.lk-by { font-family: var(--mono); font-size: clamp(10px, 0.9vw, 12.5px); font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: #9AA6B5; }

/* Golden Twin page: the standard */
.sub-h { margin: 48px 0 16px; font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.checks4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.checks4 div { padding: 20px 22px; border-right: 1px solid var(--line); display: grid; gap: 6px; }
.checks4 div:last-child { border-right: 0; }
.checks4 b { font-size: 17px; font-weight: 700; }
.checks4 span { font-size: 15px; color: var(--mute); line-height: 1.45; }
.tighten { border: 1px solid var(--line); font-size: 15px; }
.tighten .tr { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tighten .tr:last-child { border-bottom: 0; }
.tighten .tr span { padding: 14px 20px; color: var(--ink); }
.tighten .tr span:first-child { color: var(--mute); }
.tighten .th span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.tighten .th .gold { color: var(--gold); }

/* Golden Twin page */
.gt-art { margin: 0; }
.gt-art img { width: 100%; height: auto; mix-blend-mode: lighten; -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 78%); mask-image: radial-gradient(ellipse at center, #000 55%, transparent 78%); }

@media (max-width: 860px) {
  .hero .wrap, .head, .p1 { grid-template-columns: 1fr; }
  .head { align-items: start; }
  .loop, .grades, .backtest, .cards3, .tiles3, .flow3, .outcomes { grid-template-columns: 1fr; }
  .fstep:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -28px; transform: translateX(-50%) rotate(135deg); }
  .loopback { display: none; }
  .layouts { grid-template-columns: 1fr; }
  .lay { border-right: 0; border-bottom: 1px solid var(--line); }
  .lay:last-child { border-bottom: 0; }
  .twin-shot .play { position: static; margin: 12px; }
  .twin-shot .tag { display: none; }
  .cmp .play { position: static; margin: 12px; display: inline-flex; }
  .cmp-lbl { display: none; }
  .cmp .cmp-twin { height: auto; aspect-ratio: 1800 / 541; }
  .checks4, .stats4 { grid-template-columns: 1fr 1fr; }
  .checks4 div:nth-child(2) { border-right: 0; }
  .checks4 div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tighten { font-size: 13.5px; }
  .tighten .tr span { padding: 12px 10px; }
  .card3 { border-right: 0; border-bottom: 1px solid var(--line); }
  .card3:last-child { border-bottom: 0; }
  .card3 h3 { min-height: 0; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .step:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -7px; transform: translateX(-50%) rotate(135deg); }
  .grade { border-right: 0; border-bottom: 1px solid var(--line); }
  .grade:last-child { border-bottom: 0; }
  .backtest li { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .p1 .shot { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 15 / 8; }
  .founder-grid { grid-template-columns: 1fr; }
  .portrait img { max-width: 260px; }
  .cv li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 860px) { .cta2-grid { grid-template-columns: 1fr; } .sub { flex-direction: column; } .cta2-card { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
