/* CyberInnovate — Monochrome editorial × human workshop. Tokens first. */
:root {
  --bg: #ffffff; --bg-alt: #f7f7f5; --surface: #ffffff; --subtle: #f1f3f5;
  --ink: #111111; --ink-2: #525a60; --ink-3: #68727a; --line: #dfe3e6;
  --accent: #315e9e; --accent-hover: #244978; --accent-tint: #eaf0f8; --accent-ink: #ffffff;
  --stroke: #111111; --stroke-soft: #647887;
  --max: 1120px; --measure: 64ch;
  --ease: cubic-bezier(.2,.7,.2,1); --t-fast: 160ms; --t-base: 260ms;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #101010; --bg-alt: #17191b; --surface: #202326; --subtle: #252a2e;
  --ink: #f7f7f5; --ink-2: #c4c9cd; --ink-3: #9aa4ac; --line: #353b40;
  --accent: #8fb8f0; --accent-hover: #b0cfff; --accent-tint: #1b2a3c; --accent-ink: #101010;
  --stroke: #f7f7f5; --stroke-soft: #9aa4ac;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101010; --bg-alt: #17191b; --surface: #202326; --subtle: #252a2e;
    --ink: #f7f7f5; --ink-2: #c4c9cd; --ink-3: #9aa4ac; --line: #353b40;
    --accent: #8fb8f0; --accent-hover: #b0cfff; --accent-tint: #1b2a3c; --accent-ink: #101010;
    --stroke: #f7f7f5; --stroke-soft: #9aa4ac;
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.6; font-feature-settings: "cv11", "ss01", "kern";
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
h1, h2, h3, .display { font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img, svg { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 4px; z-index: 100; }
.skip:focus { top: 12px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.muted { color: var(--ink-3); }
.lead { font-size: 1.2rem; color: var(--ink-2); }
ul.plain { padding-left: 1.2em; max-width: var(--measure); }
ul.plain li { margin-bottom: .45em; }
.todo { background: var(--accent-tint); color: var(--accent); padding: 0 .35em; border-radius: 3px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wordmark { font-family: "Instrument Serif", Georgia, serif; font-size: 1.45rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: 2px; }
.wordmark b { font-weight: 400; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--subtle); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; text-decoration-color: var(--accent); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary { color: var(--accent-ink); background: var(--accent); }
.nav a.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.theme-toggle { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 38px; height: 38px; border-radius: 999px; display: inline-grid; place-items: center; cursor: pointer; margin-left: 6px; transition: border-color var(--t-fast), background var(--t-fast); }
.theme-toggle:hover { border-color: var(--ink-3); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-btn { display: none; appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 38px; height: 38px; border-radius: 8px; place-items: center; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 16px; gap: 2px; display: none; }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 6px; font-weight: 500; text-decoration: none; border: 1px solid transparent; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); cursor: pointer; font-size: .98rem; line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .arrow { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--bg-alt); }
.section + .section:not(.alt) { border-top: 1px solid var(--line); }
.eyebrow-free h2 { max-width: 20ch; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Reveal (progressive) */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Hero */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 30ch; font-size: clamp(2.3rem, 4.5vw, 3.6rem); }
.hero h1 .strike { position: relative; color: var(--ink-3); white-space: nowrap; }
.hero h1 .strike::after { content: ""; position: absolute; left: -1%; top: 54%; height: .075em; width: 0; background: var(--accent); transform: rotate(-1.4deg); animation: strike 800ms var(--ease) 500ms forwards; }
@keyframes strike { to { width: 103%; } }
.hero h1 .promise { display: block; color: var(--accent); }
.hero .lead { margin-top: 1.2em; max-width: 46ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.hero .art { justify-self: end; width: 100%; max-width: 400px; }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero .art { max-width: 320px; justify-self: start; } .hero h1 .strike { white-space: normal; text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: .075em; } .hero h1 .strike::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .strike::after { animation: none; width: 103%; } }

/* Illustration primitives */
.ill { color: var(--stroke); }
.ill path, .ill circle, .ill rect, .ill line, .ill polyline { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ill .soft { color: var(--stroke-soft); }
.ill .acc { color: var(--accent); }
.ill .fill-acc { fill: var(--accent); stroke: none; }
.ill .fill-tint { fill: var(--accent-tint); stroke: none; }
.ill.draw path, .ill.draw circle, .ill.draw polyline { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.ill.draw.in path, .ill.draw.in circle, .ill.draw.in polyline { animation: draw 1600ms var(--ease) forwards; }
.ill.draw.in .d2 { animation-delay: 300ms; } .ill.draw.in .d3 { animation-delay: 600ms; } .ill.draw.in .d4 { animation-delay: 900ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ill.draw path, .ill.draw circle, .ill.draw polyline { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; } }

/* Beliefs / principle lists */
.beliefs { display: grid; gap: 28px; }
.beliefs h3 { margin-bottom: .3em; }
.beliefs p { color: var(--ink-2); margin: 0; }

/* Product showcase — editorial, alternating */
.showcase { display: grid; gap: clamp(40px, 6vw, 80px); }
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { position: relative; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 4vw, 44px); display: grid; place-items: center; }
.feature-media img { width: min(100%, 280px); border-radius: 26px; }
.feature-media .note { position: absolute; left: 16px; bottom: 14px; font-size: .82rem; color: var(--ink-3); }
.feature-body h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .2em; }
.feature-body .tag { font-family: "Instrument Serif", Georgia, serif; font-size: 1.3rem; color: var(--ink-2); margin-bottom: .8em; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; vertical-align: middle; margin-left: 8px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-3); font-size: .9rem; margin-bottom: 1em; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-media { order: 0; } .feature-media img { width: min(100%, 220px); } }

/* How we work */
.stages { position: relative; }
.stages .thread { position: absolute; left: 0; right: 0; top: 14px; height: 24px; pointer-events: none; }
.stage { padding-top: 44px; }
.stage .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); position: absolute; top: 19px; }
.stage h3 { margin-bottom: .3em; }
.stage p { color: var(--ink-2); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .stages .thread { display: none; } .stage { padding-top: 0; } .stage .dot { display: none; } }

/* Product pages */
.product-hero { padding: clamp(40px, 7vw, 96px) 0; }
.product-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.product-hero h1 { max-width: 14ch; font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.product-hero .shot { width: min(100%, 300px); border-radius: 28px; justify-self: center; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 1rem; margin-bottom: 1em; }
.kicker img { width: 28px; height: 28px; border-radius: 7px; }
@media (max-width: 760px) { .product-hero .wrap { grid-template-columns: 1fr; } .product-hero .shot { width: min(100%, 230px); justify-self: start; } }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 24px; border: 1px solid var(--line); }
.gallery figcaption { font-size: .9rem; color: var(--ink-3); margin-top: 10px; }
@media (max-width: 640px) { .gallery, .gallery.two { grid-template-columns: 1fr 1fr; } }
.day { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.day h3 { color: var(--accent); font-size: 1.4rem; }
.day p { color: var(--ink-2); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .day { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .day { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px 40px; margin: 12px 0 0; }
.facts dt { color: var(--ink-3); font-size: .88rem; margin-bottom: 4px; }
.facts dd { margin: 0; }
.related { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 40px; }

/* Products index */
.index-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background var(--t-fast); }
.index-row:hover { background: var(--bg-alt); }
.index-row img { width: 100px; border-radius: 16px; border: 1px solid var(--line); }
.index-row h3 { margin: 0 0 .2em; }
.index-row p { margin: 0; color: var(--ink-2); }
.index-row .arrow { width: 22px; height: 22px; color: var(--accent); }
@media (max-width: 640px) { .index-row { grid-template-columns: 80px minmax(0, 1fr); } .index-row .arrow { display: none; } .index-row img { width: 72px; } }

/* CTA band */
.cta-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; color: var(--ink-2); }
@media (max-width: 700px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .95rem; }
.field .hint { color: var(--ink-3); font-size: .85rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; width: 100%; transition: border-color var(--t-fast); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #b4232c; }
.field .error { color: #b4232c; font-size: .88rem; display: none; }
.field.invalid .error { display: block; }
.form-note { color: var(--ink-3); font-size: .88rem; }
.form-status { padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-alt); display: none; }
.form-status[data-state="ready"] { display: block; }

/* Docs */
.doc { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.doc h2 { font-size: 1.6rem; margin-top: 2em; }
.doc h3 { font-size: 1.2rem; margin-top: 1.6em; }
.doc .meta { margin-bottom: 2em; }
.doc ul { max-width: var(--measure); padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: clamp(36px, 5vw, 64px) 0 40px; color: var(--ink-3); font-size: .93rem; }
.site-foot .cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-foot h4 { margin: 0 0 10px; color: var(--ink); font-size: .95rem; font-weight: 500; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .site-foot .cols { grid-template-columns: 1fr; } }
