/* ═══════════════════════════════════════════════════════════════════════
   jdnavia.com · Juan Navia / Forward Deployed GTM @ Handle
   Type system encodes the duality:
     serif  = commercial (relationship, narrative, human)
     mono   = technical  (system, data, execution)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Palettes ────────────────────────────────────────────────────────── */

:root,
[data-palette="signal"] {
  --bg:        #FAFAF9;
  --bg-sunk:   #F2F2F0;
  --fg:        #0A0A0A;
  --muted:     #6B6F72;
  --line:      #E2E2DE;
  --line-soft: #EDEDEA;

  --accent:      #B2FD41;
  --accent-soft: #E0FEA2;
  --accent-ink:  #0A0A0A;
  --accent-text: #4C7A00;   /* accent, darkened for legible text on light bg */

  --i-bg:      #0A0A0A;
  --i-sunk:    #131414;
  --i-fg:      #F4F5F1;
  --i-muted:   #8B8F8A;
  --i-line:    #24261F;
}

[data-palette="ledger"] {
  --bg:        #F7F5EF;
  --bg-sunk:   #EFEDE4;
  --fg:        #14150F;
  --muted:     #6E6B5F;
  --line:      #E0DDD0;
  --line-soft: #EAE7DC;

  --accent:      #9BE015;
  --accent-soft: #DFF3A8;
  --accent-ink:  #14150F;
  --accent-text: #4A6B00;

  --i-bg:      #191D27;
  --i-sunk:    #212633;
  --i-fg:      #F2F1EA;
  --i-muted:   #8D93A0;
  --i-line:    #2C3241;
}

[data-palette="night"] {
  --bg:        #0A0A0A;
  --bg-sunk:   #101110;
  --fg:        #F3F4F0;
  --muted:     #8A8E88;
  --line:      #232520;
  --line-soft: #1A1C18;

  --accent:      #B2FD41;
  --accent-soft: #E0FEA2;
  --accent-ink:  #0A0A0A;
  --accent-text: #C4FE72;

  --i-bg:      #14170F;
  --i-sunk:    #1A1E13;
  --i-fg:      #F3F4F0;
  --i-muted:   #8F958A;
  --i-line:    #2A2F20;
}

/* ── Tokens ──────────────────────────────────────────────────────────── */

:root {
  --serif: "Sentient", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gut: clamp(1.25rem, 5vw, 4.5rem);
  --pad-y: clamp(5.5rem, 12vw, 11rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── Reset & base ────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.62;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; }
i, em { font-style: italic; }
img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: fixed;
  top: .5rem; left: .5rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--fg);
  color: var(--bg);
  font: 500 .75rem/1 var(--mono);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

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

/* ── Shared type ─────────────────────────────────────────────────────── */

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font: 500 .6875rem/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tick {
  width: 6px; height: 6px;
  margin-top: .45em;
  flex: 0 0 auto;
  background: var(--accent);
  border-radius: 1px;
}

.h2 {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -.022em;
  text-wrap: balance;
  max-width: 20ch;
}
.h2--wide { max-width: 26ch; }

.lead {
  margin-top: 1.75rem;
  max-width: 62ch;
  font-size: clamp(1.0625rem, 1rem + .45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--fg);
}

.accent-line {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(to top,
    transparent 0 .04em,
    var(--accent-soft) .04em .38em,
    transparent .38em);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 1s var(--ease) .25s;
}
.accent-line.in { background-size: 100% 100%; }

/* on dark, a highlight band goes muddy, so underline instead */
.inverse .accent-line {
  background-image: linear-gradient(to top, var(--accent) 0 2px, transparent 2px);
}

/* commercial / technical voices */
.c { font-family: var(--serif); font-weight: 300; }
.t { font-family: var(--mono); font-weight: 400; letter-spacing: -.02em; }

/* inline links (Proactivos, etc.) */
.ln {
  border-bottom: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.ln:hover { border-bottom-color: var(--accent); }

/* ── Image slots ─────────────────────────────────────────────────────
   Empty by design: each renders nothing until an <img> is dropped in. */

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-sunk);
}
.shot:empty { display: none; }
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot--portrait { aspect-ratio: 4 / 5; }
.shot--portrait img { object-position: center 22%; }

/* the hero portrait is an identity marker, not a banner: keep it small
   enough that it never outgrows the column beside it */
.hero__side .shot--portrait { max-width: 190px; margin-left: auto; }
@media (max-width: 939px) {
  .hero__side .shot--portrait { max-width: 148px; margin-left: 0; }
}
.shot--wide     { aspect-ratio: 16 / 9; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.shot--ui       { aspect-ratio: 4 / 3; }
.shot--band     { aspect-ratio: 21 / 9; margin-top: clamp(2rem, 4vw, 3rem); }

/* ── Top bar ─────────────────────────────────────────────────────────── */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem var(--gut);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background-color .5s var(--ease);
}
.topbar.stuck { border-bottom-color: var(--line); }

.mark {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: 500 .8125rem/1 var(--mono);
  letter-spacing: .02em;
}
.mark__dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform .4s var(--ease);
}
.mark:hover .mark__dot { transform: translateY(-3px) scale(1.3); }

.topbar__target {
  margin-left: auto;
  font: 400 .6875rem/1.4 var(--mono);
  letter-spacing: .06em;
  color: var(--muted);
  text-align: right;
}
.topbar__label {
  display: inline-block;
  margin-right: .4rem;
  padding: .1rem .38rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 2px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .625rem;
}

.lang {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: .38rem .62rem;
  border-radius: 999px;
  font: 500 .6875rem/1 var(--mono);
  letter-spacing: .08em;
  color: var(--muted);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lang__btn:hover { color: var(--fg); }
.lang__btn.is-on {
  background: var(--fg);
  color: var(--bg);
}

.topbar__cta {
  flex: 0 0 auto;
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 .75rem/1 var(--mono);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.topbar__cta:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

@media (max-width: 860px) {
  .topbar { gap: .75rem; }
  .topbar__target { font-size: .625rem; max-width: 11rem; }
  .topbar__label { display: none; }
  .topbar__cta { display: none; }
  .lang__btn { padding: .35rem .5rem; font-size: .625rem; }
}

/* ── Section rail ────────────────────────────────────────────────────── */

.rail {
  position: fixed;
  left: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
}
.rail ul { display: grid; gap: .85rem; }
.rail a {
  display: flex;
  align-items: center;
  gap: .55rem;
  font: 400 .625rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .5;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.rail a i {
  display: block;
  width: 14px; height: 1px;
  background: currentColor;
  transition: width .4s var(--ease), background-color .3s var(--ease);
}
.rail a:hover { opacity: 1; }
.rail a.on { opacity: 1; color: var(--fg); }
.rail a.on i { width: 26px; background: var(--accent); }

.rail--inv a { color: var(--i-muted); }
.rail--inv a.on { color: var(--i-fg); }

@media (min-width: 1340px) { .rail { display: block; } }

/* ── 1. Hero ─────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero__grid { position: relative; z-index: 2; }

.hero__eyebrow {
  opacity: 0;
  animation: rise .9s var(--ease) .15s forwards;
}

.hero__name {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.75rem, 1.5rem + 12vw, 10.5rem);
  line-height: .92;
  letter-spacing: -.035em;
}
.hero__word {
  display: inline-block;
  opacity: 0;
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(.25s + var(--d) * .1s);
}
.hero__word + .hero__word { margin-left: .28em; }
@media (max-width: 620px) {
  .hero__word { display: block; }
  .hero__word + .hero__word { margin-left: 0; }
}

/* the whole point of the page, stated once, right under the name */
.hero__role {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .7rem;
  margin-top: clamp(1.1rem, 2.5vw, 1.6rem);
  padding: 4px 4px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  opacity: 0;
  animation: rise .9s var(--ease) .45s forwards;
}
.hero__role-k {
  padding: .38rem .7rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 .625rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero__role-v {
  padding-right: .75rem;
  font: 500 .8125rem/1.3 var(--mono);
  letter-spacing: -.01em;
}
@media (max-width: 620px) {
  .hero__role { border-radius: 10px; }
  .hero__role-v { padding: 0 .5rem .35rem; }
}

.hero__cols {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  margin-top: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.hero__side { display: grid; gap: clamp(1.25rem, 3vw, 1.75rem); }
@media (min-width: 940px) {
  .hero__cols {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
    align-items: end;
  }
}

.hero__thesis {
  max-width: 46ch;
  font-size: clamp(1.125rem, 1rem + .8vw, 1.625rem);
  line-height: 1.42;
  opacity: 0;
  animation: rise 1s var(--ease) .5s forwards;
}
.hero__thesis .c { display: block; letter-spacing: -.015em; }
.hero__thesis .t {
  display: block;
  margin-top: .5rem;
  font-size: .78em;
  line-height: 1.5;
  color: var(--muted);
}
.hero__pivot {
  display: block;
  width: 42px; height: 1px;
  margin: .95rem 0 .85rem;
  background: linear-gradient(to right, var(--accent), transparent);
  transform-origin: left;
  animation: swipe .8s var(--ease) 1s both;
}

.hero__proof {
  display: grid;
  gap: .25rem;
  max-width: 46ch;
  font: 400 .8125rem/1.5 var(--mono);
  letter-spacing: -.01em;
  color: var(--muted);
  opacity: 0;
  animation: rise 1s var(--ease) .7s forwards;
}
.hero__proof li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}
.hero__proof li:last-child { border-bottom: 1px solid var(--line); }
.hero__proof b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55em;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--fg);
}
.hero__proof li:last-child b { font-size: 1.1em; }

.hero__bring {
  display: grid;
  gap: .45rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-left: clamp(.9rem, 2vw, 1.25rem);
  max-width: 54ch;
  border-left: 2px solid var(--accent);
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--fg);
  opacity: 0;
  animation: rise 1s var(--ease) .6s forwards;
}
.hero__bring-k {
  font: 500 .625rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding: .95rem 1.6rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font: 500 .8125rem/1 var(--mono);
  letter-spacing: .02em;
  opacity: 0;
  animation: rise .9s var(--ease) .85s forwards;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
.cta__arrow { transition: transform .45s var(--ease); }
.cta:hover .cta__arrow { transform: translateY(3px); }

.hero__bloom {
  position: absolute;
  top: -18vh; right: -12vw;
  width: min(70vw, 780px);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle at 60% 40%,
    color-mix(in srgb, var(--accent) 17%, transparent) 0%,
    color-mix(in srgb, var(--accent) 5%, transparent) 40%,
    transparent 68%);
  filter: blur(10px);
  opacity: 0;
  animation: fade 2s var(--ease) .5s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes swipe {
  from { transform: scaleX(0); }
  to   { transform: none; }
}
@keyframes fade { to { opacity: 1; } }

/* ── Sections ────────────────────────────────────────────────────────── */

.section {
  position: relative;
  padding-block: var(--pad-y);
  scroll-margin-top: 4.5rem;
  border-top: 1px solid var(--line);
}

.inverse {
  --bg:        var(--i-bg);
  --bg-sunk:   var(--i-sunk);
  --fg:        var(--i-fg);
  --muted:     var(--i-muted);
  --line:      var(--i-line);
  --line-soft: var(--i-line);
  --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent);
  --accent-text: var(--accent);
  background: var(--bg);
  color: var(--fg);
  border-top-color: transparent;
}

/* ── Reveals ─────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .8s var(--ease) calc(var(--d, 0) * 70ms),
    transform .8s var(--ease) calc(var(--d, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ── 2. Origin ───────────────────────────────────────────────────────── */

.origin__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  align-items: start;
}
@media (min-width: 900px) {
  .origin__grid { grid-template-columns: minmax(0, 1.55fr) minmax(260px, .9fr); }
}

.origin__body p + p { margin-top: 1.15rem; }
.origin__body { max-width: 62ch; }

.origin__insight {
  margin-top: 1.6rem !important;
  padding-left: 1.4rem;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.34;
  letter-spacing: -.015em;
}
.origin__body .origin__insight + p { margin-top: 1.6rem; }

.origin__ledger {
  padding: 1.5rem;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.ledger__title {
  font: 500 .6875rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ledger {
  margin-top: 1.1rem;
  display: grid;
  gap: .1rem;
}
.ledger > div {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--line);
}
.ledger dt {
  font: 400 .75rem/1.4 var(--mono);
  color: var(--muted);
}
.ledger dd {
  margin: 0 0 0 auto;
  font: 500 .8125rem/1.4 var(--mono);
  text-align: right;
}
.ledger dd.null { color: var(--muted); opacity: .65; }
.ledger__foot {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.1rem;
  font: 500 .8125rem/1.4 var(--mono);
}

/* ── 3. Track record ─────────────────────────────────────────────────── */

.section--numbers { background: var(--bg-sunk); }

.metrics {
  display: grid;
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 620px) { .metrics { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .metrics { grid-template-columns: repeat(4, 1fr); } }

.metric {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  background: var(--bg-sunk);
  transition: background-color .4s var(--ease);
}
.metric:hover { background: var(--bg); }

.metric__value {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.25rem, 1.5rem + 6vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.metric__rule {
  display: block;
  width: 100%;
  height: 1px;
  margin: 1.35rem 0 1.1rem;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease) calc(var(--d, 0) * 70ms + .2s);
}
.metric.in .metric__rule { transform: none; }
.metric:hover .metric__rule { background: var(--accent); }

.metric__label {
  font: 500 .8125rem/1.4 var(--mono);
  letter-spacing: -.01em;
}
.metric__note {
  margin-top: .5rem;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ── 4. Insurers ─────────────────────────────────────────────────────── */

.lead--indent { margin-top: 1.5rem; }

.pillars {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.75rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(12, 1fr); }
  .pillars > .pillar:nth-child(1) { grid-column: span 5; }
  .pillars > .pillar--wide { grid-column: span 7; }
  .pillars > .pillar--full { grid-column: 1 / -1; }
  .pillar--full {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, .7fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: end;
  }
}

.pillar {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.pillar:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }

.pillar__tag {
  font: 500 .625rem/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.pillar__h {
  margin-top: .9rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.018em;
}
.pillar p:not(.pillar__tag):not(.pillar__stat) {
  margin-top: .85rem;
  max-width: 60ch;
  color: var(--muted);
}
.pillar p b { color: var(--fg); }

/* reconciliation motif */
.recon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
  font: 400 .75rem/1 var(--mono);
  color: var(--muted);
}
.recon__side {
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-sunk);
  color: var(--fg);
}
.recon__link {
  display: grid;
  gap: 4px;
  flex: 1 1 60px;
  min-width: 48px;
}
.recon__link i {
  display: block;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
}
.pillar.in .recon__link i { animation: swipe .7s var(--ease) forwards; }
.pillar.in .recon__link i:nth-child(1) { animation-delay: .35s; }
.pillar.in .recon__link i:nth-child(2) { animation-delay: .45s; background: var(--accent); }
.pillar.in .recon__link i:nth-child(3) { animation-delay: .55s; }
.recon__badge {
  padding: .35rem .6rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: .6875rem;
  letter-spacing: .04em;
}

.pillar__stat {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}
.pillar__stat span:first-child {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.pillar__stat span:last-child {
  font: 400 .75rem/1.4 var(--mono);
  color: var(--muted);
}

@media (min-width: 900px) {
  .pillar--full .pillar__stat {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    margin-top: 0;
    padding: .25rem 0 .25rem clamp(1.5rem, 3vw, 2.5rem);
    border-top: 0;
    border-left: 1px dashed var(--line);
  }
}

.closer {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 70ch;
  font-size: clamp(1rem, .95rem + .35vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
}
.closer b {
  color: var(--fg);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1em;
}

/* ── 5. The case · what I'd bring ────────────────────────────────────── */

.section--bring { background: var(--bg-sunk); }

.brings {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--line);
}

.bring {
  display: grid;
  gap: .85rem 2rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 880px) {
  .bring { grid-template-columns: 180px minmax(0, 1fr); }
}

.bring__k {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font: 500 .75rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bring__i {
  font-size: .6875rem;
  color: var(--accent-text);
}

.bring__body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.875rem);
  line-height: 1.18;
  letter-spacing: -.018em;
  max-width: 30ch;
}
.bring__body p {
  margin-top: .9rem;
  max-width: 66ch;
  color: var(--muted);
}
.bring > .shot { grid-column: 1 / -1; }

/* ── 6. Carolina ─────────────────────────────────────────────────────── */

.car__intro {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 900px) {
  .car__intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

.car__label {
  font: 500 .625rem/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.car__list {
  display: grid;
  gap: .8rem;
  margin-top: 1.1rem;
}
.car__list li {
  position: relative;
  padding-left: 1.4rem;
  max-width: 58ch;
  line-height: 1.55;
}
.car__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: 8px; height: 1px;
  background: var(--accent);
}
.car__why {
  margin-top: 1.35rem;
  max-width: 58ch;
  color: var(--muted);
}

.section--carolina .h2 {
  max-width: 24ch;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
}
.section--carolina .lead { color: var(--muted); }

.flow {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-sunk);
}

.flow__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.flow__name {
  font: 500 .8125rem/1 var(--mono);
  letter-spacing: .04em;
}
.flow__name::before {
  content: "◆ ";
  color: var(--accent);
}
.flow__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font: 400 .6875rem/1 var(--mono);
  color: var(--muted);
}
.lg { display: inline-flex; align-items: center; gap: .4rem; }
.lg i { width: 9px; height: 9px; flex: 0 0 auto; }
.lg--code i { background: var(--fg); }
.lg--llm i {
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  transform: rotate(45deg);
}
.lg--human i { border: 1px solid var(--muted); border-radius: 50%; }

.flow__track {
  position: relative;
  display: grid;
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--line);
}
@media (min-width: 860px) {
  .flow__track { grid-template-columns: repeat(5, 1fr); }
}

.node {
  position: relative;
  padding: 1.25rem 1.15rem 1.4rem;
  background: var(--bg-sunk);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), background-color .35s var(--ease);
  transition-delay: calc(var(--n) * 110ms + .3s);
}
.flow.in .node { opacity: 1; transform: none; }
.node:hover { background: var(--bg); }

.node__i {
  font: 400 .625rem/1 var(--mono);
  letter-spacing: .14em;
  color: var(--muted);
}
.node h3 {
  margin-top: .75rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: -.01em;
}
.node p:not(.node__i) {
  margin-top: .45rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--muted);
}

/* encoding: how each step is governed */
.node::before {
  content: "";
  position: absolute;
  top: 1.3rem; right: 1.15rem;
  width: 9px; height: 9px;
}
.node--code::before { background: var(--fg); }
.node--llm::before {
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  transform: rotate(45deg);
}
.node--human::before { border: 1px solid var(--muted); border-radius: 50%; }

.node--llm {
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-sunk));
}
.node--llm:hover { background: color-mix(in srgb, var(--accent) 11%, var(--bg-sunk)); }
.node--llm h3 { color: var(--accent-text); }

.flow__pulse {
  position: absolute;
  top: -1px; left: 0;
  width: 20%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0;
}
@media (min-width: 860px) {
  .flow.in .flow__pulse { animation: pulse 4.5s linear 1.2s infinite; }
}
@keyframes pulse {
  0%   { transform: translateX(-100%); opacity: 0; }
  12%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { transform: translateX(500%); opacity: 0; }
}

.principle {
  display: grid;
  gap: .35rem;
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 2px solid var(--accent);
}
.principle__tag {
  font: 500 .625rem/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.principle__c {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.principle__t {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(1rem, .9rem + .65vw, 1.375rem);
  line-height: 1.25;
  letter-spacing: -.03em;
  color: var(--accent-text);
}

.prod {
  display: grid;
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 700px) { .prod { grid-template-columns: repeat(3, 1fr); } }

.prod li {
  display: grid;
  gap: .35rem;
  padding: 1.5rem;
  background: var(--bg);
}
.prod li span:first-child {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.125rem, 1.5rem + 2.2vw, 3rem);
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.prod li span:last-child {
  font: 400 .75rem/1.4 var(--mono);
  letter-spacing: .02em;
  color: var(--muted);
}

.closer--inverse b { color: var(--fg); }

/* ── 7. Why Handle ───────────────────────────────────────────────────── */

.map {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.map__head {
  display: none;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  font: 500 .625rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.map__row {
  display: grid;
  gap: .5rem 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease);
}
.map__row > [role="cell"] { align-self: center; }
.map__row > [role="cell"]:first-child { color: var(--muted); }
.map__row > [role="cell"]:last-child {
  font-family: var(--mono);
  font-size: .875rem;
  letter-spacing: -.015em;
}

.map__arrow {
  align-self: center;
  display: block;
  height: 1px;
  background: var(--line);
  position: relative;
}
.map__arrow::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  transition: width .55s var(--ease);
}
.map__arrow::before {
  content: "";
  position: absolute;
  top: 50%; right: -1px;
  width: 5px; height: 5px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
  transition: border-color .55s var(--ease);
}
.map__row:hover .map__arrow::after { width: 100%; }
.map__row:hover .map__arrow::before { border-color: var(--accent); }

@media (max-width: 859px) {
  .map__arrow { display: none; }
  .map__row > [role="cell"]:last-child {
    display: flex;
    gap: .5rem;
    align-items: baseline;
  }
  .map__row > [role="cell"]:last-child::before {
    content: "→";
    color: var(--accent-text);
  }
}

.map__row--principle > [role="cell"]:first-child {
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--fg);
}

@media (min-width: 860px) {
  .map__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 1.5rem;
  }
  .map__head span:last-child { grid-column: 3; }
  .map__row { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); }
}

.verdict {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  max-width: 24ch;
}
.verdict b { font-weight: 400; }

/* ── 8. Contact ──────────────────────────────────────────────────────── */

.section--contact { padding-bottom: clamp(4rem, 8vw, 7rem); }
.h2--closing { font-size: clamp(3rem, 1.6rem + 7vw, 7rem); }
.lead--closing {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.375rem, 1.05rem + 1.6vw, 2.25rem);
  line-height: 1.28;
  letter-spacing: -.02em;
  color: var(--fg);
}

.links {
  display: grid;
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 760px) { .links { grid-template-columns: repeat(3, 1fr); } }

.links a {
  display: grid;
  gap: .4rem;
  padding: 1.5rem;
  background: var(--bg);
  transition: background-color .35s var(--ease), padding-left .35s var(--ease);
}
.links a:hover { background: var(--bg-sunk); padding-left: 1.9rem; }
.links__k {
  font: 400 .625rem/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.links__v {
  font-family: var(--mono);
  font-size: .9375rem;
  letter-spacing: -.02em;
}
.links a:hover .links__v { color: var(--accent-text); }

/* ── Footer ──────────────────────────────────────────────────────────── */

.foot {
  --bg: var(--i-bg);
  --fg: var(--i-fg);
  --muted: var(--i-muted);
  --line: var(--i-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: 1.75rem var(--gut);
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font: 400 .6875rem/1.5 var(--mono);
  letter-spacing: .02em;
}

/* ── Motion preferences ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .node, .hero__word, .hero__eyebrow, .hero__thesis,
  .hero__proof, .cta, .hero__bloom, .hero__role, .hero__bring {
    opacity: 1 !important;
    transform: none !important;
  }
  .metric__rule, .recon__link i { transform: none !important; }
  .accent-line { background-size: 100% 100%; }
}
