/* ============================================================
   jaredlukes.com — TRADING DESK EDITORIAL
   deep midnight indigo · electric cyan · lime spark · glass
   ============================================================ */

:root {
  /* core palette — after-hours gallery, near-black ink + paper-cream */
  --bg:           #0b0d14;
  --bg-1:         #11141d;
  --bg-2:         #161a25;
  --surface:      rgba(255, 255, 255, 0.025);
  --surface-2:    rgba(255, 255, 255, 0.04);
  --surface-flat: #1a1e29;
  --line:         rgba(232, 230, 222, 0.10);
  --line-soft:    rgba(232, 230, 222, 0.05);
  --line-strong:  rgba(232, 230, 222, 0.22);

  --ink:          #ece9e0;
  --ink-dim:      #aeb4c0;
  --ink-mute:     #7c8395;
  --ink-faint:    #555c6c;

  /* accents — quiet steel + paper accents */
  --cyan:         #7fa8d3;     /* muted steel blue (was electric cyan) */
  --cyan-deep:    #5e83ac;
  --indigo:       #5e83ac;
  --ice:          #c8d2e2;
  --spark:        #cfd1a6;     /* faded chartreuse, almost paper */
  --magenta:      #c08aa0;     /* dusty rose, used rarely */

  /* gradients (soft, not neon) */
  --grad-hero:    radial-gradient(1200px 700px at 8% -8%, rgba(127,168,211,0.10), transparent 55%),
                  radial-gradient(900px 600px at 110% 30%, rgba(94,131,172,0.08), transparent 60%),
                  radial-gradient(700px 700px at 50% 130%, rgba(207,209,166,0.025), transparent 60%);
  --grad-cyan:    linear-gradient(135deg, var(--ice) 0%, var(--cyan) 100%);
  --grad-text:    linear-gradient(135deg, var(--ink) 0%, var(--ice) 100%);

  /* type */
  --serif:  "Fraunces", "Source Serif Pro", ui-serif, Georgia, serif;
  --sans:   "Mona Sans", "Helvetica Now", ui-sans-serif, system-ui, sans-serif;
  --mono:   "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max:    1280px;
  --radius: 18px;
  --radius-sm: 10px;

  color-scheme: dark;
}

/* ============================================================
   reset & base
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 380;
  font-variation-settings: "wdth" 100;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--cyan); color: var(--bg); }

a {
  color: var(--cyan);
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color 180ms ease;
}
a:hover { color: var(--ice); text-decoration: underline; text-decoration-thickness: 1px; }

img, svg { display: block; max-width: 100%; }

/* skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--spark); color: var(--bg);
  padding: 0.5rem 1rem; border-radius: 4px;
  font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 1000; }

/* ============================================================
   atmosphere — orbs, grid, grain
   ============================================================ */
.atmos {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
}
.orb-1 {
  top: -25vh; left: -15vw;
  width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(circle, rgba(94,131,172,0.20), rgba(94,131,172,0) 60%);
  animation: float-1 32s ease-in-out infinite;
}
.orb-2 {
  top: 30vh; right: -25vw;
  width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle, rgba(127,168,211,0.18), rgba(127,168,211,0) 60%);
  animation: float-2 38s ease-in-out infinite;
}
.orb-3 {
  bottom: -35vh; left: 25vw;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(200,210,226,0.05), rgba(200,210,226,0) 65%);
  animation: float-3 42s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(8vw, 6vh) scale(1.1); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-10vw, 8vh) scale(0.9); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(6vw, -6vh) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .orb-1, .orb-2, .orb-3 { animation: none; }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,230,222,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,230,222,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black 30%, transparent 90%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black 30%, transparent 90%);
  opacity: 0.5;
}

.grain {
  position: absolute; inset: 0;
  opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   topbar
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem var(--gutter);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: linear-gradient(180deg, rgba(5,8,24,0.78), rgba(5,8,24,0.35));
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--cyan); text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; display: block;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.brand-mark svg { display: none; }
.brand-mark::before { content: "JL"; }
.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 28;
}

.topnav { display: flex; gap: 1.6rem; align-items: center; }
.topnav a {
  position: relative;
  color: var(--ink-dim);
  font-size: 0.95rem;
  font-weight: 420;
  text-decoration: none;
  padding: 0.35rem 0;
}
.topnav a[data-no]::before {
  content: attr(data-no);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--cyan);
  position: relative;
  top: -0.55em;
  margin-right: 0.25em;
  letter-spacing: 0.04em;
}
.topnav a:hover { color: var(--cyan); }
.topnav a:not(.cta)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--indigo));
  transform: scaleX(0); transform-origin: left;
  transition: transform 240ms ease;
}
.topnav a:not(.cta):hover::after { transform: scaleX(1); }

.topnav .cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink);
  background: transparent;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 480;
  font-size: 0.92rem;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}
.topnav .cta svg { width: 11px; height: 11px; }
.topnav .cta:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(127,168,211,0.05);
  text-decoration: none;
  transform: none;
}

@media (max-width: 720px) {
  .topnav { gap: 1rem; }
  .topnav a:not(.cta) { display: none; }
}

/* ============================================================
   page wrappers
   ============================================================ */
main { position: relative; z-index: 2; }
.section, .hero, .logos, .foot {
  position: relative; z-index: 2;
}

/* ============================================================
   hero
   ============================================================ */
.hero {
  padding: clamp(2.5rem, 5vh, 4rem) var(--gutter) clamp(1.5rem, 3vh, 2.5rem);
  max-width: var(--max); margin: 0 auto;
  position: relative;
}

.status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.status-text { color: var(--ink-dim); letter-spacing: 0.16em; }
.status-sep { color: var(--ink-faint); margin: 0 0.1em; }
.status-pulse {
  position: relative;
  width: 6px; height: 6px;
  display: inline-block;
  margin-right: 0.2rem;
}
.pulse-core {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.85;
}
.pulse-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: pulse-ring 2.6s ease-out infinite;
  opacity: 0.5;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.6); opacity: 1; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-ring { animation: none; }
}

.display {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  color: var(--ink);
  max-width: 21ch;
}
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 90, "WONK" 1;
  color: var(--ink-dim);
  font-weight: 360;
}
.display.sm {
  font-size: clamp(1.85rem, 3.7vw, 3rem);
  max-width: 22ch;
  margin-bottom: 0.55rem;
}

.lede {
  max-width: 60ch;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  color: var(--ink-dim);
  line-height: 1.55;
  margin: 0 0 1.4rem;
}
.lede strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   editorial-spread treatment (Direction B)
   - cosmic banner extends across the homepage hero
   - oversized year numeral as visual anchor
   - magazine masthead strip across the very top
   - manifesto pull-quote acts as the deck below the fold
   - operator-promise rule list inside the thesis
   - civic-credibility flourish at the end of bona fides
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(2rem, 4vh, 3.5rem);
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
}
/* keep the reading column narrow; year numeral can still sit in the right margin */
.hero > *:not(.hero-year) {
  max-width: 760px;
  margin-left: 0;
  margin-right: auto;
  position: relative;
}
/* masthead — narrow mono strip across the very top of the hero */
.hero-masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 2.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
  max-width: 64ch;
}
.hero-masthead-l { color: var(--cyan); }
.hero-masthead-c { flex: 1 1 auto; }
.hero-masthead-r { color: var(--ink-dim); }
.hero-masthead-sep { color: var(--ink-faint); }
@media (max-width: 540px) {
  .hero-masthead { gap: 0.4rem; font-size: 0.62rem; letter-spacing: 0.14em; }
  .hero-masthead-c { flex-basis: 100%; order: 99; }
  .hero-masthead-sep:nth-of-type(1) { display: none; }
}

/* oversized year numeral — anchors the hero like a magazine cover date */
.hero-year {
  position: absolute;
  top: clamp(2.5rem, 8vh, 6rem);
  right: clamp(-2rem, -2vw, -0.5rem);
  font-family: var(--serif);
  font-size: clamp(11rem, 22vw, 18rem);
  font-weight: 380;
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: rgba(232,230,222,0.10);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  text-shadow: 0 2px 24px rgba(11,13,20,0.6);
}
@media (max-width: 740px) {
  .hero-year {
    top: auto;
    bottom: -1rem;
    right: -1rem;
    font-size: clamp(8rem, 32vw, 12rem);
    color: rgba(232,230,222,0.07);
  }
}

/* manifesto — magazine-style pull quote spanning the page below the hero */
.manifesto {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: clamp(2rem, 5vh, 4rem);
  margin-bottom: clamp(2.5rem, 6vh, 5rem);
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1.5rem, 6vw, 6rem);
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(127,168,211,0.05), transparent 70%),
    linear-gradient(180deg, transparent, rgba(11,13,20,0.4) 50%, transparent);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  isolation: isolate;
}
.manifesto-mark {
  position: absolute;
  top: 0.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(7rem, 15vw, 12rem);
  line-height: 1;
  color: rgba(127,168,211,0.14);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  pointer-events: none;
  z-index: -1;
  margin: 0;
}
.manifesto-quote {
  font-family: var(--serif);
  font-weight: 380;
  font-style: normal;
  font-size: clamp(1.55rem, 3.4vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 auto 1.4rem;
  max-width: 22ch;
  font-variation-settings: "opsz" 60, "SOFT" 30, "WONK" 1;
}
.manifesto-quote em {
  font-style: italic;
  color: var(--ice);
  font-variation-settings: "opsz" 60, "SOFT" 90, "WONK" 1;
}
.manifesto-attr {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}

/* hero stat strip — quantified proof above the fold */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin: 0 0 1.6rem;
  max-width: 64ch;
  line-height: 1.5;
}
.hero-proof .hp-cell { display: inline-flex; align-items: baseline; gap: 0.35rem; }
.hero-proof .hp-cell b {
  font-family: var(--serif);
  font-weight: 460;
  font-size: 1.25em;
  line-height: 1;
  color: var(--ice);
  font-variation-settings: "opsz" 36, "SOFT" 30;
  letter-spacing: -0.01em;
}
.hero-proof .hp-sep { color: var(--ink-faint); }
@media (max-width: 540px) {
  .hero-proof {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    font-size: 0.8rem;
  }
  .hero-proof .hp-sep { display: none; }
  .hero-proof .hp-cell {
    display: block;
    padding-left: 0.85rem;
    border-left: 1px solid var(--cyan);
    line-height: 1.45;
  }
  .hero-proof .hp-cell b { display: inline; }
}

.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms cubic-bezier(0.2,0.7,0.2,1), background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}
.btn svg { width: 14px; height: 14px; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.primary:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}
.btn.ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: transparent;
}

/* hero signal line */
.hero-signal {
  position: relative;
  width: 100%;
  height: 80px;
  margin: 0 0 2.4rem;
  overflow: visible;
}
.signal-line {
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  animation: draw-signal 6s ease-out forwards;
}
@keyframes draw-signal {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .signal-line { stroke-dashoffset: 0; animation: none; }
}

/* hero stats */
.hero-stats {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.2rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.hero-stats li { display: flex; flex-direction: column; gap: 0.3rem; }
.hero-stat-wide { grid-column: span 2; }
@media (max-width: 640px) { .hero-stat-wide { grid-column: 1 / -1; } }
.hero-stats b {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  color: var(--ink);
}
.hero-stats b.serif-mark { font-style: normal; font-weight: 460; }
.hero-stats span:not(b) {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   logo lineup — simplest possible marquee
   ============================================================ */
.logos {
  padding: clamp(1.2rem, 2.5vh, 2rem) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.logos-rule { display: none; }

.logos-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-mute);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
  padding: 0 var(--gutter);
}
.logos-label span { color: var(--ink-faint); margin: 0 0.5em; font-weight: 500; }

.logo-marquee {
  width: 100%;
  overflow: hidden;
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* every logo gets the same slot — uniform horizontal real estate
   keeps the rhythm even when the marks themselves are very different
   widths (narrow icons vs wide wordmarks). */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 56px;
  width: 200px;
}
.logo-mark {
  /* default: medium wordmark — most logos land here */
  height: 28px;
  width: auto;
  max-width: 160px;
  flex: none;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.78;
}
.logo > svg.logo-mark {
  filter: none;
  color: var(--ink);
}

/* ---- normalized optical scaling per logo ----------------------------
   four tiers tuned by aspect ratio and visual density. goal: every logo
   reads with roughly equal visual weight inside its 200px slot. */

/* Tier 1 — Square / vertical lockup (1:1 to ~1.4:1). Icon-dominant,
   wants the most height to read substantial. */
.logo[title="BMW"] .logo-mark,
.logo[title="Porsche"] .logo-mark,
.logo[title="Target"] .logo-mark,
.logo[title="GE"] .logo-mark,
.logo[title="Hello Kitty"] .logo-mark,
.logo[title="Schell's Brewing"] .logo-mark,
.logo[title="UV Vodka"] .logo-mark,
.logo[title="Sun Country"] .logo-mark,
.logo[title="Woodford Reserve"] .logo-mark,
.logo[title="Schwan's Company"] .logo-mark,
.logo[title="Old Dutch Foods"] .logo-mark,
.logo[title="Polaris"] .logo-mark,
.logo[title="Grain Belt"] .logo-mark,
.logo[title="Phillips Distilling"] .logo-mark,
.logo[title="Cub Foods"] .logo-mark,
.logo[title="Morrie's"] .logo-mark { height: 50px; max-width: 80px; }

/* American Airlines — bump up a notch (mark + text needs more presence) */
.logo[title="American Airlines"] .logo-mark { height: 44px; max-width: 170px; }

/* Tier 2 — Compact icon + text lockup (~1.5:1 to ~2.5:1).
   The mark needs presence; text reads readable. */
.logo[title="HealthPartners"] .logo-mark,
.logo[title="Fairview Health Services"] .logo-mark,
.logo[title="Jack Link's"] .logo-mark,
.logo[title="Harley-Davidson"] .logo-mark,
.logo[title="Blue Cross Blue Shield MN"] .logo-mark,
.logo[title="Lutheran World Relief"] .logo-mark,
.logo[title="Lloyd's BBQ"] .logo-mark,
.logo[title="Herradura"] .logo-mark,
.logo[title="3M"] .logo-mark,
.logo[title="Wells Fargo"] .logo-mark,
.logo[title="Best Buy"] .logo-mark,
.logo[title="University of Minnesota"] .logo-mark,
.logo[title="U.S. Bank"] .logo-mark { height: 40px; max-width: 150px; }

/* Tier 3 — Standard wordmark (~2.5:1 to ~4.5:1). The default body
   of the lineup. Most modern wordmarks fall here. */
.logo[title="Medtronic"] .logo-mark,
.logo[title="Tennant"] .logo-mark,
.logo[title="Datalink"] .logo-mark,
.logo[title="Marvin Windows"] .logo-mark,
.logo[title="Andersen Windows"] .logo-mark,
.logo[title="Principal Financial"] .logo-mark,
.logo[title="Gibson"] .logo-mark,
.logo[title="OPI"] .logo-mark,
.logo[title="AmeriPride"] .logo-mark,
.logo[title="Ameriprise Financial"] .logo-mark,
.logo[title="Midmark"] .logo-mark,
.logo[title="Thrivent Financial"] .logo-mark,
.logo[title="Kohl's"] .logo-mark,
.logo[title="Freschetta"] .logo-mark,
.logo[title="Olson"] .logo-mark,
.logo[title="Fallon"] .logo-mark,
.logo[title="Space150"] .logo-mark { height: 30px; max-width: 160px; }

/* Tier 4 — Long wordmark (4.5:1+). Pulled down so they don't dominate. */
.logo[title="Honeywell"] .logo-mark,
.logo[title="Sherwin-Williams"] .logo-mark,
.logo[title="Thomson Reuters"] .logo-mark,
.logo[title="Campbell Mithun"] .logo-mark,
.logo[title="UnitedHealth Group"] .logo-mark,
.logo[title="Boys & Girls Clubs"] .logo-mark,
.logo[title="Condé Nast"] .logo-mark,
.logo[title="American Standard"] .logo-mark,
.logo[title="CertainTeed"] .logo-mark,
.logo[title="Ecolab"] .logo-mark { height: 24px; max-width: 180px; }

.logos-foot {
  margin: 2.4rem 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  padding: 0 var(--gutter);
}
.logos-foot-mark { color: var(--ink-faint); margin-right: 0.4em; font-weight: 600; }
.logos-foot-tail { display: block; margin-top: 0.4rem; font-style: italic; opacity: 0.7; }

/* ============================================================
   section shared
   ============================================================ */
.section {
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.section + .section { border-top: 1px solid var(--line-soft); }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1.4rem;
  align-items: end;
  margin-bottom: 2.6rem;
}
.section-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  grid-row: span 2;
  align-self: start;
  margin-top: 0.7rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(95,217,255,0.04);
  font-weight: 500;
}
.section-head h2 { grid-column: 2; }
.kicker {
  grid-column: 2;
  margin: 0;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   hire / lanes
   ============================================================ */
.lanes {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.lane {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 260ms cubic-bezier(0.2,0.7,0.2,1), border-color 240ms ease, box-shadow 240ms ease;
}
.lane:hover {
  transform: translateY(-4px);
  border-color: rgba(95,217,255,0.45);
  box-shadow:
    0 0 0 1px rgba(95,217,255,0.15) inset,
    0 24px 60px -10px rgba(58,125,255,0.35);
}
.lane.featured {
  border-color: rgba(95,217,255,0.35);
  background: linear-gradient(180deg, rgba(95,217,255,0.07), var(--surface));
}
.lane-flag {
  position: absolute; top: -1px; right: 1.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--spark);
  padding: 0.3rem 0.7rem;
  border-radius: 0 0 6px 6px;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 1;
}
.lane > * { position: relative; z-index: 1; }

.lane-spot {
  position: absolute;
  top: var(--my, 50%); left: var(--mx, 50%);
  width: 380px; height: 380px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(95,217,255,0.18), rgba(95,217,255,0) 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease;
  z-index: 0;
  border-radius: 50%;
  filter: blur(30px);
}
.lane:hover .lane-spot { opacity: 1; }

.lane header { margin-bottom: 1rem; }
.lane h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 460;
  letter-spacing: -0.018em;
  margin: 0.35rem 0 0;
  color: var(--ink);
  line-height: 1.18;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
.lane-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-weight: 500;
}
.lane p { color: var(--ink-dim); margin: 0 0 1rem; font-size: 0.98rem; }
.lane em { color: var(--ice); font-style: italic; }
.lane-proof {
  font-family: var(--mono);
  font-size: 0.81rem !important;
  color: var(--ink) !important;
  background: rgba(5,8,24,0.5);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--cyan);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.lane-fit {
  margin-top: 1rem !important;
  font-size: 0.86rem !important;
  color: var(--ink-mute) !important;
  font-style: italic;
}

.lane-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.45rem;
}
.lane-list li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
  letter-spacing: -0.005em;
}
.lane-list li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--cyan);
  opacity: 0.6;
  font-family: var(--mono);
}
.lane-list b {
  color: var(--ink);
  font-weight: 500;
  font-style: normal;
}

/* ── lane summary: scannable mobile-first card surface ──
   default (≥541px): summary hidden, body always shown, toggle hidden
   mobile  (≤540px): summary shown, body collapsed, toggle inline */
.lane-summary { display: none; }
.lane-toggle  { display: none; }

/* mobile-only summary surface */
.lane-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
}
.lane-chips li {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ice);
  padding: 0.42rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(127,168,211,0.08), rgba(127,168,211,0.02));
  white-space: nowrap;
}
.lane.featured .lane-chips li {
  border-color: rgba(127,168,211,0.32);
  color: var(--ink);
}

/* curator-style "now" caption — names a real engagement + scope */
.lane-now {
  margin: 0 0 0.95rem;
  padding: 0.85rem 1rem 0.95rem;
  border-left: 1px solid var(--cyan);
  background:
    linear-gradient(90deg, rgba(127,168,211,0.05), rgba(127,168,211,0) 80%),
    rgba(5,8,24,0.35);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  border-radius: 0 6px 6px 0;
}
.lane-now-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lane-now-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(127,168,211,0.16);
  display: inline-block;
}
.lane-now-body {
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 0;
  font-size: 0.96rem;
  line-height: 1.46;
  color: var(--ink-dim);
  margin: 0;
  letter-spacing: -0.005em;
}
.lane-now-body b {
  font-weight: 460;
  color: var(--ink);
  font-style: normal;
}

.lane-summary-fit {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin: 0.6rem 0 0;
  text-transform: none;
}

/* mobile activation: ≤540px */
@media (max-width: 540px) {
  .lane { padding: 1.55rem 1.25rem 1.35rem; }
  .lane h3 { font-size: 1.32rem; line-height: 1.16; }
  .lane header { margin-bottom: 1rem; }

  .lane-summary { display: block; }
  .lane-summary[aria-hidden="true"] { /* override the html attr — we want it visible on mobile */ }

  /* collapse the prose body on mobile until expanded */
  .lane-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 420ms cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 220ms ease 0ms;
    margin: 0;
  }
  .lane-body.is-open {
    max-height: 4000px;
    opacity: 1;
    transition:
      max-height 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 280ms ease 120ms;
  }
  .lane-body > *:first-child { margin-top: 0.8rem; }

  .lane-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.7rem 1.05rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  .lane.featured .lane-toggle { border-color: rgba(127,168,211,0.32); }
  .lane-toggle:active { background: rgba(127,168,211,0.06); }
  .lane-toggle .lane-toggle-mark {
    font-family: var(--serif);
    font-size: 0.95rem;
    line-height: 1;
    color: var(--cyan);
    transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
    transform-origin: 50% 55%;
  }
  .lane-toggle[aria-expanded="true"] .lane-toggle-mark {
    transform: rotate(180deg);
  }
}

/* tablet+ : the rich lane body always shows, summary hidden */
@media (min-width: 541px) {
  .lane-summary { display: none !important; }
  .lane-toggle { display: none !important; }
  .lane-body { max-height: none; opacity: 1; overflow: visible; }
}

/* ── now-card mobile collapse ─────────────────────────────────────────
   Same scanability pattern as the lanes. Each NOW card collapses its
   long prose body on mobile behind a compact "More" toggle. */
.now-toggle { display: none; }
@media (max-width: 540px) {
  .now-card .now-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    transition:
      max-height 380ms cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 220ms ease,
      margin 200ms ease;
  }
  .now-card .now-body.is-open {
    max-height: 1200px;
    opacity: 1;
    margin-top: 0.5rem;
  }
  .now-card .now-body p { margin: 0; }
  .now-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.7rem 0 0;
    padding: 0.5rem 0.95rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-dim);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  .now-toggle:active { background: rgba(127,168,211,0.06); }
  .now-toggle .now-toggle-mark {
    font-family: var(--serif);
    color: var(--cyan);
    transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
    transform-origin: 50% 55%;
  }
  .now-toggle[aria-expanded="true"] .now-toggle-mark { transform: rotate(180deg); }
  .now-toggle[aria-expanded="true"] { color: var(--ink); border-color: var(--line-strong); }
}

/* ── timeline mobile show-5 / expand-12 ─────────────────────────────
   Default mobile: only top 5 entries shown; rest collapsed behind a
   "Show full 25-year arc" toggle. All entries remain in DOM (SEO-safe).
   Desktop and tablet (>540px) always show the full timeline. */
.timeline-toggle { display: none; }
@media (max-width: 540px) {
  .timeline > li.t-extra { display: none; }
  .timeline.is-expanded > li.t-extra { display: grid; }
  .timeline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1rem auto 0;
    padding: 0.7rem 1.2rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  .timeline-toggle:active { background: rgba(127,168,211,0.06); }
  .timeline-toggle .timeline-toggle-mark {
    font-family: var(--serif);
    color: var(--cyan);
    transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
    transform-origin: 50% 55%;
  }
  .timeline-toggle[aria-expanded="true"] .timeline-toggle-mark { transform: rotate(180deg); }
}
@media (min-width: 541px) {
  .timeline-toggle { display: none !important; }
}

/* ============================================================
   now
   ============================================================ */
.now-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.now-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.7rem;
  backdrop-filter: blur(12px);
  transition: transform 220ms ease, border-color 220ms ease;
}
.now-card:hover { transform: translateY(-2px); border-color: rgba(95,217,255,0.35); }
.now-card.aside {
  background: transparent;
  border-style: dashed;
  border-color: var(--line);
}
.now-live {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.now-live .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.9); }
}
@media (prefers-reduced-motion: reduce) { .now-live .dot { animation: none; } }

.now-card h3 {
  font-family: var(--serif);
  font-weight: 460;
  font-size: 1.42rem;
  letter-spacing: -0.018em;
  margin: 0.3rem 0 0.45rem;
  color: var(--ink);
  font-variation-settings: "opsz" 36;
}
.now-when {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.now-where {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  margin: 0 0 1rem;
}
.now-card > p:last-child { color: var(--ink-dim); margin: 0; font-size: 0.96rem; }

/* ============================================================
   timeline
   ============================================================ */
.track-arc {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0 0 2.4rem;
  max-width: 64ch;
  padding: 1.2rem 0 1.4rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

.timeline {
  list-style: none; padding: 0; margin: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: 220px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}
@media (max-width: 720px) {
  .timeline::before { left: 8px; }
}

.timeline li {
  display: grid;
  grid-template-columns: 200px 24px 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  position: relative;
  transition: background 240ms ease;
}
.timeline li:hover { background: rgba(95,217,255,0.025); }

.timeline .t-when {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin: 0.55rem 0 0;
  text-transform: uppercase;
  text-align: right;
  padding-right: 0.5rem;
}

.timeline .t-mark {
  position: relative;
  display: grid;
  place-items: start center;
  padding-top: 0.7rem;
}
.timeline .t-mark span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(95,217,255,0.08), 0 0 12px rgba(95,217,255,0.4);
  transition: transform 260ms ease, background 240ms ease;
}
.timeline li:hover .t-mark span {
  transform: scale(1.25);
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(95,217,255,0.18), 0 0 20px var(--cyan);
}

.timeline .t-body { padding-top: 0.15rem; }
.timeline h3 {
  font-family: var(--serif);
  font-weight: 460;
  font-size: 1.4rem;
  letter-spacing: -0.018em;
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
.timeline li:hover h3 { color: var(--cyan); }
.timeline p:last-child {
  margin: 0;
  color: var(--ink-dim);
  max-width: 70ch;
  font-size: 0.98rem;
}

@media (max-width: 720px) {
  .timeline li { grid-template-columns: 24px 1fr; }
  .timeline .t-when { grid-column: 1 / -1; text-align: left; padding: 0; margin-bottom: 0.2rem; }
  .timeline .t-mark { padding-top: 0.4rem; }
}

.track-foot {
  margin: 2.4rem 0 0;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(135deg, rgba(95,217,255,0.06), rgba(58,125,255,0.03));
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-dim);
  font-size: 0.97rem;
  backdrop-filter: blur(8px);
}
.track-foot strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   thesis
   ============================================================ */
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 940px) {
  .thesis-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.pull {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  line-height: 1.18;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.018em;
  position: sticky; top: 90px;
}
.pull em {
  font-style: italic;
  color: var(--cyan);
  font-variation-settings: "opsz" 144, "SOFT" 90, "WONK" 1;
}
@media (max-width: 940px) { .pull { position: static; } }

.thesis-cards {
  display: grid;
  gap: 1rem;
}
.thesis-cards > div {
  position: relative;
  padding: 1.5rem 1.6rem 1.5rem 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: border-color 220ms ease, transform 220ms ease;
}
.thesis-cards > div:hover {
  border-color: rgba(95,217,255,0.4);
  transform: translateX(4px);
}
.thesis-num {
  position: absolute;
  top: 1.4rem; left: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cyan);
  font-weight: 500;
}
.thesis-cards h3 {
  font-family: var(--serif);
  font-weight: 460;
  font-size: 1.18rem;
  letter-spacing: -0.012em;
  margin: 0 0 0.4rem;
  color: var(--ice);
  font-variation-settings: "opsz" 36;
}
.thesis-cards p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.97rem;
}

/* ============================================================
   bona fides
   ============================================================ */
.proof-cols {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.proof-cols > div {
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: border-color 220ms ease, transform 220ms ease;
}
.proof-cols > div:hover {
  border-color: rgba(95,217,255,0.35);
  transform: translateY(-2px);
}
.proof-cols h3 {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--cyan);
  margin: 0 0 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
}
.proof-cols ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.5rem;
}
.proof-cols li {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 14;
  position: relative;
  padding-left: 1.2rem;
}
.proof-cols li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--cyan);
  opacity: 0.5;
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* ============================================================
   contact
   ============================================================ */
.contact-grid {
  list-style: none; padding: 0; margin: 0 0 2.4rem;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-grid li { border-bottom: 1px solid var(--line); }

.contact-grid a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.5rem 1.4rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: padding 280ms cubic-bezier(0.2,0.7,0.2,1), color 240ms ease;
}
.contact-grid a::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(95,217,255,0.08), transparent 60%);
  transform: translateX(-100%);
  transition: transform 320ms cubic-bezier(0.2,0.7,0.2,1);
  z-index: 0;
}
.contact-grid a > * { position: relative; z-index: 1; }
.contact-grid a:hover {
  color: var(--ice);
  padding-left: 2rem;
}
.contact-grid a:hover::before { transform: translateX(0); }

.c-num {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--cyan);
  width: 1.2em;
}
.c-stack { display: flex; flex-direction: column; gap: 0.15rem; }
.c-label {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  letter-spacing: -0.018em;
  font-weight: 460;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  line-height: 1.1;
}
.c-detail {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.contact-grid a:hover .c-detail { color: var(--ink-dim); }
.c-arrow {
  font-size: 1.3rem;
  color: var(--ink-mute);
  transition: transform 240ms ease, color 240ms ease;
}
.contact-grid a:hover .c-arrow {
  transform: translate(4px, -4px);
  color: var(--cyan);
}

.contact-note {
  color: var(--ink-dim);
  font-size: 0.97rem;
  max-width: 64ch;
  line-height: 1.65;
}
.contact-note strong { color: var(--ice); font-weight: 500; }
.contact-note em {
  color: var(--cyan);
  font-style: italic;
}

/* ============================================================
   footer
   ============================================================ */
.foot {
  border-top: 1px solid var(--line);
  padding: 2.2rem var(--gutter) 3rem;
  max-width: var(--max); margin: 0 auto;
  color: var(--ink-mute);
  font-size: 0.86rem;
}
.foot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 640px) { .foot-row { grid-template-columns: 1fr; } }
.foot p { margin: 0; }
.foot-fine {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
  line-height: 1.65;
}
.foot-fine a { color: var(--ink-mute); }
.foot-fine a:hover { color: var(--cyan); }

/* reveals removed — page has enough motion via orbs, signal, counters, hovers */

/* ============================================================
   blog — index + post pages
   ============================================================ */

/* shared narrow column for reading */
.post-main, .blog-index-main {
  position: relative; z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 4rem) var(--gutter) clamp(2rem, 5vh, 4rem);
}

/* ── blog index ── */
.blog-hero { padding: 0 0 clamp(2rem, 5vh, 4rem); border-bottom: 1px solid var(--line-soft); margin-bottom: 2rem; }
.blog-hero .display { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1rem; max-width: 16ch; }
.blog-hero .lede { max-width: 60ch; }

/* ── blog index — Fragile Future banner hero ── */
.blog-hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 3rem;
  padding: clamp(5rem, 12vh, 9rem) var(--gutter) clamp(4rem, 9vh, 7rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.blog-hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
}
.blog-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: saturate(1.05) brightness(1);
}
@media (max-width: 640px) {
  .blog-hero-bg img {
    object-position: 70% center;
  }
}
/* veil keeps text legible on the left side where text lives, but lets
   the planet + meteors stay visible on the right */
.blog-hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 110% at 15% 50%, rgba(11,13,20,0.78), rgba(11,13,20,0.35) 60%, rgba(11,13,20,0.05) 95%),
    linear-gradient(180deg, rgba(11,13,20,0.18) 0%, rgba(11,13,20,0.35) 70%, var(--bg) 100%);
}
.blog-hero-content {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}
.blog-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 1.6rem;
  padding: 0.4rem 0.85rem;
  background: rgba(11,13,20,0.55);
  border: 1px solid rgba(232,230,222,0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.blog-hero-title {
  font-family: var(--serif) !important;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem) !important;
  font-weight: 380 !important;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 1.4rem;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  max-width: 14ch;
  text-shadow: 0 2px 32px rgba(11,13,20,0.5);
}
.blog-hero-title em {
  color: var(--ice);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 90, "WONK" 1;
}
.blog-hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  color: var(--ice);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0 0 1.4rem;
  font-variation-settings: "opsz" 60, "SOFT" 60;
  max-width: 36ch;
  text-shadow: 0 1px 12px rgba(11,13,20,0.6);
}
.blog-hero-lede {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--ink-dim);
  max-width: 58ch;
  margin: 0;
  text-shadow: 0 1px 16px rgba(11,13,20,0.7);
}

@media (max-width: 640px) {
  .blog-hero-banner {
    padding: clamp(3.5rem, 9vh, 6rem) var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
  }
}

.blog-list { display: grid; gap: 0; }

.post-row { border-bottom: 1px solid var(--line-soft); }
.post-row:last-child { border-bottom: none; }
.post-row-link {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  color: var(--ink);
  text-decoration: none;
  transition: padding 240ms cubic-bezier(0.2,0.7,0.2,1);
}
.post-row-link:hover {
  padding-left: 0.8rem;
  text-decoration: none;
}
.post-row-thumb {
  width: 110px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.post-row-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 360ms cubic-bezier(0.2,0.7,0.2,1), filter 280ms ease;
  filter: saturate(0.85);
}
.post-row-link:hover .post-row-thumb img {
  transform: scale(1.04);
  filter: saturate(1);
}
.post-row-text { min-width: 0; }
.post-row:has(.post-row-thumb:empty) .post-row-link,
.post-row .post-row-link:not(:has(.post-row-thumb img)) {
  grid-template-columns: 1fr;
}
@media (max-width: 540px) {
  .post-row-link { grid-template-columns: 80px 1fr; gap: 1rem; }
  .post-row-thumb { width: 80px; }
}
.post-row-meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
}
.post-row-meta .meta-sep { margin: 0 0.5em; color: var(--ink-faint); }
.post-row-title {
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.018em;
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-variation-settings: "opsz" 60, "SOFT" 30;
  line-height: 1.18;
}
.post-row-link:hover .post-row-title { color: var(--cyan); }
.post-row-desc {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink-dim);
  margin: 0 0 0.7rem;
  max-width: 64ch;
  line-height: 1.55;
}
.post-row-tags { display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; }
.post-row-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.post-row-tag::before { content: "·"; margin-right: 0.5em; color: var(--ink-faint); }
.post-row-tags .post-row-tag:first-child::before { content: ""; margin: 0; }

.blog-foot {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* ============================================================
   email subscribe — used on blog index and at end of each post
   ============================================================ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.blog-subscribe {
  margin: 3rem 0 0;
  padding: 2.4rem 1.8rem;
  background: linear-gradient(180deg, rgba(127,168,211,0.05), rgba(127,168,211,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.blog-subscribe-inner { max-width: 48ch; margin: 0 auto; }
.blog-subscribe-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-mute);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.blog-subscribe-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 460;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 0.5rem;
  font-variation-settings: "opsz" 36, "SOFT" 30;
  line-height: 1.18;
}
.blog-subscribe-lede {
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink-dim);
  margin: 0 0 1.5rem;
}

.blog-subscribe-form,
.home-subscribe-form {
  display: flex;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0 auto 1rem;
}
.blog-subscribe-form input[type="email"],
.home-subscribe-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.7rem 0.95rem;
  background: rgba(11,13,20,0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 200ms ease, background 200ms ease;
}
.blog-subscribe-form input[type="email"]:focus,
.home-subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(11,13,20,0.85);
}
.blog-subscribe-form input[type="email"]::placeholder,
.home-subscribe-form input[type="email"]::placeholder { color: var(--ink-faint); }
.blog-subscribe-form button,
.home-subscribe-form button {
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.blog-subscribe-form button:hover,
.home-subscribe-form button:hover {
  background: transparent;
  color: var(--ink);
}
.blog-subscribe-form[data-placeholder="true"] {
  position: relative;
}
.blog-subscribe-form[data-placeholder="true"]::after {
  content: "Embed code goes here — see HTML comment";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.blog-subscribe-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin: 1.4rem 0 0;
}

@media (max-width: 480px) {
  .blog-subscribe-form,
  .home-subscribe-form { flex-direction: column; gap: 0.5rem; }
  .blog-subscribe-form input[type="email"],
  .blog-subscribe-form button,
  .home-subscribe-form input[type="email"],
  .home-subscribe-form button { width: 100%; }
}

/* operator-promise rule list — interleaved into thesis */
.thesis-promises {
  list-style: none;
  padding: 1.4rem 0 0;
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.95rem;
  grid-column: 1 / -1;
}
.thesis-promises li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.65rem;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
.thesis-promises li em {
  font-style: italic;
  color: var(--ice);
  font-variation-settings: "opsz" 36, "SOFT" 60, "WONK" 1;
}
.thesis-promises .tp-mark {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 1em;
  font-style: normal;
  line-height: 1.5;
}

/* civic-credibility line at the end of bona fides */
.proof-civic {
  margin: 2.6rem 0 0;
  padding: 1.4rem 1.6rem;
  border-left: 2px solid var(--cyan);
  border-radius: 0 6px 6px 0;
  background:
    linear-gradient(90deg, rgba(127,168,211,0.05), rgba(127,168,211,0) 70%),
    rgba(11,13,20,0.3);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.5;
  color: var(--ink-dim);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  letter-spacing: -0.005em;
}
.proof-civic b {
  font-weight: 460;
  color: var(--ice);
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
.proof-civic .pc-mark {
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--cyan);
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  flex: 0 0 auto;
}

/* ============================================================
   voices — paginated testimonials (3 desktop / 1 mobile)
   ============================================================ */
.voices { position: relative; z-index: 2; }
.voices-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}
@media (max-width: 960px) { .voices-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .voices-list { grid-template-columns: 1fr; gap: 1rem; } }

.voice {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  background: rgba(11,13,20,0.4);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  display: none;
  opacity: 0;
  transition: opacity 360ms ease;
  isolation: isolate;
}
.voice.is-shown { display: block; opacity: 1; }
.voice::before {
  content: "“";
  position: absolute;
  top: -0.6rem; left: 0.8rem;
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.45;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  pointer-events: none;
  z-index: -1;
}
.voice blockquote {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 1.04rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 24, "SOFT" 0;
}
.voice blockquote em {
  color: var(--ice);
  font-style: italic;
  font-variation-settings: "opsz" 36, "SOFT" 60, "WONK" 1;
}
.voice cite {
  display: block;
  font-style: normal;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-soft);
}
.voice cite b {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ice);
  letter-spacing: -0.005em;
  margin-bottom: 0.15rem;
}
.voice cite span {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  line-height: 1.4;
}

.voices-foot {
  margin: 2rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.voices-count {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin: 0;
}
.voices-count [data-voices-shown],
.voices-count [data-voices-total] { color: var(--ice); }
.voices-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.voices-more:hover { border-color: var(--cyan); }
.voices-more:active { background: rgba(127,168,211,0.06); }
.voices-more:disabled { opacity: 0.45; cursor: not-allowed; border-color: var(--line-soft); }
.voices-more-mark {
  font-family: var(--serif);
  color: var(--cyan);
  font-size: 1rem;
  line-height: 1;
}

/* ── homepage subscribe rail (Fragile Future nudge above the footer) ── */
.home-subscribe {
  position: relative;
  z-index: 2;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding: clamp(2.4rem, 6vh, 4rem) var(--gutter);
  background:
    radial-gradient(ellipse 70% 100% at 30% 0%, rgba(127,168,211,0.06), transparent 70%),
    rgba(11,13,20,0.5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
}
.home-subscribe-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.home-subscribe-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
}
.home-subscribe-title {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.28;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0 0 1.4rem;
  font-variation-settings: "opsz" 36, "SOFT" 30;
  max-width: 38ch;
}
.home-subscribe-title em {
  color: var(--ice);
  font-style: italic;
  font-variation-settings: "opsz" 60, "SOFT" 60, "WONK" 1;
}
.home-subscribe-form {
  max-width: 480px;
  margin: 0 0 0.9rem;
}
.home-subscribe-note {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin: 0;
}
.home-subscribe-note a { color: var(--ink-dim); text-decoration: underline; text-decoration-color: rgba(127,168,211,0.4); text-underline-offset: 0.2em; }
.home-subscribe-note a:hover { color: var(--ice); text-decoration-color: var(--cyan); }

/* ── post pages ── */
.post-back {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin: 0 0 2.2rem;
}
.post-back a { color: var(--ink-mute); }
.post-back a:hover { color: var(--cyan); }

.post-head { margin-bottom: 2.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line-soft); }
.post-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}
.post-meta .meta-sep { margin: 0 0.6em; color: var(--ink-faint); }

.post-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  max-width: 22ch;
}

.post-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem;
  list-style: none; padding: 0; margin: 0;
}
.post-tags li {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

/* hero image at top of post */
.post-hero {
  margin: 0 0 2.4rem;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  max-width: 100%;
}
.post-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* additional images at end of post */
.post-images {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  max-width: none;
}
.post-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.post-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* article body — editorial reading typography */
.post-body {
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 0;
  font-weight: 380;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink-dim);
  letter-spacing: -0.003em;
}
.post-body > * { max-width: 64ch; }
.post-body p { margin: 0 0 1.4rem; }
.post-body p:first-of-type { color: var(--ink); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body em { font-style: italic; color: var(--ice); }
.post-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(127,168,211,0.4);
}
.post-body a:hover { color: var(--ice); text-decoration-color: var(--cyan); }
.post-body h2 {
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin: 2.6rem 0 0.9rem;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
.post-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
  color: var(--ink);
}
.post-body ul, .post-body ol {
  margin: 0 0 1.4rem;
  padding-left: 1.2rem;
}
.post-body li { margin: 0 0 0.5rem; }
.post-body blockquote {
  margin: 1.6rem 0;
  padding: 0.4rem 0 0.4rem 1.2rem;
  border-left: 2px solid var(--cyan);
  font-style: italic;
  color: var(--ink);
}
.post-body blockquote p { margin: 0; }
.post-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--ice);
  background: var(--surface);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--line-soft);
}
.post-body hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 2.4rem 0;
  max-width: 64ch;
}

.post-foot {
  margin-top: 3.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}
.post-share {
  display: flex; flex-wrap: wrap; gap: 1rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-bottom: 2.4rem;
}
.post-share a { color: var(--ink-mute); }
.post-share a:hover { color: var(--cyan); }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.post-nav a {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 220ms ease, background 220ms ease;
}
.post-nav a:hover {
  border-color: var(--cyan);
  background: rgba(127,168,211,0.04);
  text-decoration: none;
}
.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; }
.post-nav-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-nav-title {
  font-family: var(--serif);
  font-weight: 460;
  font-size: 1rem;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.post-nav a:hover .post-nav-title { color: var(--cyan); }
.post-nav > span { display: none; }

@media (max-width: 560px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
}

/* ============================================================
   responsive niceties
   ============================================================ */
@media (max-width: 540px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head h2, .kicker { grid-column: 1; }
  .section-num { grid-row: 1; margin-top: 0; justify-self: start; }
}

/* ============================================================
   blog post — reading-experience layer
   (drop caps · pull-quotes · TOC · progress · mobile share)
   ============================================================ */

/* a faint cosmic echo behind the post head — ties to the planet hero
   on /blog/ without the weight of an image */
.post-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 100%);
  height: 320px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(127,168,211,0.08), transparent 60%),
    radial-gradient(ellipse 80% 70% at 30% 0%, rgba(94,131,172,0.05), transparent 70%);
  z-index: -1;
}

/* ── reading-progress (thin top bar, above topbar) ── */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(232,230,222,0.05);
  z-index: 100;
  pointer-events: none;
}
.read-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-deep), var(--ice));
  box-shadow: 0 0 8px rgba(127,168,211,0.5);
  transition: width 80ms linear;
  transform-origin: left;
}

/* ── drop cap on the first body paragraph ── */
/* skip when the first child is a TOC, aside, or other non-paragraph */
.post-body > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-weight: 420;
  font-size: 4.4em;
  line-height: 0.86;
  float: left;
  padding: 0.18em 0.12em 0 0;
  margin: 0.05em 0.08em -0.05em 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--ice) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── pull-quote / inline aside ──
   a single italicized line in the source becomes a quiet pull-quote */
.post-aside {
  position: relative;
  margin: 2.4rem -0.6rem 2.4rem;
  padding: 1.4rem 1.6rem 1.4rem 2.4rem;
  border-left: 1px solid var(--cyan);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: 1.32rem;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.008em;
  font-variation-settings: "opsz" 60, "SOFT" 60, "WONK" 1;
  max-width: none !important;
  background:
    linear-gradient(90deg, rgba(127,168,211,0.04), rgba(127,168,211,0) 70%);
}
.post-aside::before {
  content: "“";
  position: absolute;
  top: -0.35rem;
  left: 0.55rem;
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.5;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  pointer-events: none;
}
.post-aside p { margin: 0; max-width: 56ch; }

/* legacy blockquote (kept) — render as the same pull-quote treatment */
.post-body blockquote {
  margin: 2.4rem 0;
  padding: 1.2rem 1.4rem 1.2rem 2.2rem;
  border-left: 1px solid var(--cyan);
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.45;
  background:
    linear-gradient(90deg, rgba(127,168,211,0.04), rgba(127,168,211,0) 70%);
}

/* ── in-page TOC (only emitted for ≥800-word posts) ── */
.post-toc {
  margin: 2rem 0 2.4rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(127,168,211,0.025) 0%, transparent 100%),
    rgba(11,13,20,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: none !important;
}
.post-toc-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.post-toc-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  display: inline-block;
}
.post-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
  display: grid;
  gap: 0.05rem;
}
.post-toc-list li {
  counter-increment: toc-counter;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.96rem;
  line-height: 1.45;
}
.post-toc-list a {
  display: block;
  position: relative;
  padding: 0.55rem 0.4rem 0.55rem 2.4rem;
  color: var(--ink-dim);
  text-decoration: none;
  border-radius: 4px;
  transition: color 160ms ease, background 160ms ease;
  min-height: 36px;
}
.post-toc-list a::before {
  content: counter(toc-counter, decimal-leading-zero);
  position: absolute;
  left: 0.4rem;
  top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.post-toc-list a:hover,
.post-toc-list a:focus-visible {
  color: var(--ice);
  background: rgba(127,168,211,0.05);
  text-decoration: none;
}
.post-toc-list .toc-l3 a { padding-left: 3.2rem; }
.post-toc-list .toc-l3 a::before { left: 1.2rem; color: var(--ink-faint); opacity: 0.7; }
.post-toc-list .toc-l4 a { padding-left: 3.8rem; font-size: 0.9rem; color: var(--ink-mute); }
.post-toc-list .toc-l4 a::before { left: 1.8rem; opacity: 0.55; }

/* ── larger tag touch targets ── */
.post-tags { gap: 0.55rem 0.55rem; }
.post-tags li {
  font-size: 0.74rem;
  padding: 0.5rem 0.85rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(127,168,211,0.025);
  color: var(--ink-dim);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

/* ── headings get scroll-margin so TOC anchors don't slide under topbar ── */
.post-body h2,
.post-body h3,
.post-body h4 {
  scroll-margin-top: 80px;
}

/* ── mobile share-on-scroll mini-bar ── */
.post-share-mobile {
  display: none; /* shown via JS @ ≤740px after scroll past hero */
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, calc(100% + 1.4rem));
  z-index: 90;
  gap: 0.4rem;
  padding: 0.5rem;
  background: rgba(11,13,20,0.86);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(127,168,211,0.08) inset;
  transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 280ms ease;
  opacity: 0;
}
.post-share-mobile.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.share-mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ice);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.share-mobile-link svg { flex-shrink: 0; }
.share-mobile-link:hover,
.share-mobile-link:focus-visible {
  background: rgba(127,168,211,0.10);
  color: var(--ink);
  text-decoration: none;
}
.share-mobile-link.is-copied {
  background: rgba(207,209,166,0.18);
  color: var(--spark);
}
@media (max-width: 740px) {
  .post-share-mobile[data-mounted] { display: inline-flex; }
}

/* ── 390x844 (iPhone-14-class) typography spacing audit ── */
@media (max-width: 480px) {
  .post-main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 1.6rem;
    padding-bottom: 7rem; /* room for mobile share-bar */
  }
  .post-back { margin-bottom: 1.6rem; }
  .post-head {
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
  }
  .post-meta { font-size: 0.72rem; line-height: 1.55; }
  .post-meta .meta-sep { margin: 0 0.45em; }
  .post-title {
    font-size: clamp(1.95rem, 8.6vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.024em;
    margin-bottom: 1rem;
  }
  .post-tags li {
    font-size: 0.72rem;
    padding: 0.45rem 0.8rem;
  }
  .post-body {
    font-size: 1.06rem;
    line-height: 1.66;
  }
  .post-body p { margin: 0 0 1.2rem; }
  .post-body h2 {
    font-size: 1.34rem;
    line-height: 1.22;
    margin: 2.2rem 0 0.7rem;
    letter-spacing: -0.014em;
  }
  .post-body h3 {
    font-size: 1.14rem;
    margin: 1.7rem 0 0.5rem;
  }
  .post-body > p:first-of-type::first-letter {
    font-size: 3.8em;
    padding-right: 0.1em;
  }
  .post-aside {
    margin: 1.8rem -0.25rem;
    padding: 1.1rem 1.1rem 1.1rem 1.8rem;
    font-size: 1.16rem;
    line-height: 1.42;
  }
  .post-aside::before {
    font-size: 2.6rem;
    top: -0.2rem;
    left: 0.35rem;
  }
  .post-toc {
    margin: 1.6rem -0.25rem 2rem;
    padding: 1rem 1rem;
  }
  .post-toc-list a { font-size: 0.92rem; padding: 0.6rem 0.4rem 0.6rem 2.2rem; }
  .post-share { gap: 0.7rem 1.1rem; font-size: 0.78rem; }
  .post-share a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.2rem 0;
  }
  .post-nav a { padding: 0.85rem 0.95rem; }
  .post-nav-title { font-size: 0.94rem; }
}

/* desktop and tablet: hide mobile share-bar entirely */
@media (min-width: 741px) {
  .post-share-mobile { display: none !important; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .read-progress-bar { transition: none; }
  .post-share-mobile { transition: none; }
}
