/* ============================================================
   YUNAKI marketing site — "Soft Glass"
   The product's own material system, worn by the website:
   mist canvas + pastel bloom, navy ink, Manrope, glass panels
   for content, embossed chrome for controls. Tokens match
   yunaki_staging frontend/src/app/globals.css exactly.
   ============================================================ */

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
}

@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/martianmono-latin.woff2") format("woff2");
}

:root {
  --canvas: #e9eef3;
  --chrome: #ebf0f5;
  --surface: #ffffff;
  --ink: #081b39;
  --soft: #33455e;
  --faint: #4a5b73;
  --line: rgba(13, 39, 80, 0.12);
  --line-s: rgba(13, 39, 80, 0.22);
  --fill: rgba(13, 39, 80, 0.05);
  --navy: #27354b;
  --lime: #b6d552;
  --accent: #0d2750;
  --accent-w: #e7edf5;
  --ok: #047857; --ok-w: #ecfdf5; --ok-l: #a7f3d0;
  --warn: #a94e08; --warn-w: #fffbeb; --warn-l: #fde68a;
  --bad: #8e2c21; --bad-w: #f8e2de; --bad-l: #eec6bf;
  --info: #0369a1; --info-w: #f0f9ff; --info-l: #bae6fd;
  --r-panel: 26px; --r-row: 20px; --r-nav: 21px; --r-pill: 14px;
  --sh-glass: -10px -10px 24px rgba(255, 255, 255, 0.72), 12px 12px 28px rgba(13, 39, 80, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --sh-raised: -10px -10px 22px rgba(255, 255, 255, 0.95), 10px 10px 24px rgba(13, 39, 80, 0.15);
  --sh-pressed: inset -5px -5px 11px rgba(255, 255, 255, 0.95), inset 5px 5px 11px rgba(13, 39, 80, 0.16);
  --sans: "Bricolage Grotesque", -apple-system, "Segoe UI", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: Newsreader, Georgia, "Times New Roman", serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--soft);
  background: var(--canvas);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* The bloom: one fixed wash behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: -160px;
  z-index: -1;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.8;
  background-image:
    radial-gradient(420px 380px at 14% 12%, #b9e4cf 0%, rgba(185, 228, 207, 0) 68%),
    radial-gradient(520px 420px at 82% 8%, #cbcdf1 0%, rgba(203, 205, 241, 0) 66%),
    radial-gradient(460px 400px at 92% 74%, #f4c7c0 0%, rgba(244, 199, 192, 0) 66%),
    radial-gradient(560px 460px at 34% 88%, #bfd9f0 0%, rgba(191, 217, 240, 0) 68%);
}

::selection { background: var(--accent); color: #fff; }
a { color: inherit; }

.frame { max-width: 1180px; margin: 0 auto; min-height: 100vh; padding: 0 10px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 22px;
  margin: 14px 0 8px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-glass);
}
.brand {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.topnav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topnav a {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-nav);
}
.topnav a:hover { background: var(--fill); color: var(--ink); }
.topnav a.active { background: var(--chrome); box-shadow: var(--sh-pressed); color: var(--ink); }
.topnav a.btn-solid { color: #fff; }
.topnav a.btn-solid:hover { background: var(--accent); color: #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--chrome);
  color: var(--ink);
  box-shadow: var(--sh-raised);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { box-shadow: var(--sh-pressed); transform: none; }
.btn-solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(13, 39, 80, 0.45);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- hero ---------- */

.hero { padding: 64px 26px 34px; max-width: 900px; }
.hero h1 {
  font-size: clamp(38px, 5.8vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hl { background: var(--accent-w); border-radius: 10px; padding: 0 10px; }
.lead { font-size: clamp(16px, 2vw, 18.5px); line-height: 1.6; color: var(--soft); max-width: 62ch; }
.lead strong { color: var(--ink); }
.hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  margin: 26px 0;
  padding: 12px 0;
  background: var(--chrome);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--r-row);
  box-shadow: var(--sh-raised);
}
.ticker-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: tickerSlide 60s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}
@keyframes tickerSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- sections ---------- */

.sec-pad { padding: 56px 26px; }
.seclabel {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.sec-pad h2, .page-head h2, .cta-band h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.12;
  margin-bottom: 10px;
}
.prose { max-width: 66ch; color: var(--soft); }
.prose p { margin: 6px 0 10px; }
.list { list-style: none; margin: 10px 0; }
.list li { padding-left: 20px; position: relative; margin: 8px 0; }
.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: var(--lime);
  border: 1.5px solid var(--navy);
}
.page-head { padding: 56px 26px 26px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 56px 26px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- figures ---------- */

.fig { margin: 30px 0 6px; }
.fig-body {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-glass);
  padding: 26px;
  overflow-x: auto;
}
.fig-body svg { display: block; width: 100%; height: auto; min-width: 640px; }
.fig-cap { margin-top: 14px; font-size: 13px; color: var(--faint); max-width: 72ch; }
.fig-cap strong { color: var(--ink); }
.after-fig-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- glass card grids (practices, product today) ---------- */

.practices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
@media (max-width: 820px) { .practices { grid-template-columns: 1fr; } }
.practice {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-glass);
  padding: 22px 26px;
}
.practice p { font-size: 14.5px; color: var(--soft); }
.practice p strong { color: var(--ink); }
.practice-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.practice-head h3 { font-family: var(--sans); font-weight: 700; font-size: 17.5px; letter-spacing: -0.01em; }
.practice-foot {
  grid-column: 1 / -1;
  background: var(--chrome);
  border-radius: var(--r-row);
  box-shadow: var(--sh-raised);
  padding: 16px 22px;
  font-size: 14px;
  color: var(--soft);
}
.practice-foot strong { color: var(--ink); }
.practice-foot a { color: var(--accent); font-weight: 700; }

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--soft);
  border: 1px solid var(--line-s);
  white-space: nowrap;
}
.chip-live { background: var(--ok-w); color: var(--ok); border-color: var(--ok-l); }

/* ---------- duo + labels ---------- */

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } }
.duo > div {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--r-row);
  box-shadow: var(--sh-glass);
  padding: 18px 22px;
  font-size: 14.5px;
}
.card-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 8px;
}

/* ---------- stats ---------- */

.statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .statrow { grid-template-columns: 1fr; } }
.stat {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--r-row);
  box-shadow: var(--sh-glass);
  padding: 18px 20px;
}
.num { font-family: var(--sans); font-weight: 800; font-size: 42px; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.unit { font-size: 22px; color: var(--faint); font-weight: 700; }
.lbl { font-size: 12.5px; color: var(--faint); margin-top: 8px; }
.stat-note { font-size: 12.5px; color: var(--faint); margin-top: 14px; }
.stat-note strong { color: var(--ink); }

/* ---------- case-file cards ---------- */

.cf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 860px) { .cf-grid { grid-template-columns: 1fr; } }
.cf-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-glass);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--soft);
  transition: transform 0.18s, box-shadow 0.18s;
  height: 100%;
}
.cf-card:hover { transform: translateY(-3px); }
.cf-card h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; }
.cf-card p { font-size: 14px; }
.cf-id { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--faint); }
.cf-go { font-family: var(--sans); margin-top: auto; font-weight: 700; font-size: 13.5px; color: var(--accent); }

/* ---------- CTA band ---------- */

.cta-band {
  margin: 40px 16px 60px;
  padding: 52px 40px;
  background: var(--accent);
  border-radius: var(--r-panel);
  box-shadow: 0 30px 60px -30px rgba(13, 39, 80, 0.55);
}
.cta-band .seclabel { color: rgba(255, 255, 255, 0.55); }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, 0.82); }
.cta-band .lead strong { color: #fff; }
.cta-band .btn { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.35); }
.cta-band .btn-solid { background: #fff; color: var(--accent); border: none; }

/* ---------- forms (contact) ---------- */

.form-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; padding: 10px 26px 60px; align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
.pilot-form, .pilot-points {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-glass);
  padding: 26px 28px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--sans); font-weight: 700; font-size: 12.5px; color: var(--ink); }
.form-field label b { color: var(--bad); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-s);
  border-radius: var(--r-pill);
  padding: 11px 14px;
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-submit { margin-top: 20px; }
.form-note { font-size: 12.5px; color: var(--faint); margin-top: 12px; }

/* ---------- subsystems (how-it-works, guardrails) ---------- */

.subsystems { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.subsystem {
  display: grid;
  grid-template-columns: 64px 230px 1fr;
  gap: 18px;
  align-items: start;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--r-row);
  box-shadow: var(--sh-glass);
  padding: 20px 24px;
}
@media (max-width: 820px) { .subsystem { grid-template-columns: 48px 1fr; } .sub-desc { grid-column: 1 / -1; } }
.sub-no { font-weight: 800; font-size: 24px; color: var(--accent); opacity: 0.35; letter-spacing: -0.02em; }
.sub-title h3 { font-family: var(--sans); font-weight: 700; font-size: 16.5px; margin-bottom: 4px; }
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--faint); }
.sub-desc p { font-size: 14px; color: var(--soft); }
.sub-desc a { color: var(--accent); font-weight: 700; }

/* ---------- case-files article pages ---------- */

.files { display: flex; flex-direction: column; gap: 22px; padding: 10px 26px 60px; }
.file {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-glass);
  padding: 26px 30px;
}
.file-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.file-head h3 { font-size: 22px; }
.file-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--faint); }
.file-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
@media (max-width: 820px) { .file-body { grid-template-columns: 1fr; } }
.file-cols { display: flex; flex-direction: column; gap: 8px; }
.file .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--faint); }
.file .v { font-size: 14.5px; color: var(--soft); }
.file .v strong { color: var(--ink); }
.fix { background: var(--ok-w); border: 1px solid var(--ok-l); border-radius: var(--r-row); padding: 14px 18px; font-size: 14px; color: var(--ok); }
.honesty { background: var(--info-w); border: 1px solid var(--info-l); border-radius: var(--r-row); padding: 14px 18px; font-size: 13.5px; color: var(--info); }
.side-note { font-size: 13px; color: var(--faint); }
.sources { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 12px; }
.file-anim { margin: 14px 0; }

/* ---------- legacy pipeline figures (case-files) ---------- */

.pipeline { display: flex; gap: 14px; align-items: stretch; padding: 8px 0; overflow-x: auto; }
.pl-stage { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 8px; }
.pl-cardlabel { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--faint); }
.pl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-row); box-shadow: var(--sh-glass); padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pl-doctitle { font-weight: 800; font-size: 13px; color: var(--ink); }
.pl-line { height: 7px; border-radius: 4px; background: var(--fill); }
.pl-line.w80 { width: 80%; } .pl-line.w70 { width: 70%; } .pl-line.w60 { width: 60%; }
.pl-chip { font-family: var(--mono); font-size: 10px; color: var(--faint); background: var(--fill); border-radius: 6px; padding: 3px 8px; width: max-content; }
.pl-check { font-size: 12px; color: var(--soft); padding-left: 16px; position: relative; }
.pl-check::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 6px; height: 6px; border-radius: 3px; background: var(--ok); }
.pl-field { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink); }
.pl-field i { flex: 1; height: 6px; border-radius: 3px; background: var(--accent-w); }
.pl-stamp { align-self: flex-start; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--ok); background: var(--ok-w); border: 1px solid var(--ok-l); border-radius: 999px; padding: 3px 10px; }
.pl-flow { display: flex; align-items: center; min-width: 26px; position: relative; }
.pl-flow::before { content: ""; width: 100%; height: 1.5px; background: var(--line-s); }
.pl-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 7px; height: 7px; border-radius: 4px; background: var(--accent); }

/* ---------- footer ---------- */

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  padding: 26px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}
footer a { color: var(--faint); }
footer a:hover { color: var(--ink); }
.fcol strong { color: var(--ink); font-family: var(--sans); }

/* ---------- the OS map (workflow film) ---------- */

.osmap-scroll { overflow-x: auto; margin-top: 34px; }
.osmap { display: block; min-width: 880px; width: 100%; }
.osedge {
  fill: none;
  stroke: var(--line-s);
  stroke-width: 1.5;
  transition: stroke 0.3s, stroke-width 0.3s;
}
.osedge.lit { stroke: var(--accent); stroke-width: 2.5; }
.osnode rect {
  fill: #fff;
  stroke: var(--line-s);
  stroke-width: 1.5;
  transition: stroke 0.3s, stroke-width 0.3s;
}
.osnode.gold rect { stroke: var(--ok); }
.osnode.lit rect { stroke: var(--accent); stroke-width: 2.5; }
.osnode.gold.lit rect { stroke: var(--ok); }
.osnode-title { font-family: var(--sans); font-size: 19px; font-weight: 800; fill: var(--ink); letter-spacing: -0.01em; }
.osnode-sub { font-family: var(--mono); font-size: 10px; fill: var(--faint); letter-spacing: 0.04em; }
.oscore-title { font-family: var(--sans); font-size: 24px; font-weight: 800; fill: var(--ink); letter-spacing: 0.04em; }
.oshdr { font-family: var(--mono); font-size: 10.5px; fill: var(--faint); letter-spacing: 0.14em; }
.osgate { stroke: var(--warn); stroke-width: 2; stroke-dasharray: 7 6; fill: none; }
.osgate-label { font-family: var(--mono); font-size: 11px; font-weight: 700; fill: var(--warn); letter-spacing: 0.12em; }
.osstamp { font-family: var(--mono); font-size: 10px; font-weight: 700; fill: var(--ok); letter-spacing: 0.14em; }
.osdot { fill: var(--accent); }
@media (prefers-reduced-motion: reduce) { .osdot { display: none; } }

/* ---------- "The Desk" stage ---------- */

.desk-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-glass);
  background: #e9eef3;
}
.desk-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 720px;
  transform-origin: 0 0;
}

/* ---------- the hub band: case hub + week chart ---------- */

.hub-band {
  margin: 40px 16px;
  padding: 44px 34px 38px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-glass);
  overflow: hidden;
}

.hub-scroll { overflow-x: auto; margin-top: 26px; }
.hub { display: block; min-width: 980px; width: 100%; }
.hub-card { fill: #ffffff; stroke: rgba(13, 39, 80, 0.12); stroke-width: 1; }
.hub-group { fill: none; stroke: rgba(13, 39, 80, 0.22); stroke-width: 1.2; stroke-dasharray: 6 6; }
.hub-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; fill: #4a5b73; }
.hub-dashline { fill: none; stroke: #9aa8bc; stroke-width: 1.4; stroke-dasharray: 5 6; }
.hub-flow {
  fill: none;
  stroke: #7fa32a;
  stroke-width: 1.8;
  stroke-dasharray: 8 7;
  animation: hubFlow 1.6s linear infinite;
}
@keyframes hubFlow { to { stroke-dashoffset: -15; } }
.hub-glowrect { animation: hubGlowPulse 4.5s ease-in-out infinite; }
@keyframes hubGlowPulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hub-flow, .hub-glowrect { animation: none; }
}

/* ---------- "One case, one week" chart ---------- */

.cwk { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.cwk-head { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: flex-end; justify-content: space-between; }
.cwk-title { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); }
.cwk-sub { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.cwk-heroes { display: flex; gap: 34px; }
.cwk-hero { display: flex; align-items: baseline; gap: 9px; }
.cwk-num { font-family: var(--sans); font-weight: 800; font-size: 38px; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cwk-who { font-family: var(--sans); font-size: 12.5px; color: var(--faint); max-width: 90px; line-height: 1.3; }
.cwk-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.cwk-swatch.cwk-os { background: #7fa32a; }
.cwk-swatch.cwk-team { background: #5f8fd6; }

.cwk-plot { display: flex; gap: 18px; align-items: flex-end; height: 190px; margin-top: 30px; padding: 0 4px; }
.cwk-day { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; outline: none; }
.cwk-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.cwk-bars { display: flex; gap: 2px; align-items: flex-end; height: calc(100% - 26px); justify-content: center; }
.cwk-bar {
  width: 22px;
  border-radius: 4px 4px 0 0;
  transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.cwk-bar.cwk-os { background: #7fa32a; }
.cwk-bar.cwk-team { background: #5f8fd6; }
.cwk-x { font-family: var(--mono); font-size: 11px; color: var(--faint); text-align: center; padding-top: 8px; }
.cwk-tip {
  font-family: var(--sans);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--line-s);
  border-radius: 10px;
  box-shadow: 0 12px 26px -14px rgba(13, 39, 80, 0.35);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 5;
}
.cwk-tip span { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.cwk-day:hover .cwk-tip, .cwk-day:focus-visible .cwk-tip { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cwk-bar { transition: none; } }

.cwk-legend { font-family: var(--sans); display: flex; gap: 22px; margin-top: 16px; font-size: 12.5px; color: var(--soft); }
.cwk-legend > span { display: inline-flex; align-items: center; gap: 7px; }

.cwk-table { margin-top: 18px; }
.cwk-table summary { font-family: var(--mono); font-size: 11.5px; color: var(--faint); cursor: pointer; }
.cwk-table table { margin-top: 10px; border-collapse: collapse; font-size: 12.5px; color: var(--soft); }
.cwk-table th, .cwk-table td { text-align: left; padding: 5px 16px 5px 0; border-bottom: 1px solid var(--line); }
.cwk-table th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--faint); }


/* ---------- testimonials, the dithered band ---------- */

.quotes {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  -webkit-overflow-scrolling: touch;
}
.quote {
  flex: 0 0 min(820px, 94%);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 30px;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 40px;
  box-shadow: var(--sh-glass);
  padding: 24px 40px 24px 24px;
}
@media (max-width: 700px) {
  .quote { grid-template-columns: 1fr; padding: 20px; }
}
.quote-tile {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(160deg, #f4c7c0 0%, #f8e0d6 45%, var(--canvas) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  min-height: 300px;
}
.quote-canvas { display: block; }
.quote-body { display: flex; flex-direction: column; gap: 22px; padding: 18px 0; }
.quote-text { font-family: var(--body); font-size: 21px; line-height: 1.5; color: var(--ink); }
.quote-attr { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }

/* ---------- the time-per-case comparison ---------- */

.cwk-big { font-family: var(--sans); font-weight: 800; font-size: 56px; letter-spacing: -0.03em; color: #7fa32a; display: flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.cwk-bigword { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--soft); letter-spacing: 0; }
.cwk-compare { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.cwk-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 16px; align-items: center; }
@media (max-width: 640px) { .cwk-row { grid-template-columns: 110px 1fr 60px; } }
.cwk-rowlabel { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink); }
.cwk-track { height: 26px; border-radius: 8px; background: var(--fill); overflow: hidden; }
.cwk-fill { height: 100%; border-radius: 8px 4px 4px 8px; transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.cwk-fill.cwk-os { background: #7fa32a; }
.cwk-fill.cwk-team { background: #5f8fd6; }
.cwk-rowval { font-family: var(--mono); font-size: 12px; color: var(--soft); text-align: right; }
@media (prefers-reduced-motion: reduce) { .cwk-fill { transition: none; } }


/* ---------- donut variant of the time chart ---------- */

.cwk-donutwrap { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.cwk-donut { position: relative; width: 220px; flex-shrink: 0; }
.cwk-donut svg { display: block; width: 100%; height: auto; }
.cwk-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.cwk-centernum { font-family: var(--sans); font-weight: 800; font-size: 46px; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cwk-centerword { font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--soft); }
.cwk-keys { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; font-family: var(--sans); font-size: 14.5px; color: var(--soft); }
.cwk-keys > span { display: inline-flex; align-items: center; gap: 9px; }

