/*
  VOICE   — a developer studio talking plainly: precise, calm, confident.
  IDEA    — the studio's real work is the hero; browser and phone frames carry live screenshots.
  PICTURE — layered desktop + phone frames of shipped sites, a blue arrow tile, "recently shipped" card.
  COLOUR/TYPE — white ground, ink #0a0d14, one brand blue #1f5bff; Geist + Geist Mono, self-hosted.
  LAYOUT  — asymmetric grids: sticky intros beside content, alternating project spreads.
*/

@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --ink: #0a0d14;
  --ink-2: #3b4150;
  --ink-3: #6b7180;
  --line: #e4e7ee;
  --blue: #1f5bff;
  --blue-d: #1446d6;
  --blue-soft: #edf2ff;
  --night: #0a0f1f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10,13,20,.06), 0 12px 32px -12px rgba(10,13,20,.18);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; font-weight: 650; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 20px; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.blue { color: var(--blue); }
.wrap { width: min(1240px, 100% - 2 * max(5vw, 18px)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

[hidden] { display: none !important; }
.label, .wrap .label { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--blue); margin-bottom: 16px; }
.wrap .label-light { color: #8fb0ff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; font: 550 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn i { font-style: normal; transition: transform .2s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 0 26px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--blue); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 550; text-decoration: none; min-height: 44px; transition: color .2s; }
.link-arrow:hover { color: var(--blue-d); }
.link-arrow i { font-style: normal; transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -.02em; flex: none; }
.brand img { width: 60px; height: auto; }
.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a, .menu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; font: 450 15px/1 var(--sans); color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 8px; position: relative; white-space: nowrap; }
.nav > ul > li > a:hover, .menu-btn:hover { color: var(--ink); }
.nav [data-spy].active { color: var(--blue); }
.nav [data-spy].active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--blue); border-radius: 2px; }
.menu-btn svg { transition: transform .2s; }
.has-menu { position: relative; }
.submenu { position: absolute; top: calc(100% + 8px); left: -12px; width: 280px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.has-menu.open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-menu.open .menu-btn svg { transform: rotate(180deg); }
.submenu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.submenu a b { font-weight: 550; color: var(--ink); }
.submenu a small { color: var(--ink-3); font-size: 13px; }
.submenu a:hover { background: var(--blue-soft); }
.header-cta { flex: none; }
.nav .nav-cta-mobile, .burger { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); background:
  radial-gradient(900px 500px at 92% 10%, #eaf0ff 0%, transparent 60%),
  linear-gradient(#fff, #fff); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
.eyebrow .rule { width: 40px; height: 1px; background: var(--blue); }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; }
.hero h1 .blue { display: block; }
.lede { margin-top: 24px; font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 34px; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 40px; font-size: 13px; color: var(--ink-3); }
.hero-meta .tick { width: 1px; height: 22px; background: var(--ink); }

.hero-visual { position: relative; aspect-ratio: 1.12; }
.frame { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 rgba(10,13,20,.04), 0 30px 60px -24px rgba(10,13,20,.35); border: 1px solid var(--line); }
.chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f3f4f7; border-bottom: 1px solid var(--line); }
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #d4d7df; }
.chrome span { margin-left: 10px; font: 12px var(--mono); color: var(--ink-3); background: #fff; border-radius: 6px; padding: 3px 10px; flex: 1; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-desktop img { width: 100%; aspect-ratio: 800/505; object-fit: cover; object-position: top; }
.hero-visual .frame-desktop { position: absolute; top: 6%; right: 0; width: 88%; animation: rise .9s var(--ease) both; }
.frame-phone { border-radius: 22px; border: 5px solid var(--ink); }
.frame-phone img { width: 100%; aspect-ratio: 750/1500; object-fit: cover; object-position: top; }
.hero-visual .frame-phone { position: absolute; left: 0; bottom: 0; width: 29%; animation: rise .9s .12s var(--ease) both; }
.shipped { position: absolute; right: 4%; bottom: 2%; width: min(250px, 46%); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); animation: rise .9s .22s var(--ease) both; }
.shipped .mono { color: var(--ink-3); font-size: 12px; margin-bottom: 8px; }
.shipped ul { list-style: none; margin: 0; padding: 0; }
.shipped a { display: flex; justify-content: space-between; padding: 7px 0; font-weight: 550; font-size: 15px; text-decoration: none; border-top: 1px solid var(--line); }
.shipped li:first-child a { border-top: 0; }
.shipped a:hover { color: var(--blue); }
.spark { position: absolute; right: -4px; top: -4px; width: 18px; height: 18px; background: var(--blue); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Services */
.services-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.section-intro { position: sticky; top: 110px; }
.section-intro h2 { margin-bottom: 18px; }
.section-intro p { color: var(--ink-2); margin-bottom: 18px; max-width: 42ch; }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.service { padding: 4px 28px 8px; border-right: 1px solid var(--line); transition: background .25s; border-radius: 0; }
.service:last-child { border-right: 0; }
.service:target { background: linear-gradient(var(--blue-soft), transparent 70%); }
.icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); margin-bottom: 26px; transition: background .2s, color .2s; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .icon { background: var(--blue); color: #fff; }
.service-head p { color: var(--ink-2); margin-top: 10px; font-size: 15px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 1.6px solid var(--blue); border-bottom: 1.6px solid var(--blue); transform: rotate(-45deg); }

/* Work */
.work { background: var(--bg-soft); border-block: 1px solid var(--line); }
.work-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.work-head > p { color: var(--ink-2); max-width: 46ch; justify-self: end; }
.project { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(8px, 2vw, 24px) clamp(56px, 7vw, 96px); }
.project + .project { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); padding-bottom: 0; }
.project-flip .project-media { order: 2; }
.project-main { position: relative; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: #0a0a0a; cursor: zoom-in; position: relative; }
.zoom img { transition: opacity .25s, transform .6s var(--ease); }
.zoom:hover img { transform: scale(1.015); }
.zoom.tall img { object-fit: contain; background: #e9ebf0; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.thumbs button { display: grid; gap: 8px; padding: 6px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; text-align: left; font: 500 13px var(--sans); color: var(--ink-2); transition: border-color .2s, color .2s; }
.thumbs img { aspect-ratio: 16/9; object-fit: cover; object-position: top; border-radius: 6px; width: 100%; }
.thumbs button:hover { border-color: #b9c3d8; }
.thumbs .is-on { border-color: var(--blue); color: var(--blue); }
.thumbs span { padding: 0 4px 2px; }
.project-body { padding-top: 8px; }
.kicker { color: var(--blue); margin-bottom: 12px; }
.project-body h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 16px; }
.project-body > p { color: var(--ink-2); }
.facts { margin: 24px 0 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); }
.project-body .btn { margin-top: 26px; }

/* About + process */
.ap-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.about h2, .process h2 { font-size: clamp(28px, 2.8vw, 36px); margin-bottom: 18px; }
.about > p { color: var(--ink-2); font-size: 15.5px; }
.principles { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.principles b { color: var(--ink); font-weight: 600; }
.process { padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--line); }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 21px; height: 2px; background: linear-gradient(90deg, var(--blue) var(--p, 0%), var(--line) var(--p, 0%)); transition: --p .4s; }
.steps button { display: grid; justify-items: center; gap: 12px; width: 100%; padding: 0 4px 8px; background: none; border: 0; cursor: pointer; font: 500 13.5px/1.3 var(--sans); color: var(--ink-2); text-align: center; position: relative; }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--ink-3); font-weight: 650; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.steps button:hover .num { border-color: var(--blue); color: var(--blue); }
.steps button.done .num { border-color: var(--blue); color: var(--blue); }
.steps button[aria-selected="true"] .num { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.06); box-shadow: 0 0 0 6px var(--blue-soft); }
.steps button[aria-selected="true"] { color: var(--ink); }
.step-panel { margin-top: 22px; padding: 20px 22px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; min-height: 152px; }
.step-panel h3 { font-size: 17px; margin-bottom: 8px; }
.step-panel p { color: var(--ink-2); font-size: 14.5px; }
.step-panel.swap { animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Insights */
.insights { padding-top: 0; }
.notes { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); }
.note { display: grid; align-content: start; gap: 12px; text-align: left; padding: 26px 28px 30px 0; background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; transition: background .2s; }
.note + .note { padding-left: 28px; }
.note:last-child { border-right: 0; }
.note .mono { color: var(--ink-3); font-size: 12px; }
.note b { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; font-weight: 600; transition: color .2s; }
.note:first-child b { font-size: 26px; }
.note > span:not(.mono) { color: var(--ink-2); font-size: 15px; }
.note i { font-style: normal; color: var(--blue); font-weight: 550; font-size: 14px; margin-top: 6px; }
.note:hover b { color: var(--blue); }

/* CTA band */
.cta-band-wrap { padding-bottom: clamp(64px, 8vw, 104px); }
.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); background: var(--night); color: #fff; border-radius: 18px; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 85% 120%, rgba(31,91,255,.55), transparent 70%); }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -380px; top: -60px; border-radius: 50%; border: 1px solid rgba(110,150,255,.35); }
.cta-band .label { margin-bottom: 8px; }
.cta-band h2 { font-size: clamp(28px, 3vw, 38px); }
.blue-light { color: #5b8cff; }
.cta-band p:last-child { color: #c3cbe0; margin-top: 8px; }

/* Contact */
.contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-intro h2 { margin-bottom: 16px; }
.contact-intro > p { color: var(--ink-2); max-width: 44ch; }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-points li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.contact-points span { color: var(--ink-3); font-family: var(--mono); font-size: 13px; padding-top: 2px; }
.contact-points b { font-weight: 500; }
.contact-points a { color: var(--blue); text-underline-offset: 3px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-weight: 550; font-size: 14px; padding: 0; }
.opt { color: var(--ink-3); font-weight: 400; font-size: 13px; margin-left: 4px; }
input, textarea { width: 100%; font: 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #d5d9e2; border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 130px; }
input:hover, textarea:hover { border-color: #b3bacb; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
[aria-invalid="true"] { border-color: #d92d20; }
.err { color: #b42318; font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #d5d9e2; border-radius: 999px; font-weight: 500; font-size: 14.5px; cursor: pointer; transition: all .2s; }
.chips span:hover { border-color: var(--blue); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { color: var(--ink-3); font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-status { padding: 16px 18px; border-radius: 12px; background: var(--blue-soft); border: 1px solid #c9d7ff; font-size: 14.5px; }
.form-status b { display: block; margin-bottom: 4px; }
.form-status.error { background: #fef3f2; border-color: #fecdca; }
.form-status .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.form-status .btn { min-height: 40px; font-size: 14px; padding: 0 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(#fff, var(--bg-soft)); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 36px; flex-wrap: wrap; }
.brand-lg { font-size: 22px; }
.brand-lg img { width: 78px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer nav a { padding: 10px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--blue); }
.footer-mail { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; transition: all .2s; }
.footer-mail:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-block: 20px 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }

/* Dialogs */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(6,9,18,.72); backdrop-filter: blur(4px); }
.lightbox { background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .caption { color: #dfe5f3; text-align: center; margin-top: 12px; font-size: 14px; }
.close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); z-index: 2; }
.close:hover { background: var(--blue); color: #fff; }
.reader { width: min(680px, 92vw); max-height: 88vh; border-radius: 18px; padding: clamp(24px, 4vw, 44px); background: #fff; overflow: auto; }
.reader .close { top: 14px; right: 14px; box-shadow: none; background: var(--bg-soft); }
.reader .mono { color: var(--blue); margin-bottom: 12px; }
.reader h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 40px 20px 0; }
#reader-body p { color: var(--ink-2); margin-bottom: 14px; font-size: 16.5px; }
#reader-body ul { color: var(--ink-2); padding-left: 20px; margin: 0 0 14px; }
#reader-body li { margin-bottom: 8px; }
#reader-body b { color: var(--ink); }
dialog[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav a, .menu-btn { padding: 10px 9px; font-size: 14.5px; }
  .header-inner { gap: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .section-intro { position: static; max-width: 640px; }
  .ap-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .process { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 48px; }
}

@media (max-width: 960px) {
  .header-cta { display: none; }
  .burger { display: grid; place-content: center; gap: 6px; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
  .burger span { width: 18px; height: 1.6px; background: var(--ink); transition: transform .25s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
  .nav { position: fixed; inset: 72px 0 auto 0; max-height: calc(100dvh - 72px); overflow: auto; background: #fff; border-bottom: 1px solid var(--line); padding: 12px max(5vw, 18px) 24px; display: none; box-shadow: 0 24px 40px -20px rgba(10,13,20,.25); }
  .nav.open { display: block; animation: fade .2s var(--ease); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .menu-btn { width: 100%; padding: 14px 4px; font-size: 17px; justify-content: space-between; min-height: 52px; }
  .nav [data-spy].active::after { display: none; }
  .submenu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px; display: none; }
  .has-menu.open .submenu { display: block; }
  .submenu a { padding: 10px 12px; min-height: 0; font-size: 15px; }
  .nav .nav-cta-mobile { display: inline-flex; color: #fff; background: var(--ink); border-radius: 999px; padding: 0 20px; margin-top: 20px; width: 100%; justify-content: center; min-height: 52px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 680px; width: 100%; margin-inline: auto; }
  .service-list { grid-template-columns: 1fr; border-left: 0; }
  .service { border-right: 0; border-top: 1px solid var(--line); padding: 28px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; }
  .svc-body { grid-column: 2; grid-row: 1; }
  .service .ticks { margin-top: 0; border-top: 0; padding-top: 0; }
  .icon { margin-bottom: 16px; }
  .work-head { grid-template-columns: 1fr; }
  .work-head > p { justify-self: start; }
  .project { grid-template-columns: 1fr; }
  .project-flip .project-media { order: 0; }
  .notes { grid-template-columns: 1fr; }
  .note, .note + .note { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .note:first-child b { font-size: 22px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .ap-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .svc-body { grid-column: auto; grid-row: auto; }
  .service .ticks { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .row2 { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(36px, 10.5vw, 46px); }
  .lede { font-size: 16.5px; }
  .hero-visual { aspect-ratio: .95; }
  .hero-visual .frame-desktop { width: 100%; top: 0; }
  .hero-visual .frame-phone { width: 36%; }
  .shipped { width: 56%; right: 0; padding: 12px 14px; }
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: var(--line); }
  .steps button { grid-template-columns: 44px 1fr; justify-items: start; align-items: center; text-align: left; font-size: 15px; gap: 14px; padding: 0; }
  .thumbs { gap: 8px; }
  .thumbs button { font-size: 12px; padding: 4px; }
  .chrome span { max-width: 160px; }
  .close { top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Service toggles (accordion on phones only) ---------- */
.svc-toggle { all: unset; display: block; font: inherit; color: inherit; cursor: default; }
.ti-chev { display: none; }

/* ---------- WhatsApp ---------- */
.wa-fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: end; gap: 10px; }
.wa-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: #1fa855; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 28px -10px rgba(10,13,20,.45); transition: transform .2s var(--ease), background .2s; }
.wa-btn { text-decoration: none; }
.wa-btn:hover { background: #178a45; transform: translateY(-2px); }
.btn-wa { background: #1fa855; color: #fff; border-color: #1fa855; }
.btn-wa:hover { background: #178a45; border-color: #178a45; }

@media (max-width: 680px) {
  /* Hero: headline, then the work, then the actions */
  .hero-copy { display: contents; }
  .hero-grid { gap: 0; }
  .eyebrow { order: 1; margin-bottom: 18px; }
  .hero h1 { order: 2; }
  .hero-visual { order: 3; margin-top: 28px; }
  .lede { order: 4; margin-top: 28px; }
  .hero-actions { order: 5; margin-top: 24px; }
  .hero-meta { order: 6; margin-top: 28px; }

  /* Services become an accordion */
  .service { padding: 0; }
  .service-head { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .service .icon { width: 40px; height: 40px; margin: 0; }
  .service .icon svg { width: 22px; height: 22px; }
  .service-head h3 { margin: 0; }
  .service-head > p { grid-column: 1 / -1; margin-top: 10px; }
  .svc-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 64px; cursor: pointer; }
  .ti-chev { display: block; width: 10px; height: 10px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); margin-right: 6px; }
  .svc-toggle[aria-expanded="true"] .ti-chev { transform: rotate(-135deg); }
  .svc-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
  .service-head > p, .svc-body { display: none; }
  .service.open .service-head > p, .service.open .svc-body { display: block; }
  .service.open { padding-bottom: 22px; }
}

/* ---------- Services: tools ---------- */
.tools { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.tools-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.tools dl { margin: 0; display: grid; gap: 8px; }
.tools dt { font-size: 12.5px; color: var(--blue); font-weight: 550; }
.tools dd { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Founders ---------- */
.founders { position: relative; background: var(--night); color: #fff; border-radius: 16px; padding: clamp(24px, 3vw, 32px); overflow: hidden; isolation: isolate; }
.founders::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 260px at 100% 0%, rgba(31,91,255,.4), transparent 70%); }
.founders h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 12px; }
.founders-intro { color: #c3cbe0; font-size: 15px; }
.founder-list { list-style: none; margin: 22px 0 0; padding: 0; }
.founder { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.founder:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.founder b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.founder div span { font-size: 13px; color: #8fa0c8; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .02em; flex: none; }
.founder-wa { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; border: 1px solid rgba(255,255,255,.2); transition: background .2s, border-color .2s; }
.founder-wa:hover { background: #1fa855; border-color: #1fa855; }
.founders-li { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; min-height: 44px; color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.founders-li svg { color: #8fb0ff; }
.founders-li i { font-style: normal; color: #8fa0c8; transition: transform .2s var(--ease); }
.founders-li:hover i { transform: translate(2px, -2px); }

/* ---------- Contact ---------- */
.people { margin: 28px 0 0; }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s; }
.person:hover { border-color: #c9d7ff; }
.people .avatar { background: var(--blue-soft); color: var(--blue); }
.avatars { display: flex; }
.avatars .avatar:first-child { position: relative; z-index: 1; }
.avatars .avatar + .avatar { margin-left: -6px; }
.people .avatar { box-shadow: 0 0 0 3px #fff; }
.who b { display: block; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }
.who span { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.people .btn { min-height: 44px; padding: 0 16px; font-size: 14px; gap: 8px; }
.contact-meta { margin: 24px 0 0; display: grid; }
.contact-meta > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.contact-meta dt { color: var(--ink-3); font-size: 14px; }
.contact-meta dd { margin: 0; }
.contact-meta a { color: var(--blue); text-decoration: none; }
.contact-meta a:hover { color: var(--blue-d); }
.form-title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.footer-icons { display: flex; gap: 10px; }
@media (max-width: 1120px) { .ap-grid .founders { grid-column: 1; } }
@media (max-width: 420px) {
  .person { grid-template-columns: auto minmax(0, 1fr); }
  .people .avatar { width: 44px; height: 44px; }
  .people .btn { grid-column: 1 / -1; justify-content: center; }
}

/* ---------- 404 page ---------- */
.notfound { min-height: calc(100dvh - 72px); display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 72px; max-width: 760px; }
.notfound h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.04em; font-weight: 700; }
.notfound > p:not(.label) { color: var(--ink-2); font-size: 18px; margin: 18px 0 32px; max-width: 520px; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; }
