/* =====================================================================
   Dive In Digital — AI Systems site
   Design tokens from agency/brand/palette.md (dark scheme). One accent.
   ===================================================================== */

:root {
  /* DIDm palette: warm near-black ground, graphite surfaces, signal red as the system accent,
     amber as the human/decision accent. Semantic green stays for OK verdicts only. */
  --ink: #0B0A0B;
  --ink-2: #131214;
  --surface: #18171A;
  --surface-hi: #232125;
  --text: #F4F0EA;
  --muted: #B9B3AC;
  --slate: #7D7772;
  --line: #3B3739;
  --line-soft: rgba(185, 179, 172, 0.12);
  --accent: #E8362B;
  --accent-deep: #B7261D;
  --accent-light: #FF7A6E;
  --accent-glow: rgba(232, 54, 43, 0.35);
  --amber: #F5B800;
  --amber-light: #FFD35A;
  --amber-glow: rgba(245, 184, 0, 0.35);
  --green: #8FD18B;
  /* legacy aliases so nothing silently falls back */
  --cyan: var(--accent); --cyan-deep: var(--accent-deep); --cyan-light: var(--accent-light); --cyan-glow: var(--accent-glow); --gold: var(--amber);

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 11vw, 152px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 4px; }

/* ---------- Motion baseline (only when JS + motion allowed) ---------- */
html.motion [data-reveal] { opacity: 0; }
/* No CSS-declared translation on .w: GSAP folds any CSS transform into its px cache, which breaks yPercent tweens. GSAP sets the hidden state itself at init. */
.split .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w { display: inline-block; will-change: transform; }

/* ---------- Atmosphere ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
  background-size: 240px 240px;
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 640px; height: 640px; border-radius: 50%;
  pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(circle, rgba(232, 54, 43, 0.11) 0%, rgba(232, 54, 43, 0.04) 30%, transparent 62%);
  transform: translate(-50%, -50%); mix-blend-mode: screen;
  transition: opacity 0.6s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { html.motion .cursor-glow.is-on { opacity: 1; } }

.orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px); opacity: 0.55;
}
.orb--cyan { background: radial-gradient(circle, rgba(232, 54, 43, 0.55), transparent 70%); }
.orb--deep { background: radial-gradient(circle, rgba(120, 22, 16, 0.8), transparent 70%); }
.orb--gold { background: radial-gradient(circle, rgba(245, 184, 0, 0.28), transparent 70%); }

.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(185, 179, 172, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 179, 172, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--wide { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding: var(--section) 0; overflow: clip; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); max-width: 52ch; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head--center p { margin-inline: auto; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line-soft) 20%, var(--line-soft) 80%, transparent); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 20px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 10px rgba(232, 54, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 54, 43, 0); } }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(24, 23, 26, 0.7); border: 1px solid rgba(185, 179, 172, 0.16);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }

.h-display {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 7.4vw, 108px); line-height: 0.98; letter-spacing: -0.035em;
  text-wrap: balance;
}
.h-1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.h-2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.h-3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.2; letter-spacing: -0.015em; }
.lede { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.accent { color: var(--accent); }
.gradient-text {
  background: linear-gradient(90deg, #F4F0EA 0%, #FFD35A 45%, #E8362B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  transition: transform 0.5s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.4s;
  will-change: transform; white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; transition: transform 0.45s var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn--primary { background: var(--amber); color: #1A1206; box-shadow: 0 0 0 1px rgba(255, 211, 90, 0.35), 0 10px 40px -10px var(--amber-glow); }
.btn--primary:hover { background: var(--amber-light); box-shadow: 0 0 0 1px rgba(255, 211, 90, 0.5), 0 14px 50px -8px var(--amber-glow); }
.btn--ghost { color: var(--text); border: 1px solid rgba(185, 179, 172, 0.22); background: rgba(24, 23, 26, 0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgba(255, 122, 110, 0.5); background: rgba(24, 23, 26, 0.7); }
.btn--sm { padding: 12px 20px; font-size: 15px; }
.btn--play .ico { width: 20px; height: 20px; }
.btn--play:hover .ico { transform: none; }
/* inline outbound link inside body copy: the base reset kills colour and underline,
   so a link in a sentence needs this or it is invisible */
.link-inline { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.3s var(--ease-out), text-decoration-color 0.3s var(--ease-out); }
.link-inline:hover { color: var(--accent-light); text-decoration-color: var(--accent-light); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--amber-light); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1000;
  width: min(1280px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 14px 14px 22px; border-radius: 999px;
  background: rgba(11, 10, 11, 0.5); border: 1px solid rgba(185, 179, 172, 0.12);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out), background 0.4s, padding 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.nav.is-scrolled { top: 10px; width: min(1140px, 100% - 24px); background: rgba(11, 10, 11, 0.86); padding: 11px 11px 11px 18px; }
.nav.is-scrolled .wordmark .slogan { display: none; }
.nav.is-hidden { transform: translate(-50%, -140%); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark b { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
.brand .wordmark span.slogan { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 5px; white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) { .nav .wordmark .slogan { display: none; } }
.brand .wordmark span.slogan i { font-style: normal; color: var(--amber); }
@media (max-width: 480px) { .brand .wordmark span.slogan { font-size: 8.5px; letter-spacing: 0.06em; } }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 11px 16px; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--text); white-space: nowrap; transition: color 0.3s, background 0.3s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(185, 179, 172, 0.08); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(185, 179, 172, 0.16); position: relative; }
.nav-toggle span { position: absolute; left: 15px; right: 15px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.nav-toggle span:nth-child(1) { top: 18px; } .nav-toggle span:nth-child(2) { top: 23px; } .nav-toggle span:nth-child(3) { top: 28px; }
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 900; display: none; padding: 128px var(--gutter) 40px;
  background: rgba(11, 10, 11, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.mobile-menu.is-open { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(28px, 7vw, 40px); font-weight: 600; letter-spacing: -0.02em; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav .btn--primary.nav-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; padding-top: 120px; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: 0; transition: opacity 1.6s var(--ease-out); transform: scale(1.04); }
.hero-media.is-ready video, .hero-media.is-ready img { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 10, 11, 0.55) 0%, rgba(11, 10, 11, 0.25) 35%, rgba(11, 10, 11, 0.55) 70%, var(--ink) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(11, 10, 11, 0.55), transparent 60%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(48px, 6vw, 88px); }
.hero-content .pill { margin-bottom: 28px; }
.hero h1 { max-width: 15ch; }
/* The hero headline shares its row with three floating agent cards on the right.
   Measured at 1152, 1280, 1440 and 1728: at 15ch the first line runs about 100px
   under the Morning Brief card. 12ch clears it at every one of them. */
@media (min-width: 1024px) { .hero-content .h-display { max-width: 12ch; } }
.hero .lede { margin-top: 28px; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.hero-float { position: absolute; z-index: 2; pointer-events: none; }
.hero-float .glass { pointer-events: auto; min-width: 250px; padding: 14px 16px; }
.hero-float--a { right: 8%; top: 22%; }
.hero-float--b { right: 4%; top: 46%; }
.hero-float--c { right: 12%; top: 67%; }
@media (max-width: 1100px) { .hero-float--b { right: 4%; } .hero-float--c { display: none; } }
@media (max-width: 820px) { .hero-float { display: none; } }
.agent-line { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; }
.agent-line .who { color: var(--text); font-weight: 600; }
.agent-line .when { color: var(--slate); }
.agent-line .verdict { margin-left: auto; padding: 3px 8px; border-radius: 6px; font-size: 11px; letter-spacing: 0.08em; }
.verdict--ok { background: rgba(143, 209, 139, 0.14); color: var(--green); }
.verdict--attn { background: rgba(245, 184, 0, 0.16); color: var(--amber-light); }
.verdict--run { background: rgba(232, 54, 43, 0.14); color: var(--accent-light); }
.agent-sub { margin-top: 8px; font-size: 13px; color: var(--muted); }
.hero-stats { position: relative; z-index: 2; border-top: 1px solid var(--line-soft); }
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px 26px 0; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 24px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1; }
.stat b sup { font-size: 0.5em; vertical-align: top; margin-left: 2px; color: var(--accent-light); }
.stat > span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--slate); line-height: 1.45; }
@media (max-width: 860px) {
  .hero-stats .container { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line-soft); }
  .stat:nth-child(4) { border-top: 1px solid var(--line-soft); }
}
.scroll-cue { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border-radius: 14px; border: 1px solid rgba(185, 179, 172, 0.3); display: none; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent-light); animation: cue 2s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Glass ---------- */
.glass {
  position: relative; border-radius: var(--r-m);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(185, 179, 172, 0.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(35, 33, 37, 0.55), rgba(24, 23, 26, 0.75));
  border: 1px solid rgba(185, 179, 172, 0.1);
  transition: border-color 0.5s, transform 0.6s var(--ease-out), box-shadow 0.6s;
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(232, 54, 43, 0.22), transparent 45%);
  opacity: 0; transition: opacity 0.5s;
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(232, 54, 43, 0.08), transparent 40%);
  opacity: 0; transition: opacity 0.5s;
}
.card:hover { border-color: rgba(255, 122, 110, 0.28); box-shadow: 0 40px 100px -50px rgba(232, 54, 43, 0.45); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 3; }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: 26px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.marquee-label { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul { display: flex; align-items: center; gap: 0; padding-right: 0; }
.marquee-track li { display: inline-flex; align-items: center; gap: 22px; padding: 0 22px; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.02em; color: var(--muted); white-space: nowrap; }
.marquee-track li::after { content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); opacity: 0.7; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Problem ---------- */
.problem { overflow: hidden; }
.problem .big { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6.4vw, 92px); letter-spacing: -0.035em; line-height: 0.98; }
.problem .big .dim { color: var(--slate); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.problem-card { padding: 28px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.problem-card .tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.problem-card p { margin-top: 26px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--text); }
.problem-card p em { font-style: normal; color: var(--accent-light); }
.problem-quote { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; max-width: 880px; }
.problem-quote .mark { font-family: var(--font-display); font-size: 72px; line-height: 0.7; color: var(--accent); }
.problem-quote p { font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.3; }
.problem-quote span { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--slate); text-transform: uppercase; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } .problem-card { min-height: 0; } .problem-card p { margin-top: 16px; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(260px, auto); gap: 16px; }
.tile { padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.tile .media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.tile .media img, .tile .media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-out), opacity 0.8s; }
.tile:hover .media img, .tile:hover .media video { transform: scale(1.07); }
.tile .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 11, 0.1) 0%, rgba(11, 10, 11, 0.35) 45%, rgba(11, 10, 11, 0.92) 100%); }
.tile .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent-light); margin-bottom: auto; }
.tile h3 { margin-top: 18px; }
.tile p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 44ch; }
.tile--6 { grid-column: span 6; } .tile--4 { grid-column: span 4; } .tile--8 { grid-column: span 8; } .tile--12 { grid-column: span 12; }
.tile--tall { grid-row: span 2; min-height: 560px; }
@media (max-width: 1000px) { .tile--6, .tile--4, .tile--8 { grid-column: span 6; } .tile--tall { grid-row: span 1; min-height: 380px; } }
@media (max-width: 680px) { .tile--6, .tile--4, .tile--8, .tile--12 { grid-column: span 12; } .tile { min-height: 320px; } }

/* Diagram tiles */
.kb-diagram { position: absolute; left: 0; right: 0; top: 44px; height: 54%; z-index: 0; overflow: hidden; }
.kb-diagram svg { width: 100%; height: 100%; }
.kb-diagram::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 11, 0.95) 100%); }
.tile--kb { min-height: 460px; }
.ladder { position: absolute; top: 0; bottom: 0; left: 55%; right: 26px; z-index: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 26px 0 26px; align-items: end; }
.tile--ladder h3, .tile--ladder p { max-width: 50%; }
@media (max-width: 680px) { .ladder { display: none; } .tile--ladder h3, .tile--ladder p { max-width: none; } }
.ladder .step { border-radius: 10px 10px 0 0; background: linear-gradient(180deg, rgba(232, 54, 43, 0.45), rgba(232, 54, 43, 0.05)); border: 1px solid rgba(255, 122, 110, 0.25); border-bottom: 0; position: relative; }
.ladder .step span { position: absolute; top: 12px; left: 12px; right: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); }
.ladder .step:nth-child(1) { height: 34%; opacity: 0.55; } .ladder .step:nth-child(2) { height: 62%; opacity: 0.8; } .ladder .step:nth-child(3) { height: 100%; }
.ladder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 10, 11, 0.7) 100%); }

/* ---------- Sticky stack (how it runs) ---------- */
.stack { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.stack-left { position: sticky; top: 120px; }
.stack-left .clock { display: inline-flex; align-items: baseline; gap: 12px; margin-top: 36px; font-family: var(--font-mono); }
.stack-left .clock b { font-family: var(--font-display); font-size: clamp(48px, 6vw, 88px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stack-left .clock span { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.stack-progress { margin-top: 28px; height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.stack-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--amber)); transform-origin: left; }
.stack-legend { margin-top: 28px; display: grid; gap: 10px; }
.stack-legend li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: var(--slate); transition: color 0.4s; }
.stack-legend li i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.4s, box-shadow 0.4s; }
.stack-legend li.is-active { color: var(--text); }
.stack-legend li.is-active i { background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.stack-cards { display: grid; gap: 20px; }
.scard { position: sticky; top: 120px; padding: 30px; border-radius: var(--r-l); transform-origin: top center; will-change: transform, opacity; }
.scard .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scard .who { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light); }
.scard .who i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(232, 54, 43, 0.12); border: 1px solid rgba(232, 54, 43, 0.3); }
.scard .who i svg { width: 14px; height: 14px; }
.scard h3 { margin-top: 22px; font-size: clamp(22px, 2.2vw, 30px); }
.scard p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 56ch; }
.scard .meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(185, 179, 172, 0.07); border: 1px solid rgba(185, 179, 172, 0.12); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); }
.chip--never { border-color: rgba(245, 184, 0, 0.25); color: #FFD35A; background: rgba(245, 184, 0, 0.06); }
.scard .out { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: rgba(11, 10, 11, 0.55); border: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--muted); white-space: pre-wrap; }
.scard .out b { color: var(--text); font-weight: 600; }
.scard .out .ok { color: var(--green); } .scard .out .attn { color: var(--amber); }
@media (max-width: 900px) { .stack { grid-template-columns: 1fr; } .stack-left { position: relative; top: 0; } .stack-left .clock { display: none; } .stack-legend { display: none; } .scard { position: relative; top: 0; } }

/* ---------- Horizontal scroll (sectors) ---------- */
.hscroll { position: relative; }
.hscroll-pin { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; overflow: hidden; }
.hscroll-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.hscroll-progress { width: 180px; height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.hscroll-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hscroll-track { display: flex; gap: 20px; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-right: var(--gutter); will-change: transform; }
.sector { flex: 0 0 auto; width: min(520px, 82vw); min-height: 520px; padding: 28px; display: flex; flex-direction: column; }
.sector .media { position: absolute; inset: 0; z-index: 0; }
.sector .media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 1.2s var(--ease-out), opacity 0.8s; }
.sector:hover .media img { transform: scale(1.06); opacity: 0.7; }
.sector .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 11, 0.2) 0%, rgba(11, 10, 11, 0.75) 55%, rgba(11, 10, 11, 0.96) 100%); }
.sector .idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent-light); }
.sector h3 { margin-top: auto; font-size: clamp(24px, 2.4vw, 32px); }
.sector .who { margin-top: 6px; font-size: 14px; color: var(--slate); }
.sector p { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.sector ul { margin-top: 16px; display: grid; gap: 6px; }
.sector li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--text); }
.sector li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); opacity: 0.8; }
.sector .proof { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 12px; color: var(--slate); line-height: 1.6; }
.sector .proof b { color: var(--accent-light); font-weight: 500; }
@media (max-width: 900px) {
  .hscroll-pin { min-height: 0; display: block; }
  .hscroll-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .hscroll-track::-webkit-scrollbar { display: none; }
  .sector { scroll-snap-align: center; min-height: 460px; }
  .hscroll-progress { display: none; }
}

/* ---------- Scout ---------- */
.scout { position: relative; overflow: hidden; }
.scout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.scout-visual { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3.4; }
.scout-visual img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.scout-visual .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 10, 11, 0.85) 100%); }
.scout-visual .flag { position: absolute; left: 24px; bottom: 24px; right: 24px; padding: 16px; border-radius: 14px; }
.scout-visual .flag .row { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.scout-visual .flag .row b { color: var(--text); }
.scout-visual .flag .bars { margin-top: 12px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; height: 54px; }
.scout-visual .flag .bars i { display: block; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent), rgba(232, 54, 43, 0.25)); }
.scout-visual .flag .bars i.dip { background: linear-gradient(180deg, var(--amber), rgba(245, 184, 0, 0.25)); box-shadow: 0 0 18px rgba(245, 184, 0, 0.45); }
.scout-visual .flag .note { margin-top: 10px; font-size: 12.5px; color: var(--slate); font-family: var(--font-mono); }
.scout-copy .lede { margin-top: 22px; }
.scout-points { margin-top: 28px; display: grid; gap: 14px; }
.scout-points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.scout-points li i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(232, 54, 43, 0.1); border: 1px solid rgba(232, 54, 43, 0.25); color: var(--accent-light); }
.scout-points li i svg { width: 18px; height: 18px; }
.scout-points b { display: block; font-weight: 600; font-size: 16.5px; }
.scout-points span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.audio { margin-top: 30px; display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 14px; border-radius: 16px; }
.audio .play { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--amber); color: #1A1206; transition: transform 0.4s var(--ease-out), background 0.3s; }
.audio .play:hover { transform: scale(1.06); background: var(--amber-light); }
.audio .play svg { width: 18px; height: 18px; }
.audio .play .i-pause { display: none; }
.audio.is-playing .play .i-play { display: none; }
.audio.is-playing .play .i-pause { display: block; }
.audio .info { min-width: 0; flex: 1; }
.audio .info b { display: block; font-size: 14.5px; }
.audio .info span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--slate); font-family: var(--font-mono); }
.audio .bars { display: flex; align-items: center; gap: 3px; height: 28px; }
.audio .bars i { width: 3px; height: 6px; border-radius: 2px; background: var(--accent); opacity: 0.5; transition: height 0.2s; }
.audio.is-playing .bars i { animation: eq 0.9s ease-in-out infinite; opacity: 1; }
.audio.is-playing .bars i:nth-child(2n) { animation-duration: 1.1s; } .audio.is-playing .bars i:nth-child(3n) { animation-duration: 0.7s; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 24px; } }
.audio .time { font-family: var(--font-mono); font-size: 12px; color: var(--slate); min-width: 44px; text-align: right; }
.waves { margin-top: clamp(56px, 7vw, 96px); }
.waves-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.waves-track::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: var(--line-soft); }
.waves-line { position: absolute; left: 0; top: 19px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--amber)); transform: scaleX(0); transform-origin: left; }
.wave { position: relative; padding-top: 48px; }
.wave .n { position: absolute; top: 4px; left: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); transition: border-color 0.4s, color 0.4s, box-shadow 0.4s; }
.wave.is-lit .n { border-color: var(--accent); color: var(--accent-light); box-shadow: 0 0 20px rgba(232, 54, 43, 0.35); }
.wave b { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }
.wave .who { display: block; margin-top: 2px; font-size: 13px; color: var(--accent-light); font-family: var(--font-mono); }
.wave p { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.wave .proof { margin-top: 10px; font-size: 12.5px; color: var(--slate); font-family: var(--font-mono); line-height: 1.5; }
.never { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px 48px; align-items: start; padding: 28px; border-radius: var(--r-l); }
.never ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.never li { position: relative; padding-left: 26px; font-size: 15px; color: var(--muted); }
.never li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(245, 184, 0, 0.5); }
.never li::after { content: ""; position: absolute; left: 4px; top: 13.5px; width: 6px; height: 1.5px; background: #FFD35A; }
@media (max-width: 960px) { .scout-grid { grid-template-columns: 1fr; } .waves-track { grid-template-columns: 1fr; gap: 24px; } .waves-track::before, .waves-line { display: none; } .wave { padding-top: 0; padding-left: 48px; } .wave .n { top: 0; } .never { grid-template-columns: 1fr; } .never ul { grid-template-columns: 1fr; } }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rung { padding: 28px; min-height: 300px; display: flex; flex-direction: column; }
.rung .lvl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); }
.rung .meter { margin-top: 18px; height: 6px; border-radius: 3px; background: rgba(185, 179, 172, 0.1); overflow: hidden; }
.rung .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--amber)); }
.rung h3 { margin-top: 22px; }
.rung p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.rung .foot { margin-top: auto; padding-top: 20px; font-family: var(--font-mono); font-size: 12.5px; color: var(--slate); line-height: 1.6; }
.rules { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule { padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.rule i { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(232, 54, 43, 0.1); border: 1px solid rgba(232, 54, 43, 0.25); color: var(--accent-light); }
.rule i svg { width: 16px; height: 16px; }
.rule b { display: block; font-size: 15.5px; }
.rule span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 960px) { .trust-grid, .rules { grid-template-columns: 1fr; } .rung { min-height: 0; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { padding: 28px 26px; min-height: 380px; display: flex; flex-direction: column; }
.step-card .step-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.step-card .idx { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--slate); padding-top: 6px; }
.step-card .n { font-family: var(--font-display); font-size: 88px; font-weight: 700; letter-spacing: -0.04em; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 122, 110, 0.7); }
.step-card h3 { margin-top: auto; padding-top: 36px; }
.step-card h3::first-letter { color: var(--amber); }
.step-card p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.step-card .dur { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); }
@media (max-width: 1100px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process { grid-template-columns: 1fr; } .step-card { min-height: 0; } .step-card h3 { padding-top: 20px; } }

/* ---------- Guide ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.guide .lede { margin-top: 22px; }
.creds { margin-top: 28px; display: grid; gap: 12px; }
.creds li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; }
.creds li i { flex: none; width: 10px; height: 10px; margin-top: 7px; background: var(--accent); transform: rotate(45deg); }
.creds li b { font-weight: 600; }
.creds li span { color: var(--muted); font-size: 15px; }
.owners { display: grid; gap: 14px; }
.owner { padding: 20px 22px; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.owner .mono-tile { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; color: var(--ink); background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
/* the initial gradients only dress the tiles that still fall back to initials */
.owner:nth-child(2) .mono-tile:not(.mono-tile--photo) { background: linear-gradient(135deg, #D9D2CA, #8E877F); }
.owner:nth-child(3) .mono-tile:not(.mono-tile--photo) { background: linear-gradient(135deg, var(--amber-light), var(--amber)); }
/* photo tile: same box, the portrait fills it and a hairline ring ties it to the palette */
.owner .mono-tile--photo { background: var(--surface-hi); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(232, 54, 43, 0.42); }
.owner .mono-tile--photo picture { display: block; width: 100%; height: 100%; border-radius: inherit; }
.owner .mono-tile--photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.owner b { display: block; font-size: 17px; }
.owner span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
.owners .dogfood { padding: 22px; border-radius: var(--r-m); border: 1px dashed rgba(255, 122, 110, 0.35); color: var(--muted); font-size: 15px; line-height: 1.55; }
.owners .dogfood b { color: var(--text); }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } }

/* ---------- Outcome ---------- */
.outcome { position: relative; overflow: hidden; }
.outcome .container { position: relative; z-index: 2; }
.outcome-bg { position: absolute; inset: 0; z-index: 0; }
.outcome-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; will-change: transform; }
.outcome-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 10, 11, 0.35) 40%, rgba(11, 10, 11, 0.6) 100%); }
.outcome-list { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; max-width: 980px; }
.outcome-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(185, 179, 172, 0.16); font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -0.015em; line-height: 1.3; }
.outcome-list li i { flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); }
.outcome-list li i svg { width: 12px; height: 12px; }
.stakes { margin-top: clamp(36px, 5vw, 56px); max-width: 60ch; color: var(--muted); font-size: 16px; }
.stakes b { color: var(--text); }
@media (max-width: 800px) { .outcome-list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin-inline: auto; }
.faq-item { border-top: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.015em; transition: color 0.3s; }
.faq-q:hover { color: var(--accent-light); }
.faq-q .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform 0.5s var(--ease-out), border-color 0.3s, background 0.3s; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--text); transform: translate(-50%, -50%); }
.faq-q .plus::before { width: 12px; height: 1.5px; } .faq-q .plus::after { width: 1.5px; height: 12px; transition: opacity 0.3s; }
.faq-item.is-open .faq-q .plus { transform: rotate(180deg); border-color: var(--accent); background: rgba(232, 54, 43, 0.12); }
.faq-item.is-open .faq-q .plus::after { opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-out); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 4px 26px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 70ch; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); }
.contact-card .lede { margin-top: 20px; }
.contact-meta { margin-top: 28px; display: grid; gap: 12px; font-size: 15px; color: var(--muted); }
.contact-meta a { color: var(--text); font-weight: 500; }
.contact-meta a:hover { color: var(--accent-light); }
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(185, 179, 172, 0.16); background: rgba(11, 10, 11, 0.6); color: var(--text); font: inherit; font-size: 15px; transition: border-color 0.3s, box-shadow 0.3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 54, 43, 0.14); }
.field textarea { min-height: 120px; resize: vertical; }
.form .fine { font-size: 13px; color: var(--slate); line-height: 1.5; }
.form-note { margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: rgba(143, 209, 139, 0.08); border: 1px solid rgba(143, 209, 139, 0.25); color: var(--green); font-size: 14px; display: none; }
.form.is-sent .form-note { display: block; }
@media (max-width: 900px) { .contact-card { grid-template-columns: 1fr; } .form .row2 { grid-template-columns: 1fr; } }

/* ---------- WPForms, wearing the site's clothes ----------
   The contact form is a WPForms form now, and WPForms ships its own stylesheet aimed
   at light themes: white inputs, blue focus rings, 13px grey labels. Dropped into this
   page unstyled it reads as a third-party widget someone pasted in, which is exactly
   the impression a contact form must not give. These rules mirror .field above so the
   plugin form and the static fallback are indistinguishable.
   Scoped to .didm-wpforms so nothing here can leak into wp-admin. */
.didm-wpforms .wpforms-container, .didm-wpforms .wpforms-container-full { margin: 0; }
/* The grid goes on .wpforms-field-container, not on the form: WPForms nests the
   fields one level below <form>, so a grid on the form has two children — the field
   container and the submit container — and every input ends up half width. Verified
   against the plugin's real markup shape rather than assumed. If a WPForms version
   ever drops that wrapper the fields simply stack, which is the safe direction. */
.didm-wpforms .wpforms-form { display: block; }
.didm-wpforms .wpforms-field-container { display: grid; gap: 14px; }
.didm-wpforms .wpforms-field { padding: 0; }
.didm-wpforms .wpforms-field-label { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.didm-wpforms .wpforms-required-label { color: var(--accent-light); }
.didm-wpforms input[type="text"], .didm-wpforms input[type="email"], .didm-wpforms textarea, .didm-wpforms select {
  width: 100%; max-width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(185, 179, 172, 0.16); background: rgba(11, 10, 11, 0.6);
  color: var(--text); font: inherit; font-size: 15px; box-shadow: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.didm-wpforms input[type="text"]:focus, .didm-wpforms input[type="email"]:focus, .didm-wpforms textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 54, 43, 0.14);
}
.didm-wpforms textarea { min-height: 120px; resize: vertical; }
.didm-wpforms ::placeholder { color: rgba(185, 179, 172, 0.45); }
/* The two short fields share a row, matching the static form's .row2. The css class is
   set on the fields by deploy/wpforms-setup.php. */
@media (min-width: 640px) {
  .didm-wpforms .wpforms-field-container { grid-template-columns: 1fr 1fr; }
  .didm-wpforms .wpforms-field { grid-column: 1 / -1; }
  .didm-wpforms .didm-half { grid-column: span 1; }
}
.didm-wpforms .wpforms-submit-container { padding: 14px 0 0; }
.didm-wpforms button.wpforms-submit {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border: none;
  border-radius: 999px; background: var(--amber); color: #1A1206; font-family: inherit;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.3s, box-shadow 0.3s;
  box-shadow: 0 14px 40px -18px rgba(245, 184, 0, 0.75);
}
.didm-wpforms button.wpforms-submit:hover { background: var(--amber-light); transform: translateY(-1px); }
.didm-wpforms .wpforms-error, .didm-wpforms label.wpforms-error { color: var(--accent-light); font-size: 13px; margin-top: 6px; }
.didm-wpforms input.wpforms-error, .didm-wpforms textarea.wpforms-error { border-color: var(--accent); }
.didm-wpforms .wpforms-confirmation-container-full, .didm-wpforms div[submit-success] > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
  margin: 0; padding: 16px 18px; border-radius: 12px;
  background: rgba(143, 209, 139, 0.08); border: 1px solid rgba(143, 209, 139, 0.25); color: var(--green);
}
.didm-wpforms .wpforms-confirmation-container-full p { margin: 0; color: inherit; }
/* WPForms' own recaptcha/honeypot rows have no label and must not eat a grid cell. */
.didm-wpforms .wpforms-field-hp, .didm-wpforms .wpforms-recaptcha-container:empty { display: none; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 72px 0 32px; border-top: 1px solid var(--line-soft); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; }
.footer li { margin-bottom: 10px; font-size: 15px; color: var(--muted); }
.footer li a:hover { color: var(--accent-light); }
.footer .about { color: var(--muted); font-size: 15px; max-width: 40ch; margin-top: 16px; line-height: 1.55; }
.footer-word { margin-top: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(72px, 19vw, 300px); letter-spacing: -0.06em; line-height: 0.85; color: transparent; -webkit-text-stroke: 1px rgba(185, 179, 172, 0.18); white-space: nowrap; user-select: none; }
.footer-word span { display: inline-block; }
/* the slogan sits against the wordmark, not across the footer from it: space-between
   left ~700px of dead air between them and read as a layout accident */
.footer-brandline { margin-top: 64px; display: flex; align-items: flex-end; justify-content: flex-start; gap: clamp(24px, 3vw, 52px); }
.footer-slogan { display: grid; gap: 0.18em; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3.1vw, 46px); letter-spacing: 0.06em; line-height: 1; text-transform: uppercase; color: var(--accent); padding-bottom: 0.12em; }
/* the four initials stay a step lighter so D-I-D-M still reads out of the stack;
   both tones clear 4.5:1 on the footer ink, so the whole block is legible, not just decorative */
.footer-slogan li i { font-style: normal; color: var(--accent-light); }
@media (max-width: 900px) { .footer-brandline { flex-direction: column; align-items: flex-start; gap: 24px; } }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--slate); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.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; }
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; }
}

/* ---------- DIDm brand marks ---------- */
.brand .wordmark b .m { color: var(--amber); }
.footer-word .m { -webkit-text-stroke-color: rgba(245, 184, 0, 0.55); }
.brand svg { width: 36px; height: 36px; }

/* =====================================================================
   Smoke + orange theme (body.theme-smoke, or ?theme=smoke).
   Medium smoke-grey page ground with near-black cards floating on it and
   bright orange as the signal. Two token layers, because on a mid grey
   ground only near-black and white carry text contrast: the body sets the
   ON-GROUND set, and each dark island re-declares --text/--muted/--slate
   so every component inside inherits the right pair. Orange is never small
   text on the grey; it is fills, dots, rules and glows.
   ===================================================================== */
body.theme-smoke {
  --ink: #8F8D88;          /* page ground: medium smoke grey */
  --ink-2: #9B9994;
  --surface: #1B1A18;      /* the dark islands */
  --surface-hi: #262421;
  --text: #131210;         /* on the grey ground */
  --muted: #3B3934;
  --slate: #5A574F;
  --line: #6E6B64;
  --line-soft: rgba(19, 18, 16, 0.18);
  --accent: #FF6A13;
  --accent-deep: #C2410C;
  --accent-light: #FF9A5A;
  --accent-glow: rgba(255, 106, 19, 0.38);
  --amber: #F5B800;
  --amber-light: #FFD35A;
  --amber-glow: rgba(245, 184, 0, 0.35);
  --green: #2F7D46;
}
/* --- the dark islands: cards, glass, hero, outcome, nav, footer --- */
body.theme-smoke .nav,
body.theme-smoke .mobile-menu,
body.theme-smoke .hero,
body.theme-smoke .card,
body.theme-smoke .glass,
body.theme-smoke .outcome,
body.theme-smoke .footer {
  /* color must be re-declared here, not only the token: an element with no color
     declaration inherits body's already-computed near-black, so redefining --text
     alone would leave headings invisible on the dark islands. */
  color: var(--text);
  --text: #F4F1EC;
  --muted: #B5AFA6;
  --slate: #8A847C;
  --line: #3A3733;
  --line-soft: rgba(244, 241, 236, 0.12);
  --green: #8FD18B;
}
body.theme-smoke { background: var(--ink); }
body.theme-smoke .grain { opacity: 0.05; mix-blend-mode: multiply; }
body.theme-smoke .cursor-glow { background: radial-gradient(circle, rgba(255, 106, 19, 0.18) 0%, rgba(255, 106, 19, 0.06) 30%, transparent 62%); mix-blend-mode: multiply; }
body.theme-smoke .orb--cyan { background: radial-gradient(circle, rgba(255, 106, 19, 0.40), transparent 70%); }
body.theme-smoke .orb--deep { background: radial-gradient(circle, rgba(120, 52, 10, 0.30), transparent 70%); }
body.theme-smoke .orb--gold { background: radial-gradient(circle, rgba(245, 184, 0, 0.22), transparent 70%); }
body.theme-smoke .grid-bg { background-image: linear-gradient(rgba(19, 18, 16, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 18, 16, 0.07) 1px, transparent 1px); }
body.theme-smoke ::selection { background: var(--accent); color: #131210; }

/* on-ground type: orange is the dot and the rule, never the small text */
body.theme-smoke .eyebrow { color: var(--text); }
body.theme-smoke .eyebrow .dot { background: var(--accent); }
body.theme-smoke .accent { color: #131210; box-shadow: inset 0 -0.28em 0 rgba(255, 106, 19, 0.55); }
body.theme-smoke .problem .big .dim { color: #5A574F; }
body.theme-smoke .marquee-track li::after { background: var(--accent); opacity: 1; }
body.theme-smoke .sector li::before, body.theme-smoke .creds li i { background: var(--accent); }
body.theme-smoke .stat b sup { color: var(--accent-deep); }
body.theme-smoke .wave .n { background: var(--surface); border-color: #3A3733; color: #B5AFA6; }
body.theme-smoke .wave.is-lit .n { border-color: var(--accent); color: var(--accent-light); }
body.theme-smoke .wave .who { color: var(--accent-deep); }
body.theme-smoke .waves-line { background: linear-gradient(90deg, var(--accent), var(--amber)); }
body.theme-smoke .faq-q:hover { color: var(--accent-deep); }
body.theme-smoke .faq-q .plus { border-color: rgba(19, 18, 16, 0.28); }
body.theme-smoke .faq-q .plus::before, body.theme-smoke .faq-q .plus::after { background: #131210; }
body.theme-smoke .faq-item.is-open .faq-q .plus { background: var(--accent); border-color: var(--accent); }
body.theme-smoke .faq-item.is-open .faq-q .plus::before { background: #131210; }

/* buttons: solid orange CTA with near-black type is the loudest thing on the page */
body.theme-smoke .btn--primary { background: var(--accent); color: #131210; box-shadow: 0 0 0 1px rgba(19, 18, 16, 0.18), 0 12px 34px -14px rgba(255, 106, 19, 0.9); }
body.theme-smoke .btn--primary:hover { background: #FF823A; }
body.theme-smoke .hero .btn--ghost, body.theme-smoke .mobile-menu .btn--ghost { background: rgba(19, 18, 16, 0.4); border-color: rgba(244, 241, 236, 0.28); }
body.theme-smoke .hero .btn--ghost:hover { border-color: var(--accent-light); background: rgba(19, 18, 16, 0.7); }

/* nav + hero */
body.theme-smoke .nav { background: rgba(19, 18, 16, 0.72); border-color: rgba(244, 241, 236, 0.14); }
body.theme-smoke .nav.is-scrolled { background: rgba(19, 18, 16, 0.9); }
body.theme-smoke .nav-links a:hover, body.theme-smoke .nav-links a.is-active { background: rgba(244, 241, 236, 0.1); }
body.theme-smoke .nav-toggle { border-color: rgba(244, 241, 236, 0.22); }
body.theme-smoke .mobile-menu { background: rgba(19, 18, 16, 0.95); }
body.theme-smoke .pill { background: rgba(19, 18, 16, 0.62); border-color: rgba(244, 241, 236, 0.18); }
body.theme-smoke .hero-media video, body.theme-smoke .hero-media img { filter: hue-rotate(20deg) saturate(1.12); }
body.theme-smoke .hero-media::after { background: linear-gradient(180deg, rgba(19, 18, 16, 0.55) 0%, rgba(19, 18, 16, 0.3) 35%, rgba(19, 18, 16, 0.65) 70%, #131210 100%), radial-gradient(ellipse at 20% 50%, rgba(19, 18, 16, 0.55), transparent 60%); }
body.theme-smoke .hero { background: #131210; }

/* cards and glass */
body.theme-smoke .glass { background: linear-gradient(180deg, rgba(38, 36, 33, 0.92), rgba(27, 26, 24, 0.88)); border-color: rgba(244, 241, 236, 0.12); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.7); }
body.theme-smoke .card { background: linear-gradient(180deg, #262421, #1B1A18); border-color: rgba(19, 18, 16, 0.5); box-shadow: 0 20px 50px -34px rgba(0, 0, 0, 0.65); }
body.theme-smoke .card:hover { border-color: rgba(255, 106, 19, 0.55); box-shadow: 0 36px 80px -44px rgba(255, 106, 19, 0.5); }
body.theme-smoke .card::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 106, 19, 0.3), transparent 45%); }
body.theme-smoke .card::after { background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 106, 19, 0.1), transparent 40%); }
body.theme-smoke .tile .media::after { background: linear-gradient(180deg, rgba(27, 26, 24, 0.1) 0%, rgba(27, 26, 24, 0.4) 45%, rgba(27, 26, 24, 0.95) 100%); }
body.theme-smoke .sector .media::after { background: linear-gradient(180deg, rgba(27, 26, 24, 0.25) 0%, rgba(27, 26, 24, 0.8) 55%, rgba(27, 26, 24, 0.97) 100%); }
body.theme-smoke .tile .media img, body.theme-smoke .tile .media video, body.theme-smoke .sector .media img, body.theme-smoke .outcome-bg img { filter: hue-rotate(20deg) saturate(1.12); }
/* the Scout still is already amber, the human accent in both themes: rotating it would push the line to yellow-green */
body.theme-smoke .scout-visual img { filter: saturate(1.05); }
/* the owner portraits are deliberately absent from the smoke media filters above:
   hue-rotate on a face reads as a colour cast, not a house look. Leave them unfiltered. */
body.theme-smoke .tile .num, body.theme-smoke .sector .idx, body.theme-smoke .rung .lvl, body.theme-smoke .scard .who, body.theme-smoke .step-card .dur, body.theme-smoke .sector .proof b { color: var(--accent-light); }
body.theme-smoke .scard .who i { background: rgba(255, 106, 19, 0.14); border-color: rgba(255, 106, 19, 0.35); }
body.theme-smoke .scard .out { background: rgba(19, 18, 16, 0.6); }
body.theme-smoke .rule i, body.theme-smoke .scout-points li i { background: rgba(255, 106, 19, 0.12); border-color: rgba(255, 106, 19, 0.3); color: var(--accent-light); }
body.theme-smoke .rung .meter { background: rgba(244, 241, 236, 0.12); }
body.theme-smoke .step-card .n { -webkit-text-stroke: 1.5px rgba(255, 154, 90, 0.75); }
body.theme-smoke .ladder .step { background: linear-gradient(180deg, rgba(255, 106, 19, 0.5), rgba(255, 106, 19, 0.05)); border-color: rgba(255, 154, 90, 0.3); }
body.theme-smoke .ladder .step span { color: var(--accent-light); }
body.theme-smoke .ladder::after { background: linear-gradient(180deg, transparent 40%, rgba(27, 26, 24, 0.8) 100%); }
body.theme-smoke .kb-diagram::after { background: linear-gradient(180deg, transparent 55%, rgba(27, 26, 24, 0.96) 100%); }
body.theme-smoke .kb-diagram path { stroke: rgba(255, 106, 19, 0.4); }
body.theme-smoke .kb-diagram .kb-nodes rect { fill: #1B1A18; stroke: rgba(255, 154, 90, 0.55); }
body.theme-smoke .kb-diagram circle[r="26"] { fill: rgba(255, 106, 19, 0.2); stroke: var(--accent); }
body.theme-smoke .kb-diagram circle[r="8"] { fill: var(--accent-light); }
body.theme-smoke .kb-diagram .kb-pulse { stroke: var(--accent); }
body.theme-smoke .scout-visual .flag .bars i { background: linear-gradient(180deg, var(--accent), rgba(255, 106, 19, 0.25)); }
body.theme-smoke .field input, body.theme-smoke .field textarea { background: rgba(19, 18, 16, 0.7); border-color: rgba(244, 241, 236, 0.18); }
body.theme-smoke .field input:focus, body.theme-smoke .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 19, 0.2); }
body.theme-smoke .owner .mono-tile:not(.mono-tile--photo) { color: #131210; background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
body.theme-smoke .owner .mono-tile--photo { box-shadow: inset 0 0 0 1px rgba(255, 106, 19, 0.5); }
body.theme-smoke .owners .dogfood { border-color: rgba(255, 154, 90, 0.4); }
body.theme-smoke .verdict--run { background: rgba(255, 106, 19, 0.16); color: var(--accent-light); }
body.theme-smoke .audio .bars i { background: var(--accent); }
body.theme-smoke .audio .play { background: var(--amber); color: #131210; }

/* outcome band: the page drops back to dark, then returns to smoke */
body.theme-smoke .outcome-bg img { opacity: 0.45; }
body.theme-smoke .outcome-bg::after { background: linear-gradient(180deg, #8F8D88 0%, rgba(19, 18, 16, 0.82) 18%, rgba(19, 18, 16, 0.92) 82%, #8F8D88 100%); }
body.theme-smoke .outcome-list li { border-top-color: rgba(244, 241, 236, 0.18); }
body.theme-smoke .outcome-list li i { background: var(--accent); color: #131210; }

/* footer: the closing dark band */
body.theme-smoke .footer { background: #131210; border-top: 0; }
body.theme-smoke .footer-word { -webkit-text-stroke-color: rgba(244, 241, 236, 0.2); }
body.theme-smoke .footer-word .m { -webkit-text-stroke-color: rgba(255, 106, 19, 0.75); }
body.theme-smoke .footer-slogan { color: var(--accent); }
body.theme-smoke .footer-slogan li i { color: var(--accent-light); }
body.theme-smoke .brand .wordmark b .m, body.theme-smoke .brand .wordmark span.slogan i { color: var(--accent); }
body.theme-smoke .brand svg polygon[fill="#E8362B"] { fill: var(--accent); }

/* the ground stays a clean grey: warm orbs bloom only inside the dark islands */
body.theme-smoke .orb { opacity: 0.22; }
body.theme-smoke .hero .orb, body.theme-smoke .outcome .orb { opacity: 0.55; }
body.theme-smoke .brand svg polygon { fill: var(--accent); }
body.theme-smoke .brand svg rect { fill: var(--amber); }

/* =====================================================================
   Industry pages (industries/*.html, and the WordPress partials built
   from the same source). Generated markup — see build_industries.py.
   Everything here reuses the site's tokens; the only new idea is the
   status chip, which has to read as a fact rather than a badge.
   ===================================================================== */
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-bottom: 26px; }
.crumbs a { color: var(--slate); transition: color 0.3s; }
.crumbs a:hover { color: var(--accent-light); }
.crumbs b { color: var(--muted); font-weight: 500; }

.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.status-chip svg { width: 14px; height: 14px; }
.status-chip--running { background: rgba(143, 209, 139, 0.13); color: var(--green); border: 1px solid rgba(143, 209, 139, 0.3); }
.status-chip--designed { background: rgba(245, 184, 0, 0.12); color: var(--amber-light); border: 1px solid rgba(245, 184, 0, 0.3); }
.status-note { margin-top: 18px; max-width: 60ch; font-size: 14.5px; line-height: 1.55; color: var(--slate); border-left: 2px solid var(--line-soft); padding-left: 14px; }

.ind-hero { position: relative; min-height: 76svh; display: grid; align-items: end; overflow: hidden; padding: 190px 0 clamp(48px, 6vw, 88px); }
.ind-hero-media { position: absolute; inset: 0; z-index: 0; }
.ind-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.ind-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 11, 0.82) 0%, rgba(11, 10, 11, 0.6) 40%, rgba(11, 10, 11, 0.94) 100%); }
.ind-hero-content { position: relative; z-index: 2; }
.ind-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 22px; }
.ind-hero-top .idx { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; color: var(--accent-light); }
.ind-hero h1 { max-width: 17ch; }
.ind-hero .lede { margin-top: 26px; }
.ind-who { margin-top: 14px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--slate); }
.ind-hero .hero-actions { margin-top: 34px; }

.ind-now-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ind-now-copy { margin-top: 20px; font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 26px); line-height: 1.4; letter-spacing: -0.02em; color: var(--text); max-width: 46ch; }
.ind-systems { padding: 24px; }
.ind-systems p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ind-systems .foot { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--slate); }
@media (max-width: 900px) { .ind-now-grid { grid-template-columns: 1fr; } }

.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.agent-card { padding: 26px; }
.agent-card .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent-light); }
.agent-card h3 { margin-top: 12px; }
.agent-card p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 980px) { .agent-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .agent-grid { grid-template-columns: 1fr; } }

.ind-brief-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.ind-brief .audio { max-width: 560px; }
.audio--pending { padding: 18px; }
.audio--pending .info b { font-size: 15px; }
.ind-transcript { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; }
.ind-transcript .mark { font-family: var(--font-display); font-size: 66px; line-height: 0.7; color: var(--accent); }
.ind-transcript p { font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.62; color: var(--muted); }
.ind-transcript cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
@media (max-width: 900px) { .ind-brief-grid { grid-template-columns: 1fr; } }

.ind-proof { margin-top: 28px; display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: baseline; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.ind-proof b { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); font-weight: 500; }
.ind-proof span { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 72ch; }
@media (max-width: 700px) { .ind-proof { grid-template-columns: 1fr; gap: 8px; } }

.rail { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rail-card { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--r-m); border: 1px solid rgba(185, 179, 172, 0.1); background: rgba(35, 33, 37, 0.4); transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease-out); }
.rail-card:hover { border-color: rgba(255, 122, 110, 0.35); background: rgba(35, 33, 37, 0.75); transform: translateY(-3px); }
.rail-card .idx { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--slate); }
.rail-card b { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 900px) { .rail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rail { grid-template-columns: 1fr; } }

.st { justify-self: start; white-space: nowrap; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 5px; }
.st--running { background: rgba(143, 209, 139, 0.14); color: var(--green); }
.st--designed { background: rgba(245, 184, 0, 0.14); color: var(--amber-light); }

.ind-cta-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-l); }
.ind-cta-box .lede { margin-top: 14px; }
@media (max-width: 820px) { .ind-cta-box { grid-template-columns: 1fr; } .ind-cta-box .btn { justify-self: start; } }

/* ---------- Industries hub ---------- */
.hub-head-section { padding-top: 186px; padding-bottom: calc(var(--section) * 0.45); }
.hub-head-section h1 { max-width: 16ch; }
.hub-head { align-items: start; margin-bottom: 0; }
.hub-head .lede + .lede { margin-top: 18px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hub-card { position: relative; min-height: 320px; padding: 28px; display: flex; flex-direction: column; }
.hub-card .media { position: absolute; inset: 0; z-index: 0; }
.hub-card .media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; transition: transform 1.2s var(--ease-out), opacity 0.8s; }
.hub-card:hover .media img { transform: scale(1.05); opacity: 0.55; }
.hub-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 11, 0.35) 0%, rgba(11, 10, 11, 0.8) 55%, rgba(11, 10, 11, 0.96) 100%); }
.hub-card .idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent-light); }
.hub-card h3 { margin-top: auto; padding-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -0.02em; }
.hub-card .who { margin-top: 8px; font-size: 14px; color: var(--slate); }
.hub-card .st { margin-top: 16px; }
.hub-card .go { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--amber-light); }
.hub-card .go svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.hub-card:hover .go svg { transform: translateX(4px); }
@media (max-width: 820px) { .hub-grid { grid-template-columns: 1fr; } .hub-card { min-height: 280px; } }

/* ---------- The ten-industry index on the home page ----------
   Ten is a list, not a carousel: the pinned horizontal rail this replaced
   showed three at a time and hid the other seven behind four screens of
   scrolling. A 5-up grid answers "which industries do you work with" in
   one look, and the thumbnail keeps it from reading as a table. */
.ind-index { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ind-tile { padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 9px; min-height: 230px; border-radius: var(--r-m); }
/* An icon, not a photograph. Ten abstract renders at thumbnail size read as ten
   near-identical smudges and said nothing about the industry; a pair of scales says
   "attorneys" before the label is read. The icon sits BESIDE the name rather than
   replacing it — swapping the text for a picture would throw away the keyword. */
.ind-tile-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: rgba(232, 54, 43, 0.1); border: 1px solid rgba(232, 54, 43, 0.26); color: var(--accent-light); transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease-out); }
.ind-tile-icon svg { width: 24px; height: 24px; }
.ind-tile:hover .ind-tile-icon { background: rgba(232, 54, 43, 0.18); border-color: rgba(255, 122, 110, 0.5); transform: translateY(-2px); }
.ind-tile .idx { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--accent-light); margin-top: 3px; }
.ind-tile b { font-family: var(--font-display); font-weight: 600; font-size: 17.5px; line-height: 1.15; letter-spacing: -0.015em; }
.ind-tile .who { font-size: 13px; line-height: 1.45; color: var(--slate); margin-bottom: 12px; }
.ind-tile .st { margin-top: auto; align-self: start; }
.ind-index-more { margin-top: 28px; }
@media (max-width: 1180px) { .ind-index { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .ind-index { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .ind-index { grid-template-columns: repeat(2, 1fr); } .ind-tile { min-height: 200px; padding: 18px 16px 16px; } }

/* ---------- Generic Morning Brief block ---------- */
.brief-each { color: var(--muted); font-size: 15px; line-height: 1.6; }
.brief-each ul { margin-top: 14px; display: grid; gap: 10px; }
.brief-each li { position: relative; padding-left: 20px; }
.brief-each li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.brief-each a { color: var(--amber-light); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages ----------
   Long-form prose, so it gets a reading measure and real paragraph rhythm rather
   than the marketing grid. A privacy policy nobody can read is the same as not
   having one. */
.legal-body { max-width: 68ch; }
.legal-body h2 { margin-top: 42px; margin-bottom: 12px; }
.legal-body p { color: var(--muted); font-size: 16.5px; line-height: 1.72; margin-top: 14px; }
.legal-body p b, .legal-body li b { color: var(--text); font-weight: 600; }
.legal-lede { font-size: 18.5px !important; color: var(--text) !important; padding: 20px 22px; border-radius: var(--r-m); border: 1px solid rgba(255, 122, 110, 0.28); background: rgba(232, 54, 43, 0.05); }
.legal-list { margin-top: 16px; display: grid; gap: 12px; }
.legal-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 16.5px; line-height: 1.68; }
.legal-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.legal-updated { margin-top: 44px !important; padding-top: 20px; border-top: 1px solid rgba(244, 240, 234, 0.1); font-family: var(--font-mono); font-size: 13px !important; }

/* Footer: the agency and the partnership are outbound, the policy is not. */
.footer-h4--gap { margin-top: 22px; }
.ico-out { width: 11px; height: 11px; margin-left: 5px; opacity: 0.65; vertical-align: baseline; }
.footer-legal a { color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--amber-light); }

/* ---------- Deck line ----------
   The line that used to be the h1. Every page now leads with the phrase someone
   would actually type — "AI agents for law firms" — and the editorial line sits
   directly under it, in the display face at a smaller size, so the page still opens
   with a voice instead of a keyword. It is the deck of a headline, not a subtitle:
   same family, tighter measure, accent colour. */
.ind-deck { margin-top: 14px; font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 2.1vw, 29px); line-height: 1.2; letter-spacing: -0.02em; color: var(--amber-light); max-width: 22ch; text-wrap: balance; }
.hero-content .ind-deck { max-width: 26ch; }
.hero-content .lede, .ind-hero-content .lede { margin-top: 18px; }

/* ---------- Capabilities, item by item ----------
   The bento above says what a fleet IS. This says what it DOES, in a form you can
   scan in ten seconds and point at in a meeting: five named agents, the systems
   they read, and the four steps. It exists because the day-in-the-life and the
   process moved off the home page onto /how-it-works/, and a home page that only
   describes its own philosophy answers none of the questions a buyer arrives with. */
.cap-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.cap-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -0.01em; margin-bottom: 16px; }
.cap-h--gap { margin-top: 38px; }
.cap-list { display: grid; gap: 12px; }
.cap-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-m); }
.cap-row i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(232, 54, 43, 0.1); border: 1px solid rgba(232, 54, 43, 0.26); color: var(--accent-light); }
.cap-row i svg { width: 21px; height: 21px; }
.cap-row b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }
.cap-row span { display: block; margin-top: 5px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.cap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cap-chips li { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--slate); padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(244, 240, 234, 0.14); background: rgba(244, 240, 234, 0.035); }
.cap-note { margin-top: 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 54ch; }
.cap-steps { display: grid; gap: 10px; counter-reset: capstep; list-style: none; }
.cap-steps li { position: relative; padding: 13px 16px 13px 52px; border-radius: 12px; border: 1px solid rgba(244, 240, 234, 0.1); }
.cap-steps li::before { counter-increment: capstep; content: counter(capstep, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--amber-light); }
.cap-steps b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.cap-steps span { display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.cap-more { margin-top: 22px; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr; } .cap-h--gap { margin-top: 30px; } }

/* ---------- Industries dropdown in the header ----------
   CSS-only on :hover and :focus-within. The ten <a> elements are in the DOM
   unconditionally, so they are ten crawlable internal links from every page into
   the spokes whether or not JS runs — which is the whole point of a hub and spoke. */
.nav-dd { position: relative; }
.nav-dd-top { display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--text); white-space: nowrap; transition: color 0.3s, background 0.3s; }
.nav-dd:hover .nav-dd-top, .nav-dd:focus-within .nav-dd-top { color: var(--text); background: rgba(185, 179, 172, 0.08); }
.nav-dd-top .chev { width: 14px; height: 14px; transition: transform 0.35s var(--ease-out); }
.nav-dd:hover .nav-dd-top .chev, .nav-dd:focus-within .nav-dd-top .chev { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: calc(100% + 14px); left: 50%; width: 470px; padding: 12px; border-radius: 18px; background: rgba(11, 10, 11, 0.97); border: 1px solid rgba(185, 179, 172, 0.14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 34px 80px -32px rgba(0, 0, 0, 0.9); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-8px); transition: opacity 0.26s, transform 0.26s var(--ease-out), visibility 0.26s; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dd-menu a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px; font-size: 14.5px; line-height: 1.25; color: var(--muted); transition: background 0.25s, color 0.25s; }
.nav-dd-menu a svg { width: 19px; height: 19px; flex: none; color: var(--accent-light); }
.nav-dd-menu a:hover { background: rgba(185, 179, 172, 0.09); color: var(--text); }
.nav-dd-menu .nav-dd-all { grid-column: 1 / -1; margin-top: 5px; padding-top: 12px; border-top: 1px solid var(--line-soft); border-radius: 0 0 11px 11px; color: var(--amber-light); font-weight: 600; }
.nav-dd-menu .nav-dd-all svg { color: inherit; width: 15px; height: 15px; margin-left: auto; }
@media (max-width: 1180px) { .nav-dd-menu { width: 330px; grid-template-columns: 1fr; } }

/* Mobile: a <details>, because there is no hover to open anything with. */
.mob-dd summary { font-family: var(--font-display); font-size: clamp(28px, 7vw, 40px); font-weight: 600; letter-spacing: -0.02em; padding: 10px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.mob-dd summary::-webkit-details-marker { display: none; }
.mob-dd summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease-out); }
.mob-dd[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.mobile-menu .mob-dd a { display: flex; align-items: center; gap: 12px; font-family: var(--font-body); font-size: 18px; font-weight: 500; padding: 11px 0 11px 6px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.mobile-menu .mob-dd a svg { width: 19px; height: 19px; color: var(--accent-light); flex: none; }

body.theme-smoke .nav-dd-menu { background: rgba(19, 18, 16, 0.97); border-color: rgba(244, 241, 236, 0.14); }
body.theme-smoke .nav-dd-menu a { color: rgba(244, 241, 236, 0.78); }
body.theme-smoke .nav-dd-menu a:hover { color: #F4F1EC; }
body.theme-smoke .ind-tile-icon { background: rgba(255, 106, 19, 0.14); border-color: rgba(255, 106, 19, 0.36); }

.scout-crosslink { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* ---------- Smoke theme: the industry pages ---------- */
body.theme-smoke .ind-hero-media::after { background: linear-gradient(180deg, rgba(19, 18, 16, 0.8) 0%, rgba(19, 18, 16, 0.55) 40%, #8F8D88 100%); }
body.theme-smoke .ind-hero, body.theme-smoke .ind-hero .lede, body.theme-smoke .ind-hero h1 { color: #F4F1EC; }
body.theme-smoke .ind-hero .lede { color: rgba(244, 241, 236, 0.82); }
body.theme-smoke .ind-hero .ind-who, body.theme-smoke .ind-hero .status-note { color: rgba(244, 241, 236, 0.62); }
body.theme-smoke .ind-hero .crumbs, body.theme-smoke .ind-hero .crumbs a { color: rgba(244, 241, 236, 0.6); }
body.theme-smoke .ind-hero .crumbs b { color: rgba(244, 241, 236, 0.85); }
body.theme-smoke .status-note { border-left-color: rgba(19, 18, 16, 0.2); }
body.theme-smoke .rail-card { background: var(--surface); border-color: rgba(244, 241, 236, 0.12); color: #F4F1EC; }
body.theme-smoke .rail-card .idx { color: rgba(244, 241, 236, 0.55); }
body.theme-smoke .agent-card p, body.theme-smoke .ind-systems p { color: rgba(244, 241, 236, 0.72); }
body.theme-smoke .ind-systems .foot, body.theme-smoke .ind-transcript cite { color: rgba(244, 241, 236, 0.55); }
body.theme-smoke .ind-transcript p { color: var(--muted); }
body.theme-smoke .hub-card h3, body.theme-smoke .hub-card .who { color: #F4F1EC; }
body.theme-smoke .hub-card .who { color: rgba(244, 241, 236, 0.62); }

/* ---------- Industry page byline (the E-E-A-T block) ----------
   A rater landing on /industries/warehouse/ from search never sees the home
   page, so the credential has to be on the page that was found. */
.ind-byline { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px clamp(28px, 4vw, 56px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-l); }
.ind-byline-who .eyebrow { margin-bottom: 14px; }
.ind-byline-who p { color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 62ch; }
.ind-byline-who .link-arrow { margin-top: 16px; }
.ind-byline-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; align-content: start; }
.ind-byline-meta dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--slate); }
.ind-byline-meta dd { margin-top: 5px; font-size: 14.5px; color: var(--text); line-height: 1.4; }
.ind-byline-meta dd a:hover { color: var(--accent-light); }
@media (max-width: 900px) { .ind-byline { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ind-byline-meta { grid-template-columns: 1fr; } }
body.theme-smoke .ind-byline-who p { color: rgba(244, 241, 236, 0.78); }
body.theme-smoke .ind-byline-meta dd { color: #F4F1EC; }
body.theme-smoke .ind-byline-meta dt { color: rgba(244, 241, 236, 0.55); }

/* Industry icon on the hub cards and the sideways rail. */
.hub-card-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(232, 54, 43, 0.14); border: 1px solid rgba(232, 54, 43, 0.3); color: var(--accent-light); margin-bottom: 12px; transition: background 0.4s, transform 0.5s var(--ease-out); }
.hub-card-icon svg { width: 22px; height: 22px; }
.hub-card:hover .hub-card-icon { background: rgba(232, 54, 43, 0.24); transform: translateY(-2px); }
.rail-card { align-items: start; }
.rail-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(232, 54, 43, 0.1); border: 1px solid rgba(232, 54, 43, 0.24); color: var(--accent-light); margin-bottom: 6px; }
.rail-icon svg { width: 18px; height: 18px; }
body.theme-smoke .hub-card-icon, body.theme-smoke .rail-icon { background: rgba(255, 106, 19, 0.15); border-color: rgba(255, 106, 19, 0.34); }

/* Head block on the two standalone pages (How It Works, About Us). Same job as
   .hub-head-section: clear the fixed nav and set the page up before its content. */
.page-head { padding-top: 186px; padding-bottom: calc(var(--section) * 0.35); }
.page-head h1 { max-width: 17ch; margin-top: 10px; }
.page-head .lede { margin-top: 22px; }
/* These sections were written mid-scroll on a long home page, so they carried their
   own top padding. On a page of their own the first one sits too low. */
.page-head + .section { padding-top: calc(var(--section) * 0.4); }
