/* Innovele - one theme, one component kit. Spec: docs/innovele.com-ui.md */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 400 800; font-stretch: 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #F4F0E6;
  --paper-2: #E9E3D3;
  --card: #FBF9F3;
  --ink: #14211C;
  --ink-2: #45524C;
  --line: rgba(20, 33, 28, .16);
  --forest: #0F2E26;
  --forest-2: #1A4236;
  --cream: #F4F0E6;
  --cream-2: #B9C4B8;
  --line-dark: rgba(244, 240, 230, .16);
  --signal: #E4572E;
  --signal-ink: #B03A12;
  --lime: #C9F26B;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-1: 6px;
  --r-2: 14px;
  --r-3: 22px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(32px, 3.8vw, 40px);
  --gap: clamp(16px, 2vw, 24px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 0 rgba(20, 33, 28, .05), 0 14px 34px -18px rgba(20, 33, 28, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .13 0 0 0 0 .11 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(20, 33, 28, .045) 31px 32px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal-ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--ink); }
s { text-decoration-thickness: 1px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: var(--r-1); }
.skip-link:focus { top: 12px; color: var(--cream); }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--signal-ink); line-height: 1.4; }
.sec-title, .page-title, .hero__title, .fit__title, .cta-panel__title, .method__title, .next-case__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance;
}
.sec-title { font-size: clamp(30px, 3.6vw, 50px); }
.sec-lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 36px); max-width: 860px; }
.sec-more { margin-top: clamp(20px, 2.4vw, 28px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link span[aria-hidden] { transition: transform .25s var(--ease); }
.text-link:hover span[aria-hidden] { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn--primary { background: var(--signal); color: #1B0B04; box-shadow: 0 10px 22px -12px rgba(228, 87, 46, .9); }
.btn--primary:hover { background: #F06A40; color: #1B0B04; transform: translateY(-2px); box-shadow: 0 16px 26px -12px rgba(228, 87, 46, .9); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 240, 230, .88); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { flex: none; transition: transform .35s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.05); }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.04em; line-height: 1; }
.logo--light, .logo--light:hover { color: var(--cream); }
.logo--light .logo__mark rect:first-child { fill: var(--forest-2); }
.nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.nav__list { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 18px); }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-weight: 500; font-size: 16px; text-decoration: none; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 600 15px/1 var(--font-body); cursor: pointer; }
.nav-toggle__bars { display: grid; gap: 5px; width: 18px; }
.nav-toggle__bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 859px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding: 12px var(--gutter) 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -24px rgba(20, 33, 28, .5); }
  .js .nav.is-open { display: flex; }
  .js .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav__link { min-height: 50px; padding: 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .js .nav__link::after { display: none; }
  .js .nav__link[aria-current="page"] { color: var(--signal-ink); }
  html:not(.js) .site-header__in { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .nav { flex-wrap: wrap; }
  html:not(.js) .nav__list { flex-wrap: wrap; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-top: 0; }
.section--band { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--dark {
  background-color: var(--forest);
  background-image:
    radial-gradient(60% 90% at 100% 0%, rgba(201, 242, 107, .10), transparent 60%),
    linear-gradient(rgba(244, 240, 230, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 230, .05) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  color: var(--cream);
}
.section--dark .eyebrow { color: var(--lime); }
.section--dark .sec-lead { color: var(--cream-2); }
.section--dark a:hover { color: var(--lime); }
.split { display: grid; gap: clamp(24px, 4vw, 64px); align-items: start; }
.split > .sec-head { margin-bottom: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--media { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
}
.split--media .sec-title { margin-block: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(28px, 4.5vw, 60px) var(--section); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: drift 16s var(--ease) infinite alternate; }
.hero::before { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; right: -8vw; top: -14vw; background: rgba(228, 87, 46, .20); }
.hero::after { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; left: -12vw; bottom: -18vw; background: rgba(201, 242, 107, .34); animation-delay: -6s; }
@keyframes drift { to { transform: translate3d(3vw, 2vw, 0) scale(1.12); } }
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero__copy { display: grid; gap: clamp(16px, 2vw, 22px); justify-items: start; }
.hero__title { font-size: clamp(42px, 5vw, 66px); font-weight: 800; line-height: .96; letter-spacing: -.04em; }
.hero__title-2 { display: block; color: var(--ink-2); }
.hero__title em { font-style: normal; color: var(--ink); background: linear-gradient(transparent 62%, var(--lime) 62% 92%, transparent 92%); padding-inline: .06em; margin-inline: -.06em; }
.hero__lead { font-size: clamp(18px, 1.55vw, 21px); color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.hero__note { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }

/* Ledger: before/after rows */
.ledger { background: var(--forest); color: var(--cream); border-radius: var(--r-3); padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 30px 60px -30px rgba(15, 46, 38, .7); position: relative; }
.ledger::before { content: ""; position: absolute; inset: 7px; border: 1px dashed var(--line-dark); border-radius: 16px; pointer-events: none; }
.ledger__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); position: relative; }
.ledger .eyebrow { color: var(--lime); }
.ledger__src { font-family: var(--font-mono); font-size: 13px; color: var(--cream-2); }
.ledger__rows { position: relative; }
.ledger__row a { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; padding: 14px 0 16px; border-bottom: 1px solid var(--line-dark); text-decoration: none; color: var(--cream); transition: padding .25s var(--ease); }
.ledger__row a:hover { color: var(--cream); padding-left: 8px; }
.ledger__label { font-size: 16px; color: var(--cream-2); }
.ledger__nums { font-family: var(--font-mono); font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; white-space: nowrap; }
.ledger__nums s { color: var(--cream-2); font-weight: 400; }
.ledger__nums b { color: var(--lime); font-weight: 500; }
.ledger__bar { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: repeating-linear-gradient(135deg, rgba(244, 240, 230, .16) 0 6px, rgba(244, 240, 230, .07) 6px 12px); overflow: hidden; }
.ledger__bar i { display: block; height: 100%; width: 100%; min-width: 8px; border-radius: 99px; background: var(--signal); transition: width 1.5s var(--ease) .3s, background-color 1.5s var(--ease) .3s; }
.ledger__bar i.is-after { background: var(--lime); }
.ledger__foot { position: relative; padding-top: 14px; font-size: 14px; color: var(--cream-2); }
.ledger__foot a { color: var(--cream); display: inline-flex; align-items: center; min-height: 44px; }
.ledger__foot a:hover { color: var(--lime); }

/* ---------- Page hero + crumbs ---------- */
.page-hero { padding-block: clamp(20px, 3vw, 36px) var(--section); position: relative; }
.page-hero .container { display: grid; gap: clamp(12px, 1.6vw, 18px); justify-items: start; }
.page-title { font-size: clamp(38px, 5.4vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: .98; max-width: 18ch; }
.page-title--case { font-size: clamp(34px, 4.6vw, 64px); max-width: 22ch; }
.page-lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); max-width: 64ch; text-wrap: pretty; }
.page-hero--404 { padding-bottom: var(--section); }
.crumbs { margin-bottom: clamp(6px, 1.4vw, 16px); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "/"; margin-inline: 2px 10px; color: var(--signal); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink); }
.link-list { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 4px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2); padding: clamp(20px, 2.2vw, 28px); display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(20, 33, 28, .05), 0 24px 40px -20px rgba(20, 33, 28, .45); }
.card p { color: var(--ink-2); }
.card__n, .tile__n, .step__n, .measure__n { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--signal-ink); }
.card__title, .tile__title, .step__title { font-family: var(--font-display); font-size: clamp(21px, 1.8vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }

/* Tiles: ruled grid, no boxes */
.tile-grid { display: grid; border-top: 2px solid var(--ink); }
@media (min-width: 720px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); } }
@media (min-width: 1080px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: grid; gap: 8px; align-content: start; padding-block: clamp(18px, 2vw, 24px); border-bottom: 1px solid var(--line); }
.tile p { color: var(--ink-2); }
.tile .text-link { margin-top: 2px; justify-self: start; }

/* Steps */
.steps { display: grid; gap: var(--gap); counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(20px, 2.2vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2); border-top: 4px solid var(--forest); box-shadow: var(--shadow); }
.step:nth-child(2) { border-top-color: var(--signal); }
.step:nth-child(3) { border-top-color: #8FB82E; }
.step p { color: var(--ink-2); }
.step__n { font-size: 14px; }

/* Stats */
.stat-row { display: grid; gap: var(--gap); }
@media (min-width: 620px) { .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { border-top: 2px solid var(--lime); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.stat__v { font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 5vw, 72px); line-height: .95; letter-spacing: -.04em; color: var(--cream); }
.stat__l { color: var(--cream-2); font-size: 16px; }
.stat-row__src { grid-column: 1 / -1; font-size: 14px; color: var(--cream-2); margin-top: 6px; }
.stat-row__src a { color: var(--cream); display: inline-block; padding-block: 12px; }

.stat-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.stat-strip li { display: grid; gap: 2px; padding: 14px 20px; background: var(--forest); color: var(--cream); border-radius: var(--r-2); min-width: 150px; }
.stat-strip strong { font-family: var(--font-mono); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); color: var(--lime); line-height: 1.15; white-space: nowrap; }
.stat-strip span { font-size: 15px; color: var(--cream-2); }

.measure, .next-list { display: grid; }
.measure li, .next-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line-dark); font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.measure li:first-child { border-top: 1px solid var(--line-dark); }
.section--dark .measure__n { color: var(--lime); }
.next-list li { border-color: var(--line); font-size: 19px; }

/* Checklists */
.checklist { display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 9px; border-left: 3px solid #5E8A12; border-bottom: 3px solid #5E8A12; transform: rotate(-45deg) scale(.82); transform-origin: left center; }
.checklist--no li::before { width: 14px; height: 3px; border: 0; background: var(--signal); transform: none; top: .7em; }

/* Fit columns */
.fit { display: grid; gap: var(--gap); }
@media (min-width: 820px) { .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fit__col { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 2.6vw, 34px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow); }
.fit__col--no, .fit__col--co { background: transparent; box-shadow: none; border-style: dashed; border-color: rgba(20, 33, 28, .4); }
.fit__title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.fit__col p, .fit__col address { color: var(--ink-2); }

/* Screens */
.screen { background: var(--forest); border-radius: var(--r-3); padding: 0 clamp(6px, 1vw, 12px) clamp(6px, 1vw, 12px); box-shadow: 0 40px 70px -40px rgba(15, 46, 38, .8); }
.screen__bar { display: flex; gap: 7px; padding: 12px 8px; }
.screen__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(244, 240, 230, .28); }
.screen__bar i:first-child { background: var(--signal); }
.screen img { width: 100%; border-radius: 12px; border: 1px solid var(--line-dark); }
.screen figcaption { font-family: var(--font-mono); font-size: 13px; color: var(--cream-2); padding: 10px 8px 4px; }

/* Case cards */
.case-grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 1079px) { .case-grid:not(.case-grid--all) > :last-child { grid-column: 1 / -1; } }
.case-card { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(20, 33, 28, .05), 0 26px 44px -22px rgba(20, 33, 28, .5); }
.case-card__img { display: block; background: var(--forest); aspect-ratio: 16 / 9; overflow: hidden; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .6s var(--ease); }
.case-card:hover .case-card__img img { transform: scale(1.04); }
.case-card__body { display: grid; gap: 10px; align-content: start; padding: clamp(18px, 2vw, 24px); }
.case-card__title { font-family: var(--font-display); font-size: clamp(21px, 1.8vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.case-card__title a { text-decoration: none; display: inline-block; padding-block: 10px; }
.case-card__body > .eyebrow { margin-bottom: -6px; }
.case-card__sum { color: var(--ink-2); font-size: 16px; }
.case-card__stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.case-card__stat strong { font-family: var(--font-mono); font-weight: 500; font-size: 24px; color: var(--signal-ink); white-space: nowrap; }
.case-card__stat span { color: var(--ink-2); font-size: 15px; }
.range { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 2.2vw, 28px); background: var(--forest); color: var(--cream); border-radius: var(--r-2); }
.range .eyebrow { color: var(--lime); }
.range__list { display: grid; }
.range__list li { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line-dark); }
.range__list strong { font-family: var(--font-mono); font-weight: 500; font-size: clamp(22px, 2vw, 28px); color: var(--lime); white-space: nowrap; }
.range__list span, .range__note { color: var(--cream-2); font-size: 15px; }

/* Case body */
.case-body { display: grid; gap: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 64px); }
@media (min-width: 860px) { .case-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case-body__block { display: grid; gap: 14px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.case-body__big { font-family: var(--font-display); font-size: clamp(20px, 1.9vw, 25px); font-weight: 500; letter-spacing: -.015em; line-height: 1.3; text-wrap: pretty; }
.next-case { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.next-case > div:first-child { display: grid; gap: 8px; }
.next-case__title { font-size: clamp(26px, 3vw, 40px); }
.next-case__title a { text-decoration: none; display: inline-block; padding-block: 9px; }

/* Method */
.method { display: grid; gap: var(--gap); }
.method__step { display: grid; gap: clamp(18px, 3vw, 48px); padding: clamp(22px, 2.8vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow); }
@media (min-width: 900px) { .method__step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.method__head { display: grid; gap: 12px; align-content: start; }
.method__title { font-size: clamp(30px, 3.4vw, 46px); }
.method__body { color: var(--ink-2); font-size: 18px; }
.method__cols { display: grid; gap: 20px; align-content: start; }
.method__cols > div { display: grid; gap: 12px; align-content: start; }
.method__get { display: grid; gap: 8px; margin-top: 6px; padding: 18px 20px; background: var(--paper-2); border-radius: var(--r-2); border-left: 4px solid var(--signal); }
.method__get p { font-weight: 500; }

/* Prose */
.prose-split { display: grid; gap: clamp(14px, 3vw, 48px); }
@media (min-width: 900px) { .prose-split { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } .prose-split > .eyebrow { padding-top: 22px; } }
.prose { display: grid; gap: 16px; max-width: 78ch; padding-top: 18px; border-top: 2px solid var(--ink); }
.prose p, .prose address { color: var(--ink-2); font-size: 18px; }
.prose h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; }
.prose .prose__big { font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.prose a { display: inline-block; padding: 8px 3px; margin-inline: -3px; font-weight: 600; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }

/* Calculator */
.calc { display: grid; gap: 18px; padding: clamp(18px, 2.4vw, 28px); background: var(--forest-2); border: 1px solid var(--line-dark); border-radius: var(--r-3); }
.calc__fields { display: grid; gap: 14px; }
@media (min-width: 620px) { .calc__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; } }
.calc__out { display: grid; gap: 12px; }
@media (min-width: 620px) { .calc__out { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.calc__cell { padding: 16px; border-radius: var(--r-2); background: rgba(15, 46, 38, .7); border: 1px solid var(--line-dark); display: grid; gap: 4px; align-content: start; min-width: 0; }
.calc__cell--hi { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.calc__v { font-family: var(--font-mono); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; overflow-wrap: anywhere; }
.calc__l { font-size: 15px; color: var(--cream-2); }
.calc__cell--hi .calc__l { color: #2B3A1B; }
.calc__note { font-size: 14px; color: var(--cream-2); }

/* Forms */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 620px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field__label { font-size: 15px; font-weight: 600; }
.field__label em { font-style: normal; font-weight: 400; color: var(--ink-2); }
.section--dark .field__label { color: var(--cream); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid rgba(20, 33, 28, .45); border-radius: var(--r-1); background: var(--card); color: var(--ink); font: 400 17px/1.4 var(--font-body); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field textarea { resize: vertical; min-height: 150px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%2314211C' stroke-width='2'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(228, 87, 46, .22); }
.calc .field input { font-family: var(--font-mono); font-weight: 500; font-size: 19px; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-note { font-size: 15px; color: var(--ink-2); flex: 1 1 260px; }
.form-note a { display: inline-block; padding-block: 11px; font-weight: 600; }
.alert { display: grid; gap: 4px; padding: 16px 20px; border-radius: var(--r-2); border: 1.5px solid var(--ink); background: var(--card); margin-bottom: 18px; }
.alert[hidden], .form[hidden] { display: none; }
.alert--ok { border-color: #5E8A12; background: #EEF7D6; }
.alert--err { border-color: var(--signal-ink); background: #FBE5DC; }
.alert strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.contact { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.contact__form { padding: clamp(20px, 2.6vw, 34px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow); }
.contact__aside { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2.6vw, 34px); border: 1px dashed rgba(20, 33, 28, .4); border-radius: var(--r-3); }
.contact__aside .next-list li:last-child { border-bottom: 0; }
.contact__small { color: var(--ink-2); font-size: 16px; }
.contact__aside .eyebrow:not(:first-child) { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }

/* CTA panel */
.cta-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(24px, 3.4vw, 44px); background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-3); box-shadow: 8px 8px 0 var(--ink); }
.cta-panel > div { display: grid; gap: 10px; flex: 1 1 420px; }
.cta-panel__title { font-size: clamp(28px, 3.4vw, 46px); }
.cta-panel__body { color: var(--ink-2); font-size: 18px; max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--cream-2); padding-top: clamp(36px, 4.4vw, 52px); font-size: 16px; }
.site-footer__in { display: grid; gap: 28px clamp(24px, 4vw, 64px); }
@media (min-width: 760px) { .site-footer__in { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); } }
.site-footer__brand, .site-footer__co { display: grid; gap: 12px; align-content: start; }
.site-footer__brand p { max-width: 38ch; }
.site-footer .eyebrow { color: var(--lime); }
.site-footer__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; }
.site-footer a { color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 20px; margin-top: 24px; padding-block: 10px; border-top: 1px solid var(--line-dark); font-size: 14px; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card-grid > [data-reveal]:nth-child(2), .js .case-grid > [data-reveal]:nth-child(2), .js .steps > [data-reveal]:nth-child(2), .js .tile-grid > [data-reveal]:nth-child(2) { transition-delay: .08s; }
.js .card-grid > [data-reveal]:nth-child(3), .js .case-grid > [data-reveal]:nth-child(3), .js .steps > [data-reveal]:nth-child(3), .js .tile-grid > [data-reveal]:nth-child(3) { transition-delay: .16s; }
.js .card-grid > [data-reveal]:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
