/* ==========================================================
   Cerndaia, one stylesheet for every page.
   One typeface, Jost, throughout.
   Each section carries its own background, so the page changes
   as you scroll instead of sitting on one texture throughout.
   ========================================================== */

@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/jost-normal-300-600.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/jost-italic-400.woff2) format('woff2'); }

:root {
  --accent: #7b4dea;
  --accent-strong: #5a32c0;
  --accent-soft: #efe9fd;
  --btn: #7b4dea;
  --btn-hover: #5a32c0;
  --good: #4e9a34;
  --good-soft: #e8f4e0;
  --ink: #211f2b;
  --muted: #5f5b6a;
  --paper: #faf9fc;
  --surface: #ffffff;
  --panel: #f3f0fb;
  --line: #e5e0f2;
  --line-strong: #d3ccec;
  --glow-a: rgba(123, 77, 234, 0.30);
  --glow-b: rgba(111, 194, 74, 0.20);
  --shadow: rgba(90, 50, 192, 0.30);
  --font: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --accent: #b79bf5;
  --accent-strong: #d3c2fa;
  --accent-soft: #241d3b;
  --btn: #7b58e8;
  --btn-hover: #8f70ee;
  --good: #8fdb68;
  --good-soft: #1d2a18;
  --ink: #f1eef9;
  --muted: #b3adc4;
  --paper: #121018;
  --surface: #1b1726;
  --panel: #1a1626;
  --line: #322b45;
  --line-strong: #463c5e;
  --glow-a: rgba(140, 82, 255, 0.34);
  --glow-b: rgba(126, 217, 87, 0.16);
  --shadow: rgba(140, 82, 255, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

h1, h2, h3 { line-height: 1.12; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(38px, 5vw, 58px); font-weight: 300; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--accent); font-weight: 500; }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 400; letter-spacing: -0.005em; }
h3 { font-size: 20px; font-weight: 500; line-height: 1.25; }
p { max-width: 72ch; }
.lead { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 60ch; }
.section-intro { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
  padding: 14px 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); color: #fff; box-shadow: 0 12px 28px -12px var(--shadow); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn:disabled { opacity: 0.7; cursor: default; transform: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.arrow-link { font-family: var(--font); font-size: 16.5px; font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.arrow-link::after { content: "\2192"; transition: transform 0.25s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { height: 30px; width: auto; }
.brand-word { font-size: 21px; font-weight: 500; letter-spacing: 0.01em; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
.site-nav a { color: var(--muted); text-decoration: none; position: relative; transition: color 0.2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--good));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.site-nav a:not(.btn):hover::after, .site-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .btn { padding: 10px 18px; font-size: 15.5px; color: #fff; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; min-width: 40px; padding: 0 10px;
  background: none; border: 1px solid var(--line-strong); border-radius: 6px;
  color: var(--ink); cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover, .menu-button:hover { border-color: var(--accent); color: var(--accent-strong); }
.theme-toggle svg { transition: transform 0.5s ease; }
.theme-toggle:hover svg { transform: rotate(25deg); }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
.menu-button { display: none; font-family: var(--font); font-size: 15.5px; padding: 0 14px; }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; min-height: 62px; gap: 0 10px; }
  .brand-mark { height: 26px; }
  .brand-word { font-size: 19px; }
  .menu-button { display: inline-flex; }
  .site-nav { order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 16px; }
  .site-nav a { padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 17px; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 12px; justify-content: center; border-top: 0; padding: 14px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
}

/* ---------- sections and their backgrounds ---------- */
.section { position: relative; padding: 76px 0; overflow: hidden; isolation: isolate; }
.section + .section { border-top: 1px solid var(--line); }
.section > .container { position: relative; z-index: 2; }
.section-head { max-width: 760px; margin-bottom: 36px; }
@media (max-width: 760px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

.bg-panel { background: var(--panel); }
.bg-dots::before, .bg-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.bg-dots::before {
  background-image: radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 1.7px);
  background-size: 26px 26px; opacity: 0.6;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.bg-grid::before {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px; opacity: 0.7;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent);
}
.bg-wash { background: linear-gradient(160deg, var(--panel) 0%, color-mix(in srgb, var(--accent-soft) 80%, var(--panel)) 55%, color-mix(in srgb, var(--good-soft) 70%, var(--panel)) 100%); }

.glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow span { position: absolute; display: block; border-radius: 50%; filter: blur(60px); will-change: transform; }
.glow span:nth-child(1) { width: 480px; height: 480px; left: -8%; top: -24%; background: radial-gradient(circle, var(--glow-a), transparent 66%); animation: drift-a 34s ease-in-out infinite alternate; }
.glow span:nth-child(2) { width: 420px; height: 420px; right: -6%; top: 4%; background: radial-gradient(circle, var(--glow-a), transparent 66%); opacity: 0.75; animation: drift-b 42s ease-in-out infinite alternate; }
.glow span:nth-child(3) { width: 340px; height: 340px; left: 36%; bottom: -30%; background: radial-gradient(circle, var(--glow-b), transparent 66%); animation: drift-c 50s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(80px,50px,0) scale(1.14); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1.08); } to { transform: translate3d(-60px,44px,0) scale(0.94); } }
@keyframes drift-c { from { transform: translate3d(0,0,0) scale(0.95); } to { transform: translate3d(50px,-40px,0) scale(1.1); } }
@media (max-width: 640px) {
  .glow span { filter: blur(40px); }
  .glow span:nth-child(1) { width: 320px; height: 320px; }
  .glow span:nth-child(2) { width: 280px; height: 280px; }
  .glow span:nth-child(3) { width: 240px; height: 240px; }
}

/* things rise into place the first time they are seen */
.js-anim [data-rise] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease var(--d, 0s), transform 0.8s cubic-bezier(0.16,1,0.3,1) var(--d, 0s); }
.js-anim [data-rise].is-in { opacity: 1; transform: none; }

/* ---------- page heads (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 20ch; animation: focus-in 1s cubic-bezier(0.19,1,0.22,1) both; }
.page-hero .lead { animation: focus-in 1s cubic-bezier(0.19,1,0.22,1) 0.15s both; }
@media (max-width: 760px) { .page-hero { padding: 56px 0 48px; } }
@keyframes focus-in { from { filter: blur(14px); opacity: 0; transform: translateY(8px); } to { filter: blur(0); opacity: 1; transform: none; } }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 88px; }
.hero > .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.07; animation: focus-in 1.1s cubic-bezier(0.19,1,0.22,1) 0.1s both; }
.hero .lead { animation: focus-in 1.1s cubic-bezier(0.19,1,0.22,1) 0.28s both; }
.hero .actions { animation: focus-in 1.1s cubic-bezier(0.19,1,0.22,1) 0.42s both; }
.hero-visual { display: flex; justify-content: center; min-width: 0; }
.hero-viz { width: 100%; max-width: 440px; height: auto; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero > .container { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
}

/* the data flowing into the measurement card (restored from the original site) */
.viz-lane { fill: none; stroke: color-mix(in srgb, var(--accent) 42%, var(--line-strong)); stroke-width: 1; }
.viz-dot { fill: var(--accent); }
.viz-node { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.viz-node-core { fill: var(--accent); }
.viz-card { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.viz-gauge-track { fill: none; stroke: var(--line); stroke-width: 7; stroke-linecap: round; }
.viz-gauge-fill { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; }
.viz-marker { fill: var(--good); }
.viz-check { fill: none; stroke: var(--good); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.viz-label { fill: var(--muted); font-family: var(--font); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.viz-bar { fill: var(--line); }
.viz-bar-on { fill: var(--accent); }
@media (max-width: 480px) { .hero-viz .viz-label { font-size: 13px; } }
.viz-go .viz-lane { stroke-dasharray: 260; stroke-dashoffset: 260; animation: viz-draw 1.1s cubic-bezier(0.16,1,0.3,1) var(--d, 0s) both; }
.viz-go .viz-node-g { opacity: 0; animation: viz-pop 0.7s cubic-bezier(0.16,1,0.3,1) 1.15s both; }
.viz-go .viz-pulse { animation: viz-pulse 1.9s ease-out 1.35s infinite; }
.viz-go .viz-card-g { opacity: 0; animation: viz-rise 0.8s cubic-bezier(0.16,1,0.3,1) 1.05s both; }
.viz-go .viz-gauge-fill { stroke-dasharray: 183; stroke-dashoffset: 183; animation: viz-fill 1.15s cubic-bezier(0.16,1,0.3,1) 1.7s both; }
.viz-go .viz-marker, .viz-go .viz-check-g, .viz-go .viz-label-measured { opacity: 0; animation: viz-pop 0.55s cubic-bezier(0.16,1,0.3,1) 2.5s both; }
.viz-go .viz-bar-on { animation: viz-bar 0.6s cubic-bezier(0.16,1,0.3,1) var(--d, 2.2s) both; }
.viz-node-g, .viz-pulse, .viz-card-g, .viz-bar-on, .viz-marker, .viz-check-g, .viz-label-measured { transform-box: fill-box; transform-origin: center; }
.viz-bar-on { transform-origin: left center; }
@keyframes viz-draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes viz-pop { from { opacity: 0; transform: scale(0.72); } to { opacity: 1; transform: scale(1); } }
@keyframes viz-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes viz-fill { from { stroke-dashoffset: 183; } to { stroke-dashoffset: 51; } }
@keyframes viz-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes viz-pulse { 0% { transform: scale(1); opacity: 0.5; } 70%, 100% { transform: scale(2.1); opacity: 0; } }

/* ---------- cards and grids ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.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)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 26px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--good));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 18px 36px -24px var(--shadow); }
.card:hover::after { transform: scaleX(1); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card .ico { color: var(--accent); margin-bottom: 18px; }
.card-step { display: block; font-size: 15px; font-weight: 500; color: var(--accent-strong); margin-bottom: 6px; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card .arrow-link { margin-top: 16px; color: var(--accent-strong); }

.ico { display: block; }
.ico path, .ico circle, .ico rect, .ico line, .ico polyline { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico .solid { fill: currentColor; stroke: none; }
.js-anim [data-rise] .ico path, .js-anim [data-rise] .ico circle, .js-anim [data-rise] .ico rect, .js-anim [data-rise] .ico polyline { stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset 1s cubic-bezier(0.16,1,0.3,1) 0.2s; }
.js-anim [data-rise].is-in .ico path, .js-anim [data-rise].is-in .ico circle, .js-anim [data-rise].is-in .ico rect, .js-anim [data-rise].is-in .ico polyline { stroke-dashoffset: 0; }

/* outcome tiles */
.outcome { padding: 30px 26px; }
.outcome-word { display: block; font-size: clamp(28px, 3vw, 34px); font-weight: 300; line-height: 1.1; color: var(--accent-strong); margin-bottom: 14px; }

/* ---------- how it works: the thread ---------- */
.thread { position: relative; height: 2px; background: var(--line); margin: 0 0 30px; }
.thread::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--good)); transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(0.16,1,0.3,1); }
.thread.is-in::after { transform: scaleX(1); }
.thread i { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); transform: scale(0); transition: transform 0.45s cubic-bezier(0.16,1,0.3,1); }
.thread i:nth-of-type(1) { left: 16.6%; } .thread i:nth-of-type(2) { left: 50%; } .thread i:nth-of-type(3) { left: 83.3%; }
.thread.is-in i:nth-of-type(1) { transform: scale(1); transition-delay: 0.15s; }
.thread.is-in i:nth-of-type(2) { transform: scale(1); transition-delay: 0.55s; }
.thread.is-in i:nth-of-type(3) { transform: scale(1); transition-delay: 0.95s; }
@media (max-width: 860px) { .thread { display: none; } }
.retainer { margin-top: 26px; padding: 22px 26px; border-radius: 10px; background: color-mix(in srgb, var(--accent-soft) 70%, transparent); border: 1px solid var(--line); max-width: none; }
.retainer strong { color: var(--accent-strong); font-weight: 500; }

/* ---------- the framework: thin, clean lines ---------- */
.framework-wrap { position: relative; }
.fw-svg { width: 100%; height: auto; overflow: visible; }
.fw-phone { display: none; max-width: 380px; margin: 0 auto; }
@media (max-width: 760px) { .fw-desk { display: none; } .fw-phone { display: block; } }
.fw-svg text { font-family: var(--font); }
.fw-node { cursor: help; outline: none; }
.fw-node rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; transition: stroke 0.2s ease, fill 0.2s ease; }
.fw-in .fw-bullet { fill: var(--accent); }
.fw-out .fw-bullet { fill: var(--good); }
.fw-k { fill: var(--ink); font-size: 15px; }
.fw-in:hover rect, .fw-in:focus rect, .fw-in.is-active rect { stroke: var(--accent); fill: var(--accent-soft); }
.fw-out:hover rect, .fw-out:focus rect, .fw-out.is-active rect { stroke: var(--good); fill: var(--good-soft); }
.fw-link, .fw-spine { fill: none; stroke-width: 1; }
.fw-link-in { stroke: color-mix(in srgb, var(--accent) 50%, transparent); }
.fw-link-out { stroke: color-mix(in srgb, var(--good) 60%, transparent); }
.fw-ring { fill: var(--surface); stroke: var(--accent); stroke-width: 1.4; }
.fw-model { fill: var(--accent-strong); font-size: 16px; font-weight: 500; }
.fw-model-sm { font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-back { to { transform: rotate(-360deg); } }
.js-anim .framework .fw-node { opacity: 0; transition: opacity 0.6s ease var(--d, 0s); }
.js-anim .framework .fw-link { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s ease 0.3s; }
.js-anim .framework .fw-core { opacity: 0; transition: opacity 0.8s ease 0.4s; }
.js-anim .framework.is-in .fw-node, .js-anim .framework.is-in .fw-core { opacity: 1; }
.js-anim .framework.is-in .fw-link { stroke-dashoffset: 0; }
.fw-tip {
  position: absolute; z-index: 5; max-width: 300px; pointer-events: none;
  padding: 14px 16px; border-radius: 12px; background: var(--ink); color: var(--paper);
  font-size: 15px; line-height: 1.5; box-shadow: 0 18px 40px -18px var(--shadow);
  animation: tip-in 0.2s ease;
}
.fw-tip b { display: block; font-weight: 500; margin-bottom: 4px; }
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fw-note { margin-top: 18px; font-size: 15px; color: var(--muted); font-style: italic; }

/* ---------- stickers: small illustrated badges that move ---------- */
.sticker {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 50%; margin-bottom: 20px;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--surface) 70%, transparent), transparent 55%), linear-gradient(140deg, color-mix(in srgb, var(--accent) 30%, var(--surface)), color-mix(in srgb, var(--good) 28%, var(--surface)));
  border: 4px solid var(--surface);
  box-shadow: 0 10px 24px -12px var(--shadow), 0 0 0 1px var(--line);
  transform: rotate(-6deg);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.sticker.alt { transform: rotate(5deg); background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--surface) 70%, transparent), transparent 55%), linear-gradient(140deg, color-mix(in srgb, var(--good) 32%, var(--surface)), color-mix(in srgb, var(--accent) 26%, var(--surface))); }
.card:hover .sticker { transform: rotate(0deg) scale(1.08); }
.sticker svg { width: 56px; height: 56px; overflow: visible; }
.sticker.sm { width: 72px; height: 72px; margin-bottom: 18px; }
.sticker.sm svg { width: 50px; height: 50px; }
.sticker svg *, .art svg * { vector-effect: non-scaling-stroke; }
.st-face, .st-coin, .st-gear, .st-leaf, .st-lens, .st-layer, .st-bubble, .st-shield, .st-q { fill: var(--surface); stroke: var(--accent-strong); stroke-width: 2.2; stroke-linejoin: round; }
.st-top, .st-gear2, .st-bubble2, .st-q { fill: color-mix(in srgb, var(--good) 35%, var(--surface)); }
.st-leaf { fill: color-mix(in srgb, var(--good) 45%, var(--surface)); stroke: var(--good); }
.st-layer.l1 { fill: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.st-layer.l2 { fill: color-mix(in srgb, var(--good) 30%, var(--surface)); }
.st-ticks path, .st-hand, .st-hand2, .st-lines, .st-handle, .st-vein, .st-axis, .st-bars-off, .st-shackle, .st-qm, .st-track { fill: none; stroke: var(--accent-strong); stroke-width: 2.4; stroke-linecap: round; }
.st-hand { stroke: var(--good); stroke-width: 3; }
.st-vein { stroke: var(--good); stroke-width: 1.8; }
.st-lines { stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 3; }
.st-track { stroke: color-mix(in srgb, var(--accent) 25%, transparent); stroke-width: 6; }
.st-fill { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 63; stroke-dashoffset: 20; animation: gauge 3.2s ease-in-out infinite alternate; }
.st-needle { stroke: var(--good); stroke-width: 3; stroke-linecap: round; }
.st-arrow { fill: none; stroke: var(--good); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.st-dot { fill: var(--accent-strong); }
.st-hole { fill: var(--accent-soft); stroke: var(--accent-strong); stroke-width: 2; }
.st-lock { fill: var(--good); }
.st-shackle { stroke: var(--good); }
.st-bars-off { stroke: color-mix(in srgb, var(--accent) 40%, transparent); stroke-width: 6; }
.st-qtext { fill: var(--good); font-family: var(--font); font-size: 22px; font-weight: 600; }
.spin, .spin-back, .sway, .bob, .bob-down, .scan, .needle, .stack .st-layer, .pulse, .blink { transform-box: fill-box; transform-origin: center; }
.spin { animation: spin 7s linear infinite; }
.spin-back { animation: spin-back 7s linear infinite; }
.sticker .spin-back:only-of-type { animation-duration: 6s; }
.sway { transform-origin: 0% 100%; animation: sway 3.4s ease-in-out infinite alternate; }
.bob { animation: bob 2.6s ease-in-out infinite alternate; }
.bob-down { animation: bob-down 1.6s ease-in-out infinite; }
.scan { animation: scan 4s ease-in-out infinite; }
.needle { transform-origin: 50% 100%; animation: needle 3.2s ease-in-out infinite alternate; }
.stack .l1 { animation: stack 3s ease-in-out infinite; }
.pulse { animation: pulse-s 2.4s ease-in-out infinite; }
.blink { animation: blink 2s ease-in-out infinite; }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes bob { from { transform: translateY(-2px); } to { transform: translateY(3px); } }
@keyframes bob-down { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes scan { 0%, 100% { transform: translate(-14px, -8px); } 50% { transform: translate(2px, 10px); } }
@keyframes needle { from { transform: rotate(-60deg); } to { transform: rotate(55deg); } }
@keyframes gauge { from { stroke-dashoffset: 52; } to { stroke-dashoffset: 8; } }
@keyframes stack { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(1px); } }
@keyframes pulse-s { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- page illustrations ---------- */
.page-hero > .container.has-art { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.art-wrap { display: flex; justify-content: center; }
.art { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.art text { font-family: var(--font); }
@media (max-width: 860px) { .page-hero > .container.has-art { grid-template-columns: 1fr; gap: 20px; } .art { max-width: 300px; } }
.art-path { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 2; }
.art-path.dashed { stroke-dasharray: 2 9; stroke-linecap: round; stroke-width: 2.4; }
.art-dot { fill: var(--accent); }
.art-dot-g { fill: var(--good); }
.art-disc { fill: var(--surface); stroke: var(--accent); stroke-width: 2.4; }
.art-disc-g { stroke: var(--good); }
.art-label { fill: var(--ink); font-size: 17px; font-weight: 500; }
.art-station { animation: pop-in 0.7s cubic-bezier(0.34,1.56,0.64,1) var(--d, 0s) both; transform-box: fill-box; transform-origin: center; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.art-card { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.art-card-2 { fill: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.art-card-3 { fill: color-mix(in srgb, var(--accent) 26%, var(--surface)); }
.art-card-4 { fill: color-mix(in srgb, var(--good) 28%, var(--surface)); stroke: var(--good); }
.art-chip { fill: var(--good); }
.scan-ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.scan-sweep { transform-box: view-box; transform-origin: 240px 180px; animation: spin 9s linear infinite; }
.scan-sweep path { fill: url(#none); fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.scan-edge { stroke: color-mix(in srgb, var(--accent) 30%, transparent); stroke-width: 1; }
.scan-topic circle { fill: var(--accent); }
.scan-topic text { fill: var(--ink); font-size: 15px; font-family: var(--font); }
.scan-topic { animation: topic-glow 9s linear var(--d, 0s) infinite; }
@keyframes topic-glow { 0% { opacity: 0.5; } 3%, 14% { opacity: 1; } 40%, 100% { opacity: 0.5; } }
.scan-hub { fill: var(--accent-strong); }
.scan-topic:nth-of-type(odd) circle { fill: var(--good); }
.layer-card { animation: layer-in 5s cubic-bezier(0.16,1,0.3,1) var(--d, 0s) infinite; }
@keyframes layer-in { 0% { opacity: 0; transform: translateY(-14px); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.lens { transform-box: view-box; animation: lens 5s ease-in-out infinite; }
.art-lens { fill: color-mix(in srgb, var(--accent-soft) 60%, transparent); stroke: var(--accent-strong); stroke-width: 3; }
.art-handle { stroke: var(--accent-strong); stroke-width: 5; stroke-linecap: round; }
@keyframes lens { 0%, 100% { transform: translate(0, -80px); } 50% { transform: translate(-40px, 120px); } }
.net-edge { stroke: color-mix(in srgb, var(--accent) 40%, transparent); stroke-width: 1.6; stroke-dasharray: 200; stroke-dashoffset: 200; animation: edge 1.2s ease var(--d, 0s) forwards; }
.net-node { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop-in 0.6s cubic-bezier(0.34,1.56,0.64,1) var(--d, 0s) forwards, twinkle 3s ease-in-out calc(var(--d, 0s) + 1s) infinite alternate; }
.net-g { fill: var(--good); }
.net-core { fill: var(--accent-strong); }
.net-pulse { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring-pulse 2.4s ease-out infinite; }
@keyframes edge { to { stroke-dashoffset: 0; } }
@keyframes twinkle { from { filter: none; } to { filter: drop-shadow(0 0 6px var(--glow-a)); } }
@keyframes ring-pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3); opacity: 0; } }
.art-plane { fill: var(--accent); stroke: var(--accent-strong); stroke-width: 1; }
.art-flap { fill: none; stroke: var(--accent); stroke-width: 2; }
.inbox { transform-box: fill-box; transform-origin: center; animation: bob 2.6s ease-in-out infinite alternate; }


/* ---------- what's inside each deliverable ---------- */
.inside { margin-top: 22px; padding: 24px 26px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.inside h3 { font-size: 18px; margin-bottom: 14px; color: var(--accent-strong); }
.inside .check-list { gap: 10px; font-size: 16px; }
.inside .check-list li { color: var(--ink); }

/* ---------- service stages ---------- */
.stage { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 24px; padding: 44px 0; border-top: 1px solid var(--line); }
.stage:first-of-type { border-top: 0; padding-top: 0; }
.stage-num { font-size: 40px; font-weight: 300; line-height: 1; color: var(--accent); }
.stage h2 { font-size: clamp(26px, 3vw, 32px); }
.stage .gain { margin-top: 12px; font-size: 19px; color: var(--ink); }
.stage p + p { margin-top: 12px; }
.stage .receive { margin-top: 16px; color: var(--muted); }
.stage .receive strong { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .stage { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; } }

/* ---------- lists ---------- */
.check-list { list-style: none; display: grid; gap: 12px; max-width: 66ch; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }

.standards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.standard { border-top: 2px solid var(--accent); padding-top: 14px; }
.standard b { display: block; font-family: var(--font); font-size: 17px; font-weight: 500; color: var(--accent-strong); margin-bottom: 6px; }
.standard span { font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 0; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.3s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--accent-strong); }
.faq details p { padding: 0 0 22px; color: var(--muted); }
.faq details[open] p { animation: sample-in 0.4s ease; }

/* ---------- about ---------- */
.founder { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.founder-photo { width: 300px; border-radius: 12px; }
.founder h2 { margin-bottom: 4px; }
.founder .role { font-size: 17px; color: var(--accent-strong); font-weight: 500; margin-bottom: 20px; }
.founder p + p { margin-top: 14px; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; gap: 24px; } .founder-photo { width: 220px; } }
.letter { max-width: 640px; margin: 0 auto; font-size: 17px; line-height: 1.75; }
.letter h2 { font-size: 22px; font-style: italic; font-weight: 400; margin-bottom: 18px; }
.letter p + p { margin-top: 16px; }
.letter .signature { margin-top: 22px; font-style: italic; font-size: 21px; color: var(--accent-strong); }
.letter .signature svg { display: block; width: 140px; height: 18px; margin-top: 2px; }
.letter .signature path { fill: none; stroke: var(--good); stroke-width: 2; stroke-linecap: round; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 36px;
  background: linear-gradient(158deg, var(--surface) 0%, color-mix(in srgb, var(--accent-soft) 70%, var(--surface)) 100%);
}
.panel::before {
  content: ""; position: absolute; top: 0; left: -35%; width: 35%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--good), transparent);
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0% { transform: translateX(0); opacity: 0; } 8%, 62% { opacity: 1; } 72%, 100% { transform: translateX(420%); opacity: 0; } }
@media (max-width: 560px) { .panel { padding: 26px 20px; } }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 15.5px; font-weight: 500; }
.form-row input, .form-row textarea {
  font-size: 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 13px; resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); outline: none; }
.form-row input[aria-invalid="true"] { border-color: #c0392b; }
.field-error, .form-error { font-size: 15px; color: #c0392b; }
[data-theme="dark"] .field-error, [data-theme="dark"] .form-error { color: #ff8a80; }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 14.5px; color: var(--muted); }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 20px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font); font-size: 16px; font-weight: 500; color: var(--accent-strong); }
.steps b { display: block; font-weight: 500; }
.steps span { color: var(--muted); font-size: 15.5px; }

/* ---------- call to action band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: 88px 0; border-top: 1px solid var(--line); }
.cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 26%; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--surface) 50%, transparent), transparent); animation: sweep 7s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateX(0); } 60%, 100% { transform: translateX(620%); } }
.cta > .container { position: relative; z-index: 2; text-align: center; }
.cta h2 { max-width: 22ch; margin: 0 auto; }
.cta p { margin: 16px auto 0; color: var(--muted); }
.cta .actions { justify-content: center; }

/* ---------- insights: a magazine ---------- */
.masthead { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 0; border-bottom: 1px solid var(--line); }
.masthead > .container { position: relative; z-index: 2; }
.masthead h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 300; letter-spacing: -0.015em; }
.masthead .lead { max-width: 64ch; }
.theme-bar { display: flex; gap: 6px 28px; flex-wrap: wrap; margin-top: 36px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16.5px; }
.theme-bar a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.theme-bar a:hover, .theme-bar a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 640px) { .theme-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .theme-bar a { white-space: nowrap; } }
.story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 36px; align-items: center; text-decoration: none; color: inherit; border-radius: 14px; }
.story .cover { aspect-ratio: 1200 / 630; border-radius: 12px; overflow: hidden; background: var(--panel); }
.story .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.story:hover .cover img { transform: scale(1.04); }
.kicker { display: block; font-size: 15px; font-weight: 500; color: var(--accent-strong); margin-bottom: 10px; }
.story h2, .story h3 { color: var(--ink); transition: color 0.2s ease; }
.story h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 400; line-height: 1.12; }
.story:hover h2, .story:hover h3, .tile:hover h3 { color: var(--accent-strong); }
.story p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.story .read { margin-top: 18px; color: var(--accent-strong); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 20px; } }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: block; text-decoration: none; color: inherit; }
.tile .cover { aspect-ratio: 1200 / 630; border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: var(--panel); }
.tile .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.tile:hover .cover img { transform: scale(1.05); }
.tile h3 { font-size: 21px; font-weight: 500; transition: color 0.2s ease; }
.tile p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.tile .count { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--accent-strong); }
.article-cover { aspect-ratio: 1200 / 630; border-radius: 14px; overflow: hidden; margin: 28px 0 0; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.email-text { font-size: 20px; font-weight: 500; color: var(--ink); user-select: all; }
/* ---------- insights (older pieces) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: center; }
.feature h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 400; }
.feature h3 a { color: var(--ink); text-decoration: none; }
.feature h3 a:hover { color: var(--accent-strong); }
.feature p { margin-top: 12px; color: var(--muted); }
.feature-art { aspect-ratio: 1.3; border-radius: 10px; background: radial-gradient(circle at 30% 30%, var(--glow-a), transparent 60%), radial-gradient(circle at 75% 70%, var(--glow-b), transparent 60%), var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.feature-art .art { max-width: 260px; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature-art { display: none; } }
.meta { display: block; margin-top: 12px; font-size: 15px; color: var(--muted); }
.theme-card h3 { font-size: 21px; }
.theme-card .count { display: block; margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--accent-strong); }
.post-list { list-style: none; }
.post { padding: 28px 0; border-top: 1px solid var(--line); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.post:last-child { border-bottom: 1px solid var(--line); }
.post:hover { transform: translateX(6px); }
.post h3 { font-size: clamp(21px, 2.3vw, 25px); font-weight: 400; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--accent-strong); }
.post p { margin-top: 8px; color: var(--muted); }
.questions { list-style: none; display: grid; gap: 14px; }
.questions li { padding: 18px 20px; border-radius: 10px; border: 1px dashed var(--line-strong); background: var(--surface); }
.crumbs { font-family: var(--font); font-size: 15px; margin-bottom: 18px; color: var(--muted); }
.crumbs a { text-decoration: none; }

.article { max-width: 700px; margin: 0 auto; padding: 56px 0 72px; }
.article-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(34px, 4.6vw, 50px); }
.article-subtitle { margin-top: 18px; font-size: 20px; line-height: 1.5; font-style: italic; color: var(--muted); }
.prose { padding-top: 36px; font-size: 19px; line-height: 1.78; }
.prose > * { max-width: none; }
.prose p { margin: 0 0 1.3em; }
.prose h2 { font-size: clamp(24px, 2.8vw, 29px); font-weight: 500; margin: 1.9em 0 0.7em; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.3em 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote { margin: 0 0 1.3em; padding: 18px 22px; border-radius: 10px; background: var(--panel); font-style: italic; }
.sources { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 22px; margin-bottom: 16px; }
.sources ol { padding-left: 1.6em; }
.sources li { font-size: 15.5px; line-height: 1.5; margin-bottom: 10px; color: var(--muted); }
.sources a { overflow-wrap: anywhere; }
.byline-box { margin-top: 48px; padding: 22px 24px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.byline-box b { color: var(--ink); font-weight: 500; }

/* ---------- privacy ---------- */
.policy { max-width: 780px; padding: 64px 0 72px; }
.policy-date { margin-top: 12px; color: var(--muted); }
.policy-intro { margin-top: 28px; }
.policy h2 { font-size: 23px; font-weight: 500; margin-top: 40px; }
.policy h2 + p { margin-top: 10px; }
.policy p + p { margin-top: 14px; }

/* ---------- footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 28px 0 24px; font-size: 15px; color: var(--muted); background: var(--panel); }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--good), transparent); opacity: 0.7; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; flex-wrap: wrap; }
.footer-brand .brand { margin-bottom: 6px; }
.footer-brand p { margin-top: 2px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-nav a, .footer-brand p a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover, .footer-brand p a:hover { color: var(--accent-strong); text-decoration: underline; }

/* ---------- moving between pages ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out 0.22s ease both; }
::view-transition-new(root) { animation: page-in 0.45s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .crumbs, .glow, .cta { display: none !important; }
  body { font-size: 11pt; background: #fff; }
  .article { max-width: none; padding: 0; }
  .prose { font-size: 11pt; line-height: 1.5; }
  .sources a::after { content: " " attr(href); font-size: 8pt; word-break: break-all; }
}

/* ==========================================================
   Opening on the home page. Plays once per visit, then leaves.
   ========================================================== */
.intro-lock, .intro-lock body { overflow: hidden; }
#intro { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 2147483000; background: #000; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; animation: intro-plum 1.2s ease-out forwards, intro-out 0.8s ease 3.7s forwards; }
.intro-atmo, .intro-orbits, .intro-vig { position: absolute; inset: 0; pointer-events: none; }
.intro-atmo { opacity: 0; background: radial-gradient(80vmax 80vmax at 28% 30%, rgba(140,82,255,0.30) 0%, rgba(140,82,255,0) 70%), radial-gradient(84vmax 84vmax at 82% 88%, rgba(190,157,255,0.13) 0%, rgba(190,157,255,0) 70%), radial-gradient(60vmax 60vmax at 74% 40%, rgba(126,217,87,0.15) 0%, rgba(126,217,87,0) 70%), radial-gradient(48vmax 48vmax at 16% 80%, rgba(126,217,87,0.07) 0%, rgba(126,217,87,0) 70%); }
.intro-vig { background: radial-gradient(68% 52% at 50% 46%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.78) 100%); }
.intro-orbits { opacity: 0; }
.intro-orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(190,157,255,0.08); }
.intro-orbit i { position: absolute; left: 50%; top: 0; width: 0.8vmin; height: 0.8vmin; margin: -0.4vmin 0 0 -0.4vmin; border-radius: 50%; background: #be9dff; box-shadow: 0 0 1.8vmin 0.5vmin rgba(190,157,255,0.7); }
.intro-o1 { width: 76vmin; height: 76vmin; margin: -38vmin 0 0 -38vmin; animation: intro-spin 26s linear infinite; }
.intro-o2 { width: 98vmin; height: 98vmin; margin: -49vmin 0 0 -49vmin; animation: intro-spin-back 40s linear infinite; }
.intro-o3 { width: 56vmin; height: 56vmin; margin: -28vmin 0 0 -28vmin; animation: intro-spin 18s linear infinite; }
.intro-o2 i { background: #7ed957; box-shadow: 0 0 1.8vmin 0.5vmin rgba(126,217,87,0.6); }
.intro-o3 i { background: #8c52ff; box-shadow: 0 0 1.6vmin 0.4vmin rgba(140,82,255,0.7); }
.intro-stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5vh; gap: 5dvh; padding: 6vh 6vw; padding: 6dvh 6vw; max-width: 100%; }
.intro-mark { display: block; width: auto; height: min(34vh, 58vw); height: min(34dvh, 58vw); max-width: 58vw; opacity: 0; }
.intro-text { display: flex; flex-direction: column; align-items: center; }
.intro-word { font-family: var(--font); font-weight: 400; font-size: min(12vw, 15vh); font-size: min(12vw, 15dvh); line-height: 1; letter-spacing: 0.1em; margin-right: -0.1em; color: #f1eef9; white-space: nowrap; opacity: 0; }
.intro-rule { width: min(62vw, 46vh); height: 2px; margin-top: 3.2vh; background: linear-gradient(90deg, rgba(140,82,255,0) 0%, #8c52ff 25%, #be9dff 50%, #7ed957 78%, rgba(126,217,87,0) 100%); opacity: 0; }
.intro-site { margin-top: 2.6vh; font-family: var(--font); font-size: min(3.6vw, 2.2vh); letter-spacing: 0.3em; margin-right: -0.3em; color: #afa9c0; opacity: 0; }
.intro-site b { font-weight: 400; color: #be9dff; }
@media (orientation: landscape) {
  .intro-stage { flex-direction: row; gap: 5vw; padding: 4vh 5vw; padding: 4dvh 5vw; }
  .intro-mark { height: min(46vh, 38vw); height: min(46dvh, 38vw); max-width: 34vw; }
  .intro-word { font-size: min(7.5vw, 11vh); font-size: min(7.5vw, 11dvh); }
  .intro-rule { width: min(34vw, 40vh); }
  .intro-site { font-size: min(1.5vw, 2.4vh); font-size: min(1.5vw, 2.4dvh); }
}
.intro-atmo { animation: intro-fade 1.8s ease-out 0.05s forwards; }
.intro-orbits { animation: intro-fade 1.8s ease-out 0.25s forwards; }
.intro-mark { animation: intro-fade 1.2s ease-in-out 0.2s forwards; }
.intro-word { animation: intro-fade 1.1s ease-in-out 0.3s forwards; }
.intro-rule, .intro-site { animation: intro-fade 0.8s ease-out 1.4s forwards; }
@keyframes intro-plum { from { background-color: #000; } to { background-color: #121018; } }
@keyframes intro-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-spin { to { transform: rotate(360deg); } }
@keyframes intro-spin-back { to { transform: rotate(-360deg); } }

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; animation-delay: 0s !important; transition-delay: 0s !important; }
  .js-anim [data-rise] { opacity: 1; transform: none; }
  #intro { animation: intro-plum 1.2s ease-out forwards, intro-out 0.8s ease 3.7s forwards !important; }
  .intro-atmo, .intro-orbits, .intro-mark, .intro-word, .intro-rule, .intro-site { animation-duration: 1s !important; }
  .intro-orbit { animation: none !important; }
}

/* Short labeled steps used in place of long paragraphs */
.mini { list-style: none; counter-reset: mini; margin: 18px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.mini li { position: relative; padding-left: 28px; }
.mini li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.mini b { display: block; font-weight: 600; color: var(--ink); }
.mini span { display: block; color: var(--muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 760px) { .mini { grid-template-columns: 1fr; } }

/* Insights strip on the home page */
.insights-strip { padding-top: 56px; }
.strip-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.insights-strip .theme-bar { margin-top: 22px; }

/* Framework beside its explanation, so the drawing stays small */
.fw-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.fw-split .section-head { margin-bottom: 0; }
.fw-split .framework-wrap { max-width: 540px; justify-self: end; width: 100%; }
@media (max-width: 1000px) { .fw-split { grid-template-columns: 1fr; gap: 28px; } .fw-split .framework-wrap { justify-self: start; } }

/* Lead article without a picture */
.story.plain { display: block; max-width: 820px; }
.story.plain h2 { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 1px; transition: text-decoration-color 0.2s ease, color 0.2s ease; }
.story.plain:hover h2 { text-decoration-color: currentColor; }
.tile.plain { border-top: 1px solid var(--line-strong); padding-top: 16px; }

/* Standards roll past instead of sitting in a fixed list */
.roll { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.roll-track { display: flex; width: max-content; animation: roll 36s linear infinite; }
.roll:hover .roll-track { animation-play-state: paused; }
.roll-track span { white-space: nowrap; padding: 0 34px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; color: var(--accent-strong); }
.roll-track span:nth-child(even) { color: var(--ink); }
@keyframes roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .roll-track { animation: none; flex-wrap: wrap; width: auto; gap: 12px 0; } .roll-track span[aria-hidden] { display: none; } }

/* About: mission and vision */
.statements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.statements h2 { font-size: 20px; font-weight: 500; color: var(--accent-strong); margin-bottom: 12px; }
.statements p { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.4; font-weight: 300; color: var(--ink); }
.story-text { max-width: 760px; }
.story-text p { font-size: 18px; line-height: 1.7; }
.story-text p + p { margin-top: 16px; }
@media (max-width: 760px) { .statements { grid-template-columns: 1fr; } }

/* The lead article as a dark feature panel, so it stands out in both modes */
.story.plain { display: block; max-width: none; padding: clamp(28px, 5vw, 56px); border-radius: 16px; color: #f4f0ff;
  background: radial-gradient(60% 90% at 12% 10%, rgba(140, 82, 255, 0.55), transparent 70%), radial-gradient(50% 80% at 92% 95%, rgba(126, 217, 87, 0.28), transparent 70%), linear-gradient(135deg, #1d1436, #120f1c);
  box-shadow: 0 18px 44px -18px rgba(60, 30, 140, 0.55); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.story.plain:hover { transform: translateY(-3px); box-shadow: 0 26px 54px -18px rgba(60, 30, 140, 0.7); }
.story.plain .kicker { color: #c9b3ff; }
.story.plain h2, .story.plain:hover h2 { color: #ffffff; font-size: clamp(32px, 4.4vw, 54px); max-width: 18ch; }
.story.plain p { color: #ddd5f3; max-width: 60ch; font-size: 19px; }
.story.plain .meta { display: block; margin-top: 14px; color: #b9aedb; }
.story.plain .read { display: inline-flex; margin-top: 24px; background: #ffffff; color: #2a1b52; font-weight: 500; }
.stage-num { font-size: 40px; }

/* ---------- No boxed-in areas: content sits on the page, separated by plain rules ---------- */
.card { background: none; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 22px 0 6px; overflow: visible; }
.card::after { display: none; }
.card:hover { transform: none; border-color: var(--line-strong); box-shadow: none; }
.grid-2, .grid-3, .grid-4 { gap: 30px 40px; }
.inside { margin-top: 26px; padding: 0; border: 0; border-radius: 0; background: none; }
.inside h3 { color: var(--ink); font-weight: 500; }
.retainer { padding: 22px 0 0; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: none; }
.panel { border: 0; border-radius: 0; padding: 0; background: none; overflow: visible; }
.panel::before, .panel::after { display: none; }
.questions li { padding: 16px 0; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: none; }
.byline-box { padding: 20px 0 0; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: none; }
.prose blockquote { padding: 0 0 0 22px; border-radius: 0; background: none; }
.steps li::before { border: 0; border-radius: 0; width: auto; height: auto; font-size: 30px; font-weight: 300; line-height: 1; color: var(--accent); }
.fw-node rect, .fw-in:hover rect, .fw-in:focus rect, .fw-in.is-active rect, .fw-out:hover rect, .fw-out:focus rect, .fw-out.is-active rect { fill: transparent; stroke: none; }
.fw-node:hover .fw-k, .fw-node:focus .fw-k, .fw-node.is-active .fw-k { fill: var(--accent-strong); text-decoration: underline; }
.fw-tip { border-radius: 4px; }
.field input, .field select, .field textarea, form input, form select, form textarea { border-radius: 4px; }
.story.plain { border-radius: 4px; }
.founder-photo, .tile .cover { border-radius: 4px; }
.btn, .theme-toggle, .menu-button { border-radius: 4px; }

/* ---------- Solid colour blocks: square corners, no outlines, shade carries the structure ---------- */
.card { background: var(--accent-soft); border: 0; border-radius: 2px; padding: 26px 24px 28px; transition: transform 0.3s ease; }
.grid-4 .card:nth-child(even), .grid-3 .card:nth-child(even), .grid-2 .card:nth-child(4n+2), .grid-2 .card:nth-child(4n+3) { background: var(--good-soft); }
.bg-panel .card, .bg-wash .card { background: var(--surface); }
.bg-panel .card:nth-child(even), .bg-wash .card:nth-child(even) { background: color-mix(in srgb, var(--surface) 55%, var(--good-soft)); }
.card:hover { transform: translateY(-3px); }
.grid-2, .grid-3, .grid-4 { gap: 16px; }
.retainer { padding: 22px 26px; border: 0; background: var(--ink); color: var(--paper); border-radius: 2px; }
.retainer strong { color: inherit; }
.questions li { padding: 18px 22px; border: 0; background: var(--surface); border-radius: 2px; margin-bottom: 8px; }

/* Services: each stage is its own band of colour */
.stage { position: relative; grid-template-columns: 84px minmax(0, 1fr); gap: 0 20px; padding: 44px 40px; border: 0; border-radius: 2px; margin-bottom: 18px; background: var(--accent-soft); }
.stage:nth-of-type(even) { background: var(--good-soft); }
.stage-num { font-size: 76px; font-weight: 300; line-height: 0.9; color: var(--accent); }
.stage-sticker { position: absolute; right: 36px; top: 34px; margin: 0; }
.stage h2, .stage .gain { padding-right: 100px; }
.stage .inside { background: var(--surface); padding: 26px 28px; border-radius: 2px; }
.stage#advisory { background: radial-gradient(60% 90% at 10% 0%, rgba(140, 82, 255, 0.5), transparent 70%), linear-gradient(135deg, #1d1436, #120f1c); color: #ddd5f3; }
.stage#advisory h2, .stage#advisory .gain, .stage#advisory .mini b { color: #ffffff; }
.stage#advisory .mini span { color: #cfc5ea; }
.stage#advisory .stage-num, .stage#advisory .mini li::before { color: #c9b3ff; border-color: #c9b3ff; }
@media (max-width: 640px) { .stage { padding: 30px 22px; } .stage-num { font-size: 54px; } .stage-sticker { right: 18px; top: 22px; } }

/* About */
.hero-center { text-align: center; }
.hero-center h1, .hero-center .lead { margin-left: auto; margin-right: auto; }
.statements { gap: 16px; }
.statements > div { padding: clamp(28px, 4vw, 48px); border-radius: 2px; }
.statements > div:first-child { background: linear-gradient(135deg, #2a1b52, #1b1430); }
.statements > div:first-child h2 { color: #c9b3ff; }
.statements > div:first-child p { color: #ffffff; }
.statements > div:last-child { background: var(--good-soft); }
.statements > div:last-child h2 { color: var(--ink); }
.stage, .stage:first-child, .stage:first-of-type { padding-top: 44px; }
.stage:last-child { padding-bottom: 44px; }
.story-text { margin: 0 auto; }
.section-head:has(+ .story-text) { max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) {
  .stage { grid-template-columns: 1fr; gap: 10px; padding: 30px 22px; }
  .stage .gain { padding-right: 0; }
  .stage h2 { padding-right: 76px; }
  .stage .inside { padding: 20px 18px; }
}

/* Only what was asked: more room inside each stage, advisory matches the others, vision a lighter plum, no black strip */
.stage, .stage:first-child, .stage:first-of-type, .stage:last-child { padding: 56px 52px; }
.stage#advisory { background: var(--accent-soft); color: inherit; }
.stage#advisory:nth-of-type(even) { background: var(--good-soft); }
.stage#advisory h2, .stage#advisory .gain, .stage#advisory .mini b { color: var(--ink); }
.stage#advisory .mini span { color: var(--muted); }
.stage#advisory .stage-num { color: var(--accent); }
.stage#advisory .mini li::before { border-color: var(--accent); }
.statements > div:last-child { background: linear-gradient(135deg, #5a4a96, #4a3b82); }
.statements > div:last-child h2 { color: #ddd0ff; }
.statements > div:last-child p { color: #ffffff; }
.retainer { background: var(--accent-soft); color: var(--ink); }
@media (max-width: 760px) { .stage, .stage:first-child, .stage:first-of-type, .stage:last-child { padding: 32px 22px; } }
/* Alternate blocks use a soft pink from the same plum family instead of green */
:root { --alt-soft: #f7e6f3; }
:root[data-theme="dark"] { --alt-soft: #33203a; }
.grid-4 .card:nth-child(even), .grid-3 .card:nth-child(even), .grid-2 .card:nth-child(4n+2), .grid-2 .card:nth-child(4n+3) { background: var(--alt-soft); }
.bg-panel .card:nth-child(even), .bg-wash .card:nth-child(even) { background: color-mix(in srgb, var(--surface) 55%, var(--alt-soft)); }
.stage:nth-of-type(even), .stage#advisory:nth-of-type(even) { background: var(--alt-soft); }

/* ---------- Motion tied to scrolling ---------- */
.scroll-rail { position: fixed; right: 22px; top: 22vh; height: 56vh; width: 1px; background: var(--line-strong); z-index: 5; pointer-events: none; }
.scroll-rail i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.scroll-rail svg { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; fill: var(--accent); will-change: transform; }
.scroll-rail svg circle { fill: var(--paper); }
@media (max-width: 1180px) { .scroll-rail { display: none; } }
.has-gears { position: relative; overflow: hidden; }
.has-gears > .container { position: relative; z-index: 1; }
.gears { position: absolute; right: -70px; top: -60px; width: 420px; height: 420px; pointer-events: none; opacity: 0.16; }
.gears svg { position: absolute; fill: none; stroke: var(--accent); stroke-width: 1.4; will-change: transform; }
.gears .g1 { width: 260px; height: 260px; right: 0; top: 0; }
.gears .g2 { width: 170px; height: 170px; right: 222px; top: 150px; stroke: var(--accent-strong); }
.gears .g3 { width: 120px; height: 120px; right: 96px; top: 262px; }
@media (max-width: 760px) { .gears { opacity: 0.1; right: -150px; } }
.js-scroll [data-fold], .js-scroll [data-zoom] { transition: none !important; will-change: transform, opacity; backface-visibility: hidden; }
.js-scroll [data-fold] { transform-origin: 50% 0; }

/* ---------- More motion: page wipe, headline reveal, pinned story, opening report, words lighting up ---------- */
.has-gears { overflow: clip; }
html.wipe-out body::before, .wipe { content: ''; position: fixed; inset: 0; z-index: 9999; background: linear-gradient(135deg, #2a1b52, #120f1c); pointer-events: none; }
html.wipe-out body::before { animation: wipe-out 0.65s cubic-bezier(0.7, 0, 0.2, 1) 0.05s both; }
@keyframes wipe-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
.wipe { clip-path: inset(100% 0 0 0); transition: clip-path 0.42s cubic-bezier(0.7, 0, 0.2, 1); }
.wipe.is-on { clip-path: inset(0 0 0 0); }

.js-scroll h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.js-scroll h1 .w > span { display: inline-block; transform: translateY(115%); }
.js-scroll h1.h-go .w > span { animation: word-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 55ms + 0.15s) both; }
@keyframes word-up { from { transform: translateY(115%); } to { transform: none; } }
.js-scroll [data-light] .lw { opacity: 0.28; transition: opacity 0.25s ease; }
.js-scroll [data-light] .lw.on { opacity: 1; }

.pin-story { display: none; }
@media (min-width: 960px) {
  .js-scroll .pin-story { display: block; height: 300vh; }
  .js-scroll .pin-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pin-stage { position: sticky; top: 72px; height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .pin-step { padding: 18px 0; opacity: 0.25; transform: translateX(0); transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .pin-step.is-on { opacity: 1; transform: translateX(14px); }
  .pin-step h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 4px 0 8px; }
  .pin-step p { color: var(--muted); max-width: 44ch; }
  .pin-art { width: 100%; max-width: 460px; justify-self: center; overflow: visible; }
}
.pin-tile { fill: var(--accent); opacity: var(--o, 1); }
.pin-frame { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; }
.pin-arc-bg, .pin-arc { fill: none; stroke-width: 14; stroke-linecap: round; }
.pin-arc-bg { stroke: var(--line-strong); }
.pin-arc { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: 100; }
.pin-needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transform-box: view-box; transform-origin: 210px 250px; }
.pin-hub { fill: var(--ink); }
.pin-label { fill: var(--ink); font-size: 18px; font-weight: 500; }
.pin-gauge-part { opacity: 0; }

.head-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.fan { position: relative; width: 250px; height: 190px; perspective: 900px; margin-right: 40px; }
.fan i { position: absolute; left: 70px; top: 14px; width: 118px; height: 160px; border-radius: 3px; transform-origin: 50% 100%; will-change: transform; }
.fan-page { background: var(--surface); box-shadow: 0 6px 18px -8px rgba(40, 20, 90, 0.45); background-image: repeating-linear-gradient(180deg, transparent 0 13px, var(--line-strong) 13px 14px); background-size: 70% 100%; background-position: 50% 22px; background-repeat: no-repeat; }
.fan-cover { background: linear-gradient(135deg, #2a1b52, #120f1c); transform-origin: 0 50% !important; display: grid; place-items: center; backface-visibility: hidden; }
.fan-cover b { color: #fff; font-weight: 500; font-size: 13px; letter-spacing: 0.04em; font-style: normal; }
@media (max-width: 760px) { .head-split { grid-template-columns: 1fr; } .fan { display: none; } }

/* The three-step story is an ordinary section that plays once; nothing is pinned */
@media (min-width: 960px) {
  .js-scroll .pin-story { display: block; height: auto; }
  .pin-stage { position: static; height: auto; padding: 8px 0 28px; }
  .pin-step { opacity: 0.3; }
  .pin-story.is-done .pin-step { opacity: 1; transform: none; }
}
/* The report opens slowly */
.fan i { transition: transform 1.8s cubic-bezier(0.3, 0, 0.2, 1); }
.fan .fan-page:nth-child(2) { transition-delay: 0.5s; } .fan .fan-page:nth-child(1), .fan .fan-page:nth-child(3) { transition-delay: 0.9s; }
.fan.is-open .fan-cover { transform: rotateY(-165deg); }
.fan.is-open .fan-page:nth-child(1) { transform: rotate(-17deg) translate(-26px, 6px); }
.fan.is-open .fan-page:nth-child(3) { transform: rotate(17deg) translate(26px, 6px); }
/* A light shimmer across the closing headline, instead of words appearing one by one */
@media (prefers-reduced-motion: no-preference) {
  .cta h2 { background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 42%, var(--accent) 50%, var(--ink) 58%, var(--ink) 100%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: shimmer 5s ease-in-out infinite; }
}
@keyframes shimmer { 0%, 35% { background-position: 100% 0; } 75%, 100% { background-position: 0% 0; } }

/* ---------- How it works: the text scrolls, its drawing stays beside it; each step has its own drawing ---------- */
@media (min-width: 960px) {
  .js-scroll .pin-story { display: block; height: auto; }
  .pin-stage { position: static; height: auto; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .pin-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 0; opacity: 0.3; transform: none; transition: opacity 0.5s ease; }
  .pin-step.is-on, .pin-story.is-done .pin-step.is-on { opacity: 1; transform: none; }
  .pin-story.is-done .pin-step { opacity: 0.3; }
  .pin-art-wrap { position: sticky; top: calc(50vh - 190px); height: 420px; width: 100%; max-width: 440px; justify-self: center; }
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity 0.45s ease; }
.scene.is-on { opacity: 1; transition: opacity 0.6s ease 0.15s; }
/* 1: workflows ranked */
.scene-rank .bar rect { fill: var(--accent); opacity: calc(1 - var(--k) * 0.17); transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.01s linear 0.5s; }
.scene-rank .bar text { fill: var(--muted); font-size: 18px; opacity: 0; transition: opacity 0.01s linear 0.5s; }
.scene-rank.is-on .bar rect { transform: scaleX(1); transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) calc(0.25s + var(--k) * 0.14s); }
.scene-rank.is-on .bar text { opacity: 1; transition: opacity 0.5s ease calc(0.25s + var(--k) * 0.14s); }
/* 2: scattered tools gather into one kit */
.scene-equip .pin-tile { transform-box: fill-box; transform-origin: 50% 50%; transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); transition: transform 0.01s linear 0.5s; }
.scene-equip.is-on .pin-tile { transform: translate(var(--gx), var(--gy)) rotate(0deg); transition: transform 1.5s cubic-bezier(0.3, 0, 0.15, 1) calc(0.3s + var(--k) * 0.05s); }
.scene-equip .pin-frame { opacity: 0; transition: opacity 0.01s linear 0.5s; }
.scene-equip.is-on .pin-frame { opacity: 1; transition: opacity 0.7s ease 1.7s; }
/* 3: the gauge fills */
.scene-measure .pin-arc { stroke-dashoffset: 100; transition: stroke-dashoffset 0.01s linear 0.5s; }
.scene-measure.is-on .pin-arc { stroke-dashoffset: 18; transition: stroke-dashoffset 1.8s cubic-bezier(0.3, 0, 0.15, 1) 0.35s; }
.scene-measure .pin-needle { transform: rotate(-90deg); transition: transform 0.01s linear 0.5s; }
.scene-measure.is-on .pin-needle { transform: rotate(58deg); transition: transform 1.8s cubic-bezier(0.3, 0, 0.15, 1) 0.35s; }
.scene-measure .pin-needle { transform-origin: 210px 270px; }
.scene-measure .pin-label { opacity: 0; transition: opacity 0.01s linear 0.5s; }
.scene-measure.is-on .pin-label { opacity: 1; transition: opacity 0.6s ease 1.9s; }

/* ---------- How it works: three small drawings that stay on screen and loop without a cut ---------- */
@media (min-width: 960px) {
  .pin-stage { display: block; }
  .pin-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 64px; align-items: center; min-height: 230px; max-width: 860px; }
  .pin-row .pin-step, .pin-story.is-done .pin-row .pin-step { min-height: 0; display: block; opacity: 1; padding: 0; transform: none; }
  .pin-draw { position: relative; width: 190px; height: 190px; justify-self: center; }
  /* a dotted line keeps flowing from one drawing down to the next */
  .pin-row:not(:last-child) .pin-draw::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 40px; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 14px); background-size: 2px 14px; opacity: 0.6; animation: flow-down 0.9s linear infinite; }
}
@keyframes flow-down { to { background-position: 0 14px; } }
.lp { width: 100%; height: 100%; overflow: visible; }
.lp-bar { fill: var(--accent); opacity: calc(1 - var(--k) * 0.17); transform-box: fill-box; transform-origin: 0 50%; animation: lp-bar 4.5s ease-in-out calc(var(--k) * -0.5s) infinite alternate; }
@keyframes lp-bar { from { transform: scaleX(0.55); } to { transform: scaleX(1); } }
.lp-tile { fill: var(--accent); opacity: var(--o, 1); transform-box: fill-box; transform-origin: 50% 50%; animation: lp-tile 3.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
@keyframes lp-tile { 0%, 12% { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); } 70%, 100% { transform: translate(var(--gx), var(--gy)) rotate(0deg); } }
.lp-frame { fill: none; stroke: var(--accent); stroke-width: 1.5; animation: lp-frame 3.6s ease-in-out infinite alternate; }
@keyframes lp-frame { 0%, 60% { opacity: 0; } 85%, 100% { opacity: 1; } }
.lp-arc { fill: none; stroke: var(--accent); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 100; animation: lp-arc 5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
.lp-measure .pin-arc-bg { stroke-width: 16; }
@keyframes lp-arc { from { stroke-dashoffset: 72; } to { stroke-dashoffset: 16; } }
.lp-needle { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; transform-box: view-box; transform-origin: 210px 280px; animation: lp-needle 5s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
@keyframes lp-needle { from { transform: rotate(-40deg); } to { transform: rotate(61deg); } }
@media (prefers-reduced-motion: reduce) { .lp-bar, .lp-tile, .lp-frame, .lp-arc, .lp-needle, .pin-draw::after { animation: none !important; } .lp-tile { transform: translate(var(--gx), var(--gy)); } }

/* Insights front page: the knowledge-network drawing beside the heading */
.mast-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: center; }
.mast-split .art { width: 100%; max-width: 380px; justify-self: end; }
@media (max-width: 860px) { .mast-split { grid-template-columns: 1fr; gap: 12px; } .mast-split .art { max-width: 260px; justify-self: start; } }
