/* ==========================================================================
   Insight Labz — public site, design system v2
   Black · Red · White. One family (Geist). Quiet by default, bold in one place
   (the hero illustration). Structure comes from rules, spacing and type, not boxes.

   1. Tokens          5. Hero / page hero      9. Process, why, stats, compare
   2. Base            6. Services / products   10. Detail pages
   3. Layout          7. Industries / work     11. Contact + forms
   4. Header, buttons 8. Slots, pills, chips   12. Footer, motion, responsive
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Brand red */
  --red-50: #fff1f2;  --red-100: #ffe1e3; --red-300: #ff9aa1; --red-400: #ff6b75;
  --red-500: #e5252f; --red-600: #c8101e; --red-700: #a30c18; --red-900: #5c070e;
  /* Black layers (neutral) */
  --ink-950: #000000; --ink-900: #0a0a0a; --ink-850: #111112; --ink-800: #171718; --ink-700: #232325; --ink-600: #343437;
  /* Light layers */
  --paper: #ffffff; --mist: #f7f7f5; --cloud: #eeedea;
  /* Secondary: steel (cool counterpoint to the red) */
  --steel-50: #f1f4f8; --steel-100: #e3e9f0; --steel-300: #a9b6c6; --steel-500: #5f7189; --steel-700: #3a4658;
  /* Accents for data / illustration */
  --accent-cobalt: #3b6bff; --accent-teal: #14a38b; --accent-amber: #e6a100;
  /* Status */
  --ok: #17a05d; --ok-700: #0f7a45; --warn: #e09b0b; --warn-700: #8a5a00;
  --danger: #d92d20; --danger-700: #b42318; --info: #2f6fed; --info-700: #1d4ed8;

  /* Semantic tokens (re-mapped inside dark sections) */
  --bg: var(--paper); --surface: #ffffff; --surface-2: var(--mist);
  --text: #0a0a0a; --text-2: #46474d; --text-3: #6b6c73;
  --line: #e4e2dd; --line-strong: #cdcac3;
  --accent: var(--red-600);

  --on-dark: #f5f5f4; --on-dark-2: rgba(245,245,244,.70); --on-dark-3: rgba(245,245,244,.52);
  --line-dark: rgba(255,255,255,.10); --line-dark-strong: rgba(255,255,255,.20);

  --font: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 68px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sh-lift: 0 18px 40px -22px rgba(10,10,10,.35), 0 2px 6px -2px rgba(10,10,10,.08);
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; color: var(--text); text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red-600); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink-900); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.icon { flex: none; }

/* ---------- 3. Layout ---------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg); }
.section--tight { padding-top: clamp(2.5rem, 4vw, 3.5rem); }
.section--flush { padding-top: 0; padding-bottom: clamp(3rem, 6vw, 5rem); }
.section--mist { --bg: var(--mist); }
.section--ink, .cta, .site-footer {
  --bg: var(--ink-900); --surface: var(--ink-850); --surface-2: var(--ink-800);
  --text: var(--on-dark); --text-2: var(--on-dark-2); --text-3: var(--on-dark-3);
  --line: var(--line-dark); --line-strong: var(--line-dark-strong); --accent: var(--red-400);
  background: var(--bg); color: var(--text);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }

.eyebrow { margin: 0 0 1rem; font-size: .95rem; font-weight: 500; color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--text-2); max-width: 54ch; }
.label { margin: 2rem 0 .25rem; font-size: .9rem; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.link { display: inline-block; margin-top: 1rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.prose p { color: var(--text-2); max-width: 62ch; font-size: 1.06rem; }
.prose p:last-child { margin-bottom: 0; }

.sec-head { margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.sec-head__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.08; margin: 0; max-width: 22ch; }
.sec-head__aside .lead { margin: 0; }
.sec-head--split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.sec-head--split .sec-head__title { max-width: 24ch; }

/* ---------- 4. Header, buttons -------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(10,10,10,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand__name { font-weight: 600; font-size: .82rem; letter-spacing: .17em; color: var(--text); }
.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.nav__link { position: relative; text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--text-2); padding: 8px 0; transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red-600); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text); }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.nav-toggle i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .25s var(--ease), top .25s var(--ease); }
.nav-toggle i:nth-of-type(1) { top: 18px; } .nav-toggle i:nth-of-type(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] i:nth-of-type(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-of-type(2) { top: 22px; transform: rotate(-45deg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1px solid transparent;
  border-radius: 8px; font-weight: 500; font-size: .95rem; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn--primary { background: var(--red-600); color: #fff; }
.btn--primary:hover { background: var(--red-700); box-shadow: 0 10px 24px -12px rgba(200,16,30,.7); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--text); }
.btn--light { background: #fff; color: var(--ink-900); }
.btn--light:hover { background: var(--cloud); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.nav__cta.is-active { box-shadow: 0 0 0 3px rgba(200,16,30,.18); }

/* ---------- 5. Hero / page hero --------------------------------------------- */
.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.5rem); background: var(--paper); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__title { font-size: clamp(2.5rem, 4.7vw, 4.3rem); line-height: 1.02; letter-spacing: -0.048em; margin-bottom: 1.5rem; max-width: 13ch; }
.hero__title .line { display: block; }
.hero__title .dot { color: var(--red-600); }
.hero__lead { max-width: 46ch; }
.hero__panel { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--ink-950);
  background-image: radial-gradient(75% 60% at 92% 0%, rgba(229,37,47,.24), transparent 70%);
  box-shadow: 0 50px 90px -50px rgba(10,10,10,.65); aspect-ratio: 600 / 520; }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem; border-top: 1px solid var(--line-strong); }
.rail li { display: grid; gap: .25rem; align-content: start; }
.rail strong { font-weight: 600; letter-spacing: -0.01em; }
.rail span { color: var(--text-2); font-size: .95rem; line-height: 1.5; }

/* Hero illustration: scattered points settle into ordered layers (the one orchestrated moment) */
.hv { width: 100%; height: 100%; display: block; }
.hv__lines line { stroke: rgba(255,255,255,.14); stroke-width: 1; }
.hv__label { fill: #fff; font: 600 20px/1 var(--font); letter-spacing: -0.01em; }
.hv__sub { fill: rgba(255,255,255,.55); font: 400 13px/1 var(--font); }
.hv__block { fill: var(--red-500); }
.hv__block.is-dim { fill-opacity: .55; }
.hv__bar { fill: #fff; fill-opacity: .88; }
.hv__dot { fill: none; stroke: #fff; stroke-opacity: .75; stroke-width: 1.5; }
.hv__dot.is-fill { fill: #fff; fill-opacity: .9; stroke: none; }
.hv__g { animation: hv-settle 1.8s cubic-bezier(.22, .8, .2, 1) var(--n, 0ms) both; }
.hv__label, .hv__sub, .hv__lines { animation: hv-fade 1s ease 1.4s both; }
@keyframes hv-settle { from { transform: translate(var(--dx), var(--dy)); opacity: 0; } 14% { opacity: 1; } to { transform: translate(0, 0); opacity: 1; } }
@keyframes hv-fade { from { opacity: 0; } to { opacity: 1; } }

.phero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); background: var(--paper); }
.phero__grid { display: grid; gap: 3rem; }
.phero--aside .phero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.phero__title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.05; letter-spacing: -0.042em; margin-bottom: 0; max-width: 20ch; }
.phero__lead { margin: 1.25rem 0 0; }
.phero .btn-row { margin-top: 1.75rem; }
.crumbs { margin-bottom: 1.5rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text-2); }

.jump { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.jump ul { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 0; scrollbar-width: none; scroll-behavior: smooth; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a { display: block; white-space: nowrap; padding: .45rem .95rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--text-2); text-decoration: none; transition: background .2s, color .2s; }
.jump a:hover { background: var(--mist); color: var(--text); }
.jump a.is-active { background: var(--ink-900); color: #fff; }

/* Home: who we are */
.intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro__statement { font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.18; margin: 0; max-width: 22ch; }
.intro__text { color: var(--text-2); margin-bottom: .25rem; max-width: 52ch; }
.pillars { margin-top: 2.25rem; }
.pillars > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.pillars > div:last-child { border-bottom: 1px solid var(--line); }
.pillars dt { font-weight: 600; }
.pillars dd { color: var(--text-2); font-size: .97rem; line-height: 1.55; }

/* ---------- 6. Services / products ------------------------------------------- */
.svc-grid, .cap-grid, .principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
.svc, .cap, .principle { display: flex; flex-direction: column; align-items: flex-start; padding: 2rem 0 2.75rem; border-top: 1px solid var(--line-strong); color: inherit; text-decoration: none; }
.svc__icon { display: inline-flex; color: var(--red-600); margin-bottom: 1.4rem; }
.svc__title { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: .4rem; transition: color .2s; }
.svc__tagline { font-weight: 500; margin-bottom: .75rem; }
.svc__text, .cap p { color: var(--text-2); font-size: .98rem; line-height: 1.6; }
.svc__more, .pcard__more { margin-top: auto; padding-top: 1.5rem; font-weight: 500; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
a.svc:hover .svc__title { color: var(--accent); }
a.svc:hover .svc__more, a.pcard:hover .pcard__more, a.ccard:hover .pcard__more { color: var(--accent); text-decoration-color: var(--accent); }
.ticks { display: grid; gap: .55rem; margin-top: 1.25rem; }
.ticks li { display: flex; align-items: flex-start; gap: .65rem; font-size: .95rem; line-height: 1.5; }
.ticks .icon { color: var(--red-600); margin-top: .22rem; }
.ticks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }

.pcard, .ccard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
a.pcard:hover, a.ccard:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); border-color: var(--line-strong); }
.pcard__plate { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 168px; padding: 1.4rem; color: var(--on-dark);
  background: var(--ink-950) radial-gradient(90% 90% at 100% 0%, rgba(229,37,47,.30), transparent 62%); }
.pcard__mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-dark-strong); border-radius: 12px; color: #fff; }
.pcard__cat { font-size: .88rem; color: var(--on-dark-2); }
.pcard__body, .ccard__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.5rem 1.5rem 1.6rem; }
.pcard__name, .ccard__title { font-size: 1.45rem; letter-spacing: -0.025em; margin: .9rem 0 .35rem; }
.pcard__tag, .ccard__text { color: var(--text-2); font-size: .98rem; line-height: 1.55; margin-bottom: 1rem; }
.ccard__plate { display: grid; place-items: center; min-height: 168px; background: var(--steel-100); color: var(--steel-700); overflow: hidden; }
.ccard__plate img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.ccard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: 0; font-size: .88rem; color: var(--text-3); }
.ccard--soon { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.ccard--soon .ccard__plate { background: transparent; color: var(--text-3); border-bottom: 1px dashed var(--line-strong); }

/* ---------- 7. Industries / work ------------------------------------------------ */
.ind-list { border-top: 1px solid var(--line-strong); }
.ind { display: grid; grid-template-columns: 2.5rem minmax(0, .8fr) minmax(0, 1.8fr) 7.75rem; gap: 1.5rem; align-items: center; padding: 1.5rem .5rem; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background .25s, padding .25s var(--ease); }
.ind:hover { background: var(--mist); padding-left: 1.25rem; padding-right: 1.25rem; }
.ind--static:hover { background: none; padding-left: .5rem; padding-right: .5rem; }
.ind--slot { color: var(--text-3); } .ind--slot .ind__icon { color: var(--text-3); } .ind--slot .ind__name { color: var(--text-2); }
.ind__text--clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ind__icon { color: var(--red-600); display: inline-flex; }
.ind__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.ind__text { color: var(--text-2); font-size: .97rem; line-height: 1.5; }
.ind__tag { justify-self: end; display: inline-flex; align-items: center; gap: .45rem; width: max-content; font-size: .82rem; font-weight: 500; color: var(--text-2); padding: .3rem .75rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.ind__tag--live { color: var(--ok-700); border-color: #bfe6cf; background: #eaf7f0; }
.ind__tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.note { display: flex; gap: .8rem; align-items: flex-start; margin: 2rem 0 0; max-width: 72ch; color: var(--text-2); font-size: .97rem; }
.note .icon { color: var(--steel-500); margin-top: .2rem; }
.note--lg { font-size: 1.05rem; }

.srow, .irow { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line-strong); scroll-margin-top: calc(var(--header-h) + 70px); }
.srow:first-child, .irow:first-child { border-top: 0; }
.srow__title, .irow__name { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; margin-bottom: .6rem; }
.srow__tagline { color: var(--text-2); font-size: 1.1rem; max-width: 30ch; }
.srow__text, .irow__text { font-size: 1.15rem; line-height: 1.6; color: var(--text); max-width: 56ch; }
.irow__lead .ind__tag { margin-top: .5rem; }
.irow__proof { display: flex; align-items: center; gap: .6rem; margin: 1.5rem 0 0; font-weight: 500; }
.irow__proof .icon { color: var(--ok); }
.outcome { display: grid; gap: .2rem; margin: 2rem 0 0; padding: 1.15rem 1.4rem; border-left: 3px solid var(--red-600); background: var(--mist); border-radius: 0 var(--r-md) var(--r-md) 0; }
.outcome strong { font-size: .9rem; color: var(--text-3); font-weight: 600; }
.outcome span { font-size: 1.05rem; font-weight: 500; }

/* ---------- 8. Slots, pills, chips -------------------------------------------------- */
.slot { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.6rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); min-height: 100%; }
.slot__mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; border: 1.5px dashed var(--line-strong); color: var(--text-3); margin-bottom: 1.2rem; }
.slot__title { font-size: 1.35rem; letter-spacing: -0.02em; margin: .5rem 0 0; }
.slot__text { color: var(--text-2); font-size: .98rem; margin: 0; max-width: 34ch; }
.slot .link { margin-top: auto; padding-top: 1rem; }

.pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 500; line-height: 1; padding: .38rem .7rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); background: transparent; }
.pill--live { color: var(--ok-700); background: #eaf7f0; border-color: #bfe6cf; }
.pill--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.pill--soon { color: var(--info-700); background: #ebf0fe; border-color: #c6d4fb; }
.pill--plan { color: var(--text-2); background: var(--cloud); border-color: var(--line-strong); }
.pill--on-dark.pill--live { color: #7ee2ab; background: rgba(23,160,93,.16); border-color: rgba(126,226,171,.3); }
.pill--on-dark.pill--soon { color: #9db8ff; background: rgba(47,111,237,.18); border-color: rgba(157,184,255,.3); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.1rem; }
.chips li { font-size: .84rem; font-weight: 500; color: var(--text-2); padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--mist); }
.chips--lg { margin-top: 1.5rem; } .chips--lg li { font-size: .92rem; padding: .45rem .95rem; }

/* ---------- 9. Process, why, stats, compare ------------------------------------------ */
.why-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.why-wrap__head { position: sticky; top: calc(var(--header-h) + 40px); }
.why { border-bottom: 1px solid var(--line-strong); }
.why__row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 2rem; padding: 1.75rem 0; border-top: 1px solid var(--line-strong); }
.why dt { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.why dd { color: var(--text-2); }

.proc { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.5rem; }
.proc::before, .proc::after { content: ""; position: absolute; top: 18px; left: 18px; right: 18px; height: 1px; }
.proc::before { background: var(--line-dark-strong); }
.proc::after { background: var(--red-500); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .1s; }
.proc.is-in::after { transform: scaleX(1); }
.proc__step { position: relative; padding-right: .75rem; }
.proc__node { position: relative; z-index: 1; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; border: 1px solid var(--line-dark-strong); background: var(--ink-900);
  color: var(--on-dark); font-weight: 600; font-size: .92rem; transition: background .4s ease, border-color .4s ease; transition-delay: calc(var(--i) * 230ms + 150ms); }
.proc.is-in .proc__node { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.proc__title { margin: 1.4rem 0 .5rem; font-size: 1.2rem; }
.proc__text { color: var(--text-2); font-size: .95rem; line-height: 1.6; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line-strong); }
.stats strong { display: block; font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; margin-bottom: .6rem; }
.stats span { color: var(--text-2); font-size: .98rem; }

.principles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); }
.principle { padding-right: 1rem; }
.principle h2 { font-size: 1.5rem; letter-spacing: -0.025em; }
.principle .prose p { font-size: 1rem; }

.cmp { border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.cmp__head, .cmp__row { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: stretch; }
.cmp__head { background: var(--mist); }
.cmp__head p { margin: 0; padding: 1rem 1.5rem; font-size: .9rem; font-weight: 600; color: var(--text-3); }
.cmp__head p:last-child { color: var(--steel-700); }
.cmp__row { border-top: 1px solid var(--line); }
.cmp__row p { margin: 0; padding: 1.4rem 1.5rem; }
.cmp__from { color: var(--text-2); }
.cmp__arrow { display: grid; place-items: center; color: var(--red-600); }
.cmp__to { font-weight: 600; background: var(--steel-50); letter-spacing: -0.01em; }
.cmp__head p:last-child { background: var(--steel-50); }

/* ---------- 10. Detail pages ------------------------------------------------------------ */
.detail { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.detail__img { width: 100%; border-radius: var(--r-xl); border: 1px solid var(--line); }
.detail__img--wide { aspect-ratio: 16 / 7; object-fit: cover; }
.callout { display: flex; gap: .8rem; align-items: flex-start; margin: 2rem 0 0; padding: 1.1rem 1.3rem; border-left: 3px solid var(--red-600); background: var(--mist); border-radius: 0 var(--r-md) var(--r-md) 0; font-weight: 500; max-width: 62ch; }
.callout .icon { color: var(--red-600); margin-top: .2rem; }
.cap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; }
.cap { padding: 1.75rem 0 2rem; }
.cap h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.cap p { margin: 0; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 1.75rem; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-lg); text-decoration: none; transition: border-color .25s, box-shadow .25s; }
.banner:hover { border-color: var(--text); box-shadow: var(--sh-lift); }
.banner strong { display: block; font-size: .9rem; color: var(--text-3); font-weight: 600; }
.banner .link { margin: 0; }
.facts { padding: 1.6rem 1.75rem; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--mist); }
.facts > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; padding-top: 0; } .facts > div:last-child { padding-bottom: 0; }
.facts dt { color: var(--text-3); font-size: .9rem; } .facts dd { font-weight: 500; }
.story__row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.7fr); gap: clamp(1.5rem, 5vw, 4rem); padding: 2.5rem 0; border-top: 1px solid var(--line-strong); }
.story__row:first-child { border-top: 0; padding-top: 0; }
.story__label { font-size: 1.35rem; letter-spacing: -0.02em; margin: 0; }

.pmap { position: relative; margin: 0; padding: 1.5rem; border-radius: var(--r-xl); color: var(--on-dark); background: var(--ink-950) radial-gradient(80% 70% at 100% 0%, rgba(229,37,47,.22), transparent 65%); box-shadow: 0 50px 90px -50px rgba(10,10,10,.65); }
.pmap__head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line-dark); }
.pmap__head > div { display: grid; flex: 1; min-width: 0; }
.pmap__head strong { font-size: 1.1rem; letter-spacing: -0.01em; }
.pmap__head span:not(.pill):not(.pmap__icon) { color: var(--on-dark-2); font-size: .88rem; }
.pmap__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-dark-strong); }
.pmap__mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.pmap__mods li { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; border: 1px solid var(--line-dark); border-radius: var(--r-md); font-size: .93rem; font-weight: 500; background: rgba(255,255,255,.03); animation: pmap-in .6s var(--ease) both; animation-delay: calc(.15s + var(--i) * 70ms); }
.pmap__mods .icon { color: var(--red-400); }
.pmap figcaption { margin-top: 1.1rem; font-size: .85rem; color: var(--on-dark-3); }
@keyframes pmap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.founder { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.founder__mark { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: var(--r-xl); color: #fff; background: var(--ink-950) radial-gradient(90% 90% at 100% 0%, rgba(229,37,47,.4), transparent 65%); }
.founder__mark span { font-size: 4.5rem; font-weight: 600; letter-spacing: -0.05em; }
.founder__mark img { width: 100%; height: 100%; object-fit: cover; }
.founder__name { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .2rem; }
.founder__role { margin: 0 0 1.4rem; color: var(--text-3); font-size: .92rem; font-weight: 500; letter-spacing: .04em; }

.quote { margin: 0; padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 1rem; }
.quote__mark { color: var(--red-600); }
.quote blockquote { margin: 0; } .quote blockquote p { font-size: 1.1rem; line-height: 1.55; margin: 0; }
.grid-3 > .quote:only-child { grid-column: 1 / -1; max-width: 46rem; padding: 2.5rem; }
.grid-3 > .quote:only-child blockquote p { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; letter-spacing: -0.01em; }
.quote figcaption { margin-top: auto; display: grid; font-size: .95rem; } .quote figcaption span { color: var(--text-3); }

/* ---------- 11. Contact + forms ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact .sec-head__title { margin-bottom: 1.25rem; }
.contact .lead { margin-bottom: 2rem; }
.info { border-top: 1px solid var(--line-strong); }
.info > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--text-3); font-size: .9rem; padding-top: 1px; }
.info dd { overflow-wrap: anywhere; }
.info a { text-underline-offset: 4px; text-decoration-color: var(--line-strong); } .info a:hover { color: var(--accent); }
.next { margin-top: 3rem; }
.next ol { display: grid; gap: 1.25rem; }
.next li { display: flex; gap: 1rem; }
.next h3 { font-size: 1.05rem; margin-bottom: .15rem; } .next p { margin: 0; color: var(--text-2); font-size: .96rem; }
.next__n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink-900); color: #fff; font-size: .85rem; font-weight: 600; }
h2.h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }

.panel { --text: #0a0a0a; --text-2: #46474d; --text-3: #6b6c73; --line: #e4e2dd; --line-strong: #cdcac3; --accent: var(--red-600);
  background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: 0 30px 70px -40px rgba(10,10,10,.5); }
.form .field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 7px; }
.form input[type=text], .form input[type=email], .form select, .form textarea { width: 100%; min-height: 48px; padding: .75rem .95rem; border: 1px solid var(--line-strong); background: #fff; border-radius: 8px; color: var(--text);
  transition: border-color .2s, box-shadow .2s; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346474d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right .8rem center / 18px; }
.form textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.form ::placeholder { color: var(--text-3); opacity: 1; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--text-3); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(200,16,30,.16); }
.form .invalid { border-color: var(--danger) !important; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: .4rem; }
.form-status { font-size: .93rem; color: var(--text-2); }
.form-status.error { color: var(--danger-700); }
.notice { padding: .9rem 1.1rem; margin-bottom: 1.4rem; font-size: .95rem; border-left: 3px solid var(--ok); background: #eaf7f0; color: var(--ok-700); border-radius: 0 8px 8px 0; }
.notice--error { border-left-color: var(--danger); background: #fdeceb; color: var(--danger-700); }
.segmented { display: inline-flex; padding: 3px; margin: 0 0 1.4rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--mist); }
.segmented label { margin: 0; cursor: pointer; position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; padding: .6rem 1.1rem; font-size: .9rem; font-weight: 500; border-radius: 7px; color: var(--text-2); transition: background .2s, color .2s; }
.segmented input:checked + span { background: var(--ink-900); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--red-600); outline-offset: 2px; }

/* ---------- 12. CTA, footer, motion, responsive --------------------------------------------- */
.cta { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line-dark); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.cta__title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -0.035em; margin-bottom: 1rem; max-width: 20ch; }
.cta__text { margin: 0; color: var(--text-2); max-width: 52ch; }

.site-footer { --bg: var(--ink-950); border-top: 1px solid var(--line-dark); padding: clamp(3.5rem, 6vw, 5rem) 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 3vw, 3rem); padding-bottom: 3.5rem; }
.footer__wordmark { display: block; margin-bottom: 1rem; font-weight: 600; font-size: .85rem; letter-spacing: .17em; color: #fff; }
.footer__brand p { max-width: 34ch; color: var(--text-2); margin-bottom: 1.5rem; }
.footer__h { margin: 0 0 1rem; font-size: .92rem; font-weight: 600; letter-spacing: 0; color: #fff; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a:not(.btn) { color: var(--text-2); text-decoration: none; transition: color .2s; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red-500); text-underline-offset: 4px; }
.footer__bottom { padding-top: 1.5rem; padding-bottom: 2rem; border-top: 0; background: linear-gradient(var(--line-dark), var(--line-dark)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; font-size: .86rem; color: var(--text-3); }

/* Scroll reveal: group level only. Content is hidden only after main.js confirms it is running. */
.js-ready [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js-ready [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .proc { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .proc::before, .proc::after { top: 18px; bottom: 18px; left: 18px; right: auto; width: 1px; height: auto; }
  .proc::after { transform: scaleY(0); transform-origin: top; }
  .proc.is-in::after { transform: scaleY(1); }
  .proc__step { display: grid; grid-template-columns: 37px minmax(0, 1fr); column-gap: 1.25rem; padding: 0 0 2rem; }
  .proc__node { grid-row: 1 / span 2; }
  .proc__title { margin: .4rem 0 .35rem; }
  .cap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__grid > :last-child { grid-column: 2 / -1; }
}
@media (max-width: 1020px) {
  .hero__grid, .phero--aside .phero__grid, .intro, .why-wrap, .contact-grid, .detail, .founder { grid-template-columns: minmax(0, 1fr); }
  .hero__panel { max-width: 640px; }
  .hero__title { max-width: 16ch; }
  .why-wrap__head { position: static; }
  .sec-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1.25rem; }
  .svc-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .founder__mark { max-width: 220px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .srow, .irow, .story__row { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(10,10,10,.3); display: none; }
  .nav.open { display: flex; }
  /* Without JavaScript the menu button cannot work, so the links sit in a scrollable second row instead */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header__inner { flex-wrap: wrap; height: auto; padding-top: .6rem; padding-bottom: .2rem; row-gap: .1rem; }
  html:not(.js) .nav { display: flex; position: static; order: 3; flex: 1 0 100%; flex-direction: row; align-items: center; gap: 1.4rem; padding: 0 0 .4rem; overflow-x: auto; background: none; border: 0; box-shadow: none; }
  html:not(.js) .nav__link { padding: 8px 0; border: 0; font-size: .95rem; white-space: nowrap; }
  html:not(.js) .nav__cta { margin: 0; min-height: 0; white-space: nowrap; }
  .nav__link { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1.1rem; min-height: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child, .footer__grid > :last-child { grid-column: 1 / -1; }
  .ind { grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: .5rem 1rem; }
  .ind__text { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3, .svc-grid, .principles { grid-template-columns: minmax(0, 1fr); }
  .field-row, .ticks--cols, .pmap__mods { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .cta__inner .btn { width: 100%; }
  .pillars > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .why__row { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .info > div, .facts > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .cap-grid { grid-template-columns: minmax(0, 1fr); }
  .cmp__head { display: none; }
  .cmp__row { grid-template-columns: minmax(0, 1fr); }
  .cmp__row p { padding: 1rem 1.25rem; }
  .cmp__arrow { padding: 0 0 .1rem 1.25rem; justify-content: start; transform: rotate(90deg); width: 20px; }
  .hv__sub { display: none; }
  .hv__label { font-size: 24px; }
  .segmented { display: flex; } .segmented label { flex: 1; text-align: center; }
  .banner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .site-header, .site-footer, .jump, .btn-row, .cta, .nav-toggle { display: none !important; } }
