/* ============================================================
   Venturo AI — homepage v4 ("Paper & Pigment")
   Ported from relay/design_handoff_homepage_v4/Homepage v4.html.
   Homepage only: the other pages still use styles.css.
   ============================================================ */

/* ---- Fonts (self-hosted) ---- */
@font-face { font-family: 'Switzer'; src: url('assets/fonts/Switzer-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('assets/fonts/Switzer-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('assets/fonts/GeistMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('assets/fonts/GeistMono-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
/* Source Serif 4 (SIL OFL), weight 400 instance with the optical-size axis kept (opsz 8–60),
   subset to Latin + Latin-1 (French accents) and typographic punctuation. 45 KB instead of 123 KB.
   Built from @fontsource-variable/source-serif-4 5.1.1 with fontTools (varLib.instancer + pyftsubset). */
@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/SourceSerif4-400-opsz-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E,U+00A0-00FF,U+0152-0153,U+2013-2014,U+2018-201E,U+2022,U+2026,U+2039-203A,U+20AC,U+2192,U+2212;
}

:root {
  --font-sans: 'Switzer', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-serif: 'Source Serif 4', Georgia, serif;
}

/* ---- Design reference styles (verbatim unless noted) ---- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#faf8f3;color:#1a1916;font-family:var(--font-sans);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:#1a1916;text-decoration:underline;text-decoration-color:#9d97f0;text-underline-offset:3px}a:hover{color:#5b5750}
.wrap{max-width:1200px;margin:0 auto;padding:0 32px;position:relative}
.serif{font-family:var(--font-serif);font-optical-sizing:auto}
.mono{font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.04em}
.lab{display:flex;align-items:center;gap:12px;font-family:var(--font-mono);font-size:12px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:#5b5750}
.lab::before{content:"";width:24px;height:3px;border-radius:2px;background:#9d97f0;flex-shrink:0}
h1,h2,h3{font-family:var(--font-serif);font-optical-sizing:auto;font-weight:400;margin:0;text-wrap:balance}
h2{font-size:clamp(34px,4vw,52px);line-height:1.08;letter-spacing:-1px;margin:16px 0 20px}
h2 span,h1 span{color:#6b665d}
h3{font-size:28px;line-height:1.15;letter-spacing:-.4px;margin:12px 0 14px}
p{margin:0 0 14px;text-wrap:pretty}.mut{color:#5b5750}
section{position:relative;isolation:isolate;scroll-margin-top:16px}
.deco{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.gridbg{-webkit-mask-image:radial-gradient(ellipse 80% 75% at 50% 50%,#000 40%,transparent 100%);mask-image:radial-gradient(ellipse 80% 75% at 50% 50%,#000 40%,transparent 100%)}
.btn{display:inline-flex;align-items:center;gap:8px;font-size:16px;padding:13px 22px;border-radius:4px;text-decoration:none;transition:background .15s,border-color .15s}
.btn.solid{background:#1a1916;color:#faf8f3}.btn.solid:hover{background:#000;color:#faf8f3}
.btn.ghost{border:1px solid #d9d3c6;background:#f4f1ea;color:#1a1916}.btn.ghost:hover{border-color:#1a1916;color:#1a1916}
.dark{background:#010120;color:#fff}.dark .mut{color:#b4b4c8}.dark h2 span{color:#a6a6c0}.dark .lab{color:#bdbbff}.dark .lab::before{background:#bdbbff}
nav{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0}
nav .links{display:flex;gap:32px;font-size:16px;flex-wrap:wrap;align-items:center}nav .links a{text-decoration:none;color:#3a3732}nav .links a:hover{color:#1a1916}
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,1fr);gap:48px;align-items:center;padding:72px 0 112px}
.pipe{width:100%;height:auto;display:block}
@media (max-width:600px){.pipe{max-width:300px;margin:0 auto}}
.tool{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:64px;align-items:center;padding:112px 0}
.report{background:#fffdf8;border:1px solid #e2dccf;border-radius:4px;padding:28px}
.report .row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-top:1px solid #ece7dc;font-size:15px}
.st{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#3a3732}
/* "Three ways in" and the example evidence points are real lists (AI engines extract lists); markers and spacing reset so they look as before */
ul.ways,ul.evs{list-style:none;padding:0;margin-bottom:0}ul.evs{margin:0}
.ways{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:20px;margin-top:40px}
.way{background:#fffdf8;border:1px solid #e2dccf;border-radius:4px;padding:28px;display:flex;flex-direction:column}
.way .foot{margin-top:auto;padding-top:20px;font-family:var(--font-mono);font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#5b5750}
details{border-top:1px solid #e2dccf;padding:22px 0}details:last-child{border-bottom:1px solid #e2dccf}
summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:24px;font-family:var(--font-serif);font-optical-sizing:auto;font-size:23px;line-height:1.25}
summary::after{content:"+";font-family:var(--font-mono);color:#5b5750}details[open] summary::after{content:"–"}summary::-webkit-details-marker{display:none}
details p{margin:14px 0 0;max-width:760px;color:#3a3732}
.contact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:72px;padding:120px 0 96px}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}.field span{font-family:var(--font-mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#a6a6c0}
.field input,.field textarea{background:#0a0a2e;border:1px solid rgba(255,255,255,.16);border-radius:4px;color:#fff;font:inherit;font-size:16px;padding:13px 14px}
.field input:focus,.field textarea:focus{outline:none;border-color:#fff}
.field textarea{resize:vertical;line-height:1.45}
.btn.inv{background:#faf8f3;color:#010120;border:0;cursor:pointer;font:inherit;font-size:16px}.btn.inv:hover{background:#fff}
.btn.inv:disabled{opacity:.7;cursor:default}
footer{border-top:1px solid rgba(255,255,255,.12);padding:32px 0 48px;display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;font-size:14px;color:#a6a6c0}
footer a{color:#d0d0de;text-decoration:none}footer a:hover{color:#fff}
.scanwrap{display:grid;grid-template-columns:150px minmax(0,1fr);gap:8px;align-items:stretch}
.scan{min-width:0;background:#fffdf8;border:1px solid #e2dccf;border-radius:4px;padding:24px}
.scan .in{display:flex;gap:8px;margin:14px 0 18px}.scan .url{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #d9d3c6;border-radius:4px;padding:10px 12px;font-family:var(--font-mono);font-size:14px;background:#faf8f3;min-height:42px}
.scan .go{white-space:nowrap;flex-shrink:0;background:#1a1916;color:#faf8f3;border-radius:4px;padding:10px 14px;font-size:14px}
.caret{display:inline-block;width:1px;height:16px;background:#1a1916;vertical-align:-3px;margin-left:1px;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.cells g{transition:opacity .25s}
.cmp{position:relative;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr) 150px;gap:48px;align-items:start}
.eng{background:#fffdf8;border:1px solid #e2dccf;border-radius:4px;padding:30px}
.gen{padding-top:31px;position:relative;min-width:0}.cmp>*{min-width:0}
.anno{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
/* .tn text comes from data-t via ::after, so the tags stay out of the page's reading text */
.tn{display:none;font-family:var(--font-mono);font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:#4a4740;border:1px dashed #b8b0a0;border-radius:3px;padding:1px 6px;white-space:nowrap;vertical-align:2px}
.tn::after{content:attr(data-t)}
@media (max-width:1180px){.cmp{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:40px}.tn{display:inline-block}}@media (max-width:760px){.cmp{grid-template-columns:1fr;gap:28px}}@media (max-width:600px){.anno{display:none}}
.ev{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.45}
.panel{background:#fffdf8;border:1px solid #e2dccf;border-radius:4px;padding:48px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center}
.panel.flip .txt{order:2}
.num{font-family:var(--font-serif);font-optical-sizing:auto;font-size:64px;line-height:1;letter-spacing:-2px;color:#1a1916}
.out{background:#faf8f3;border:1px solid #e2dccf;border-radius:4px;padding:20px;font-size:14px}
.out .bar{height:6px;border-radius:3px;background:#e6e0d4;margin:7px 0}
.howlab{font-family:var(--font-mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#6b665d;margin:22px 0 4px}
.rec{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:72px;align-items:start;padding:112px 0}
.rec .meta{border-top:1px solid #e2dccf;margin-top:16px}.rec .meta div{display:flex;flex-direction:column;gap:12px;padding:9px 0;border-bottom:1px solid #e2dccf;font-size:14px}
.rec .meta span:first-child{font-family:var(--font-mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#5b5750;padding-top:2px}
/* Addendum 05: the "19 checks" line sits under the scan card (column 2 beside the pencil notes; column 1 once they hide) */
.scannote{grid-column:2}
@media (max-width:1180px){.scanwrap{grid-template-columns:1fr}.scannote{grid-column:1}.scanwrap .notes{display:none}}@media (max-width:860px){.panel,.rec{grid-template-columns:1fr;padding:28px}.panel.flip .txt{order:0}}
@keyframes drift{to{stroke-dashoffset:-40}}
@media (max-width:760px){.span2{grid-column:auto!important}}
@media (max-width:860px){.hero,.tool,.contact{grid-template-columns:minmax(0,1fr);gap:40px}nav .links{display:none}nav{gap:12px}nav .btn{padding:10px 14px;font-size:14px;white-space:nowrap}}

/* Addendum 01 §1: mobile hero. Scan card moves up under the H1; tighter space under the nav;
   42px H1 at ≤480px. Verbatim from the reference (display:contents + order). */
@media (max-width:860px){.hero{gap:0;padding:28px 0 72px}.hero>div:first-child{display:contents}.hero>div:first-child>*:nth-child(1){order:1}.hero>div:first-child>h1{order:2;margin-bottom:24px!important}.hero>.scanwrap{order:3;margin-bottom:28px}.hero>div:first-child>p{order:4}.hero>div:first-child>*:nth-child(4){order:5;margin-top:8px!important}.hero>div:first-child>*:nth-child(5){order:6}}
@media (max-width:480px){.hero h1{font-size:42px!important;letter-spacing:-1.4px!important}.hero>div:first-child>p{font-size:18px!important}.scan{padding:18px}}

/* About on mobile (Andrew, 21 Nov): photo stacks below the text, at 55% of the column width
   (about 45% smaller than full width). */
@media (max-width:860px){.rec{gap:40px}.rec>div:first-child{order:2;width:55%}}

/* ---- Additions for production (not in the reference) ---- */
.logo{display:inline-flex;align-items:center;text-decoration:none}
.logo img{display:block;height:24px;width:auto}
footer .logo img{height:20.8px}
/* Addendum 04: language toggle sits with the contact button and stays visible at every width.
   Current language in ink, the other a link (44px tap target); "/" in a lighter grey. */
.navr{display:flex;align-items:center;gap:20px}
.lang{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#8a857a}
.lang a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;color:#5b5750;text-decoration:none}.lang a:hover{color:#1a1916}
.lang [aria-current]{color:#1a1916}
@media (max-width:860px){.navr{gap:12px}}
/* Small phones: tighten so logo, toggle and button fit. The logo image scales with the
   reference wordmark (30px → 26px → 23px), i.e. 24px → 20.8px → 18.4px tall. */
@media (max-width:480px){.navr{gap:10px}.lang{gap:3px}.lang a{padding:0 2px}nav .btn{padding:9px 12px;font-size:13px}nav .btn .arr{display:none}nav .logo img{height:20.8px}}
@media (max-width:380px){.navr .lang{font-size:11px}nav .logo img{height:18.4px}.scannote{font-size:11px!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid #9d97f0;outline-offset:3px;border-radius:2px}
.dark a:focus-visible,.dark button:focus-visible{outline-color:#bdbbff}

/* Contact form: spam trap, Turnstile, privacy link, error and thank-you states */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.cf-turnstile{margin:4px 0 18px;min-height:65px}
.contact-privacy{margin:16px 0 0;font-size:14px;color:#b4b4c8}
.contact-privacy a{color:#d0d0de;text-decoration-color:#bdbbff}.contact-privacy a:hover{color:#fff}
#contact-error{display:none;margin:14px 0 0;font-size:15px;line-height:1.45;color:#f6c2b8}
#contact-confirm{display:none;flex-direction:column}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .caret{animation:none}
  *{animation-duration:0s!important;animation-iteration-count:1!important;transition-duration:0s!important}
}
