/*
Theme Name: SettleIndex
Theme URI: https://settleindex.com
Description: SettleIndex marketing site theme. Self-contained — no plugins required.
Author: SettleIndex
Version: 15
Update URI: https://github.com/SettleIndex/wordpress
License: proprietary
Text Domain: settleindex
*/
  /* Tokens from workloads/mono/src/ui/css/tokens */
  :root {
    --ink: #1b113d;        /* base-4 */
    --deep: #0c0323;       /* base-1 */
    --dim: #626280;        /* base-6 */
    --line: #c8cfe7;       /* base-8 */
    --soft: #eceffb;       /* base-9 */
    --paper: #f5f7fd;      /* base-10 */
    /* palette — raw colors, referenced only by the semantic vars below */
    --palette-violet: #5758bb;
    --palette-elephant: #21837c;
    --palette-amber: #ffa600;
    /* semantic */
    --accent: var(--palette-violet);
    --meta: var(--palette-elephant);
    --highlight: var(--palette-amber);

    /* vertical rhythm — one scale, used everywhere */
    --s1: 8px;
    --s2: 16px;
    --s3: 24px;
    --s4: 32px;
    --s5: 48px;
    --s6: 64px;
    --s7: 96px;
    --s8: 128px;
    --gutter: var(--s4);
    --section-y: var(--s7);

    /* 3d layering */
    --lift-1: 0 6px 16px -10px rgba(27,17,61,.35);
    --lift-2: 0 18px 40px -22px rgba(27,17,61,.45);
    --lift-3: 0 40px 80px -40px rgba(27,17,61,.55);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  [id] { scroll-margin-top: 92px; } /* keep anchor targets clear of the sticky header */
  body {
    font-family: "Inter Tight", sans-serif; background: var(--paper); color: var(--ink);
    line-height: 1.55; -webkit-font-smoothing: antialiased;
  }
  .mono { font-family: "IBM Plex Mono", monospace; }
  .frame { max-width: 1200px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: #fff; position: relative; }

  /* grain texture over everything */
  body::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  header {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--s3) var(--gutter); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 40;
  }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
  .logo img { width: 30px; height: 30px; display: block; }
  nav { display: flex; gap: var(--s3); align-items: center; }
  nav li, .foot-col li { display: contents; list-style: none; }
  .foot-col li a { display: block; color: var(--dim); text-decoration: none; font-size: 13px; padding: 4px 0; }
  .foot-col li a:hover { color: var(--accent); }
  .logo .custom-logo-link { display: block; line-height: 0; }
  .logo .custom-logo { width: 30px; height: 30px; object-fit: contain; }
  nav a { color: var(--dim); text-decoration: none; font-size: 13px; font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
  nav a:hover { color: var(--accent); }
  /* ── buttons — the single source of truth for all button styles ── */
  .btn {
    display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
    padding: 12px var(--s3); font-weight: 600; font-size: 14px; position: relative;
    border: 1px solid var(--ink); cursor: pointer; font-family: inherit; line-height: inherit;
    transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
  }
  .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: var(--lift-1); }
  .btn.big { padding: var(--s2) 36px; font-size: 16px; }
  .btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
  .btn.ghost:hover { background: #fff; color: var(--accent); border-color: var(--accent); }
  .btn:disabled { opacity: .3; cursor: default; transform: none; box-shadow: none; }

  /* ── hero ── */
  .hero {
    padding: var(--s7) var(--gutter) var(--s6); position: relative; overflow: hidden;
    perspective: 1200px;
  }
  /* patterned hero backdrop: fine grid + dot field + soft light */
  .hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
      radial-gradient(circle at 1px 1px, rgba(87,88,187,.20) 1px, transparent 0),
      linear-gradient(rgba(200,207,231,.35) 1px, transparent 1px),
      linear-gradient(90deg, rgba(200,207,231,.35) 1px, transparent 1px);
    background-size: 24px 24px, 96px 96px, 96px 96px;
    mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, rgba(0,0,0,.55) 45%, transparent 78%);
    -webkit-mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, rgba(0,0,0,.55) 45%, transparent 78%);
  }
  .hero::after {
    content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -240px;
    pointer-events: none; border-radius: 50%;
    background: radial-gradient(circle, rgba(87,88,187,.14), transparent 62%);
  }
  .hero > * { position: relative; }
  .meta-row { display: flex; justify-content: space-between; font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: var(--s5); flex-wrap: wrap; gap: var(--s1); }
  .meta-row .live { color: var(--meta); position: relative; padding-left: 17px; }
  .meta-row .live::before, .meta-row .live::after {
    content: ""; position: absolute; left: 0; top: 50%; margin-top: -4px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--meta);
  }
  .meta-row .live::after { animation: live-ping 2.2s cubic-bezier(0,.55,.45,1) infinite; }
  @keyframes live-ping {
    0% { transform: scale(1); opacity: .65; }
    70%, 100% { transform: scale(3.8); opacity: 0; }
  }
  h1 {
    font-size: clamp(42px, 7.2vw, 96px); line-height: .97; letter-spacing: -0.035em;
    font-weight: 800; text-wrap: balance; max-width: 14ch;
  }
  h1 .sweep {
    background: linear-gradient(90deg, rgba(87,88,187,.28), rgba(87,88,187,.28)) no-repeat 0 78%;
    background-size: 0% .16em; animation: sweep 1.2s .5s cubic-bezier(.2,.8,.2,1) forwards;
  }
  @keyframes sweep { to { background-size: 100% .16em; } }
  .hero-sub { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s4); padding: var(--s5) 0 var(--s4); align-items: end; }
  .hero-sub p { font-size: 18px; color: var(--dim); max-width: 48ch; }
  .hero-sub .ctas { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
  .hero-note { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--dim); max-width: 70ch; }
  .hero-note::before { content: "→ "; color: var(--accent); }


  /* ── ticker band (moved below the hero) ── */
  .ticker { border-block: 1px solid var(--line); background: var(--deep); overflow: hidden; padding: 10px 0; }
  .ticker .inner {
    display: flex; gap: 56px; width: max-content; white-space: nowrap;
    animation: tick 40s linear infinite;
    font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--line);
  }
  .ticker b { color: var(--highlight); font-weight: 500; }
  .ticker i { color: #56cfb6; font-style: normal; }
  @keyframes tick { to { transform: translateX(-50%); } }

  /* ── abstract explainer ── */
  .shot {
    border-bottom: 1px solid var(--line); padding: var(--s4) var(--s2);
    background:
      linear-gradient(var(--soft) 1px, transparent 1px),
      linear-gradient(90deg, var(--soft) 1px, transparent 1px),
      var(--paper);
    background-size: 28px 28px, 28px 28px, auto;
  }
  .ex {
    --c-dot: 70%; --c-end: 16%; --d-dot: 32%; --d-end: 86%; --eq: 53%;
    height: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
    box-shadow: var(--lift-3); padding: var(--s4);
    display: grid; grid-template-columns: minmax(300px, .72fr) 1.28fr; gap: var(--s4); align-items: stretch;
  }
  .ex-copy { display: flex; flex-direction: column; min-width: 0; }
  .ex-kicker { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
  .ex-count { color: var(--dim); font-variant-numeric: tabular-nums; }
  .ex-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; margin: 12px 0; }
  .ex-body { font-size: 15px; color: var(--dim); }
  .ex-controls { display: flex; gap: 8px; margin-top: auto; }
  .ex-controls .btn { font-size: 13px; padding: 9px 16px; }
  .ex-controls .pulse { animation: ex-pulse 2.2s ease-out infinite; }
  @keyframes ex-pulse {
    0% { box-shadow: 0 0 0 0 rgba(87,88,187,.5); }
    70%, 100% { box-shadow: 0 0 0 12px rgba(87,88,187,0); }
  }
  .ex-nav { display: flex; flex-wrap: nowrap; gap: var(--s2); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
  .ex-nav button { font-family: "IBM Plex Mono", monospace; font-size: 9.5px; white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; border: 0; background: none; padding: 4px 0; color: var(--dim); cursor: pointer; }
  .ex-nav button:hover { color: var(--accent); }
  .ex-nav button[aria-current] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--highlight); }

  .ex-stage { position: relative; height: 100%; }
  .ex-field { position: absolute; inset: 0; transition: opacity .6s; }
  .ex-row { position: absolute; left: 0; right: 0; height: 0; }
  .ex-row.c { top: 36%; color: var(--accent); }
  .ex-row.d { top: 68%; color: var(--highlight); }
  .ex-bar {
    position: absolute; top: -3px; height: 6px; border-radius: 3px; background: currentColor;
    transition: transform 1.1s cubic-bezier(.2,.8,.2,1), opacity .6s;
  }
  .ex-row.c .ex-bar { left: var(--c-end); right: calc(100% - var(--c-dot)); transform-origin: 100% 50%; }
  .ex-row.d .ex-bar { left: var(--d-dot); right: calc(100% - var(--d-end)); transform-origin: 0 50%; }
  .ex-dot { position: absolute; top: -9px; margin-left: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid currentColor; z-index: 3; }
  .ex-row.c .ex-dot { left: var(--c-dot); }
  .ex-row.d .ex-dot { left: var(--d-dot); }
  .ex-tag {
    position: absolute; transform: translateX(-50%); white-space: nowrap; z-index: 3;
    font-family: "IBM Plex Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
    background: #fff; padding: 2px 6px;
  }
  .ex-row.c .ex-tag { left: var(--c-dot); top: -30px; }
  .ex-row.d .ex-tag { left: var(--d-dot); top: 16px; }
  .ex-cost {
    position: absolute; transform: translateX(-50%) translateY(4px); white-space: nowrap; z-index: 4;
    background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 4px;
    font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .06em;
    opacity: 0; transition: opacity .5s .5s, transform .5s .5s;
  }
  .ex-row.c .ex-cost { left: var(--c-end); top: 14px; }
  .ex-row.d .ex-cost { left: var(--d-end); top: -34px; }
  .ex-zone {
    position: absolute; left: var(--d-dot); right: calc(100% - var(--c-dot)); top: 24%; bottom: 22%;
    background: rgba(33,131,124,.10); border-inline: 2px dashed var(--meta);
    transform-origin: 50% 50%;
    transition: left 1s cubic-bezier(.2,.8,.2,1), right 1s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), opacity .5s;
  }
  .ex-zone span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); white-space: nowrap;
    background: #fff; padding: 5px 9px; color: var(--meta);
    font-family: "IBM Plex Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
    transition: opacity .4s;
  }
  .ex-eq {
    position: absolute; left: var(--eq); top: 18%; bottom: 16%; width: 3px; margin-left: -1.5px;
    background: var(--meta); z-index: 5; transition: opacity .6s .4s, transform .6s .4s;
  }
  .ex-eq b {
    position: absolute; top: -30px; left: 50%; transform: translateX(-50%); white-space: nowrap;
    background: var(--meta); color: #fff; padding: 5px 9px; border-radius: 4px;
    font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  }

  /* stage choreography */
  .ex[data-step="0"] .ex-field { opacity: .5; }
  .ex[data-step="1"] .ex-bar { transform: scaleX(.02); opacity: 0; }
  .ex[data-step="1"] .ex-zone,
  .ex[data-step="2"] .ex-zone { opacity: 0; transform: scaleX(.02); }
  .ex[data-step="1"] .ex-eq,
  .ex[data-step="2"] .ex-eq,
  .ex[data-step="3"] .ex-eq { opacity: 0; transform: translateY(8px); }
  .ex[data-step="2"] .ex-cost { opacity: 1; transform: translateX(-50%); }
  .ex[data-step="3"] .ex-bar,
  .ex[data-step="4"] .ex-bar { opacity: .35; }
  .ex[data-step="4"] .ex-zone {
    left: var(--eq); right: calc(100% - var(--eq)); opacity: 0;
    transition: left .9s cubic-bezier(.2,.8,.2,1), right .9s cubic-bezier(.2,.8,.2,1), opacity .45s;
  }
  .ex[data-step="4"] .ex-zone span { opacity: 0; }

  /* ── sections ── */
  .section { padding: var(--section-y) var(--gutter); position: relative; }
  .eyebrow { font-family: "IBM Plex Mono", monospace; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
  .section h2 { font-size: clamp(28px, 4.2vw, 48px); font-weight: 800; letter-spacing: -0.025em; max-width: 24ch; text-wrap: balance; }
  .section .lede { font-size: 17px; color: var(--dim); max-width: 66ch; margin: var(--s3) 0 var(--s6); }
  .ghost-num {
    position: absolute; top: var(--s5); right: var(--s3); font-weight: 900; font-size: clamp(90px, 14vw, 200px);
    line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; user-select: none;
  }

  /* ── the story chart ── */
  .axis { stroke: var(--line); }
  .tick-lbl { font-family: "IBM Plex Mono", monospace; font-size: 9px; fill: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
  @keyframes fadein { to { opacity: 1; } }

  /* two ranges crossing: the X */
  .sc-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 460; stroke-dashoffset: 460; }
  .sc-line.c { stroke: var(--accent); }
  .sc-line.d { stroke: var(--highlight); }
  .sc-go .sc-line { animation: draw 1.3s cubic-bezier(.2,.8,.2,1) forwards; }
  .sc-go .sc-line.d { animation-delay: .15s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  .sc-wedge, .sc-loss { opacity: 0; }
  .sc-wedge { fill: rgba(33,131,124,.13); }
  .sc-loss { fill: rgba(171,1,90,.12); }
  .sc-go .sc-wedge { animation: fadein .7s 1.3s forwards; }
  .sc-go .sc-loss { animation: fadein .7s 3.4s forwards; }

  .sc-run { opacity: 0; stroke: #fff; stroke-width: 2; offset-rotate: 0deg; transform-box: fill-box; transform-origin: center; }
  .sc-run.c { fill: var(--accent); offset-path: path("M 52 232 L 434 92"); }
  .sc-run.d { fill: var(--highlight); offset-path: path("M 52 58 L 434 180"); }
  .sc-go .sc-run { animation: run 2.1s 1.2s cubic-bezier(.5,0,.5,1) forwards; }
  @keyframes run {
    0% { offset-distance: 0%; opacity: 0; }
    8%, 88% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
  }

  .sc-settle { fill: var(--meta); opacity: 0; transform-box: fill-box; transform-origin: center; }
  .sc-ring { fill: none; stroke: var(--meta); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
  .sc-settle-lbl { opacity: 0; }
  .sc-go .sc-settle { animation: settle-pop .7s 3.3s cubic-bezier(.2,1.5,.4,1) forwards; }
  .sc-go .sc-ring { animation: settle-ring 2.4s 3.9s ease-out infinite; }
  .sc-go .sc-settle-lbl { animation: fadein .6s 3.8s forwards; }
  @keyframes settle-pop {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
  }
  @keyframes settle-ring {
    0% { opacity: .8; transform: scale(.5); }
    70%, 100% { opacity: 0; transform: scale(3.4); }
  }
  .story { border-top: 1px solid var(--line); }
  .story-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; perspective: 1200px; }
  .story-chart {
    border: 1px solid var(--line); background: #fff; padding: var(--s3); position: relative;
    box-shadow: var(--lift-2);
    transform: rotateY(4deg) translateZ(0); transform-origin: 100% 50%;
    transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s;
  }
  .story-chart:hover { transform: rotateY(0deg) translateY(-4px); box-shadow: var(--lift-3); }
  .story-chart .corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); }
  .sc-count {
    position: absolute; top: var(--s2); right: var(--s2); z-index: 2;
    font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--dim); font-variant-numeric: tabular-nums;
  }
  .corner.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
  .corner.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
  .corner.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
  .corner.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
  .story-chart svg { width: 100%; height: auto; display: block; }
  .story-steps { display: flex; flex-direction: column; gap: 0; counter-reset: s; perspective: 800px; }
  .sstep { padding: 26px 0 26px 66px; position: relative; border-bottom: 1px dashed var(--line); counter-increment: s; }
  .sstep:last-child { border-bottom: 0; }
  .sstep::before {
    content: "0" counter(s); position: absolute; left: 0; top: var(--s3);
    font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 13px;
    width: 42px; height: 42px; display: grid; place-items: center;
    border: 1px solid var(--ink); background: #fff;
    transform-style: preserve-3d;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, background .28s, color .28s;
  }
  /* 3d lift, no rotation on the z-axis */
  .sstep:hover::before {
    background: var(--ink); color: #fff;
    transform: translate3d(0, -6px, 24px);
    box-shadow: 0 14px 22px -12px rgba(27,17,61,.65);
  }
  .sstep .tag { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .14em; color: var(--meta); text-transform: uppercase; }
  .sstep h3 { font-size: 18px; font-weight: 700; margin: 4px 0 6px; }
  .sstep p { font-size: 14px; color: var(--dim); }

  /* ── stat interlude ── */
  .interlude { border-block: 1px solid var(--line); background: var(--deep); color: var(--paper); padding: var(--s7) var(--gutter); text-align: center; position: relative; overflow: hidden; }
  .interlude::before {
    content: "£"; position: absolute; font-weight: 900; font-size: 420px; line-height: 1;
    color: rgba(200,207,231,.05); left: -40px; top: -110px; pointer-events: none;
  }
  .interlude .big {
    font-size: clamp(28px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.02em; max-width: 26ch; margin: 0 auto; text-wrap: balance; position: relative;
  }
  .interlude .pillars {
    display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s2) var(--s5);
    margin-top: var(--s5); position: relative;
    font-family: "IBM Plex Mono", monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--highlight);
  }
  .interlude .pillars span { position: relative; }
  .interlude .pillars span + span::before {
    content: "·"; position: absolute; left: calc(var(--s5) / -2); color: rgba(200,207,231,.45);
  }
  .interlude .logos { margin-top: var(--s6); position: relative; }
  .interlude .logos .eyebrow { margin-bottom: var(--s4); color: rgba(200,207,231,.45); }
  .interlude .logos img { filter: brightness(0) invert(1); opacity: .75; }

  /* ── audience ── */
  .aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s3); perspective: 1200px; }
  .aud {
    border: 1px solid var(--line); background: #fff; position: relative; display: block;
    color: inherit; text-decoration: none;
    box-shadow: var(--lift-1);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s;
  }
  .aud:hover { transform: translateY(-3px); box-shadow: var(--lift-2); }
  .aud .pad { padding: var(--s4); }
  .aud .k { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: var(--s2); display: flex; justify-content: space-between; }
  .aud .k::after { content: "↗"; color: var(--accent); }
  .aud h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px; }
  .aud > .pad > p { font-size: 14.5px; color: var(--dim); margin-bottom: var(--s3); }
  .aud ul { list-style: none; }
  .aud li { font-size: 13.5px; padding: 9px 0; border-top: 1px solid var(--soft); display: flex; gap: 10px; }
  .aud li::before { content: "—"; color: var(--meta); }

  /* ── trust ── */
  .trust { background: var(--ink); color: var(--paper); padding: var(--s6) var(--gutter); position: relative; overflow: hidden;
    background-image:
      linear-gradient(rgba(200,207,231,.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(200,207,231,.06) 1px, transparent 1px);
    background-size: 28px 28px;
  }
  .trust .eyebrow { color: var(--highlight); margin-bottom: var(--s4); }
  .trust h2 { color: #fff; font-size: clamp(28px, 4.2vw, 48px); font-weight: 800; letter-spacing: -0.025em; max-width: 24ch; text-wrap: balance; }
  .trust .lede { color: #9699b5; font-size: 17px; max-width: 66ch; margin-top: var(--s3); }

  /* ── security ── */
  .sec { border-top: 1px solid var(--line); background: var(--paper); }
  .sec-wrap { display: grid; grid-template-columns: 190px 1fr; gap: var(--s6); align-items: center; }
  .sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); max-width: 640px; perspective: 1000px; }
  .sec-cell {
    aspect-ratio: 1; background: #fff; border: 1px solid var(--line); padding: var(--s3);
    color: inherit; text-decoration: none;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: var(--lift-1); transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s;
  }
  .sec-cell:hover { transform: translate3d(0, -6px, 30px); box-shadow: var(--lift-3); }
  .sec-cell .k { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--meta); }
  .sec-cell .k::before { content: "✓"; margin-right: .5em; }
  .sec-cell h4 { font-size: 16px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 8px; text-wrap: balance; }
  .sec-cell p { font-size: 13.5px; color: var(--dim); }
  .sec-note { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--dim); max-width: 74ch; margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); }
  .seal { width: 190px; height: 190px; flex: 0 0 auto; }
  .seal text { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .22em; fill: var(--accent); text-transform: uppercase; }
  .seal circle.o { fill: none; stroke: rgba(87,88,187,.35); stroke-width: 1; }
  .seal circle.pulse { animation: sealpulse 4s ease-in-out infinite; transform-origin: 75px 75px; }
  @keyframes sealpulse { 50% { opacity: .35; transform: scale(1.05); } }
  .seal .ring-text { animation: sealspin 36s linear infinite; transform-origin: 75px 75px; }
  @keyframes sealspin { to { transform: rotate(360deg); } }
  .seal .center { fill: var(--ink); }

  /* ── final cta ── */
  .cta-final { padding: var(--s8) var(--gutter); text-align: center; position: relative; overflow: hidden; }
  .cta-final h2 { font-size: clamp(34px, 5.4vw, 66px); font-weight: 800; letter-spacing: -0.03em; margin: 0 auto; max-width: 18ch; text-wrap: balance; position: relative; }
  .cta-final h2 .u { box-shadow: inset 0 -0.14em 0 rgba(255,166,0,.45); }
  .cta-final p { color: var(--dim); font-size: 17px; margin: var(--s3) auto var(--s5); max-width: 52ch; position: relative; }
  .cta-final .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

  /* ── logo bands ── */
  .logo-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--s3); align-items: center; }
  .logo-row.four { grid-template-columns: repeat(4, 1fr); max-width: 720px; margin: 0 auto; }
  .logo-row img { width: 100%; height: auto; display: block; filter: grayscale(1); opacity: .65; }

  /* ── footer ── */
  footer { border-top: 1px solid var(--line); padding: var(--s5) var(--gutter) var(--s3); color: var(--dim); }
  .foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
  .foot-col h4 { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: var(--s2); }
  .foot-col a { display: block; color: var(--dim); text-decoration: none; font-size: 13px; padding: 4px 0; }
  .foot-col a:hover { color: var(--accent); }
  .foot-meta { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--soft); font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

  /* ── team ── */
  .team-list { display: flex; flex-direction: column; gap: var(--s5); max-width: 860px; }
  .member { display: grid; grid-template-columns: 150px 1fr; gap: var(--s4); align-items: start; }
  .member img { width: 150px; height: 150px; object-fit: cover; border: 1px solid var(--line); box-shadow: var(--lift-1); display: block; }
  .member h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 4px; }
  .member .role { font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--meta); margin-bottom: 10px; }
  .member p { font-size: 15px; color: var(--dim); max-width: 62ch; margin: var(--s2) 0; }

  /* reveal on scroll */
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
  .reveal.in { opacity: 1; transform: none; }


  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }

  @media (max-width: 860px) {
    :root { --gutter: var(--s3); --section-y: var(--s6); }
    nav a:not(.btn) { display: none; }
    .hero-sub { grid-template-columns: 1fr; }
    .hero-sub .ctas { justify-content: flex-start; }
    .story-chart { transform: none; }
    /* Stack: copy, animation, controls, contracted TOC — controls and TOC go
       under the stage so a tap does not obscure the animation. */
    .ex { grid-template-columns: 1fr; height: auto; padding: var(--s3); gap: 0; }
    .ex-copy { display: contents; }
    .ex-stage { order: 1; height: 260px; margin-top: var(--s3); }
    .ex-controls { order: 2; margin-top: var(--s3); }
    .ex-nav { order: 3; justify-content: space-between; }
    .ex-nav button { padding: 10px 4px; }
    .ex-nav button:not([aria-current]) span { display: none; }
    .story-wrap { grid-template-columns: 1fr; }
    .trust { padding-block: var(--s5); }
    .sec-wrap { grid-template-columns: 1fr; gap: var(--s4); }
    .sec-grid { grid-template-columns: 1fr; max-width: none; }
    .sec-cell { aspect-ratio: auto; }
    .seal { width: 140px; height: 140px; }
    .ghost-num { display: none; }
    .logo-row { grid-template-columns: repeat(4, 1fr); }
    .logo-row.four { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: repeat(2, 1fr); }
    .member { grid-template-columns: 110px 1fr; }
    .member img { width: 110px; height: 110px; }
  }

/* ════ page types (promo / legal / news / post) ════ */

/* ── promo hero ── */
.page-hero { padding: var(--s7) var(--gutter) var(--s6); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(87,88,187,.20) 1px, transparent 0),
    linear-gradient(rgba(200,207,231,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,207,231,.35) 1px, transparent 1px);
  background-size: 24px 24px, 96px 96px, 96px 96px;
  mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, rgba(0,0,0,.55) 45%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, rgba(0,0,0,.55) 45%, transparent 78%);
}
.page-hero > * { position: relative; }
.page-hero .kicker { font-family: "IBM Plex Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: var(--s3); }
.page-hero h1 { font-size: clamp(38px, 6vw, 76px); }
.page-hero .pitch { font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.01em; max-width: 40ch; margin-top: var(--s3); text-wrap: balance; }
.page-hero .explain { font-size: 17px; color: var(--dim); max-width: 62ch; margin-top: var(--s3); }

/* ── promo solutions ── */
.solutions { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s3); perspective: 1200px; }
.solution {
  border: 1px solid var(--line); background: #fff; padding: var(--s4);
  box-shadow: var(--lift-1); transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s;
  display: flex; flex-direction: column; gap: 12px;
}
.solution:hover { transform: translate3d(0, -6px, 30px); box-shadow: var(--lift-3); }
.solution h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
.solution h3::before { content: "Q — "; color: var(--accent); font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 12px; }
.solution p { font-size: 14.5px; color: var(--dim); }

/* ── prose (T&C, long text) ── */
.prose { max-width: 72ch; margin: 0 auto; padding: var(--s6) var(--gutter) var(--s7); }
.prose h1 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: var(--s2); }
.prose .updated { font-family: "IBM Plex Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: var(--s5); }
.prose h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: var(--s5) 0 var(--s2); }
.prose h3 { font-size: 18px; font-weight: 700; margin: var(--s4) 0 var(--s2); }
.prose p, .prose li { font-size: 16px; color: var(--ink); margin-bottom: var(--s2); }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: var(--s2); }
.prose a { color: var(--accent); }

/* ── news cards ── */
.page-title { padding: var(--s6) var(--gutter) 0; }
.page-title h1 { font-size: clamp(32px, 4.6vw, 54px); }
.page-title p { font-size: 17px; color: var(--dim); max-width: 60ch; margin-top: var(--s2); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); padding: var(--s5) var(--gutter) var(--s7); perspective: 1200px; }
.card-item {
  border: 1px solid var(--line); background: #fff; box-shadow: var(--lift-1);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s;
}
.card-item:hover { transform: translateY(-3px); box-shadow: var(--lift-2); }
.card-item img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); }
.card-item .pad { padding: var(--s3); display: flex; flex-direction: column; gap: 10px; }
.card-item .k { font-family: "IBM Plex Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); display: flex; justify-content: space-between; align-items: center; }
.cat-tag {
  display: inline-block; border: 1px solid var(--meta); background: #fff; padding: 3px 9px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--meta);
}
.card-item .k::after { content: "↗"; color: var(--accent); }
.card-item h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; }
.card-item h3 a { color: inherit; text-decoration: none; }
.card-item p { font-size: 14px; color: var(--dim); }

/* ── blog post ── */
.post { max-width: 76ch; margin: 0 auto; padding: var(--s6) var(--gutter) var(--s7); }
.post .kicker { font-family: "IBM Plex Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: var(--s2); }
.post h1 { font-size: clamp(34px, 5vw, 62px); margin-bottom: var(--s3); }
.post .post-img, .post-body img { width: 100%; height: auto; display: block; border: 1px solid var(--line); box-shadow: var(--lift-2); margin: var(--s4) 0; }
.post .lead { font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: var(--s4); text-wrap: balance; }
.post-body p, .post-body li { font-size: 16.5px; color: var(--ink); margin-bottom: var(--s3); }
.post-body h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: var(--s5) 0 var(--s2); }
.post-body strong { font-weight: 800; }
.post-body a { color: var(--accent); }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

/* ── promo page content (WP the_content) ── */
.promo-body { max-width: 72ch; }
.promo-body h2, .promo-body h3, .promo-body h6 {
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: var(--s4) 0 10px; text-wrap: balance;
}
.promo-body h2::before, .promo-body h3::before, .promo-body h6::before {
  content: "Q — "; color: var(--accent); font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 12px;
}
.promo-body p { font-size: 15px; color: var(--dim); margin-bottom: var(--s2); }
