/* CH Group: site.css
   Tokens (BRIEF section 6) mapped onto the scrollcraft engine's --sc-* roles, the
   type ramp, and every shared component. Page CSS adds page layout only and
   never redefines a token or a class defined here. Contract: src/COMPONENTS.md. */

/* ------------------------------------------------------------------ fonts -- */
@font-face {
  font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader"; src: url("/assets/fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader"; src: url("/assets/fonts/newsreader-var-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

/* ----------------------------------------------------------------- tokens -- */
:root {
  /* brand palette */
  --porcelain: #f5f6f4;
  --white: #ffffff;
  --cream: #eae7dd;
  --green-950: #0a2a1e;          /* deep green: dark canvas */
  --green-900: #103d2c;          /* ink on light, surface on dark */
  --fern: #0f5a3f;
  --brass: #e0a63a;              /* fills on light grounds */
  --brass-on-dark: #e2aa2d;      /* text and fills on dark grounds */
  --brass-text: #8a5c10;         /* text accents on light grounds */
  --brass-edge: #9a6714;         /* primary button border on light grounds */
  --brass-ink: #0a2a1e;          /* text on brass fills */
  --hairline-light: #dcdfd8;

  /* roles (light ground by default; .sec--dark and .sec--cream restate them) */
  --sc-canvas: var(--porcelain);
  --sc-surface: var(--white);
  --sc-ink: var(--green-900);
  --sc-ink-soft: #5d6d64;
  --sc-accent: var(--brass-text);
  --sc-accent-ink: var(--porcelain);
  --line: var(--hairline-light);
  --line-strong: #c3c9c0;

  --sc-font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sc-font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-shadow-color: 156 62% 9%;   /* deep green, so shadows read as shade, not dirt */
  --sc-maxw: 80rem;
  --sc-measure: 62ch;

  --hd-h: 72px;
  --sec-y: var(--sc-section);
  --ease: var(--sc-ease-out);
}
@media (max-width: 960px) { :root { --hd-h: 64px; } }

/* ------------------------------------------------------------------- base -- */
html { background: var(--sc-canvas); scroll-padding-top: calc(var(--hd-h) + 16px); }
body {
  background: var(--sc-canvas); color: var(--sc-ink);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem); line-height: 1.62;
  font-feature-settings: "cv11", "ss01";
}
main { display: block; padding-top: var(--hd-h); }
main:focus { outline: none; }
p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
a { color: inherit; }
strong { font-weight: 600; }
em { font-style: italic; }
img { height: auto; }
button { cursor: pointer; }
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200; padding: 12px 16px;
  border-radius: var(--sc-r-sm); background: var(--green-900); color: var(--porcelain);
  font: 600 14px/1 var(--sc-font-text); text-decoration: none;
}
.skip:focus-visible { top: 12px; }

/* Without JS the engine never runs, so nothing it would reveal may stay hidden. */
.no-js [data-sc-cue], .no-js [data-sc-in], .no-js [data-sc-stagger] > * { opacity: 1 !important; transform: none !important; }

.wrap { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }

/* --------------------------------------------------------------- sections --
   Rhythm: every section is .sec (fluid block padding). Grounds alternate by
   modifier; a section painted dark restates ink, soft ink, accent and color. */
.sec { position: relative; padding-block: var(--sec-y); }
.sec--surface { background: var(--white); }
.sec--canvas { background: var(--porcelain); }
.sec--cream { background: var(--cream); --sc-ink-soft: #4f5e56; --line: #d3cfc2; color: var(--sc-ink); }
.sec--dark, .on-dark {
  --sc-canvas: var(--green-950); --sc-surface: var(--green-900);
  --sc-ink: var(--porcelain); --sc-ink-soft: #b9c8bf;
  --sc-accent: var(--brass-on-dark); --sc-accent-ink: var(--brass-ink);
  --line: rgb(245 246 244 / 0.14); --line-strong: rgb(245 246 244 / 0.26);
  background-color: var(--green-950); color: var(--sc-ink);
}
/* Grain at 4% on dark bands (a flat dark ground bands on real displays). It is a
   background layer, so it never repositions children (a pinned stage must stay sticky). */
.sec--dark {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -0.2'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.04'/></svg>");
}
.sec--dark-2 { background-color: var(--green-900); }
.sec--flush-top { padding-top: 0; }
.sec--tight-top { padding-top: var(--sc-7); }   /* a flow section straight after a pinned act */

/* ------------------------------------------------------------------- type --
   Newsreader for display (weights 400 to 600, italic for emphasis), Inter for
   text. Tracking tightens as size grows. */
.h1, .h2, .h3, .display {
  font-family: var(--sc-font-display); font-weight: 500; font-optical-sizing: auto;
  text-wrap: balance; color: var(--sc-ink);
}
.h1 { font-size: clamp(2.5rem, 1.55rem + 3.1vw, 4.6rem); line-height: 1.03; letter-spacing: -0.024em; }
.h2 { font-size: clamp(2rem, 1.4rem + 1.9vw, 3.4rem); line-height: 1.06; letter-spacing: -0.02em; }
.h3 { font-size: clamp(1.45rem, 1.22rem + 0.75vw, 1.95rem); line-height: 1.16; letter-spacing: -0.012em; }
.h1 em, .h2 em, .h3 em { font-style: italic; }
.lede { font-size: clamp(1.1rem, 1rem + 0.38vw, 1.3rem); line-height: 1.55; color: var(--sc-ink); max-width: 46ch; text-wrap: pretty; }
.body { color: var(--sc-ink-soft); max-width: var(--sc-measure); text-wrap: pretty; }
.small { font-size: var(--sc-t-sm); line-height: 1.5; }
.soft { color: var(--sc-ink-soft); }
/* One eyebrow per three sections at most. */
.eyebrow {
  font: 600 0.8125rem/1.3 var(--sc-font-text); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sc-accent);
}
/* A small label naming a side, a group or a status (not a section eyebrow). */
.label {
  font: 600 0.8125rem/1.3 var(--sc-font-text); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sc-ink-soft);
}
.stack > * + * { margin-top: var(--sc-4); }
.stack > :is(.h1, .h2, .h3) + * { margin-top: var(--sc-5); }
.stack > * + :is(.h2, .h3) { margin-top: var(--sc-7); }
.stack > .eyebrow + *, .stack > .label + * { margin-top: var(--sc-3); }
.prose a, .body a, .lede a { text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }

/* ---------------------------------------------------------------- buttons --
   One primary style (brass), one text-button style. Labels never wrap. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--sc-r-sm);
  font: 600 15px/1.1 var(--sc-font-text); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn__ico { width: 18px; height: 18px; flex: none; transition: transform 180ms var(--ease); }
.btn--primary {
  background: var(--brass); color: var(--brass-ink); border-color: var(--brass-edge);
  box-shadow: 0 1px 2px hsl(var(--sc-shadow-color) / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.28);
}
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--text {
  min-height: 44px; padding: 0 2px; gap: 8px; color: var(--sc-ink); background: none; border: 0;
}
.btn--text > span:not(.btn__disc) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.32em;
  text-decoration-color: color-mix(in oklab, currentColor 35%, transparent);
  transition: text-decoration-color 160ms var(--ease);
}
.btn--film { gap: 12px; }
.btn__disc {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border: 1px solid color-mix(in oklab, currentColor 30%, transparent); border-radius: var(--sc-r-sm);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn__disc .ico { width: 14px; height: 14px; fill: currentColor; stroke-width: 1.5; }
.sec--dark .btn--primary, .on-dark .btn--primary { background: var(--brass-on-dark); border-color: var(--brass-on-dark); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #eab752; border-color: var(--brass-edge); box-shadow: 0 4px 12px -4px hsl(var(--sc-shadow-color) / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.3); }
  .sec--dark .btn--primary:hover, .on-dark .btn--primary:hover { background: #ecbb55; border-color: #ecbb55; }
  .btn--text:hover > span:not(.btn__disc) { text-decoration-color: currentColor; }
  .btn:hover .btn__ico { transform: translateX(3px); }
  .btn--film:hover .btn__disc { border-color: currentColor; }
}

/* ---------------------------------------------------------------- icons -- */
.ico { width: 20px; height: 20px; flex: none; }

/* ----------------------------------------------------------------- header --
   Always solid porcelain; a quiet elevation once the page has scrolled. */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--hd-h);
  background: var(--porcelain); border-bottom: 1px solid var(--hairline-light);
  transition: box-shadow 240ms var(--ease);
}
.hd.is-scrolled { box-shadow: 0 10px 24px -18px hsl(var(--sc-shadow-color) / 0.55); }
.hd__inner {
  height: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
}
.hd__logo { display: block; flex: none; padding: 6px 0; border-radius: var(--sc-r-sm); }
.hd__logoimg { height: 40px; width: auto; }
.hd__nav { margin-left: auto; }
.hd__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.hd__list > li > a, .hd__loginbtn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px;
  border: 0; border-radius: var(--sc-r-sm); background: none; color: var(--sc-ink);
  font: 500 15px/1 var(--sc-font-text); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--ease);
}
.hd__list > li > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 2px; border-radius: 1px; background: var(--brass);
}
.hd__chev { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.hd__loginbtn[aria-expanded="true"] .hd__chev { transform: rotate(180deg); }
.hd__loginbtn[aria-expanded="true"] { background: rgb(16 61 44 / 0.06); }
@media (hover: hover) and (pointer: fine) {
  .hd__list > li > a:hover, .hd__loginbtn:hover { background: rgb(16 61 44 / 0.06); }
}
.hd__login { position: relative; }
.login {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 2; width: 300px;
  list-style: none; margin: 0; padding: 8px; background: var(--white);
  border: 1px solid var(--hairline-light); border-radius: var(--sc-r-md); box-shadow: var(--sc-e2);
  opacity: 0; transform: translateY(-4px); transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.login.is-open { opacity: 1; transform: none; }
/* without JS the menu still opens on hover and keyboard focus */
.no-js .hd__login:hover .login[hidden], .no-js .hd__login:focus-within .login[hidden] { display: block; opacity: 1; transform: none; }
.login__link { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--sc-r-sm); text-decoration: none; color: var(--sc-ink); }
.login__link-label { font: 600 15px/1.3 var(--sc-font-text); }
.login__link-host { font: 400 13px/1.3 var(--sc-font-text); color: var(--sc-ink-soft); }
.login__link:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .login__link:hover { background: var(--porcelain); } }
.hd__cta { flex: none; }
.hd__menu {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px;
  border: 0; border-radius: var(--sc-r-sm); background: none; color: var(--sc-ink);
}
.hd__menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hd__menu .ico { width: 24px; height: 24px; }
/* Five nav items plus Log in fit from about 1100px; below that the menu takes over. */
@media (max-width: 1099px) {
  .hd__nav { display: none; }
  .hd__cta { margin-left: auto; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .hd__menu { display: inline-flex; }
  .hd__logoimg { height: 36px; }
}

/* phone menu: a modal <dialog> */
.mn {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0;
  padding: 0 var(--sc-gutter) calc(24px + env(safe-area-inset-bottom)); border: 0;
  background: var(--porcelain); color: var(--sc-ink); overflow-y: auto;
  flex-direction: column; gap: 22px;
}
.mn[open] { display: flex; animation: mn-in 240ms var(--ease); }
.mn::backdrop { background: rgb(10 42 30 / 0.5); }
@keyframes mn-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mn__top { height: var(--hd-h); flex: none; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hairline-light); margin-inline: calc(var(--sc-gutter) * -1); padding-inline: var(--sc-gutter); }
.mn__logo { height: 36px; width: auto; }
.mn__close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: var(--sc-r-sm); background: none; color: var(--sc-ink); }
.mn__close .ico { width: 24px; height: 24px; }
.mn__list, .mn__portals { list-style: none; margin: 0; padding: 0; }
.mn__list a {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--hairline-light);
  font: 500 clamp(1.7rem, 1.3rem + 2vw, 2.2rem)/1.15 var(--sc-font-display); letter-spacing: -0.015em; text-decoration: none; color: var(--sc-ink);
}
.mn__list a[aria-current="page"] { color: var(--brass-text); }
.mn__h { font: 600 0.8125rem/1.3 var(--sc-font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-ink-soft); }
.mn__portals { margin-top: 8px; display: grid; gap: 4px; }
.mn__portal { display: grid; gap: 2px; padding: 10px 0; text-decoration: none; color: var(--sc-ink); }
.mn__portal-label { font: 600 16px/1.3 var(--sc-font-text); }
.mn__portal-host { font-size: 14px; color: var(--sc-ink-soft); }
.mn__cta { width: 100%; margin-top: auto; }
.mn__talk a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--sc-ink); text-decoration: none; font-weight: 500; }
.mn__talk .ico { width: 18px; height: 18px; }

/* ----------------------------------------------------------------- footer -- */
.ft {
  --sc-ink: var(--porcelain); --sc-ink-soft: #b9c8bf; --sc-accent: var(--brass-on-dark); --sc-accent-ink: var(--brass-ink);
  --line: rgb(245 246 244 / 0.14);
  background: var(--green-950); color: var(--sc-ink); padding-top: clamp(56px, 7vw, 96px);
}
.ft__inner { max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }
.ft__top { display: grid; grid-template-columns: 1.3fr 3fr 1.25fr; gap: clamp(28px, 4vw, 56px); }
.ft__logo { height: 40px; width: auto; }
.ft__line { margin-top: 18px; max-width: 22ch; font: 500 1.3rem/1.3 var(--sc-font-display); letter-spacing: -0.01em; color: var(--sc-ink); }
.ft__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ft__h { margin: 0 0 14px; font: 600 0.8125rem/1.3 var(--sc-font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-ink-soft); }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ft__col a { display: inline-block; padding: 5px 0; color: var(--sc-ink); text-decoration: none; font-size: 15px; }
.ft__talk li { font-size: 15px; }
.ft__talk li:nth-child(2) { margin-bottom: 10px; }
.ft__who { color: var(--sc-ink-soft); }
@media (hover: hover) and (pointer: fine) { .ft__col a:hover { text-decoration: underline; text-underline-offset: 0.28em; } }
.ft__base {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px;
  margin-top: clamp(40px, 5vw, 72px); padding-block: 22px 28px; border-top: 1px solid var(--line);
  color: var(--sc-ink-soft); font-size: 13.5px; line-height: 1.55;
}
.ft__legal { flex: 1 1 32rem; }
.ft__links { display: flex !important; gap: 20px !important; }
.ft__links a { color: var(--sc-ink); }
@media (max-width: 1080px) { .ft__top { grid-template-columns: 1fr 1fr; } .ft__cols { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 640px) {
  .ft__top { grid-template-columns: 1fr; }
  .ft__cols { grid-template-columns: 1fr 1fr; grid-row: auto; }
  .ft__cols .ft__col:last-child { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------- proof row --
   Counted figures in a ruled row. Numbers only from BRIEF section 2. */
.proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof__item { padding: 2px clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.proof__item:first-child { padding-left: 0; border-left: 0; }
.proof__fig {
  font: 500 clamp(2.3rem, 1.6rem + 2.1vw, 3.6rem)/1 var(--sc-font-display); letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums; color: var(--sc-ink); white-space: nowrap;
}
.proof__label { margin-top: 10px; max-width: 26ch; font-size: 15px; line-height: 1.45; color: var(--sc-ink-soft); }
.proof--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .proof { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .proof__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .proof--3 .proof__item:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}

/* -------------------------------------------------------------- steps -- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps__item { counter-increment: step; position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps__item::before {
  content: counter(step); font: 500 1.35rem/1.1 var(--sc-font-display); color: var(--sc-accent);
  font-variant-numeric: lining-nums;
}
.steps__t { font-weight: 600; color: var(--sc-ink); }
.steps__b { color: var(--sc-ink-soft); }
/* A horizontal track: numbered dots on a rule (portal stages, process lines). */
.steps--track { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
/* align-content: start keeps every title on one line across the track when the
   grid stretches the shorter items to the tallest one */
.steps--track .steps__item { grid-template-columns: 1fr; align-content: start; gap: 14px; padding: 0; border: 0; }
.steps--track .steps__item::before {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-900); color: var(--porcelain); font: 600 14px/1 var(--sc-font-text);
}
.sec--dark .steps--track .steps__item::before { background: var(--brass-on-dark); color: var(--brass-ink); }
.steps--track .steps__item::after {
  content: ""; position: absolute; top: 17px; left: 46px; right: calc(clamp(20px, 3vw, 40px) * -1 + 12px); height: 1px; background: var(--line-strong);
}
.steps--track .steps__item:last-child::after { display: none; }
.steps--track .steps__t { display: block; margin-bottom: 6px; font-size: 1.0625rem; }
.steps--track p { max-width: 34ch; }
@media (max-width: 860px) {
  .steps--track { grid-template-columns: 1fr; gap: 0; }
  .steps--track .steps__item { grid-template-columns: 34px 1fr; gap: 16px; padding-bottom: 26px; }
  .steps--track .steps__item::after { top: 44px; bottom: 8px; left: 17px; right: auto; width: 1px; height: auto; }
  .steps--track .steps__item:last-child { padding-bottom: 0; }
}

/* --------------------------------------------------------------- ledger -- */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.ledger--1 { grid-template-columns: 1fr; }
.ledger--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ledger__row { padding: 18px 0 22px; border-top: 1px solid var(--line); }
.ledger__t { font: 600 1.0625rem/1.35 var(--sc-font-text); color: var(--sc-ink); }
.ledger__b { margin-top: 6px; color: var(--sc-ink-soft); max-width: 52ch; }
@media (max-width: 760px) { .ledger, .ledger--3 { grid-template-columns: 1fr; } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checks__ico { width: 20px; height: 20px; margin-top: 2px; color: var(--sc-accent); stroke-width: 2.25; }

.verdict { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.verdict__ico { width: 18px; height: 18px; }
.verdict--yes { color: var(--fern); font-weight: 600; }
.verdict--partly, .verdict--no { color: var(--sc-ink-soft); }

/* ----------------------------------------------------------- data table -- */
.tbl-frame { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--sc-r-md); background: var(--white); color: var(--green-900); --sc-ink: var(--green-900); --sc-ink-soft: #5d6d64; }
.tbl { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tbl caption { padding: 16px 20px 0; text-align: left; font-weight: 600; }
.tbl th, .tbl td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline-light); }
.tbl thead th { font: 600 14px/1.35 var(--sc-font-text); background: var(--porcelain); }
.tbl tbody th { font-weight: 600; color: var(--sc-ink); }
.tbl td { color: var(--sc-ink-soft); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl-frame:focus-visible { outline-offset: 2px; }

/* -------------------------------------------------------------------- FAQ -- */
.faq { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 22px 0; list-style: none; cursor: pointer;
  font: 500 clamp(1.15rem, 1.05rem + 0.35vw, 1.35rem)/1.35 var(--sc-font-display); color: var(--sc-ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline-offset: 4px; }
.faq__ico { width: 22px; height: 22px; margin-top: 3px; color: var(--sc-accent); transition: transform 220ms var(--ease); }
.faq__item[open] .faq__ico { transform: rotate(45deg); }
.faq__a { padding: 0 48px 24px 0; color: var(--sc-ink-soft); max-width: 68ch; }
@media (hover: hover) and (pointer: fine) { .faq__q:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); } }

/* ------------------------------------------------------------ case studies -- */
.cases__title { max-width: 18ch; }
.cases__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 4.5vw, 64px); align-items: start; }
.case { display: grid; gap: clamp(20px, 2.4vw, 30px); }
.case--lead { grid-column: 1 / span 7; }
.case--second { grid-column: 9 / span 4; margin-top: clamp(80px, 12vw, 180px); }
.case__media { overflow: hidden; border-radius: var(--sc-r-md); background: var(--hairline-light); }
.case__media img { width: 100%; height: auto; display: block; }
.case--lead .case__media img { aspect-ratio: 4 / 3; object-fit: cover; }
.case--second .case__media img { aspect-ratio: 16 / 10; object-fit: cover; }
.case__sector { font: 600 0.8125rem/1.3 var(--sc-font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-ink-soft); }
.case__name { margin-top: 8px; font: 500 clamp(1.4rem, 1.2rem + 0.7vw, 1.9rem)/1.15 var(--sc-font-display); letter-spacing: -0.012em; color: var(--sc-ink); }
.case__fig { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.case__num { font: 500 clamp(2.6rem, 1.8rem + 2.6vw, 4.4rem)/1 var(--sc-font-display); letter-spacing: -0.025em; font-variant-numeric: lining-nums; color: var(--sc-ink); }
.case--second .case__num { font-size: clamp(2.2rem, 1.7rem + 1.6vw, 3.2rem); }
.case__figlabel { font-size: 15px; color: var(--sc-ink-soft); }
.case__facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.case--second .case__facts { grid-template-columns: 1fr; }
.case__facts li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--sc-ink); }
.case__quote { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font: 400 1.2rem/1.45 var(--sc-font-display); font-style: italic; color: var(--sc-ink); }
.case__quote footer { margin-top: 10px; font: 500 14px/1.4 var(--sc-font-text); font-style: normal; color: var(--sc-ink-soft); }
.cases__foot { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.cases__note { max-width: 60ch; font-size: 14px; color: var(--sc-ink-soft); }
/* businesses variant: PES with its three-photo strip */
.case__strip { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.case__shot { overflow: hidden; border-radius: var(--sc-r-md); }
.case__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case__shot--1 { grid-row: 1 / span 2; }
.case__shot--1 img { aspect-ratio: 4 / 3.4; }
@media (max-width: 860px) {
  .case--lead, .case--second { grid-column: 1 / -1; }
  .case--second { margin-top: clamp(48px, 10vw, 72px); }
  .case__facts { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ films --
   Poster first; the <video> replaces it on click. 16:9, or 1:1 under 700px
   for a film that has a square cut. */
.film { position: relative; }
.film__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--sc-r-md);
  background: var(--green-950); box-shadow: var(--sc-e2);
}
@media (max-width: 699px) { .film--square-phone .film__frame { aspect-ratio: 1 / 1; } }
.film__play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: var(--green-900); }
.film__play picture, .film__play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__play:focus-visible { outline-offset: -4px; }
.film__cta {
  position: absolute; left: clamp(12px, 2vw, 22px); bottom: clamp(12px, 2vw, 22px);
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 7px;
  border-radius: var(--sc-r-sm); background: rgb(245 246 244 / 0.96); box-shadow: var(--sc-e2);
  font: 600 15px/1.2 var(--sc-font-text); color: var(--green-900); text-align: left;
  transition: transform 160ms var(--ease);
}
.film__btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--sc-r-sm); background: var(--brass); color: var(--brass-ink); }
.film__ico { width: 15px; height: 15px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .film__play:hover .film__cta { transform: translateY(-2px); } }
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; background: #04140e; }
.film.is-playing .film__play { display: none; }
.film__caption { margin-top: 12px; font-size: 14px; color: var(--sc-ink-soft); }

/* the film dialog (hero "Watch the 2-minute film") */
.filmdlg { width: min(1120px, 92vw); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.filmdlg::backdrop { background: rgb(6 26 18 / 0.88); }
.filmdlg[open] { animation: dlg-in 220ms var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.filmdlg__inner { position: relative; padding-top: 56px; }
.filmdlg__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--sc-r-md); background: #04140e; box-shadow: var(--sc-e3); }
@media (max-width: 699px) { .filmdlg__frame.is-square { aspect-ratio: 1 / 1; } }
.filmdlg__frame video { position: absolute; inset: 0; width: 100%; height: 100%; }
.filmdlg__close {
  position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgb(245 246 244 / 0.35); border-radius: var(--sc-r-sm); background: none; color: var(--porcelain);
  --sc-accent: var(--brass-on-dark);
}

/* --------------------------------------------------------------- founders -- */
.founders { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.founder { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.founder__photo { overflow: hidden; border-radius: var(--sc-r-sm); background: var(--green-900); }
.founder__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.founder--sm .founder__photo { width: 72px; height: 90px; }
.founder__name { font: 600 16px/1.3 var(--sc-font-text); color: var(--sc-ink); }
.founder__role { font-size: 14px; color: var(--sc-ink-soft); }
.founder__line a { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; font-size: 15px; color: var(--sc-ink); text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); text-underline-offset: 0.25em; }
.founder__line .ico { width: 15px; height: 15px; color: var(--sc-ink-soft); }
.founder__role + .founder__line { margin-top: 6px; }
.founders--lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.founders--lg .founder { grid-template-columns: 1fr; gap: 14px; align-items: start; }
.founders--lg .founder__photo { aspect-ratio: 4 / 5; border-radius: var(--sc-r-md); }
.founders--lg .founder__name { font: 500 1.35rem/1.2 var(--sc-font-display); letter-spacing: -0.01em; }

/* ---------------------------------------------------------- booking close --
   An actual input: the real calendar beside the founders' direct lines. */
.close { --sec-y: clamp(4.5rem, 8vw, 8.5rem); background-color: var(--green-900); }
.close__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr;
  grid-template-areas: "head cal" "steps cal" "people cal"; column-gap: clamp(32px, 5vw, 80px); align-items: start;
}
.close__head { grid-area: head; }
.close__head .lede { margin-top: var(--sc-5); color: var(--sc-ink-soft); }
.steps--close { grid-area: steps; margin-top: clamp(28px, 3vw, 40px); }
.close__cal { grid-area: cal; }
.close__people { grid-area: people; }
.close__people { min-width: 0; }
/* The two founders stack in the copy column: side by side they need about 560px
   and the column is under 500px at every desktop width, so they would run
   under the calendar. */
.close__founders { margin-top: clamp(28px, 3vw, 40px); padding-top: 24px; border-top: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
.close__founders .founder__text { min-width: 0; }
.close__now { margin-top: 24px; color: var(--sc-ink-soft); }
.close__now a { color: var(--sc-ink); text-underline-offset: 0.25em; white-space: nowrap; }
/* phones and tablets: the calendar straight after the steps; the direct lines after it */
@media (max-width: 900px) {
  .close__grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "head" "steps" "cal" "people"; }
  .close__cal { margin-top: 32px; }
}
@media (min-width: 700px) and (max-width: 900px) { .close__founders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cal {
  --sc-ink: var(--green-900); --sc-ink-soft: #5d6d64; --sc-accent: var(--brass-text); --sc-accent-ink: var(--porcelain);
  position: relative; height: 720px; overflow: hidden; border-radius: var(--sc-r-md);
  background: var(--white); color: var(--sc-ink); box-shadow: var(--sc-e3);
}
.cal .btn--primary { background: var(--brass); border-color: var(--brass-edge); }
.cal__widget { position: absolute; inset: 0; }
.cal__widget iframe { width: 100%; height: 100%; border: 0; }
.cal__fallback { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: var(--white); }
.cal__loading { font: 500 1.25rem/1.3 var(--sc-font-display); color: var(--sc-ink); }
.cal__note { font-size: 14px; color: var(--sc-ink-soft); }
.no-js .cal__loading, .cal.is-failed .cal__loading { display: none; }
.cal.is-loaded .cal__fallback { opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease), visibility 0s 300ms; }
@media (max-width: 700px) { .cal { height: 780px; } }

/* ------------------------------------------------------------- 404, stubs -- */
.notfound, .stub { min-height: 60vh; display: flex; align-items: center; }
.notfound .lede { margin-top: var(--sc-5); }
.notfound__cta { margin-top: var(--sc-6); }

/* ---------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .mn[open], .filmdlg[open] { animation: none; }
  .login { transition: opacity 120ms linear; transform: none; }
  .btn, .btn__ico, .faq__ico, .film__cta, .hd__chev { transition-duration: 1ms; }
}
