:root {
  color-scheme: dark;

  --void:     #04060A;
  --ink:      #080B11;
  --raise:    #0D1119;
  --raise-2:  #121824;
  --edge:     rgba(255,255,255,.07);
  --edge-2:   rgba(255,255,255,.14);

  --white:    #F4F6FB;
  --dim:      #9BA3B4;
  --dim-2:    #616B7D;

  --iris:     #5FD3A0;
  --iris-dim: rgba(95,211,160,.18);
  --gold:     #E8B872;

  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --code: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --mono: var(--sans);

  --gut: clamp(20px, 5vw, 64px);
  --max: 1200px;

  --nav-bg:    rgba(4,6,10,.6);
  --nav-solid: rgba(4,6,10,.98);
  --wash-0:    rgba(255,255,255,.03);
  --wash:      rgba(255,255,255,.05);
  --wash-2:    rgba(255,255,255,.07);
  --field:     rgba(255,255,255,.04);
  --bloom-a:   rgba(95,211,160,.52);
  --bloom-b:   rgba(110,160,245,.34);
  --shade:     rgba(0,0,0,.55);
}

/* ---- light theme: the same tokens, inverted in role ---- */
:root[data-theme="light"] {
  color-scheme: light;
  --void:     #F6F7FA;
  --ink:      #EDF0F5;
  --raise:    #FFFFFF;
  --raise-2:  #F2F5F9;
  --edge:     rgba(12,16,26,.10);
  --edge-2:   rgba(12,16,26,.20);
  --white:    #0B0F17;
  --dim:      #495468;
  --dim-2:    #79839A;
  --iris:     #12805A;
  --iris-dim: rgba(18,128,90,.13);
  --gold:     #96660F;
  --nav-bg:    rgba(246,247,250,.72);
  --nav-solid: rgba(246,247,250,.98);
  --wash-0:    rgba(12,16,26,.028);
  --wash:      rgba(12,16,26,.05);
  --wash-2:    rgba(12,16,26,.075);
  --field:     rgba(12,16,26,.035);
  --bloom-a:   rgba(18,128,90,.16);
  --bloom-b:   rgba(60,110,210,.10);
  --shade:     rgba(20,28,45,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
img, canvas { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }

.label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dim-2); margin: 0;
}

/* ================= NAV ================= */
.nav.tight .nav-in { padding-top: 8px; padding-bottom: 8px; }
.nav.tight { border-bottom: 1px solid var(--edge); }
.nav {
  position: sticky; top: 0; z-index: 80;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.nav-in {
  max-width: none; margin: 0; padding: 13px clamp(16px, 2.4vw, 34px);
  transition: padding .35s cubic-bezier(.2,.7,.25,1);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.wordmark {
  font-size: 14px; font-weight: 600; letter-spacing: .34em;
  color: var(--white); white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 13.5px; color: var(--dim); padding: 8px 13px; border-radius: 100px;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--white); background: var(--wash); }
.pill {
  font-size: 13.5px; font-weight: 500; color: var(--void) !important;
  background: var(--white); padding: 9px 18px !important; border-radius: 100px;
  transition: transform .2s, box-shadow .2s;
}
.pill:hover { background: #fff !important; transform: translateY(-1px); box-shadow: 0 8px 26px -10px rgba(255,255,255,.45); }
.ghost-pill {
  font-size: 13px; color: var(--dim); border: 1px solid var(--edge-2);
  padding: 8px 15px; border-radius: 100px; white-space: nowrap;
  transition: color .18s, border-color .18s, background .18s;
}
.ghost-pill:hover { color: var(--white); border-color: var(--white); background: var(--wash); }
@media (max-width: 1080px) { .ghost-pill { display: none; } }

.nav-drop { position: relative; }
.nav-trig {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 13.5px; color: var(--dim);
  background: transparent; border: 0; padding: 8px 13px; border-radius: 100px; cursor: pointer;
  transition: color .18s, background .18s;
}
.nav-trig:hover, .nav-drop[data-open="true"] .nav-trig { color: var(--white); background: var(--wash); }
.nav-trig svg { transition: transform .25s; }
.nav-drop[data-open="true"] .nav-trig svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 286px; z-index: 90;
  background: var(--ink); border: 1px solid var(--edge-2); border-radius: 14px;
  padding: 6px; display: flex; flex-direction: column; gap: 1px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.nav-drop[data-open="true"] .nav-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 12px !important; border-radius: 9px; }
.nav-menu a:hover { background: var(--wash-2); }
.nav-menu b { font-size: 13.5px; font-weight: 500; color: var(--white); white-space: nowrap; }
.nav-menu i { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--dim-2); white-space: nowrap; }
.nav-menu-sep { margin-top: 5px; border-top: 1px solid var(--edge); padding-top: 12px !important; }
@media (max-width: 880px) {
  .nav-menu { position: static; opacity: 1; transform: none; pointer-events: auto; border: 0; box-shadow: none;
    background: transparent; padding: 0 0 0 10px; }
  .nav-drop[data-open="false"] .nav-menu { display: none; }
}
.nav-right { display: flex; align-items: center; gap: 10px; order: 3; }

.nav-links { order: 2; }
.themer {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: transparent; border: 1px solid var(--edge-2); border-radius: 50%;
  color: var(--dim); cursor: pointer; flex: none;
  transition: color .18s, border-color .18s, background .18s, transform .3s;
}
.themer:hover { color: var(--white); border-color: var(--white); background: var(--wash); transform: rotate(18deg); }
.themer svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.burger {
  display: none; background: transparent; border: 1px solid var(--edge-2);
  color: var(--white); border-radius: 100px; padding: 8px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; cursor: pointer;
}

/* ---------- scroll rail ---------- */
.progress { display: none; }

/* ---------- a light sweep across a card on hover ---------- */
.card { --sweep: -120%; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.09) 50%, transparent 62%);
  transform: translateX(var(--sweep)); transition: transform .75s cubic-bezier(.3,.7,.3,1);
}
.card:hover { --sweep: 120%; }

/* ================= HERO ================= */
.hero { position: relative; padding: clamp(30px, 3.8vw, 50px) 0 clamp(8px, 1.4vw, 16px); }
/* the moon: a fixed frame with soft edges; the video zooms inside it */
.moon-wrap {
  position: absolute; top: 0; bottom: 0; right: -2%; width: min(58%, 780px);
  z-index: 0; pointer-events: none; overflow: hidden;
  mask-image: radial-gradient(ellipse 50% 44% at 50% 46%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 50% 44% at 50% 46%, #000 50%, transparent 100%);
}
#howVid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  transform: scale(1); transform-origin: 50% 40%;
  opacity: 0; transition: opacity 1.2s ease;
}
#howVid.on { opacity: .8; }
:root[data-theme="light"] #howVid.on { opacity: .5; }
/* the video zooms for 10s, then the zoom carries on here instead of snapping back */
#howVid.push { animation: moonPush 50s cubic-bezier(.25,.1,.3,1) forwards; }
@keyframes moonPush { from { transform: scale(1); } to { transform: scale(2.2); } }
#how { position: relative; overflow: hidden; }
#how > .wrap { position: relative; z-index: 1; }
@media (max-width: 900px) { .moon-wrap { display: none; } }
#gl {
  position: absolute; inset: -80px 0 auto; width: 100%; height: 620px;
  z-index: 1; opacity: .82;
  mask-image: radial-gradient(120% 90% at 50% 28%, #000 22%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 28%, #000 22%, transparent 78%);
}
#gl.fallback { background: radial-gradient(70% 60% at 50% 30%, #2A2050, #101A3A 45%, transparent 78%); }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }

.hero-mark {
  font-size: clamp(40px, 10vw, 104px); font-weight: 700;
  letter-spacing: clamp(.04em, 1.4vw, .16em); line-height: 1;
  margin: 0; padding-left: clamp(.04em, 1.4vw, .16em);
}
.hero-tag {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(21px, 2.9vw, 34px); line-height: 1.16; letter-spacing: -.005em;
  color: var(--dim); max-width: 30ch;
}
.hero-tag em { font-style: italic; color: var(--white); }
.hero-tag b { color: var(--white); font-weight: 500; }
.hero-mark span { display: inline-block; animation: mark .9s cubic-bezier(.2,.7,.25,1) both; }
@keyframes mark { from { opacity: 0; transform: translateY(26px) rotate(3deg); } to { opacity: 1; transform: none; } }

/* ---------- the agent ---------- */
.agent { width: 100%; max-width: 660px; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.ask {
  display: flex; align-items: center; gap: 10px;
  background: var(--wash);
  border: 1px solid var(--edge-2); border-radius: 100px;
  padding: 7px 7px 7px 20px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.ask:focus-within { border-color: var(--iris); background: var(--wash-2); box-shadow: 0 0 40px -14px rgba(95,211,160,.7); }
.ask input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  font-family: var(--sans); font-size: 15.5px; color: var(--white); padding: 10px 0;
}
.ask input::placeholder { color: var(--dim-2); }
:root[data-theme="light"] .ask {
  background: rgba(255,255,255,.92);
  border-color: rgba(12,16,26,.22);
  box-shadow: 0 10px 34px -22px rgba(20,28,45,.5);
}
:root[data-theme="light"] .ask input { color: #0B0F17; }
:root[data-theme="light"] .ask input::placeholder { color: #47506A; opacity: 1; }
:root[data-theme="light"] .chip { background: rgba(255,255,255,.8); color: #3C4558; }
:root[data-theme="light"] .skip { color: #4B5468; }
.ask button {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--iris); color: #140F2E; font-size: 17px; line-height: 1;
  display: grid; place-items: center;
  transition: transform .18s, background .18s, opacity .18s;
}
.ask button:hover:not(:disabled) { transform: translateY(-1px); background: #C9BCFF; }
.ask button:disabled { opacity: .4; cursor: default; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  font-size: 13px; color: var(--dim); background: var(--wash-0);
  border: 1px solid var(--edge); border-radius: 100px; padding: 8px 15px; cursor: pointer;
  font-family: var(--sans);
  transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.chip:hover { color: var(--white); border-color: var(--edge-2); background: var(--wash-2); transform: translateY(-1px); }

.skip { font-size: 13px; color: var(--dim-2); cursor: pointer; background: none; border: 0; font-family: var(--sans); }
.skip:hover { color: var(--dim); }

.thread {
  text-align: left; display: none; flex-direction: column; gap: 12px;
  background: var(--wash-0); border: 1px solid var(--edge);
  border-radius: 18px; padding: 18px; max-height: 380px; overflow-y: auto;
}
.thread.on { display: flex; }
.turn { display: flex; flex-direction: column; gap: 5px; }
.turn .who { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim-2); }
.turn .said { font-size: 14.5px; line-height: 1.62; color: var(--white); white-space: pre-wrap; }
.turn.me .said { color: var(--dim); }
.turn .said em { color: var(--dim-2); font-style: normal; }
.thread-foot { display: flex; gap: 10px; align-items: center; padding-top: 4px; }
.mini {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--edge-2); color: var(--dim);
  border-radius: 100px; padding: 6px 12px; cursor: pointer;
}
.mini:hover { color: var(--white); border-color: var(--white); }

/* ================= SECTIONS ================= */
section { position: relative; padding: clamp(38px, 4.4vw, 64px) 0; scroll-margin-top: 66px; }
.rule { border-top: 0; }
.head { display: flex; flex-direction: column; gap: 8px; margin-bottom: clamp(18px, 2.2vw, 26px); }
.head h2 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.005em;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.02; max-width: 20ch;
}
.head h2 em { font-style: italic; color: var(--iris); }
.head p { font-size: clamp(15px, 1.5vw, 17px); color: var(--dim); max-width: 52ch; }

/* ---------- offers ---------- */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); gap: 14px; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--raise-2), var(--raise));
  border: 1px solid var(--edge); border-radius: 18px;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--edge-2); transform: translateY(-3px); }
.plate { width: 100%; height: 150px; display: block; }
.plate-sm, .plate-shot.plate-sm { height: 104px; }
.card-body { padding: 17px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card h3 { font-size: 18px; }
.card .kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--iris); }
.card p { font-size: 13.5px; color: var(--dim); line-height: 1.5; }
.card p.label { text-transform: none; letter-spacing: .04em; overflow-wrap: anywhere; }
.amount { font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.amount small { font-size: 13px; font-weight: 400; color: var(--dim-2); letter-spacing: 0; margin-left: 5px; }
.when { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim-2); }
.card-cta {
  margin: 12px 18px 18px; text-align: center;
  font-size: 14px; font-weight: 500; color: var(--void);
  background: var(--white); border-radius: 100px; padding: 12px 18px;
  transition: transform .18s, box-shadow .18s;
}
.card-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -12px rgba(255,255,255,.4); }
.card-cta.quiet { background: transparent; color: var(--white); border: 1px solid var(--edge-2); }
.card-cta.quiet:hover { border-color: var(--white); box-shadow: none; }


/* ---------- instrument ---------- */
#instrument { padding-top: clamp(20px, 2.2vw, 34px); }

.inst { border: 1px solid var(--edge); border-radius: 20px; overflow: hidden; background: var(--raise); }
.inst-grid { display: grid; grid-template-columns: 250px 1fr; }
.inst-l { padding: 18px 20px; display: flex; flex-direction: column; gap: 13px; background: var(--raise-2); }
.inst-r { padding: 18px 20px; display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.ctl { display: flex; flex-direction: column; gap: 9px; }
.ctl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ctl-v { font-family: var(--mono); font-size: 13.5px; color: var(--white); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: var(--edge-2); border-radius: 2px; outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--iris); border: 3px solid var(--raise-2); box-shadow: 0 0 0 1px rgba(95,211,160,.5); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--iris); border: 3px solid var(--raise-2); box-shadow: 0 0 0 1px rgba(95,211,160,.5); cursor: pointer; }
.seg { display: flex; border: 1px solid var(--edge-2); border-radius: 100px; overflow: hidden; }
.seg button { flex: 1; font-family: var(--mono); font-size: 11.5px; background: transparent; color: var(--dim); border: 0; padding: 9px 4px; cursor: pointer; transition: background .16s, color .16s; }
.seg button:hover { color: var(--white); }
.seg button[aria-pressed=true] { background: var(--white); color: var(--void); }

.big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.big .n { font-size: clamp(31px, 3.6vw, 42px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.big .n span { color: var(--iris); }
.big .u { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim-2); }
.read { font-size: 14.5px; color: var(--dim); line-height: 1.6; }
.sub-read { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim-2); margin-top: 9px; }
.read b { color: var(--white); font-weight: 500; }
svg.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 10px; fill: var(--dim-2); }
.cap { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim-2); margin-bottom: 10px; }

/* ---------- work rows ---------- */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0,470px) 1fr; gap: clamp(22px, 3.4vw, 44px); align-items: center; }
.portrait { width: 100%; aspect-ratio: 17 / 13; border-radius: 20px; }
.about-txt { display: flex; flex-direction: column; gap: 16px; }
.about-txt h2 { font-size: clamp(26px, 3.4vw, 38px); }
.about-txt p { font-size: 15.5px; color: var(--dim); line-height: 1.68; max-width: 60ch; }
.ticker { margin-top: 2px; min-height: 118px; display: flex; flex-direction: column; gap: 6px; }
.tick-val {
  font-size: clamp(46px, 7vw, 76px); font-weight: 600; letter-spacing: -.045em;
  line-height: 1; font-variant-numeric: tabular-nums; color: var(--white);
  display: flex; align-items: baseline; gap: 6px;
}
.tick-val i { font-style: normal; font-size: .38em; font-weight: 500; color: var(--iris); letter-spacing: -.01em; }
.tick-lab {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); max-width: 42ch; line-height: 1.7; min-height: 2.6em;
}
.tick-rail { height: 2px; background: var(--edge); border-radius: 2px; max-width: 280px; overflow: hidden; }
.tick-rail span { display: block; height: 100%; width: 0; background: var(--iris); }
.ticker.go .tick-val, .ticker.go .tick-lab { animation: tickIn .5s cubic-bezier(.2,.7,.25,1) both; }
@keyframes tickIn { from { opacity: .25; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.stackline { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.stackline span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim-2); border: 1px solid var(--edge); border-radius: 100px; padding: 5px 11px;
}

/* ---------- what the work is: lines that arrive off the straight ---------- */
.method { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 54px); align-items: center; }
@media (min-width: 940px) { .method { grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); } }
.method-lines { position: relative; display: flex; flex-direction: column; gap: 1px; }
.mline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(17px, 2vw, 25px); line-height: 1.22; color: var(--white);
  opacity: .17; transform: translateY(5px) scale(.985); transform-origin: left center;
  transition: opacity .6s cubic-bezier(.2,.7,.25,1), transform .6s cubic-bezier(.2,.7,.25,1);
  padding: 4px 0; will-change: opacity, transform;
}
.mline.on { opacity: 1; transform: none; }
.mline em { font-style: italic; color: var(--iris); }
@media (prefers-reduced-motion: reduce) { .mline { opacity: 1 !important; transform: none !important; } }


/* ---------- how the work runs: three steps that wake on hover ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
/* all three cards stay the same size; hover only lights one up */
.step {
  position: relative; overflow: hidden; border-radius: 16px;
  background: linear-gradient(180deg, var(--raise-2), var(--raise));
  border: 1px solid var(--edge); padding: 16px 18px 16px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  transition: border-color .4s, opacity .4s, transform .5s cubic-bezier(.22,.7,.2,1);
  cursor: default;
}
@media (min-width: 900px) {
  .steps:hover .step { opacity: .55; }
  .steps:hover .step.hot { opacity: 1; transform: translateY(-4px); }
}
.steps:hover .step.hot, .step:focus-within { opacity: 1; border-color: var(--edge-2); }
.step::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(70% 60% at 50% 0%, var(--iris-dim), transparent 72%);
  transition: opacity .45s;
}
.steps:hover .step.hot::after { opacity: 1; }
.step-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: nowrap; min-height: 1.1em; }
.step-n {
  font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1;
  color: var(--dim-2); font-variant-numeric: tabular-nums; transition: color .4s;
}
.steps:hover .step.hot .step-n { color: var(--iris); }
.step-t {
  font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1;
  color: var(--dim); transition: color .4s; white-space: nowrap;
}
.step p { margin-top: auto; }
.steps:hover .step.hot .step-t { color: var(--white); }
.step-stage {
  position: relative; border-radius: 11px; overflow: hidden;
  background: #070A10; border: 1px solid var(--edge);
  aspect-ratio: 16 / 6.5; height: auto;
}
:root[data-theme="light"] .step-stage { background: #EEF1F6; }
.step-stage canvas, .step-stage img, .step-stage video { width: 100%; height: 100%; display: block; object-fit: cover; }
.overlay-vid {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease; pointer-events: none; z-index: 2;
}
.overlay-vid.on { opacity: 1; }
.step-stage .overlay-vid { filter: saturate(.85) brightness(.78); transition: opacity .6s, filter .5s; }
.steps:hover .step.hot .step-stage .overlay-vid { filter: none; }
.folio-media .overlay-vid { border-radius: 0; }
.step-stage img { object-position: 50% 68%; filter: saturate(.95) brightness(.9); transition: filter .5s, transform .8s cubic-bezier(.2,.7,.25,1); }
.steps:hover .step.hot .step-stage img { filter: none; transform: scale(1.035); }
.step p { font-size: 13.5px; color: var(--dim); line-height: 1.5; }
.step-cursor {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  display: flex; align-items: center; gap: 5px;
  transition: left .9s cubic-bezier(.3,.7,.25,1), top .9s cubic-bezier(.3,.7,.25,1), opacity .4s;
  opacity: 0;
}
.steps:hover .step.hot .step-cursor { opacity: 1; }
.step-cursor span {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 100px; color: #0B0F17; white-space: nowrap;
}
.step-cursor svg { flex: none; }

/* ---------- a piece of design work, set on the slant ---------- */
.slab { position: relative; overflow: hidden; padding: clamp(54px, 7vw, 96px) 0; }
.slab::before {
  content: ""; position: absolute; left: -6%; right: -6%; top: 0; bottom: 0;
  background: linear-gradient(115deg, var(--raise-2), var(--void) 62%);
  transform: skewY(-3.2deg); transform-origin: top left; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
}
.slab-in { position: relative; display: grid; grid-template-columns: 1fr; gap: clamp(22px, 3.4vw, 48px); align-items: center; }
@media (min-width: 900px) { .slab-in { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); } }
.slab h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.04; }
.slab p { font-size: 14.5px; color: var(--dim); line-height: 1.6; margin-top: 12px; max-width: 42ch; }
.slab-shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--edge-2);
  box-shadow: 0 40px 90px -46px rgba(0,0,0,.95); transform: rotate(-1.4deg); }
.slab-shot img { width: 100%; display: block; }

/* ---------- contact ---------- */
.contact-page { padding-top: clamp(48px, 5vw, 74px); padding-bottom: clamp(30px, 3.4vw, 48px); position: relative; }
.contact-lede {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5.2vw, 62px); line-height: 1; letter-spacing: -.008em;
}
.contact-lede em {
  font-style: italic; color: var(--iris); position: relative; padding-right: .06em;
}
.contact-lede em::after {
  content: ""; position: absolute; left: .04em; right: .1em; bottom: .08em; height: 1px;
  background: linear-gradient(90deg, var(--iris), transparent);
}
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(26px, 4vw, 56px); margin-top: clamp(22px, 3vw, 38px); align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.contact-game { display: flex; flex-direction: column; gap: 14px; min-width: 0; scroll-margin-top: 90px; }
.contact-game > h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.05; }
.contact-game .game-body { grid-template-columns: 1fr !important; gap: 18px; }
.contact-game .game-gate { padding: 22px 22px; }
.posy { position: relative; display: flex; justify-content: center; align-items: center; }
.posy { align-items: flex-start; padding-top: 18px; }
.posy img {
  width: min(58%, 224px); border-radius: 999px;
  filter: saturate(.84) contrast(.96); opacity: .94;
  box-shadow: 0 26px 70px -38px rgba(0,0,0,.85);
}
:root:not([data-theme="light"]) .posy img { opacity: .74; filter: saturate(.72) contrast(.92) brightness(.94); }
.posy figcaption {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-size: 15px; color: #6E6478;
  white-space: nowrap;
}

.foot-ic { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 22px; }
.foot-ic a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--dim); transition: color .18s;
}
.foot-ic a:hover { color: var(--white); }
.foot-ic svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 760px) { .foot-ic { justify-content: flex-start; } }

.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.contact h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.03; }
.lines { display: flex; flex-direction: column; gap: 11px; }
.line { display: flex; gap: 14px; align-items: baseline; }
.line b { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim-2); font-weight: 400; min-width: 72px; }
.line a { border-bottom: 1px solid rgba(95,211,160,.4); }
.line a:hover { color: var(--iris); }

/* ---------- substack feed ---------- */
.write-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.news-band {
  position: relative; margin: 0 0 18px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--edge); width: 100%; height: clamp(118px, 12.5vw, 196px);
}
.news-fall {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(110deg, var(--raise-2), var(--raise) 60%, var(--ink));
}
.news-fall span {
  font-family: var(--serif); font-size: clamp(22px, 3.4vw, 40px);
  letter-spacing: .01em; color: var(--dim);
}
.feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.post {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--raise); border: 1px solid var(--edge); border-radius: 16px;
  transition: transform .28s cubic-bezier(.2,.7,.25,1), border-color .28s;
}
a.post:hover { transform: translateY(-4px); border-color: var(--edge-2); }
.post { position: relative; }
.post canvas { width: 100%; height: 168px; display: block; }
.post-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 168px;
  object-fit: cover; opacity: 0; transition: opacity .4s; z-index: 1;
}
.post-img.on { opacity: 1; }
a.post:hover .post-img { opacity: .92; }
.post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-t { font-size: 16.5px; font-weight: 600; line-height: 1.32; color: var(--white); letter-spacing: -.015em; }
a.post:hover .post-t { color: var(--iris); }
.post-m { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim-2); margin-top: auto; }
.feed-empty { padding: 14px 0; font-size: 14px; color: var(--dim-2); grid-column: 1 / -1; }
.feed-all { font-size: 14px; font-weight: 500; color: var(--iris); }
.feed-all:hover { text-decoration: underline; text-underline-offset: 4px; }

.plate-shot {
  position: relative; display: block; width: 100%; height: 104px; padding: 0;
  border: 0; background: #0A0D14; cursor: zoom-in; overflow: hidden;
}
.plate-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: 12% 32%;
  filter: saturate(.52) brightness(.46) contrast(1.12); transition: filter .35s, transform .6s;
}
.plate-shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,11,18,.28), rgba(8,11,18,.82)),
              radial-gradient(70% 90% at 22% 30%, rgba(95,211,160,.22), transparent 70%);
}
.plate-shot:hover img { filter: saturate(.8) brightness(.62) contrast(1.05); transform: scale(1.035); }
.plate-tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.28);
  border-radius: 100px; padding: 4px 10px; backdrop-filter: blur(6px);
}
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(3,5,9,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: clamp(16px, 4vw, 48px); animation: lbIn .24s ease both;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { margin: 0; max-width: 1100px; width: 100%; }
.lb-fig img {
  width: 100%; height: auto; border-radius: 14px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.lb-fig figcaption {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-top: 14px; text-align: center;
}
.lb-close {
  position: fixed; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.2); }

.form-head { font-size: 21px; margin-bottom: 6px; }
.form-sub { font-size: 14px; color: var(--dim); line-height: 1.55; margin-bottom: 20px; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 26px; }
.form { border: 1px solid var(--edge); border-radius: 20px; background: var(--raise); padding: 26px; }
.f { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.f label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim-2); }
input[type=text], input[type=email], textarea, select {
  width: 100%; font-family: var(--sans); font-size: 14.5px; color: var(--white);
  background: var(--field); border: 1px solid var(--edge-2); border-radius: 10px; padding: 12px 14px;
}
textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: var(--dim-2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(95,211,160,.55); }
.submit { width: 100%; font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--void); background: var(--white); border: 0; border-radius: 100px; padding: 13px; cursor: pointer; transition: transform .18s; }
.submit:hover { transform: translateY(-1px); }
.note { font-size: 12.5px; color: var(--dim-2); margin-top: 11px; line-height: 1.5; }
.note.ok { color: var(--iris); }

/* ---------- footer ---------- */
footer { position: relative; padding: 54px 0 48px; overflow: hidden; }
footer::after {
  content: ""; position: absolute; left: 50%; bottom: -46%;
  width: 150%; height: 108%; transform: translateX(-50%);
  background:
    radial-gradient(64% 108% at 50% 100%, var(--bloom-a), transparent 74%),
    radial-gradient(96% 76% at 20% 100%, var(--bloom-b), transparent 78%),
    radial-gradient(70% 60% at 82% 100%, rgba(232,184,114,.16), transparent 76%);
  filter: blur(10px); pointer-events: none; z-index: 0;
}
footer > .wrap { position: relative; z-index: 1; }
.foot { display: flex; flex-wrap: wrap; gap: 22px 40px; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { font-size: 13.5px; color: var(--dim); }
.foot-links a:hover { color: var(--white); }
.colo { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--dim-2); line-height: 1.9; }
.foot-base { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
footer > .wrap { max-width: none; padding-inline: clamp(16px, 2.4vw, 34px); }
.todo { margin-top: 20px; border: 1px dashed rgba(232,184,114,.4); border-radius: 12px; background: rgba(232,184,114,.05); padding: 15px 17px; font-size: 12.5px; color: var(--dim); line-height: 1.7; max-width: 80ch; }
.todo b { color: var(--gold); font-weight: 500; }
.todo code { font-family: var(--mono); font-size: 11.5px; color: var(--white); }

/* ---------- motion ---------- */
.rise { transition: transform .8s cubic-bezier(.2,.7,.25,1), opacity .8s cubic-bezier(.2,.7,.25,1); }
.js .rise:not(.in) { transform: translateY(22px); opacity: 0; }
.hero-mark, .hero-tag, .agent, .chips { animation: up .85s cubic-bezier(.2,.7,.25,1) both; }
.hero-tag { animation-delay: .07s; } .agent { animation-delay: .14s; }
.chips { animation-delay: .2s; }
@keyframes up { from { transform: translateY(16px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise:not(.in) { transform: none; opacity: 1; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .inst-grid { grid-template-columns: 1fr; }
  .inst-l { border-right: 0; }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--nav-solid); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--edge); padding: 8px var(--gut) 18px; gap: 2px;
  }
  .nav-links.open a { padding: 13px 4px; border-radius: 8px; }
  .nav-links.open .pill { margin-top: 10px; text-align: center; }
  .burger { display: block; }
  .nav-in { position: relative; }
  #gl { height: 460px; }
  .strip .right { width: 100%; justify-content: space-between; }
}

/* ============================================================
   PORTED MODULES — orbit, filterable work grid, chart game.
   `.viz` re-scopes the chart token names locally so they never
   collide with INTERVAL's own --ink / --gold / --raise tokens.
   ============================================================ */
.viz {
  --font-display: var(--sans);
  --font-body: var(--sans);
  --font-mono: var(--mono);

  --ink: var(--white);
  --ink-2: var(--dim);
  --muted: var(--dim-2);
  --surface: var(--raise);
  --surface-2: var(--raise-2);
  --rule: var(--edge-2);
  --rule-soft: var(--edge);
  --ground: var(--void);

  --accent: var(--iris);
  --accent-mark: var(--iris);
  --accent-btn: var(--white);
  --on-accent: var(--void);
  --accent-wash: var(--iris-dim);
  --good: #0ca30c;

  /* the blue borrowed from the old page, stepped for this dark ground */
  --chart-surface: #0D1119;
  --grid: rgba(255,255,255,.07);
  --axis: rgba(255,255,255,.18);
  --series-1: #3E90EA;
  --series-2: #E0722F;
  --series-3: #1FA57A;
  --series-4: #E79AC4;
  --series-5: #8CD2F2;
  --ramp-1: #dcebff; --ramp-2: #b3d3fa; --ramp-3: #84b6f3; --ramp-4: #5a98ea; --ramp-5: #3d7fe0;
}
:root[data-theme="light"] .viz {
  --chart-surface: #FFFFFF;
  --grid: rgba(12,16,26,.08);
  --axis: rgba(12,16,26,.22);
  --series-1: #2A6FC4; --series-2: #C05A1C; --series-3: #157A59;
  --series-4: #C4699B; --series-5: #3F9BD0;
  --ramp-1: #dbe9fb; --ramp-2: #a8caf2; --ramp-3: #5f9ce3; --ramp-4: #2a6ab8; --ramp-5: #1b4a87;
}
.viz .mono {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dim-2); margin: 0;
}
.viz .interval {
  display: block; width: 88px; height: 9px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left center / 1px 9px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 1px 9px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 26px 3px no-repeat;
}
.viz .btn {
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  padding: 10px 18px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.viz .btn-primary { background: var(--white); color: var(--void); }
.viz .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px -10px rgba(255,255,255,.4); }
.viz .btn-ghost { background: transparent; color: var(--white); border-color: var(--edge-2); }
.viz .btn-ghost:hover { background: var(--wash); }
.viz .btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.viz .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------- orbit: the ring sits beside the copy ---------------- */
.orbit-section { position: relative; height: 190vh; padding: 0; }
.orbit-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: flex-start; padding-top: 11vh; overflow: hidden; }
.orbit-layout {
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start;
  width: 100%; max-width: none; margin: 0; padding-inline: clamp(16px, 2.4vw, 34px);
}
@media (min-width: 900px) {
  .orbit-layout { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(28px, 4vw, 64px); }
  .orbit-wrap { justify-self: end; width: 100%; max-width: 640px; }
}
.orbit-side { display: flex; flex-direction: column; gap: 12px; }
.orbit-side h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.02; }
.orbit-eyebrow {
  font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; color: var(--white); margin: 0 0 10px;
}
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.mini-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--raise-2), var(--raise));
  border: 1px solid var(--edge); border-radius: 13px;
  transition: border-color .24s, transform .24s;
}
.mini-card:hover { border-color: var(--edge-2); transform: translateY(-3px); }
.mini-plate { width: 100%; height: 108px; display: block; }
.mini-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.mini-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--iris); }
.mini-h { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.mini-d { font-size: 13.5px; color: var(--dim); line-height: 1.45; }
.mini-p { margin-top: auto; padding-top: 10px; font-size: 22px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.mini-p i { font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--dim-2); }
.ring-label { align-self: center; margin-bottom: 0; }
.svc-list { display: flex; flex-direction: column; gap: 2px; }
.svc {
  appearance: none; text-align: left; font-family: var(--sans); cursor: pointer;
  background: transparent; border: 0; border-top: 1px solid var(--edge);
  padding: 13px 2px; display: grid; gap: 4px; color: inherit; width: 100%;
  transition: padding-left .2s ease;
}
.svc:hover { padding-left: 7px; }
.svc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.svc-n { font-size: 16.5px; font-weight: 600; letter-spacing: -.02em; }
.svc-p { font-size: 15px; font-weight: 600; color: var(--iris); font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc-p i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--dim-2); }
.svc-l { font-size: 13.5px; color: var(--dim); line-height: 1.45; }
.svc-w { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim-2); }
.svc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.2,.7,.25,1); }
.svc-more > span { overflow: hidden; font-size: 12.5px; color: var(--dim-2); line-height: 1.6; }
.svc[aria-expanded="true"] .svc-more { grid-template-rows: 1fr; }
.svc[aria-expanded="true"] .svc-more > span { padding-top: 4px; }

.orbit-wrap { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.orbit-eyebrow { align-self: flex-start; }
.orbit-stage { position: relative; width: 100%; aspect-ratio: 1; max-height: 72vh; margin: -2vh auto 0; }
.orbit-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(54%, 300px); text-align: center; pointer-events: none; z-index: 12;
}
.orbit-center::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 320px; height: 320px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, var(--void) 42%, rgba(4,6,10,.82) 66%, transparent 78%);
}
:root[data-theme="light"] .orbit-center::before {
  background: radial-gradient(closest-side, var(--void) 42%, rgba(246,247,250,.86) 66%, transparent 78%);
}
.orbit-center h3 { font-size: clamp(17px, 2vw, 22px); margin-top: 6px; line-height: 1.2; }
.orbit-center .line { font-size: 13.5px; color: var(--dim); margin-top: 7px; line-height: 1.5; }
.orbit-card {
  position: absolute; left: 50%; top: 50%;
  width: 156px; margin: -58px 0 0 -78px;
  background: linear-gradient(180deg, var(--raise-2), var(--raise));
  border: 1px solid var(--edge); border-radius: 16px; padding: 14px;
  will-change: transform, opacity;
}
.orbit-card .thumb {
  height: 68px; border-radius: 10px; background: var(--wash-0);
  display: grid; place-items: center; overflow: hidden;
}
.orbit-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.orbit-card .cap {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim); margin-top: 10px; line-height: 1.4;
}
.orbit-section.static { height: auto; }
.orbit-section.static .orbit-sticky { position: static; height: auto; padding: clamp(56px, 8vw, 100px) 0; display: block; overflow: visible; }
.orbit-section.static .orbit-layout { grid-template-columns: 1fr; }
.orbit-section.static .orbit-stage {
  aspect-ratio: auto; max-height: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
  width: 100%; min-width: 0;
}
.orbit-section.static .orbit-card { position: static; margin: 0; width: auto; transform: none !important; opacity: 1 !important; }
.orbit-section.static .orbit-center { display: none; }
@media (max-width: 559px) {
  .orbit-section:not(.static) { height: auto; }
  .orbit-section:not(.static) .orbit-sticky { position: static; height: auto; display: block; overflow: visible; padding: 48px 0 64px; }
  .orbit-section:not(.static) .orbit-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .orbit-section:not(.static) .orbit-stage { width: min(100%, 320px); height: 320px; aspect-ratio: auto; max-height: none; margin: 8px auto 0; }
  .orbit-section:not(.static) .orbit-card { width: 100px; margin: -44px 0 0 -50px; padding: 8px; border-radius: 12px; }
  .orbit-section:not(.static) .orbit-card .thumb { height: 40px; }
  .orbit-section:not(.static) .orbit-card .thumb svg { width: 34px; height: 32px; }
  .orbit-section:not(.static) .orbit-card .cap { font-size: 8px; margin-top: 5px; }
  .orbit-section:not(.static) .orbit-center { width: 42%; }
  .orbit-section:not(.static) .orbit-center::before { width: 180px; height: 180px; }
  .orbit-section:not(.static) .orbit-center h3 { font-size: 14px; }
  .orbit-section:not(.static) .orbit-center .line { font-size: 10.5px; line-height: 1.35; }
}

/* ---------------- filterable work grid ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.fchip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 15px; border-radius: 100px; border: 1px solid var(--edge);
  background: transparent; color: var(--dim); cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.fchip:hover { border-color: var(--edge-2); color: var(--white); }
.fchip[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--void); }

.cards { columns: 3 300px; column-gap: 16px; }
.cards > .vcard { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; margin-bottom: 16px; display: block; }
.vcard.featured { column-span: all; }
.vcard {
  background: var(--raise); border: 1px solid var(--edge); border-radius: 18px;
  padding: 16px 17px 17px; display: flex; flex-direction: column; gap: 7px;
  transition: border-color .25s, transform .25s;
}
.vcard:hover { border-color: var(--edge-2); transform: translateY(-3px); }

.vcard h3 { font-size: 17.5px; line-height: 1.24; }
.vcard p { font-size: 13.5px; color: var(--dim); line-height: 1.5; }
.vcard .tags { margin-top: 0; padding-top: 0; }
.card-result {
  margin-top: 12px; padding-top: 13px; border-top: 1px solid var(--edge);
  font-family: var(--mono); font-size: 11.5px; color: var(--white); line-height: 1.55;
}
.more-row { display: flex; justify-content: center; margin-top: 20px; }
.vcard.hid { display: none; }
.spec { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.featured-body { display: grid; grid-template-columns: 1fr; gap: 24px; }
.featured-body > div { display: flex; flex-direction: column; gap: 11px; }
@media (min-width: 840px) { .featured-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; } }
.said-q { font-size: 15px; color: var(--white); border-left: 2px solid var(--gold); padding-left: 13px; line-height: 1.5; }
.said-w { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim-2); padding-left: 15px; }

.cover { margin: 2px 0 4px; border-radius: 12px; overflow: hidden; border: 1px solid var(--edge); }
.cover img { width: 100%; display: block; }
.chart-shell { background: var(--chart-surface); border: 1px solid var(--edge); border-radius: 14px; padding: 10px 11px 8px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.chart-title { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.chart-note { font-family: var(--mono); font-size: 10.5px; color: var(--dim-2); margin-top: 10px; line-height: 1.5; }
.chart-shell svg { display: block; width: 100%; height: auto; }

.bar-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 70px; align-items: center; gap: 11px; padding: 5px 0; }
.bar-row .bar-label { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.bar-track { background: var(--wash); border-radius: 3px; height: 24px; }
.bar-fill { display: block; height: 100%; border-radius: 3px 4px 4px 3px; transition: width .7s cubic-bezier(.2,.7,.3,1); }
.bar-row .bar-value { font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; color: var(--white); }
.bar-row.is-flag .bar-value { color: var(--gold); }

.toggle-row { display: flex; gap: 8px; margin-top: 11px; }
.mini-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 11px; border: 1px solid var(--edge); background: transparent;
  color: var(--dim); border-radius: 100px; cursor: pointer;
}
.mini-btn[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--void); }

table.data { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { text-align: right; padding: 7px 9px; border-bottom: 1px solid var(--edge); color: var(--dim); }
table.data td:first-child, table.data th:first-child { text-align: left; }
table.data th { color: var(--dim-2); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: 9.5px; }
table.data tfoot td { color: var(--white); }


/* ---------------- folio: a list on the left, one panel on the right ---------------- */
.folio { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .folio { grid-template-columns: minmax(210px, 258px) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 40px); } }
.folio-list { display: flex; flex-direction: column; gap: 1px; }
.folio-tab {
  appearance: none; background: transparent; border: 0; border-top: 1px solid var(--edge);
  text-align: left; font-family: var(--sans); color: var(--dim); cursor: pointer;
  padding: 13px 4px; display: grid; gap: 3px; width: 100%;
  transition: color .2s, padding-left .25s cubic-bezier(.2,.7,.25,1), border-color .2s;
}
.folio-tab:last-child { border-bottom: 1px solid var(--edge); }
.folio-tab:hover { color: var(--white); padding-left: 8px; }
.folio-tab b { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; color: inherit; }
.folio-tab i {
  font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim-2);
}
.folio-tab[aria-selected="true"] { color: var(--white); padding-left: 10px; border-top-color: var(--edge-2); }
.folio-tab[aria-selected="true"] i { color: var(--iris); }
.folio-tab[aria-selected="true"]::before {
  content: ""; position: absolute; left: 0; width: 2px; height: 26px; margin-top: 4px;
  background: var(--iris); border-radius: 2px;
}
.folio-list { position: relative; }
.folio-tab { position: relative; }

.folio-stage {
  position: relative; border: 1px solid var(--edge); border-radius: 20px;
  background: linear-gradient(180deg, var(--raise-2), var(--raise));
  padding: clamp(18px, 2.2vw, 26px);
  min-height: 460px; display: flex; flex-direction: column;
}
@media (min-width: 900px) { .folio-stage { min-height: 520px; } }
.folio-item { display: none; flex-direction: column; gap: 10px; flex: 1; animation: folioIn .45s cubic-bezier(.2,.7,.25,1) both; }
.folio-item.on { display: flex; }
@keyframes folioIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.folio-item h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.15; }
.folio-item > p { font-size: 14.5px; color: var(--dim); line-height: 1.55; max-width: 62ch; }
.folio-body { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; margin-top: 4px; }
@media (min-width: 760px) { .folio-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(16px, 2vw, 28px); } }
.folio-media { border-radius: 13px; overflow: hidden; border: 1px solid var(--edge); background: var(--chart-surface); }
.folio-media img, .folio-media video { width: 100%; display: block; }
.folio-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--edge);
  font-family: var(--mono); font-size: 11.5px; color: var(--white); line-height: 1.55;
}
.folio-item .chart-shell { border: 0; padding: 0; background: transparent; }
.folio-item .said-q { font-size: 14px; }

/* ---------------- the game ---------------- */
.game-gate {
  background: linear-gradient(115deg, var(--raise-2), var(--raise));
  border: 1px solid var(--edge); border-radius: 20px; padding: 26px 28px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.game-gate::after {
  content: ""; position: absolute; right: -10%; top: -60%; width: 46%; height: 220%;
  background: radial-gradient(closest-side, var(--iris-dim), transparent 70%);
  animation: drift 9s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes drift { from { transform: translateX(0) scale(1); } to { transform: translateX(-26%) scale(1.18); } }
.gate-l { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.gate-l h3 { font-size: clamp(19px, 2.4vw, 26px); }
.game-gate .btn { position: relative; z-index: 1; }
.game { background: var(--raise); border: 1px solid var(--edge); border-radius: 20px; overflow: hidden; }
.game-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 22px; border-bottom: 1px solid var(--edge); background: var(--wash-0);
}
.pips { display: flex; gap: 5px; }
.pip { width: 22px; height: 4px; border-radius: 2px; background: var(--edge-2); }
.pip.done { background: var(--gold); }
.pip.miss { background: var(--iris); }
.pip.active { background: var(--white); }
.game-body { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 24px 22px 26px; }
@media (min-width: 900px) { .game-body { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; } }
.game-figure { background: var(--chart-surface); border: 1px solid var(--edge); border-radius: 14px; padding: 16px; margin: 0; }
.game-figure figcaption { font-size: 15px; font-weight: 600; margin-bottom: 4px; letter-spacing: -.01em; }
.game-figure .source { font-family: var(--mono); font-size: 10px; color: var(--dim-2); margin-top: 10px; }
.game-figure svg { display: block; width: 100%; height: auto; }
.options { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.option {
  text-align: left; font-family: var(--sans); font-size: 14px; line-height: 1.45;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--edge);
  background: transparent; color: var(--white); cursor: pointer;
  display: flex; gap: 10px; align-items: flex-start;
  transition: border-color .18s, background .18s;
}
.option:hover:not([disabled]) { border-color: var(--edge-2); background: var(--field); }
.option .key {
  font-family: var(--mono); font-size: 10px; color: var(--dim-2);
  border: 1px solid var(--edge); border-radius: 4px; padding: 1px 6px; flex: none; margin-top: 2px;
}
.option[data-state="right"] { border-color: #2fa84f; background: rgba(47,168,79,.12); }
.option[data-state="wrong"] { border-color: var(--iris); background: var(--iris-dim); }
.option[disabled] { cursor: default; }
.verdict {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--wash-0);
  border-left: 2px solid var(--gold); font-size: 14px; color: var(--dim); line-height: 1.55; display: none;
}
.verdict.show { display: block; }
.verdict strong { color: var(--white); font-weight: 600; }
.verdict .interval { margin: 9px 0; width: 54px; }
.game-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 15px 22px; border-top: 1px solid var(--edge); background: var(--wash-0);
}
.score { font-family: var(--mono); font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* work page */
.page-top { padding-top: clamp(40px, 5vw, 70px); }

/* theme switch: a labelled pill so people actually notice it */
.themer { width: auto; height: 34px; padding: 0 12px 0 10px; border-radius: 100px; gap: 6px; display: inline-flex; align-items: center;
  color: var(--white); border-color: var(--edge-2); background: var(--wash); font: 500 12.5px var(--sans); }
.themer:hover { transform: none; }
.themer:hover svg { transform: rotate(18deg); }
.themer svg { transition: transform .3s; }
@media (max-width: 520px) { .themer-t { display: none; } .themer { padding: 0; width: 34px; justify-content: center; } }
/* menu group labels */
.nav-menu-h{display:block;padding:8px 12px 4px;font:500 10.5px var(--mono,ui-monospace,monospace);letter-spacing:.16em;text-transform:uppercase;opacity:.55}
.nav-menu-h2{margin-top:8px;padding-top:12px;border-top:1px solid rgba(127,127,127,.18)}
.nav-menu .nav-menu-h2 + .nav-menu-sep{border-top:0;margin-top:0;padding-top:9px !important}
.nav-right .pill { white-space: nowrap; }
@media (max-width: 420px) { .nav-right .pill { padding-left: 12px; padding-right: 12px; font-size: 13px; } }
html, body { overflow-x: clip; }

.ft-note { margin: 10px 0 0; font: 400 11.5px var(--mono); letter-spacing: .04em; color: var(--dim-2); }

/* Shared visual refinements formerly in clean.css. */
/* 2. No fade-ups and no word-by-word blur reveals: content is there when you arrive. */
.rise, .js .rise:not(.in) { transform: none !important; opacity: 1 !important; transition: none !important; }
.js .split .w { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }

/* 3. Solid panels instead of frosted glass (glass kept only on the menu bar and the charge box). */
.card, .step, .inst, .post, .form, .game, .game-gate, .mini-card, .folio-stage, .wk, .node, .fview,
.ask-tool, .svc-sq, .ag-screen, .ct-seg, .ct-see {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: var(--raise);
}
.glass, .ag-glass { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: var(--raise-2); }

/* 4. Hover lift only on things you can click. */
.card:hover, .wk:hover, .vcard:hover, .ag-card:hover, .ag .ph:hover, .steps:hover .step.hot { transform: none !important; }

/* 5. Fewer shouting labels: decorative kickers in sentence case. Dates, data and code keep their mono caps. */
.ag-k, .kicker, .orbit-eyebrow, .mini-k, .tick-lab, .ft-col h4, .flow-l, .stackline span, .inst .label, .ft-open {
  text-transform: none !important; letter-spacing: .01em !important;
}

/* 6. Softer glow behind the page. */
:root { --bloom-a: rgba(95,211,160,.20); }
:root[data-theme="light"] { --bloom-a: rgba(18,128,90,.14); }

/* 7. Footer wordmark in the new accent instead of purple. */
body.home :is(.mini-card, .step, .card, .game-gate) { background-color: transparent; }
.ag-screen { background-color: var(--raise) !important; }

/* 1b. same rule, stronger, for the hero tagline and the method lines */
.hero-tag em, .mline em { font-style: normal !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; }
/* Agents hero line: sentence case, no coloured word */
.ag-tag2 { text-transform: none !important; letter-spacing: .01em !important; font-family: var(--sans) !important; font-weight: 500 !important; }
.ag-tag2 span { color: inherit !important; }
/* Agents hero button: one colour, no purple gradient */
.ag-glass { background: linear-gradient(180deg, #5FD3A0, #2FA877) !important; color: #06150F !important; border-color: rgba(255,255,255,.35) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6), 0 14px 34px -14px rgba(47,168,119,.7) !important; }
.ag-glass:hover { box-shadow: inset 0 1px 1px rgba(255,255,255,.6), 0 18px 40px -12px rgba(47,168,119,.85) !important; }
/* 1c. catch every heading word, including words split for animation */
h1 em, h2 em, h3 em, h2 em .w, h1 em .w, .head h2 em *, .xp-h em { font-style: normal !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; background: none !important; }
.ag-hero h1 em, .ag-hero h1 em * { font-style: italic !important; color: var(--iris) !important; -webkit-text-fill-color: var(--iris) !important; }

/* 8. No glowing blobs behind the Agents headline */
.ag-hero-fx i { display: none !important; }

/* 9. Category labels in sentence case: agent phones, project tabs, orbit labels, form and calculator labels.
      Caps kept only on dates, chart axes, table heads and NEXT RUN. */
.ph-ind, .folio-tab i, .orbit-card .cap, .viz .mono, .f label, .label, .svc-w, .plate-tag, .flow-hint, .mini-btn, .fchip {
  text-transform: none !important; letter-spacing: .01em !important;
}

/* 10. Hero status badge: a live agent state instead of NEXT RUN */
.ag-next { width: 236px !important; }
.ag-next span { transition: opacity .35s, transform .35s; }
.ag-next span.swap { opacity: 0; transform: translateY(4px); }

/* 11. Tool kickers (Live · web app, Live · $15) stand out */
.card .kicker { font-weight: 700 !important; font-size: 11.5px !important; color: var(--iris) !important; }
/* Form: "What you're after" reads clearly in both themes */
.f select { font-weight: 600; color: var(--white); }
.f label[for="fOffer"] { font-weight: 700; color: var(--white); }
/* Case-study steps: plain dots, no 1 2 3 4 */
.hp-steps li { padding-left: 32px; }
.hp-steps li::before { content: "" !important; width: 8px !important; height: 8px !important; left: 14px !important; top: 19px !important; }
/* Home steps without numbers */
.step-top { gap: 0; }
/* Setup demo: titles only */
.su-st b { margin-top: 14px; font-size: 17px; line-height: 1.3; }
.su-st b small { display: block; margin-top: 4px; font: 500 12px var(--mono); color: var(--dim); }

/* 12. Agents: tool rows readable, labels sit next to their tools, away from the edge */
.ag-flow { -webkit-mask-image: none !important; mask-image: none !important; }
.flow-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 92%, transparent); }
.flow-row { padding-left: max(calc(var(--gut) + 8px), calc((100vw - 1200px) / 2 + 8px)) !important; gap: 10px !important; }
.flow-l { width: 118px !important; text-align: right; font: 700 12.5px var(--sans) !important; color: var(--white) !important; letter-spacing: .01em !important; text-transform: none !important; }
@media (max-width: 700px) { .flow-l { text-align: left; } }

/* 13. Agents, light theme: "Start to finish in one run" fully readable, a bit more compact */
.ag-run { padding: clamp(28px, 3.5vw, 48px) 0 !important; }
.ag-run-in { gap: 32px !important; }
:root[data-theme="light"] .ag-run-copy h2 { color: #0B0F17 !important; }
:root[data-theme="light"] .ag-run-copy p:not(.ag-k) { color: #1B1F2A !important; font-weight: 500; }

/* 14. Contact: the drama line */
.ct-shout { margin: .9em 0 .2em !important; font: 400 clamp(30px, 3.4vw, 46px)/1.08 var(--serif) !important; color: var(--white) !important; max-width: 18ch !important; letter-spacing: -.01em; }
.ct-shout em { font-style: italic !important; color: var(--iris) !important; -webkit-text-fill-color: var(--iris) !important; }

/* 15. Accessibility button joins the green */
.ax-btn { background: linear-gradient(145deg, #7FE3B8, #2FA877) !important; color: #06150F !important; box-shadow: 0 10px 26px -10px rgba(47,168,119,.7), inset 0 1px 0 rgba(255,255,255,.4) !important; }
.ax-top, .ax-reset, :root[data-theme="light"] .ax-top, :root[data-theme="light"] .ax-reset { background: linear-gradient(110deg, #4FC291, #12805A) !important; }
.ax-row[aria-pressed="true"] .ax-sw, :root:not([data-theme="light"]) .ax-row[aria-pressed="true"] .ax-sw { background: #2FA877 !important; }
.ax-sec h6, :root:not([data-theme="light"]) .ax-sec h6 { color: var(--iris) !important; }

/* 16. Charger seats into the port: the laptop body sits in front of the plug tip */
.xp-plugged .xp-right { z-index: 4; }
/* light theme: the run screen stays a dark terminal so every line reads */
:root[data-theme="light"] .ag-screen { background: #0A0C11 !important; border-color: rgba(0,0,0,.2) !important; box-shadow: 0 30px 60px -30px rgba(10,14,24,.45) !important; }
:root[data-theme="light"] .ag-screen-top b, :root[data-theme="light"] .ag-feed b { color: #F4F6FB !important; }
:root[data-theme="light"] .ag-feed span { color: #B8C0CF !important; }
:root[data-theme="light"] .ag-feed li { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.08) !important; }
:root[data-theme="light"] .ag-feed time, :root[data-theme="light"] .ag-screen-top em, :root[data-theme="light"] .ag-ex { color: #8B93A5 !important; }
.ag-feed { gap: 7px !important; } .ag-feed li { padding: 9px 12px !important; }

/* 17. Contact: "verb" in bold, no colour; the "as in" line sits inside a comment bubble */
.ct-shout b { font-weight: 700; font-style: normal; color: inherit; font-family: var(--sans); letter-spacing: -.02em; }
.ct-bubble { position: relative; display: flex; gap: 12px; align-items: flex-start; max-width: 46ch; margin: 6px 0 1.2em; padding: 14px 18px 16px; border-radius: 18px 18px 18px 4px; background: var(--raise-2); border: 1px solid var(--edge-2); }
.ct-bubble svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--iris); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ct-bubble p { margin: 0 !important; font: 400 14.5px/1.6 var(--mono) !important; color: var(--white) !important; }
.ct-bubble i { font-style: normal; color: var(--dim); }

/* 18. Agents: the monthly receipt */
.rc-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .rc-in { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; } }
.rc-copy p { margin: 14px 0 0; max-width: 44ch; font-size: 17px; line-height: 1.65; color: var(--dim); }
.rc { position: relative; margin: 0 18px; padding: 26px 24px 30px; background: #F6F3EC; color: #1A1C22; font: 400 13.5px/1.55 var(--mono);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.6); transform: translateY(-104%); transition: transform 1.8s cubic-bezier(.3,.6,.2,1);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; padding-bottom: 36px; }
.rc header { display: grid; gap: 2px; text-align: center; }
.rc header b { font: 700 18px var(--sans); letter-spacing: .3em; }
.rc header span { font-size: 12px; color: #5B5F6B; }
.rc hr { border: 0; border-top: 1.5px dashed #B9B4A8; margin: 16px 0; }
.rc dl { margin: 0; display: grid; gap: 8px; }
.rc dl div { display: flex; justify-content: space-between; gap: 14px; }
.rc dt { color: #4A4E59; } .rc dd { margin: 0; text-align: right; font-weight: 600; }
.rc .money dd { color: #12805A; font-weight: 700; }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; font: 700 15px var(--sans); }
.rc-total b { font-size: 34px; letter-spacing: -.02em; }
.rc-next { margin: 0; text-align: center; font-weight: 600; }
.rc-bar { height: 34px; margin: 18px 30px 6px; background: repeating-linear-gradient(90deg, #1A1C22 0 2px, transparent 2px 4px, #1A1C22 4px 5px, transparent 5px 8px, #1A1C22 8px 11px, transparent 11px 12px); }
.rc-thanks { margin: 0; text-align: center; font-size: 11.5px; color: #6B6F7A; }
@media (prefers-reduced-motion: reduce) { .rc { transform: none; transition: none; } }
/* 19. three receipts, fanned, no printer slot */
@media (min-width: 900px) { .rc-in { grid-template-columns: minmax(0, 1fr) minmax(0, 560px) !important; } }
.rc-stack { position: relative; min-height: 560px; }
.rc-stack .rc { position: absolute; width: 300px; margin: 0; padding: 22px 20px 32px; font-size: 12.5px; transform: none; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.rc-stack .r1 { left: 0; top: 46px; --rot: -7deg; z-index: 1; filter: brightness(.86); }
.rc-stack .r2 { left: 120px; top: 22px; --rot: -1.5deg; z-index: 2; filter: brightness(.94); }
.rc-stack .r3 { left: 250px; top: 0; --rot: 4deg; z-index: 3; }
.rc-stack .rc { transform: translateY(40px) rotate(0deg); opacity: 0; }
.rc-stack.printed .rc { transform: rotate(var(--rot)); opacity: 1; }
.rc-stack.printed .r2 { transition-delay: .15s; } .rc-stack.printed .r3 { transition-delay: .3s; }
.rc-stack .rc:hover { z-index: 5; filter: none; transform: rotate(0deg) translateY(-6px); }
.rc-stack .rc-total b { font-size: 28px; }
@media (max-width: 899px) {
  .rc-stack { min-height: 600px; }
  .rc-stack .rc { width: 250px; font-size: 11.5px; }
  .rc-stack .r1 { left: 0; top: 40px; } .rc-stack .r2 { left: 40px; top: 20px; } .rc-stack .r3 { left: auto; right: 0; top: 0; }
}
@media (prefers-reduced-motion: reduce) { .rc-stack .rc { opacity: 1; transform: rotate(var(--rot)); transition: none; } }
.rc-stamp { position: absolute; left: 12px; top: 112px; z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; border: 2.5px solid rgba(18,128,90,.75); color: #12805A; font: 600 10px var(--mono); letter-spacing: .04em; transform: rotate(-14deg); text-align: center; line-height: 1.1; background: rgba(246,243,236,.6); }
@media (max-width: 899px) { .rc-stamp { width: 70px; height: 70px; left: 6px; } }
.rc-stamp { background: rgba(246,243,236,.94); }
.rc-stack .r2 .rc-stamp { background: rgba(232,230,224,.96); } .rc-stack .r1 .rc-stamp { background: rgba(214,212,206,.97); }

/* 20. Real rubber stamps */
.rc-stamp { width: 104px !important; height: 104px !important; border: 0 !important; background: none !important; padding: 0; display: block !important; color: #1F6E52; mix-blend-mode: multiply; opacity: .82;
  -webkit-mask: radial-gradient(circle at 30% 40%, #000 60%, transparent 61%) , repeating-radial-gradient(circle at 70% 30%, #000 0 2px, rgba(0,0,0,.75) 2px 3px); -webkit-mask-composite: source-over; }
.rc-stamp svg, .rc-innie svg { width: 100%; height: 100%; overflow: visible; }
.rc-stamp .o, .rc-innie .o { fill: none; stroke: currentColor; stroke-width: 3; }
.rc-innie .o.thin { stroke-width: 1.5; }
.rc-stamp .ring, .rc-innie .ring { font: 700 8.6px var(--mono); letter-spacing: .12em; fill: currentColor; }
.rc-stamp .num { font: 800 28px var(--sans); fill: currentColor; text-anchor: middle; }
.rc-stamp .sub { font: 700 8px var(--mono); letter-spacing: .1em; fill: currentColor; text-anchor: middle; }
.rc-innie { width: 116px; height: 116px; margin: 14px auto 0; color: #151515; transform: rotate(-8deg); filter: grayscale(1) contrast(1.15); opacity: .9; }
.rc-innie .ln { stroke: #151515; stroke-width: 2; stroke-linecap: round; }
.rc-innie .ring { font-size: 8.2px; }
.rc-stack { min-height: 680px; }
@media (max-width: 899px) { .rc-stack { min-height: 720px; } .rc-stamp { width: 80px !important; height: 80px !important; } }
.rc-total b { font-size: 26px !important; }
#work .cs-meta { margin: -4px 0 0; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--dim); }
/* wealth case study: cover and quote on top, the three blocks in a row below */
#work .ws-case .folio-body { display: flex; flex-direction: column-reverse; gap: 14px; }
#work .ws-case .folio-body > div:not(.folio-left) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
#work .ws-case .folio-body > div:not(.folio-left) .folio-media { grid-row: span 2; }
#work .ws-case .said-q { margin: 0 !important; font-size: 17px; }
#work .ws-case .hp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#work .ws-case .hp-steps li { padding: 12px 12px 12px 28px; }
#work .ws-case .hp-steps li::before { left: 12px !important; top: 18px !important; }
#work .ws-case .hp-steps span { font-size: 12.5px; line-height: 1.45; }
@media (max-width: 760px) { #work .ws-case .hp-steps { grid-template-columns: 1fr; } #work .ws-case .folio-body > div:not(.folio-left) { grid-template-columns: 1fr; } }
#work .ws-case .folio-body > div:not(.folio-left) { align-items: stretch; row-gap: 8px; }
#work .ws-case .said-q { align-self: end; } #work .ws-case .said-w { align-self: start; margin: 0; }
/* Agents hero: no grid lines behind the headline */
.ag-hero-grid { display: none !important; }
/* Opinions: one-line description under the post title */
.post-d { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--dim); }
/* the Delta of grief cover is a wide white illustration: show it whole */
.post-img[src$="delta-of-grief.webp"] { object-fit: contain !important; background: #fff; }
