/* VisionProof Labs v4. Quiet and readable: warm off-white page, near-black ink, a sans for headings and a serif
   for reading, generous space, one dark footer. Amber only marks a miss. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #f6f5f1;        /* page */
  --bg-2: #edece6;      /* quiet panels, image wells */
  --line: #dddcd4;      /* rules inside tables and the footer only */
  --ink: #161614;
  --ink-2: #55554f;     /* secondary text, 7:1 on --bg */
  --ink-3: #6f6f68;     /* small print, 4.9:1 on --bg */
  --night: #151513;     /* footer */
  --amber: #f0a20a;     /* the miss: fills and outlines */
  --amber-ink: #9a5b00; /* amber as text on the light page */

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --step-small: 0.875rem;
  --step-body: 1.1875rem;
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --step-h2: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  --step-h1: clamp(2.75rem, 1.6rem + 4vw, 5.5rem);

  --gutter: 40px;
  --col: 680px;          /* reading column: the right-hand column of every row */
  --wide: 1200px;        /* the one frame: header, content and footer share it */
  --section: 168px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (max-width: 720px) { :root { --gutter: 20px; --section: 104px; --step-body: 1.125rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.6 var(--serif); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--bg); font-family: var(--sans); }
.skip:focus { top: 16px; }

.sans { font-family: var(--sans); }
.small { font: 400 var(--step-small)/1.5 var(--sans); color: var(--ink-3); }
.lead { font-size: var(--step-lead); line-height: 1.5; color: var(--ink-2); }
.sec { padding: var(--section) var(--gutter) 0; }
.wrap { max-width: var(--wide); margin: 0 auto; }
.center { text-align: center; }

/* The layout rule for the whole site: the home hero and the closing call are centred; everything between sits
   on the same frame, heading in the left column, reading text in the right column, pictures across both. */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--col)); gap: 24px 64px; align-items: start; }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; } }
.h2 { font-size: var(--step-h2); }
.h3 { font-size: var(--step-h3); letter-spacing: -0.025em; line-height: 1.15; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 10px; font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: transform 120ms var(--ease-out), background-color 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--ink); }
.tlink { font-family: var(--sans); font-size: 16px; text-decoration: underline; text-decoration-color: var(--line); transition: text-decoration-color 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: #33332f; }
  .btn-light:hover { background: #ffffff; }
  .tlink:hover, .links a:hover { text-decoration-color: currentColor; }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.center .actions { justify-content: center; }

/* ---------- header ---------- */
.bar { display: flex; align-items: center; gap: 36px; padding: 22px var(--gutter); font: 400 15px/1 var(--sans); max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; }
.mark { display: inline-flex; align-items: center; margin-right: auto; font: 600 18px/1 var(--sans); letter-spacing: -0.03em; text-decoration: none; }
.mark img { width: 0.95em; height: 0.95em; margin: 0 0.03em; transform: translateY(0.03em); }
.links { display: flex; gap: 30px; }
.links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: transparent; transition: color 200ms var(--ease-out), text-decoration-color 200ms var(--ease-out); }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.links a[aria-current="page"] { text-decoration-color: currentColor; }
.bar .btn { height: 40px; padding: 0 18px; font-size: 15px; border-radius: 9px; }
.menu-btn { display: none; height: 40px; padding: 0 16px; border-radius: 9px; background: var(--bg-2); color: var(--ink); font: 500 15px/1 var(--sans); border: 0; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 30; background: var(--bg); padding: 96px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.menu a:not(.btn) { font: 500 32px/1.3 var(--sans); letter-spacing: -0.035em; text-decoration: none; }
.menu .btn { margin-top: 28px; align-self: flex-start; }
body.menu-open .bar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: var(--bg); }
@media (max-width: 1000px) { .links { display: none; } .menu-btn { display: inline-flex; align-items: center; } .bar { gap: 10px; } }
@media (max-width: 600px) { .bar .btn { display: none; } }

/* ---------- home hero: the headline among real boards from the benchmark ---------- */
.hero { position: relative; min-height: min(calc(100svh - 84px), 860px); display: grid; place-items: center; padding: 72px var(--gutter) 96px; overflow: hidden; }
.hero-text { position: relative; z-index: 2; max-width: 760px; text-align: center; }
.hero h1 { font-size: var(--step-h1); letter-spacing: -0.045em; line-height: 1; }
.hero h1 span { display: block; }
.hero .lead { max-width: 560px; margin: 28px auto 36px; }
.hero .small { margin-top: 22px; }
.hero .actions { justify-content: center; }
.tiles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tile { position: absolute; width: min(calc(var(--s, 132) * 100vw / 1440), calc(var(--s, 132) * 1px)); } /* full size from 1440px, scaled down below so tiles keep their spacing */
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.tile.miss { pointer-events: auto; }
.tile.miss img { outline: 3px solid var(--amber); outline-offset: 3px; }
.tile.miss figcaption { margin-top: 12px; font: 500 13px/1.35 var(--sans); color: var(--amber-ink); }
@media (max-width: 1080px) {
  .hero { min-height: 0; padding-top: 56px; display: block; }
  .tiles { position: static; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 56px; pointer-events: auto; }
  .tile { position: static; width: auto; }
  .tile:nth-child(n+9):not(.miss) { display: none; }
  .tile.miss { grid-column: span 2; grid-row: span 2; order: -1; }
}

/* ---------- home 2: same score, opposite failures ---------- */
.prose p + p { margin-top: 1.1em; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; }
.pair figure > div { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); border-radius: 6px; }
.pair img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transform-origin: 50% 58%; }
.pair figcaption { margin-top: 16px; font: 400 15px/1.5 var(--sans); color: var(--ink-2); }
.pair figcaption b { display: block; margin-bottom: 4px; font-weight: 500; color: var(--ink); font-size: 17px; }
.pair .missed b::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--amber); vertical-align: 0.08em; }
.figline { margin-top: 32px; }
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; } }

/* ---------- home 3: three cards that lead to the detail ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { display: block; text-decoration: none; }
.card .pic { aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-2); border-radius: 6px; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.card .pic.paper { display: flex; align-items: flex-end; justify-content: center; padding: 28px 28px 0; }
.card .pic.paper img { width: 62%; height: auto; object-fit: contain; border-radius: 2px 2px 0 0; }
.card h3 { margin-top: 22px; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .card:hover .pic img { transform: scale(1.03); } .card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; } }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- home 4: spot the defect ---------- */
.boards { display: flex; flex-wrap: wrap; gap: 6px; margin: 64px 0 28px; }
.boards button { height: 40px; padding: 0 16px; border-radius: 9px; background: var(--bg-2); color: var(--ink-2); font: 500 15px/1 var(--sans); border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 120ms var(--ease-out); }
.boards button:active { transform: scale(0.97); }
.boards button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.boards .done { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0; }
.boards .answered .done { opacity: 0.6; }
.case { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; }
.case + .case { margin-top: 64px; }
html.js .spot.live .case + .case { margin-top: 0; }
.case figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); border-radius: 6px; }
.case figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 400ms var(--ease-out); }
.case figure .marked { opacity: 0; }
.case.revealed figure .marked { opacity: 1; }
.case h3 { font-size: var(--step-h3); margin-bottom: 18px; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.choose button { height: 52px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 500 16px/1 var(--sans); border: 0; cursor: pointer; transition: transform 120ms var(--ease-out), background-color 200ms var(--ease-out); }
.choose button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .choose button:hover { background: #33332f; } .boards button:not([aria-selected="true"]):hover { color: var(--ink); } }
html:not(.js) .choose { display: none; }
.case .hint { font: 400 15px/1.5 var(--sans); color: var(--ink-3); }
html.js .case.revealed .hint { display: none; }
.answer { display: grid; gap: 14px; font-size: 17px; line-height: 1.55; }
.answer:focus { outline: none; }
html.js .case:not(.revealed) .answer { display: none; }
.verdict-you { font: 500 16px/1.4 var(--sans); }
.verdict-you.right::before, .verdict-you.wrong::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; vertical-align: 0.08em; }
.verdict-you.right::before { background: var(--ink); }
.verdict-you.wrong::before { background: var(--amber); }
.answer b { font-weight: 600; }
.mtable { width: 100%; border-collapse: collapse; font: 400 15px/1.4 var(--sans); }
.mtable th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 8px 0; border-bottom: 1px solid var(--line); }
.mtable td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.mtable td:last-child, .mtable th:last-child { text-align: right; }
.mtable .wrong td:last-child { color: var(--amber-ink); font-weight: 500; }
.spot-end { margin-top: 56px; }
.spot-end p { max-width: var(--col); font-size: var(--step-lead); line-height: 1.45; }
.spot-note { margin-top: 24px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- close ---------- */
.close { padding: var(--section) var(--gutter); text-align: center; }
.close h2 { font-size: var(--step-h2); }
.close .lead { max-width: 560px; margin: 24px auto 32px; }
.close .small { margin-top: 20px; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: #ecebe5; padding: 88px var(--gutter) 36px; font-family: var(--sans); }
.foot-in { max-width: var(--wide); margin: 0 auto; }
.foot-top { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.foot-mark { display: inline-flex; align-items: center; font: 600 28px/1 var(--sans); letter-spacing: -0.035em; text-decoration: none; }
.foot-mark img { width: 0.9em; height: 0.9em; margin: 0 0.03em; }
.foot-line { margin-top: 20px; max-width: 34ch; color: #a9a9a2; font-size: 15px; line-height: 1.5; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-cols h2 { margin-bottom: 14px; font: 500 14px/1.3 var(--sans); letter-spacing: 0; color: #a9a9a2; }
.foot-cols a { display: block; padding: 4px 0; font-size: 15px; text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.foot-cols p { font-size: 15px; color: #ecebe5; padding: 4px 0; }
.foot-small { margin-top: 72px; font-size: 13px; line-height: 1.6; color: #8e8e87; }
.foot-small a { color: inherit; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; gap: 36px; } .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- inner pages: same frame, same two columns ---------- */
.phead { padding-top: 112px; padding-bottom: 0; }
.phead h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); letter-spacing: -0.045em; line-height: 1.02; max-width: 16ch; }
.phead .lead { max-width: var(--col); margin-top: 28px; }
.phead .actions { margin-top: 36px; }
.banner { margin-top: 72px; aspect-ratio: 12 / 5; overflow: hidden; background: var(--bg-2); border-radius: 6px; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.rows > .row + .row { margin-top: 104px; }
.rows.tight > .row + .row { margin-top: 44px; }
.sec.rows-sec { padding-top: 120px; }
.sec.end { padding-bottom: var(--section); }
.row-head h2 { font-size: var(--step-h3); letter-spacing: -0.025em; line-height: 1.15; }
.rows.tight .row-head h2 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.3; }
.row-head .num { display: block; margin-bottom: 12px; font: 500 15px/1 var(--sans); color: var(--ink-3); }
.row-head .sub { margin-top: 10px; font: 400 17px/1.45 var(--sans); color: var(--ink-2); }
.row-head .get { margin-top: 14px; font: 400 15px/1.5 var(--sans); color: var(--ink-2); }
.row-head .get b { font-weight: 500; color: var(--ink); }
.row-head .price { margin-top: 12px; font: 500 1.375rem/1.3 var(--sans); letter-spacing: -0.02em; }
.row-head .price span { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.body > * + * { margin-top: 1em; }
.body .for { font-size: var(--step-lead); line-height: 1.45; }
.body .note, .body .asks { color: var(--ink-2); }
.body .asks b { color: var(--ink); font-weight: 600; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li + li { margin-top: 10px; }
.ticks li::before { content: "–"; position: absolute; left: 0; top: 0; color: var(--ink-3); }
.ticks b { font-weight: 600; }
.doc { margin-top: 32px; max-width: 280px; }
.doc .paper, .pages .paper { padding: 22px 22px 0; background: var(--bg-2); border-radius: 6px; }
.doc .paper img, .pages .paper img { border-radius: 2px 2px 0 0; }
.doc figcaption, .pages figcaption, .body figcaption { margin-top: 10px; font: 400 14px/1.45 var(--sans); color: var(--ink-3); }
.body .pair { margin-top: 32px; gap: 16px; }
.body .pair figcaption { margin-top: 10px; font-size: 14px; }
.pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 72px; }
@media (max-width: 900px) { .pages { grid-template-columns: 1fr 1fr; } .doc { max-width: 220px; } }
.defs > div + div { margin-top: 22px; }
.defs dt { font: 500 16px/1.4 var(--sans); }
.defs dd { margin: 4px 0 0; }
.steps { counter-reset: step; }
.steps li { position: relative; padding-left: 40px; counter-increment: step; }
.steps li + li { margin-top: 22px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.1em; font: 500 16px/1.5 var(--sans); color: var(--ink-3); }
.steps b { display: block; font: 500 17px/1.5 var(--sans); }
.cols-2 { columns: 2; column-gap: 40px; }
.cols-2 li { break-inside: avoid; }
.cols-2 li + li { margin-top: 0; }
.cols-2 li { padding-bottom: 10px; }
.pic43 { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); border-radius: 6px; }
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quad img { border-radius: 4px; aspect-ratio: 1; object-fit: cover; }
.pic43 img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .cols-2 { columns: 1; } }
.credits-list li + li { margin-top: 14px; }
.credits-list li { font: 400 16px/1.5 var(--sans); }

/* contact */
.contact .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .contact .two { grid-template-columns: 1fr; } }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 8px; padding: 0; font: 500 15px/1.4 var(--sans); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #8f8e86; border-radius: 8px; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans); }
.field textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { /* taste-skill-ignore: a form control keeps its edge */ display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border: 1px solid #8f8e86; border-radius: 8px; background: #fff; font: 400 15px/1.2 var(--sans); cursor: pointer; }
.chips input { accent-color: var(--ink); margin: 0; }
.form-note { font: 400 14px/1.5 var(--sans); color: var(--ink-3); }
.side-box + .side-box { margin-top: 40px; }
@media (max-width: 900px) { .row > aside.row-head { order: 2; margin-top: 24px; } }
.side-box p { margin-top: 10px; font-size: 17px; }
.side-box .btn { margin-top: 20px; }

/* ---------- motion ---------- */
html.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
html.js .rv.on { opacity: 1; transform: none; }
@media (max-width: 1080px) { html.js .rv { opacity: 1; transform: none; transition: none; } }
html.js .hero .tile { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + 150ms); }
html.js .hero.loaded .tile { opacity: 1; transform: none; }
html.js .hero-text { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
html.js .hero.loaded .hero-text { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .rv, html.js .hero .tile, html.js .hero-text { opacity: 1; transform: none; transition: none; }
  .btn, .boards button, .choose button, .case figure img, .card .pic img { transition: none; }
}

/* hidden letter behind the logo's iris so text readers see "VisionProof" */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
