/* ==========================================================================
   GinaSchudi.com - humans empowered by AI
   Design system: "Signal" - a warm-to-cool spectrum, human at one end,
   systems at the other, the unlock in the middle.
   Type: Newsreader (human) / Inter (voice) / JetBrains Mono (machine)
   ========================================================================== */

/* ---------- Self-hosted faces -------------------------------------------
   Bundled so typography is identical everywhere and independent of any CDN.
   All three are variable fonts: one file covers the whole weight range.     */
@font-face{font-family:"Newsreader";src:url("/assets/fonts/newsreader-normal.woff2") format("woff2-variations"),url("/assets/fonts/newsreader-normal.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Newsreader";src:url("/assets/fonts/newsreader-italic.woff2") format("woff2-variations"),url("/assets/fonts/newsreader-italic.woff2") format("woff2");font-weight:200 800;font-style:italic;font-display:swap}
@font-face{font-family:"Inter";src:url("/assets/fonts/inter-normal.woff2") format("woff2-variations"),url("/assets/fonts/inter-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url("/assets/fonts/inter-italic.woff2") format("woff2-variations"),url("/assets/fonts/inter-italic.woff2") format("woff2");font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("/assets/fonts/jetbrains-normal.woff2") format("woff2-variations"),url("/assets/fonts/jetbrains-normal.woff2") format("woff2");font-weight:100 800;font-style:normal;font-display:swap}

/* ---------- Tokens ---------- */
:root {
  /* Ground */
  --ink-900: #070B14;
  --ink-800: #0D1322;
  --ink-700: #141C2E;
  --ink-600: #1B2540;
  --line:        rgba(226, 232, 240, 0.10);
  --line-strong: rgba(226, 232, 240, 0.20);

  --text:   #EDEAE3;
  --text-2: #AEB8C9;
  --text-3: #78849A;

  /* The spectrum: human -> unlock -> machine */
  --human:   #FFA53D;   /* amber   - people */
  --ember:   #FF7361;   /* coral   - energy */
  --spark:   #B08CFF;   /* violet  - the unlock */
  --machine: #2DD4BF;   /* teal    - systems */
  --scale:   #45B6F5;   /* sky     - scale */

  --human-soft: #FFC782;
  --machine-soft: #7FE8DA;

  --grad-full: linear-gradient(100deg, var(--human) 0%, var(--ember) 26%, var(--spark) 54%, var(--machine) 80%, var(--scale) 100%);
  --grad-hm:   linear-gradient(100deg, var(--human), var(--spark) 55%, var(--machine));

  --focus: var(--human-soft);

  --max: 1180px;
  --measure: 66ch;
  --radius: 16px;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-3:  clamp(1.95rem, 1.65rem + 1.5vw, 2.9rem);
  --step-4:  clamp(2.3rem, 1.8rem + 2.3vw, 3.55rem);

  --shadow: 0 1px 2px rgba(0,0,0,.30), 0 10px 34px rgba(0,0,0,.34);
  --glow-h: 0 0 0 1px rgba(255,165,61,.30), 0 8px 30px rgba(255,165,61,.16);
}

:root[data-theme="light"] {
  --ink-900: #FCFAF6;
  --ink-800: #FFFFFF;
  --ink-700: #F4F0E8;
  --ink-600: #EBE5D9;
  --line:        rgba(19, 27, 44, 0.12);
  --line-strong: rgba(19, 27, 44, 0.24);

  --text:   #101827;
  --text-2: #414F67;
  --text-3: #66748C;

  --human:   #B25E00;
  --ember:   #C43D33;
  --spark:   #6D3FD1;
  --machine: #0E7C70;
  --scale:   #1667A8;

  --human-soft: #8A4700;
  --machine-soft: #0A5C53;

  --focus: #B25E00;
  --shadow: 0 1px 2px rgba(19,27,44,.06), 0 10px 30px rgba(19,27,44,.09);
  --glow-h: 0 0 0 1px rgba(178,94,0,.28), 0 8px 26px rgba(178,94,0,.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.68;
  font-feature-settings: "kern","liga","cv05","cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* If a real italic face is ever unavailable, render upright rather than
     letting the browser shear the roman glyphs into a fake oblique.
     Weight synthesis stays on so bold never flattens. */
  font-synthesis-style: none;
}

/* Emphasis stays legible whether or not the italic face has loaded. */
em, i { font-style: italic; color: var(--text); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500; line-height: 1.11; letter-spacing: -0.018em;
  margin: 0 0 .5em;
  /* No font-variation-settings here on purpose. */
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1.15em; text-wrap: pretty; }

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--step--1); letter-spacing: .17em; text-transform: uppercase;
  color: var(--machine); margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .7rem; font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; flex: none; border-radius: 2px;
  background: var(--grad-hm);
}
.eyebrow--human { color: var(--human); }
.eyebrow--spark { color: var(--spark); }

.lede { font-size: var(--step-1); color: var(--text-2); line-height: 1.55; max-width: 60ch; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.grad-text {
  background: var(--grad-full);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 748px); margin-inline: auto; }
section { padding-block: clamp(3.75rem, 8vw, 7rem); position: relative; }
.band { background: var(--ink-800); border-block: 1px solid var(--line); }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--human); color: #0B0E17; padding: .7rem 1.1rem;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%; z-index: 300;
  background: var(--grad-full); pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in oklab, var(--ink-900) 84%, transparent);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.1rem; min-height: 70px; }
.brand {
  text-decoration: none; display: flex; align-items: center; gap: .7rem;
  font-family: "Newsreader", serif; font-size: 1.14rem; font-weight: 600;
  letter-spacing: -.02em; margin-right: auto; color: var(--text);
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand:hover .brand__mark .bm-h { animation: pulse-node 1.3s ease-in-out infinite; }
.brand:hover .brand__mark .bm-m { animation: pulse-node 1.3s ease-in-out .35s infinite; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  text-decoration: none; color: var(--text-2); font-size: .93rem; font-weight: 500;
  padding: .5rem .7rem; border-radius: 9px; white-space: nowrap;
  transition: color .18s ease, background .18s ease; position: relative;
}
.nav a:hover { color: var(--text); background: var(--ink-700); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .16rem;
  height: 2px; border-radius: 2px; background: var(--grad-hm);
}

.theme-toggle, .nav-toggle {
  background: transparent; border: 1px solid var(--line-strong); color: var(--text-2);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; flex: none;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.theme-toggle:hover, .nav-toggle:hover { color: var(--human); border-color: var(--human); transform: translateY(-1px); }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--ink-800); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease;
    max-height: calc(100dvh - 70px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: .85rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--human); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 11px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .16s ease, box-shadow .22s ease, border-color .22s ease, color .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--grad-hm); color: #0B0E17;
  box-shadow: 0 4px 20px rgba(255,165,61,.24);
}
:root[data-theme="light"] .btn--primary { color: #FFF9F0; }
.btn--primary:hover { box-shadow: 0 10px 30px rgba(176,140,255,.34); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--spark); color: var(--spark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--machine); text-decoration: none; font-weight: 600; font-size: .93rem;
  font-family: "JetBrains Mono", monospace;
}
.arrow-link svg { transition: transform .2s ease; }
.arrow-link:hover svg { transform: translateX(4px); }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Aurora ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(78px); opacity: .30;
  animation: drift 26s ease-in-out infinite;
}
:root[data-theme="light"] .aurora span { opacity: .26; filter: blur(70px); }
/* keep body copy legible over the wash */
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 62% 78% at 28% 48%,
              color-mix(in oklab, var(--ink-900) 74%, transparent), transparent 72%);
}
.aurora .a1 { width: 42vw; height: 42vw; left: -8%;  top: -14%; background: var(--human);  }
.aurora .a2 { width: 36vw; height: 36vw; left: 22%;  top: 34%;  background: var(--spark); animation-delay: -7s; }
.aurora .a3 { width: 44vw; height: 44vw; right: -10%; top: -6%;  background: var(--machine); animation-delay: -14s; }
.aurora .a4 { width: 30vw; height: 30vw; right: 14%; bottom: -18%; background: var(--scale); animation-delay: -20s; }
@keyframes drift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  33%     { transform: translate3d(4vw, 3vh, 0) scale(1.12); }
  66%     { transform: translate3d(-3vw, -2vh, 0) scale(.94); }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0,1.28fr) minmax(0,.72fr);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 .grad-text { display: block; }
.hero__id { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.hero__id-text { display: grid; gap: .15rem; }
.hero__id-name {
  font-family: "Newsreader", serif; font-size: 1.16rem; font-weight: 600;
  letter-spacing: -.015em; line-height: 1.2;
}
.hero__id-role {
  font-family: "JetBrains Mono", monospace; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}

/* Portrait with spectrum ring */
.portrait { position: relative; flex: none; }
.portrait__ring {
  position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--human), var(--ember), var(--spark), var(--machine), var(--scale), var(--human));
  animation: spin 14s linear infinite;
}
.portrait__inner {
  position: relative; border-radius: 50%; overflow: hidden;
  background: var(--ink-700); border: 3px solid var(--ink-900);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait--sm { width: 64px; height: 64px; }
.portrait--sm .portrait__inner { width: 64px; height: 64px; }
.portrait--lg { width: clamp(190px, 26vw, 250px); aspect-ratio: 1; margin-inline: auto; }
.portrait--lg .portrait__inner { width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.9rem; list-style: none; padding: 0; }
.hero__meta li {
  font-family: "JetBrains Mono", monospace; font-size: .73rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 100px; padding: .34rem .8rem;
  background: color-mix(in oklab, var(--ink-800) 70%, transparent);
}

.hero__aside { display: grid; gap: 1.5rem; justify-items: center; }

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line); background: var(--ink-800);
  overflow: hidden; padding-block: .95rem; position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--ink-800), transparent); }
.ticker::after  { right: 0; background: linear-gradient(270deg, var(--ink-800), transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.ticker--rev .ticker__track { animation-direction: reverse; animation-duration: 58s; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__item {
  display: inline-flex; align-items: center; gap: .7rem; padding-inline: 1.5rem;
  font-family: "JetBrains Mono", monospace; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-2); white-space: nowrap;
}
.ticker__item b { color: var(--text); font-weight: 600; letter-spacing: .04em; }
.ticker__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--grad-hm); }
.ticker__item:nth-child(3n) .ticker__dot { background: var(--spark); }
.ticker__item:nth-child(3n+1) .ticker__dot { background: var(--human); }
.ticker__item:nth-child(3n+2) .ticker__dot { background: var(--machine); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
/* Four evidence stats in a narrow reading column: strict 2x2, never 3 + orphan. */
.stats--quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .stats--quad { grid-template-columns: 1fr; } }

/* Four headline stats across the full-width home row: locked to a single row of four,
   never 3 + orphan, down to tablet width. */
.stats--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .stats--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats--row { grid-template-columns: 1fr; } }

.stat { background: var(--ink-800); padding: 1.75rem 1.5rem; position: relative; overflow: hidden; }
.stat::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--grad-full); transform: scaleX(0); transform-origin: left;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
}
.stat.is-in::after { transform: scaleX(1); }
.stat__num {
  font-family: "Newsreader", serif; font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1; font-weight: 600; letter-spacing: -.035em;
  background: var(--grad-full); -webkit-background-clip: text; background-clip: text;
  color: transparent; display: block; margin-bottom: .55rem;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: .875rem; color: var(--text-2); line-height: 1.45; margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
/* strict two-up, so a set of four reads as a clean 2x2 rather than 3 + orphan */
.grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid--pair { grid-template-columns: 1fr; } }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }

.card {
  background: var(--ink-800); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem 1.6rem;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-full); transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.card p { color: var(--text-2); font-size: .95rem; margin-bottom: 1rem; }
.card p:last-of-type { margin-bottom: 0; }
.card__foot { margin-top: auto; padding-top: 1.1rem; }
a.card { text-decoration: none; color: inherit; }
.card__num {
  font-family: "JetBrains Mono", monospace; font-size: .74rem; letter-spacing: .16em;
  display: block; margin-bottom: .85rem; color: var(--human);
}
.card--spark .card__num { color: var(--spark); }
.card--machine .card__num { color: var(--machine); }
.card--ember .card__num { color: var(--ember); }

/* ---------- Post list ---------- */
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.post-item { border-bottom: 1px solid var(--line); }
.post-item a {
  display: grid; grid-template-columns: 138px 1fr; gap: 1.8rem;
  padding: 2.1rem .3rem; text-decoration: none; align-items: start;
  transition: background .22s ease, padding .22s ease;
}
.post-item a:hover { background: var(--ink-800); padding-inline: 1.2rem; }
@media (max-width: 720px) { .post-item a { grid-template-columns: 1fr; gap: .7rem; } }
.post-item__date {
  font-family: "JetBrains Mono", monospace; font-size: .77rem; letter-spacing: .08em;
  color: var(--text-3); text-transform: uppercase; padding-top: .55rem;
}
.post-item h3 { font-size: var(--step-2); margin-bottom: .5rem; transition: color .2s ease; }
.post-item a:hover h3 { color: var(--human); }
.post-item p { color: var(--text-2); margin-bottom: .9rem; max-width: 62ch; font-size: .96rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.tag {
  font-family: "JetBrains Mono", monospace; font-size: .69rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--machine);
  border: 1px solid color-mix(in oklab, var(--machine) 34%, transparent);
  border-radius: 100px; padding: .25rem .65rem;
  background: color-mix(in oklab, var(--machine) 10%, transparent);
}
.tag:nth-child(2) {
  color: var(--spark); border-color: color-mix(in oklab, var(--spark) 34%, transparent);
  background: color-mix(in oklab, var(--spark) 10%, transparent);
}
.tag:nth-child(3) {
  color: var(--human); border-color: color-mix(in oklab, var(--human) 34%, transparent);
  background: color-mix(in oklab, var(--human) 10%, transparent);
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--human), var(--ember), var(--spark), var(--machine), var(--scale));
  opacity: .5; border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 2.5rem 2.7rem; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ink-900); border: 2px solid var(--human);
}
.tl-item:nth-child(2)::before { border-color: var(--ember); }
.tl-item:nth-child(3)::before { border-color: var(--spark); }
.tl-item:nth-child(4)::before { border-color: var(--machine); }
.tl-item:nth-child(5)::before { border-color: var(--scale); }
.tl-item:nth-child(6)::before { border-color: var(--text-3); }
.tl-item__meta {
  font-family: "JetBrains Mono", monospace; font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: .35rem;
}
.tl-item h3 { font-size: var(--step-1); margin-bottom: .15rem; }
.tl-item__org { color: var(--human); font-weight: 600; font-size: .92rem; margin-bottom: .6rem; }
.tl-item ul { margin: .5rem 0 0; padding-left: 1.15rem; color: var(--text-2); font-size: .94rem; }
.tl-item li { margin-bottom: .45rem; }
.tl-item li::marker { color: var(--spark); }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.pills li {
  border: 1px solid var(--line); border-radius: 100px; padding: .5rem 1rem;
  font-size: .875rem; color: var(--text-2); background: var(--ink-800);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.pills li:hover { border-color: var(--spark); color: var(--text); transform: translateY(-2px); }

/* ---------- Sources ---------- */
.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.sources li {
  display: grid; gap: .4rem;
  border-left: 2px solid var(--line-strong); padding-left: 1.25rem;
  transition: border-color .2s ease;
}
.sources li:hover { border-left-color: var(--human); }
.sources li > a {
  font-family: "Newsreader", ui-serif, Georgia, serif;
  font-size: var(--step-1); line-height: 1.3; color: var(--text);
  text-decoration: none; letter-spacing: -.01em;
  border-bottom: 1px solid color-mix(in oklab, var(--human) 45%, transparent);
  justify-self: start;
}
.sources li > a:hover { color: var(--human); border-bottom-color: var(--human); }
.sources__meta {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .76rem;
  letter-spacing: .07em; color: var(--text-3);
}
.sources__note { color: var(--text-2); font-size: .95rem; line-height: 1.6; max-width: 62ch; }

/* Source links inside the stat evidence row */
.stat__label a {
  color: var(--machine); text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--machine) 40%, transparent);
}
.stat__label a:hover { color: var(--human); border-bottom-color: var(--human); }

/* ---------- Recognition ---------- */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.1rem; }
.rec {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.45rem 1.4rem;
  background: var(--ink-800); display: grid; gap: .5rem;
  border-left: 3px solid var(--human);
}
.rec:nth-child(2) { border-left-color: var(--ember); }
.rec:nth-child(3) { border-left-color: var(--spark); }
.rec:nth-child(4) { border-left-color: var(--machine); }
.rec:nth-child(5) { border-left-color: var(--scale); }
.rec__year {
  font-family: "JetBrains Mono", monospace; font-size: .73rem; letter-spacing: .14em;
  color: var(--text-3); text-transform: uppercase;
}
.rec strong { font-size: 1.02rem; font-weight: 650; }
.rec p { margin: 0; font-size: .9rem; color: var(--text-2); }

/* ---------- Article ---------- */
.article-head { padding-block: clamp(2.75rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.article-head .wrap--narrow { position: relative; z-index: 1; }
.article-head h1 { font-size: var(--step-3); max-width: 010; max-width: 21ch; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center;
  font-family: "JetBrains Mono", monospace; font-size: .77rem; letter-spacing: .06em;
  color: var(--text-3); text-transform: uppercase; margin-top: 1.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.prose { padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.prose > * { max-width: var(--measure); }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.78; color: var(--text-2); }
.prose h2 { font-size: var(--step-2); margin-top: 2.75em; margin-bottom: .55em; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 2.1em; margin-bottom: .45em; color: var(--text); }
.prose strong { color: var(--text); font-weight: 650; }
.prose em { color: var(--text); }
.prose a { color: var(--machine); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.35rem; margin-bottom: 1.4em; }
.prose li { margin-bottom: .6em; }
.prose li::marker { color: var(--spark); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3rem 0; max-width: var(--measure); }
.prose blockquote { margin: 2.3rem 0; padding: .3rem 0 .3rem 1.7rem; border-left: 3px solid transparent;
  border-image: var(--grad-hm) 1; }
.prose blockquote p {
  font-family: "Newsreader", serif; font-size: var(--step-1); line-height: 1.45;
  color: var(--text); letter-spacing: -.01em;
}
.prose blockquote p:last-child { margin-bottom: 0; }
/* Single-line beats in the About essay - her rhythm, given room to land. */
.prose .beat {
  font-family: "Newsreader", ui-serif, Georgia, serif;
  font-size: var(--step-1); line-height: 1.35; color: var(--text);
  letter-spacing: -.01em; margin: 2em 0 1.9em; max-width: var(--measure);
}
.prose .callout .eyebrow { color: var(--human); }
.prose .callout .eyebrow::before { background: var(--human); }

.callout {
  background: var(--ink-800); border: 1px solid var(--line); border-left: 3px solid var(--spark);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.45rem 1.55rem; margin: 2.3rem 0;
}
.callout p { margin-bottom: 0; font-size: 1rem; }
.callout .eyebrow { margin-bottom: .6rem; color: var(--spark); }
.callout .eyebrow::before { background: var(--spark); }

.article-foot {
  border-top: 1px solid var(--line); padding-block: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: space-between; align-items: center;
}

/* ---------- LinkedIn cards ---------- */
.li-card {
  background: var(--ink-800); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
  display: flex; flex-direction: column; gap: .95rem;
  transition: border-color .22s ease, transform .22s ease;
}
.li-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.li-card__head { display: flex; align-items: center; gap: .8rem; }
.li-card__name { font-weight: 650; font-size: .93rem; line-height: 1.2; }
.li-card__sub { font-size: .76rem; color: var(--text-3); font-family: "JetBrains Mono", monospace; }
.li-card__body { color: var(--text-2); font-size: .97rem; margin: 0; white-space: pre-line; }
.li-card h3 { font-size: var(--step-1); margin: 0; }
.slot {
  border: 1px dashed var(--line-strong); color: var(--text-3);
  font-family: "JetBrains Mono", monospace; font-size: .82rem;
  padding: 2rem 1.5rem; border-radius: var(--radius); text-align: center; line-height: 1.7;
}

/* ---------- Form ---------- */
.form { display: grid; gap: 1.15rem; max-width: 620px; }
.field { display: grid; gap: .45rem; }
.field label {
  font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-2); font-family: "JetBrains Mono", monospace;
}
.field input, .field textarea, .field select {
  background: var(--ink-800); border: 1px solid var(--line-strong);
  border-radius: 11px; padding: .82rem .95rem; color: var(--text);
  font-family: inherit; font-size: 1rem; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--spark);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--spark) 22%, transparent);
}
.field textarea { min-height: 152px; resize: vertical; }
.field ::placeholder { color: var(--text-3); }
.hp { position: absolute; left: -9999px; }

/* ---------- Contact rail ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list a { text-decoration: none; display: flex; gap: .9rem; align-items: flex-start; color: var(--text-2); transition: color .2s ease; }
.contact-list a:hover { color: var(--human); }
.contact-list svg { flex: none; margin-top: 3px; color: var(--machine); }
.contact-list strong { display: block; color: var(--text); font-size: .95rem; font-weight: 600; }

/* ---------- CTA ---------- */
.cta { overflow: hidden; text-align: center; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { max-width: 010; max-width: 20ch; margin-inline: auto; }
.cta .lede { margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-800); padding-block: 3rem 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2, minmax(0,1fr)); gap: 2.5rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 {
  font-family: "JetBrains Mono", monospace; font-size: .73rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { color: var(--text-2); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--human); }
.footer-bar {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .81rem; color: var(--text-3); font-family: "JetBrains Mono", monospace;
}
.social { display: flex; gap: .6rem; }
.social a {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px;
  display: grid; place-items: center; color: var(--text-2);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.social a:hover { color: var(--human); border-color: var(--human); transform: translateY(-2px); }

/* ---------- Motif ---------- */
.motif { width: 100%; height: auto; }
.motif .h-node { fill: var(--human); }
.motif .m-node { fill: var(--machine); }
.motif .h-edge { stroke: var(--human); stroke-width: 1.1; fill: none; opacity: .38; }
.motif .m-edge { stroke: var(--machine); stroke-width: 1.1; fill: none; opacity: .38; }
.motif .seam { stroke: url(#seamGrad); stroke-width: 1.5; fill: none; opacity: .65; }
.motif .breathe { animation: breathe 4.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.motif .breathe:nth-of-type(2n) { animation-delay: -1.2s; }
.motif .breathe:nth-of-type(3n) { animation-delay: -2.4s; }
.motif .flow { stroke-dasharray: 5 190; animation: flow 5.5s linear infinite; }
.motif .flow:nth-of-type(2n) { animation-delay: -1.9s; }
.motif .flow:nth-of-type(3n) { animation-delay: -3.6s; }
.motif .label { font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; }
@keyframes breathe { 0%,100% { opacity: .95; transform: scale(1); } 50% { opacity: .55; transform: scale(1.3); } }
@keyframes flow { to { stroke-dashoffset: -390; } }
@keyframes pulse-node { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s cubic-bezier(.4,0,.2,1), transform .75s cubic-bezier(.4,0,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.section-head { margin-bottom: 2.75rem; }
.section-head--split { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-end; }
.section-head h2 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
