:root {
  --bg: #f8f7f4;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #626262;
  --line: #d8d7d2;
  --soft: #eeece7;
  --accent: #b3261e;
  --dark: #151515;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1440px;
  --pad: clamp(22px, 4vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.58; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1,h2,h3 { margin: 0; font-weight: 500; letter-spacing: -0.045em; line-height: 1.01; text-wrap: balance; }
h1 { font-size: clamp(3.7rem, 7.2vw, 7.9rem); max-width: 11.5ch; }
h2 { font-size: clamp(2.5rem, 5.2vw, 6rem); max-width: 12ch; }
h3 { font-size: clamp(1.45rem, 2.3vw, 2.4rem); }
strong { font-weight: 600; }
.container { width: min(calc(100% - 2 * var(--pad)), var(--max)); margin: 0 auto; }
.section-pad { padding: clamp(92px, 10vw, 154px) 0; }
.border-top { border-top: 1px solid var(--line); }
.tonal { background: var(--soft); }
.eyebrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.skip-link { position:absolute; top:-100px; left:12px; padding:10px 14px; background:var(--ink); color:#fff; z-index:1000; }
.skip-link:focus { top:12px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248,247,244,.88); backdrop-filter: blur(18px); border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease; }
.site-header.is-scrolled { border-color: var(--line); background: rgba(248,247,244,.96); }
.header-inner { min-height: 72px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.brand { display:inline-flex; align-items:center; gap:.7rem; font-size:1rem; font-weight:600; letter-spacing:-.03em; }
.brand-logo { height: 30px; width:auto; object-fit:contain; }
.site-nav { display:flex; align-items:center; gap:clamp(14px,2vw,30px); font-size:.88rem; }
.site-nav a { transition: opacity .2s ease, transform .2s ease; }
.site-nav a:hover { opacity:.55; transform:translateY(-1px); }
.nav-cta { border:1px solid var(--ink); padding:.58rem .95rem; border-radius:999px; }
.nav-toggle { display:none; background:none; border:0; width:40px; height:40px; padding:8px; }
.nav-toggle span { display:block; width:100%; height:1px; background:var(--ink); margin:7px 0; }

.hero { padding-top: clamp(64px,7vw,108px); padding-bottom: clamp(96px,10vw,150px); }
.hero-grid { display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); gap:clamp(52px,6.5vw,104px); align-items:center; }
.hero-copy { display:grid; align-content:start; gap:1.6rem; padding-right:clamp(8px,1.5vw,28px); }
.hero-copy h1 { margin-top:.2rem; }
.hero-subhead { font-size:clamp(1.08rem,1.45vw,1.48rem); line-height:1.52; max-width:40ch; color:#404040; }
.button-row { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:.8rem; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:.76rem 1.12rem; border:1px solid var(--ink); font-size:.9rem; transition: transform .22s ease, background .22s ease, color .22s ease; }
.button:hover { transform:translateY(-3px) scale(1.01); }
.button-primary { background:var(--ink); color:#fff; }
.button-secondary { background:transparent; }
.button-secondary:hover { background:#fff; }
.media-frame { margin:0; overflow:hidden; }
.media-frame img { width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.2,.7,.2,1); }
.media-frame:hover img { transform:scale(1.008); }
.media-frame figcaption { margin-top:.7rem; font-size:.78rem; color:var(--muted); }
.hero-visual { aspect-ratio: 1.43 / 1; }
.hero-visual img { object-position:center; }
.image-bleed { overflow:visible; }

.facts { border-bottom:1px solid var(--line); }
.fact-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.fact-grid > div { padding:28px 24px 30px 0; border-right:1px solid var(--line); display:grid; gap:.2rem; }
.fact-grid > div:not(:first-child) { padding-left:28px; }
.fact-grid > div:last-child { border-right:0; }
.fact-value { font-size:clamp(2rem,3.5vw,4rem); letter-spacing:-.06em; line-height:1; }
.fact-label { font-size:.78rem; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }

.split-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(50px,8vw,140px); align-items:start; }
.text-stack { display:grid; gap:1.45rem; color:#343434; max-width:62ch; }
.large-copy { font-size:clamp(1.15rem,1.5vw,1.48rem); }
.section-heading-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.6fr); gap:60px; align-items:end; margin-bottom:clamp(54px,6vw,96px); }
.section-heading-row > p { color:var(--muted); max-width:48ch; justify-self:end; }

.workflow-showcase { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:clamp(35px,6vw,90px); align-items:center; }
.light-frame { background:#e7e3dc; border:1px solid #d4d0c8; }
.large-media { min-height:430px; }
.large-media img { object-fit:contain; }
.workflow-copy { display:grid; gap:0; border-top:1px solid var(--line); }
.workflow-copy article { display:grid; grid-template-columns:34px 1fr; column-gap:18px; padding:24px 0; border-bottom:1px solid var(--line); }
.workflow-copy article span { font-size:.75rem; color:var(--accent); padding-top:.25rem; }
.workflow-copy article h3 { font-size:1.35rem; margin-bottom:.55rem; }
.workflow-copy article p { grid-column:2; color:var(--muted); max-width:42ch; }
.full-media-wrap { max-width:1320px; }
.hover-lift { transition:transform .3s ease, box-shadow .3s ease; }
.hover-lift:hover { transform:translateY(-5px); box-shadow:0 20px 50px rgba(0,0,0,.08); }

.methods-section { background:var(--bg); }
.methods-heading { margin-bottom:0; }
.method-story { padding:clamp(90px,10vw,150px) 0; border-top:1px solid var(--line); }
.method-dark { background:var(--dark); color:#fff; }
.method-dark .eyebrow, .method-dark .method-copy p { color:#bababa; }
.method-grid { display:grid; grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr); gap:clamp(45px,7vw,120px); align-items:center; }
.method-reverse .method-copy { order:2; }
.method-reverse .method-media { order:1; }
.method-copy { display:grid; gap:1.35rem; align-content:center; }
.method-copy h3, .method-copy h2 { max-width:12ch; }
.method-copy > p:not(.eyebrow) { color:var(--muted); max-width:42ch; font-size:1.05rem; }
.method-index { font-size:.78rem; color:var(--accent); }
.method-media { aspect-ratio:16/10; }
.method-media img { object-fit:cover; }

.technical-section { background:#fff; }
.technical-grid { display:grid; grid-template-columns:.72fr 1fr 1fr; gap:30px; align-items:start; }
.technical-copy { padding:30px 18px 30px 0; display:grid; gap:1rem; }
.technical-copy p { color:var(--muted); }
.tech-pills { display:flex; flex-wrap:wrap; gap:7px; margin-top:.5rem; }
.tech-pills span { border:1px solid var(--line); border-radius:999px; padding:.42rem .7rem; font-size:.75rem; color:#444; }
.technical-media { background:#ece9e2; min-height:420px; }
.technical-media img { object-fit:contain; }

.advanced-grid { display:grid; grid-template-columns:minmax(0,.78fr) minmax(360px,1.22fr); gap:clamp(50px,8vw,140px); align-items:center; }
.advanced-copy { display:grid; gap:1.5rem; }
.advanced-copy p:not(.eyebrow) { color:var(--muted); max-width:48ch; }
.advanced-media { max-height:760px; }
.advanced-media img { object-fit:contain; max-height:760px; }

.video-wrap { background:#111; overflow:hidden; }
.product-video { width:100%; aspect-ratio:16/9; object-fit:cover; background:#111; }

.docs-showcase { display:grid; grid-template-columns:minmax(260px,.65fr) minmax(0,1.35fr); gap:clamp(50px,8vw,140px); align-items:center; }
.manual-cover { margin:0; max-width:520px; box-shadow:0 18px 50px rgba(0,0,0,.12); }
.manual-cover img { width:100%; }
.docs-copy { display:grid; gap:1.5rem; }
.docs-copy p:not(.eyebrow) { color:var(--muted); max-width:55ch; font-size:1.06rem; }

.founder-section { background:#fff; }
.founder-grid { display:grid; grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr); gap:clamp(50px,8vw,140px); align-items:center; }
.founder-portrait { max-height:720px; aspect-ratio:4/5; }
.founder-portrait img { object-fit:cover; object-position:center 28%; }
.founder-copy { display:grid; gap:1.45rem; }
.founder-copy p:not(.eyebrow):not(.role-label) { color:var(--muted); max-width:52ch; font-size:1.08rem; }
.role-label { margin-top:.7rem; font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; }

.disclaimer-section p { color:var(--muted); max-width:60ch; }
.download-section { background:var(--dark); color:#fff; }
.download-panel { text-align:center; display:grid; justify-items:center; gap:1.25rem; }
.download-panel h2 { max-width:none; }
.download-panel > p:not(.eyebrow) { color:#bdbdbd; max-width:60ch; }
.download-panel .button-primary { background:#fff; color:#111; border-color:#fff; }
.download-panel .button-secondary { color:#fff; border-color:#777; }
.center { justify-content:center; }

.site-footer { border-top:1px solid var(--line); padding:50px 0; }
.footer-grid { display:flex; justify-content:space-between; gap:50px; align-items:flex-end; }
.footer-grid p { margin-top:.8rem; color:var(--muted); font-size:.85rem; }
.footer-nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:18px 26px; font-size:.82rem; }
.footer-brand .brand-logo { height:27px; }

/* documentation page */
.narrow { max-width:980px; }
.doc-hero h1 { max-width:none; }
.docs-layout { display:grid; grid-template-columns:240px minmax(0,1fr); gap:70px; align-items:start; }
.doc-sidebar { position:sticky; top:100px; display:grid; gap:10px; font-size:.83rem; }
.doc-sidebar a { color:var(--muted); padding:.35rem 0; }
.doc-sidebar a:hover { color:var(--ink); }
.doc-content { display:grid; gap:80px; max-width:900px; }
.doc-content section { scroll-margin-top:100px; }
.doc-content section h2 { font-size:clamp(2rem,3.5vw,4rem); max-width:none; margin-bottom:1.25rem; }
.doc-content section h3 { font-size:1.3rem; margin-bottom:.5rem; }
.doc-content section p { color:#444; }
.note-block { margin-top:1.2rem; padding:18px 20px; border-left:3px solid var(--accent); background:#efede7; }
.parameter-table { margin-top:1.4rem; border-top:1px solid var(--line); }
.parameter-table > div { display:grid; grid-template-columns:210px 1fr; gap:24px; padding:16px 0; border-bottom:1px solid var(--line); }
.parameter-table span { color:var(--muted); }
.doc-grid-small { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:1.5rem; }
.doc-grid-small > div { border:1px solid var(--line); padding:20px; background:#fff; }
.doc-image { margin-top:1.6rem; }
.doc-image img { max-height:620px; object-fit:contain; background:#e9e6df; }

.reveal { opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity:1; transform:none; }
.reveal-delay-1 { transition-delay:.06s; }
.reveal-delay-2 { transition-delay:.12s; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } .reveal { opacity:1; transform:none; transition:none; } * { transition-duration:.001ms !important; } }

@media (max-width: 1050px) {
  h1 { font-size:clamp(3.6rem,9vw,6.8rem); }
  .hero-grid, .split-grid, .workflow-showcase, .method-grid, .advanced-grid, .docs-showcase, .founder-grid { grid-template-columns:1fr; }
  .hero-copy h1 { max-width:11ch; }
  .hero-visual { aspect-ratio:16/10; }
  .section-heading-row { grid-template-columns:1fr; gap:24px; align-items:start; }
  .section-heading-row > p { justify-self:start; }
  .method-reverse .method-copy, .method-reverse .method-media { order:initial; }
  .technical-grid { grid-template-columns:1fr 1fr; }
  .technical-copy { grid-column:1/-1; max-width:720px; }
  .advanced-media { max-width:760px; }
  .founder-portrait { max-width:620px; }
}

@media (max-width: 760px) {
  :root { --pad:20px; }
  .section-pad, .method-story { padding:72px 0; }
  h1 { font-size:clamp(3.1rem,16vw,5.6rem); }
  h2 { font-size:clamp(2.3rem,11vw,4rem); }
  .site-nav { display:none; position:absolute; top:72px; left:0; right:0; padding:20px; background:var(--bg); border-bottom:1px solid var(--line); flex-direction:column; align-items:flex-start; }
  .site-nav.is-open { display:flex; }
  .nav-toggle { display:block; }
  .fact-grid { grid-template-columns:1fr 1fr; }
  .fact-grid > div { border-bottom:1px solid var(--line); }
  .fact-grid > div:nth-child(2) { border-right:0; }
  .technical-grid { grid-template-columns:1fr; }
  .technical-copy { grid-column:auto; }
  .technical-media { min-height:0; }
  .method-media { aspect-ratio:4/3; }
  .large-media { min-height:0; }
  .footer-grid { flex-direction:column; align-items:flex-start; }
  .footer-nav { justify-content:flex-start; }
  .docs-layout { grid-template-columns:1fr; gap:36px; }
  .doc-sidebar { position:static; grid-template-columns:repeat(2,1fr); border-bottom:1px solid var(--line); padding-bottom:24px; }
  .doc-grid-small { grid-template-columns:1fr; }
  .parameter-table > div { grid-template-columns:1fr; gap:4px; }
}

/* final visual polish */
section { scroll-margin-top: 72px; }
.method-story:first-of-type { border-top: 0; }
.workflow-copy article p, .method-copy > p:not(.eyebrow), .advanced-copy p:not(.eyebrow), .docs-copy p:not(.eyebrow), .founder-copy p:not(.eyebrow):not(.role-label) { line-height: 1.62; }
.technical-copy { gap: 1.2rem; }
.download-panel { gap: 1.45rem; }
.site-footer { padding: 58px 0; }
@media (max-width:1050px) { .hero-copy { padding-right:0; } }

/* Hero image refinement */
.hero .container {
  width: min(calc(100% - 2 * clamp(42px, 5.25vw, 96px)), 1540px);
}
@media (min-width: 981px) {
  .hero-grid {
    grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
    gap: clamp(64px, 6.5vw, 108px);
  }
  .hero-visual {
    width: 99%;
    justify-self: end;
  }
}
.hero-visual {
  border: 1px solid rgba(17,17,17,.22);
  padding: 7px;
  background: var(--bg);
}
.hero-visual figcaption {
  padding: 0 2px 2px;
}
@media (max-width: 980px) {
  .hero .container { width: min(calc(100% - 2 * var(--pad)), var(--max)); }
}
