/* HEX Web Design, v1. Tokens first, then layout, components, pages. Light default, dark on request. No inline styles (CSP). */
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  /* The HEX Web Design palette, carried over from the original site: deep navy + electric blue. Professional, with an edge. */
  --bg: #F4F6FA; --surface: #FFFFFF; --soft: #E9EEF6; --ink: #0F1D38; --muted: #4B586E; --line: #D6DEEA;
  --accent: #1A63BC; --accent-strong: #154F97; --on-accent: #FFFFFF; --glow: rgba(53,141,214,.16);
  --inkbg: #0F1D38; --inkbg-2: #15284A; --on-inkbg: #EEF3FB; --inkbg-muted: #A9B6CC; --bright: #4FA3F0; --bright-ink: #06121F;
  --radius: 14px; --shadow: 0 1px 2px rgba(15,29,56,.06), 0 18px 40px -24px rgba(15,29,56,.35);
  --display: "Bricolage", "Geist", system-ui, sans-serif; --body: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15c40-7 92-11 150-10 52 1 98 5 144 2-47 6-96 10-148 10C95 17 45 15 3 15z' fill='%234FA3F0'/%3E%3Cpath d='M12 19c55-4 118-5 180-3 34 1 66 3 100 1-38 4-80 6-122 6-52 0-104-1-158-4z' fill='%234FA3F0' opacity='.55'/%3E%3C/svg%3E");
}
:root[data-mode="dark"] {
  --bg: #0A1426; --surface: #111F3A; --soft: #0D1A31; --ink: #EEF3FB; --muted: #A9B6CC; --line: #1E3052;
  --accent: #4FA3F0; --accent-strong: #7BBAF5; --on-accent: #06121F; --glow: rgba(79,163,240,.16);
  --inkbg: #081122; --inkbg-2: #0F1D38;
  --shadow: 0 1px 2px rgba(0,0,0,.45), 0 20px 44px -26px rgba(0,0,0,.85);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; }
.hl { color: var(--accent); }
.eyebrow { font: 600 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 58ch; }
.fine { font-size: .88rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 650 1rem/1 var(--body);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 1.08rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-name { font: 800 1.08rem/1 var(--display); letter-spacing: .02em; }
.brand-name span { font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav a:not(.btn) { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:not(.btn):hover { background: var(--soft); }
.nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
.header-tools { display: flex; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.i-sun { display: none; } [data-mode="dark"] .i-sun { display: block; } [data-mode="dark"] .i-moon { display: none; }
.menu-btn { display: none; }

/* Hero + live stage */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(40px, 5vw, 70px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 780px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 60px); align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 800; margin-bottom: 20px; }
.proof-line { display: flex; gap: 8px; align-items: center; margin: 26px 0 0; color: var(--muted); font-size: .95rem; }
.proof-line .ico { color: var(--accent); }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: var(--shadow); }
.stage-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 4px 4px 12px; }
.stage-tabs, .stage-devices { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-tab { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 7px 13px; font: 600 .85rem var(--body); cursor: pointer; }
.stage-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dev { display: grid; place-items: center; width: 38px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; }
.dev[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.stage-screen { position: relative; margin: 0 auto; border-radius: 12px; overflow: hidden; background: var(--inkbg); aspect-ratio: 16 / 10.5; width: 100%; transition: width .45s cubic-bezier(.2,.7,.2,1), aspect-ratio .45s ease, border-radius .45s ease; }
.stage-screen[data-device-frame="tablet"] { width: 72%; aspect-ratio: 3 / 4; }
.stage-screen[data-device-frame="phone"] { width: 44%; aspect-ratio: 9 / 18.5; border-radius: 26px; border: 8px solid var(--inkbg); }
.stage-viewport { position: absolute; inset: 0; overflow: hidden; }
.stage-viewport iframe { position: absolute; top: 0; left: 0; border: 0; background: #fff; transform-origin: 0 0; width: 1280px; height: 840px; transform: scale(var(--s, .5)); }
.stage-note { margin: 10px 4px 2px; font-size: .85rem; color: var(--muted); }

/* Stat strip */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.stat:first-child { border-left: 0; }
.stat-num { font: 800 clamp(1.9rem, 3.4vw, 2.7rem)/1 var(--display); letter-spacing: -.03em; }
.stat-label { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-soft { background: var(--soft); }
.section-ink { background: var(--inkbg); color: var(--on-inkbg); }
.section-ink .eyebrow { color: var(--bright); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.section-sub { color: var(--muted); margin: 14px 0 0; font-size: 1.05rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--glow); color: var(--accent); }
.card-link { margin-top: auto; padding-top: 8px; display: inline-flex; gap: 6px; align-items: center; font-weight: 650; text-decoration: none; }
.card-dark { background: var(--inkbg-2); border-color: rgba(255,255,255,.08); color: var(--on-inkbg); }
.card-dark p { color: var(--inkbg-muted); }
.card-dark .card-icon { background: rgba(79,163,240,.14); color: var(--bright); }
.card-dark:hover { border-color: var(--bright); }

/* Concepts */
.concepts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.concepts-lg { grid-template-columns: repeat(2, 1fr); gap: 34px 28px; }
.concept-card h3, .concept-card h2 { font-size: 1.3rem; margin: 4px 0 8px; }
.concept-card > p { color: var(--muted); }
.concept-shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform .25s ease; }
.concept-shot:hover { transform: translateY(-4px); }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.concept-meta { display: flex; gap: 10px; align-items: center; margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.tag { font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--soft); color: var(--accent-strong); border: 1px solid var(--line); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 16px; font: 600 .92rem var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.concept-card.is-hidden { display: none; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step h3, .step h2 { font-size: 1.2rem; margin: 12px 0 8px; }
.step p { color: var(--muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 1rem var(--display); }
.steps-vertical { grid-template-columns: 1fr; }
.steps-vertical .step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.steps-vertical .step h2 { margin-top: 4px; }
.note-box { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 26px; }
.note-box h2 { font-size: 1.35rem; margin-bottom: 14px; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.founder-about { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; }
.founder-photo img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.founder-text h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 16px; }
.founder-text p { color: var(--muted); font-size: 1.05rem; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.facts strong { color: var(--ink); margin-right: 6px; }

/* CTA band */
.cta-band { padding: clamp(56px, 7vw, 90px) 0; background: var(--inkbg); color: var(--on-inkbg); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -40% 30% -40% -10%; background: radial-gradient(closest-side, rgba(79,163,240,.22), transparent); }
.cta-inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 14px; }
.cta-inner h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta-inner p { color: var(--inkbg-muted); max-width: 52ch; margin: 0 0 10px; }
.cta-band .btn-primary { background: var(--bright); color: var(--bright-ink); }

/* Page hero */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 18ch; margin-bottom: 18px; }

/* Services */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.service-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.service-head h2 { font-size: 1.4rem; }
.service-short { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { color: var(--accent); margin-top: 4px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font: 650 1.1rem var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.form-wrap h2 { font-size: 1.5rem; margin-bottom: 16px; }
.form { display: grid; gap: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin: 0 0 12px; }
.field label, .field legend { font-weight: 650; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }
.rating { border: 0; padding: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating legend { width: 100%; margin-bottom: 6px; }
.rating input { position: absolute; opacity: 0; }
.rating label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: #E8A93B; }
.rating input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 4px; }
.form-aside h2 { font-size: 1.3rem; margin-bottom: 12px; }
.mini-steps { padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.notice { padding: 16px 18px; border-radius: 12px; font-weight: 550; margin-bottom: 18px; }
.notice-ok { background: var(--glow); color: var(--ink); border-left: 4px solid var(--accent); }
.notice-err { background: rgba(220,60,60,.1); border-left: 4px solid #D9534F; }
.reviews { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stars { color: #E8A93B; letter-spacing: 2px; margin: 0 0 8px; }
.review blockquote { margin: 0 0 12px; font-size: 1.08rem; }
.who { color: var(--muted); font-weight: 600; margin: 0; }
.prose h2 { font-size: 1.4rem; margin: 30px 0 10px; }
.prose p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--inkbg); color: var(--on-inkbg); padding: 64px 0 28px; }
.site-footer .brand { color: var(--on-inkbg); }
.site-footer .brand-name span { color: var(--inkbg-muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--inkbg-muted); max-width: 42ch; margin: 16px 0 0; }
.footer-brand a:not(.brand), .footer-base a { color: var(--on-inkbg); }
.family { font-size: .92rem; }
.footer-nav h2 { font: 600 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bright); margin-bottom: 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a { color: var(--on-inkbg); text-decoration: none; }
.footer-nav a:hover { color: var(--bright); }
.footer-base { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: var(--inkbg-muted); font-size: .9rem; }
.footer-base p { margin: 0; display: flex; gap: 16px; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .cards-3, .concepts { grid-template-columns: repeat(2, 1fr); }
  .cards-4, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .founder, .founder-about, .form-layout, .service-list { grid-template-columns: 1fr; }
  .founder-photo { max-width: 320px; }
  .concepts-lg, .reviews { grid-template-columns: 1fr; }
  .menu-btn { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .nav { position: fixed; inset: 74px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 22px 22px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .nav-cta-li { margin-top: 10px; } .nav-cta-li .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cards-3, .cards-4, .concepts, .steps { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .stage-tab { font-size: .8rem; padding: 6px 10px; }
  .stage-screen[data-device-frame="tablet"] { width: 88%; }
  .stage-screen[data-device-frame="phone"] { width: 64%; }
  .brand-name { font-size: 1rem; }
}

/* v1 polish */
.founder-text .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 4.9vw, 4.15rem); }

/* ── The edge: grain, brush strokes, angled cuts. Professional first, never noisy. ── */
.hl { color: inherit; background: var(--brush) left bottom / 100% .3em no-repeat; padding-bottom: .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero { background: var(--inkbg); color: var(--on-inkbg); isolation: isolate; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%); padding-bottom: clamp(90px, 9vw, 130px); }
.hero::before { inset: -20% -10% auto 35%; background: radial-gradient(closest-side, rgba(79,163,240,.28), transparent); }
.hero::after, .section-ink::after, .cta-band::after, .page-hero::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .07; pointer-events: none; mix-blend-mode: overlay; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--bright); }
.hero .lead, .hero .proof-line { color: var(--inkbg-muted); }
.hero .proof-line .ico { color: var(--bright); }
.hero .btn-primary { background: var(--bright); color: var(--bright-ink); box-shadow: 0 12px 30px -12px rgba(79,163,240,.8); }
.hero .btn-primary:hover { background: #7BBAF5; }
.hero .btn-ghost { background: transparent; color: var(--on-inkbg); border-color: rgba(255,255,255,.28); }
.hero .btn-ghost:hover { border-color: var(--bright); }
.hero .stage { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.hero .stage-tab, .hero .dev { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--on-inkbg); }
.hero .stage-tab[aria-selected="true"] { background: var(--bright); color: var(--bright-ink); border-color: var(--bright); }
.hero .dev[aria-pressed="true"] { color: var(--bright); border-color: var(--bright); }
.hero .stage-note { color: var(--inkbg-muted); } .hero .stage-note a { color: var(--bright); }
.site-header { background: color-mix(in srgb, var(--inkbg) 92%, transparent); }
.site-header .brand, .site-header .nav a:not(.btn) { color: var(--on-inkbg); }
.site-header .brand-name span { color: var(--inkbg-muted); }
.site-header .nav a:not(.btn):hover { background: rgba(255,255,255,.08); }
.site-header .nav a[aria-current="page"]:not(.btn) { color: var(--bright); }
.site-header .btn-primary { background: var(--bright); color: var(--bright-ink); box-shadow: none; }
.site-header .icon-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--on-inkbg); }
.site-header.scrolled { border-bottom-color: rgba(255,255,255,.08); }
.page-hero { background: var(--inkbg); color: var(--on-inkbg); position: relative; isolation: isolate; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%); padding-bottom: clamp(70px, 8vw, 110px); }
.page-hero .lead { color: var(--inkbg-muted); }
.section-ink { position: relative; isolation: isolate; clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%); padding-block: clamp(96px, 10vw, 140px); }
.cta-band { isolation: isolate; }
.strip { position: relative; margin-top: -48px; background: transparent; border: 0; }
.strip-grid { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; transform: skewX(-20deg); }
.card { border-radius: 12px; }
.card:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.step-num { border-radius: 10px; transform: rotate(-4deg); }
.concept-card h3, .concept-card h2 { letter-spacing: -.01em; }
@media (max-width: 900px) {
  .nav { background: var(--inkbg); border-bottom-color: rgba(255,255,255,.08); }
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); }
  .section-ink { clip-path: polygon(0 24px, 100% 0, 100% calc(100% - 24px), 0 100%); }
}
@media (max-width: 640px) { .strip { margin-top: -32px; } }

/* Insights */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.post-item h2 { font-size: 1.35rem; margin: 10px 0 8px; } .post-item h2 a { color: var(--ink); text-decoration: none; } .post-item h2 a:hover { color: var(--accent); }
.post-item p:last-child { color: var(--muted); margin: 0; }
.page-hero .eyebrow a { color: inherit; } .post-title { font-size: clamp(2rem, 4.2vw, 3.2rem) !important; max-width: 24ch; }
.post-meta { color: var(--inkbg-muted); } .post-meta a { color: var(--on-inkbg); }
.post-body { font-size: 1.08rem; } .post-body h2 { font-size: 1.5rem; margin: 34px 0 10px; color: var(--ink); } .post-body h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.post-body p, .post-body li { color: var(--ink); } .post-body ul, .post-body ol { padding-left: 22px; }
.post-body code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.post-body pre { background: var(--inkbg); color: var(--on-inkbg); padding: 16px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body pre code { background: none; padding: 0; color: inherit; }
.author-box { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center; margin: 40px 0 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-photo img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: top; }
.author-name { font: 700 1.1rem var(--display); margin: 0 0 4px; }

/* ── v1.1 selling sections ── */
.cta-row { align-items: flex-start; }
.cta-stack { display: grid; gap: 8px; }
.micro { font-size: .82rem; color: var(--muted); max-width: 30ch; }
.hero .micro, .micro.on-dark { color: var(--inkbg-muted); }
.center { text-align: center; margin-top: 30px; }
.section-sub.on-dark { color: var(--inkbg-muted); }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); }

/* Leak path */
.leak-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; counter-reset: l; }
.leak-path::before { content: ""; position: absolute; left: 4%; right: 4%; top: 25px; height: 3px; background: linear-gradient(90deg, var(--line), var(--accent), var(--line)); border-radius: 3px; }
.leak { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; display: grid; gap: 10px; align-content: start; }
.leak-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--inkbg); color: var(--bright); margin-top: -40px; border: 3px solid var(--bg); }
.leak-step { font: 700 1.02rem var(--display); display: flex; gap: 8px; align-items: baseline; }
.leak-num { font: 600 .75rem var(--mono); color: var(--accent); }
.leak-bad, .leak-fix { margin: 0; font-size: .93rem; display: flex; gap: 8px; align-items: flex-start; }
.leak-bad { color: var(--muted); }
.leak-drip { color: #D9534F; flex: none; margin-top: 3px; }
.leak-fix { color: var(--ink); padding-top: 10px; border-top: 1px dashed var(--line); }
.leak-fix .ico { color: var(--accent); flex: none; margin-top: 3px; }
.leak-close { text-align: center; font: 600 1.3rem var(--display); margin: 34px 0 0; }
.leak-close strong { color: var(--accent); }

/* Why not a builder + comparison */
.split-text { max-width: 820px; }
.split-text .big { font: 600 1.35rem/1.45 var(--display); color: var(--ink); }
.split-text p { color: var(--muted); font-size: 1.05rem; }
.split-text .kicker { font: 700 1.25rem var(--display); color: var(--ink); border-left: 4px solid var(--accent); padding-left: 16px; }
.compare-wrap { margin-top: 34px; overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: .95rem; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.compare tbody th { font-weight: 650; color: var(--ink); width: 26%; }
.compare td { color: var(--muted); }
.compare .hex-col { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--ink); font-weight: 600; }
.compare thead .hex-col { background: var(--inkbg); color: var(--bright); }
.compare td.hex-col .ico { display: inline; vertical-align: -3px; color: var(--accent); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* Under the hood */
.hood-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.hood { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: h; }
.hood li { position: relative; padding: 14px 18px 14px 58px; background: rgba(255,255,255,.04); border: 1px solid rgba(79,163,240,.28); border-radius: 10px; transform: skewX(-6deg); display: grid; gap: 2px; }
.hood li > * { transform: skewX(6deg); }
.hood li::before { counter-increment: h; content: counter(h); position: absolute; left: 16px; top: 50%; translate: 0 -50%; font: 700 .8rem var(--mono); color: var(--bright); transform: skewX(6deg); }
.hood li:first-child { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.hood li:last-child { border-color: var(--bright); background: rgba(79,163,240,.14); }
.hood strong { color: var(--on-inkbg); font: 700 1.05rem var(--display); }
.hood span { color: var(--inkbg-muted); font-size: .92rem; }

/* Chart */
.split-2 { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.split-2 .section-head { margin-bottom: 0; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.chart-svg { width: 100%; height: auto; }
.chart-label { font: 600 15px var(--body); fill: var(--muted); }
.chart-value { font: 800 17px var(--display); fill: var(--ink); }
.bar { fill: var(--accent); opacity: .72; }
.bar-max { opacity: 1; }
.chart figcaption { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.chart-data { margin-top: 10px; font-size: .88rem; }
.chart-data summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.chart-data table { border-collapse: collapse; margin-top: 8px; width: 100%; }
.chart-data th, .chart-data td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }

/* Promises */
.promises { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.promises li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; color: var(--muted); }
.promises li .ico { color: var(--accent); flex: none; margin-top: 2px; }
.promises strong { color: var(--ink); }

/* Services + leak check */
.service-who { color: var(--ink); font-size: .98rem; }
.service-label { font: 600 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 14px 0 8px; }
.check-list { padding-left: 20px; display: grid; gap: 12px; color: var(--muted); }
.check-list strong { color: var(--ink); display: block; }

@media (max-width: 1100px) { .leak-path { grid-template-columns: repeat(3, 1fr); row-gap: 34px; } .leak-path::before { display: none; } }
@media (max-width: 900px) { .hood-grid, .split-2 { grid-template-columns: 1fr; } .promises { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .leak-path { grid-template-columns: 1fr; row-gap: 30px; } .hood li { transform: none; } .hood li > *, .hood li::before { transform: none; } }
.svc-strip { margin-top: 34px; text-align: center; }
.svc-strip ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.svc-strip a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.svc-strip a:hover { border-color: var(--accent); color: var(--accent); }
.svc-strip .ico { color: var(--accent); }
@media (max-width: 700px) {
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; border: 0; background: none; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
  .compare tbody th { background: var(--soft); border-bottom: 1px solid var(--line); }
  .compare td { display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .compare td::before { content: attr(data-label); font-weight: 600; color: var(--ink); text-align: left; flex: none; max-width: 45%; }
  .compare td.hex-col::before { color: var(--accent); }
}
.post-body .lede { font: 600 1.2rem/1.5 var(--display); color: var(--ink); background: var(--soft); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 12px 12px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { background: var(--soft); }
.post-body blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 12px 12px 0; }
.based-on { margin-top: 26px; }

/* Insights: editorial layout in the site's own language (navy hero, Bricolage, 12px cards, blue brush) */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.topic-chips a { font: 600 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--on-inkbg); padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); transition: border-color .15s ease, background .15s ease; }
.topic-chips a:hover { border-color: var(--bright); background: rgba(79,163,240,.12); }
.kicker { display: block; font: 700 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.byline { font: 500 .86rem/1.5 var(--body); color: var(--muted); margin: 8px 0 0; }
.dek { font-size: 1.05rem; line-height: 1.55; color: var(--muted); margin: 10px 0 0; }
.ins-img, .ins-thumb, .feature-img { display: block; overflow: hidden; }
.ins-img img, .ins-thumb img, .feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ins-img-missing { display: block; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--soft), var(--line)); }
.ins-front { position: relative; margin-top: -64px; padding-bottom: clamp(48px, 6vw, 80px); }
.front { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lead-story { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); padding-bottom: 26px; }
.lead-story > :not(.lead-media) { margin-left: 26px; margin-right: 26px; }
.lead-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 20px; }
.lead-media .ins-img { height: 100%; }
.lead-h { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
.lead-h a, .story-h a, .latest-h { color: var(--ink); text-decoration: none; }
.lead-h a:hover, .story-h a:hover, .latest-item:hover .latest-h { color: var(--accent); }
.latest { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.rail-title, .sec-title { font: 700 .8rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.rail-title::after, .sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.latest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.latest-list li + li { border-top: 1px solid var(--line); padding-top: 14px; }
.latest-item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; text-decoration: none; align-items: start; }
.ins-thumb { aspect-ratio: 1; border-radius: 10px; }
.latest-h { display: block; font: 700 1rem/1.25 var(--display); letter-spacing: -.01em; }
.latest-item .kicker { font-size: .66rem; margin-bottom: 4px; }
.band-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.datadesk { background: var(--inkbg); color: var(--on-inkbg); padding: 26px; border-radius: 12px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.datadesk::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .06; pointer-events: none; mix-blend-mode: overlay; }
.dd-kicker { font: 700 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bright); margin: 0 0 6px; }
.dd-title { font-size: 1.5rem; line-height: 1.15; margin-bottom: 14px; color: var(--on-inkbg); }
.dd-chart { width: 100%; height: auto; }
.dd-l { font: 600 12.5px var(--body); fill: var(--on-inkbg); }
.dd-v { font: 700 12.5px var(--mono); fill: var(--bright); }
.dd-track { fill: rgba(255,255,255,.1); } .dd-bar { fill: var(--bright); }
.dd-src { font-size: .78rem; color: var(--inkbg-muted); margin: 8px 0 14px; }
.dd-src a, .dd-stat a { color: var(--on-inkbg); }
.dd-stat { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; border-top: 1px solid rgba(255,255,255,.12); padding: 12px 0 0; margin-top: 12px; font-size: .9rem; color: var(--inkbg-muted); }
.dd-num { font: 800 1.9rem var(--display); color: var(--bright); }
.editor-note { display: grid; gap: 14px; justify-items: start; }
.editor-note > * { margin: 0; }
.ed-quote { font: 650 clamp(1.3rem, 2.3vw, 1.75rem)/1.35 var(--display); letter-spacing: -.01em; color: var(--ink); }
.topic-sec + .topic-sec { margin-top: clamp(48px, 6vw, 72px); }
.story-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.story:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.story-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.story-media .ins-img { height: 100%; }
.story-media img { transition: transform .5s ease; }
.story:hover .story-media img { transform: scale(1.04); }
.story-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.story-body > p { margin: 0; }
.story-body .byline { margin-top: auto; padding-top: 6px; }
.story-h { font-size: 1.18rem; line-height: 1.2; letter-spacing: -.01em; }
.story-dek { color: var(--muted); font-size: .94rem; }
.feature-hero .eyebrow a { color: inherit; text-decoration: none; }
.feature-hero h1.feature-h { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 22ch; }
.feature-hero .lead { max-width: 62ch; }
.feature-hero { padding-bottom: clamp(110px, 12vw, 170px); }
.feature-media { position: relative; margin: clamp(-120px, -9vw, -70px) auto 40px; }
.feature-img { aspect-ratio: 16 / 9; border-radius: 12px; box-shadow: var(--shadow); }
.feature-media figcaption { font: 500 .7rem var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 8px; text-align: right; }
.related { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 20px; }
.infographic { margin: 30px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.infographic .ig { width: 100%; height: auto; display: block; }
.infographic figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.ig-surface { fill: var(--surface); } .ig-soft { fill: var(--soft); } .ig-ink { fill: var(--ink); } .ig-muted { fill: var(--muted); }
.ig-accent { fill: var(--accent); } .ig-accent-stroke { stroke: var(--accent); fill: none; } .ig-line { stroke: var(--line); }
.ig-bright { fill: var(--bright); } .ig-danger { fill: #D9534F; } .ig-ok { fill: #1E9E63; }
.ig-t { font-family: var(--body); font-weight: 500; } .ig-h { font-family: var(--display); font-weight: 750; }
.home-desk .desk-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.home-desk .latest { box-shadow: none; }
.home-desk .lead-story { box-shadow: none; }
.home-desk .lead-h { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.desk-more { margin: 16px 0 0; }
@media (max-width: 1080px) { .home-desk .desk-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .home-desk .desk-grid > :last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .front, .band-2 { grid-template-columns: minmax(0, 1fr); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-front { margin-top: -40px; }
}
@media (max-width: 700px) {
  .home-desk .desk-grid { grid-template-columns: minmax(0, 1fr); }
  .infographic { overflow-x: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
  .infographic .ig { min-width: 620px; }
  .infographic figcaption { position: sticky; left: 0; max-width: calc(100vw - 72px); }
  .infographic figcaption::before { content: "Swipe to see the whole graphic. "; font-weight: 600; color: var(--accent); }
}
@media (max-width: 600px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .lead-story > :not(.lead-media) { margin-left: 18px; margin-right: 18px; }
  .feature-media { margin-top: -56px; }
}
