/* Copio web, Identity B "Brights".
   ink #141126 / cream #FFF7EC / flare #FF6A00 / pulse #00E5D4 / bloom #FF2D87.
   Rule: bright fills always carry ink text. Every pair clears WCAG AA in both themes.

   The vhost CSP is default-src 'self' with no unsafe-inline, so every style lives
   here and every behaviour lives in copio-v2.js. No inline style attributes, no
   inline event handlers, no external stylesheet hosts. */

/* ---------------- tokens ---------------- */
:root {
  --flare: #FF6A00;
  --flare-deep: #A93C00;
  --pulse: #00E5D4;
  --pulse-deep: #00635C;
  --bloom: #FF2D87;
  --bloom-deep: #B4005A;
  --ink: #141126;
  --ink-2: #1F1A38;
  --cream: #FFF7EC;
  --white: #FFFFFF;

  --accent: var(--flare);
  --on-accent: var(--ink);

  --bg: var(--cream);
  --bg-2: var(--white);
  --fg: var(--ink);
  --fg-soft: #5C5570;
  --line: rgba(20, 17, 38, 0.16);
  --accent-text: var(--flare-deep);
  --grid-line: rgba(20, 17, 38, 0.05);
  --glyph-well: #F0E4D0;
  --shadow: 0 18px 50px rgba(20, 17, 38, 0.10);

  --sy: 0px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--ink);
    --bg-2: var(--ink-2);
    --fg: var(--cream);
    --fg-soft: #B9B2C9;
    --line: rgba(255, 247, 236, 0.2);
    --accent-text: var(--accent);
    --grid-line: rgba(255, 247, 236, 0.06);
    --glyph-well: #2A2448;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --fg: var(--cream);
  --fg-soft: #B9B2C9;
  --line: rgba(255, 247, 236, 0.2);
  --accent-text: var(--accent);
  --grid-line: rgba(255, 247, 236, 0.06);
  --glyph-well: #2A2448;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--on-accent);
  padding: 12px 20px; font-weight: 700; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------------- motion primitives ----------------
   Entry animations move only. Nothing ever fades in from zero, so no element
   can be stranded invisible if animations are paused or unsupported. */
@keyframes rise-in { from { transform: translateY(34px) scale(0.975); } to { transform: none; } }
@keyframes pop-in { 0% { transform: scale(0.88) translateY(18px); } 60% { transform: scale(1.06) translateY(-5px); } 100% { transform: none; } }
@keyframes word-up { from { transform: translateY(0.34em) rotate(1.6deg); } to { transform: none; } }
@keyframes float-y {
  0%, 100% { transform: translate3d(0, var(--py, 0px), 0); }
  50% { transform: translate3d(0, calc(var(--py, 0px) - 14px), 0); }
}
@keyframes bounce-y {
  0%, 100% { transform: translate3d(0, var(--py, 0px), 0); animation-timing-function: cubic-bezier(0.3, 0, 0.5, 1); }
  50% { transform: translate3d(0, calc(var(--py, 0px) - 16px), 0); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1.4); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ring-pulse { 0% { transform: scale(0.85); opacity: 0.85; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes dash-run { to { stroke-dashoffset: -160; } }
@keyframes blob-drift {
  0%, 100% { transform: translate(0, var(--py, 0px)) scale(1); }
  33% { transform: translate(34px, calc(var(--py, 0px) - 26px)) scale(1.09); }
  66% { transform: translate(-26px, calc(var(--py, 0px) + 20px)) scale(0.95); }
}
@keyframes grow-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.float { animation: float-y 6s ease-in-out infinite; }
.bounce { animation: bounce-y 2.4s infinite; }

[data-reveal] { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 2% cover 30%; }
[data-reveal="pop"] { animation-name: pop-in; animation-range: entry 4% cover 26%; }

/* Parallax. JS writes --py per layer; a plain layer uses it directly and an
   animated layer folds it into its own keyframes, so the two compose instead
   of the animation silently winning. */
.par { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.par.float, .par.bounce, .blob.par { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .bounce, .marq-track, .blob, .ring, .dial, .thread path { animation: none !important; }
  [data-reveal] { animation: none !important; }
  .par { transform: none !important; }
  h1 .w { animation: none !important; }
}

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(18px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { color: inherit; }
.brand-mark { position: relative; width: 26px; height: 26px; display: grid; place-items: center; }
.brand-dot { width: 14px; height: 14px; border-radius: 5px; background: var(--accent); display: block; }
.ring { position: absolute; inset: 0; border-radius: 10px; border: 2px solid var(--accent); animation: ring-pulse 2.6s ease-out infinite; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 9px; font-size: 15px; font-weight: 500; transition: background 180ms, color 180ms; }
.nav-links a:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }
.nav-links a[aria-current] { background: var(--accent); color: var(--on-accent); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { white-space: nowrap; padding: 10px 16px; min-height: 44px; font-size: 14px; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 2px solid var(--line); border-radius: 12px; background: var(--bg-2);
  color: var(--fg); cursor: pointer;
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.3, 1.4), border-color 180ms;
}
.icon-btn:hover { transform: translateY(-2px) scale(1.03); border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .moon { display: block; }
}

.nav-toggle { display: none; }

.sheet { display: none; }
.sheet.open {
  display: grid; gap: 4px; padding: 12px clamp(18px, 4vw, 40px) 18px;
  border-bottom: 2px solid var(--line); background: var(--bg-2);
}
.sheet a { padding: 13px 12px; border-radius: 11px; font-size: 16px; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.sheet a:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; min-height: 46px;
  transition: transform 200ms cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 200ms;
}
.btn svg { width: 19px; height: 19px; }
.btn-solid { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 0 0 color-mix(in srgb, var(--accent) 55%, #000); }
.btn-solid:hover { color: var(--on-accent); transform: translateY(-3px); box-shadow: 0 9px 0 0 color-mix(in srgb, var(--accent) 55%, #000); }
.btn-solid:active { transform: translateY(3px); box-shadow: 0 2px 0 0 color-mix(in srgb, var(--accent) 55%, #000); }
.btn-line { border-color: var(--fg); color: var(--fg); }
.btn-line:hover { color: var(--fg); transform: translateY(-3px); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.btn-big { font-size: 17px; padding: 16px 30px; border-radius: 14px; min-height: 56px; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 76px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.backdrop { position: absolute; inset: -10% -6% 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.5; animation: blob-drift 17s ease-in-out infinite; }
:root[data-theme="dark"] .blob { opacity: 0.42; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blob { opacity: 0.42; } }
.blob.b1 { width: 460px; height: 460px; background: var(--flare); top: -90px; left: -80px; }
.blob.b2 { width: 400px; height: 400px; background: var(--pulse); top: 120px; right: 4%; animation-delay: -6s; }
.blob.b3 { width: 320px; height: 320px; background: var(--bloom); bottom: -110px; left: 34%; animation-delay: -11s; }
.mesh {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 78% 68% at 50% 40%, #000 32%, transparent 78%);
}
.hero-copy, .hero-art { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .spark { width: 7px; height: 7px; border-radius: 50%; background: var(--on-accent); animation: bounce-y 1.6s infinite; }

h1 {
  font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif; font-weight: 800;
  font-size: clamp(46px, 7.4vw, 96px); line-height: 0.92; letter-spacing: -0.045em;
  margin: 0 0 22px; text-wrap: balance;
}
h1 .w { display: inline-block; animation: word-up 760ms cubic-bezier(0.2, 0.9, 0.3, 1.35) both; }
h1 .w:nth-child(1) { animation-delay: 60ms; }
h1 .w:nth-child(2) { animation-delay: 150ms; }
h1 .w:nth-child(3) { animation-delay: 240ms; }
h1 .w:nth-child(4) { animation-delay: 330ms; }
.hl { color: var(--accent); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.04em; height: 0.11em; background: var(--pulse); border-radius: 999px; opacity: 0.9; }

.lede { font-size: clamp(17px, 1.9vw, 21px); color: var(--fg-soft); max-width: 30ch; margin: 0 0 30px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero-note { font-size: 14px; color: var(--fg-soft); margin: 0; }

.hero-art { position: relative; min-height: 470px; }
.clipcard {
  position: absolute; width: min(300px, 76%);
  background: var(--bg-2); border: 2px solid var(--fg); border-radius: 16px;
  padding: 15px 17px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
}
.cc-head { display: flex; align-items: center; gap: 9px; }
.cc-chip {
  font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 10px; line-height: 1;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap;
}
.cc-time { font-size: 11.5px; color: var(--fg-soft); margin-left: auto; font-family: "IBM Plex Mono", monospace; }
.cc-body { font-size: 14.5px; line-height: 1.45; margin: 0; }
.cc-mono { font-family: "IBM Plex Mono", monospace; font-size: 14px; }
.c1 { top: 8px; left: 2%; z-index: 3; color: var(--accent-text); }
.c2 { top: 156px; left: 24%; z-index: 4; color: var(--pulse-deep); animation-delay: -2s; }
:root[data-theme="dark"] .c2 { color: var(--pulse); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c2 { color: var(--pulse); } }
.c3 { top: 312px; left: 6%; z-index: 3; color: var(--bloom-deep); animation-delay: -4s; }
:root[data-theme="dark"] .c3 { color: var(--bloom); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c3 { color: var(--bloom); } }

.otp-num { font-family: "IBM Plex Mono", monospace; font-size: clamp(21px, 2vw, 28px); font-weight: 600; letter-spacing: 0.1em; color: var(--fg); white-space: nowrap; }
.otp-row { display: flex; align-items: center; gap: 11px; }
.otp-ring { width: 30px; height: 30px; flex: none; }
.otp-ring .track { stroke: var(--line); }
.otp-ring .run { stroke: currentColor; }

.badge-copied, .badge-synced {
  position: absolute; z-index: 6;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 700; font-size: 13.5px;
  padding: 10px 16px; border-radius: 999px; border: 2px solid var(--ink);
  box-shadow: 0 6px 0 0 rgba(20, 17, 38, 0.35);
}
.badge-copied { top: 96px; right: 0; background: var(--pulse); }
.badge-synced { top: 268px; right: 4%; background: var(--bloom); animation-delay: -1.2s; }
.badge-copied svg, .badge-synced svg { width: 16px; height: 16px; }
.thread { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.thread path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 10 12; opacity: 0.75; animation: dash-run 3.4s linear infinite; }

/* ---------------- marquee ---------------- */
.marq { border-block: 2px solid var(--fg); background: var(--accent); color: var(--on-accent); overflow: hidden; padding: 15px 0; }
.marq-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marq-track span {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 21px;
  letter-spacing: -0.01em; padding: 0 26px; display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
}
.marq-track span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--on-accent); flex: none; }

/* ---------------- sections ---------------- */
.sec { padding: clamp(56px, 8vw, 108px) 0; position: relative; }
.sec.tint { background: var(--bg-2); border-block: 2px solid var(--line); }
.sec.invert { background: var(--ink); color: var(--cream); }
.sec.invert .sec-lede, .sec.invert .f-body { color: rgba(255, 247, 236, 0.76); }
.sec.invert .kicker { color: var(--accent); }

.sec-head { max-width: 720px; margin: 0 0 clamp(32px, 4vw, 52px); }
h2 {
  font-family: "Bricolage Grotesque", "IBM Plex Sans", sans-serif; font-weight: 800;
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.0; letter-spacing: -0.035em;
  margin: 0 0 16px; text-wrap: balance;
}
.sec-lede { font-size: clamp(16px, 1.7vw, 19px); color: var(--fg-soft); margin: 0; max-width: 58ch; text-wrap: pretty; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }

/* ---------------- big icon features ---------------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.feature {
  background: var(--bg); border: 2px solid var(--fg); border-radius: 20px;
  padding: 30px 26px 28px; position: relative; overflow: hidden;
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 260ms;
}
.feature:hover { transform: translateY(-10px); box-shadow: 0 16px 0 -2px var(--accent); }
.feature:hover .big-icon { transform: scale(1.09) rotate(-4deg); }
.big-icon { width: 92px; height: 92px; margin-bottom: 20px; display: block; transition: transform 420ms cubic-bezier(0.2, 0.9, 0.3, 1.5); }
.big-icon .st { fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.big-icon .ac { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.big-icon .fillac { fill: var(--accent); stroke: none; }
.feature h3 { font-size: 22px; font-weight: 700; margin: 0 0 9px; letter-spacing: -0.02em; }
.f-body { font-size: 15.5px; color: var(--fg-soft); margin: 0; text-wrap: pretty; }

/* ---------------- steps ---------------- */
.steps { display: grid; gap: clamp(22px, 3vw, 34px); }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-n {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: clamp(64px, 9vw, 132px); line-height: 0.8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 2px var(--accent);
}
.step h3 { font-size: clamp(21px, 2.4vw, 29px); margin: 6px 0 10px; letter-spacing: -0.025em; }
.step p { margin: 0; color: var(--fg-soft); font-size: 16.5px; max-width: 62ch; text-wrap: pretty; }

/* ---------------- zero knowledge ---------------- */
.zk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(30px, 5vw, 64px); align-items: center; }
.vault { width: min(280px, 62vw); height: auto; }
.vault .st { fill: none; stroke: var(--cream); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vault .ac { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vault .dial { transform-origin: 100px 104px; animation: spin-slow 18s linear infinite; }
.zk-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.zk-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: rgba(255, 247, 236, 0.86); }
.zk-list .tick { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.zk-list .tick path { fill: none; stroke: var(--pulse); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- pricing ---------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(18px, 2.4vw, 26px); align-items: start; }
.plan { background: var(--bg-2); border: 2px solid var(--fg); border-radius: 20px; padding: 28px 26px; position: relative; transition: transform 240ms cubic-bezier(0.2, 0.9, 0.3, 1.4); }
.plan:hover { transform: translateY(-8px); }
.plan.featured { border-color: var(--accent); box-shadow: 0 12px 0 -2px var(--accent); }
.plan-tag {
  position: absolute; top: -14px; left: 24px; background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 2px solid var(--fg);
}
.plan h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.01em; }
.amount { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 46px; letter-spacing: -0.045em; line-height: 1; margin: 12px 0 6px; }
.amount small { font-size: 15px; font-weight: 500; color: var(--fg-soft); letter-spacing: 0; }
.plan p { color: var(--fg-soft); font-size: 15px; margin: 0 0 18px; text-wrap: pretty; }
.plan .btn { width: 100%; }

/* ---------------- platforms ---------------- */
.plats { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
.plat { text-align: center; padding: 30px 20px; border: 2px solid var(--fg); border-radius: 20px; background: var(--bg-2); transition: transform 240ms cubic-bezier(0.2, 0.9, 0.3, 1.4), background 240ms; }
.plat:hover { transform: translateY(-9px); background: color-mix(in srgb, var(--accent) 15%, var(--bg-2)); }
.plat-icon { width: 72px; height: 72px; margin: 0 auto 16px; display: block; }
.plat-icon .st { fill: none; stroke: var(--fg); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.plat-icon .ac { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.plat h3 { margin: 0 0 6px; font-size: 18px; }
.plat p { margin: 0; font-size: 14px; color: var(--fg-soft); }

/* ---------------- posts ---------------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.post {
  display: flex; flex-direction: column; gap: 13px;
  background: var(--bg-2); border: 2px solid var(--fg); border-radius: 20px; padding: 26px 24px;
  transition: transform 250ms cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 250ms;
}
.post:hover { transform: translateY(-10px); color: inherit; box-shadow: 0 16px 0 -3px var(--accent); }
.post:hover .p-icon { transform: scale(1.1) rotate(-5deg); }
.p-icon { width: 62px; height: 62px; display: block; transition: transform 400ms cubic-bezier(0.2, 0.9, 0.3, 1.5); }
.p-icon .st { fill: none; stroke: var(--fg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-icon .ac { fill: none; stroke: var(--accent); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.p-tag { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.post h3 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -0.024em; text-wrap: balance; }
.post p { margin: 0; font-size: 15px; color: var(--fg-soft); text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--fg-soft); }
.post .meta { margin-top: auto; padding-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: clamp(26px, 3vw, 38px); }
.chip {
  font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; min-height: 42px;
  border: 2px solid var(--fg); border-radius: 999px; background: transparent; color: var(--fg);
  cursor: pointer; transition: transform 200ms cubic-bezier(0.2, 0.9, 0.3, 1.4), background 200ms, color 200ms;
}
.chip:hover { transform: translateY(-3px); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.posts[data-filter] .post[hidden] { display: none; }

.featured-post {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
  border: 3px solid var(--fg); border-radius: 24px; padding: clamp(26px, 3.4vw, 44px);
  background: var(--bg-2); margin-bottom: clamp(34px, 4vw, 54px);
  box-shadow: 12px 12px 0 -2px var(--accent);
}
.featured-post .tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.featured-post h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.04; margin: 0 0 14px; }
.featured-post p { color: var(--fg-soft); font-size: 16.5px; margin: 0 0 22px; text-wrap: pretty; }
.art-icon { width: 100%; max-width: 250px; height: auto; margin: 0 auto; display: block; }
.art-icon .st { fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art-icon .ac { fill: none; stroke: var(--accent); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.art-icon .fillac { fill: var(--accent); stroke: none; }

/* ---------------- article ---------------- */
.progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; }
.progress-bar { height: 100%; background: var(--accent); transform-origin: 0 50%; animation: grow-bar linear both; animation-timeline: scroll(root); }
.nav { position: sticky; }

.head { position: relative; padding: clamp(38px, 5vw, 66px) 0 clamp(26px, 3vw, 38px); overflow: hidden; }
.crumbs { font-size: 13.5px; color: var(--fg-soft); margin-bottom: 18px; font-family: "IBM Plex Mono", monospace; }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.tag-pill { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.head h1 { font-size: clamp(34px, 5vw, 62px); line-height: 0.96; margin: 0 0 18px; max-width: 20ch; }
.standfirst { font-size: clamp(17px, 1.9vw, 21px); color: var(--fg-soft); max-width: 58ch; margin: 0 0 26px; text-wrap: pretty; }
.byline { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--fg-soft); padding-top: 18px; border-top: 2px solid var(--line); }
.byline .who { display: inline-flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--on-accent); font-family: "IBM Plex Sans", sans-serif; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: clamp(50px, 6vw, 82px); }
.toc { position: sticky; top: 92px; border-left: 3px solid var(--line); padding-left: 18px; }
.toc h4 { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-soft); margin: 0 0 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.toc a { font-size: 14px; color: var(--fg-soft); line-height: 1.35; display: block; }
.toc a:hover { color: var(--accent-text); }

.prose { max-width: 68ch; font-size: 17.5px; }
.prose h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.08; margin: 46px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; letter-spacing: -0.02em; }
.prose p { margin: 0 0 20px; color: var(--fg-soft); text-wrap: pretty; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin: 0 0 22px; padding-left: 0; list-style: none; display: grid; gap: 11px; }
.prose ul li { position: relative; padding-left: 30px; color: var(--fg-soft); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); }
.prose ol { margin: 0 0 22px; padding-left: 22px; display: grid; gap: 11px; }
.prose ol li { color: var(--fg-soft); }
.prose .effective { font-size: 14px; color: var(--fg-soft); font-family: "IBM Plex Mono", monospace; margin: 0 0 8px; }
.callout.danger { border-color: var(--bloom); }
.callout.danger svg path, .callout.danger svg circle, .callout.danger svg rect { stroke: var(--bloom-deep); }
:root[data-theme="dark"] .callout.danger svg path,
:root[data-theme="dark"] .callout.danger svg circle,
:root[data-theme="dark"] .callout.danger svg rect { stroke: var(--bloom); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .callout.danger svg path,
  :root:not([data-theme="light"]) .callout.danger svg circle,
  :root:not([data-theme="light"]) .callout.danger svg rect { stroke: var(--bloom); }
}
.lang-switch { font-size: 14px; font-weight: 700; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

.plan .ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.plan .ticks li { position: relative; padding-left: 26px; color: var(--fg); font-size: 15px; }
.plan .ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); }
.plan .lede-line { color: var(--fg-soft); font-size: 14px; margin: 0 0 8px; }

.faq { max-width: 720px; }
.faq details { border-bottom: 2px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 17px; }
.faq details p { color: var(--fg-soft); margin: 10px 0 0; }

.pull {
  border-left: 6px solid var(--accent); padding: 6px 0 6px 24px; margin: 34px 0;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: clamp(21px, 2.4vw, 27px); line-height: 1.22; letter-spacing: -0.028em;
  color: var(--fg); text-wrap: balance;
}
.callout { display: flex; gap: 14px; border: 2px solid var(--fg); border-radius: 16px; padding: 20px 22px; margin: 32px 0; background: var(--bg-2); }
.callout svg { flex: none; width: 26px; height: 26px; margin-top: 2px; }
.callout svg path, .callout svg circle, .callout svg rect { fill: none; stroke: var(--accent-text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.callout p { margin: 0; font-size: 15.5px; }
.callout h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--fg); }

.dates { display: grid; gap: 14px; margin: 32px 0; }
.date-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: baseline; border: 2px solid var(--fg); border-radius: 14px; padding: 18px 20px; background: var(--bg-2); }
.date-row .when { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 15px; color: var(--accent-text); white-space: nowrap; }
.date-row p { margin: 0; font-size: 15.5px; }

.draft-note {
  display: flex; gap: 12px; align-items: flex-start;
  border: 2px dashed var(--accent); border-radius: 14px; padding: 15px 17px;
  margin: 0 0 34px; background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.draft-note svg { flex: none; width: 22px; height: 22px; }
.draft-note svg path, .draft-note svg circle { fill: none; stroke: var(--accent-text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.draft-note p { margin: 0; font-size: 13.5px; color: var(--fg); text-wrap: pretty; }

.related { border-top: 3px solid var(--fg); padding-top: 34px; margin-top: 50px; }
.related h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 25px; letter-spacing: -0.03em; margin: 0 0 22px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.rel { border: 2px solid var(--fg); border-radius: 16px; padding: 20px; background: var(--bg-2); display: flex; flex-direction: column; gap: 8px; transition: transform 240ms cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 240ms; }
.rel:hover { transform: translateY(-8px); color: inherit; box-shadow: 0 13px 0 -3px var(--accent); }
.rel span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.rel h4 { margin: 0; font-size: 17.5px; line-height: 1.24; letter-spacing: -0.02em; }

/* ---------------- compliance ---------------- */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: clamp(18px, 2.4vw, 26px); }
.doc { display: flex; flex-direction: column; gap: 12px; border: 3px solid var(--fg); border-radius: 20px; padding: 26px 24px; background: var(--bg); transition: transform 250ms cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 250ms; }
.doc:hover { transform: translateY(-10px); color: inherit; box-shadow: 0 16px 0 -3px var(--accent); }
.doc:hover .d-icon { transform: scale(1.1) rotate(-5deg); }
.d-icon { width: 76px; height: 76px; display: block; transition: transform 400ms cubic-bezier(0.2, 0.9, 0.3, 1.5); }
.d-icon .st { fill: none; stroke: var(--fg); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.d-icon .ac { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.doc h3 { margin: 0; font-size: 21px; letter-spacing: -0.022em; }
.doc p { margin: 0; font-size: 15px; color: var(--fg-soft); text-wrap: pretty; }
.doc .go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--accent-text); display: inline-flex; align-items: center; gap: 7px; }
.doc .go svg { width: 16px; height: 16px; }

.rights { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: clamp(16px, 2.2vw, 22px); }
.right { border: 2px solid var(--fg); border-radius: 18px; padding: 22px 20px; background: var(--bg-2); display: flex; flex-direction: column; gap: 10px; transition: transform 240ms cubic-bezier(0.2, 0.9, 0.3, 1.4), background 240ms; }
.right:hover { transform: translateY(-8px); background: color-mix(in srgb, var(--accent) 13%, var(--bg-2)); }
.r-icon { width: 52px; height: 52px; }
.r-icon .st { fill: none; stroke: var(--fg); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.r-icon .ac { fill: none; stroke: var(--accent); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.right h3 { margin: 0; font-size: 17.5px; letter-spacing: -0.015em; }
.right p { margin: 0; font-size: 14.5px; color: var(--fg-soft); text-wrap: pretty; }

.grievance-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(26px, 4vw, 52px); align-items: center; background: var(--ink); color: var(--cream); border-radius: 24px; padding: clamp(28px, 3.6vw, 46px); border: 3px solid var(--ink); }
.grievance-box h2 { color: var(--cream); }
.grievance-box p { color: rgba(255, 247, 236, 0.78); font-size: 16.5px; margin: 0 0 12px; max-width: 54ch; text-wrap: pretty; }
.mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  font-family: "IBM Plex Mono", monospace; font-size: 16px; font-weight: 600;
  background: var(--accent); color: var(--on-accent); padding: 13px 22px; border-radius: 12px;
  border: 2px solid var(--ink); box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.4);
  transition: transform 200ms cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.mail:hover { transform: translateY(-3px); color: var(--on-accent); }
.mail svg { width: 20px; height: 20px; }
.never { font-size: 13.5px; color: rgba(255, 247, 236, 0.6); margin-top: 16px; }
.g-icon { width: min(180px, 40vw); height: auto; }
.g-icon .st { fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.g-icon .ac { fill: none; stroke: var(--accent); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(16px, 2.2vw, 22px); }
.fact { border: 2px solid var(--fg); border-radius: 18px; padding: 24px 22px; background: var(--bg-2); }
.fact .num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: clamp(32px, 4vw, 46px); line-height: 1; letter-spacing: -0.04em; color: var(--accent-text); margin: 0 0 10px; }
.fact p { margin: 0; font-size: 14.5px; color: var(--fg-soft); text-wrap: pretty; }

.note-box { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; border: 2px dashed var(--accent); border-radius: 14px; padding: 15px 17px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.note-box svg { flex: none; width: 22px; height: 22px; }
.note-box svg path, .note-box svg circle { fill: none; stroke: var(--accent-text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.note-box p { margin: 0; font-size: 13.5px; color: var(--fg); text-wrap: pretty; }

/* ---------------- CTA + footer ---------------- */
.cta { text-align: center; padding: clamp(56px, 8vw, 104px) 0; background: var(--accent); color: var(--on-accent); border-block: 2px solid var(--ink); }
.cta h2 { margin-bottom: 14px; }
.cta p { font-size: 18px; margin: 0 0 28px; opacity: 0.86; }
.cta .btn-solid { background: var(--ink); color: var(--cream); box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.4); }
.cta .btn-solid:hover { color: var(--cream); }

.foot { background: var(--ink); color: var(--cream); padding: clamp(46px, 6vw, 72px) 0 34px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.foot h4 { font-size: 12.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { font-size: 14.5px; color: rgba(255, 247, 236, 0.78); }
.foot a:hover { color: var(--accent); }
.foot .brand { color: var(--cream); }
.foot-about { font-size: 14.5px; color: rgba(255, 247, 236, 0.66); max-width: 34ch; margin: 12px 0 0; text-wrap: pretty; }
.foot-grievance { font-size: 13px; color: rgba(255, 247, 236, 0.66); margin: 14px 0 0; }
.foot-grievance a { color: var(--pulse); text-decoration: underline; text-underline-offset: 2px; }
.foot-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 247, 236, 0.16); display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255, 247, 236, 0.6); }

/* ---------------- responsive ---------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .zk { grid-template-columns: minmax(0, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .featured-post { grid-template-columns: minmax(0, 1fr); }
  .grievance-box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
/* Standalone links must stay thumb-sized on touch. Inline links inside a
   sentence are excluded on purpose: padding them out breaks the line box. */
@media (max-width: 720px) {
  .foot ul a,
  .toc a { min-height: 44px; display: inline-flex; align-items: center; }
  .brand { min-height: 44px; }
  .foot-grievance a,
  .crumbs a { padding: 2px 0; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .hero-art { min-height: 420px; }
  .clipcard { width: min(268px, 84%); }
  .hero-cta .btn { width: 100%; }
  /* One column here, so the numeral sits directly above its heading and has
     no room to move. Parallax off rather than overlapping the copy. */
  .step { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .step-n { font-size: 56px; --py: 0px !important; }
}
