/* firstout.ai — design system v2 (light theme only) */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
/* Archivo's ampersand reads as a stylised "E"; a conventional & from a subset of Liberation Sans
   (SIL OFL 1.1, renamed "AT Amp" as the licence requires for modified fonts) replaces that one character. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/amp-regular.woff2") format("woff2");
  font-weight: 100 549;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0026;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/amp-bold.woff2") format("woff2");
  font-weight: 550 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0026;
}

:root {
  /* Colour: drafting paper, drawing ink, instrument-signal blue, trip amber */
  --paper: #ffffff;
  --film: #f1f4f7;
  --print: #e8eef6;      /* blueprint tint for the product section */
  --print-line: #dde5ee;
  --ink: #17232f;
  --ink-2: #4a5866;
  --rule: #c9d2db;
  --grid: #e6ebf0;
  --signal: #1d5bb8;
  --signal-dark: #164a96;
  --trip: #e3a008;
  --trip-soft: #fdf3d6;
  --alarm: #c62828;

  /* Type scale (1.25) */
  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.3125rem;
  --fs-xl: clamp(1.7rem, 2.5vw, 2.35rem);
  --fs-xxl: clamp(2.4rem, 4vw, 3.7rem);

  --wide: 112%;
  --narrow: 78%;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 8vw, 7.5rem);

  --max: 1680px;
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --ink-deep: #121c26;
  --ink-mid: #22354a;
  --header-h: 68px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--signal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--signal-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 620;
  font-stretch: var(--wide);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-xxl); line-height: 1.04; letter-spacing: -0.022em; font-weight: 640; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-l); line-height: 1.25; }
p { margin: 0; max-width: 66ch; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.35rem;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: var(--fs-s); font-stretch: 104%;
  text-decoration: none; color: var(--ink); background: transparent;
  cursor: pointer;
}
.btn:hover { background: var(--film); color: var(--ink); text-decoration: none; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #24364a; color: var(--paper); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--grid);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--space-3); min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand:hover { color: var(--ink); }
.brand__name { font-weight: 700; font-size: 1.125rem; font-stretch: 118%; letter-spacing: -0.01em; }
.brand__role { font-size: var(--fs-xs); color: var(--ink-2); font-stretch: var(--narrow); }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: var(--fs-s); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--signal); }
.nav .btn { min-height: 42px; padding: 0.5rem 1rem; }
.nav-toggle { display: none; margin-left: auto; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: var(--space-1) var(--gutter) var(--space-3);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--grid); font-size: var(--fs-m); }
  .nav .btn { margin-top: var(--space-2); }
}

/* Hero: full-bleed, deep ink, plant panorama drawn in line art (a photo replaces it when hero.jpg exists) */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--header-h) - 8.5rem);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.5rem, 4vh, 3.5rem) 0 clamp(0.75rem, 2vh, 1.5rem);
  background: linear-gradient(180deg, #1b2a3a 0%, var(--ink) 55%, var(--ink-deep) 100%);
  color: var(--paper);
}
.hero--photo { background-image: linear-gradient(90deg, rgba(18,28,38,0.92) 0%, rgba(18,28,38,0.72) 45%, rgba(18,28,38,0.35) 100%), url("/assets/img/hero.jpg"); background-size: cover; background-position: center; }
.hero--photo .hero__art { display: none; }
.hero__art { position: absolute; bottom: 0; right: 0; left: 42%; height: 84%; z-index: -1; overflow: hidden; }
.hero__art svg { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; }
.hero > .wrap:first-of-type { flex: 1; display: flex; align-items: center; }
.hero__copy { padding-bottom: clamp(0.5rem, 2vh, 1.5rem); max-width: 50rem; }
.hero__who { font-size: var(--fs-m); color: rgba(255,255,255,0.78); margin-bottom: var(--space-3); font-stretch: 104%; }
.hero__who b { color: var(--paper); font-weight: 650; }
.hero h1 { max-width: 18ch; color: var(--paper); }
.hero__eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--space-3); font-size: var(--fs-s); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.88); font-stretch: 112%; }
.hero__eyebrow::before { content: ""; width: 2.5rem; height: 3px; background: var(--trip); }
.hero__lede a { color: var(--paper); }
.section__head .section__kicker, .section__kicker { margin: 0 0 0.6rem; padding: 0; max-width: none; line-height: 1.4; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }
.hero__tag { margin-top: var(--space-3); font-size: clamp(1.1rem, 1.35vw, 1.3rem); font-weight: 600; font-stretch: 106%; color: var(--trip); line-height: 1.35; max-width: 34ch; }
.hero__lede { margin-top: var(--space-3); font-size: var(--fs-m); line-height: 1.55; color: rgba(255,255,255,0.8); max-width: 60ch; }
.hero__actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: #e9eef4; color: var(--ink); }
.btn--light { color: var(--paper); border-color: rgba(255,255,255,0.7); }
.btn--light:hover { background: rgba(255,255,255,0.1); color: var(--paper); border-color: var(--paper); }
.hero-facts { background: var(--ink-deep); color: var(--paper); }
.hero__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,0.18); }
.hero__facts li { padding: 0.85rem var(--space-3) 0.9rem 0; font-size: var(--fs-s); color: rgba(255,255,255,0.75); line-height: 1.45; }
.hero__facts li + li { border-left: 1px solid rgba(255,255,255,0.18); padding-left: var(--space-3); }
.hero__facts strong { display: block; color: var(--paper); font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-stretch: var(--wide); font-weight: 650; margin-bottom: 0.2rem; letter-spacing: -0.01em; }
.hero__facts a { color: var(--paper); }
/* Short desktop screens: tighten the hero so the facts strip stays in the first view */
@media (min-width: 900px) and (max-height: 860px) {
  .hero__eyebrow { margin-bottom: var(--space-2); }
  .hero__tag, .hero__lede { margin-top: var(--space-2); }
  .hero__actions { margin-top: var(--space-3); }
  .hero__lede { line-height: 1.5; }
}
.hero .replay { color: rgba(255,255,255,0.85); margin: 0 0 var(--space-3); }
.hero .replay::before { border-left-color: var(--trip); }
.hero .replay:hover { color: var(--paper); }
@media (max-width: 1040px) {
  .hero { min-height: 0; }
  .hero__art { left: 0; opacity: 0.3; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__facts li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.18); }
}
@media (max-width: 560px) {
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li + li { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.18); }
}

.replay {
  margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-size: var(--fs-s); font-weight: 600; color: var(--ink);
  background: transparent; border: 0; padding: 0.35rem 0; cursor: pointer;
}
.replay::before { content: ""; width: 0; height: 0; border-left: 9px solid var(--signal); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.replay:hover { color: var(--signal); }

/* Plant panorama line art (dark hero): three depth layers, service markers, ISA bubbles, lamps */
.hero__art { left: 0; height: 100%; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.16) 38%, rgba(0,0,0,0.6) 52%, #000 64%); mask-image: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.16) 38%, rgba(0,0,0,0.6) 52%, #000 64%); }
.art-line { stroke: rgba(255,255,255,0.8); stroke-width: 1.8; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.art-thin { stroke: rgba(255,255,255,0.42); stroke-width: 1.1; fill: none; stroke-linecap: round; }
.art-far { stroke: rgba(255,255,255,0.18); stroke-width: 1.1; fill: none; }
.art-fill { fill: #2a4159; stroke: rgba(255,255,255,0.8); stroke-width: 1.8; stroke-linejoin: round; }
.art-fill-far { fill: #1e3042; stroke: rgba(255,255,255,0.18); stroke-width: 1.1; }
.art-far-layer { opacity: 0.9; }
.art-mid { opacity: 0.72; }
.art-vessel { fill: url(#gV); stroke: rgba(255,255,255,0.84); stroke-width: 1.8; }
.art-vessel-h { fill: url(#gH); stroke: rgba(255,255,255,0.84); stroke-width: 1.8; }
.art-sphere { fill: url(#gS); stroke: rgba(255,255,255,0.84); stroke-width: 1.8; }
.gv-a { stop-color: #223548; } .gv-b { stop-color: #3f5b7c; } .gv-c { stop-color: #16232f; }
.art-hl { stroke: rgba(255,255,255,0.2); stroke-width: 3; fill: none; stroke-linecap: round; }
.art-ground { stroke: rgba(255,255,255,0.55); stroke-width: 2; }
.art-signal { stroke: rgba(255,255,255,0.5); stroke-width: 1.2; stroke-dasharray: 5 4; fill: none; }
.art-pipe-steam { stroke: #e3a008; stroke-width: 2.4; fill: none; opacity: 0.88; }
.art-pipe-cw { stroke: #4f8de0; stroke-width: 2.4; fill: none; opacity: 0.92; }
.art-pipe-n2 { stroke: #5fb89a; stroke-width: 1.8; fill: none; opacity: 0.9; }
.art-pipe-fg { stroke: rgba(255,255,255,0.5); stroke-width: 1.4; fill: none; }
.art-text { font-family: "Archivo", sans-serif; font-stretch: 78%; font-size: 13px; fill: rgba(255,255,255,0.88); }
.art-text--sign { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; fill: var(--trip); }
.art-marker rect { fill: #121d28; stroke-width: 1.2; }
.art-marker text { font-family: "Archivo", sans-serif; font-stretch: 84%; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; }
.art-marker--proc rect { stroke: rgba(255,255,255,0.7); } .art-marker--proc text { fill: rgba(255,255,255,0.92); }
.art-marker--steam rect { stroke: #e3a008; } .art-marker--steam text { fill: #ffd166; }
.art-marker--cw rect { stroke: #4f8de0; } .art-marker--cw text { fill: #a9cdff; }
.art-marker--n2 rect { stroke: #5fb89a; } .art-marker--n2 text { fill: #b7eedb; }
.art-marker--fg rect { stroke: rgba(255,255,255,0.5); } .art-marker--fg text { fill: rgba(255,255,255,0.8); }
.art-bubble circle { fill: #121d28; stroke: rgba(255,255,255,0.84); stroke-width: 1.4; }
.art-bubble path { stroke: rgba(255,255,255,0.6); stroke-width: 1; fill: none; }
.art-bubble text { font-family: "Archivo", sans-serif; font-stretch: 84%; font-size: 8.6px; font-weight: 700; fill: rgba(255,255,255,0.92); }
.art-bubble--sif circle { stroke: var(--trip); stroke-width: 1.8; }
.art-bubble--sif text { fill: #ffd166; }
.art-flow { fill: none; stroke-width: 2.6; stroke-dasharray: 5 14; stroke-linecap: round; animation: flow 1.4s linear infinite; }
.art-flow--proc { stroke: rgba(255,255,255,0.95); }
.art-flow--steam { stroke: #ffd166; animation-duration: 1.9s; }
.art-flow--cw { stroke: #9cc7ff; animation-duration: 1.1s; }
.art-flow--n2 { stroke: #b7eedb; stroke-width: 2; animation-duration: 1.6s; }
.art-flow--thin { stroke-width: 1.8; animation-duration: 2.2s; }
.art-glow-halo { fill: #ffb300; opacity: 0.4; filter: blur(12px); animation: glow 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art-flame { fill: #ffb300; animation: flame 0.9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.art-flame--b { fill: #fff1b8; animation-duration: 0.7s; animation-delay: -0.3s; }
.art-flame--s { fill: #ff9d2e; animation-duration: 1.1s; }
.art-flame--s.art-flame--b { fill: #ffd27a; }
.art-beacon { fill: #ff5b4d; animation: beacon 1.6s steps(1) infinite; }
.art-beacon--slow { animation-duration: 2.4s; animation-delay: -1.1s; }
.art-lamp { fill: #ffe29a; }
.art-lamp-halo { fill: #ffcf66; opacity: 0.28; filter: blur(7px); }
.art-window { fill: #ffd98a; opacity: 0.85; stroke: rgba(255,255,255,0.5); stroke-width: 1; }
.art-cab { fill: #121d28; stroke: rgba(255,255,255,0.7); stroke-width: 1.2; }
.art-haze { opacity: 1; }
.hz-a { stop-color: #ff9a2e; stop-opacity: 0.16; } .hz-b { stop-color: #ff9a2e; stop-opacity: 0; }
.pl-a { stop-color: #ffcf66; stop-opacity: 0.22; } .pl-b { stop-color: #ffcf66; stop-opacity: 0; }
.art-plume { fill: rgba(255,255,255,0.18); animation: plume 7s linear infinite; transform-box: fill-box; transform-origin: center; }
.art-spin { animation: spin 2.6s linear infinite; transform-box: fill-box; transform-origin: center; }
.art-spin--slow { animation-duration: 5s; }
.art-led { fill: #7bd389; animation: led 3s steps(1) infinite; }
.art-led--2 { animation-delay: 1s; } .art-led--3 { fill: #ffd166; animation-delay: 1.7s; }
@keyframes glow { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.75; transform: scale(1.25); } }
@keyframes flame { 0% { transform: scaleY(0.86) skewX(-4deg); opacity: 0.85; } 100% { transform: scaleY(1.12) skewX(5deg); opacity: 1; } }
@keyframes beacon { 0%, 18% { opacity: 1; } 19%, 100% { opacity: 0.15; } }
@keyframes plume { 0% { transform: translateY(0) scale(0.8); opacity: 0.5; } 100% { transform: translateY(-90px) scale(1.8); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes led { 0%, 70% { opacity: 1; } 71%, 100% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .art-flow, .art-glow-halo, .art-flame, .art-beacon, .art-plume, .art-spin, .art-led { animation: none; } }
@media (max-width: 1040px) { .hero__art { opacity: 0.42; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 45%, #000 80%); mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 45%, #000 80%); } }

/* Drawing panel: a sheet with a title block, like an engineering drawing */
.drawing {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  box-shadow: 0 1px 0 var(--rule), 0 40px 70px -50px rgba(23, 35, 47, 0.45);
}
.drawing svg { width: 100%; height: auto; }
.tb {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) auto;
  border-top: 1px solid var(--rule); background: var(--paper);
  font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.4;
}
.tb > span { padding: 0.6rem 0.9rem; min-width: 0; }
.tb > span + span { border-left: 1px solid var(--rule); }
.tb b { display: block; color: var(--ink); font-weight: 600; font-stretch: 104%; }
.tb .tb__id { font-stretch: var(--narrow); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .tb { grid-template-columns: 1fr 1fr; }
  .tb > span:first-child { grid-column: 1 / -1; }
  .tb > span:nth-child(2) { border-left: 0; }
  .tb > span:nth-child(n+2) { border-top: 1px solid var(--rule); }
}

/* SVG drawing styles */
.pid-line { stroke: var(--ink); stroke-width: 2; fill: none; }
.pid-thin { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.pid-signal { stroke: var(--ink-2); stroke-width: 1.4; fill: none; stroke-dasharray: 6 4; }
.pid-fill { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.pid-text { font-family: "Archivo", sans-serif; font-stretch: 75%; font-size: 13px; fill: var(--ink); }
.pid-text--b { font-weight: 650; }
.pid-text--q { fill: var(--ink-2); font-size: 12px; }
.flow { stroke: var(--signal); stroke-width: 3; stroke-dasharray: 4 14; fill: none; opacity: 0.85; }
.pulse { stroke: var(--trip); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-dasharray: 8 200; stroke-dashoffset: 8; opacity: 0; }
.ring { fill: none; stroke: var(--trip); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ls-box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.valve-body { fill: var(--paper); stroke: var(--ink); stroke-width: 1.8; }
.trip-label { opacity: 0; }
.trend-line { stroke: var(--signal); stroke-width: 2.2; fill: none; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.trend-hh { stroke: var(--alarm); stroke-width: 1.2; stroke-dasharray: 4 3; }
.trend-dot { fill: var(--alarm); opacity: 0; }
.safe-label { opacity: 0; }

/* Orchestrated sequence: flow → high pressure → vote → valve closes. Runs once. */
.drawing.is-running .flow { animation: flow 1.1s linear infinite; }
.drawing.is-running .ring { animation: ring 1.2s ease-out 1.2s 2 forwards; }
.drawing.is-running .pulse--in { animation: pulse-in 0.9s ease-in 2.4s forwards; }
.drawing.is-running .ls-box { animation: ls 0.4s ease-out 3.2s forwards; }
.drawing.is-running .pulse--out { animation: pulse-out 0.9s ease-in 3.5s forwards; }
.drawing.is-running .valve-body { animation: valve 0.35s ease-out 4.35s forwards; }
.drawing.is-running .trip-label { animation: appear 0.4s ease-out 4.5s forwards; }
.drawing.is-running .flow--down { animation: flow 1.1s linear infinite, stop 0.3s linear 4.5s forwards; }
.drawing.is-running .trend-line { animation: draw 2.1s ease-in 0.3s forwards; }
.drawing.is-running .trend-dot { animation: appear 0.2s linear 2.4s forwards; }
.drawing.is-running .safe-label { animation: appear 0.4s ease-out 4.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@keyframes flow { to { stroke-dashoffset: -36; } }
@keyframes ring { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes pulse-in { 0% { opacity: 1; stroke-dashoffset: 8; } 99% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes pulse-out { 0% { opacity: 1; stroke-dashoffset: 8; } 99% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes ls { to { fill: var(--trip-soft); stroke: var(--trip); } }
@keyframes valve { to { fill: var(--ink); } }
@keyframes appear { to { opacity: 1; } }
@keyframes stop { to { opacity: 0; } }

/* Final (tripped) state for reduced motion and after JS marks it done */
.drawing.is-static .flow--down { opacity: 0; }
.drawing.is-static .ls-box { fill: var(--trip-soft); stroke: var(--trip); }
.drawing.is-static .valve-body { fill: var(--ink); }
.drawing.is-static .trip-label { opacity: 1; }
.drawing.is-static .trend-line { stroke-dashoffset: 0; }
.drawing.is-static .trend-dot, .drawing.is-static .safe-label { opacity: 1; }

/* Proof strip */
.proof { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--film); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof li { padding: var(--space-4) var(--space-3) var(--space-4) 0; font-size: var(--fs-s); line-height: 1.45; color: var(--ink-2); }
.proof li + li { border-left: 1px solid var(--rule); padding-left: var(--space-3); }
.proof strong { display: block; color: var(--ink); font-size: clamp(1.4rem, 2vw, 1.75rem); font-stretch: var(--wide); font-weight: 650; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
@media (max-width: 880px) { .proof ul { grid-template-columns: 1fr 1fr; } .proof li:nth-child(3) { border-left: 0; padding-left: 0; } .proof li:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 520px) { .proof ul { grid-template-columns: 1fr; } .proof li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } }

/* Sections */
.section { padding: var(--space-6) 0; }
.section--film { background: var(--film); }
.section--print {
  background-color: var(--print);
  background-image: linear-gradient(var(--print-line) 1px, transparent 1px), linear-gradient(90deg, var(--print-line) 1px, transparent 1px);
  background-size: 28px 28px;
  border-top: 1px solid var(--print-line); border-bottom: 1px solid var(--print-line);
}
.section__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4); align-items: start; margin-bottom: var(--space-5); }
.section__head p { padding-top: 0.35em; }
.section__head p { color: var(--ink-2); font-size: var(--fs-l); line-height: 1.5; max-width: 60ch; }
@media (max-width: 880px) { .section__head { grid-template-columns: 1fr; gap: var(--space-2); margin-bottom: var(--space-4); } }

/* Who it is for */
.segments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.segment { border-top: 3px solid var(--ink); padding-top: var(--space-3); }
.segment h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin-bottom: 0.5rem; }
.segment p { color: var(--ink-2); font-size: var(--fs-s); line-height: 1.55; }
.segment ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.segment li { padding: 0.35rem 0 0.35rem 1.1rem; position: relative; font-size: var(--fs-s); border-top: 1px solid var(--grid); }
.segment li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 6px; height: 6px; border-radius: 50%; background: var(--trip); }
.segment__more { margin-top: var(--space-2); }
.segment__more summary { cursor: pointer; font-weight: 600; font-size: var(--fs-s); color: var(--signal); list-style: none; }
.segment__more summary::-webkit-details-marker { display: none; }
.segment__more summary::before { content: "+ "; }
.segment__more[open] summary::before { content: "\2212 "; }
.page-hero--quiz .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 880px) { .segments { grid-template-columns: 1fr; } }

/* Test yourself */
.quiz-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.quiz-intro h2 { margin-bottom: var(--space-3); }
.quiz-intro p { color: var(--ink-2); font-size: var(--fs-l); line-height: 1.5; }
.quiz-intro p + p { margin-top: var(--space-2); font-size: var(--fs-m); }
.quiz-intro ol { margin: var(--space-3) 0 0; padding-left: 1.3em; color: var(--ink-2); font-size: var(--fs-s); line-height: 1.55; }
.quiz-intro li + li { margin-top: 0.35rem; }
.quiz { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 0 var(--rule), 0 40px 70px -50px rgba(23, 35, 47, 0.45); overflow: hidden; }
.quiz__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--rule); background: var(--film); font-size: var(--fs-s); }
.quiz__bar b { font-weight: 650; }
.quiz__progress { display: flex; gap: 0.35rem; align-items: center; }
.quiz__progress i { display: block; width: 22px; height: 6px; border-radius: 3px; background: var(--rule); }
.quiz__progress i.is-done { background: var(--ink); }
.quiz__progress i.is-current { background: var(--trip); }
.quiz__body { padding: var(--space-4) clamp(1.25rem, 2.5vw, 2rem); }
.quiz fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz legend { font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 620; font-stretch: 106%; line-height: 1.3; margin-bottom: var(--space-3); text-wrap: balance; }
.quiz__opts { display: grid; gap: 0.6rem; }
.quiz__opt { position: relative; display: block; }
.quiz__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.quiz__opt span { display: block; padding: 0.8rem 1rem 0.8rem 2.6rem; border: 1.5px solid var(--rule); border-radius: var(--radius); font-size: var(--fs-s); line-height: 1.45; cursor: pointer; position: relative; }
.quiz__opt span::before { content: ""; position: absolute; left: 0.95rem; top: 0.95rem; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink-2); background: var(--paper); }
.quiz__opt input:checked + span { border-color: var(--ink); }
.quiz__opt input:checked + span::before { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 45%, transparent 50%); }
.quiz__opt input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.quiz__opt.is-right span { border-color: #1c6b3a; background: #eef7f1; }
.quiz__opt.is-wrong span { border-color: var(--alarm); background: #fdf0f0; }
.quiz__feedback { margin-top: var(--space-3); padding: 0.9rem 1rem; border-left: 3px solid var(--trip); background: var(--film); font-size: var(--fs-s); line-height: 1.5; }
.quiz__feedback[data-kind="right"] { border-left-color: #1c6b3a; }
.quiz__feedback[data-kind="wrong"] { border-left-color: var(--alarm); }
.quiz__feedback b { display: block; margin-bottom: 0.2rem; }
.quiz__actions { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.quiz__result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.quiz__score { width: 150px; height: 150px; }
.quiz__score circle { fill: none; stroke-width: 10; }
.quiz__score .track { stroke: var(--grid); }
.quiz__score .fill { stroke: var(--trip); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 0.8s ease-out; }
.quiz__score text { font-family: "Archivo", sans-serif; font-weight: 650; font-size: 34px; fill: var(--ink); font-stretch: 112%; }
.quiz__score .of { font-size: 13px; font-weight: 500; fill: var(--ink-2); font-stretch: 85%; }
.quiz__result h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin-bottom: 0.5rem; }
.quiz__result p { color: var(--ink-2); font-size: var(--fs-s); line-height: 1.55; }
.quiz__next { margin-top: var(--space-3); display: grid; gap: 0.75rem; }
.quiz__next a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.9rem 1rem; border: 1.5px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.quiz__next a:hover { border-color: var(--ink); }
.quiz__next a b { display: block; font-weight: 650; }
.quiz__next a span { display: block; font-size: var(--fs-xs); color: var(--ink-2); }
.quiz__next a em { font-style: normal; font-weight: 650; white-space: nowrap; }
.quiz__next a.is-main { background: var(--trip-soft); border-color: var(--trip); }
.quiz__foot { padding: 0.7rem 1.25rem; border-top: 1px solid var(--rule); background: var(--film); font-size: var(--fs-xs); color: var(--ink-2); }
@media (max-width: 960px) { .quiz-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .quiz__result { grid-template-columns: 1fr; } .quiz__score { width: 120px; height: 120px; } }

/* Practice areas: four drawing sheets */
.dwgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.dwg { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.dwg__fig {
  margin: 0; border-bottom: 1px solid var(--rule);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
.dwg__fig svg { width: 100%; height: auto; padding: clamp(0.75rem, 2vw, 1.5rem); box-sizing: border-box; }
.dwg__body { padding: var(--space-3) clamp(1rem, 2.5vw, 2rem) var(--space-4); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3) var(--space-4); flex: 1; }
.dwg h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin-bottom: 0.35rem; }
.dwg__claim { color: var(--ink-2); font-size: var(--fs-s); }
.dwg__link { display: inline-block; margin-top: var(--space-2); font-weight: 600; font-size: var(--fs-s); }
.area__list { list-style: none; margin: 0; padding: 0; }
.area__list li { padding: 0.32rem 0 0.32rem 1rem; position: relative; font-size: var(--fs-s); line-height: 1.45; }
.area__list li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 6px; height: 1.5px; background: var(--ink-2); }
.area__list li + li { border-top: 1px solid var(--grid); }
.dwg .tb { font-size: 0.75rem; border-top: 1px solid var(--rule); grid-template-columns: minmax(0, 1fr) auto; }
.dwg .tb > span { padding: 0.45rem 0.9rem; }
@media (max-width: 560px) {
  .dwg .tb { grid-template-columns: minmax(0, 1fr) auto; }
  .dwg .tb > span:first-child { grid-column: auto; }
  .dwg .tb > span:nth-child(2) { border-left: 1px solid var(--rule); border-top: 0; }
}
.dwgs--links .dwg > a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.dwgs--links .dwg > a:hover h2 { color: var(--signal); text-decoration: underline; text-decoration-thickness: 2px; }
.dwg__body--link { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; }
.dwg__body--link h2 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin-bottom: 0.4rem; }
.dwg__price { font-size: var(--fs-l); font-weight: 650; font-stretch: var(--wide); line-height: 1.2; justify-self: end; text-align: right; }
.dwg__price small { display: block; font-size: var(--fs-xs); font-weight: 400; font-stretch: 100%; color: var(--ink-2); margin-top: 0.3rem; line-height: 1.4; }
@media (max-width: 1040px) { .dwg__body { grid-template-columns: 1fr; } .dwg__price { justify-self: start; text-align: left; } }
@media (max-width: 760px) { .dwgs { grid-template-columns: 1fr; } }

/* Practice areas: rows (interior pages) */
.areas { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.area {
  display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--space-3); padding: var(--space-4) 0;
  border-bottom: 1px solid var(--rule);
}
.area__glyph { width: 48px; height: 48px; }
.area h3 { margin-bottom: 0.4rem; }
.area__claim { color: var(--ink-2); }
.area .area__list { columns: 2; column-gap: var(--space-4); }
.area .area__list li { break-inside: avoid; border-top: 0; }
@media (max-width: 880px) {
  .area { grid-template-columns: 48px minmax(0, 1fr); }
  .area .area__list { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .area .area__list { columns: 1; } }

/* Engagement process: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); counter-reset: step; }
.step { position: relative; padding-top: var(--space-4); counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink); background: var(--paper);
  font-weight: 650; font-size: var(--fs-s);
}
.step::after { content: ""; position: absolute; top: 1rem; left: 2.5rem; right: -1rem; height: 1.5px; background: var(--rule); }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--fs-m); font-stretch: 106%; margin-bottom: 0.4rem; }
.step p { font-size: var(--fs-s); color: var(--ink-2); }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: var(--space-4); }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
}

/* Case studies */
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.case figure { margin: 0 0 var(--space-3); border: 1px solid var(--rule); border-radius: var(--radius); background-color: var(--paper); aspect-ratio: 16 / 10; display: grid; place-items: center; padding: var(--space-3);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.case figure svg { width: 100%; height: 100%; }
.case figure .pid-text { font-size: 16px; }
.case figure .pid-text--q { font-size: 15px; }
.case__area { font-size: var(--fs-xs); color: var(--ink-2); font-stretch: var(--narrow); margin-bottom: 0.35rem; }
.case h3 { margin-bottom: 0.5rem; }
.case p { font-size: var(--fs-s); color: var(--ink-2); }
@media (max-width: 960px) { .cases { grid-template-columns: 1fr; max-width: 640px; } }

/* First Out AI: product section */
.tool { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.tool h2 { max-width: 16ch; }
.tool p { margin-top: var(--space-2); color: var(--ink-2); }
.tool__status { margin-top: var(--space-3); font-size: var(--fs-s); color: var(--ink); padding-left: 0.9rem; border-left: 3px solid var(--trip); }
.tool__actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: 0.75rem; }
.sheet { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(23, 35, 47, 0.35); overflow: hidden; }
.sheet__bar { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rule); font-size: var(--fs-s); }
.sheet__bar b { font-weight: 650; }
.sheet__bar span { color: var(--ink-2); font-stretch: var(--narrow); }
.sheet table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.sheet th, .sheet td { text-align: left; padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--grid); vertical-align: top; }
.sheet th { font-weight: 500; color: var(--ink-2); font-stretch: var(--narrow); }
.sheet td:last-child { white-space: nowrap; font-weight: 600; }
.sheet tr:last-child td { border-bottom: 0; }
.ok { color: #1c6b3a; }
.note { color: var(--ink-2); font-weight: 500 !important; }
.sheet__foot { padding: 0.7rem 1.1rem; background: var(--film); font-size: var(--fs-xs); color: var(--ink-2); }
@media (max-width: 960px) { .tool { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sheet th, .sheet td { padding: 0.6rem 0.75rem; } .sheet td:last-child { white-space: normal; } }

.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.product__copy { grid-row: 1 / span 2; }
.product__sheet { grid-column: 2; }
@media (max-width: 1040px) { .product__copy { grid-row: auto; } .product__sheet { grid-column: auto; } }
.product__copy { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 2rem); }
.product__copy > p { color: var(--ink-2); font-size: var(--fs-l); line-height: 1.5; }
.product__copy > p + p { margin-top: var(--space-2); font-size: var(--fs-m); }
.tool-facts { margin: var(--space-4) 0 0; border-top: 1.5px solid var(--ink); }
.tool-facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-2); padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.tool-facts dt { font-weight: 650; font-stretch: 106%; }
.tool-facts dd { margin: 0; color: var(--ink-2); font-size: var(--fs-s); line-height: 1.5; }
.plan-strip { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--film); overflow: hidden; }
.plan-strip li:not(.is-main) { background: var(--paper); }
.plan-strip li { padding: 0.9rem 1rem; min-width: 0; }
.plan-strip li + li { border-left: 1px solid var(--rule); }
.plan-strip li.is-main { background: var(--trip-soft); box-shadow: inset 0 3px 0 var(--trip); }
.plan-strip b { display: block; font-size: var(--fs-l); font-stretch: var(--wide); font-weight: 650; line-height: 1.1; }
.plan-strip span { display: block; font-size: var(--fs-xs); color: var(--ink-2); margin-top: 0.25rem; line-height: 1.4; }
.plan-strip em { display: block; font-style: normal; font-weight: 500; font-size: var(--fs-xs); color: var(--ink-2); font-stretch: 100%; margin-top: 0.15rem; }
.product__actions { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.product__actions .more-link { margin: 0; }
@media (max-width: 1040px) { .product { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .plan-strip { grid-template-columns: 1fr; } .plan-strip li + li { border-left: 0; border-top: 1px solid var(--rule); } }

/* Quick check: a working simplified PFD calculation */
.calc-solo .calc { max-width: 1120px; }
.calc { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 0 var(--rule), 0 40px 70px -50px rgba(23, 35, 47, 0.45); overflow: hidden; }
.calc__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--rule); background: var(--film); font-size: var(--fs-s); }
.calc__bar b { font-weight: 650; }
.calc__bar span { color: var(--ink-2); font-stretch: var(--narrow); }
.calc__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.calc__controls { padding: var(--space-3) clamp(1rem, 2vw, 1.5rem); border-right: 1px solid var(--rule); display: grid; gap: 1.1rem; align-content: start; }
.ctl { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc__result { padding: var(--space-3) clamp(1rem, 2vw, 1.5rem); min-width: 0; }
.ctl label, .ctl legend { display: block; font-size: var(--fs-s); font-weight: 600; margin-bottom: 0.35rem; }
.ctl__row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem 0.75rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.ctl__row label { margin-bottom: 0; }
.ctl__row output { font-size: var(--fs-s); text-align: right; }
.ctl output { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ctl input[type="range"] { width: 100%; accent-color: var(--signal); margin: 0.25rem 0 0; }
.ctl select { font: inherit; font-size: var(--fs-s); width: 100%; min-height: 42px; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); padding: 0.4rem 0.6rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; padding: 0; margin: 0; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg span { display: block; text-align: center; padding: 0.55rem 0.3rem; font-size: var(--fs-s); font-weight: 600; cursor: pointer; }
.seg label + label span { border-left: 1.5px solid var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: -3px; }
.verdict { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: var(--space-3); align-items: end; margin-bottom: var(--space-2); }
.verdict div { min-width: 0; }
.verdict small { display: block; font-size: var(--fs-xs); color: var(--ink-2); font-stretch: var(--narrow); }
.verdict b { display: block; font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 650; font-stretch: var(--wide); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.verdict .band { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: var(--fs-m); font-weight: 650; background: var(--trip-soft); border: 1px solid var(--trip); }
.verdict .band[data-sil="0"] { background: #fdf0f0; border-color: var(--alarm); }
.verdict .band[data-sil="3"], .verdict .band[data-sil="4"] { background: #eef7f1; border-color: #1c6b3a; }
.calc .chart-plot { overflow: visible; }
.calc .chart-svg { min-width: 0; }
.calc__foot { padding: 0.75rem 1.1rem; border-top: 1px solid var(--rule); background: var(--film); font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.5; }
.calc__foot p + p { margin-top: 0.4rem; }
@media (max-width: 760px) { .calc__body { grid-template-columns: 1fr; } .calc__controls { border-right: 0; border-bottom: 1px solid var(--rule); } .verdict { grid-template-columns: 1fr 1fr; } }

/* Closing call to action */
.closing { border-top: 1.5px solid var(--ink); padding-top: var(--space-5); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-4); align-items: end; }
.closing h2 { max-width: 22ch; }
.closing p { margin-top: var(--space-2); color: var(--ink-2); font-size: var(--fs-l); line-height: 1.5; }
.closing__side { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.closing__mail { font-size: var(--fs-l); font-weight: 600; font-stretch: 106%; }
.closing__fine { font-size: var(--fs-xs); color: var(--ink-2); }
@media (max-width: 880px) { .closing { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: var(--space-5) 0 var(--space-4); font-size: var(--fs-s); color: var(--ink-2); background: var(--paper); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4); }
.footer__id { display: flex; flex-direction: column; gap: 0.35rem; }
.footer__id .brand__name { color: var(--ink); }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--signal); }
.footer__fine { grid-column: 1 / -1; font-size: var(--fs-xs); border-top: 1px solid var(--grid); padding-top: var(--space-3); max-width: none; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Larger drawing lettering on phones */
@media (max-width: 560px) {
  .pid-text { font-size: 16px; }
  .pid-text--q { font-size: 15px; }
}

/* ---------- Interior pages ---------- */
.nav a[aria-current="page"]:not(.btn) { color: var(--signal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.5em; }

.crumbs { border-bottom: 1px solid var(--grid); font-size: var(--fs-xs); }
.crumbs ol { list-style: none; margin: 0; padding: 0.7rem 0; display: flex; flex-wrap: wrap; gap: 0.35rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--rule); }
.crumbs a { color: var(--ink-2); }

.page-hero { padding: var(--space-5) 0 var(--space-4); }
.page-hero h1 { max-width: 22ch; overflow-wrap: break-word; hyphens: auto; }
.page-hero--fig .wrap > * { min-width: 0; }
.page-hero .lede { margin-top: var(--space-3); font-size: var(--fs-l); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.page-hero .meta-line { margin-top: var(--space-2); font-size: var(--fs-s); color: var(--ink-2); }
.page-hero__actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: 0.75rem; }
.page-hero--fig .wrap { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.drawing--page svg { padding: clamp(0.75rem, 2vw, 1.5rem); box-sizing: border-box; }
.drawing--page .tb { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 960px) { .page-hero--fig .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .drawing--page .tb > span:first-child { grid-column: auto; } .drawing--page .tb > span:nth-child(2) { border-left: 1px solid var(--rule); border-top: 0; } }

.section--tight { padding: var(--space-5) 0; }

/* Interior heroes with the plant panorama drawn in ink at low strength */
.page-hero--art { position: relative; overflow: hidden; isolation: isolate; }
.page-hero--art .wrap { position: relative; }
.page-hero__art { position: absolute; right: 0; bottom: 0; left: 48%; height: 100%; z-index: -1; }
.page-hero__art svg { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; }
.page-hero__art { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 22%, #000 45%); mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 22%, #000 45%); }
.page-hero__art .art-line { stroke: rgba(23, 35, 47, 0.46); }
.page-hero__art .art-thin { stroke: rgba(23, 35, 47, 0.26); }
.page-hero__art .art-far { stroke: rgba(23, 35, 47, 0.14); }
.page-hero__art .art-fill { fill: #f1f4f7; stroke: rgba(23, 35, 47, 0.46); }
.page-hero__art .art-fill-far { fill: rgba(246, 248, 250, 0.9); stroke: rgba(23, 35, 47, 0.14); }
.page-hero__art .art-ground { stroke: rgba(23, 35, 47, 0.3); }
.page-hero__art .art-signal { stroke: rgba(23, 35, 47, 0.32); }
.page-hero__art .art-text { fill: rgba(23, 35, 47, 0.6); }
.page-hero__art .art-text--sign { fill: #a85d00; }
.page-hero__art .art-vessel, .page-hero__art .art-vessel-h, .page-hero__art .art-sphere { stroke: rgba(23, 35, 47, 0.46); }
.page-hero__art .gv-a { stop-color: #e6ecf2; } .page-hero__art .gv-b { stop-color: #ffffff; } .page-hero__art .gv-c { stop-color: #d6dfe8; }
.page-hero__art .art-hl { stroke: rgba(255,255,255,0.9); }
.page-hero__art .art-pipe-steam { opacity: 0.6; } .page-hero__art .art-pipe-cw { opacity: 0.6; } .page-hero__art .art-pipe-n2 { opacity: 0.7; }
.page-hero__art .art-pipe-fg { stroke: rgba(23, 35, 47, 0.3); }
.page-hero__art .art-flow--proc { stroke: rgba(23, 35, 47, 0.55); }
.page-hero__art .art-flow--steam { stroke: #e3a008; } .page-hero__art .art-flow--cw { stroke: #1d5bb8; } .page-hero__art .art-flow--n2 { stroke: #1f8a63; }
.page-hero__art .art-marker rect { fill: #ffffff; }
.page-hero__art .art-marker--proc rect { stroke: rgba(23, 35, 47, 0.5); } .page-hero__art .art-marker--proc text { fill: rgba(23, 35, 47, 0.8); }
.page-hero__art .art-marker--steam text { fill: #a85d00; } .page-hero__art .art-marker--cw text { fill: #1d5bb8; } .page-hero__art .art-marker--n2 text { fill: #1f8a63; }
.page-hero__art .art-marker--fg rect { stroke: rgba(23, 35, 47, 0.35); } .page-hero__art .art-marker--fg text { fill: rgba(23, 35, 47, 0.7); }
.page-hero__art .art-bubble circle { fill: #ffffff; stroke: rgba(23, 35, 47, 0.55); }
.page-hero__art .art-bubble path { stroke: rgba(23, 35, 47, 0.35); }
.page-hero__art .art-bubble text { fill: rgba(23, 35, 47, 0.8); }
.page-hero__art .art-bubble--sif circle { stroke: #a85d00; } .page-hero__art .art-bubble--sif text { fill: #a85d00; }
.page-hero__art .art-window { fill: #ffe6b3; stroke: rgba(23, 35, 47, 0.3); }
.page-hero__art .art-cab { fill: #ffffff; stroke: rgba(23, 35, 47, 0.46); }
.page-hero__art .art-led { fill: #1c6b3a; } .page-hero__art .art-led--3 { fill: #e3a008; }
.page-hero__art .art-haze, .page-hero__art .art-pool, .page-hero__art .art-lamp-halo, .page-hero__art .art-glow-halo { opacity: 0; animation: none; }
.page-hero__art .art-lamp { fill: #e3a008; }
.page-hero__art .art-plume { fill: rgba(23, 35, 47, 0.08); }
.page-hero__art .art-mid { opacity: 0.6; }
@media (max-width: 960px) { .page-hero__art { left: 0; opacity: 0.35; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 40%, #000 80%); mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 40%, #000 80%); } }

/* Two-column text block: heading left, body right */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--rule); }
.split h2 { font-size: var(--fs-l); line-height: 1.25; }
.split > div { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.split--fold { display: block; padding: 0; }
.split--fold summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; }
.split--fold summary::-webkit-details-marker { display: none; }
.split--fold summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--ink-2); line-height: 1; }
.split--fold[open] summary::after { content: "\2212"; }
.split--fold summary h2 { font-size: var(--fs-l); line-height: 1.25; }
.split--fold > div { padding: 0 0 var(--space-4); max-width: 70ch; }
.split--fold > div p { color: var(--ink-2); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: var(--space-2); } }

/* Guide: screenshots and step accordions */
.shot { margin: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); overflow: hidden; box-shadow: 0 1px 0 var(--rule), 0 40px 70px -50px rgba(23, 35, 47, 0.45); }
.shot img { width: 100%; height: auto; display: block; }
.shot .tb { grid-template-columns: minmax(0, 1fr) auto; }
.shot--tall { max-width: 420px; }
.guide { border-top: 1.5px solid var(--ink); }
.guide__step { border-bottom: 1px solid var(--rule); }
.guide__step summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; font-size: clamp(1.15rem, 1.5vw, 1.35rem); font-weight: 620; font-stretch: 106%; }
.guide__step summary::-webkit-details-marker { display: none; }
.guide__step summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--ink-2); line-height: 1; }
.guide__step[open] summary::after { content: "\2212"; }
.guide__n { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 0.6rem; border: 1.5px solid var(--ink); border-radius: 999px; font-size: var(--fs-s); font-weight: 650; font-stretch: var(--narrow); }
.guide__body { padding: 0 0 var(--space-4) calc(3.2rem + var(--space-3)); max-width: none; }
.guide__body p, .guide__body li { color: var(--ink-2); font-size: var(--fs-m); line-height: 1.6; }
.guide__body p + p, .guide__body ul + p, .guide__body p + ul { margin-top: 0.8em; }
.guide__body ul { padding-left: 1.2em; margin: 0; }
.guide__body li + li { margin-top: 0.4em; }
.guide__body b { color: var(--ink); }
.guide__tip { border-left: 3px solid var(--trip); padding-left: 0.9rem; }
.guide__body--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-4); align-items: start; }
.plan-strip--guide { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.plan-strip--guide span { font-size: var(--fs-s); }
@media (max-width: 960px) { .guide__body--split { grid-template-columns: 1fr; } .plan-strip--guide { grid-template-columns: 1fr 1fr; } .plan-strip--guide li:nth-child(3) { border-left: 0; } .plan-strip--guide li:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 640px) { .guide__step summary { grid-template-columns: 2.8rem minmax(0, 1fr) auto; } .guide__body { padding-left: 0; } .plan-strip--guide { grid-template-columns: 1fr; } .plan-strip--guide li + li { border-left: 0; border-top: 1px solid var(--rule); } }

/* About: title-block style identity card */
.idcard { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 0 var(--rule), 0 40px 70px -50px rgba(23, 35, 47, 0.45); overflow: hidden; }
.idcard > div { padding: 0.9rem 1.1rem; border-top: 1px solid var(--rule); min-width: 0; }
.idcard > div:nth-child(2n+1) { border-right: 1px solid var(--rule); }
.idcard > div:first-child, .idcard > div:nth-child(2) { border-top: 0; }
.idcard dt { font-size: var(--fs-xs); color: var(--ink-2); font-stretch: var(--narrow); margin-bottom: 0.2rem; }
.idcard dd { margin: 0; font-size: var(--fs-s); line-height: 1.45; }
.idcard__name { grid-column: 1 / -1; border-right: 0 !important; background: var(--film); }
.idcard__name dd { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 650; font-stretch: var(--wide); letter-spacing: -0.01em; line-height: 1.1; }
.idcard__foot { grid-column: 1 / -1; border-right: 0 !important; background: var(--trip-soft); }
@media (max-width: 520px) { .idcard { grid-template-columns: 1fr; } .idcard > div:nth-child(2n+1) { border-right: 0; } .idcard > div:nth-child(2) { border-top: 1px solid var(--rule); } }

/* Long-form text */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2em; }
.prose h3 { font-size: var(--fs-l); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--film); padding: 0.1em 0.35em; border-radius: 3px; }
.prose .formula { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--film); border-left: 3px solid var(--ink); padding: 0.8rem 1rem; overflow-x: auto; white-space: pre; font-size: var(--fs-s); line-height: 1.7; }
.prose blockquote { margin: 1.4em 0; padding-left: 1rem; border-left: 3px solid var(--trip); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--grid); vertical-align: top; }
.prose th { font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.table-scroll { overflow-x: auto; }

/* Service packages */
.packages { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.pkg { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
.pkg h3 { margin-bottom: 0.4rem; }
.pkg > div { min-width: 0; }
.pkg p { font-size: var(--fs-s); color: var(--ink-2); }
.pkg__label { font-size: var(--fs-xs); color: var(--ink-2); font-stretch: var(--narrow); margin-bottom: 0.3rem; }
.pkg ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-s); }
.pkg ul li { padding: 0.2rem 0 0.2rem 1rem; position: relative; }
.pkg ul li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 6px; height: 1.5px; background: var(--ink-2); }
.pkg__price { font-size: var(--fs-l); font-weight: 650; font-stretch: var(--wide); line-height: 1.2; }
.pkg__price small { display: block; font-size: var(--fs-xs); font-weight: 400; font-stretch: 100%; color: var(--ink-2); margin-top: 0.3rem; line-height: 1.4; }
@media (max-width: 880px) { .pkg { grid-template-columns: 1fr; gap: var(--space-2); } }

/* Area overview links (services index) */
.area-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.area-links li { border-bottom: 1px solid var(--rule); }
.area-links li:nth-child(odd) { border-right: 1px solid var(--rule); }
.area-links a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) var(--space-3) var(--space-4) 0; color: var(--ink); text-decoration: none; height: 100%; }
.area-links li:nth-child(even) a { padding-left: var(--space-3); }
.area-links a:hover h2 { color: var(--signal); text-decoration: underline; text-decoration-thickness: 2px; }
.area-links h2 { font-size: var(--fs-l); margin-bottom: 0.4rem; }
.area-links p { font-size: var(--fs-s); color: var(--ink-2); }
@media (max-width: 760px) {
  .area-links { grid-template-columns: 1fr; }
  .area-links li:nth-child(odd) { border-right: 0; }
  .area-links li:nth-child(even) a { padding-left: 0; }
}

/* Engagement models */
.models { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.models h3 { font-size: var(--fs-m); font-stretch: 106%; margin-bottom: 0.4rem; }
.models p { font-size: var(--fs-s); color: var(--ink-2); }
@media (max-width: 880px) { .models { grid-template-columns: 1fr; gap: var(--space-3); } }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-3) 2.5rem var(--space-3) 0; position: relative; font-weight: 600; font-stretch: 104%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 var(--space-3); color: var(--ink-2); max-width: 70ch; }
.faq details > div p + p { margin-top: 0.7em; }

/* Case study pages */
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: var(--space-4); }
.case-meta div { padding: var(--space-2) var(--space-3) var(--space-2) 0; font-size: var(--fs-s); }
.case-meta div + div { border-left: 1px solid var(--rule); padding-left: var(--space-3); }
.case-meta dt { font-size: var(--fs-xs); color: var(--ink-2); font-stretch: var(--narrow); }
.case-meta dd { margin: 0.2rem 0 0; }
@media (max-width: 760px) {
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta div:nth-child(3) { border-left: 0; padding-left: 0; }
  .case-meta div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.diagram { margin: 0; border: 1px solid var(--rule); border-radius: var(--radius); background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { border-top: 1px solid var(--rule); background: var(--paper); padding: 0.7rem 1rem; font-size: var(--fs-xs); color: var(--ink-2); }
.diagram-wrap { overflow-x: auto; }
.diagram-wrap .diagram { min-width: 560px; }
.note-box { border: 1px solid var(--rule); border-left: 3px solid var(--trip); background: var(--paper); padding: 0.9rem 1rem; font-size: var(--fs-s); color: var(--ink-2); max-width: 70ch; }

.cases--index .case a { color: inherit; text-decoration: none; display: block; }
.cases--index .case a:hover h3 { color: var(--signal); text-decoration: underline; text-decoration-thickness: 2px; }
.case-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-4); }
.case-filter button { font: inherit; font-size: var(--fs-s); padding: 0.45rem 0.9rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; min-height: 40px; }
.case-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cases--index { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-5); }
@media (max-width: 960px) { .cases--index { grid-template-columns: 1fr 1fr; max-width: none; } }
@media (max-width: 620px) { .cases--index { grid-template-columns: 1fr; } }

.related { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-4); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.plan { padding: var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan--main { background: var(--trip-soft); box-shadow: inset 0 3px 0 var(--trip); }
.plan h3 { font-size: var(--fs-l); }
.plan__for { font-size: var(--fs-s); color: var(--ink-2); }
.plan__price { font-size: var(--fs-xl); font-weight: 650; font-stretch: var(--wide); line-height: 1.1; }
.plan__price small { display: block; font-size: var(--fs-xs); font-weight: 400; font-stretch: 100%; color: var(--ink-2); margin-top: 0.35rem; }
.plan ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-s); }
.plan ul li { padding: 0.3rem 0 0.3rem 1.2rem; position: relative; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 4px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plan__cta { margin-top: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.plan__cta .btn { margin-top: 0; text-align: center; }
.plan__cta .more-link, .plan__cta .plan__sub { font-size: var(--fs-xs); min-height: 1.4em; margin-top: 0; }
.plan__sub { color: var(--ink-2); }
@media (max-width: 1040px) { .plans { grid-template-columns: 1fr 1fr; } .plan:nth-child(3) { border-left: 0; } .plan:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); } }

.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-s); min-width: 640px; }
.compare th, .compare td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--grid); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { border-bottom: 1.5px solid var(--ink); font-weight: 650; }
.compare .yes { color: #1c6b3a; font-weight: 600; }
.compare .no { color: var(--ink-2); }

/* Insights */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.posts li { border-bottom: 1px solid var(--rule); }
.posts a { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; color: var(--ink); text-decoration: none; }
.posts a:hover h2, .posts a:hover h3 { color: var(--signal); text-decoration: underline; text-decoration-thickness: 2px; }
.posts time { font-size: var(--fs-s); color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 0.2rem; }
.posts h2, .posts h3 { font-size: var(--fs-l); margin-bottom: 0.35rem; }
.posts p { font-size: var(--fs-s); color: var(--ink-2); }
@media (max-width: 620px) { .posts a { grid-template-columns: 1fr; gap: 0.3rem; } }
.article-foot { margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Forms */
.form { display: grid; gap: var(--space-3); max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-s); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-m); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 0.65rem 0.8rem; min-height: 48px; width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); outline: 2px solid var(--signal); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-s); }
.check input { width: 20px; height: 20px; margin-top: 0.2rem; flex: none; accent-color: var(--ink); }
.form-status { font-size: var(--fs-s); padding: 0.8rem 1rem; border-radius: var(--radius); border: 1px solid var(--rule); }
.form-status[data-kind="ok"] { border-color: #1c6b3a; color: #1c6b3a; background: #eef7f1; }
.form-status[data-kind="error"] { border-color: var(--alarm); color: var(--alarm); background: #fdf0f0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-5); align-items: start; }
.contact-aside { display: flex; flex-direction: column; gap: var(--space-3); border-top: 1.5px solid var(--ink); padding-top: var(--space-3); }
.contact-aside h2 { font-size: var(--fs-m); font-stretch: 106%; }
.contact-aside p, .contact-aside li { font-size: var(--fs-s); color: var(--ink-2); }
.contact-aside ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* About */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 var(--space-3) var(--space-3); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 0.45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.timeline h3 { font-size: var(--fs-m); font-stretch: 106%; }
.timeline p { font-size: var(--fs-s); color: var(--ink-2); }
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.stack h3 { font-size: var(--fs-m); font-stretch: 106%; margin-bottom: 0.5rem; }
.stack ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-s); color: var(--ink-2); }
.stack li { padding: 0.25rem 0; border-bottom: 1px solid var(--grid); }
@media (max-width: 880px) { .stack { grid-template-columns: 1fr; gap: var(--space-3); } }

.cta-band { border-top: 1.5px solid var(--ink); padding-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: var(--fs-l); max-width: 36ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.price-note { margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--ink-2); }
[hidden] { display: none !important; }
.more-link { margin-top: var(--space-3); font-weight: 600; }
.cases--index .case a, .cases .case a { color: inherit; text-decoration: none; display: block; }
.section:not(.section--film) + .section:not(.section--film) { padding-top: 0; }

/* ---------- Computed case studies: tables and charts ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-s); font-variant-numeric: tabular-nums; margin: var(--space-3) 0; background: var(--paper); }
table.data th, table.data td { text-align: left; padding: 0.55rem 0.65rem; border-bottom: 1px solid var(--grid); vertical-align: top; }
table.data th { font-weight: 600; border-bottom: 1.5px solid var(--ink); font-size: var(--fs-xs); color: var(--ink-2); }
table.data td:first-child { font-weight: 500; }
table.data td.n:not(:first-child) { white-space: nowrap; }
@media (max-width: 720px) { table.data td:first-child { min-width: 9rem; } }
table.verdicts td:last-child, table.lopa td:nth-child(4) { white-space: nowrap; }
.v { font-weight: 650; }
.v-ok { color: #1c6b3a; font-weight: 600; }
.v-bad { color: var(--alarm); font-weight: 600; }
.split .table-scroll { margin: 0; }

.chart { margin: var(--space-4) 0 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); padding: var(--space-3); }
.chart-title { font-weight: 600; font-stretch: 104%; margin-bottom: 0.4rem; }
.chart-legend { list-style: none; margin: 0 0 0.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: var(--fs-xs); color: var(--ink-2); }
.chart-legend .sw { display: inline-block; width: 18px; height: 3px; margin-right: 0.45rem; vertical-align: middle; background: var(--signal); }
.chart-legend .sw.s2 { background: var(--trip); }
.chart-legend .sw.s3 { background: #6b4fa0; }
.chart-plot { position: relative; overflow-x: auto; }
.chart-svg { width: 100%; min-width: 560px; height: auto; display: block; touch-action: pan-y; }
.chart-band { fill: var(--film); }
.chart-band-label { font: 500 11px "Archivo", sans-serif; font-stretch: 78%; fill: var(--ink-2); }
.chart-grid { stroke: var(--grid); stroke-width: 1; }
.chart-axis { stroke: var(--ink); stroke-width: 1; }
.chart-tick { font: 11px "Archivo", sans-serif; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart-axis-label { font: 500 12px "Archivo", sans-serif; fill: var(--ink-2); }
.chart-line { fill: none; stroke: var(--signal); stroke-width: 1.8; stroke-linejoin: round; }
.chart-line.s2 { stroke: var(--trip); }
.chart-line.s3 { stroke: #6b4fa0; }
.chart-dot { fill: var(--paper); stroke: var(--signal); stroke-width: 1.8; }
.chart-dot.s2 { stroke: var(--trip); }
.chart-dot.s3 { stroke: #6b4fa0; }
.chart-ref { stroke-width: 1.4; stroke-dasharray: 6 4; }
.chart-ref.ref-avg { stroke: var(--ink); }
.chart-ref.ref-target { stroke: var(--alarm); }
.chart-ref-label { font: 600 11px "Archivo", sans-serif; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.chart-ref-label.ref-avg { fill: var(--ink); }
.chart-ref-label.ref-target { fill: var(--alarm); }
.chart-cursor { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip { position: absolute; top: 8px; pointer-events: none; background: var(--ink); color: var(--paper); font-size: var(--fs-xs); line-height: 1.45; padding: 0.45rem 0.6rem; border-radius: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; z-index: 2; }
.chart-note { font-size: var(--fs-xs); color: var(--ink-2); margin-top: 0.5rem; }
.case-badge { display: inline-block; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); background: var(--trip-soft); border: 1px solid var(--trip); border-radius: 999px; padding: 0.1rem 0.6rem; margin-left: 0.4rem; vertical-align: middle; }

.chart-data { margin-top: 0.6rem; font-size: var(--fs-xs); }
.chart-data summary { cursor: pointer; color: var(--signal); font-weight: 600; }
.chart-data table.data { font-size: var(--fs-xs); max-width: 640px; }

/* Service packages: example deliverable, opened on demand */
.pkg__ex { grid-column: 1 / -1; min-width: 0; max-width: 100%; }
.pkg__ex .sheet { max-width: 100%; }
.pkg__ex summary { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 600; font-size: var(--fs-s); color: var(--signal); list-style: none; padding: 0.35rem 0; }
.pkg__ex summary::-webkit-details-marker { display: none; }
.pkg__ex summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 1.5px solid currentColor; border-radius: 3px; font-size: 0.9rem; line-height: 1; }
.pkg__ex[open] summary::before { content: "\2212"; }
.pkg__ex summary:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.pkg__ex .sheet { margin-top: var(--space-2); }
.ex-sheet__scroll { overflow-x: auto; }
.ex-sheet table { min-width: 34rem; }
.ex-sheet td:last-child { white-space: normal; font-weight: 500; }
.ex-sheet td:first-child { font-weight: 600; color: var(--ink); }
.ex-sheet thead th:empty { padding: 0; }

/* First Out AI demo on the product page */
.ai-demo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.ai-demo__q { margin: 0; padding: 1rem 1.1rem; font-size: var(--fs-m); font-weight: 600; border-bottom: 1px solid var(--rule); }
.ai-demo__a { padding: 1rem 1.1rem; border-left: 3px solid var(--signal); margin: 0.9rem 1.1rem; background: #f3f7fc; border-radius: 0 var(--radius) var(--radius) 0; }
.ai-demo__a p { font-size: var(--fs-s); line-height: 1.55; margin: 0 0 0.6rem; }
.ai-demo__a p:last-child { margin-bottom: 0; }
.ai-demo__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ai-demo__facts li { padding: 0 0 1rem; border-bottom: 1px solid var(--rule); }
.ai-demo__facts b { display: block; font-size: var(--fs-m); font-weight: 650; margin-bottom: 0.2rem; }
.ai-demo__facts span { font-size: var(--fs-s); color: var(--ink-2); }
@media (max-width: 960px) { .ai-demo { grid-template-columns: 1fr; } }
