/* ==========================================================================
   Thullex website styles
   Built from the Thullex Brand Registry tokens (tokens.json, v1).
   Square corners, 1px rules, no shadows, one amber highlight per layout.
   ========================================================================== */

:root {
  /* Color tokens */
  --midnight: #202046;
  --midnight-deep: #14142E;
  --amber: #F4A11B;
  --mist: #C8CBE6;
  --porcelain: #F4F5FA;
  --ground: var(--porcelain);
  --surface: #FFFFFF;
  --ink: var(--midnight);
  --ink-muted: #55577A;
  --line: #DCDEEE;
  --amber-text: #8A5300;
  --amber-tint: #FDF1DA;
  --on-amber: var(--midnight);
  --tag-bg: var(--midnight-deep);
  --tag-text: #FFFFFF;
  --pass: #174A85;
  --fail: #C8302A;
  --on-status: #FFFFFF;
  --focus: var(--midnight);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px;
  --s12: 48px; --s16: 64px; --s24: 96px;

  /* Radius */
  --r-none: 0; --r-tag: 3px; --r-soft: 8px; --r-dot: 999px;

  --max: 1240px;
  --gutter: var(--s12);
}

/* Dark band variables: applied to sections with .band-dark */
.band-dark {
  --ground: var(--midnight-deep);
  --surface: var(--midnight);
  --ink: var(--porcelain);
  --ink-muted: var(--mist);
  --line: #3A3A6A;
  --amber-text: var(--amber);
  --amber-tint: #3A2F1C;
  --tag-bg: #000000;
  --pass: #A8CBF7;
  --fail: #FF8A7D;
  --on-status: var(--midnight-deep);
  --focus: var(--amber);
  background: var(--ground);
  color: var(--ink);
}
.band-midnight {
  --ground: var(--midnight);
  --surface: var(--midnight-deep);
  --ink: var(--porcelain);
  --ink-muted: var(--mist);
  --line: #3A3A6A;
  --amber-text: var(--amber);
  --amber-tint: #3A2F1C;
  --tag-bg: #000000;
  --pass: #A8CBF7;
  --fail: #FF8A7D;
  --on-status: var(--midnight-deep);
  --focus: var(--amber);
  background: var(--ground);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */
*, *::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(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.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; }

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */
h1, h2, h3, .display-xl, .h1, .h2, .quote {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.display-xl { font-size: clamp(44px, 6.4vw, 72px); line-height: 1.0; letter-spacing: -0.015em; font-weight: 400; }
h1, .h1 { font-size: clamp(36px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -0.01em; }
h2, .h2 { font-size: clamp(27px, 3vw, 32px); line-height: 1.15; font-weight: 500; }
h3, .h3 { font-family: var(--font-sans); font-size: 20px; line-height: 1.35; font-weight: 700; margin: 0; }
.quote { font-size: clamp(22px, 2.4vw, 26px); line-height: 1.3; font-style: italic; }
p { margin: 0 0 var(--s4); }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink); }
.body-sm { font-size: 15px; line-height: 1.5; }
.muted { color: var(--ink-muted); }
.source { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.label {
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber-text); display: inline-block; margin-bottom: var(--s3);
}
.label.label-ink { color: var(--ink-muted); }
.code { font-family: var(--font-mono); font-size: 13px; line-height: 16px; font-weight: 500; }
.code-lg { font-family: var(--font-mono); font-size: 16px; line-height: 20px; font-weight: 600; }
.stat { font-family: var(--font-sans); font-size: clamp(40px, 5vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.stat-label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); margin-top: var(--s2); }
.prose p { max-width: 62ch; }
.prose p + h2, .prose p + h3 { margin-top: var(--s8); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s2); }
strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s24) 0; }
.section-tight { padding: var(--s16) 0; }
.section + .section { border-top: 1px solid var(--line); }
.grid { display: grid; gap: var(--s6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5-7 { grid-template-columns: 5fr 7fr; }
.grid-7-5 { grid-template-columns: 7fr 5fr; }
.grid-4-8 { grid-template-columns: 4fr 8fr; }
.gap-12 { gap: var(--s12); }
.gap-16 { gap: var(--s16); }
.center { text-align: center; }
.mt-4 { margin-top: var(--s4); } .mt-6 { margin-top: var(--s6); } .mt-8 { margin-top: var(--s8); }
.mt-12 { margin-top: var(--s12); } .mt-16 { margin-top: var(--s16); }
.mb-4 { margin-bottom: var(--s4); } .mb-6 { margin-bottom: var(--s6); } .mb-8 { margin-bottom: var(--s8); } .mb-12 { margin-bottom: var(--s12); }
.maxw-60 { max-width: 60ch; }
.maxw-70 { max-width: 70ch; }
.section-head { max-width: 760px; margin-bottom: var(--s12); }
.section-head .lead { margin-top: var(--s4); }
.stitch { height: 2px; background: repeating-linear-gradient(90deg, var(--amber) 0 14px, transparent 14px 22px); border: 0; margin: 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   Buttons, tags, pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: 0.02em;
  padding: 14px 22px; border-radius: var(--r-tag); border: 1px solid transparent; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }
.btn-primary:hover { background: #E2920F; border-color: #E2920F; }
.btn-ink { background: var(--midnight); color: #fff; border-color: var(--midnight); }
.btn-ink:hover { background: var(--midnight-deep); border-color: var(--midnight-deep); }
.band-dark .btn-ink, .band-midnight .btn-ink { background: var(--porcelain); color: var(--midnight); border-color: var(--porcelain); }
.band-dark .btn-ink:hover, .band-midnight .btn-ink:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ground); }
.band-dark .btn-ghost:hover, .band-midnight .btn-ghost:hover { color: var(--midnight-deep); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

.tag {
  display: inline-flex; align-items: center; gap: var(--s1);
  background: var(--tag-bg); color: var(--tag-text); border-radius: var(--r-tag);
  padding: 4px 10px; font-family: var(--font-mono); font-size: 13px; line-height: 16px; font-weight: 500; white-space: nowrap;
}
.tag b { color: var(--amber); font-weight: 600; margin-right: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-dot);
  padding: 4px 12px; font-size: 13px; font-weight: 700; line-height: 18px;
}
.pill-pass { background: var(--pass); color: var(--on-status); }
.pill-fail { background: var(--fail); color: var(--on-status); }
.pill-neutral { background: var(--line); color: var(--ink); }
.pill svg { width: 12px; height: 12px; }

/* --------------------------------------------------------------------------
   Cards, callouts, media
   -------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); padding: var(--s6); }
.card-flush { background: var(--surface); border: 1px solid var(--line); }
.callout { background: var(--amber-tint); color: var(--ink); padding: var(--s6); border-left: 3px solid var(--amber); }
.callout p:last-child { margin-bottom: 0; }
.figure { margin: 0; }
.figure img { width: 100%; border: 1px solid var(--line); background: var(--surface); }
.figure figcaption { font-size: 15px; line-height: 1.5; color: var(--ink-muted); margin-top: var(--s3); }
.device { border: 1px solid var(--line); border-radius: var(--r-soft); overflow: hidden; background: var(--surface); }
.device-bar { height: 28px; background: var(--midnight-deep); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.device-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3A3A6A; display: block; }
.device-bar i:first-child { background: var(--amber); }
.device img { border: 0; }
.grid-bg { background-color: var(--porcelain); background-image: url("../assets/graphics/calibration-grid-tile.svg"); background-size: 96px 96px; }

/* --------------------------------------------------------------------------
   Header: utility bar with Investor Login, then main menu
   -------------------------------------------------------------------------- */
.utility {
  background: var(--midnight-deep); color: var(--porcelain);
}
.utility .wrap { display: flex; justify-content: flex-end; align-items: center; min-height: 36px; gap: var(--s6); }
.utility a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--porcelain); padding: 8px 0;
}
.utility a svg { width: 15px; height: 15px; color: var(--amber); }
.utility a:hover { color: var(--amber); }
.utility .utility-note { font-size: 13px; color: var(--mist); margin-right: auto; }

.header {
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: var(--s6); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s8); }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink); padding: 8px 0;
  border-bottom: 2px solid transparent; transition: border-color .15s ease;
}
.nav a:hover { border-bottom-color: var(--mist); }
.nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.nav .btn { margin-left: var(--s2); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); width: 44px; height: 44px; border-radius: var(--r-tag); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--midnight); color: var(--porcelain); padding: var(--s16) 0 var(--s8); }
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--s12); }
.footer img { height: 28px; width: auto; }
.footer h4 { margin: 0 0 var(--s3); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--s2); }
.footer a { color: var(--porcelain); text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer .tagline { font-family: var(--font-display); font-size: 24px; line-height: 1.2; margin: var(--s4) 0 var(--s2); }
.footer .fine { color: var(--mist); font-size: 14px; }
.footer-bottom { max-width: var(--max); margin: var(--s12) auto 0; padding: var(--s6) var(--gutter) 0; border-top: 1px solid #3A3A6A; display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; color: var(--mist); font-size: 14px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: var(--s16) 0 var(--s24); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 4.5fr 7.5fr; gap: var(--s12); align-items: center; }
.hero-copy .display-xl { margin: var(--s3) 0 var(--s6); }
.hero-copy .lead { margin-bottom: var(--s8); max-width: 48ch; }
.hero-proof { display: flex; gap: var(--s6); margin-top: var(--s8); flex-wrap: wrap; }
.hero-proof div { border-left: 1px solid var(--line); padding-left: var(--s4); }
.hero-proof .stat { font-size: 28px; }
.hero-proof .stat-label { margin-top: 2px; color: var(--ink-muted); font-weight: 600; }

/* The interactive measurement demo */
.demo { background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1.35fr 1fr; min-height: 560px; }
.demo-stage { position: relative; background-color: var(--porcelain); background-image: url("../assets/graphics/calibration-grid-tile.svg"); background-size: 96px 96px; border-right: 1px solid var(--line); }
.demo-stage svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; }
.demo-stage .hint { position: absolute; left: var(--s4); bottom: var(--s4); font-size: 13px; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.85); padding: 6px 10px; border: 1px solid var(--line); }
.demo-stage .hint svg { width: 16px; height: 16px; }
.demo-stage .stamp { position: absolute; top: var(--s4); left: var(--s4); display: flex; gap: 8px; align-items: center; }
.demo-stage .stamp .code { background: var(--tag-bg); color: var(--tag-text); padding: 4px 8px; border-radius: var(--r-tag); }
.demo-panel { padding: var(--s6) var(--s6) var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.demo-panel header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.demo-panel header h3 { font-size: 16px; }
.demo-panel header .code { color: var(--ink-muted); }
.demo-status { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--line); background: var(--porcelain); }
.demo-status strong { font-size: 15px; }
.demo-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.demo-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: var(--s3); padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.demo-row .code { color: var(--amber-text); font-weight: 600; margin-right: 2px; }
.demo-row .name { line-height: 1.25; }
.demo-row .val { font-family: var(--font-mono); font-size: 13px; font-weight: 500; min-width: 66px; text-align: right; }
.demo-row .spec { display: block; color: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; margin-top: 2px; }
.demo-row .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--line); }
.demo-row.is-pass .dot { background: var(--pass); }
.demo-row.is-fail .dot { background: var(--fail); }
.demo-row.is-fail .val { color: var(--fail); font-weight: 600; }
.demo-controls { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: end; }
.demo-controls label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 4px; }
.demo-controls .code { color: var(--ink-muted); font-weight: 500; }
.demo-controls input[type="range"] { width: 100%; accent-color: var(--midnight); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-tag); overflow: hidden; }
.seg button { background: var(--surface); border: 0; padding: 7px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--midnight); color: #fff; }
.demo-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.demo-foot { font-size: 13px; color: var(--ink-muted); margin: auto 0 0; }

/* SVG parts of the demo */
.kp { cursor: grab; }
.kp:active { cursor: grabbing; }
.kp circle.halo { fill: transparent; }
.kp circle.core { fill: var(--amber); stroke: #fff; stroke-width: 2.5; transition: r .12s ease; }
.kp:hover circle.core, .kp:focus circle.core, .kp.is-active circle.core { r: 11; }
.mline { stroke: var(--amber); stroke-width: 3; fill: none; }
.mline.is-fail { stroke: var(--fail); }
.mtag rect { fill: var(--midnight-deep); }
.mtag text { font-family: var(--font-mono); font-size: 13px; font-weight: 500; fill: #fff; }
.mtag text tspan.c { fill: var(--amber); font-weight: 600; }
.mtag.is-fail rect { fill: var(--fail); }
.mtag.is-fail text tspan.c { fill: #fff; }
.garment { fill: #fff; stroke: var(--midnight); stroke-width: 2.5; stroke-linejoin: round; }
.garment-detail { fill: none; stroke: var(--midnight); stroke-width: 1.5; }
.scanline { stroke: var(--amber); stroke-width: 2; opacity: 0; }
.demo.is-measuring .scanline { animation: scan 1.1s ease-in-out; }
@keyframes scan { 0% { opacity: .9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(420px); } }
.demo.is-measuring .mline { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw .9s ease-out forwards; animation-delay: .35s; }
.demo.is-measuring .mtag { opacity: 0; animation: fadein .3s ease-out forwards; animation-delay: 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .demo.is-measuring .mline, .demo.is-measuring .mtag, .demo.is-measuring .scanline { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* --------------------------------------------------------------------------
   Proof strip
   -------------------------------------------------------------------------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: var(--s8) var(--s6); border-right: 1px solid var(--line); }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { border-right: 0; }
.proof-item .source { margin-top: var(--s2); font-size: 13px; }

/* --------------------------------------------------------------------------
   Steps, features, lists
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.step .media { aspect-ratio: 4/3; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--porcelain); }
.step .media img { width: 100%; height: 100%; object-fit: cover; }
.step .media.contain { background: #fff; }
.step .media.contain img { object-fit: contain; }
.step .body { padding: var(--s6); }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--amber-text); font-weight: 600; display: block; margin-bottom: var(--s2); }
.step h3 { margin-bottom: var(--s2); }
.step p { margin: 0; color: var(--ink-muted); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.feature-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list svg { width: 24px; height: 24px; color: var(--amber); }
.feature-list strong { display: block; margin-bottom: 2px; }
.feature-list span { color: var(--ink-muted); font-size: 15px; }

.pillars { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: var(--surface); }
.pillar { padding: var(--s6); border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pillar .code { color: var(--amber-text); font-weight: 600; margin-bottom: var(--s3); display: block; }
.pillar h3 { font-size: 18px; margin-bottom: var(--s2); }
.pillar p { margin: 0; font-size: 15px; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Same label, different garment
   -------------------------------------------------------------------------- */
.overlay-stage { position: relative; background: var(--surface); border: 1px solid var(--line); padding: var(--s6); }
.overlay-stage svg { width: 100%; height: auto; }
.tee-a { fill: rgba(32,32,70,.06); stroke: var(--midnight); stroke-width: 2.5; }
.tee-b { fill: none; stroke: var(--midnight); stroke-width: 2.5; stroke-dasharray: 6 5; }
.gap-line { stroke: var(--amber); stroke-width: 3; opacity: 0; transition: opacity .4s ease; }
.gap-tag { opacity: 0; transition: opacity .4s ease; }
.is-visible .gap-line, .is-visible .gap-tag { opacity: 1; }
.is-visible .gap-line:nth-of-type(2), .is-visible .gap-tag:nth-of-type(2) { transition-delay: .25s; }
.is-visible .gap-line:nth-of-type(3), .is-visible .gap-tag:nth-of-type(3) { transition-delay: .5s; }

/* --------------------------------------------------------------------------
   Supply chain line (scroll drawn)
   -------------------------------------------------------------------------- */
.chain { position: relative; }
.chain svg { width: 100%; height: auto; overflow: visible; }
.chain-path { fill: none; stroke: var(--line); stroke-width: 3; }
.chain-draw { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chain-amber { fill: none; stroke: var(--amber); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chain-stops { display: grid; grid-template-columns: repeat(9, 1fr); gap: var(--s3); margin-top: var(--s4); }
.chain-stop { font-size: 14px; line-height: 1.35; transition: opacity .3s ease; }
.chain-stop strong { display: block; font-size: 15px; }
.chain-stop span { color: var(--ink-muted); font-size: 13px; }
.chain-stop.is-desk strong { color: var(--amber-text); }
.chain-stop.is-desk { border-top: 3px solid var(--amber); padding-top: var(--s2); }
.chain-node { fill: var(--ground); stroke: var(--ink); stroke-width: 2.5; transition: opacity .3s ease; }
.chain-node.is-desk { fill: var(--amber); stroke: var(--ink); }
.chain-node-label { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Rollout calendar
   -------------------------------------------------------------------------- */
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.week { padding: var(--s6); border-right: 1px solid var(--line); background: var(--surface); min-height: 180px; display: flex; flex-direction: column; }
.week:last-child { border-right: 0; background: var(--amber-tint); }
.week .code { color: var(--ink-muted); margin-bottom: var(--s3); display: block; }
.week h3 { font-size: 18px; margin-bottom: var(--s2); }
.week p { margin: 0; font-size: 15px; color: var(--ink-muted); }
.week .stat { font-size: 40px; margin-top: auto; }
.counter { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Garment library grid
   -------------------------------------------------------------------------- */
.garments { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
.garment-card { background: var(--surface); border: 1px solid var(--line); padding: var(--s6); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: var(--s3); transition: border-color .15s ease; }
.garment-card:hover { border-color: var(--midnight); }
.garment-card svg { width: 100%; height: 120px; }
.garment-card .g-outline { fill: #fff; stroke: var(--midnight); stroke-width: 2.5; stroke-linejoin: round; }
.garment-card.is-rd .g-outline { stroke-dasharray: 6 5; fill: none; stroke: var(--ink-muted); }
.garment-card .g-kp { fill: var(--amber); stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity .3s ease; }
.garment-card.is-visible .g-kp { opacity: 1; }
.garment-card .g-kp:nth-of-type(2) { transition-delay: .08s; } .garment-card .g-kp:nth-of-type(3) { transition-delay: .16s; }
.garment-card .g-kp:nth-of-type(4) { transition-delay: .24s; } .garment-card .g-kp:nth-of-type(5) { transition-delay: .32s; } .garment-card .g-kp:nth-of-type(6) { transition-delay: .40s; }
.garment-card h3 { font-size: 17px; }
.garment-card .count { font-family: var(--font-mono); font-size: 13px; color: var(--amber-text); font-weight: 600; }
.garment-card .views { font-size: 13px; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Footprint map
   -------------------------------------------------------------------------- */
.map { position: relative; background: var(--surface); border: 1px solid var(--line); padding: var(--s6); }
.map-wrap { position: relative; }
.map-svg { width: 100%; height: auto; }
.map-marks { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk { cursor: pointer; }
.mk circle.ring { fill: none; stroke: var(--amber); stroke-width: 1.5; opacity: .6; }
.mk circle.core { fill: var(--amber); stroke: #fff; stroke-width: 2; }
.mk.is-team circle.core { fill: var(--midnight); }
.mk.is-installed circle.core { fill: #fff; stroke: var(--midnight); stroke-width: 2.5; }
.mk.is-use circle.ring { animation: ping 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mk.is-use circle.ring { animation: none; } }
.mk text { font-family: var(--font-sans); font-size: 11px; font-weight: 700; fill: var(--midnight); }
.map-legend { display: flex; gap: var(--s6); flex-wrap: wrap; margin-top: var(--s4); font-size: 14px; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid #fff; outline: 1px solid var(--line); }
.map-legend .i-use { background: var(--amber); } .map-legend .i-team { background: var(--midnight); } .map-legend .i-inst { background: #fff; outline: 2px solid var(--midnight); }
.map-card { position: absolute; background: var(--midnight-deep); color: var(--porcelain); padding: 10px 12px; font-size: 13px; line-height: 1.4; max-width: 220px; pointer-events: none; opacity: 0; transition: opacity .15s ease; transform: translate(-50%, calc(-100% - 14px)); z-index: 5; }
.map-card.is-open { opacity: 1; }
.map-card strong { display: block; color: var(--amber); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.arc { fill: none; stroke: var(--amber); stroke-width: 1.2; opacity: .55; transition: stroke-dashoffset 1.6s ease-out; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* --------------------------------------------------------------------------
   Closing CTA band
   -------------------------------------------------------------------------- */
.cta-band { padding: var(--s24) 0; }
.cta-band .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s12); align-items: center; }
.cta-band .display-xl { font-size: clamp(36px, 5vw, 56px); }
.cta-band .cta-side { border-left: 1px solid var(--line); padding-left: var(--s8); }
.cta-band .cta-side p { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { padding: var(--s16) 0; border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; grid-template-columns: 6fr 6fr; gap: var(--s12); align-items: center; }
.page-hero h1 { margin: var(--s3) 0 var(--s4); }
.page-hero .lead { max-width: 52ch; }

/* --------------------------------------------------------------------------
   Hardware hotspots
   -------------------------------------------------------------------------- */
.hotspots { position: relative; border: 1px solid var(--line); background: var(--surface); align-self: start; }
.hotspots img { width: 100%; display: block; }
.hs { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: var(--midnight); border: 2px solid #fff; outline: 1px solid var(--midnight); font-family: var(--font-mono); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer; transform: translate(-50%, -50%); }
.hs:hover, .hs[aria-expanded="true"] { background: var(--midnight); color: #fff; }
.parts { list-style: none; margin: 0; padding: 0; }
.parts li { display: grid; grid-template-columns: 34px 1fr; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line); cursor: pointer; }
.parts li:last-child { border-bottom: 1px solid var(--line); }
.parts li.is-active { background: var(--amber-tint); margin: 0 calc(-1 * var(--s4)); padding-left: var(--s4); padding-right: var(--s4); }
.parts .n { font-family: var(--font-mono); font-weight: 600; color: var(--amber-text); font-size: 13px; padding-top: 3px; }
.parts strong { display: block; }
.parts span { color: var(--ink-muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   Library explorer (tabs)
   -------------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); }
.tabs button { flex: 1; padding: 14px 12px; background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tabs button:last-child { border-right: 0; }
.tabs button .code { color: var(--ink-muted); font-weight: 500; }
.tabs button[aria-selected="true"] { border-bottom-color: transparent; background: var(--porcelain); }
.tabs button[aria-selected="true"] .code { color: var(--amber-text); font-weight: 600; }
.tabs button.is-rd { color: var(--ink-muted); }
.tabpanel { display: none; border: 1px solid var(--line); background: var(--porcelain); padding: var(--s6); grid-template-columns: 7fr 5fr; gap: var(--s8); }
.tabpanel.is-active { display: grid; }
.tabpanel img { border: 1px solid var(--line); background: #fff; }
.tabpanel .pom-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s6); font-size: 14px; }
.tabpanel .pom-list li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.tabpanel .pom-list .code { color: var(--amber-text); font-weight: 600; min-width: 48px; }
.rd-box { border: 1px dashed var(--ink-muted); padding: var(--s8); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-muted); min-height: 260px; }

/* --------------------------------------------------------------------------
   Record card
   -------------------------------------------------------------------------- */
.record { background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.2fr; }
.record .r-img { border-right: 1px solid var(--line); background: var(--porcelain); padding: var(--s4); }
.record .r-img img { width: 100%; }
.record .r-body { padding: var(--s6); }
.record .r-meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s4); font-size: 13px; color: var(--ink-muted); margin-bottom: var(--s4); }
.record .r-meta b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; display: block; }
.record table { width: 100%; border-collapse: collapse; font-size: 14px; }
.record th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.record td { padding: 7px 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; }
.record td:first-child { color: var(--amber-text); font-weight: 600; }
.record td.name { font-family: var(--font-sans); font-size: 14px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--s4) 0; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--amber-text); font-size: 20px; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 var(--s6); max-width: 70ch; color: var(--ink-muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Offline diagram
   -------------------------------------------------------------------------- */
.offline svg { width: 100%; height: auto; }
.offline .wall { fill: var(--surface); stroke: var(--midnight); stroke-width: 2.5; }
.offline .inside { fill: var(--porcelain); stroke: var(--line); }
.offline .link { stroke: var(--amber); stroke-width: 2; stroke-dasharray: 6 6; }
.offline text { font-family: var(--font-sans); font-size: 13px; fill: var(--ink); font-weight: 600; }
.offline text.small { font-size: 11px; fill: var(--ink-muted); font-weight: 400; }

/* --------------------------------------------------------------------------
   Timeline (About)
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--s6); display: grid; grid-template-columns: 1fr; gap: var(--s6); border-left: 2px dashed var(--amber); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: calc(-1 * var(--s6) - 7px); width: 12px; height: 12px; border-radius: 50%; background: var(--amber); border: 2px solid #fff; outline: 1px solid var(--midnight); }
@media (min-width: 1101px) {
  .timeline { grid-template-columns: repeat(7, 1fr); gap: var(--s4); border-left: 0; border-top: 2px dashed var(--amber); padding: var(--s6) 0 0; }
  .timeline li { padding-top: var(--s2); }
  .timeline li::before { top: calc(-1 * var(--s6) - 7px); left: 0; }
  .timeline span { font-size: 13px; }
  .timeline strong { font-size: 15px; }
}
.timeline .code { color: var(--amber-text); font-weight: 600; display: block; margin-bottom: 4px; }
.timeline strong { display: block; margin-bottom: 2px; }
.timeline span { font-size: 14px; color: var(--ink-muted); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
.person { background: var(--surface); border: 1px solid var(--line); }
.person .photo { aspect-ratio: 1; background: var(--porcelain); overflow: hidden; border-bottom: 1px solid var(--line); }
.person .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter .2s ease; }
.person:hover .photo img { filter: none; }
.person .photo .initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 40px; color: var(--ink-muted); }
.person .info { padding: var(--s4) var(--s6) var(--s6); }
.person strong { display: block; }
.person .role { color: var(--amber-text); font-size: 13px; font-weight: 700; letter-spacing: .04em; display: block; margin-bottom: var(--s2); }
.person p { font-size: 14px; color: var(--ink-muted); margin: 0; }
.founder { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s12); align-items: start; }
.founder .portrait { border: 1px solid var(--line); background: var(--surface); padding: var(--s4); }
.founder .portrait img { width: 100%; }
.founder .quote { margin: var(--s6) 0; padding-left: var(--s6); border-left: 3px solid var(--amber); }

/* --------------------------------------------------------------------------
   Forms (Contact)
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s4); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--ink-muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--midnight); }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2) var(--s4); }
.checks label { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 400; margin: 0; }
.checks input { accent-color: var(--midnight); width: 16px; height: 16px; }
.form .fine { font-size: 13px; color: var(--ink-muted); }
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s16); }
.contact-side .card + .card { margin-top: var(--s4); }
.contact-side address { font-style: normal; color: var(--ink-muted); font-size: 15px; }
.path-switch { display: flex; gap: 0; border: 1px solid var(--line); margin-bottom: var(--s8); }
.path-switch button { flex: 1; padding: 16px; background: var(--surface); border: 0; border-right: 1px solid var(--line); cursor: pointer; text-align: left; }
.path-switch button:last-child { border-right: 0; }
.path-switch button[aria-pressed="true"] { background: var(--amber-tint); }
.path-switch strong { display: block; font-size: 16px; }
.path-switch span { font-size: 14px; color: var(--ink-muted); }
.form-success { display: none; }

/* --------------------------------------------------------------------------
   ROI calculator
   -------------------------------------------------------------------------- */
.roi-layout { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; }
.roi-inputs { }
.roi-inputs .card + .card { margin-top: var(--s4); }
.roi-card h3 { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font-size: 16px; margin-bottom: var(--s4); }
.roi-card h3 .code { color: var(--ink-muted); font-weight: 500; }
.loc { border: 1px solid var(--line); background: var(--surface); margin-bottom: var(--s3); }
.loc-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); background: var(--porcelain); }
.loc-head input.loc-name { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); padding: 4px 0; min-width: 0; }
.loc-head input.loc-name:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.loc-head .code { color: var(--ink-muted); }
.loc-head .remove { background: none; border: 1px solid var(--line); border-radius: var(--r-tag); width: 30px; height: 30px; cursor: pointer; font-size: 16px; line-height: 1; color: var(--ink-muted); }
.loc-head .remove:hover { color: var(--fail); border-color: var(--fail); }
.loc-body { padding: var(--s4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4); }
.num { display: block; }
.num label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 4px; }
.num label .unit { font-weight: 400; color: var(--ink-muted); }
.num input, .num select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-mono); font-size: 14px; color: var(--ink); border-radius: 0; }
.num input:focus, .num select:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.num select { font-family: var(--font-sans); }
.num.wide { grid-column: 1 / -1; }
.assume { display: grid; gap: var(--s3); }
.assume .num { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: var(--s3); }
.assume .num label { margin: 0; }
.assume .num small { display: block; font-weight: 400; color: var(--ink-muted); font-size: 12px; }
.slider { display: grid; gap: 4px; }
.slider .top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.slider .top .code { color: var(--amber-text); }
.slider input[type="range"] { width: 100%; accent-color: var(--midnight); }
.slider small { color: var(--ink-muted); font-size: 12px; }
.mode { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-bottom: var(--s4); }
.mode button { background: var(--surface); border: 0; border-right: 1px solid var(--line); padding: 12px; font-weight: 700; font-size: 14px; cursor: pointer; }
.mode button:last-child { border-right: 0; }
.mode button[aria-pressed="true"] { background: var(--midnight); color: #fff; }
.roi-results { display: grid; gap: var(--s4); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--surface); }
.kpi { padding: var(--s6); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi:nth-child(3n) { border-right: 0; }
.kpi:nth-last-child(-n+3) { border-bottom: 0; }
.kpi .stat { font-size: clamp(28px, 3vw, 40px); }
.kpi .stat-label { color: var(--ink-muted); }
.kpi.is-hero { background: var(--amber-tint); }
.kpi .note { font-size: 12px; color: var(--ink-muted); margin-top: 6px; }
.chart { background: var(--surface); border: 1px solid var(--line); padding: var(--s6); }
.chart h3 { font-size: 16px; margin-bottom: var(--s2); }
.chart .sub { font-size: 14px; color: var(--ink-muted); margin-bottom: var(--s4); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-muted); }
.chart .bar-manual { fill: var(--mist); }
.chart .bar-rms { fill: var(--midnight); }
.chart .bar-freed { fill: var(--amber); }
.chart .bar-label { font-family: var(--font-mono); font-size: 11px; fill: var(--ink); font-weight: 500; }
.chart .cat-label { font-family: var(--font-sans); font-size: 12px; fill: var(--ink); font-weight: 600; }
.chart .line-cash { fill: none; stroke: var(--midnight); stroke-width: 3; }
.chart .line-invest { fill: none; stroke: var(--amber); stroke-width: 3; }
.chart .area-cash { fill: rgba(32,32,70,.06); }
.chart .zero { stroke: var(--ink-muted); stroke-dasharray: 4 4; }
.chart .payback-mark { fill: var(--amber); stroke: #fff; stroke-width: 2; }
.chart .payback-text { font-family: var(--font-mono); font-size: 12px; font-weight: 600; fill: var(--amber-text); }
.legend { display: flex; gap: var(--s4); flex-wrap: wrap; font-size: 13px; margin-top: var(--s3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 10px; display: inline-block; }
.loc-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--line); }
.loc-table th, .loc-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; font-family: var(--font-mono); font-size: 13px; }
.loc-table th { font-family: var(--font-sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }
.loc-table th:first-child, .loc-table td:first-child { text-align: left; font-family: var(--font-sans); font-weight: 700; font-size: 14px; }
.loc-table tfoot td { font-weight: 600; background: var(--porcelain); }
.report-actions { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }

/* Report view */
.report { display: none; }
.report.is-open { display: block; }
.report-sheet { background: var(--surface); border: 1px solid var(--line); padding: var(--s12); max-width: 960px; margin: 0 auto; }
.report-sheet header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s6); border-bottom: 1px solid var(--line); padding-bottom: var(--s6); margin-bottom: var(--s8); }
.report-sheet header img { height: 28px; }
.report-sheet h2 { margin-bottom: var(--s2); }
.report-sheet .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.report-sheet .section-title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-text); font-weight: 700; margin: var(--s8) 0 var(--s3); }
.report-sheet .assumptions { columns: 2; column-gap: var(--s8); font-size: 14px; }
.report-sheet .assumptions div { break-inside: avoid; display: flex; justify-content: space-between; gap: var(--s3); padding: 5px 0; border-bottom: 1px solid var(--line); }
.report-sheet .assumptions b { font-family: var(--font-mono); font-weight: 500; }
.report-sheet .kpis { margin-top: var(--s3); }
.report-sheet .notes { font-size: 14px; color: var(--ink-muted); }
.report-sheet .notes li { margin-bottom: 6px; }
.report-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }

@media print {
  .utility, .header, .footer, .roi-inputs, .report-actions, .no-print, .page-hero, .roi-layout, .cta-band { display: none !important; }
  .report { display: block !important; }
  .report-sheet { border: 0; padding: 0; max-width: none; }
  body { background: #fff; }
  .section { padding: 0; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { border-bottom: 1px solid var(--line); }
  .pillar:nth-child(3n) { border-right: 0; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .chain-stops { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  :root { --gutter: var(--s6); }
  .hero .wrap, .page-hero .wrap, .grid-5-7, .grid-7-5, .grid-4-8, .cta-band .wrap, .founder, .contact-grid, .roi-layout, .record, .tabpanel.is-active { grid-template-columns: 1fr; }
  .cta-band .cta-side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: var(--s6); }
  .demo { grid-template-columns: 1fr; min-height: 0; }
  .demo-stage { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: auto; padding-bottom: var(--s12); }
  .demo-stage svg { height: auto; aspect-ratio: 520 / 505; }
  .utility .utility-note { display: none; }
  .proof .wrap { grid-template-columns: 1fr 1fr; }
  .proof-item { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:nth-child(odd) { border-right: 1px solid var(--line); padding-right: var(--s6); }
  .proof-item:nth-child(even) { padding-left: var(--s6); }
  .proof-item:nth-last-child(-n+2) { border-bottom: 0; }
  .steps, .grid-3, .grid-4, .garments, .weeks, .kpis { grid-template-columns: 1fr 1fr; }
  .week { border-bottom: 1px solid var(--line); }
  .kpi:nth-child(3n) { border-right: 1px solid var(--line); }
  .kpi:nth-child(2n) { border-right: 0; }
  .roi-inputs { position: static; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2) var(--gutter) var(--s4); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--amber); }
  .nav .btn { margin: var(--s4) 0 0; }
  .nav-toggle { display: inline-flex; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3n) { border-right: 1px solid var(--line); }
  .pillar:nth-child(2n) { border-right: 0; }
  .record .r-img { border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: var(--s16) 0; }
  .cta-band { padding: var(--s16) 0; }
  .report-sheet { padding: var(--s6); }
  .report-sheet .assumptions, .tabpanel .pom-list { columns: 1; }
  .checks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: var(--s4); }
  .steps, .grid-2, .grid-3, .grid-4, .garments, .weeks, .kpis, .form .row, .loc-body, .team, .timeline, .chain-stops, .footer .wrap, .report-form, .proof .wrap { grid-template-columns: 1fr; }
  .proof-item, .proof-item:nth-child(odd), .proof-item:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .kpi, .kpi:nth-child(2n), .kpi:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .kpi:last-child { border-bottom: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(2n), .pillar:nth-child(3n) { border-right: 0; }
  .hero { padding: var(--s8) 0 var(--s16); }
  .hero-proof { gap: var(--s4); }
  .demo-controls { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .path-switch { flex-direction: column; }
  .path-switch button { border-right: 0; border-bottom: 1px solid var(--line); }
  .assume .num { grid-template-columns: 1fr 100px; }
}

/* ==========================================================================
   v2: polish, drawing element, load animations
   ========================================================================== */

/* Type refinements */
h1, h2, .display-xl, .h1, .h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--amber); color: var(--midnight); }

/* Display italics, taken from the deck cover ("Retire the tape.") */
.display-xl em, h1 em, .h1 em {
  font-style: italic; font-weight: 400; color: var(--ink);
  background-image: repeating-linear-gradient(90deg, var(--amber) 0 14px, transparent 14px 22px);
  background-repeat: no-repeat; background-position: 0 96%; background-size: 100% 3px;
  padding-bottom: .04em;
}
.band-dark .display-xl em, .band-dark h1 em, .band-midnight .display-xl em, .band-midnight h1 em, .band-midnight h2 em { color: var(--amber); background-image: none; }
.js .enter em { background-size: 0 3px; animation: underline-draw 1s cubic-bezier(.65,.05,.25,1) .75s forwards; }
@keyframes underline-draw { to { background-size: 100% 3px; } }

/* Section labels carry a small measurement mark: a line ending in a keypoint */
.label { display: inline-flex; align-items: center; gap: 10px; }
.label::before {
  content: ""; flex: none; width: 22px; height: 8px;
  background:
    radial-gradient(circle at calc(100% - 4px) 50%, var(--amber) 3px, transparent 3.6px),
    linear-gradient(var(--amber), var(--amber)) left center / calc(100% - 6px) 2px no-repeat;
}
.label.label-ink::before {
  background:
    radial-gradient(circle at calc(100% - 4px) 50%, var(--ink-muted) 3px, transparent 3.6px),
    linear-gradient(var(--ink-muted), var(--ink-muted)) left center / calc(100% - 6px) 2px no-repeat;
}

/* Main menu pilot button: the .nav a rule was stripping its padding */
.nav a.btn {
  padding: 11px 20px; border: 1px solid var(--amber); font-size: 14px; line-height: 18px;
  gap: 8px; margin-left: var(--s4);
}
.nav a.btn:hover { border-color: #E2920F; background: #E2920F; }
.nav a.btn svg { width: 16px; height: 16px; }
@media (max-width: 960px) {
  .nav a.btn { padding: 14px 20px; margin: var(--s4) 0 0; border: 1px solid var(--amber); justify-content: center; }
}

/* Buttons: quieter motion */
.btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:active { transform: translateY(1px); }

/* Cards respond to hover */
.card, .step, .person, .garment-card { transition: border-color .2s ease; }
.step:hover, .person:hover, .card:hover { border-color: var(--mist); }

/* --------------------------------------------------------------------------
   Drawing note (replaces the tinted left-border callout)
   A bordered note with a tab label and an amber corner bracket, like a note on a technical drawing.
   -------------------------------------------------------------------------- */
.callout {
  position: relative; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-left: 1px solid var(--line);
  padding: 40px 24px 22px;
}
.callout::before {
  content: "NOTE"; position: absolute; top: -1px; left: -1px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; line-height: 1;
  background: var(--midnight); color: #fff; padding: 6px 10px;
}
.callout[data-note]::before { content: attr(data-note); }
.callout::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 18px; height: 18px;
  border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
}
.band-dark .callout, .band-midnight .callout { background: transparent; }
.band-dark .callout::before, .band-midnight .callout::before { background: var(--porcelain); color: var(--midnight); }

/* --------------------------------------------------------------------------
   Drawing sheet bands (the deck cover's grid) and the station drawing
   -------------------------------------------------------------------------- */
.sheet {
  background-color: var(--midnight);
  background-image:
    linear-gradient(rgba(200, 203, 230, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 203, 230, .07) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
}
.tech { width: 100%; height: auto; display: block; color: var(--midnight); overflow: visible; }
.band-dark .tech, .band-midnight .tech { color: var(--mist); }
.tech path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.tech .amb { stroke: var(--amber); opacity: 1; }
.tech .thick { stroke-width: 3.5; }
.tech .cl { opacity: .4; }
.tech .dash { opacity: .5; }
.tech .tx { fill: currentColor; font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; opacity: .7; }
.tech .dot, .tech .dotink { fill: currentColor; opacity: .8; }
.tech .kp { fill: var(--amber); stroke: var(--midnight); stroke-width: 2.5; }
.band-dark .tech .kp, .band-midnight .tech .kp { stroke: var(--midnight); }

/* The drawing plots itself, line by line, in the order of the build */
.js .tech .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .tech.is-visible .ln { animation: plot 1s cubic-bezier(.55, .05, .25, 1) var(--t, 0s) forwards; }
.js .tech:not(.is-visible) .fd { opacity: 0; }
.js .tech.is-visible .fd { animation: appear .7s ease var(--t, 0s) both; }
@keyframes plot { to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } }

.page-hero.sheet { border-bottom: 0; padding: var(--s16) 0 var(--s24); }
.page-hero.sheet .wrap { grid-template-columns: 6fr 5fr; }
.page-hero .art { max-width: 540px; justify-self: end; width: 100%; }
.page-hero .art.plan { max-width: 600px; }
.page-hero.sheet .lead { color: var(--porcelain); }

/* --------------------------------------------------------------------------
   Title-block notes strip (ROI page). Sits across the bottom edge of the hero sheet.
   -------------------------------------------------------------------------- */
.tblock-wrap { margin-top: calc(-1 * var(--s12)); position: relative; z-index: 2; }
.tblock { display: grid; grid-template-columns: 148px 1fr; border: 1px solid var(--line); background: var(--surface); }
.tb-head { background: var(--midnight-deep); color: var(--porcelain); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.tb-head b { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--amber); }
.tb-head span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--mist); line-height: 1.5; }
.tb-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.tb-notes li { padding: 20px 22px 22px; border-right: 1px solid var(--line); display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.tb-notes li:last-child { border-right: 0; }
.tb-notes p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-muted); }
.tb-notes strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.num-ring { width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink); }

/* --------------------------------------------------------------------------
   ROI calculator polish
   -------------------------------------------------------------------------- */
.mode { position: relative; background: var(--surface); }
.mode::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--midnight); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.mode.is-multi::before { transform: translateX(100%); }
.mode button { position: relative; z-index: 1; background: transparent !important; transition: color .25s ease; }
.mode button[aria-pressed="true"] { color: #fff; }

.loc { transition: border-color .2s ease; }
.loc:focus-within { border-color: var(--midnight); }
.loc-head .code { background: var(--midnight); color: #fff; padding: 3px 7px; border-radius: var(--r-tag); font-size: 11px; letter-spacing: .06em; }
.num input, .num select { background: var(--porcelain); border: 0; border-bottom: 1.5px solid var(--line); padding: 10px 10px 9px; transition: border-color .2s ease, background-color .2s ease; }
.num input:hover, .num select:hover { border-bottom-color: var(--mist); }
.num input:focus, .num select:focus { background: #fff; border-bottom-color: var(--amber); outline-offset: 1px; }
.st { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; line-height: 1; padding: 3px 6px 2px; border: 1px solid; border-radius: var(--r-tag); margin: 0 0 3px; vertical-align: middle; text-transform: uppercase; }
.st-est { color: var(--amber-text); border-color: var(--amber); }
.st-ill { color: var(--ink-muted); border-color: var(--ink-muted); border-style: dashed; }
.st-you { color: var(--pass); border-color: var(--pass); }
.st { margin-right: 6px; }
.roi-card h3 .code { color: var(--ink-muted); }

.kpi { position: relative; transition: background-color .2s ease; }
.kpi.is-hero { background: var(--midnight); box-shadow: inset 0 3px 0 var(--amber); }
.kpi.is-hero .stat { color: #fff; }
.kpi.is-hero .stat-label { color: var(--porcelain); }
.kpi.is-hero .note { color: var(--mist); }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; opacity: 0; }
.kpi.is-changed::after { animation: tick .8s ease-out; }
@keyframes tick { 0% { transform: scaleX(0); opacity: 1; } 65% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.kpis.is-first .kpi { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.kpis.is-first .kpi:nth-child(2) { animation-delay: .07s; } .kpis.is-first .kpi:nth-child(3) { animation-delay: .14s; }
.kpis.is-first .kpi:nth-child(4) { animation-delay: .21s; } .kpis.is-first .kpi:nth-child(5) { animation-delay: .28s; } .kpis.is-first .kpi:nth-child(6) { animation-delay: .35s; }

.chart { position: relative; }
.chart::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-right: 2px solid var(--midnight); border-bottom: 2px solid var(--midnight); opacity: .25; }
.chart .grow { transform-box: fill-box; transform-origin: left center; animation: grow .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes grow { from { transform: scaleX(0); } }
.chart .plot-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: plot 1.4s cubic-bezier(.55, .05, .25, 1) .2s forwards; }
.chart .late { animation: appear .5s ease 1.2s both; }
.js .chart.reveal:not(.is-visible) .grow, .js .chart.reveal:not(.is-visible) .plot-line, .js .chart.reveal:not(.is-visible) .late { animation-play-state: paused; }

/* Report: a drawing title block at the foot of the sheet */
.report-sheet { position: relative; }
.report-title-block { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border: 1px solid var(--ink); margin-top: var(--s8); font-family: var(--font-mono); }
.report-title-block div { padding: 10px 12px; border-right: 1px solid var(--ink); font-size: 12px; line-height: 1.4; }
.report-title-block div:last-child { border-right: 0; }
.report-title-block small { display: block; font-size: 10px; letter-spacing: .1em; color: var(--ink-muted); text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Load and scroll animation
   -------------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Hero copy arrives in reading order */
.js .enter > * { opacity: 0; animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .enter > :nth-child(1) { animation-delay: .05s; }
.js .enter > :nth-child(2) { animation-delay: .15s; }
.js .enter > :nth-child(3) { animation-delay: .27s; }
.js .enter > :nth-child(4) { animation-delay: .39s; }
.js .enter > :nth-child(5) { animation-delay: .51s; }
.js .enter > :nth-child(6) { animation-delay: .63s; }
.js .enter-late { opacity: 0; animation: rise .9s cubic-bezier(.2, .7, .2, 1) .35s forwards; }

/* Groups of cards arrive one after another as they scroll in */
.js .reveal-group > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > :nth-child(2) { transition-delay: .07s; } .reveal-group.is-visible > :nth-child(3) { transition-delay: .14s; }
.reveal-group.is-visible > :nth-child(4) { transition-delay: .21s; } .reveal-group.is-visible > :nth-child(5) { transition-delay: .28s; }
.reveal-group.is-visible > :nth-child(6) { transition-delay: .35s; } .reveal-group.is-visible > :nth-child(7) { transition-delay: .42s; }
.reveal-group.is-visible > :nth-child(8) { transition-delay: .49s; }

/* Photos and screens are uncovered by a scan line, the way the camera passes over a garment */
.scan { position: relative; overflow: hidden; }
.js .scan img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.65, .05, .25, 1); }
.js .scan.is-visible img { clip-path: inset(0 0 0 0); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--amber); opacity: 0; pointer-events: none; }
.js .scan.is-visible::after { animation: scanline 1.2s cubic-bezier(.65, .05, .25, 1) forwards; }
@keyframes scanline { 0% { top: 0; opacity: 1; } 92% { top: calc(100% - 2px); opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }
.figure.scan { overflow: visible; }
.figure.scan::after { top: 0; }

/* CTA band with the drawing */
.cta-band.sheet .cta-art { max-width: 440px; justify-self: end; width: 100%; }
.cta-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--line); }
.cta-facts p { margin: 0; font-size: 15px; color: var(--mist); }
.cta-facts .code { color: var(--amber); display: block; margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  .js .enter > *, .js .enter-late, .js .reveal-group > *, .kpis.is-first .kpi { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .enter em { background-size: 100% 3px; animation: none; }
  .js .tech .ln { stroke-dashoffset: 0; animation: none !important; }
  .js .tech .fd { opacity: inherit; animation: none !important; }
  .js .tech:not(.is-visible) .fd { opacity: .7; }
  .js .scan img { clip-path: none; transition: none; }
  .scan::after, .kpi::after { display: none; }
  .chart .grow, .chart .plot-line, .chart .late { animation: none; stroke-dashoffset: 0; }
  .mode::before { transition: none; }
}

@media (max-width: 1100px) {
  .tb-notes { grid-template-columns: 1fr 1fr; }
  .tb-notes li:nth-child(2) { border-right: 0; }
  .tb-notes li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .page-hero.sheet .wrap { grid-template-columns: 1fr; }
  .page-hero .art { justify-self: start; max-width: 420px; }
  .cta-band.sheet .cta-art { justify-self: start; max-width: 360px; }
  .tblock { grid-template-columns: 1fr; }
  .tb-head { flex-direction: row; align-items: baseline; padding: 14px 20px; }
  .report-title-block { grid-template-columns: 1fr 1fr; }
  .report-title-block div:nth-child(2) { border-right: 0; }
  .report-title-block div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
}
@media (max-width: 600px) {
  .tb-notes { grid-template-columns: 1fr; }
  .tb-notes li { border-right: 0; border-bottom: 1px solid var(--line); }
  .tb-notes li:last-child { border-bottom: 0; }
  .cta-facts { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v3: shorter hero, independent measurement handles, garment picker, steps
   ========================================================================== */
.hero { padding: var(--s12) 0 var(--s16); }
.hero .wrap { grid-template-columns: 4.4fr 7.6fr; gap: var(--s12); }
.hero .display-xl { font-size: clamp(42px, 5.2vw, 62px); margin: var(--s3) 0 var(--s4); }
.hero-copy .lead { font-size: 18px; margin-bottom: var(--s6); max-width: 44ch; }
.hero-proof { display: flex; gap: var(--s4); margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-proof div { border-left: 0; padding-left: 0; flex: 1 1 110px; }
.hero-proof .stat { font-size: 22px; }
.hero-proof .stat-label { font-size: 13px; line-height: 1.3; }

.demo { min-height: 0; grid-template-columns: 1.3fr 1fr; }
.demo-stage { min-height: 460px; }
.demo-stage svg { width: 100%; height: 100%; }
.demo-stage .stamp { left: auto; right: var(--s3); top: var(--s3); }
.demo-pick { position: absolute; top: var(--s3); left: var(--s3); display: flex; gap: 4px; z-index: 2; }
.demo-pick button {
  background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: var(--r-tag);
  padding: 6px 10px; font-size: 12.5px; font-weight: 700; cursor: pointer; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.demo-pick button:hover { border-color: var(--midnight); }
.demo-pick button[aria-pressed="true"] { background: var(--midnight); color: #fff; border-color: var(--midnight); }
.demo-panel { padding: var(--s4) var(--s5, 20px) var(--s4); gap: 10px; }
.demo-panel header h3 { font-size: 16px; }
.demo-panel header .code { font-size: 12px; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.demo-steps li {
  display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; line-height: 1.15;
  color: var(--ink-muted); padding: 6px 8px; border: 1px solid var(--line); background: var(--porcelain);
  transition: border-color .2s ease, color .2s ease;
}
.demo-steps li i {
  font-style: normal; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; flex: none;
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
}
.demo-steps li.is-current { color: var(--ink); border-color: var(--amber); background: #fff; }
.demo-steps li.is-current i { background: var(--amber); border-color: var(--amber); color: var(--midnight); }
.demo-steps li.is-done { color: var(--pass); }
.demo-steps li.is-done i { background: var(--pass); border-color: var(--pass); color: #fff; }
.demo-status { padding: 8px 12px; }
.demo-status strong { font-size: 14px; }
.demo-row { padding: 6px 0; }
.demo-row.is-pass .dot, .demo-row.is-fail .dot { transform: scale(1); }
.demo-foot { font-size: 11.5px; line-height: 1.45; }
.demo-stage .hint .i-hand { display: none; }
.demo.is-measured .hint .i-cam { display: none; }
.demo.is-measured .hint .i-hand { display: block; }

/* Before the first Measure, the lines and handles aren't there yet */
.demo:not(.is-measured) .mline, .demo:not(.is-measured) .mtag, .demo:not(.is-measured) .kp { opacity: 0; pointer-events: none; }
.demo:not(.is-measured) [data-measure] { position: relative; }
.demo:not(.is-measured) [data-measure]::after {
  content: ""; position: absolute; inset: -3px; border: 2px solid var(--amber); border-radius: 5px;
  animation: ring 1.6s ease-out infinite; pointer-events: none;
}
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.16); } }
.demo.is-measuring .scanline { animation: scan 1.1s ease-in-out; }
@keyframes scan { 0% { opacity: .9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(440px); } }
.kp { transition: opacity .3s ease; }
.demo.is-measuring .kp { animation: appear .4s ease 1.2s both; }
.garment-detail { stroke-linecap: round; }
circle.garment-detail { fill: #fff; stroke: var(--midnight); stroke-width: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .demo:not(.is-measured) [data-measure]::after { animation: none; opacity: .7; }
  .demo.is-measuring .kp, .demo.is-measuring .scanline { animation: none; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
  .demo-stage { min-height: 0; aspect-ratio: auto; padding: 52px 0 var(--s12); }
  .demo-stage svg { height: auto; aspect-ratio: 520 / 500; }
}
@media (max-width: 600px) {
  .demo-stage .stamp { display: none; }
  .demo-steps { grid-template-columns: 1fr; gap: 3px; }
  .demo-steps li { padding: 5px 8px; }
  .hero-proof { gap: var(--s3); }
}

/* v3 tightening */
.demo { grid-template-columns: 1.15fr 1fr; }
.demo-stage { min-height: 0; }
.demo-stage .stamp { top: auto; bottom: var(--s4); right: var(--s3); }
.demo-panel { padding: var(--s4) var(--s4) 14px; gap: 8px; }
.demo-panel header { align-items: center; }
.demo-steps { grid-template-columns: 1fr; gap: 2px; }
.demo-steps li { padding: 4px 8px; font-size: 12px; font-weight: 600; }
.demo-steps li i { width: 16px; height: 16px; font-size: 10px; }
.demo-status { padding: 7px 10px; gap: 8px; }
.demo-status strong { font-size: 13px; line-height: 1.3; }
.demo-status .code { font-size: 11px; white-space: nowrap; }
.demo-row { padding: 5px 0; gap: 8px; font-size: 12.5px; }
.demo-row .name { line-height: 1.2; }
.demo-row .spec { font-size: 10.5px; margin-top: 1px; }
.demo-row .val { font-size: 12.5px; min-width: 58px; }
.demo-controls label { font-size: 12.5px; }
.demo-controls .seg button { padding: 6px 10px; font-size: 12.5px; }
.demo-actions { gap: 6px; flex-wrap: nowrap; }
.demo-actions .btn-sm { padding: 8px 11px; font-size: 13px; }
.demo-actions .btn-icon { padding: 8px 9px; }
.demo-actions .btn-icon svg { width: 16px; height: 16px; }
.demo-foot { font-size: 11px; margin-top: 0; }
@media (max-width: 960px) {
  .demo { grid-template-columns: 1fr; }
  .demo-stage .stamp { display: none; }
  .demo-actions { flex-wrap: wrap; }
}
.demo-stage .hint { max-width: calc(100% - 2 * var(--s4)); align-items: flex-start; line-height: 1.3; }
.demo-stage .hint svg { flex: none; margin-top: 1px; }

/* ==========================================================================
   v4 (6 Nov): proof band, mobile demo action bar, ROI mobile density,
   example loading feedback
   ========================================================================== */

/* ---------- Proof band ---------- */
.proof.band-midnight { border: 0; padding: var(--s16) 0 var(--s16); position: relative; }
.proof .wrap { display: block; position: relative; }
.proof-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s8); padding-bottom: var(--s8); border-bottom: 1px solid var(--line); }
.proof-head h2 { margin-top: var(--s3); max-width: 24ch; }
.proof-head h2 em { font-style: italic; color: var(--amber); }
.proof-link { display: inline-flex; align-items: center; gap: 8px; color: var(--porcelain); font-weight: 700; font-size: 16px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--mist); white-space: nowrap; }
.proof-link svg { width: 18px; height: 18px; transition: transform .25s ease; }
.proof-link:hover { color: var(--amber); border-bottom-color: var(--amber); }
.proof-link:hover svg { transform: translateY(3px); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof .proof-item, .proof .proof-item:first-child { padding: var(--s8) var(--s6) 0; border-right: 1px solid var(--line); border-bottom: 0; display: flex; flex-direction: column; }
.proof .proof-item:first-child { padding-left: 0; }
.proof .proof-item:last-child { border-right: 0; padding-right: 0; }
.proof-art { height: 120px; display: flex; align-items: flex-end; margin-bottom: var(--s6); }
.proof-fig { height: 100%; width: auto; max-width: 100%; overflow: visible; display: block; }
.proof .stat { color: #fff; font-size: clamp(40px, 4.2vw, 60px); white-space: nowrap; }
.proof .stat .u { font-size: .5em; font-weight: 700; letter-spacing: 0; color: var(--porcelain); }
.proof .stat .to { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--mist); font-size: .55em; letter-spacing: 0; }
.proof .stat-label { color: var(--porcelain); font-size: 17px; line-height: 1.4; font-weight: 600; margin-top: var(--s3); max-width: 26ch; }
.proof .source { color: var(--mist); font-size: 15px; line-height: 1.45; margin-top: auto; padding-top: var(--s4); max-width: 30ch; }

/* figure: scans grid */
.fig-grid .sq rect { fill: rgba(200,203,230,.16); }
.js .proof-item .fig-grid .sq rect { transition: fill .25s ease; }
.proof-grid.is-live .fig-grid .sq rect { fill: var(--porcelain); transition-delay: calc(var(--i) * 13ms); }
.no-js .fig-grid .sq rect, html:not(.js) .fig-grid .sq rect { fill: var(--porcelain); }
/* figure: map */
.fig-map .land circle { fill: rgba(200,203,230,.38); }
.fig-map .pin .core { fill: var(--amber); stroke: #fff; stroke-width: 1.5; }
.fig-map .pin .ring { fill: none; stroke: var(--amber); stroke-width: 1; opacity: 0; }
.js .fig-map .pin { opacity: 0; transform-box: fill-box; transform-origin: center; }
.proof-grid.is-live .fig-map .pin { animation: pin-in .5s cubic-bezier(.2,.8,.2,1.2) forwards; animation-delay: calc(.35s + var(--i) * .28s); }
.proof-grid.is-live .fig-map .pin .ring { animation: pin-ring 1.4s ease-out forwards; animation-delay: calc(.55s + var(--i) * .28s); transform-box: fill-box; transform-origin: center; }
@keyframes pin-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pin-ring { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.9); } }
/* figure: desks */
.fig-desks .desk rect { fill: none; stroke-width: 1.5; }
.fig-desks .desk .cap { stroke-dasharray: 3 3; stroke-width: 1; }
.fig-desks .is-first rect { stroke: var(--porcelain); }
.fig-desks .is-first circle { fill: var(--porcelain); }
.fig-desks .is-new rect { stroke: var(--amber); }
.fig-desks .is-new circle { fill: var(--amber); }
.fig-desks .is-plan rect { stroke: var(--mist); stroke-dasharray: 5 4; }
.fig-desks .is-plan .cap { display: none; }
.fig-desks .is-plan circle { fill: var(--mist); }
.fig-desks .is-plan:nth-child(4) { opacity: .6; } .fig-desks .is-plan:nth-child(5) { opacity: .42; }
.fig-desks .is-plan:nth-child(6) { opacity: .26; } .fig-desks .is-plan:nth-child(7) { opacity: .12; }
.js .fig-desks .is-new, .js .fig-desks .is-plan { visibility: hidden; }
.proof-grid.is-live .fig-desks .is-new { visibility: visible; animation: desk-in .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.5s + (var(--i) - 1) * .3s); }
.proof-grid.is-live .fig-desks .is-plan { visibility: visible; animation: desk-fade .8s ease both; animation-delay: calc(1.2s + (var(--i) - 3) * .15s); }
@keyframes desk-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes desk-fade { from { opacity: 0; } }
/* figure: dial */
.fig-dial .face { fill: none; stroke: rgba(200,203,230,.35); stroke-width: 1; }
.fig-dial .ticks line { stroke: var(--mist); stroke-width: 1.5; opacity: .6; }
.fig-dial .arc { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fig-dial .end { stroke: var(--amber); stroke-width: 2; }
.fig-dial .hand { stroke: var(--porcelain); stroke-width: 2; transform-origin: 58px 58px; }
.fig-dial .hub { fill: var(--porcelain); }
.js .fig-dial .arc { stroke-dashoffset: 1; }
.js .fig-dial .e1 { opacity: 0; }
.js .fig-dial .hand { transform: rotate(-90deg); }
.proof-grid.is-live .fig-dial .arc { transition: stroke-dashoffset 1.4s cubic-bezier(.3,.1,.2,1) .2s; stroke-dashoffset: 0; }
.proof-grid.is-live .fig-dial .hand { transition: transform 1.4s cubic-bezier(.3,.1,.2,1) .2s; transform: rotate(0deg); }
.proof-grid.is-live .fig-dial .e1 { transition: opacity .3s ease 1.5s; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .fig-grid .sq rect { fill: var(--porcelain) !important; transition: none !important; }
  .js .fig-map .pin, .js .fig-desks .is-new, .js .fig-desks .is-plan { opacity: 1; visibility: visible; animation: none !important; }
  .js .fig-desks .is-plan:nth-child(4) { opacity: .6; } .js .fig-desks .is-plan:nth-child(5) { opacity: .42; }
  .js .fig-desks .is-plan:nth-child(6) { opacity: .26; } .js .fig-desks .is-plan:nth-child(7) { opacity: .12; }
  .js .fig-dial .arc { stroke-dashoffset: 0; transition: none; } .js .fig-dial .e1 { opacity: 1; } .js .fig-dial .hand { transform: none; transition: none; }
}
@media (max-width: 960px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof .proof-item, .proof .proof-item:first-child, .proof .proof-item:last-child { padding: var(--s8) var(--s6) var(--s8); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .proof .proof-item:nth-child(odd) { padding-left: 0; }
  .proof .proof-item:nth-child(even) { border-right: 0; padding-right: 0; }
  .proof .proof-item:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 600px) {
  .proof.band-midnight { padding: var(--s12) 0; }
  .proof-head { flex-direction: column; align-items: flex-start; gap: var(--s4); padding-bottom: var(--s6); }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof .proof-item, .proof .proof-item:first-child, .proof .proof-item:last-child { padding: var(--s6) var(--s3) var(--s6) 0; }
  .proof .proof-item:nth-child(even) { padding-left: var(--s3); padding-right: 0; }
  .proof .proof-item:nth-last-child(-n+2) { padding-bottom: 0; }
  .proof-art { height: 76px; margin-bottom: var(--s4); }
  .proof .stat { font-size: 32px; white-space: normal; }
  .proof .stat-label { font-size: 16px; }
  .proof .source { font-size: 15px; }
}

/* ---------- Demo action dock (phones and tablets) ---------- */
.demo-dock { display: none; }
@media (max-width: 960px) {
  .demo-dock {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
    position: sticky; bottom: 0; z-index: 5;
    padding: 10px var(--s4) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--midnight-deep); color: var(--porcelain);
    border-top: 2px solid var(--amber);
  }
  .dock-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
  .dock-status .pill { font-size: 13px; }
  .dock-text { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--porcelain); }
  .demo-dock .demo-actions { flex: none; flex-wrap: nowrap; gap: 6px; }
  .demo-dock .btn-sm { min-height: 44px; padding: 10px 14px; font-size: 15px; }
  .demo-dock .btn-icon { min-width: 44px; padding: 10px; justify-content: center; }
  .demo-dock .btn-ink { background: var(--amber); color: var(--midnight-deep); border-color: var(--amber); }
  .demo-dock .btn-ink:hover { background: #ffb73d; }
  .demo-dock .btn-ghost { background: transparent; color: var(--porcelain); border-color: rgba(200,203,230,.55); }
  .demo-dock .btn-ghost:hover { border-color: var(--porcelain); color: #fff; background: transparent; }
  .demo:not(.is-measured) .demo-dock [data-measure]::after { border-color: #fff; }
  .demo-dock [data-measure] svg { width: 18px; height: 18px; }

  /* The hint sits under the garment rather than over it */
  .demo-stage { padding-bottom: 0; }
  .demo-stage .hint { position: static; margin: 0 var(--s4) var(--s4); max-width: none; font-size: 15px; background: #fff; }
  .demo-pick button { font-size: 15px; padding: 8px 12px; min-height: 40px; }
  .demo-panel { padding: var(--s6) var(--s4); gap: 12px; }
  .demo-panel header h3 { font-size: 18px; }
  .demo-steps li { font-size: 15px; padding: 8px 10px; }
  .demo-steps li i { width: 20px; height: 20px; font-size: 12px; }
  .demo-status strong { font-size: 15px; }
  .demo-row { font-size: 15px; padding: 8px 0; }
  .demo-row .spec { font-size: 13px; }
  .demo-row .val { font-size: 15px; }
  .demo-controls label { font-size: 15px; }
  .demo-controls .seg button { font-size: 15px; padding: 8px 14px; min-height: 40px; }
  .demo-foot { font-size: 13px; }
}
@media (max-width: 420px) {
  .demo-dock { padding-left: var(--s3); padding-right: var(--s3); gap: 8px; }
  .demo-dock [data-next] { padding-left: 10px; padding-right: 10px; }
  .dock-text { font-size: 15px; }
}
@media (max-width: 600px) {
  .demo-dock { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; }
  .dock-status { flex-direction: row; align-items: center; gap: 10px; }
  .demo-dock .demo-actions { display: grid; grid-template-columns: 1fr 1fr 44px; }
  .demo-dock .btn-sm { justify-content: center; }
}
@media (max-width: 960px) {
  .demo-panel header .pill, .demo-panel .demo-status strong { display: none; }
  .demo-panel .demo-status { justify-content: flex-start; background: transparent; border: 0; padding: 0; }
  .demo:not(.is-measured) .demo-dock [data-measure]::after { inset: -4px; border-color: var(--amber); border-radius: 6px; }
}
.hero { overflow: clip; }

/* ---------- ROI: example loaded note ---------- */
.loaded-note {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s4) var(--s8); align-items: center;
  margin-bottom: var(--s8); padding: var(--s6); background: var(--amber-tint);
  border: 1px solid var(--line); border-left: 0; position: relative; scroll-margin-top: 120px;
}
.loaded-note::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 4px; background: var(--amber); }
.loaded-note[hidden] { display: none; }
.loaded-note:focus { outline: 2px solid var(--focus); outline-offset: 3px; }
.ln-tag { display: inline-block; font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.loaded-note p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 70ch; }
.ln-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.ln-actions .btn svg { width: 16px; height: 16px; }
.ln-see { display: none !important; }
.loaded-note.is-new { animation: note-in .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes note-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* what changed: inputs and result tiles get a short amber wash */
.loc.is-flash input, .loc.is-flash select { animation: field-flash 1.6s ease both; }
.kpi.is-flash { animation: kpi-flash 1.6s ease both; }
.kpi.is-hero.is-flash { animation: none; }
@keyframes field-flash { 0%, 30% { background-color: var(--amber-tint); border-bottom-color: var(--amber); } 100% { } }
@keyframes kpi-flash { 0%, 30% { background-color: var(--amber-tint); } 100% { } }
[data-example][aria-pressed="true"] { background: var(--porcelain); color: var(--midnight); border-color: var(--porcelain); }
@media (prefers-reduced-motion: reduce) {
  .loaded-note.is-new, .loc.is-flash input, .loc.is-flash select, .kpi.is-flash { animation: none; }
}

/* ---------- ROI: readable sizes everywhere ---------- */
.num label { font-size: 15px; line-height: 1.3; }
.num input, .num select { font-size: 16px; }
.assume .num small { font-size: 14px; line-height: 1.45; margin-top: 4px; }
.kpi .note { font-size: 14px; line-height: 1.45; }
.loc-head input.loc-name { font-size: 16px; }

/* ---------- ROI: phones and tablets ---------- */
@media (max-width: 960px) {
  .ln-see { display: inline-flex !important; }
  .loaded-note { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-hero .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .page-hero .btn-row .btn { justify-content: center; text-align: center; white-space: normal; line-height: 1.25; padding: 10px 12px; min-height: 52px; }
  .loaded-note { padding: var(--s4); margin-bottom: var(--s6); scroll-margin-top: 90px; }
  .loaded-note p { font-size: 16px; }
  .ln-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ln-actions .btn { justify-content: center; }

  /* location fields in pairs */
  .loc-body { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); padding: var(--s4); }
  .loc-body .num { display: flex; flex-direction: column; justify-content: flex-end; }
  .loc-body .num label { font-size: 15px; }
  .loc-body .num label .unit { display: block; font-size: 14px; }

  /* assumptions: label over a short input, two to a row */
  .assume { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); }
  .assume .num { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
  .assume .num input { width: 100%; }
  .assume .slider { grid-column: 1 / -1; }
  .roi-card { padding: var(--s4); }

  /* results: headline tile across, the rest in pairs */
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi, .kpi:nth-child(2n), .kpi:nth-child(3n) { padding: var(--s4); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .kpi.is-hero, .kpi:last-child { grid-column: 1 / -1; border-right: 0; }
  .kpi:nth-child(odd):not(:first-child):not(:last-child) { border-right: 0; }
  .kpi:last-child { border-bottom: 0; }
  .kpi .stat { font-size: 30px; }
  .kpi .stat-label { font-size: 15px; line-height: 1.3; }

  /* notes title block in pairs */
  .tb-notes { grid-template-columns: 1fr 1fr; }
  .tb-notes li { grid-template-columns: 1fr; gap: 8px; padding: 14px 12px 16px; border-bottom: 1px solid var(--line); }
  .tb-notes li:nth-child(odd) { border-right: 1px solid var(--line); }
  .tb-notes li:nth-last-child(-n+2) { border-bottom: 0; }
  .tb-notes p { font-size: 15px; line-height: 1.45; }
  .tb-notes strong { font-size: 16px; }

  /* hero: the three stats in one row */
  .hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
  .hero-proof .stat-label { font-size: 15px; }
}
@media (max-width: 960px) {
  .roi-layout { grid-template-columns: minmax(0, 1fr); }
  .roi-results > * { min-width: 0; }
  #loc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 600px) {
  .loc-body, .assume, .kpis, .tb-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num input, .num select { min-width: 0; }
}
.loaded-note:focus { outline: none; }
.loaded-note:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.assume small, .assume .slider small { font-size: 14px; line-height: 1.45; }

/* ==========================================================================
   v5 (9 Nov): fabric textures
   fabric-midnight.jpg and fabric-porcelain.jpg are recolored to the brand
   midnight and porcelain and tile without seams (tools/make_fabric.py).
   ========================================================================== */
/* Midnight sheets: fabric under the drawing-sheet grid */
.sheet {
  background-color: var(--midnight);
  background-image:
    linear-gradient(rgba(200, 203, 230, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 203, 230, .06) 1px, transparent 1px),
    url("../assets/img/fabric-midnight.jpg");
  background-size: 48px 48px, 48px 48px, 1000px auto;
  background-position: -1px -1px, -1px -1px, 0 0;
}
/* Light fabric for the home hero and selected light sections */
.fabric {
  background-color: var(--porcelain);
  background-image: url("../assets/img/fabric-porcelain.jpg");
  background-size: 600px auto;
}
.section.fabric { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.fabric + .section.fabric { border-top: 0; }
@media print { .sheet, .fabric { background-image: none !important; } }
/* The notes block overlaps the hero: fabric starts under the hero, block sits on top */
.tblock-wrap.fabric { background-color: transparent; background-image: linear-gradient(var(--porcelain), var(--porcelain)); background-image: none; position: relative; }
.tblock-wrap.fabric::before { content: ""; position: absolute; left: 0; right: 0; top: var(--s12); bottom: 0; background: var(--porcelain) url("../assets/img/fabric-porcelain.jpg") 0 0 / 600px auto; z-index: -1; }
.tblock-wrap.fabric + .section.fabric { border-top: 0; }

/* v6 (9 Nov): In Use Today gets the blue basket weave; the light fabric is now a fine rib weave */
.proof.sheet {
  background-color: var(--midnight);
  background-image: url("../assets/img/fabric-weave-midnight.jpg");
  background-size: cover; background-position: center;
}
.fabric, .tblock-wrap.fabric::before { background-size: 1000px auto; }
.tblock-wrap.fabric::before { background-image: url("../assets/img/fabric-porcelain.jpg"); }
/* Blue basket weave on a dark section (Where fit is decided). Ground moves to midnight to match the weave's average color */
.band-dark.weave {
  --ground: var(--midnight); --surface: var(--midnight-deep);
  background-color: var(--midnight);
  background-image: url("../assets/img/fabric-weave-midnight.jpg");
  background-size: cover; background-position: center;
}
@media print { .weave { background-image: none !important; } }
/* The weave now tiles: fixed thread size at every width */
.proof.sheet, .band-dark.weave { background-size: 1400px auto; background-repeat: repeat; background-position: 0 0; }
/* Twill weave (third light texture): shown at 1:1 so the weave reads */
.fabric, .tblock-wrap.fabric::before { background-size: 1400px auto; }

/* v9 (10 Nov): Hannes's notes */
.fig-map .inst { fill: none; stroke: var(--mist); stroke-width: 1.5; }
blockquote.pull { margin: var(--s6) 0; padding: 2px 0 2px var(--s6); border-left: 3px solid var(--amber); }
blockquote.pull p { font-family: var(--font-display); font-style: italic; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; color: var(--ink); margin: 0; max-width: 60ch; }
blockquote.pull footer { margin-top: var(--s3); font-size: 15px; font-weight: 700; color: var(--ink-muted); }
.name-note { margin-top: var(--s8); padding: var(--s6); background: var(--amber-tint); border: 1px solid var(--line); }
.name-note .label { display: block; margin-bottom: var(--s3); }
.name-note p { margin: 0; font-size: 18px; line-height: 1.55; }
@media (min-width: 961px) { .overlay-stage { align-self: start; position: sticky; top: 140px; } }
blockquote.pull p { font-size: clamp(19px, 1.5vw, 21px); }

/* ==========================================================================
   v10 (11 Nov): canvas texture, map on linen, pillar and proof figures
   ========================================================================== */
/* Light canvas weave, shown 1:1 so the weave reads */
.fabric, .tblock-wrap.fabric::before { background-image: url("../assets/img/fabric-canvas.jpg"); background-size: 1680px auto; }
/* Plain linen on a midnight section (the footprint map) */
.band-midnight.linen { background-color: var(--midnight); background-image: url("../assets/img/fabric-midnight.jpg"); background-size: 1000px auto; }
.band-midnight .map { background: transparent; border-color: var(--line); }
.band-midnight .map-svg { opacity: .55; }
.band-midnight .mk text { fill: var(--porcelain); }
.band-midnight .mk circle.core { stroke: var(--midnight); }
.band-midnight .mk.is-team circle.core { fill: var(--porcelain); }
.band-midnight .mk.is-installed circle.core { fill: var(--midnight); stroke: var(--porcelain); stroke-width: 2.5; }
.band-midnight .arc { opacity: .7; }
.band-midnight .map-legend { color: var(--porcelain); }
.band-midnight .map-legend i { border-color: var(--midnight); outline-color: var(--line); }
.band-midnight .map-legend .i-team { background: var(--porcelain); }
.band-midnight .map-legend .i-inst { background: var(--midnight); outline: 2px solid var(--porcelain); }
.band-midnight .map-card { background: var(--porcelain); color: var(--midnight); }
.band-midnight .map-card strong { color: #8A5300; }
@media print { .linen { background-image: none !important; } }

/* ---------- Proof band: scans figure ---------- */
.fig-scans .fr { fill: none; stroke: var(--mist); stroke-width: 1.2; }
.fig-scans .fr:nth-child(1) { opacity: .25; } .fig-scans .fr:nth-child(2) { opacity: .4; }
.fig-scans .fr:nth-child(3) { opacity: .55; } .fig-scans .fr:nth-child(4) { opacity: .75; }
.fig-scans .fr.front { fill: var(--midnight-deep); stroke: var(--porcelain); stroke-width: 1.5; }
.fig-scans .tee { fill: none; stroke: var(--porcelain); stroke-width: 1.3; }
.fig-scans .tee.nk { stroke-width: 1; }
.fig-scans .ml { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fig-scans .kp { fill: var(--amber); stroke: none; }
.fig-scans .lk { fill: none; stroke: var(--mist); stroke-width: 1.2; opacity: .7; }
.fig-scans .rd .c { fill: var(--amber); }
.fig-scans .rd .b { fill: var(--mist); opacity: .55; }
.fig-scans .rd .v { fill: var(--porcelain); }
.js .fig-scans .fr { opacity: 0; transform: translate(8px, -6px); }
.js .fig-scans .ml { stroke-dashoffset: 1; }
.js .fig-scans .kp, .js .fig-scans .rd, .js .fig-scans .lk { opacity: 0; }
.proof-grid.is-live .fig-scans .fr { transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * .12s); transform: none; }
.proof-grid.is-live .fig-scans .fr:nth-child(1) { opacity: .25; } .proof-grid.is-live .fig-scans .fr:nth-child(2) { opacity: .4; }
.proof-grid.is-live .fig-scans .fr:nth-child(3) { opacity: .55; } .proof-grid.is-live .fig-scans .fr:nth-child(4) { opacity: .75; }
.proof-grid.is-live .fig-scans .fr.front { opacity: 1; }
.proof-grid.is-live .fig-scans .ml { transition: stroke-dashoffset .6s ease .8s; stroke-dashoffset: 0; }
.proof-grid.is-live .fig-scans .kp { transition: opacity .3s ease 1.2s; opacity: 1; }
.proof-grid.is-live .fig-scans .lk { transition: opacity .3s ease 1.3s; opacity: .7; }
.proof-grid.is-live .fig-scans .rd { transition: opacity .35s ease; transition-delay: calc(1.45s + var(--k) * .16s); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .fig-scans .fr, .js .fig-scans .kp, .js .fig-scans .rd, .js .fig-scans .lk { transform: none; transition: none !important; opacity: 1; }
  .js .fig-scans .fr:nth-child(1) { opacity: .25; } .js .fig-scans .fr:nth-child(2) { opacity: .4; }
  .js .fig-scans .fr:nth-child(3) { opacity: .55; } .js .fig-scans .fr:nth-child(4) { opacity: .75; }
  .js .fig-scans .ml { stroke-dashoffset: 0; transition: none !important; }
}

/* ---------- Same label overlay ---------- */
.overlay-stage { padding: var(--s8) var(--s8) var(--s6); }
.overlay-stage svg { display: block; max-width: 520px; margin: 0 auto; }
.overlay-stage .tee-a { fill: rgba(32,32,70,.05); stroke: var(--midnight); stroke-width: 2.5; stroke-linejoin: round; }
.overlay-stage .tee-a.nk { fill: none; stroke-width: 2; }
.overlay-stage .tee-b { fill: none; stroke: var(--midnight); stroke-width: 2.5; stroke-dasharray: 7 6; stroke-linejoin: round; }
.overlay-stage .sz { font-family: var(--font-mono); font-size: 15px; font-weight: 600; fill: var(--midnight); }
.overlay-stage .sz-a { fill: #fff; }
.overlay-stage .gap-line { fill: none; stroke: var(--amber); stroke-width: 3; opacity: 1; }
.overlay-stage .gap-n { fill: var(--amber); }
.overlay-stage .gap-t { font-family: var(--font-sans); font-size: 15px; font-weight: 700; fill: var(--midnight-deep); }
.js .overlay-stage .gap { opacity: 0; transition: opacity .45s ease; transition-delay: calc(.3s + var(--n) * .25s); }
.js .overlay-stage.is-visible .gap { opacity: 1; }
.js .overlay-stage .tee-b { stroke-dashoffset: 260; transition: stroke-dashoffset 1.2s ease; }
.js .overlay-stage.is-visible .tee-b { stroke-dashoffset: 0; }
.overlay-read { width: 100%; border-collapse: collapse; margin-top: var(--s6); font-size: 16px; }
.overlay-read th { text-align: left; font-size: 14px; font-weight: 700; color: var(--ink-muted); padding: 0 8px 8px 0; border-bottom: 1px solid var(--line); }
.overlay-read td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.overlay-read td .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: var(--midnight-deep); font-weight: 700; font-size: 13px; margin-right: 8px; }
.overlay-read td .code { color: var(--amber-text); font-weight: 600; margin-right: 6px; }
.overlay-read td.code { font-family: var(--font-mono); font-size: 15px; white-space: nowrap; }
.overlay-read td.d { font-weight: 600; color: var(--ink); }
.overlay-cap { margin: var(--s4) 0 0; font-size: 15px; color: var(--ink-muted); line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .js .overlay-stage .gap, .js .overlay-stage .tee-b { opacity: 1; stroke-dashoffset: 0; transition: none; } }
@media (max-width: 600px) {
  .overlay-stage { padding: var(--s4); }
  .overlay-read { font-size: 15px; }
  .overlay-read th:nth-child(2), .overlay-read td:nth-child(2) { display: none; }
}

/* ---------- Pillar drawings ---------- */
.pillar { display: flex; flex-direction: column; }
.pillar-art { margin: calc(-1 * var(--s6)) calc(-1 * var(--s6)) var(--s6); padding: var(--s4) var(--s4) var(--s3); background: var(--porcelain); border-bottom: 1px solid var(--line); }
.pillar-art .pa { display: block; width: 100%; height: auto; max-height: 130px; overflow: visible; }
.pa .ln { fill: none; stroke: var(--midnight); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.pa .ln.dash { stroke-dasharray: 3 3; stroke-width: 1; opacity: .7; }
.pa .ln.eq { stroke: var(--amber-text); stroke-width: 2; }
.pa .ln.ghost { opacity: .25; } .pa .ln.ghost2 { opacity: .5; fill: #fff; }
.pa .card { fill: #fff; stroke: var(--midnight); stroke-width: 1.6; }
.pa .ml { fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pa .kp { fill: var(--amber); stroke: #fff; stroke-width: 1; }
.pa .am { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pa .fl { fill: var(--midnight); }
.pa .amf { fill: var(--amber); }
.pa .lt { fill: var(--porcelain); opacity: .85; }
.pa .lt2 { fill: var(--midnight); opacity: .5; }
.pa .dashbox { fill: none; stroke: var(--amber-text); stroke-width: 1.5; stroke-dasharray: 4 3; }
.pa .pass rect:first-child { fill: var(--pass); }
.pa .pass path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pa .pass .pt { fill: #fff; }
.js .pillars .pa .ml, .js .pillars .pa .am { stroke-dashoffset: 1; }
.js .pillars .pa .newrow { opacity: 0; transform: translateX(-10px); }
.js .pillars .pa .pass { opacity: 0; transform: scale(.85); transform-origin: 73px 87px; }
.pillars.is-visible .pa .ml, .pillars.is-visible .pa .am { transition: stroke-dashoffset .7s ease; transition-delay: calc(.5s + var(--p, 0) * .12s); stroke-dashoffset: 0; }
.pillars.is-visible .pa .newrow { transition: opacity .5s ease 1.1s, transform .6s cubic-bezier(.2,.7,.2,1) 1.1s; opacity: 1; transform: none; }
.pillars.is-visible .pa .pass { transition: opacity .35s ease 1.2s, transform .45s cubic-bezier(.2,.8,.2,1.3) 1.2s; opacity: 1; transform: none; }
.pillar:nth-child(2) { --p: 1; } .pillar:nth-child(3) { --p: 2; } .pillar:nth-child(4) { --p: 3; } .pillar:nth-child(5) { --p: 4; }
@media (prefers-reduced-motion: reduce) {
  .js .pillars .pa .ml, .js .pillars .pa .am { stroke-dashoffset: 0; transition: none; }
  .js .pillars .pa .newrow, .js .pillars .pa .pass { opacity: 1; transform: none; transition: none; }
}
.pillar h3 { font-size: 19px; }
.pillar p { font-size: 16px; line-height: 1.55; }
@media (max-width: 600px) {
  .pillar { display: grid; grid-template-columns: 112px 1fr; column-gap: var(--s4); align-items: start; padding: var(--s4); }
  .pillar-art { grid-row: 1 / span 3; margin: 0; padding: 8px; border: 1px solid var(--line); }
  .pillar .code { margin-bottom: 4px; }
  .pillar h3 { font-size: 18px; }
}
/* Canvas at half size: finer weave, sharp on high-resolution screens */
.fabric, .tblock-wrap.fabric::before { background-size: 840px auto; }
/* Home map: blue basket weave */
.band-midnight.weave-mid { background-color: var(--midnight); background-image: url("../assets/img/fabric-weave-midnight.jpg"); background-size: 1400px auto; }
@media print { .weave-mid { background-image: none !important; } }
.fabric .parts { background: var(--surface); border: 1px solid var(--line); padding: 0 var(--s4); }
/* Plain linen on a dark section (Platform: grows with your spec) */
.band-dark.linen { --ground: var(--midnight); --surface: var(--midnight-deep); background-color: var(--midnight); background-image: url("../assets/img/fabric-midnight.jpg"); background-size: 1000px auto; }

/* Hem between the closing band and the footer: an amber stitch line, then a pinked edge
   where the fabric is cut and the flat footer begins */
.footer { background: var(--midnight-deep); position: relative; }
.cta-band { position: relative; }
.cta-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 30px; height: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--amber) 0 14px, transparent 14px 22px);
  opacity: .9;
}
.cta-band + .footer::before, main + .footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; pointer-events: none;
  background:
    linear-gradient(135deg, transparent 50%, var(--midnight-deep) 50%) 0 0 / 26px 14px repeat-x,
    linear-gradient(225deg, transparent 50%, var(--midnight-deep) 50%) 0 0 / 26px 14px repeat-x;
}
@media print { .cta-band::after, .footer::before { display: none; } }

/* ==========================================================================
   v11 (11 Nov): a signature hem at the bottom of every fabric section,
   one per fabric, and plainer hero eyebrows
   ========================================================================== */
.footer::before { content: none !important; }
section.fabric, .sheet, .band-dark.weave, .weave-mid, .proof { position: relative; }
.section.fabric, .page-hero.fabric, .page-hero.sheet { border-bottom: 0; }

/* Linen sheets (Platform and Calculator heroes, closing bands): a pinked edge
   with an amber stitch line above it. The gaps between the teeth are painted
   with whatever comes next. */
.sheet:not(.proof)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 30px; height: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--amber) 0 14px, transparent 14px 22px);
  opacity: .9;
}
.sheet:not(.proof)::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 15px; pointer-events: none; z-index: 1;
  background: var(--midnight-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='15'%3E%3Cpolygon points='0,0 13,14 0,14 0,15 26,15 26,14 13,14 26,0'/%3E%3C/svg%3E") 0 100% / 26px 15px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='15'%3E%3Cpolygon points='0,0 13,14 0,14 0,15 26,15 26,14 13,14 26,0'/%3E%3C/svg%3E") 0 100% / 26px 15px repeat-x;
}
.page-hero.sheet::before { background: var(--porcelain) url("../assets/img/fabric-canvas.jpg") 0 0 / 840px auto; }
.page-hero.sheet { padding-bottom: calc(var(--s16) + 24px); }

/* Canvas (light gray): a fold-over hem with a fine double stitch in matching thread */
section.fabric::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; pointer-events: none;
  background:
    /* stitch row 1: thread a shade darker than the cloth, with a highlight above each stitch */
    repeating-linear-gradient(90deg, rgba(255,255,255,.95) 0 7px, transparent 7px 11px) 0 8px / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, #C7CADF 0 7px, transparent 7px 11px) 0 9px / 100% 1px no-repeat,
    /* stitch row 2, offset half a stitch */
    repeating-linear-gradient(90deg, rgba(255,255,255,.95) 0 7px, transparent 7px 11px) 5px 14px / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, #C7CADF 0 7px, transparent 7px 11px) 5px 15px / 100% 1px no-repeat,
    /* the fold: a crease at the top, a slightly deeper tone over the doubled cloth, a firm edge at the bottom */
    linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)) 0 0 / 100% 1px no-repeat,
    linear-gradient(rgba(32,32,70,.09), rgba(32,32,70,.09)) 0 1px / 100% 1px no-repeat,
    linear-gradient(rgba(32,32,70,.035), rgba(32,32,70,.035)) 0 2px / 100% 100% no-repeat,
    linear-gradient(rgba(32,32,70,.16), rgba(32,32,70,.16)) 0 100% / 100% 1px no-repeat;
}

/* Basket weave (simple blue): one clean row of short amber running stitches */
.band-dark.weave::after, .weave-mid::after, .proof::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 14px);
}
.band-dark.weave::before, .weave-mid::before, .proof::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: rgba(20,20,46,.9);
}
@media print { .sheet::before, .sheet::after, section.fabric::after, .weave::after, .weave-mid::after, .proof::after, .weave::before, .weave-mid::before, .proof::before { display: none; } }

/* Hero eyebrows: plain sentence case, larger, no mark */
.hero .label, .page-hero .label {
  display: block; font-size: 19px; line-height: 1.4; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--ink); margin-bottom: var(--s4); max-width: 40ch;
}
.hero .label::before, .page-hero .label::before { content: none; }
.band-midnight .page-hero .label, .page-hero.band-midnight .label { color: var(--porcelain); }
@media (max-width: 600px) { .hero .label, .page-hero .label { font-size: 17px; } }

/* v11.1: restore the original pinked edge geometry on the linen sheets.
   A 14 px band at the bottom, filled with whatever comes next, with small
   fabric-colored triangles (14 px wide, 7 px deep) hanging into it every 26 px. */
.sheet:not(.proof)::before {
  bottom: -1px; height: 14px;
  -webkit-mask: linear-gradient(135deg, transparent 50%, #000 50%) 0 0 / 26px 14px repeat-x,
                linear-gradient(225deg, transparent 50%, #000 50%) 0 0 / 26px 14px repeat-x;
          mask: linear-gradient(135deg, transparent 50%, #000 50%) 0 0 / 26px 14px repeat-x,
                linear-gradient(225deg, transparent 50%, #000 50%) 0 0 / 26px 14px repeat-x;
}

/* v11.2: heroes on the checked linen get the approved hem exactly as the closing bands have it:
   pinked teeth over a dark backing, stitch 17 px above the cut. The backing runs 24 px before the
   canvas section starts. */
.page-hero.sheet { padding-bottom: calc(var(--s16) + 34px); }
.page-hero.sheet::before {
  height: 24px; bottom: 0;
  background: var(--midnight-deep);
  -webkit-mask: linear-gradient(135deg, transparent 50%, #000 50%) 0 0 / 26px 14px repeat-x,
                linear-gradient(225deg, transparent 50%, #000 50%) 0 0 / 26px 14px repeat-x,
                linear-gradient(#000, #000) 0 13px / 100% calc(100% - 13px) no-repeat;
          mask: linear-gradient(135deg, transparent 50%, #000 50%) 0 0 / 26px 14px repeat-x,
                linear-gradient(225deg, transparent 50%, #000 50%) 0 0 / 26px 14px repeat-x,
                linear-gradient(#000, #000) 0 13px / 100% calc(100% - 13px) no-repeat;
}
.page-hero.sheet::after { bottom: 40px; }

/* Basket weave: the single stitch row in a lighter blue thread (#8486B0, the brand's stroke blue) */
.band-dark.weave::after, .weave-mid::after, .proof::after {
  background: repeating-linear-gradient(90deg, #8486B0 0 6px, transparent 6px 14px);
}

/* v11.3: pinking-shear edge on the checked linen. The fabric itself is cut into clean,
   continuous right-angle teeth (18 px wide, 9 px deep) with a mask, and the next section
   tucks 9 px up underneath, so the gaps show whatever comes next: the canvas under the
   Platform and Calculator heroes, the footer under the closing bands. */
.sheet:not(.proof)::before { content: none !important; }
.sheet:not(.proof) {
  position: relative; z-index: 1;
  -webkit-mask:
    linear-gradient(#000, #000) 0 0 / 100% calc(100% - 9px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9'%3E%3Cpolygon points='0,0 18,0 9,9'/%3E%3C/svg%3E") 0 100% / 18px 9px repeat-x;
          mask:
    linear-gradient(#000, #000) 0 0 / 100% calc(100% - 9px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='9'%3E%3Cpolygon points='0,0 18,0 9,9'/%3E%3C/svg%3E") 0 100% / 18px 9px repeat-x;
}
/* the amber contrast stitch sits 16 px above the cut */
.sheet:not(.proof)::after { bottom: 25px; }
.page-hero.sheet::after { bottom: 25px; }
.page-hero.sheet { padding-bottom: calc(var(--s16) + 16px); }
/* what comes next slides under the teeth */
.page-hero.sheet + section { margin-top: -9px; }
main:has(> .cta-band:last-child) + .footer { margin-top: -9px; }
.footer { z-index: 0; }
/* Calculator: the notes block still overlaps the hero, and its canvas backing starts under the teeth */
.tblock-wrap { z-index: auto; }
.tblock-wrap .tblock { position: relative; z-index: 2; }
.tblock-wrap.fabric::before { top: calc(var(--s12) - 9px); z-index: -1; }
@media print { .sheet:not(.proof) { -webkit-mask: none; mask: none; } }

/* ==========================================================================
   v12 (17 Nov): 13 Nov review. Calculator type switch, per-garment times,
   headcount helper, cloud line; status tags; cloud and record sections;
   seconds saved by garment
   ========================================================================== */
[hidden] { display: none !important; }

/* Status tags used across the site: Estimate, Confirmed, No timing yet */
.st-conf { color: var(--midnight); border-color: var(--midnight); background: #fff; }
.st-gap { color: var(--ink-muted); border-color: var(--ink-muted); border-style: dashed; }
.band-midnight .st-est, .band-dark .st-est, .cta-band .st-est { color: var(--amber); border-color: var(--amber); }
.band-midnight .st-conf, .band-dark .st-conf, .cta-band .st-conf { color: var(--porcelain); border-color: var(--porcelain); background: transparent; }
.st { vertical-align: 1px; }

/* Calculator: factory or brand */
.type-switch { margin-bottom: var(--s3); }
.type-switch button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; font-size: 16px; }
.type-switch button span { font-weight: 400; font-size: 14px; opacity: .8; }
.type-note { margin: 0 0 var(--s4); font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.type-note strong { color: var(--ink); }
.loc-body .full { grid-column: 1 / -1; }
.fnote { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.fnote .st { margin-right: 6px; }
.time-block { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4); padding: var(--s4); margin: 4px calc(-1 * var(--s4)) calc(-1 * var(--s4)); background: var(--porcelain); border-top: 1px solid var(--line); }
.time-block .fnote { grid-column: 1 / -1; }
.time-block input { background: #fff; }
.helper { border: 1px dashed var(--line); padding: 0; }
.helper summary { cursor: pointer; padding: 10px 12px; font-size: 15px; font-weight: 600; color: var(--ink); list-style: none; }
.helper summary::-webkit-details-marker { display: none; }
.helper summary::before { content: "+"; display: inline-block; width: 18px; font-family: var(--font-mono); color: var(--amber-text); }
.helper[open] summary::before { content: "−"; }
.helper-body { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: end; padding: 0 12px 12px; }
.helper-body .fnote { grid-column: 1 / -1; }
.helper-body .btn[disabled] { opacity: .55; cursor: default; }
.cloud-line { display: grid; gap: 8px; padding-top: var(--s3); border-top: 1px solid var(--line); }
.cloud-line small { font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--midnight); margin: 0; }
.result-warn { border: 1px solid var(--amber); background: var(--amber-tint); padding: var(--s4); }
.result-warn p { margin: 0; font-size: 15px; line-height: 1.5; }
.result-warn p + p { margin-top: 8px; }
@media (max-width: 600px) {
  .type-switch button { font-size: 15px; }
  .type-switch button span { font-size: 13px; }
  .helper-body { grid-template-columns: 1fr; }
  .time-block { grid-template-columns: 1fr 1fr; }
}
.assume .cloud-line { grid-column: 1 / -1; }

/* Platform: estimated time saved in the library */
.tsaved { display: flex; align-items: baseline; gap: 10px; margin-top: var(--s6); padding: var(--s4); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--amber); }
.tsaved p { margin: 0; font-size: 16px; line-height: 1.5; }
.tsaved .st { flex: none; }
.tsaved:has(.st-gap) { border-left: 1px dashed var(--ink-muted); border-style: dashed; }

/* Platform: logged with every scan */
.scanlog { margin-top: var(--s12); display: grid; grid-template-columns: 4fr 8fr; gap: var(--s6) var(--s12); align-items: start; }
.scanlog-head h3 { font-size: 22px; }
.scanlog-head p { margin-top: var(--s3); font-size: 17px; line-height: 1.55; color: var(--ink-muted); }
.scanlog-fields { display: grid; grid-template-columns: 1fr 1fr; margin: 0; background: #fff; border: 1px solid var(--line); }
.scanlog-fields > div { padding: var(--s4) var(--s6); border-bottom: 1px solid var(--line); }
.scanlog-fields > div:nth-child(odd) { border-right: 1px solid var(--line); }
.scanlog-fields > div:nth-last-child(-n+2) { border-bottom: 0; }
.scanlog-fields dt { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--amber-text); text-transform: none; }
.scanlog-fields dd { margin: 6px 0 0; font-size: 16px; line-height: 1.5; }
.scanlog-fields dd small { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-muted); }
.scanlog-note { grid-column: 2; margin: 0; }
@media (max-width: 960px) { .scanlog { grid-template-columns: 1fr; } .scanlog-note { grid-column: 1; } }
@media (max-width: 600px) { .scanlog-fields { grid-template-columns: 1fr; } .scanlog-fields > div:nth-child(odd) { border-right: 0; } .scanlog-fields > div:nth-last-child(2) { border-bottom: 1px solid var(--line); } .scanlog-fields > div { padding: var(--s4); } }

/* Platform: the cloud */
.cloud-status { display: flex; align-items: baseline; gap: 10px; margin-top: var(--s4); font-size: 16px; color: var(--ink-muted); }
.cloud-flow { display: grid; grid-template-columns: 4.2fr 1.2fr 6.6fr; align-items: center; gap: 0; margin-top: var(--s8); }
.cf-card { background: #fff; border: 1px solid var(--line); padding: var(--s6); align-self: stretch; }
.cf-scan { background: var(--midnight); color: var(--porcelain); border-color: var(--midnight); align-self: center; }
.cf-scan h3 { color: #fff; }
.cf-step { display: block; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-text); margin-bottom: 8px; }
.cf-scan .cf-step { color: var(--amber); }
.cf-card h3 { font-size: 20px; line-height: 1.3; }
.cf-list { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: 8px; }
.cf-list li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.45; }
.cf-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px #fff; }
.cf-scan .cf-list li::before { box-shadow: 0 0 0 2px var(--midnight); }
.cf-stat { margin: var(--s6) 0 0; padding-top: var(--s4); border-top: 1px solid rgba(200,203,230,.3); font-size: 15px; line-height: 1.5; }
.cf-stat b { font-family: var(--font-display); font-weight: 500; font-size: 28px; color: #fff; margin-right: 6px; }
.cf-stat small { display: block; color: var(--mist); font-size: 14px; margin-top: 4px; }
.cf-stat .st-est { color: var(--amber); border-color: var(--amber); }
.cf-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 8px; }
.cf-link svg { width: 100%; height: 36px; }
.cf-link span { font-size: 14px; color: var(--ink-muted); text-align: center; line-height: 1.3; }
.cf-views { display: grid; gap: var(--s4); }
.cf-views .cf-list { grid-template-columns: 1fr 1fr; column-gap: var(--s6); }
.cf-brand { border-left: 3px solid var(--amber); }
.cf-brand .cf-list { grid-template-columns: 1fr 1fr; }
.cf-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s8); }
.cf-shot { margin: 0; aspect-ratio: 16 / 10; border: 1.5px dashed var(--mist); background: var(--porcelain); display: grid; place-items: center; text-align: center; padding: var(--s4); }
.cf-shot .code { color: var(--ink-muted); font-size: 12px; letter-spacing: .08em; }
.cf-shot p { margin: 6px 0 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.audit { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s8); padding-top: var(--s8); border-top: 1px solid var(--line); }
.audit h3 { font-size: 20px; margin-top: 4px; }
.audit p { margin-top: var(--s3); font-size: 16px; line-height: 1.6; color: var(--ink-muted); max-width: 60ch; }
@media (max-width: 1100px) { .cf-views .cf-list, .cf-brand .cf-list { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .cloud-flow { grid-template-columns: 1fr; }
  .cf-link { flex-direction: row; justify-content: center; padding: var(--s3) 0; }
  .cf-link svg { width: 60px; height: 36px; transform: rotate(90deg); }
  .cf-shots, .audit { grid-template-columns: 1fr; }
  .cf-shot { aspect-ratio: auto; min-height: 120px; }
}

/* Home: estimated seconds saved on the library cards */
.garment-card .saved { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.garment-card .saved .st { margin-right: 0; font-size: 10px; }
.garment-card .saved.is-gap { color: var(--ink-muted); border-top-style: dashed; }

/* v12.1: cloud screens in tabs */
.cf-shots { display: block; margin-top: var(--s12); }
.cf-shots .tabs button { font-size: 16px; }
.cf-panel { display: none; margin: 0; padding: var(--s6); border: 1px solid var(--line); border-top: 0; background: var(--porcelain); }
.cf-panel.is-active { display: block; }
.cf-frame { background: #fff; border: 1px solid var(--line); overflow-x: auto; }
.cf-frame img { display: block; width: 100%; height: auto; }
.cf-panel figcaption { margin-top: var(--s4); font-size: 16px; line-height: 1.55; color: var(--ink-muted); max-width: 72ch; }
.cf-panel figcaption a { white-space: nowrap; }
.cf-source { margin-top: var(--s4); }
@media (max-width: 760px) {
  .cf-panel { padding: var(--s4); }
  .cf-frame img { width: 760px; max-width: none; }
  .cf-shots .tabs button { font-size: 15px; padding: 12px 8px; }
}
.cf-hint { display: none; }
@media (max-width: 760px) {
  .cf-shots .tabs button .tl { display: none; }
  .cf-shots .tabs button .code { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
  .cf-shots .tabs button[aria-selected="true"] .code { color: var(--ink); }
  .cf-hint { display: block; margin: 0 0 var(--s2); font-size: 15px; color: var(--ink-muted); }
}

/* v13.1: TermsFeed cookie banner and preferences center in brand colors */
.termsfeed-com---nb.termsfeed-com---palette-dark,
.termsfeed-com---palette-dark .cc-pc-container,
.termsfeed-com---palette-dark .cc-pc-head,
.termsfeed-com---palette-dark .cc-cp-body,
.termsfeed-com---palette-dark .cc-cp-body-content,
.termsfeed-com---palette-dark .cc-cp-body-tabs,
.termsfeed-com---palette-dark .cc-cp-body-tabs-item,
.termsfeed-com---palette-dark .cc-cp-body-content-entry,
.termsfeed-com---palette-dark .cc-cp-foot { background-color: var(--midnight-deep, #14142E) !important; color: #F4F5FA !important; font-family: Karla, system-ui, sans-serif !important; border-radius: 0 !important; }
.termsfeed-com---nb.termsfeed-com---nb-simple { right: 24px !important; bottom: 24px !important; left: auto !important; max-width: 560px !important; width: calc(100% - 48px) !important; border: 1px solid #8486B0 !important; box-shadow: none !important; }
.termsfeed-com---nb .cc-nb-main-container { padding: 28px 32px !important; }
.termsfeed-com---nb .cc-nb-title { font-family: Fraunces, Georgia, serif !important; font-weight: 400 !important; font-size: 26px !important; color: #F4F5FA !important; margin-bottom: 10px !important; }
.termsfeed-com---nb .cc-nb-text { font-size: 16px !important; line-height: 1.55 !important; color: #C8CBE6 !important; margin-bottom: 20px !important; }
.termsfeed-com---palette-dark .cc-nb-okagree,
.termsfeed-com---palette-dark .cc-cp-foot-save { background: #F4A11B !important; color: #14142E !important; border: 1px solid #F4A11B !important; border-radius: 0 !important; font-family: Karla, sans-serif !important; font-weight: 700 !important; font-size: 16px !important; padding: 11px 20px !important; }
.termsfeed-com---palette-dark .cc-nb-reject { background: transparent !important; color: #F4F5FA !important; border: 1px solid #F4F5FA !important; border-radius: 0 !important; font-family: Karla, sans-serif !important; font-weight: 700 !important; font-size: 16px !important; padding: 11px 20px !important; }
.termsfeed-com---palette-dark .cc-nb-changep { background: transparent !important; color: #C8CBE6 !important; border: 0 !important; border-radius: 0 !important; font-family: Karla, sans-serif !important; font-weight: 600 !important; font-size: 16px !important; padding: 11px 6px !important; text-decoration: underline !important; text-underline-offset: 3px; }
.termsfeed-com---palette-dark .cc-nb-okagree:focus-visible,
.termsfeed-com---palette-dark .cc-nb-reject:focus-visible,
.termsfeed-com---palette-dark .cc-nb-changep:focus-visible,
.termsfeed-com---palette-dark .cc-cp-foot-save:focus-visible { outline: 2px solid #F4A11B !important; outline-offset: 2px !important; box-shadow: none !important; }
.termsfeed-com---palette-dark .cc-pc-container { border: 1px solid #8486B0 !important; }
.termsfeed-com---palette-dark .cc-pc-head,
.termsfeed-com---palette-dark .cc-cp-foot { border-color: rgba(132,134,176,.5) !important; }
.termsfeed-com---palette-dark .cc-pc-head-title-headline { font-family: Fraunces, Georgia, serif !important; font-weight: 400 !important; }
.termsfeed-com---palette-dark .cc-cp-body-tabs-item-link { color: #C8CBE6 !important; font-family: Karla, sans-serif !important; }
.termsfeed-com---palette-dark .cc-cp-body-tabs-item[active=true],
.termsfeed-com---palette-dark .cc-cp-body-tabs-item[active=true] .cc-cp-body-tabs-item-link { background: #202046 !important; color: #F4F5FA !important; }
.termsfeed-com---palette-dark .cc-cp-body-content-entry-title { font-family: Karla, sans-serif !important; color: #F4F5FA !important; }
.termsfeed-com---palette-dark .cc-cp-body-content-entry-text { color: #C8CBE6 !important; }
.termsfeed-com---palette-dark .cc-pc-head-close { color: #F4F5FA !important; }
.cookie-prefs { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-left: 14px; }
@media (max-width: 760px) {
  .termsfeed-com---nb.termsfeed-com---nb-simple { right: 0 !important; bottom: 0 !important; width: 100% !important; max-width: none !important; border-width: 1px 0 0 !important; }
  .termsfeed-com---nb .cc-nb-main-container { padding: 22px 20px !important; }
  .termsfeed-com---nb .cc-nb-title { font-size: 22px !important; }
  .termsfeed-com---nb .cc-nb-text { font-size: 15px !important; }
}
.termsfeed-com---palette-dark .cc-pc-head-close { border: 1px solid rgba(244,245,250,.6) !important; border-radius: 0 !important; background: transparent !important; }
.termsfeed-com---palette-dark .cc-pc-head-close:focus,
.termsfeed-com---palette-dark .cc-pc-head-close:focus-visible { border-color: #F4A11B !important; outline: none !important; }
.termsfeed-com---palette-dark .cc-pc-head-lang select { border-radius: 0 !important; font-family: Karla, sans-serif !important; }
.termsfeed-com---palette-dark .cc-cp-body-tabs-item[active="true"],
.termsfeed-com---palette-dark .cc-cp-body-tabs-item[active="true"] button { background: #202046 !important; color: #F4F5FA !important; }
.termsfeed-com---palette-dark .cc-cp-body-tabs-item[active="true"] { box-shadow: inset 3px 0 0 #8486B0 !important; }
.termsfeed-com---palette-dark .cc-cp-body-tabs-item[active="true"] { border-left-color: #8486B0 !important; }
.termsfeed-com---palette-dark .cc-cp-body-tabs-item[active="true"] .cc-cp-body-tabs-item-link { background: #202046 !important; color: #F4F5FA !important; }
.termsfeed-com---palette-dark .cc-custom-checkbox input[type=checkbox]:checked + label:before { background: #F4A11B !important; }

/* v13.2: privacy policy */
.policy-date { margin-top: var(--s4); font-size: 16px; color: var(--ink-muted); }
.policy-short { list-style: none; padding: 0; margin: var(--s4) 0 0; }
.policy-short li { position: relative; padding: 0 0 var(--s3) 22px; font-size: 17px; line-height: 1.5; }
.policy-short li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--ink); }
.policy { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s12); align-items: start; }
.policy-toc { position: sticky; top: 120px; border-top: 1px solid var(--line); padding-top: var(--s4); }
.policy-toc-title { font-weight: 700; font-size: 16px; margin: 0 0 var(--s3); }
.policy-toc ol { margin: 0; padding-left: 1.3em; }
.policy-toc li { font-size: 16px; line-height: 1.4; margin-bottom: 8px; color: var(--ink-muted); }
.policy-toc a { color: var(--ink); text-decoration: none; }
.policy-toc a:hover, .policy-toc a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.policy-body { max-width: 760px; }
.policy-body h2 { font-size: 30px; margin: var(--s12) 0 var(--s4); scroll-margin-top: 120px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body h3 { font-size: 20px; margin: var(--s8) 0 var(--s3); }
.policy-body p, .policy-body li { font-size: 18px; line-height: 1.65; }
.policy-body p { max-width: 68ch; margin: 0 0 var(--s4); }
.policy-body ul { margin: 0 0 var(--s4); max-width: 68ch; }
.policy-body ul ul { margin-top: var(--s2); }
.policy-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.policy-table-wrap { overflow-x: auto; margin: var(--s4) 0 var(--s6); border: 1px solid var(--line); background: #fff; }
.policy-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.policy-table th { font-weight: 700; background: var(--porcelain); }
.policy-table tr:last-child td { border-bottom: 0; }
.policy-table code { font-family: "IBM Plex Mono", monospace; font-size: 15px; }
@media (max-width: 900px) {
  .policy { grid-template-columns: 1fr; gap: var(--s8); }
  .policy-toc { position: static; }
  .policy-body h2 { font-size: 26px; }
}
@media (max-width: 900px) { .policy { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .policy-table-wrap { border: 0; background: none; overflow: visible; }
  .policy-table { min-width: 0; }
  .policy-table thead { display: none; }
  .policy-table, .policy-table tbody, .policy-table tr, .policy-table td { display: block; width: 100%; }
  .policy-table tr { border: 1px solid var(--line); background: #fff; margin-bottom: var(--s3); padding: 6px 0; }
  .policy-table td { border: 0; padding: 6px 14px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; overflow-wrap: anywhere; }
  .policy-table td::before { content: attr(data-label); font-weight: 700; }
}
