/* ============================================================
   THEME TOKENS  (palette sourced from greyfeathers.io)
============================================================ */
:root, [data-theme="light"] {
  --bg:        #E3E1D9;
  --bg-2:      #ECEAE2;
  --surface:   #F5F3ED;
  --text:      #16150F;
  --muted:     #6A6960;
  --faint:     #9A968B;
  --line:      #CBC8BE;

  --accent:    #1A5438;
  --accent-soft:#CDDFD4;
  --on-accent: #EFF4F0;

  --panel-bg:  #141310;
  --panel-text:#E9E6DD;
  --panel-muted:#A29E92;
  --panel-line:#2C2A25;
  --panel-accent:#CDDFD4;

  --green-bg:  #1A5438;
  --green-text:#EFF4F0;
  --green-muted:#CDDFD4;
  --green-line:rgba(239,244,240,0.20);

  --shadow:    0 18px 50px rgba(20,19,16,0.13);
  --grain:     0.04;
}
[data-theme="dark"] {
  --bg:        #100F0C;
  --bg-2:      #16140F;
  --surface:   #1B1915;
  --text:      #E8E4DA;
  --muted:     #9C988C;
  --faint:     #6E6A60;
  --line:      #2B2924;

  --accent:    #62AC82;
  --accent-soft:#9FC9AE;
  --on-accent: #0C1410;

  --panel-bg:  #1C1B16;
  --panel-text:#E9E6DD;
  --panel-muted:#9C988C;
  --panel-line:#322F29;
  --panel-accent:#9FC9AE;

  --green-bg:  #16402B;
  --green-text:#EFF4F0;
  --green-muted:#A9CDB7;
  --green-line:rgba(239,244,240,0.16);

  --shadow:    0 18px 50px rgba(0,0,0,0.55);
  --grain:     0.05;
}

:root {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:    'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;
  --maxw: 1340px;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html, body { overflow-x: hidden; max-width: 100vw; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem; line-height: 1.6; font-weight: 400;
  transition: background 0.5s ease, color 0.5s ease;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }

body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   PRIMITIVES
============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
}
.mono-a { color: var(--accent); }

.display { font-family: var(--font-display); font-weight: 300; line-height: 1; letter-spacing: -0.01em; }
.display em { font-style: italic; }

.rule { height: 1px; background: var(--line); border: 0; }

.tlink {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.6em; color: var(--text);
  position: relative; padding-bottom: 4px;
}
.tlink::after { content:''; position:absolute; left:0; bottom:0; width:100%; height:1px; background:currentColor; transform:scaleX(1); transform-origin:right; transition:transform .45s cubic-bezier(.2,.8,.2,1); }
.tlink:hover::after { transform:scaleX(0); transform-origin:left; }
.tlink .ar { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.tlink:hover .ar { transform: translateX(5px); }

.pill {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 0.95em 1.7em; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  transition: background .35s ease, color .35s ease, transform .35s ease, box-shadow .35s ease;
  white-space: nowrap; cursor: pointer; border: 1px solid transparent;
}
.pill:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); box-shadow: var(--shadow); }
.pill .ar { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.pill:hover .ar { transform: translateX(5px); }
.pill--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.pill--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill--soft { background: var(--panel-accent); color: var(--panel-bg); }
.pill--soft:hover { background: var(--green-text); color: var(--green-bg); }

/* ============================================================
   TOP UTILITY BAR
============================================================ */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem var(--gutter); }
.topbar .mono { font-size: 0.66rem; }
.topbar .dot { color: var(--accent); }

/* ============================================================
   NAV
============================================================ */
.nav { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .4s ease, background .4s ease, padding .4s ease; }
.nav.stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 1.1rem; padding-bottom: 1.1rem; transition: padding .4s ease; }
.nav.stuck .wrap { padding-top: 0.8rem; padding-bottom: 0.8rem; }

.brand { display: flex; align-items: baseline; gap: 0.5rem; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.01em; }
.brand .idx { font-family: var(--font-mono); font-size: 0.6rem; color: var(--accent); letter-spacing: 0.05em; transform: translateY(-0.6em); }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a { font-family: var(--font-mono); font-size: 0.73rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); transition: color .3s ease; }
.nav-links a .n { color: var(--accent); margin-right: 0.4em; font-size: 0.6rem; }
.nav-links a:hover, .nav-links a.current { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 1.2rem; }

/* THEME TOGGLE */
.theme-toggle {
  width: 58px; height: 30px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); position: relative; cursor: pointer; flex-shrink: 0;
  transition: background .4s ease, border-color .4s ease;
}
.theme-toggle .knob {
  position: absolute; top: 50%; left: 3px; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; transition: left .4s cubic-bezier(.6,0,.2,1), background .4s ease;
  color: var(--on-accent); font-size: 11px;
}
[data-theme="dark"] .theme-toggle .knob { left: 33px; }
.theme-toggle .ic-sun, .theme-toggle .ic-moon { position: absolute; transition: opacity .3s ease; }
.theme-toggle .ic-moon { opacity: 0; }
[data-theme="dark"] .theme-toggle .ic-sun { opacity: 0; }
[data-theme="dark"] .theme-toggle .ic-moon { opacity: 1; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 4px; }
.burger span { width: 26px; height: 1.5px; background: var(--text); transition: all .3s ease; }
.burger.open span:nth-child(1){ transform: rotate(45deg) translate(4px,4px); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: rotate(-45deg) translate(4px,-4px); }

.mobile { position: fixed; inset: 0; z-index: 999; background: var(--panel-bg); color: var(--panel-text); transform: translateY(-100%); transition: transform .6s cubic-bezier(.7,0,.2,1); display: flex; flex-direction: column; justify-content: center; padding: var(--gutter); }
.mobile.open { transform: translateY(0); }
.mobile a.m-link { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem,10vw,3.6rem); line-height: 1.18; color: var(--panel-text); display: flex; align-items: baseline; gap: 1rem; }
.mobile a.m-link .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--panel-accent); }
.mobile .m-foot { margin-top: 2.4rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

/* ============================================================
   HERO  (homepage)
============================================================ */
.hero { padding-top: clamp(2.5rem,7vw,6rem); padding-bottom: clamp(2rem,5vw,4rem); position: relative; }

.hero-eyebrow { display: flex; align-items: center; gap: 0.8rem; margin-bottom: clamp(1.6rem,4vw,3rem); }
.hero-eyebrow .bar { width: 40px; height: 1px; background: var(--accent); }

.hero-h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.85rem,8.5vw,7.6rem); line-height: 0.95; letter-spacing: -0.02em; max-width: 15ch; }
.hero-h1 em { font-style: italic; }
.hero-h1 .accent { color: var(--accent); }

.line-mask { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line-mask > span { display: block; transform: translateY(106%); transition: transform .95s cubic-bezier(.16,1,.3,1); }
.line-mask.in > span { transform: translateY(0); }

.hero-lower { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem,6vw,5rem); align-items: end; margin-top: clamp(2.4rem,6vw,4rem); }
.hero-sub { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem,2.4vw,2rem); line-height: 1.28; color: var(--text); max-width: 24ch; }
.hero-sub em { font-style: italic; color: var(--accent); }
.hero-cta-row { display: flex; align-items: center; gap: 1.4rem; justify-self: end; flex-wrap: wrap; }

/* LEDGER */
.ledger { margin-top: clamp(3rem,7vw,5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); }
.ledger-cell { padding: clamp(1.5rem,3vw,2.4rem) 1.5rem clamp(1.5rem,3vw,2.4rem) 0; border-right: 1px solid var(--line); }
.ledger-cell:last-child { border-right: 0; }
.ledger-cell .num { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.8rem,5.2vw,4.6rem); line-height: 0.86; letter-spacing: -0.02em; display: flex; align-items: baseline; }
.ledger-cell .num .suf { font-size: 0.4em; color: var(--accent); margin-left: 0.2em; font-family: var(--font-mono); letter-spacing: 0; }
.ledger-cell .cap { margin-top: 1rem; max-width: 22ch; }

/* ============================================================
   MARQUEE
============================================================ */
.marquee { border-bottom: 1px solid var(--line); overflow: hidden; padding: 1.05rem 0; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group .item { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: 1.55rem; color: var(--text); padding: 0 1.7rem; white-space: nowrap; }
.marquee-group .sep { color: var(--accent); font-size: 0.7rem; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============================================================
   SECTION SCAFFOLD
============================================================ */
section.block { padding-top: clamp(4.5rem,11vw,9.5rem); padding-bottom: clamp(4.5rem,11vw,9.5rem); }
.sec-head { display: grid; grid-template-columns: minmax(0,0.34fr) minmax(0,1fr); gap: clamp(1.5rem,4vw,3.5rem); align-items: start; margin-bottom: clamp(2.6rem,6vw,4.5rem); }
.sec-index { display: flex; flex-direction: column; gap: 0.6rem; }
.sec-index .big { font-family: var(--font-mono); font-size: 0.74rem; color: var(--accent); letter-spacing: 0.06em; }
.sec-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.3rem,5.6vw,4.8rem); line-height: 0.98; letter-spacing: -0.02em; }
.sec-title em { font-style: italic; }
.sec-lead { font-size: clamp(1.05rem,1.5vw,1.3rem); line-height: 1.5; color: var(--muted); max-width: 36ch; margin-top: 1.4rem; }
.sec-head .head-link { margin-top: 1.4rem; }

/* ============================================================
   PROBLEM
============================================================ */
.problem-statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem,4.2vw,3.5rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 22ch; }
.problem-statement em { font-style: italic; color: var(--accent); }

.pain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.2rem,2.5vw,2rem); margin-top: clamp(3rem,6vw,5rem); }
.pain-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.8rem,3vw,2.6rem); position: relative; overflow: hidden; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .4s ease; }
.pain-card:nth-child(2) { margin-top: clamp(0rem,4vw,3rem); }
.pain-card:nth-child(3) { margin-top: clamp(0rem,8vw,6rem); }
.pain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.pain-card .qmark { font-family: var(--font-display); font-style: italic; font-size: 5rem; line-height: 0.5; color: var(--accent); opacity: 0.18; height: 2rem; display: block; }
.pain-card .p-idx { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); display: block; margin-bottom: 1.4rem; }
.pain-card .p-text { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(1.35rem,2.4vw,1.9rem); line-height: 1.16; margin-bottom: 1.6rem; }
.pain-card .p-tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

/* ============================================================
   SOLUTIONS — bento grid on dark panel
============================================================ */
.panel-section { background: var(--panel-bg); color: var(--panel-text); transition: background .5s ease; }
.panel-section .sec-index .big, .panel-section .mono-a { color: var(--panel-accent); }
.panel-section .sec-title { color: var(--panel-text); }
.panel-section .sec-lead { color: var(--panel-muted); }

.bento { display: grid; grid-template-columns: repeat(6,1fr); gap: clamp(0.9rem,1.6vw,1.3rem); }
.bento-cell {
  border: 1px solid var(--panel-line); border-radius: 6px; padding: clamp(1.8rem,3vw,2.8rem);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--panel-text) 3%, transparent);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s ease, background .4s ease;
  min-height: clamp(220px, 26vw, 320px);
}
.bento-cell:hover { transform: translateY(-5px); border-color: var(--panel-accent); background: color-mix(in srgb, var(--panel-text) 6%, transparent); }
.bento-cell.c-a { grid-column: span 4; }
.bento-cell.c-b { grid-column: span 2; }
.bento-cell.c-c { grid-column: span 3; }
.bento-cell.c-d { grid-column: span 3; }
.bento-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.bento-num { font-family: var(--font-mono); font-size: 0.74rem; color: var(--panel-accent); }
.bento-ar { font-family: var(--font-mono); color: var(--panel-accent); opacity: 0; transform: translate(-6px,6px); transition: opacity .4s ease, transform .4s ease; }
.bento-cell:hover .bento-ar { opacity: 1; transform: translate(0,0); }
.bento-name { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem,3vw,2.7rem); line-height: 1.0; margin-top: 2.5rem; margin-bottom: 1rem; }
.bento-name em { font-style: italic; }
.bento-desc { color: var(--panel-muted); font-size: clamp(0.95rem,1.2vw,1.08rem); line-height: 1.55; max-width: 48ch; }

/* ============================================================
   PROCESS — sticky pinned aside + stepped list
============================================================ */
.proc-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.proc-aside { position: sticky; top: 120px; }
.proc-aside .pa-num { font-family: var(--font-display); font-weight: 300; font-size: clamp(7rem,16vw,15rem); line-height: 0.8; color: var(--accent); letter-spacing: -0.04em; transition: opacity .35s ease, transform .35s ease; }
.proc-aside .pa-label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 1.2rem; }
.proc-aside .pa-bar { margin-top: 1.5rem; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.proc-aside .pa-bar i { display: block; height: 100%; width: 25%; background: var(--accent); transition: width .5s cubic-bezier(.4,0,.2,1); }

.proc-steps { display: flex; flex-direction: column; }
.proc-step { padding: clamp(2rem,4vw,3rem) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem,3vw,2.4rem); align-items: start; transition: opacity .4s ease; opacity: 0.45; }
.proc-step:first-child { border-top: 1px solid var(--line); }
.proc-step.active { opacity: 1; }
.proc-step .ps-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--accent); margin-top: 0.6rem; transition: background .4s ease; }
.proc-step.active .ps-dot { background: var(--accent); }
.proc-step .ps-week { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }
.proc-step .ps-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem,3.2vw,2.6rem); line-height: 1.05; margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.proc-step .ps-desc { color: var(--muted); font-size: clamp(0.98rem,1.2vw,1.1rem); line-height: 1.6; max-width: 42ch; }

/* ============================================================
   WORK — large editorial case studies (homepage featured)
============================================================ */
.work-section { background: var(--bg-2); transition: background .5s ease; }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,4.5rem); align-items: center; padding: clamp(2.5rem,6vw,5rem) 0; border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case.flip .case-media { order: 2; }
.case-media { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/3; }
.case-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) contrast(1.02); transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .6s ease; }
.case:hover .case-media img { transform: scale(1.05); filter: grayscale(0) contrast(1.05); }
.case-media .badge { position: absolute; top: 1rem; left: 1rem; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.5em 0.9em; border-radius: 999px; }
.case-body .c-client { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.6rem; }
.case-body .c-client .name { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.case-body .c-quote { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem,3.5vw,3rem); line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 2rem; }
.case-body .c-quote em { font-style: italic; color: var(--accent); }
.case-body .c-quote .qm { color: var(--accent); }
.case-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.case-meta .m-k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.case-meta .m-v { font-size: 0.92rem; line-height: 1.45; color: var(--text); }

/* ============================================================
   WHY — forest green section
============================================================ */
.why-section { background: var(--green-bg); color: var(--green-text); transition: background .5s ease; }
.why-section .sec-index .big { color: var(--green-muted); }
.why-section .sec-title { color: var(--green-text); }
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem,5vw,5rem); align-items: start; }
.why-aside { position: sticky; top: 120px; }
.why-aside .big-quote { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(2rem,4vw,3.4rem); line-height: 1.1; }
.why-aside .big-quote .hl { color: var(--green-bg); background: var(--green-text); padding: 0 0.15em; border-radius: 2px; font-style: normal; }
.why-aside .attrib { margin-top: 2rem; }
.why-aside .attrib .mono { color: var(--green-muted); }
.why-list { border-top: 1px solid var(--green-line); }
.why-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem,3vw,2rem); padding: clamp(1.5rem,3vw,2.3rem) 0; border-bottom: 1px solid var(--green-line); transition: padding-left .5s cubic-bezier(.2,.8,.2,1); }
.why-row:hover { padding-left: 0.8rem; }
.why-row .w-idx { font-family: var(--font-mono); font-size: 0.76rem; color: var(--green-muted); padding-top: 0.4rem; }
.why-row .w-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem,2.8vw,2.2rem); line-height: 1.06; margin-bottom: 0.5rem; }
.why-row .w-desc { color: var(--green-muted); font-size: clamp(0.95rem,1.2vw,1.05rem); line-height: 1.55; max-width: 44ch; }

/* ============================================================
   CTA — dark panel
============================================================ */
.cta-section { background: var(--panel-bg); color: var(--panel-text); text-align: center; transition: background .5s ease; }
.cta-section .label { color: var(--panel-accent); display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 2rem; }
.cta-section .label .bar { width: 30px; height: 1px; background: var(--panel-accent); }
.cta-h { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem,7.5vw,6.2rem); line-height: 0.98; letter-spacing: -0.02em; max-width: 17ch; margin: 0 auto 2rem; }
.cta-h em { font-style: italic; color: var(--panel-accent); }
.cta-body { font-size: clamp(1.05rem,1.5vw,1.25rem); line-height: 1.6; color: var(--panel-muted); max-width: 56ch; margin: 0 auto 3rem; }
.cta-foot { margin-top: 3rem; font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(1.15rem,2vw,1.7rem); color: var(--panel-accent); }

/* ============================================================
   SUB-PAGE HERO  (case studies / blog)
============================================================ */
.page-hero { padding-top: clamp(3rem,8vw,6rem); padding-bottom: clamp(1.5rem,4vw,3rem); }
.page-hero .ph-eyebrow { display: flex; align-items: center; gap: 0.8rem; margin-bottom: clamp(1.5rem,4vw,2.5rem); }
.page-hero .ph-eyebrow .bar { width: 40px; height: 1px; background: var(--accent); }
.page-hero h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.8rem,8vw,6.6rem); line-height: 0.95; letter-spacing: -0.02em; max-width: 16ch; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .ph-desc { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem,2.4vw,2rem); line-height: 1.3; color: var(--muted); max-width: 36ch; margin-top: 1.6rem; }

/* ============================================================
   CASE STUDY GRID  (case-studies page)
============================================================ */
.cs-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(2rem,4vw,3.5rem) clamp(1.5rem,3vw,2.5rem); border-top: 1px solid var(--line); padding-top: clamp(2.5rem,5vw,4rem); }
.cs-card { display: flex; flex-direction: column; }
.cs-media { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 16/10; margin-bottom: 1.6rem; }
.cs-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) contrast(1.02); transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .6s ease; }
.cs-card:hover .cs-media img { transform: scale(1.05); filter: grayscale(0) contrast(1.04); }
.cs-media .num { position: absolute; top: 1rem; left: 1rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--on-accent); background: var(--accent); padding: 0.45em 0.85em; border-radius: 999px; }
.cs-cat { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.cs-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem,2.9vw,2.5rem); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 1rem; transition: color .3s ease; }
.cs-card:hover .cs-title { color: var(--accent); }
.cs-desc { color: var(--muted); font-size: clamp(0.98rem,1.2vw,1.08rem); line-height: 1.62; margin-bottom: 1.5rem; flex: 1; }
.cs-readmore { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); display: inline-flex; align-items: center; gap: 0.5em; }
.cs-readmore .ar { color: var(--accent); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.cs-card:hover .cs-readmore .ar { transform: translateX(5px); }

/* ============================================================
   BLOG  (blog page)
============================================================ */
.blog-featured { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(2rem,4vw,3.5rem) 0; margin-bottom: clamp(2.5rem,5vw,4rem); }
.blog-featured .bf-media { overflow: hidden; border-radius: 4px; aspect-ratio: 16/10; order: 2; }
.blog-featured .bf-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) contrast(1.02); transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .6s ease; }
.blog-featured:hover .bf-media img { transform: scale(1.04); filter: grayscale(0); }
.bf-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; }
.bf-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 0.4em 0.85em; border-radius: 999px; }
.bf-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem,4vw,3.4rem); line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 1.4rem; }
.bf-excerpt { color: var(--muted); font-size: clamp(1.02rem,1.4vw,1.2rem); line-height: 1.62; margin-bottom: 1.8rem; max-width: 52ch; }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.8rem,3vw,2.6rem); }
.blog-card { display: flex; flex-direction: column; }
.bc-media { overflow: hidden; border-radius: 4px; aspect-ratio: 16/10; margin-bottom: 1.4rem; }
.bc-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) contrast(1.02); transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .6s ease; }
.blog-card:hover .bc-media img { transform: scale(1.05); filter: grayscale(0); }
.bc-meta { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.bc-tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.bc-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.bc-read { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.bc-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem,2vw,1.75rem); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 0.9rem; transition: color .3s ease; }
.blog-card:hover .bc-title { color: var(--accent); }
.bc-excerpt { color: var(--muted); font-size: 0.95rem; line-height: 1.6; flex: 1; margin-bottom: 1.3rem; }

/* ============================================================
   FOOTER
============================================================ */
.footer { padding-top: clamp(3rem,6vw,5rem); padding-bottom: 2.5rem; }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.foot-brand .brand { font-size: 2.3rem; margin-bottom: 1rem; }
.foot-brand p { color: var(--muted); max-width: 32ch; font-size: 0.96rem; line-height: 1.6; }
.foot-col h4 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.3rem; }
.foot-col a { display: block; color: var(--text); font-size: 0.98rem; padding: 0.35rem 0; transition: color .25s ease, transform .25s ease; }
.foot-col a:hover { color: var(--accent); transform: translateX(3px); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; flex-wrap: wrap; gap: 1rem; }
.foot-bottom .mono { font-size: 0.66rem; }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1.15s cubic-bezier(.22,1,.36,1), transform 1.15s cubic-bezier(.22,1,.36,1); will-change: opacity, transform; }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .12s; } .rv-d2 { transition-delay: .24s; } .rv-d3 { transition-delay: .36s; } .rv-d4 { transition-delay: .48s; }
.grow { transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(.22,1,.36,1); }
.grow.in { transform: scaleX(1); }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ============================================================
   ARTICLE / PROSE  (blog post pages)
============================================================ */
.article-hero { padding-top: clamp(2.5rem,6vw,4.5rem); padding-bottom: clamp(1.5rem,3vw,2.5rem); }
.article-back { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: clamp(1.5rem,3vw,2.4rem); transition: color .3s ease, gap .3s ease; }
.article-back:hover { color: var(--accent); gap: 0.8em; }
.article-tagrow { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.article-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 0.45em 0.9em; border-radius: 999px; }
.article-meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.article-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem,6vw,5.1rem); line-height: 1.0; letter-spacing: -0.02em; max-width: 20ch; margin-bottom: clamp(2rem,4vw,3rem); }
.article-title em { font-style: italic; color: var(--accent); }
.article-cover { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 6px; filter: grayscale(0.22) contrast(1.02); }

.prose { max-width: 720px; margin: clamp(2.5rem,5vw,4rem) auto 0; }
.prose > * + * { margin-top: 1.5rem; }
.prose p { font-size: clamp(1.05rem,1.4vw,1.2rem); line-height: 1.78; color: var(--text); }
.prose .lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem,2.8vw,2.1rem); line-height: 1.34; color: var(--text); }
.prose .lead em { font-style: italic; color: var(--accent); }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.85rem,3.6vw,2.7rem); line-height: 1.08; letter-spacing: -0.01em; margin-top: clamp(2.5rem,5vw,3.6rem); }
.prose h2 em { font-style: italic; color: var(--accent); }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem,2.1vw,1.65rem); line-height: 1.16; margin-top: 2.4rem; }
.prose ul, .prose ol { padding-left: 0; margin-left: 0; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.prose ol { list-style: none; counter-reset: pr; }
.prose ol li { position: relative; padding-left: 2.4rem; counter-increment: pr; }
.prose ol li::before { content: counter(pr,decimal-leading-zero); position: absolute; left: 0; top: 0.15em; font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.prose li { font-size: clamp(1.02rem,1.3vw,1.15rem); line-height: 1.7; margin-top: 0.85rem; color: var(--text); }
.prose li strong { font-weight: 600; }
.prose strong { font-weight: 600; color: var(--text); }
.prose em { font-style: italic; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1.5rem; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.5rem,2.8vw,2.1rem); line-height: 1.3; color: var(--text); }
.prose a:not(.pill) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0.12em 0.42em; }
.prose pre { background: var(--panel-bg); color: var(--panel-text); border-radius: 6px; padding: 1.4rem 1.5rem; overflow-x: auto; }
.prose pre code { background: none; border: 0; color: inherit; padding: 0; font-size: 0.82rem; line-height: 1.65; }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 1.4rem 1.6rem; }
.prose .callout p { font-size: 1rem; line-height: 1.65; }
.prose .callout .ck { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.5rem; }
.article-foot { max-width: 720px; margin: clamp(3rem,6vw,5rem) auto 0; padding-top: clamp(2rem,4vw,3rem); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

/* MORE ARTICLES strip */
.more-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(1.5rem,3vw,2.5rem); border-top: 1px solid var(--line); padding-top: clamp(2.5rem,5vw,4rem); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .hero-lower { grid-template-columns: 1fr; align-items: start; gap: 2rem; }
  .hero-cta-row { justify-self: start; }
  .ledger { grid-template-columns: repeat(2,1fr); }
  .ledger-cell:nth-child(2){ border-right: 0; }
  .ledger-cell:nth-child(1),.ledger-cell:nth-child(2){ border-bottom: 1px solid var(--line); }
  .sec-head { grid-template-columns: 1fr; gap: 1rem; }
  .bento-cell.c-a, .bento-cell.c-b, .bento-cell.c-c, .bento-cell.c-d { grid-column: span 3; }
  .proc-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .proc-aside { position: static; display: flex; align-items: baseline; gap: 1.5rem; }
  .proc-aside .pa-num { font-size: clamp(4rem,12vw,7rem); }
  .proc-aside .pa-bar { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-aside { position: static; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .bf-media { order: 0; }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-right .pill { display: none; }
  .burger { display: flex; }
  .topbar .wrap .mono:last-child { display: none; }

  .hero-h1 { font-size: clamp(2.5rem,10vw,3.4rem); }
  .ledger { grid-template-columns: 1fr; }
  .ledger-cell { border-right: 0 !important; border-bottom: 1px solid var(--line); padding-right: 0; }
  .ledger-cell:last-child { border-bottom: 0; }

  .pain-grid { grid-template-columns: 1fr; }
  .pain-card:nth-child(2), .pain-card:nth-child(3) { margin-top: 0; }

  .bento { grid-template-columns: 1fr; }
  .bento-cell.c-a, .bento-cell.c-b, .bento-cell.c-c, .bento-cell.c-d { grid-column: span 1; }
  .bento-cell { min-height: auto; }

  .proc-step { grid-template-columns: 1fr; gap: 0.6rem; }
  .proc-step .ps-dot { display: none; }

  .case, .case.flip .case-media { grid-template-columns: 1fr; }
  .case.flip .case-media { order: 0; }
  .case-meta { grid-template-columns: 1fr; gap: 1rem; }

  .why-row { grid-template-columns: 1fr; gap: 0.4rem; }

  .cs-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .article-foot { flex-direction: column; align-items: flex-start; }

  .foot-top { grid-template-columns: 1fr; gap: 2rem; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .rv, .line-mask > span { opacity: 1 !important; transform: none !important; }
  .grow { transform: scaleX(1) !important; }
}

/* ============================================================
   ╔══════════════════════════════════════════════════════╗
   ║  UI/UX PRO MAX — DESIGN-SYSTEM ELEVATION LAYER         ║
   ║  Applies accessibility, real SVG icons, refined        ║
   ║  components, motion & contrast rules. Cascades last.   ║
   ╚══════════════════════════════════════════════════════╝
============================================================ */

/* —— Refined token set: layered shadows, radius scale, motion —— */
:root, [data-theme="light"] {
  --radius-sm: 6px;  --radius-md: 12px;  --radius-lg: 18px;  --radius-xl: 28px; --radius-full: 9999px;
  --shadow-card:  0 1px 2px rgba(20,19,16,.05), 0 8px 24px -12px rgba(20,19,16,.12);
  --shadow-hover: 0 2px 6px rgba(20,19,16,.06), 0 26px 50px -20px rgba(20,19,16,.26);
  --shadow-nav:   0 1px 0 var(--line), 0 12px 30px -22px rgba(20,19,16,.35);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --knob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Cpath d='M12 2v2.2M12 19.8V22M3.5 3.5l1.6 1.6M18.9 18.9l1.6 1.6M2 12h2.2M19.8 12H22M3.5 20.5l1.6-1.6M18.9 5.1l1.6-1.6'/%3E%3C/svg%3E");
}
[data-theme="dark"] {
  --shadow-card:  0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.65);
  --shadow-hover: 0 2px 8px rgba(0,0,0,.5), 0 30px 60px -22px rgba(0,0,0,.8);
  --shadow-nav:   0 1px 0 var(--line), 0 14px 34px -22px rgba(0,0,0,.7);
  --knob-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
}

/* —— ACCESSIBILITY (priority 1): visible focus, never trap —— */
a, button, input, .pill, .theme-toggle, .burger, .cs-card, .blog-card, .blog-featured { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
.pill:focus-visible, .theme-toggle:focus-visible, .burger:focus-visible,
.cs-card:focus-visible, .blog-card:focus-visible, .blog-featured:focus-visible,
.proc-step:focus-visible, .bento-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
[data-theme="dark"] a:focus-visible, [data-theme="dark"] button:focus-visible { outline-color: var(--accent-soft); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .8em 1.2em; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }

/* —— STYLE RULE: real SVG icons, no emoji glyphs —— */
.theme-toggle { border-width: 1px; }
.theme-toggle .knob > .ic-sun, .theme-toggle .knob > .ic-moon { display: none !important; }
.theme-toggle .knob::after {
  content: ''; width: 13px; height: 13px;
  background-color: var(--on-accent);
  -webkit-mask: var(--knob-icon) center / contain no-repeat;
  mask: var(--knob-icon) center / contain no-repeat;
}
/* marquee separator → tiny diamond glyph rendered as SVG mask */
.marquee-group .sep { font-size: 0 !important; display: inline-flex; width: 22px; align-items: center; justify-content: center; }
.marquee-group .sep::after {
  content: ''; width: 7px; height: 7px; background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l1.4 3.6L10 5 6.4 6.4 5 10 3.6 6.4 0 5l3.6-1.4z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l1.4 3.6L10 5 6.4 6.4 5 10 3.6 6.4 0 5l3.6-1.4z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* status dot → crisp circle */
.topbar .dot { font-size: 0; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: .15em; vertical-align: baseline; }

/* —— NAV refinement: depth on scroll, active indicator —— */
.nav.stuck { box-shadow: var(--shadow-nav); }
.nav-links a { padding-bottom: 4px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.current::after { transform: scaleX(1); }
.nav-links a.current { color: var(--text); }

/* —— BUTTONS: refined, springy micro-interaction (priority 2/7) —— */
.pill { border-radius: var(--radius-full); transition: background .25s ease, color .25s ease, transform .25s var(--ease-spring), box-shadow .25s ease; }
.pill:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.985); }

/* —— CARDS: unified elevation system + springy lift —— */
.pain-card, .bento-cell { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transition: transform .28s var(--ease-out), box-shadow .28s ease, border-color .28s ease, background .28s ease; }
.pain-card:hover, .bento-cell:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.cs-media, .bf-media, .bc-media, .case-media, .article-cover { border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.pain-card .qmark { opacity: .14; }

/* —— SECTION HEADERS: oversized chapter numeral for editorial rhythm —— */
.sec-index .big { position: relative; padding-left: 0; }
.sec-index::before {
  content: ''; display: block; width: 26px; height: 26px; margin-bottom: .9rem;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .75;
}
.panel-section .sec-index::before, .why-section .sec-index::before { background-color: var(--panel-accent); }

/* —— MOTION: smooth reveals + per-item stagger (set via JS) —— */
.rv { transition-duration: 1s; transition-timing-function: var(--ease-out); }
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.stagger.in > * { opacity: 1; transform: none; }

/* —— PERFORMANCE: reserve space, smooth media load (priority 3) —— */
img { background: color-mix(in srgb, var(--muted) 12%, transparent); }
.case-media img, .cs-media img, .bf-media img, .bc-media img { background: none; }

/* —— Tighten body measure & rhythm for readability (priority 5/6) —— */
.hero-sub, .sec-lead, .bento-desc, .pain-card .p-text, .ps-desc, .case-body .c-quote, .why-row .w-desc, .bf-excerpt, .bc-excerpt, .cs-desc { text-wrap: pretty; }
.hero-h1, .sec-title, .cta-h, .article-title, .bf-title { text-wrap: balance; }

/* ============================================================
   KINETIC MOTION PACK  (steven.com-inspired award-site feel)
   Velocity-reactive marquee · parallax media · magnetic CTAs ·
   scroll-progress. Transform/opacity only; reduced-motion safe.
============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1500; pointer-events: none; background: transparent; }
.scroll-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; will-change: transform; }
.pill { will-change: transform; }

@media (prefers-reduced-motion: no-preference) {
  /* Parallax + composed hover-zoom on large editorial imagery */
  .case-media img, .bf-media img, .article-cover {
    --py: 0px;
    transform: translate3d(0, var(--py), 0) scale(1.08);
    transition: transform .22s var(--ease-out), filter .6s ease;
    will-change: transform;
  }
  .case:hover .case-media img { transform: translate3d(0, var(--py), 0) scale(1.14); }
  .blog-featured:hover .bf-media img { transform: translate3d(0, var(--py), 0) scale(1.14); }

  /* Scroll-velocity reactive marquee — leans with momentum */
  .marquee-group { transform: skewX(var(--mskew, 0deg)); transition: transform .1s linear; }
}

/* ============================================================
   BRAND — GF monogram + greyfeathers wordmark
============================================================ */
.brand { align-items: center; gap: 0.6rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 1.9em; height: 1.9em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.52em;
  line-height: 1; letter-spacing: -0.03em; font-style: normal;
  color: var(--on-accent); background: var(--accent);
  border-radius: 4px; flex-shrink: 0;
  transition: transform .4s var(--ease-spring), background .3s ease;
}
.brand:hover .brand-mark { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
[data-theme="dark"] .brand-mark { color: #0C1410; }

/* ============================================================
   FIXES — topbar vertical alignment · wordmark-only lockup
============================================================ */
.topbar .mono { display: inline-flex; align-items: center; }
.topbar .dot { vertical-align: middle; }
.brand { gap: 0.5rem; }
.topbar .mono { gap: 0.5em; }
.topbar .dot { margin-right: 0; }

/* ============================================================
   FIX — ledger cells: left padding off the dividers
============================================================ */
.ledger-cell { padding-left: clamp(1.25rem, 2.5vw, 2.25rem); }
.ledger-cell:first-child { padding-left: 0; }
@media (max-width: 1024px) {
  .ledger-cell:nth-child(odd) { padding-left: 0; }
  .ledger-cell:nth-child(even) { padding-left: clamp(1.25rem, 4vw, 2rem); }
}
@media (max-width: 760px) {
  .ledger-cell { padding-left: 0; }
}

/* ============================================================
   GSAP — when active, GSAP owns reveal transitions (avoid CSS fighting)
============================================================ */
html.gsap-on .rv, html.gsap-on .grow { transition: none !important; }
