:root {
  --ink: #131313;
  --muted: #666666;
  --soft: #D3D3D3;
  --purple: #8667FF;
  --grey: #F2F2F2;
  --line: #E4E4E4;
  --dark: #0E0E0E;
  --red: #D93636;
  --sans: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, monospace;
  --notch: 22px;
  --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.container { width: min(100% - 64px, 1240px); margin: 0 auto; }
.notch { clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }

/* ---------- Label: "/ MISSION" with accent line ---------- */
.label { position: relative; margin: 0 0 22px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
.label::before { content: ""; position: absolute; left: 0; top: -2px; width: 120px; height: 3px; background: var(--purple); }
.label.plain { border: 0; padding: 0; }
.label.plain::before { display: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.04em; line-height: 1.08; }
.h1 { font-size: 56px; }
.h2 { font-size: 56px; }
.lede { font-size: 19px; line-height: 1.5; letter-spacing: -.01em; color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 18px; height: 48px; padding: 0 6px 0 22px; background: var(--ink); color: #fff; font-size: 18px; font-weight: 500; letter-spacing: -.02em; transition: background .2s; }
.btn .sq { display: grid; place-items: center; width: 36px; height: 36px; background: var(--purple); color: #fff; }
.btn .sq svg { width: 14px; height: 14px; }
.btn:hover { background: #2a2a2a; }
.btn.purple { background: var(--purple); }
.btn.purple .sq { background: var(--ink); }
.btn.purple:hover { background: #7556f2; }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.light:hover { background: var(--grey); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: transform .35s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 32px; background: rgba(242, 242, 242, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.logo svg { width: 96px; height: 30px; display: block; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; background: var(--purple); color: #fff; font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.pill:hover { background: #7556f2; }
.menu-btn { display: grid; place-items: center; width: 34px; height: 34px; background: #fff; border: 1px solid var(--line); }
.menu-btn svg { width: 16px; height: 12px; }
.menu { position: absolute; top: calc(var(--header-h) - 6px); right: 32px; width: 240px; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.08); display: none; }
.menu.is-open { display: block; }
.menu a { display: block; padding: 12px 12px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; }
.menu a:hover { background: var(--grey); }

/* ---------- Home: hero ---------- */
.hero { background: var(--grey); padding: calc(var(--header-h) + 24px) 0 40px; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; min-height: 520px; }
.hero video { width: 100%; max-width: 536px; }
.hero h1 { font-size: 50px; letter-spacing: -.04em; margin-bottom: 26px; }
.hero p { margin: 0 0 34px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; max-width: 420px; }
.logo-band { background: var(--purple); padding: 26px 0; overflow: hidden; }
.logo-track { display: flex; width: max-content; animation: scroll 60s linear infinite; }
.logo-track img { height: 52px; width: auto; margin: 0 28px; object-fit: contain; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Home: bottlenecks ---------- */
.bottlenecks { position: relative; min-height: 90vh; display: grid; place-items: center; padding: 140px 0; overflow: hidden; }
.bottlenecks h2 { position: relative; z-index: 1; max-width: 960px; text-align: center; font-size: 56px; }
.bottlenecks h2 .w { opacity: .15; transition: opacity .25s; }
.bottlenecks h2 .w.on { opacity: 1; }
.problem { position: absolute; display: flex; align-items: flex-start; gap: 12px; width: min(430px, 80vw); padding: 22px 24px; background: var(--grey); font-size: 18px; font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.problem svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--red); }
.problem.p1 { left: 8%; top: 14%; }
.problem.p2 { right: 8%; top: 22%; }
.problem.p3 { left: 16%; bottom: 22%; }
.problem.p4 { right: 12%; bottom: 12%; }

/* ---------- Generic section ---------- */
.section { padding: 110px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.section-head p { margin: 0; font-size: 16px; color: var(--muted); max-width: 440px; justify-self: end; }

/* Mission */
.mission .intro { max-width: 760px; margin-bottom: 40px; }
.mission .intro p { margin: 18px 0 0; font-size: 16px; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-left: auto; max-width: 760px; }
.stat { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 28px 28px; background: var(--grey); }
.stat strong { font-size: 42px; font-weight: 700; letter-spacing: -.02em; color: var(--purple); }
.stat h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 4px; }
.stat p { margin: 0; font-size: 15px; color: var(--muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { padding: 30px 28px 34px; background: var(--grey); }
.service img { width: 190px; height: 140px; object-fit: contain; margin-bottom: 26px; }
.service h3 { font-size: 26px; margin-bottom: 10px; }
.service p { margin: 0; color: var(--muted); }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.step .num { font-size: 28px; font-weight: 700; color: var(--soft); letter-spacing: -.04em; }
.step img { width: 130px; height: 130px; object-fit: contain; }
.step h3 { font-size: 28px; margin-bottom: 12px; }
.step p { margin: 0; color: var(--muted); }

/* Testimonials */
.testimonials { background: var(--grey); padding: 110px 0; clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 60px, 100% 100%, 0 100%); }
.quote-mark { font-size: 120px; line-height: .6; color: var(--soft); font-weight: 700; height: 50px; }
.tslides { position: relative; min-height: 340px; }
.tslide { position: absolute; left: 0; right: 0; top: 0; opacity: 0; visibility: hidden; transition: opacity .5s; }
.tslide.is-active { position: relative; opacity: 1; visibility: visible; }
.tslide blockquote { margin: 0 0 40px; max-width: 980px; font-size: 40px; font-weight: 500; line-height: 1.22; letter-spacing: -.02em; }
.who { display: flex; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid #d9d9d9; max-width: 980px; }
.who img { width: 56px; height: 56px; object-fit: cover; }
.who h4 { font-size: 24px; letter-spacing: -.04em; }
.who p { margin: 2px 0 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.tnav { display: flex; gap: 8px; margin-left: auto; }
.tnav button { display: grid; place-items: center; width: 40px; height: 40px; background: #fff; border: 1px solid var(--line); }
.tnav button:hover { border-color: var(--ink); }
.tnav svg { width: 14px; height: 14px; }

/* Difference */
.difference h2 { text-align: center; margin-bottom: 56px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1040px; margin: 0 auto; }
.compare > div { padding: 32px 32px 36px; }
.compare .ours { background: #262626; color: #fff; }
.compare .theirs { background: var(--grey); }
.compare .head { height: 40px; display: flex; align-items: center; margin-bottom: 18px; }
.compare .head svg { width: 96px; height: 30px; }
.compare h3 { font-size: 22px; letter-spacing: -.03em; }
.compare ul { margin: 0; padding: 0; list-style: none; }
.compare li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 16px; }
.compare .theirs li { border-top-color: #e2e2e2; color: #333; }
.compare li i { flex: none; display: grid; place-items: center; width: 18px; height: 18px; background: var(--purple); color: #fff; font-style: normal; font-size: 11px; }
.compare .theirs li i { background: #fde7e7; color: var(--red); }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 760px; }
.faq-list details { background: var(--grey); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; background: #fff; font-size: 18px; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0; padding: 0 24px 24px; color: var(--muted); max-width: 640px; }

/* Blog cards */
.blog-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.featured { display: block; margin-bottom: 40px; }
.featured img { width: 100%; aspect-ratio: 1067 / 560; object-fit: cover; margin-bottom: 22px; }
.post-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.featured h3 { font-size: 36px; margin-bottom: 10px; max-width: 900px; }
.featured p, .card p { margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card img { width: 100%; aspect-ratio: 522 / 478; object-fit: cover; margin-bottom: 18px; }
.card h4 { font-size: 24px; letter-spacing: -.04em; margin-bottom: 8px; }
.card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h4, .featured:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- CTA + footer (all pages) ---------- */
.site-footer { background: var(--dark); color: #fff; padding: 110px 0 36px; }
.cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-bottom: 90px; border-bottom: 1px solid #262626; }
.cta h2 { font-size: 56px; margin-bottom: 22px; }
.cta p { margin: 0 0 34px; max-width: 520px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; color: #bdbdbd; }
.cta .media { justify-self: end; width: min(100%, 380px); padding: 10px; border: 1px solid #333; background: #141414; }
.cta video { width: 100%; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 56px 0; }
.cols h3 { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: uppercase; color: #8a8a8a; }
.cols a { display: block; padding: 6px 0; font-size: 17px; }
.cols a:hover { color: var(--purple); }
.copyright { margin: 0; padding-top: 24px; border-top: 1px solid #262626; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: #8a8a8a; }

/* ---------- Inner page header ---------- */
.page-head { background: var(--grey); padding: calc(var(--header-h) + 50px) 0 60px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), calc(100% - 50px) 100%, 0 100%); }
.page-head .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.page-head .container > p { margin: 0; color: var(--muted); max-width: 460px; justify-self: end; }

/* Case studies index */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 32px; padding: 80px 0 110px; }
.case-card img { width: 100%; aspect-ratio: 522 / 415; object-fit: cover; margin-bottom: 18px; }
.case-card .case-year { font-family: var(--mono); font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.case-card h3 { font-size: 28px; margin-bottom: 18px; }
.case-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.mini-stats strong { display: block; font-size: 32px; letter-spacing: -.04em; }
.mini-stats span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }

/* Case study */
.cs-hero { padding: calc(var(--header-h) + 40px) 0 0; }
.cs-hero h1 { font-size: 56px; margin-bottom: 14px; max-width: 1000px; }
.cs-hero .lede { margin: 0 0 40px; max-width: 860px; }
.cs-hero > .container > img { width: 100%; aspect-ratio: 1067 / 640; object-fit: cover; }
.cs-meta { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding: 40px 0 60px; border-bottom: 1px solid var(--line); }
.cs-meta h2 { font-family: var(--mono); font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: uppercase; margin-bottom: 8px; }
.cs-meta p { margin: 0; }
.cs-body { max-width: 720px; margin: 0 auto; padding: 80px 0 40px; }
.cs-block { margin-bottom: 72px; }
.cs-block h3 { font-size: 26px; margin-bottom: 14px; }
.cs-block p { margin: 0 0 14px; color: #333; }
.cs-block ul { margin: 14px 0 0; padding-left: 20px; color: #333; }
.cs-block li { margin-bottom: 8px; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; padding: 24px; background: var(--grey); }
.results strong { display: block; font-size: 26px; letter-spacing: -.03em; }
.results span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.next-case { display: grid; grid-template-columns: 1fr 1fr; background: var(--grey); margin-top: 40px; }
.next-case .copy { padding: 60px 48px; align-self: center; }
.next-case h2 { font-size: 48px; margin: 14px 0 22px; }
.next-case img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 498 / 420; }

/* Blog post */
.post-head { padding: calc(var(--header-h) + 40px) 0 0; }
.post-head h1 { font-size: 56px; margin: 6px 0 18px; max-width: 980px; }
.post-head .lede { margin: 0 0 36px; max-width: 900px; }
.post-head img { width: 100%; aspect-ratio: 1067 / 560; object-fit: cover; }
.prose { max-width: 760px; margin: 0 auto; padding: 64px 0 40px; font-size: 19px; line-height: 1.6; letter-spacing: -.01em; }
.prose h2 { font-size: 34px; margin: 48px 0 16px; }
.prose h3 { font-size: 24px; margin: 36px 0 12px; }
.prose p { margin: 0 0 20px; }
.prose ul { margin: 0 0 24px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose img { width: 100%; margin: 32px 0; }
.prose a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.prose em { color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 28px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; color: var(--muted); }
.legal .updated { font-family: var(--mono); font-size: 13px; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: 24px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: calc(var(--header-h) + 50px) 0 100px; }
.contact h1 { font-size: 56px; margin-bottom: 22px; }
.contact .intro p { margin: 0 0 16px; font-size: 19px; }
.call-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; margin: 32px 0; background: var(--grey); }
.call-card h2 { font-size: 24px; margin-bottom: 4px; }
.call-card p { margin: 0; color: var(--muted); font-size: 16px; }
.hours h2 { font-family: var(--mono); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: uppercase; margin-bottom: 8px; }
.hours p { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.form { display: grid; gap: 20px; padding: 32px; background: var(--grey); align-self: start; }
.form label { display: grid; gap: 8px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.form input, .form select, .form textarea { width: 100%; padding: 14px; border: 1px solid transparent; background: #fff; color: var(--ink); font: 500 16px/1.4 var(--sans); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--purple); }
.form .hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .container { width: min(100% - 40px, 1240px); }
  .site-header .bar { padding: 0 20px; }
  .menu { right: 20px; }
  .h1, .h2, .hero h1, .bottlenecks h2, .cta h2, .cs-hero h1, .post-head h1, .contact h1 { font-size: 38px; }
  .hero .container, .section-head, .page-head .container, .cta, .contact, .next-case, .compare { grid-template-columns: 1fr; }
  .hero .container { min-height: 0; }
  .hero video { margin: 0 auto; max-width: 360px; }
  .section-head p, .page-head .container > p { justify-self: start; }
  .bottlenecks { min-height: 0; padding: 90px 0; }
  .problem { position: static; width: 100%; margin-top: 12px; }
  .bottlenecks .container { display: grid; }
  .stats, .services-grid, .process-grid, .cards, .cards.three, .case-grid { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 100px 1fr; }
  .tslide blockquote { font-size: 26px; }
  .section, .testimonials { padding: 80px 0; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .results, .mini-stats { grid-template-columns: 1fr; }
  .next-case .copy { padding: 40px 24px; }
  .next-case h2 { font-size: 32px; }
  .cols { grid-template-columns: 1fr 1fr; }
  .cta .media { justify-self: start; }
  .prose { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-track { animation: none; }
  .bottlenecks h2 .w { opacity: 1; }
}

/* =========================================================
   Motion & wide-screen layout (matched to the live site)
   ========================================================= */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }

/* ---------- Loader: logo, then the screen breaks into tiles ---------- */
.loader { display: none; }
.show-loader .loader { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.loader-tiles { position: absolute; inset: 0; display: grid; }
.loader-tiles i { background: #151515; transition: opacity .12s linear; }
.loader-tiles i.off { opacity: 0; }
.loader-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; animation: loaderIn .5s var(--ease) .15s forwards; }
.loader-logo svg { width: 120px; height: 38px; display: block; }
.loader-logo.out { animation: none; opacity: 0; transition: opacity .18s linear; }
@keyframes loaderIn { to { opacity: 1; } }
.show-loader body { overflow: hidden; }

/* ---------- Word-by-word headings ---------- */
.rw { display: inline-block; opacity: 0; filter: blur(6px); transition: opacity .7s var(--ease), filter .7s var(--ease); }
.is-in .rw { opacity: 1; filter: blur(0); }

/* ---------- Fade-up blocks ---------- */
[data-fade] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-fade].is-in { opacity: 1; transform: none; }
.hero video[data-fade] { transform: none; filter: blur(14px); transition: opacity 1s var(--ease), filter 1s var(--ease); }
.hero video[data-fade].is-in { filter: blur(0); }

/* ---------- Labels: line draws, text decodes ---------- */
.label::before { width: 0; transition: width .9s var(--ease); }
.label.is-in::before { width: 120px; }

/* ---------- Pixel reveal for icons and images ---------- */
.px { position: relative; }
.px-grid { position: absolute; inset: -1px; display: grid; pointer-events: none; z-index: 2; }
.px-grid i { background: var(--px-bg, #F2F2F2); transition: opacity .1s linear; }
.px-grid i.off { opacity: 0; }

/* ---------- Section dividers with + marks ---------- */
.crosses { position: relative; height: 1px; }
.crosses span { position: absolute; top: -6px; width: 13px; height: 13px; }
.crosses span::before, .crosses span::after { content: ""; position: absolute; background: #cfcfcf; }
.crosses span::before { left: 6px; top: 0; width: 1px; height: 13px; }
.crosses span::after { top: 6px; left: 0; width: 13px; height: 1px; }
.crosses span:nth-child(1) { left: 0; }
.crosses span:nth-child(2) { left: calc(33.333% - 6px); }
.crosses span:nth-child(3) { left: calc(66.666% - 6px); }
.crosses span:nth-child(4) { right: 0; }

/* ---------- Header: nav links on wide screens ---------- */
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(100% - 64px, 1240px); margin: 0 auto; height: 100%; }
.site-header .bar { padding: 0; }
.nav-links { display: none; gap: 34px; margin-right: 26px; }
.nav-links a { font-family: var(--mono); font-size: 13px; text-transform: uppercase; color: #555; }
.nav-links a:hover { color: var(--ink); }
.site-footer { clip-path: polygon(0 0, calc(100% - 70px) 0, 100% 70px, 100% 100%, 0 100%); background: #000; }

/* ---------- Process: pinned stage, text scrolls past ---------- */
.process-track { position: relative; }
.process-stage { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; pointer-events: none; }
.process-stage .num { font-size: 40px; font-weight: 700; letter-spacing: -.04em; color: var(--soft); }
.process-stage .icon { position: relative; width: 190px; height: 190px; justify-self: center; --px-bg: #fff; }
.process-stage .icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.process-stage .icon img.on { opacity: 1; }
.process-steps { margin-top: -100vh; }
.pstep { height: 100vh; display: flex; align-items: center; }
.pstep > div { margin-left: 66.666%; max-width: 380px; }
.pstep h3 { font-size: 34px; margin-bottom: 12px; }
.pstep p { margin: 0; color: var(--muted); }

/* ---------- Testimonials: horizontal slide + autoplay line ---------- */
.tslides { overflow: hidden; }
.tslide { transform: translateX(100%); transition: transform .6s var(--ease), opacity .6s var(--ease); }
.tslide.is-active { transform: none; }
.tslide.out-left { position: absolute; top: 0; visibility: visible; opacity: 1; transform: translateX(-100%); }
.tslide.out-right { position: absolute; top: 0; visibility: visible; opacity: 1; transform: translateX(100%); }
.tslide.from-left { transform: translateX(-100%); }
.tbar { height: 2px; background: #dcdcdc; max-width: 980px; margin-bottom: -2px; position: relative; z-index: 1; }
.tbar span { display: block; height: 100%; width: 0; background: var(--purple); }
.tbar.run span { width: 100%; transition: width var(--tdur, 6s) linear; }
.who { border-top: 0; padding-top: 24px; }

/* ---------- Cursor label over case studies ---------- */
.cursor-label { position: fixed; left: 0; top: 0; z-index: 150; padding: 8px 12px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12px; text-transform: uppercase; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .2s, transform .25s var(--ease); }
.cursor-label.on { opacity: 1; transform: translate(14px, 14px) scale(1); }

/* ---------- Wide screens (≥ 1200px) ---------- */
@media (min-width: 1200px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .hero h1 { font-size: 64px; }
  .mission .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .mission .label { grid-column: 1 / -1; }
  .mission .intro { margin: 0; }
  .stats { grid-template-columns: 1fr; margin: 0; max-width: none; }
  .faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
  .faq-wrap h2 { margin: 0 !important; }
  .blog-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
  .blog-row .featured { margin: 0; }
  .blog-row .featured img { aspect-ratio: 522 / 330; }
  .blog-row .featured h3 { font-size: 30px; }
  .blog-row .card img { aspect-ratio: 1; }
  .case-grid { grid-template-columns: 1fr; gap: 24px; }
  .case-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--grey); clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
  .case-card img { order: 2; margin: 0; height: 100%; aspect-ratio: auto; min-height: 340px; }
  .case-card > :not(img) { margin-left: 40px; margin-right: 40px; }
  .case-card .case-year { margin-top: 40px; text-align: right; }
  .case-card h3 { font-size: 34px; }
  .case-card .mini-stats { align-self: end; margin-bottom: 40px; }
  .case-card { grid-template-rows: auto auto 1fr; }
  .case-card img { grid-row: 1 / span 3; grid-column: 2; }
  .cs-body { max-width: 1040px; }
  .cs-block { display: grid; grid-template-columns: 220px 1fr; gap: 0 40px; }
  .cs-block > .label { grid-row: 1 / span 6; border: 0; padding: 0; align-self: start; }
  .cs-block > .label::before { display: none; }
  .cs-block > :not(.label) { grid-column: 2; }
  .post-head .top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: 36px; }
  .post-head .top .lede { margin: 0; }
}
@media (max-width: 899px) {
  .process-stage { position: static; height: auto; display: none; }
  .process-steps { margin-top: 0; }
  .pstep { height: auto; padding: 40px 0; border-top: 1px solid var(--line); }
  .pstep > div { margin-left: 0; }
  .pstep img.m { width: 120px; height: 120px; object-fit: contain; margin-bottom: 16px; }
}
@media (min-width: 900px) { .pstep img.m { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .rw, [data-fade], .hero video[data-fade] { opacity: 1; filter: none; transform: none; transition: none; }
  .show-loader .loader { display: none; }
  .tslide { transition: none; }
}

/* =========================================================
   3D glass (js/glass3d.js): hero Z + process icons
   ========================================================= */
.hero-3d { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; justify-self: center; }
.hero-3d video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; transition: opacity .6s ease; }
.hero-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; touch-action: pan-y; cursor: grab; }
.hero-3d canvas:active { cursor: grabbing; }
.hero-3d.is-live canvas { opacity: 1; }
.hero-3d.is-live video { opacity: 0; visibility: hidden; }
.process-stage .icon canvas { position: absolute; inset: -20%; width: 140%; height: 140%; opacity: 0; transition: opacity .6s ease; }
.process-stage .icon.is-live canvas { opacity: 1; }
.process-stage .icon.is-live img { visibility: hidden; }
@media (min-width: 1200px) { .process-stage .icon { width: 240px; height: 240px; } }
@media (max-width: 899px) { .hero-3d { max-width: 380px; margin: 0 auto; } }

/* =========================================================
   Round: motion + layout fixes matched to genzio.co
   ========================================================= */

/* ---- Dividers: thin purple rule with a slanted purple tab (draws in on reveal) ---- */
.label:not(.plain) { border-top: 0; padding-top: 16px; }
.label:not(.plain)::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--purple); transform: scaleX(0); transform-origin: left center; transition: transform 1.1s var(--ease); }
.label:not(.plain)::before { top: 0; width: 0; height: 5px; background: var(--purple); clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 100%, 0 100%); transition: width .9s var(--ease) .15s; }
.label.is-in:not(.plain)::after { transform: scaleX(1); }
.label.is-in:not(.plain)::before { width: 183px; }

/* ---- Buttons: slightly rounded; consultation buttons are purple with a dark square ---- */
.btn { border-radius: 4px; height: 52px; padding: 0 6px 0 22px; }
.btn .sq { border-radius: 2px; width: 40px; height: 40px; transition: transform .3s var(--ease); }
.btn:hover .sq svg { transform: translate(2px, -2px); }
.btn .sq svg { transition: transform .3s var(--ease); }
.btn.purple { background: var(--purple); color: var(--ink); }
.btn.purple .sq { background: var(--ink); color: var(--purple); }
.nav-cta, .header .btn, .nav-links a.cta { border-radius: 4px; }
button, .faq-list summary::after, .tnav button { border-radius: 4px; }

/* ---- Logo band: every logo sits in the same box ---- */
.logo-track img { width: 132px; height: 36px; margin: 0 30px; object-fit: contain; }

/* ---- Bottlenecks: pinned; words light up, then the four problems appear one by one ---- */
.problem { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(6px); transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease); }
.problem.on { opacity: 1; transform: none; filter: none; }
@media (min-width: 900px) {
  .bottlenecks { display: block; place-items: normal; height: 290vh; min-height: 0; padding: 0; overflow: visible; }
  .bn-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .bn-stage .problem.p1 { left: 7%; top: 11%; }
  .bn-stage .problem.p2 { right: 7%; left: auto; top: 19%; }
  .bn-stage .problem.p3 { left: 15%; top: auto; bottom: 21%; }
  .bn-stage .problem.p4 { right: 11%; left: auto; top: auto; bottom: 11%; }
}
@media (max-width: 899px) {
  .bn-stage { display: grid; gap: 12px; padding: 0 20px; }
  .problem.on, .problem { opacity: 1; transform: none; filter: none; }
}

/* ---- The difference is clear: pinned; heading fades out as the comparison fades in ---- */
@media (min-width: 900px) {
  .difference { height: 240vh; padding: 0; }
  .df-stage { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; overflow: hidden; }
  .df-stage .container { position: relative; display: grid; place-items: center; min-height: 640px; }
  .difference h2 { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: rgba(19, 19, 19, var(--dh, 1)); transform: scale(calc(.94 + .06 * var(--dh, 1))); }
  .difference .compare { width: 100%; opacity: var(--dc, 0); transform: translateY(calc((1 - var(--dc, 0)) * 24px)) scale(calc(.97 + .03 * var(--dc, 0))); filter: blur(calc((1 - var(--dc, 0)) * 8px)); }
  .difference .compare > [data-fade] { opacity: 1; transform: none; }
}

/* ---- Process: bigger 3D icon, centred between the number and the text ---- */
@media (min-width: 900px) {
  .process-stage { grid-template-columns: auto 1fr 33.333%; }
  .process-stage .icon { width: 300px; height: 300px; }
}
@media (min-width: 1200px) { .process-stage .icon { width: 320px; height: 320px; } }

/* ---- Testimonials: the box grows/shrinks smoothly to fit each quote ---- */
.tslides { transition: height .5s var(--ease); min-height: 0; }

/* ---- FAQ: smooth open/close ---- */
.faq-list details .faq-body { overflow: hidden; }
.faq-list summary::after { transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(180deg); }

/* ---- Case studies index: shorter cards ---- */
@media (min-width: 1200px) {
  .case-card { height: clamp(300px, 23vw, 400px); }
  .case-card img { min-height: 0; height: 100%; }
  .case-card h3 { font-size: 30px; }
  .case-card .case-year { margin-top: 28px; }
  .case-card .mini-stats { margin-bottom: 28px; }
}

/* ---- Case study body: narrow centred column; Results gets a label column ---- */
.cs-body { max-width: none; padding: 96px 0 40px; }
.cs-block { max-width: 664px; margin: 0 auto 88px; display: block; }
.cs-block h3 { font-size: clamp(26px, 2vw, 32px); margin-bottom: 16px; }
.cs-block p, .cs-block li { font-size: 16px; line-height: 1.6; }
@media (min-width: 1200px) {
  .cs-block { display: block; }
  .cs-block > .label { border: 0; padding-top: 16px; }
  .cs-block > .label::before { display: block; }
  .cs-block:nth-child(3) { max-width: 1100px; display: grid; grid-template-columns: 220px 1fr; gap: 0 56px; }
  .cs-block:nth-child(3) > .label { grid-column: 1 / -1; }
  .cs-block:nth-child(3) > :not(.label) { grid-column: 2; max-width: 760px; }
  .cs-block:nth-child(3) > p { font-size: clamp(19px, 1.25vw, 24px); line-height: 1.5; }
}

/* ---- Next case study: a compact card inside the page margins ---- */
.next-case { width: min(100% - 64px, 1240px); margin: 40px auto 96px; grid-template-columns: 1fr minmax(0, 564px); }
.next-case .copy { padding: 40px 36px; }
.next-case h2 { font-size: clamp(28px, 2.5vw, 44px); margin: 12px 0 20px; }
.next-case img { aspect-ratio: auto; height: 100%; max-height: 420px; }
@media (max-width: 899px) { .next-case { width: calc(100% - 40px); grid-template-columns: 1fr; } .next-case img { max-height: 280px; } }

/* ---- Blog post body: 800px column, larger text like the live site ---- */
.prose { max-width: 800px; padding: 72px 0 48px; font-size: clamp(18px, 1.25vw, 24px); line-height: 1.5; }
.prose h2 { font-size: clamp(32px, 3.2vw, 64px); line-height: 1.05; letter-spacing: -.03em; margin: 64px 0 24px; }
.prose h3 { font-size: clamp(24px, 1.8vw, 34px); }
.prose p { margin: 0 0 24px; }
.prose img { margin: 40px 0; }
@media (min-width: 1200px) { .post-head .top { grid-template-columns: 716px 1fr; } .post-head .top .lede { max-width: 500px; justify-self: end; font-size: 24px; line-height: 1.5; } }

/* ---- Extra scroll reveals ---- */
[data-auto-fade] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-auto-fade].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .problem, [data-auto-fade] { opacity: 1; transform: none; filter: none; transition: none; }
  .label:not(.plain)::after { transform: none; } .label:not(.plain)::before { width: 183px; }
}


/* =========================================================
   Round: hover tiles, difference cards, FAQ, testimonials, layout
   ========================================================= */

/* ---- Buttons: pixel-tile hover (as on genzio.co) ---- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn:hover { background: var(--ink); }
.btn.purple:hover { background: var(--purple); }
.btn.light:hover { background: #fff; }
.btn > :not(.btn-tiles) { position: relative; z-index: 1; }
.btn-tiles { position: absolute; inset: 0; z-index: 0; display: grid; pointer-events: none; }
.btn-tiles i { background: var(--purple); opacity: 0; transition: opacity .08s linear; }
.btn.purple .btn-tiles i { background: var(--ink); }
.btn.light .btn-tiles i { background: var(--grey); }
.btn.is-hot .btn-tiles i { opacity: 1; }
.btn { transition: color .25s ease .1s; }
.btn .sq { transition: background .25s ease .12s, color .25s ease .12s; }
.btn.is-hot:not(.purple):not(.light) { color: var(--ink); }
.btn.is-hot:not(.purple):not(.light) .sq { background: var(--ink); color: var(--purple); }
.btn.purple.is-hot { color: #fff; }
.btn.purple.is-hot .sq { background: var(--purple); color: var(--ink); }

/* ---- The difference is clear: heading on one line, cards like genzio.co ---- */
@media (min-width: 900px) {
  .difference h2 { display: block; inset: auto; left: 0; right: 0; top: 50%; text-align: center; transform: translateY(-50%) scale(calc(.94 + .06 * var(--dh, 1))); }
}
.compare { gap: 24px; max-width: 960px; }
.compare > div { position: relative; padding: 30px 36px 34px; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
.compare .ours { background: #131313; color: #fff; }
.compare .theirs { background: var(--grey); }
.compare .head { position: relative; height: 40px; margin-bottom: 22px; }
.compare .head::before { content: ""; position: absolute; left: -36px; top: 0; bottom: 0; width: 5px; background: var(--purple); }
.compare .theirs .head::before { background: #d4d4d4; }
.compare .head svg { width: 104px; height: 32px; }
.compare h3 { font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.compare li { gap: 14px; padding: 15px 0; border-top: 0; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.compare .theirs li { color: #333; }
.compare li i { width: 18px; height: 18px; border-radius: 2px; background: var(--purple); color: #131313; font-size: 12px; font-weight: 700; }
.compare .theirs li i { background: #c8161d; color: #fff; font-size: 11px; }

/* ---- FAQ: open state is purple; closing snaps back quickly ---- */
.faq-list summary::after { transition: transform .25s var(--ease), background .2s, color .2s; }
.faq-list details[open]:not(.closing) summary::after { background: var(--purple); color: #fff; }

/* ---- Blog posts: text uses the same width as the image above ---- */
.post-head + .container .prose, article > .container > .prose { max-width: none; }

/* ---- Bottlenecks: words appear (from nothing) as you scroll ---- */
.bottlenecks h2 .w { opacity: 0; filter: blur(6px); transition: opacity .35s ease, filter .35s ease; }
.bottlenecks h2 .w.near { opacity: .18; filter: blur(0); }
.bottlenecks h2 .w.on { opacity: 1; filter: none; }

/* ---- Our Mission: the text column travels down alongside the stat cards ---- */
@media (min-width: 1200px) {
  .mission .container { align-items: stretch; }
  .mission .intro { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}

/* ---- Next case study: same width as the content above, balanced 50/50 card ---- */
.next-case { width: min(100% - 64px, 1100px); max-width: 1100px; margin: 24px auto 110px; display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%); }
.next-case .copy { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 40px; }
.next-case .copy .label { margin: 0; }
.next-case h2 { margin: 0; font-size: clamp(28px, 2.4vw, 40px); line-height: 1.1; }
.next-case .copy .btn { align-self: flex-start; }
.next-case { overflow: hidden; }
.next-case img { width: 100%; height: 100%; max-height: none; object-fit: cover; transition: transform .8s var(--ease); }
.next-case:hover img { transform: scale(1.04); }
@media (max-width: 899px) { .next-case { grid-template-columns: 1fr; width: calc(100% - 40px); } .next-case img { height: 240px; } }

/* ---- Testimonials: <figure> has default margins that weren't being counted in the height ---- */
.tslide { margin: 0; padding: 0 0 6px 40px; }

/* ---- Case study: Overview and Work done each get an image, pushed to opposite sides ---- */
.cs-media { margin: 0 0 28px; }
.cs-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--grey); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
@media (min-width: 900px) {
  .cs-block.has-media { max-width: 1100px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; align-items: center; }
  .cs-block.has-media > * { grid-column: auto; grid-row: 1; }
  .cs-block.has-media .cs-media { margin: 0; }
  .cs-block.media-left .cs-media { grid-column: 1; }
  .cs-block.media-left .cs-text { grid-column: 2; }
  .cs-block.media-right .cs-media { grid-column: 2; }
  .cs-block.media-right .cs-text { grid-column: 1; }
  .cs-block.has-media .cs-text > .label { margin-bottom: 22px; }
}

/* =========================================================
   Phone layout (≤ 899px)
   ========================================================= */
@media (max-width: 899px) {
  /* Bottlenecks: pinned like desktop; heading centred, four compact cards around it */
  .bottlenecks { display: block; place-items: normal; height: 260vh; min-height: 0; padding: 0; overflow: visible; }
  .bn-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; padding: 0 20px; overflow: hidden; gap: 0; }
  .bottlenecks h2 { font-size: 30px; line-height: 1.12; max-width: 340px; }
  .bottlenecks h2 .w { opacity: 0; filter: blur(6px); }
  .bottlenecks h2 .w.near { opacity: .18; filter: none; }
  .bottlenecks h2 .w.on { opacity: 1; filter: none; }
  .bn-stage .problem { position: absolute; width: min(60vw, 250px); margin: 0; padding: 11px 13px; gap: 8px; font-size: 13px; line-height: 1.3; opacity: 0; transform: translateY(14px) scale(.96); filter: blur(5px); }
  .bn-stage .problem.on { opacity: 1; transform: none; filter: none; }
  .bn-stage .problem svg { width: 15px; height: 15px; margin-top: 1px; }
  .bn-stage .problem.p1 { left: 4%; top: 12%; right: auto; bottom: auto; }
  .bn-stage .problem.p2 { right: 4%; top: 23%; left: auto; bottom: auto; }
  .bn-stage .problem.p3 { left: 4%; bottom: 23%; top: auto; right: auto; }
  .bn-stage .problem.p4 { right: 4%; bottom: 11%; top: auto; left: auto; }

  /* Our services: two columns of smaller cards */
  .services-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service { padding: 16px 14px 18px; }
  .service img { width: 100%; height: 78px; margin-bottom: 12px; }
  .service h3 { font-size: 16px; line-height: 1.2; margin-bottom: 6px; }
  .service p { font-size: 12.5px; line-height: 1.45; }

  /* Testimonials: smaller quote so it reads across, author and arrows side by side */
  .quote-mark { font-size: 72px; height: 32px; }
  .tslide { padding-left: 0; }
  .tslide blockquote { font-size: 19px; line-height: 1.32; margin-bottom: 22px; }
  .who { gap: 12px; padding-top: 16px; padding-right: 96px; }
  .who img { width: 42px; height: 42px; }
  .who h4 { font-size: 17px; }
  .who p { font-size: 10px; }
  .tnav { margin-top: -50px !important; }
  .tnav button { width: 36px; height: 36px; }

  /* The difference is clear: cards side by side, everything scaled down */
  .compare { grid-template-columns: 1fr 1fr; gap: 8px; }
  .compare > div { padding: 16px 12px 18px; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
  .compare .head { height: 26px; margin-bottom: 10px; }
  .compare .head::before { left: -12px; width: 3px; }
  .compare .head svg { width: 66px; height: 21px; }
  .compare h3 { font-size: 15px; }
  .compare li { gap: 7px; padding: 7px 0; font-size: 11.5px; line-height: 1.3; align-items: flex-start; }
  .compare li i { width: 13px; height: 13px; font-size: 8.5px; margin-top: 1px; }
  .difference h2 { margin-bottom: 28px; }

  /* Case studies page: horizontal cards on grey, like desktop */
  .case-grid { grid-template-columns: 1fr; gap: 14px; padding: 40px 0 80px; }
  .case-card { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto 1fr; background: var(--grey); min-height: 210px; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
  .case-card img { grid-row: 1 / span 3; grid-column: 2; order: 2; margin: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .case-card > :not(img) { grid-column: 1; margin-left: 16px; margin-right: 12px; }
  .case-card .case-year { margin: 16px 0 6px 16px; font-size: 10px; }
  .case-card h3 { font-size: 16px; line-height: 1.2; margin-bottom: 10px; }
  .case-card .mini-stats { align-self: end; grid-template-columns: 1fr; gap: 4px; padding-top: 10px; margin-bottom: 16px; }
  .case-card .mini-stats div { display: flex; align-items: baseline; gap: 6px; }
  .case-card .mini-stats div:nth-child(3) { display: none; }
  .case-card .mini-stats strong { font-size: 15px; }
  .case-card .mini-stats span { font-size: 8.5px; line-height: 1.2; }
}

/* =========================================================
   Hero fills the first screen; the logo band sits right at its bottom edge
   ========================================================= */
:root { --band-h: 88px; }             /* logo band: 26px padding top/bottom + 36px logos */
.hero { min-height: calc(100vh - var(--band-h)); min-height: calc(100svh - var(--band-h)); display: flex; align-items: center; box-sizing: border-box; }
.hero > .container { width: min(100% - 64px, 1240px); }
.hero .container { min-height: 0; }
@media (min-width: 1200px) { .hero-3d { max-width: min(560px, calc(100svh - var(--band-h) - var(--header-h) - 80px)); } }
@media (max-width: 899px) {
  :root { --band-h: 76px; }
  .logo-band { padding: 20px 0; }
  .hero { padding: calc(var(--header-h) + 12px) 0 28px; }
  .hero > .container { width: calc(100% - 40px); gap: 18px; align-content: center; }
  .hero-3d { width: min(78vw, 38svh); max-width: none; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); margin-bottom: 14px; }
  .hero p { font-size: 16px; margin-bottom: 22px; }
}
@media (max-width: 899px) and (max-height: 720px) {
  .hero { padding-bottom: 18px; }
  .hero > .container { gap: 10px; }
  .hero-3d { width: min(66vw, 30svh); }
  .hero h1 { font-size: 30px; margin-bottom: 10px; }
  .hero p { font-size: 15px; margin-bottom: 16px; }
}

/* =========================================================
   Large screens (27"+): wider page and a hero that scales up with the screen
   ========================================================= */
@media (min-width: 1680px) {
  .container, .hero > .container, .site-header .header-inner { width: clamp(1240px, 68vw, 1720px); max-width: calc(100% - 64px); }
  .hero h1 { font-size: clamp(64px, 3.5vw, 100px); margin-bottom: clamp(26px, 1.4vw, 38px); }
  .hero p { font-size: clamp(19px, 1.05vw, 27px); max-width: 30em; margin-bottom: clamp(34px, 1.8vw, 48px); }
  .hero .btn { height: clamp(52px, 2.7vw, 70px); font-size: clamp(18px, .95vw, 24px); gap: clamp(18px, 1vw, 26px); padding-left: clamp(22px, 1.2vw, 30px); padding-right: clamp(6px, .35vw, 9px); }
  .hero .btn .sq { width: clamp(40px, 2.1vw, 54px); height: clamp(40px, 2.1vw, 54px); }
  .hero .btn .sq svg { width: clamp(14px, .7vw, 18px); height: auto; }
  .hero-3d { max-width: min(860px, calc(100svh - var(--band-h) - var(--header-h) - 60px)); }
  .hero .container { gap: clamp(48px, 4vw, 120px); }
}
@media (min-width: 1680px) {
  .hero p { max-width: 22em; }
  :root { --header-h: clamp(72px, 3.9vw, 96px); }
  .site-header .logo svg { height: clamp(30px, 1.35vw, 38px); width: auto; }
  .nav-links a { font-size: clamp(13px, .58vw, 16px); }
  .site-header .pill { font-size: clamp(13px, .58vw, 16px); height: clamp(34px, 1.75vw, 46px); padding: 0 clamp(16px, .85vw, 22px); }
}
