/* ═══════════════════════════════════════════════════
   DESIGN TOKENS — OKLCH editorial palette (post-/impeccable shape)
═══════════════════════════════════════════════════ */
:root {
  /* Editorial palette: 4 named roles per the design brief */
  --paper:         oklch(0.972 0.006 75);   /* ground — warm cream */
  --ink:           oklch(0.18 0.018 245);   /* body, structure — warm near-black */
  --oxblood:       oklch(0.42 0.155 28);    /* emphasis, signature, brand mark */
  --ochre:         oklch(0.72 0.135 78);    /* live data, signal accent */
  --dark-ink:      oklch(0.155 0.014 245);  /* alternate ground for live-data sections */
  --cream-on-dark: oklch(0.92 0.009 75);    /* body on dark register */

  /* Backgrounds (legacy aliases mapped onto the new palette) */
  --bg:      var(--paper);
  --bg2:     oklch(0.945 0.008 75);
  --card:    oklch(0.955 0.007 75);
  --white:   oklch(0.985 0.005 70);

  /* Borders — tinted ink */
  --border:  oklch(0.85 0.012 75);
  --border2: oklch(0.78 0.014 70);

  /* Text — alias to ink so legacy uses inherit the new palette */
  --text:    var(--ink);
  --dim:     oklch(0.45 0.014 245);
  --subtle:  oklch(0.58 0.012 245);

  /* Brand emphasis — oxblood replaces the old Prussian Blue accent */
  --accent:  var(--oxblood);
  --accent2: oklch(0.36 0.15 28);

  /* Live-data accent — ochre replaces the old teal */
  --teal:    var(--ochre);
  --teal-bg: color-mix(in srgb, var(--ochre) 8%, transparent);
  --teal-br: color-mix(in srgb, var(--ochre) 22%, transparent);
  --teal-bright: oklch(0.78 0.14 78);

  /* Soft accent kept for residual gradient (will be removed later) */
  --lavender: oklch(0.92 0.022 290);

  /* Dark register — for signals.html and live-data sections */
  --dark:         var(--dark-ink);
  --dark-surface: oklch(0.205 0.012 245);
  --dark-border:  color-mix(in srgb, var(--cream-on-dark) 12%, transparent);
  --dark-dim:     color-mix(in srgb, var(--cream-on-dark) 70%, transparent);
  --dark-text:    var(--cream-on-dark);

  /* Spacing */
  --section-pad: 72px;
  --container:   1120px;

  /* Transitions */
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.8s;
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(47, 72, 88, 0.12);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════
   TYPOGRAPHY SCALE
═══════════════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}

h2 { font-size: clamp(38px, 5.5vw, 60px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; line-height: 1.2; }
h4 { font-size: 19px; font-weight: 600; line-height: 1.3; }

p {
  color: var(--dim);
  line-height: 1.8;
}
/* Justify only in wide reading columns where word-spacing has room to balance.
   Narrow columns (hero bio, sidebar) read worse when justified. */
.about-ch-body p,
.blog-body p,
.hz-thesis-body {
  text-align: justify;
  hyphens: auto;
}
/* Hero bio is narrow on purpose — never justify */
.hero-editorial-section .hero-bio {
  text-align: left;
}

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

strong { color: var(--text); font-weight: 600; }

/* Section label — JetBrains Mono, small caps */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-inline-end: 10px;
  opacity: 0.65;
}
.section-label.light { color: rgba(0, 130, 155, 0.65); }
.section-label.light::before { opacity: 0.75; }

.section-sub {
  color: var(--dim);
  font-size: 18px;
  max-width: 560px;
  margin-top: 18px;
  margin-bottom: 60px;
  line-height: 1.7;
}
.section-sub.light { color: var(--dark-dim); }

/* ═══════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: clamp(40px, 6vw, var(--section-pad)) 0; }

/* Sand / cream alternate sections */
.section-sand { background: var(--bg2); }

/* Soft surrealism gradient — AI / data sections */
.section-gradient {
  background: linear-gradient(155deg, var(--bg) 55%, var(--lavender) 100%);
}

/* Dark sections */
.section-dark { background: var(--dark); }
.section-dark h2 { color: var(--dark-text); }
.section-dark h4 { color: var(--dark-text); }

/* Dot grid texture on all dark sections — matches hero::before */
.section-dark,
.section-positions {
  background-size: 30px 30px;
}

/* Utility */
h2.light { color: var(--dark-text); }

/* ═══════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}

#nav.scrolled {
  background: rgba(249, 248, 246, 0.72);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo — defaults to ink for light-register (paper) pages */
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  transition: color var(--duration-normal);
}
.nav-logo span { color: var(--oxblood); }
/* Dark-register pages (signals, horizon2040, equity-research, fund-screening,
   angel-one, all hz-thesis sub-pages) flip the nav to cream-on-dark */
body:has(.signals-hero) .nav-logo,
body:has(.hz-hero) .nav-logo,
body:has(.er-hero) .nav-logo,
body:has(.fs-hero) .nav-logo,
body:has(.cm-hero) .nav-logo,
body:has(.os-hero) .nav-logo { color: var(--cream-on-dark); }
#nav.scrolled .nav-logo { color: var(--ink); }

/* Links */
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  letter-spacing: 0.2px;
  transition: color var(--duration-fast);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--oxblood); }
.nav-links a.nav-spy-active,
.nav-links a.nav-active { color: var(--oxblood) !important; }

/* Dark-register pages flip nav links to cream-on-dark */
body:has(.signals-hero) .nav-links a,
body:has(.hz-hero) .nav-links a,
body:has(.er-hero) .nav-links a,
body:has(.fs-hero) .nav-links a,
body:has(.cm-hero) .nav-links a,
body:has(.os-hero) .nav-links a {
  color: color-mix(in srgb, var(--cream-on-dark) 80%, transparent);
}
body:has(.signals-hero) .nav-links a:hover,
body:has(.hz-hero) .nav-links a:hover,
body:has(.er-hero) .nav-links a:hover,
body:has(.fs-hero) .nav-links a:hover,
body:has(.cm-hero) .nav-links a:hover,
body:has(.os-hero) .nav-links a:hover { color: var(--ochre); }
body:has(.signals-hero) .nav-links a.nav-active,
body:has(.hz-hero) .nav-links a.nav-active,
body:has(.er-hero) .nav-links a.nav-active,
body:has(.fs-hero) .nav-links a.nav-active,
body:has(.cm-hero) .nav-links a.nav-active,
body:has(.os-hero) .nav-links a.nav-active { color: var(--ochre) !important; }

#nav.scrolled .nav-links a { color: color-mix(in srgb, var(--ink) 75%, transparent); }
#nav.scrolled .nav-links a:hover { color: var(--oxblood); }
#nav.scrolled .nav-links a.nav-spy-active,
#nav.scrolled .nav-links a.nav-active { color: var(--oxblood) !important; }

/* CTA button in nav */
.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 9px 20px !important;
  font-size: 13px !important;
  border: 1px solid var(--accent);
  transition: background var(--duration-fast), border-color var(--duration-fast) !important;
}
.nav-cta:hover {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: white !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: color-mix(in srgb, var(--white) 80%, transparent);
  transition: background var(--duration-normal), transform var(--duration-normal);
  transform-origin: center;
}
#nav.scrolled .hamburger span { background: var(--text); }

/* Mobile Menu — off-canvas drawer (replaces full-screen modal) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 80vw);
  background: var(--paper);
  border-left: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  box-shadow: -16px 0 48px color-mix(in srgb, var(--ink) 14%, transparent);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 96px 32px 32px;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* Backdrop that closes the drawer when tapped outside */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  font-size: 24px;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  cursor: pointer;
  transition: color var(--duration-fast);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-close:hover { color: var(--oxblood); }

.mobile-menu ul { list-style: none; text-align: left; padding: 0; }
.mobile-menu ul li {
  margin-bottom: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.mobile-menu ul li:last-child { border-bottom: none; }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
  min-height: 44px;
}
.mobile-menu a:hover,
.mobile-menu a:focus-visible { color: var(--oxblood); }

/* Hamburger touch-target compliance: 44x44 minimum */
.hamburger {
  min-width: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

/* (legacy 42px white-on-Prussian-Blue mobile menu styles removed in adapt) */

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
  border-radius: 6px;
  white-space: nowrap;

  &-primary {
    background: color-mix(in srgb, var(--white) 96%, transparent);
    color: var(--dark);
    border-color: color-mix(in srgb, var(--white) 96%, transparent);

    &:hover {
      background: var(--teal);
      border-color: var(--teal);
      color: white;
    }

    &:focus-visible {
      outline: 2px solid var(--teal);
      outline-offset: 3px;
    }
  }

  &-ghost {
    background: transparent;
    color: color-mix(in srgb, var(--white) 78%, transparent);
    border-color: color-mix(in srgb, var(--white) 28%, transparent);

    &:hover {
      color: color-mix(in srgb, var(--white) 96%, transparent);
      border-color: color-mix(in srgb, var(--white) 52%, transparent);
      background: color-mix(in srgb, var(--white) 5%, transparent);
    }

    &:focus-visible {
      outline: 2px solid var(--teal);
      outline-offset: 3px;
    }
  }
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
/* (legacy #hero dark/glow/dot-grid removed in bolder — replaced by .hero-editorial-section) */
.hero-content { position: relative; z-index: 1; }

/* Eyebrow */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 57.99999999999999%, transparent);
  display: block;
  margin-bottom: 28px;
  animation: heroFadeUp var(--duration-slow) ease both;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  vertical-align: middle;
  margin-inline-end: 10px;
  opacity: 0.75;
}

/* Name */
.hero-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(68px, 10.5vw, 124px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -4px;
  color: color-mix(in srgb, var(--white) 93%, transparent);
  margin-bottom: 20px;
  animation: heroFadeUp var(--duration-slow) 0.08s ease both;
  /* Overlap left into the photo sky */
  position: relative;
  z-index: 10;
  margin-inline-start: -13vw;
}
.hero-name em {
  font-style: italic;
  color: color-mix(in srgb, var(--white) 55.00000000000001%, transparent);
}

/* Stacked identity roles (replaces subtitle) */
.hero-identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
  animation: heroFadeUp var(--duration-slow) 0.16s ease both;
}
.hero-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 55.00000000000001%, transparent);
}
.hero-role--teal { color: rgb(from var(--teal) r g b / 90%); }
.hero-role--dim  { color: color-mix(in srgb, var(--white) 45%, transparent); }

.hero-teal { color: rgb(from var(--teal) r g b / 90%); }

/* Description — pull-quote with teal left rule */
.hero-desc {
  font-size: 17px;
  color: color-mix(in srgb, var(--white) 66%, transparent);
  max-width: 440px;
  margin-bottom: 24px;
  line-height: 1.78;
  padding-inline-start: 18px;
  border-inline-start: 1.5px solid rgba(0, 95, 115, 0.55);
  animation: heroFadeUp var(--duration-slow) 0.24s ease both;
}

/* CTAs */
.hero-ctas {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
  animation: heroFadeUp var(--duration-slow) 0.32s ease both;
}

/* Email link — mono underline style */
.hero-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--white) 57.99999999999999%, transparent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 95, 115, 0.4);
  padding-bottom: 2px;
  transition: color var(--duration-normal) ease, border-color var(--duration-normal) ease;
}
.hero-email:hover {
  color: rgb(from var(--teal) r g b / 90%);
  border-color: rgb(from var(--teal) r g b / 70%);
}

/* Stats — 2×2 data grid */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: color-mix(in srgb, var(--white) 6%, transparent);
  animation: heroFadeUp var(--duration-slow) 0.44s ease both;
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
}

.stat {
  background: var(--dark);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid color-mix(in srgb, var(--white) 7.000000000000001%, transparent);
}
.stat:nth-child(1) { border-top-color: var(--teal); }
.stat:nth-child(2) { border-top-color: rgba(0, 95, 115, 0.45); }
.stat:nth-child(3) { border-top-color: rgba(0, 95, 115, 0.25); }
.stat:nth-child(4) { border-top-color: color-mix(in srgb, var(--white) 8%, transparent); }

.stat-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  color: var(--teal-bright);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.stat-num sup  { font-size: 0.45em; color: color-mix(in srgb, var(--white) 50%, transparent); vertical-align: super; }
.stat-num small { font-size: 0.52em; color: color-mix(in srgb, var(--white) 50%, transparent); }

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: color-mix(in srgb, var(--white) 55.00000000000001%, transparent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Vertical teal seam — connects photo and content sides */
.hero-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0, 95, 115, 0.5) 35%, rgba(0, 95, 115, 0.5) 65%, transparent);
  pointer-events: none;
  z-index: 3;
}

/* Remove old stat-divider */
.stat-divider {
  display: none;
}

/* ─── HERO GRID — 2-column with photo ─── */
.hero-grid {
  display: grid;
  grid-template-columns: 50vw 1fr;
  align-items: stretch;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  /* align text with the rest of the site's container */
  padding: 0 max(40px, calc((100vw - 1120px) / 2 + 40px)) 0 40px;
}

/* Photo panel — left column */
.hero-photo {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: flex-end;  /* push photo to right edge */
  align-items: stretch;
  /* Sky-blue gradient fills the left gap where photo doesn't reach */
  background: linear-gradient(to right, #141414 0%, #3a5570 20%, #587fa0 55%, #6a8fb2 100%);
}

.hero-photo img {
  position: relative;
  height: 100%;
  width: auto;        /* natural width from aspect ratio */
  max-width: 100%;    /* never exceed container */
  object-fit: cover;
  object-position: 50% 20%; /* center face, show more sky above */
  display: block;
  filter: blur(0.3px);
  /* Fade right edge, bottom, AND left edge into background */
  -webkit-mask-image:
    linear-gradient(to left,  transparent 0%, color-mix(in srgb, #000000 50%, transparent) 18%, color-mix(in srgb, #000000 85%, transparent) 32%, black 48%),
    linear-gradient(to top,   transparent 0%, color-mix(in srgb, #000000 60%, transparent) 22%, black 48%),
    linear-gradient(to right, transparent 0%, color-mix(in srgb, #000000 60%, transparent) 10%, black 28%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to left,  transparent 0%, color-mix(in srgb, #000000 50%, transparent) 18%, color-mix(in srgb, #000000 85%, transparent) 32%, black 48%),
    linear-gradient(to top,   transparent 0%, color-mix(in srgb, #000000 60%, transparent) 22%, black 48%),
    linear-gradient(to right, transparent 0%, color-mix(in srgb, #000000 60%, transparent) 10%, black 28%);
  mask-composite: intersect;
}

/* Bottom fade — just enough to blend into section edge */
.hero-photo::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(to bottom, transparent, var(--dark));
  pointer-events: none;
  z-index: 2;
}

/* Mobile: hide photo, collapse to single column */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    display: none;
  }
  .hero-name {
    margin-inline-start: 0;
  }
  .hero-left {
    padding: 0 22px;
  }
}

/* ═══════════════════════════════════════════════════
   ABOUT — Design C: Numbered Chapters
═══════════════════════════════════════════════════ */

/* Header: headline left, label right */
.about-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  gap: 40px;
}
.about-header h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin: 0;
  max-width: 580px;
}

/* Two-column: chapters | credentials */
.about-chapters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  align-items: start;
}

/* Left: chapters */
.about-chapters {
  border-inline-end: 1px solid var(--border);
  padding-inline-end: 60px;
}

.about-chapter {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 20px;
  padding: 28px 0;
  border-bottom: 1px solid color-mix(in srgb, #000000 6%, transparent);
  align-items: start;
}
.about-chapter:last-child { border-bottom: none; }

.about-ch-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 52px;
  font-weight: 800;
  color: rgb(from var(--teal) r g b / 14.000000000000002%);
  line-height: 1;
  letter-spacing: -2px;
  padding-top: 4px;
  user-select: none;
}

.about-ch-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.about-ch-body p {
  font-size: 14px;
  line-height: 1.82;
  color: var(--dim);
  margin: 0;
  text-align: left;
}

/* Right: credentials */
.about-cred-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 28px;
}

.about-cred-col-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

/* Methodology block — sits below credentials in About section */
.about-methodology {
  margin-top: 24px;
  padding: 24px 20px;
  background: rgb(from var(--teal) r g b / 4%);
  border: 1px solid rgb(from var(--teal) r g b / 12%);
  border-radius: 10px;
}

.about-methodology-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.about-methodology h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.about-methodology p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--dim);
  margin: 0 0 16px 0;
}

.about-methodology-layers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.about-methodology-layer {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--dim);
}

.about-methodology-layer-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--teal);
  font-weight: 500;
  flex-shrink: 0;
  width: 16px;
}

.about-methodology-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgb(from var(--teal) r g b / 25%);
  padding-bottom: 1px;
  transition: border-color var(--duration-fast);
}

.about-methodology-link:hover {
  border-color: var(--teal);
}

/* Mobile */
@media (max-width: 900px) {
  .about-header { flex-direction: column; gap: 8px; }
  .about-chapters-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-chapters { border-inline-end: none; padding-inline-end: 0; border-bottom: 1px solid var(--border); padding-bottom: 40px; }
  .about-cred-col { padding-top: 0; }
  .about-ch-num { font-size: 36px; }
}

/* Tags */
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--dim);
  padding: 6px 13px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3px;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tag-teal {
  background: var(--teal-bg);
  border-color: var(--teal-br);
  color: var(--teal);
}
.tag-teal:hover { border-color: var(--teal); }

/* Credential cards */
.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cred-card {
  background: color-mix(in srgb, var(--white) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 92%, transparent);
  box-shadow: 0 2px 20px color-mix(in srgb, #000000 6%, transparent), inset 0 1px 0 color-mix(in srgb, var(--white) 100%, transparent);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
  cursor: default;
}
.cred-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 28px rgba(47, 72, 88, 0.08);
  transform: translateY(-1px);
}
.cred-card.featured {
  border-inline-start: 2px solid var(--teal);
}

.cred-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

.cred-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 5px;
}
.cred-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.35;
}
.cred-sub {
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════
   EXPERIENCE
═══════════════════════════════════════════════════ */
.exp-list {
  margin-top: 56px;
}

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 52px;
  padding: 52px 16px 52px 20px;
  margin-inline-start: -20px;
  margin-inline-end: -16px;
  border-bottom: 1px solid var(--border);
  border-inline-start: 3px solid transparent;
  transition: background 0.28s ease, border-color 0.28s ease;

  &:first-child { border-top: 1px solid var(--border); }
  
  &:hover {
    background: rgba(0, 95, 115, 0.028);
    border-inline-start-color: var(--teal);
  }
}

.exp-meta { padding-top: 4px; }

.exp-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  font-weight: 500;
}
.exp-location {
  font-size: 12px;
  color: var(--subtle);
}

.exp-role {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.exp-company {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.exp-badge {
  display: inline-block;
  background: var(--teal-bg);
  border: 1px solid var(--teal-br);
  color: var(--teal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.exp-desc {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 18px;
}
.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.exp-bullets li {
  font-size: 15px;
  color: var(--dim);
  padding-inline-start: 18px;
  position: relative;
  line-height: 1.65;
}
.exp-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--border2);
}

/* ═══════════════════════════════════════════════════
   PROJECTS — BENTO GRID
═══════════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 0;
}

.bento-card {
  background: color-mix(in srgb, var(--white) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 92%, transparent);
  box-shadow: 0 2px 20px color-mix(in srgb, #000000 6%, transparent), inset 0 1px 0 color-mix(in srgb, var(--white) 100%, transparent),
              inset 3px 0 0 transparent; /* teal left border on hover — no layout shift */
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  cursor: default;

  &:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 44px rgba(0, 95, 115, 0.12),
                inset 0 1px 0 color-mix(in srgb, var(--white) 100%, transparent),
                inset 3px 0 0 var(--teal); /* teal left border on hover */
    transform: translateY(-3px);
  }
}

/* Full-width featured card — gradient top accent */
.bento-featured {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
}
.bento-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), rgba(0, 95, 115, 0) 65%);
  pointer-events: none;
  z-index: 1;
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Status badge */
.proj-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid;
}
.proj-badge.active {
  color: var(--teal);
  border-color: var(--teal-br);
  background: var(--teal-bg);
}
.proj-badge.planned {
  color: var(--subtle);
  border-color: var(--border);
  background: var(--card);
}

.proj-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bento-card h3 {
  color: var(--text);
  line-height: 1.25;
}
.bento-featured h3 { font-size: clamp(22px, 2.5vw, 30px); }

.bento-card p {
  font-size: 16px;
  line-height: 1.72;
  flex: 1;
}

/* Tech stack tags */
.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}
.stack-tag {
  background: var(--card);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  padding: 4px 11px;
  letter-spacing: 0.3px;
}
.stack-accent {
  background: rgba(47, 72, 88, 0.06);
  border-color: rgba(47, 72, 88, 0.18);
  color: var(--accent);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 60px;
  margin-top: 56px;
}

.skills-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--dim);
  padding: 6px 13px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3px;
  transition: border-color var(--duration-fast), color var(--duration-fast);
  cursor: default;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.skill-strong {
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border-color: var(--border2);
}

.skill-teal {
  background: var(--teal-bg);
  border-color: var(--teal-br);
  color: var(--teal);
}
.skill-teal:hover { border-color: var(--teal); }

/* Project card link — button style for clear discoverability */
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 4px;
  padding: 11px 20px;
  border: 1px solid var(--teal-br);
  border-radius: 3px;
  background: var(--teal-bg);
  text-decoration: none;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), gap var(--duration-fast);
  align-self: flex-start;
}
.proj-link:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════
   RESEARCH STRIP
═══════════════════════════════════════════════════ */
.research-strip {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.research-item {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  background: color-mix(in srgb, var(--white) 62%, transparent);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 95, 115, 0.10), 0 2px 8px color-mix(in srgb, #000000 4%, transparent);
    border-color: var(--teal-br);

    .research-accent { width: 8px; }
    .research-title { color: var(--teal); }
    .research-arrow {
      opacity: 1;
      transform: translateX(0);
      color: var(--teal);
    }
  }
}

.research-accent {
  width: 4px;
  min-height: 100%;
  background: var(--teal);
  flex-shrink: 0;
  transition: width 0.22s ease;
}

.research-body {
  flex: 1;
  padding: 28px 32px;
}

.research-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  display: block;
  margin-bottom: 8px;
}

.research-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 8px;
  transition: color 0.22s ease;
}

.research-desc {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}

.research-arrow {
  display: flex;
  align-items: center;
  padding: 0 32px;
  font-size: 24px;
  color: var(--subtle);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

@media (max-width: 600px) {
  .research-body {
    padding: 20px;
  }
  .research-arrow {
    padding: 0 16px;
    opacity: 1;
    transform: translateX(0);
  }
  .research-title {
    font-size: 20px;
  }
}


/* ═══════════════════════════════════════════════════
   POSITIONS (THESES) — dark section
═══════════════════════════════════════════════════ */
.section-positions {
  background: var(--dark);
  /* dot texture inherited from shared .section-dark / .section-positions rule above */
}
.section-positions .section-label {
  color: color-mix(in srgb, var(--white) 50%, transparent);
}
.section-positions h2 {
  color: var(--dark-text);
}
.section-positions .section-sub {
  color: var(--dark-dim);
}

/* ─── Positions: editorial stacked layout ─── */
.theses-editorial {
  margin-top: 56px;
}

.thesis-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  padding: 56px 40px;
  border-bottom: 1px solid color-mix(in srgb, var(--white) 7.000000000000001%, transparent);
  align-items: start;
  margin: 0 -40px;
  transition: background 0.35s ease;
  cursor: default;
}
.thesis-row:first-child {
  border-top: 1px solid color-mix(in srgb, var(--white) 7.000000000000001%, transparent);
}
.thesis-row:hover {
  background: color-mix(in srgb, var(--white) 2%, transparent);
}

/* Number column */
.thesis-number-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 4px;
  position: sticky;
  top: 100px;
}

.thesis-num-large {
  font-family: 'Fraunces', serif;
  font-size: clamp(56px, 6vw, 80px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--teal-bright);
  opacity: 0.85;
  display: block;
}

.thesis-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 55.00000000000001%, transparent);
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--white) 15%, transparent);
  white-space: nowrap;
}

/* Content column */
.thesis-content-col {
  max-width: 720px;
}

.thesis-accent-line {
  width: 32px;
  height: 2px;
  background: var(--teal);
  opacity: 0.5;
  margin-bottom: 24px;
  transition: width 0.4s ease, opacity 0.4s ease;
}
.thesis-row:hover .thesis-accent-line {
  width: 56px;
  opacity: 1;
}

/* Pull-quote claim */
.thesis-claim {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--dark-text);
  margin: 0 0 28px 0;
  padding: 0;
  border: none;
}

/* Evidence section */
.thesis-evidence-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 55.00000000000001%, transparent);
  display: block;
  margin-bottom: 12px;
}

.thesis-evidence p {
  font-size: 16px;
  line-height: 1.78;
  color: color-mix(in srgb, var(--white) 72%, transparent);
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   CURRENTLY — sand section
═══════════════════════════════════════════════════ */
/* ─── Currently / Now: asymmetric bento ─── */
.now-bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-top: 56px;
}

/* Shared card */
.now-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px 30px 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.now-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(47, 72, 88, 0.08);
}

.now-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--teal);
  text-transform: uppercase;
  display: block;
  margin-bottom: 22px;
}

/* ── Reading: bookshelf ── */
.now-reading { grid-column: 1 / 2; grid-row: 1 / 2; }

.now-book-list { display: flex; flex-direction: column; }

.now-book {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity var(--duration-normal) ease;
}
a.now-book:hover { opacity: 0.7; }
.now-book:first-child { padding-top: 0; }
.now-book:last-child  { border-bottom: none; padding-bottom: 0; }

.now-book-title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  grid-column: 1; grid-row: 1;
  line-height: 1.3;
}
.now-book-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.5px;
  grid-column: 2; grid-row: 1;
  align-self: center;
  text-align: right;
}
.now-book-note {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
  grid-column: 1; grid-row: 2;
  opacity: 0.8;
}
.now-book-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-bg, rgba(0, 95, 115, 0.08));
  padding: 2px 7px;
  border-radius: 3px;
  grid-column: 2; grid-row: 2;
  align-self: start;
  justify-self: end;
  white-space: nowrap;
}

/* ── Tracking: pulse indicators ── */
.now-tracking { grid-column: 2 / 3; grid-row: 1 / 3; }

.now-signal-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
}
.now-signal-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
}
.now-signal-list li:first-child { padding-top: 0; }
.now-signal-list li:last-child  { border-bottom: none; padding-bottom: 0; }

.now-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
}
.now-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  opacity: 0;
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
.now-signal-list li:nth-child(2) .now-pulse::after { animation-delay: 0.4s; }
.now-signal-list li:nth-child(3) .now-pulse::after { animation-delay: var(--duration-slow); }
.now-signal-list li:nth-child(4) .now-pulse::after { animation-delay: 1.2s; }
.now-signal-list li:nth-child(5) .now-pulse::after { animation-delay: 1.6s; }
.now-signal-list li:nth-child(6) .now-pulse::after { animation-delay: 2.0s; }
.now-signal-list li:nth-child(7) .now-pulse::after { animation-delay: 2.4s; }
.now-signal-list li:nth-child(8) .now-pulse::after { animation-delay: 2.8s; }

.now-signal-link {
  display: inline-block;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--teal);
  text-decoration: none;
  transition: opacity var(--duration-normal) ease;
}
.now-signal-link:hover { opacity: 0.7; }

/* ── Building: progress bars ── */
.now-building { grid-column: 1 / 2; grid-row: 2 / 3; }

.now-build-list { display: flex; flex-direction: column; gap: 20px; }
.now-build-item { display: flex; flex-direction: column; gap: 6px; }
.now-build-header { display: flex; justify-content: space-between; align-items: center; }

.now-build-name { font-size: 15px; font-weight: 600; color: var(--text); }

.now-build-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 3px 8px;
  border: 1px solid var(--border);
}
.now-build-live {
  color: var(--teal);
  border-color: var(--teal-br);
  background: var(--teal-bg);
}

.now-build-detail { font-size: 13px; color: var(--dim); }

.now-progress-track {
  width: 100%; height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.now-progress-bar {
  height: 100%;
  width: var(--progress, 0%);
  background: var(--teal);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.now-progress-complete {
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}

/* Progress bar initial state — GSAP animates width */

/* ── Thinking About: full-width contemplative ── */
.now-thinking {
  grid-column: 1 / -1;
  border-inline-start: 2px solid var(--teal);
}

.now-thoughts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}

.now-thought {
  font-size: 14px;
  line-height: 1.7;
  color: var(--dim);
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--border);
  margin: 0;
  font-style: italic;
}
.now-thought::before {
  content: '?';
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 800;
  font-style: normal;
  color: var(--teal);
  opacity: 0.20;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════
   BLOG / WRITING
═══════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.blog-card {
  background: color-mix(in srgb, var(--white) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 92%, transparent);
  box-shadow: 0 2px 16px color-mix(in srgb, #000000 5%, transparent), inset 0 1px 0 color-mix(in srgb, var(--white) 100%, transparent),
              inset 3px 0 0 transparent;
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
  cursor: default;
}
.blog-card:hover {
  border-color: color-mix(in srgb, var(--white) 96%, transparent);
  box-shadow: 0 8px 32px rgba(0, 95, 115, 0.10),
              inset 0 1px 0 color-mix(in srgb, var(--white) 100%, transparent),
              inset 3px 0 0 var(--teal);
  transform: translateY(-2px);
}

.blog-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--subtle);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 3px 10px;
  width: fit-content;
}

.blog-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.blog-card h3 {
  font-size: 18px;
  color: var(--text);
  line-height: 1.3;
  font-weight: 600;
}
.blog-card p {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.68;
  flex: 1;
}

/* Live blog post link cards */
.blog-card-link {
  cursor: pointer;
  display: flex;
  text-decoration: none;
}
.blog-card-link:hover {
  border-color: color-mix(in srgb, var(--white) 96%, transparent);
  box-shadow: 0 8px 32px rgba(0, 95, 115, 0.12),
              inset 0 1px 0 color-mix(in srgb, var(--white) 100%, transparent),
              inset 3px 0 0 var(--teal);
  transform: translateY(-2px);
}
.blog-card-link:hover h3 {
  color: var(--teal);
}
.blog-card-link h3 {
  transition: color 0.22s;
}

.blog-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, #000000 40%, transparent);
  display: block;
  margin-bottom: 6px;
}

/* Live status badge variant */
.blog-status-live {
  color: var(--teal);
  background: var(--teal-bg);
  border-color: var(--teal-br);
}

/* ═══════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════ */
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* Make the closing statement commanding */
#contact h2 {
  font-size: clamp(52px, 6.5vw, 84px);
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.contact-sub {
  color: color-mix(in srgb, var(--white) 65%, transparent);
  font-size: 17px;
  line-height: 1.72;
  margin: 24px auto 56px;
  max-width: 520px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--white) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 14.000000000000002%, transparent);
  border-radius: 6px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  color: color-mix(in srgb, var(--white) 78%, transparent);
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s;
}
.contact-link:hover {
  background: color-mix(in srgb, var(--white) 12%, transparent);
  border-color: color-mix(in srgb, var(--white) 32%, transparent);
  color: color-mix(in srgb, var(--white) 96%, transparent);
  transform: translateY(-2px);
}

/* Email reveal button — matches contact-link but is a <button> */
button.contact-link {
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.contact-email-reveal .email-hidden-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--white) 50%, transparent);
}
.contact-email-reveal.revealed {
  border-color: rgba(0, 95, 115, 0.5);
  background: rgba(0, 95, 115, 0.08);
}
.contact-email-reveal.revealed .email-hidden-text {
  color: rgb(from var(--teal) r g b / 90%);
}

/* Hero email button */
button.hero-email {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
button.hero-email.revealed {
  color: rgb(from var(--teal) r g b / 90%);
  border-bottom-color: rgb(from var(--teal) r g b / 60%);
}

.contact-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(0, 130, 155, 0.65);
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
footer {
  background: var(--dark);
  border-top: 1px solid color-mix(in srgb, var(--white) 5%, transparent);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  color: color-mix(in srgb, var(--white) 55.00000000000001%, transparent);
}

.footer-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: color-mix(in srgb, var(--white) 55.00000000000001%, transparent);
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* fade-up scroll reveal — works with or without GSAP */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.72s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-up[style*='--delay'] {
  transition-delay: var(--delay, 0s);
}
/* Visible state — applies regardless of whether GSAP is loaded.
   Fixes a bug where deferred GSAP scripts weren't loaded by the time
   app.js ran, so fade-up elements stayed at opacity:0 forever. */
.fade-up.visible,
.fade-up[data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Stagger credential cards */
.about-credentials .cred-card:nth-child(1) { transition-delay: 0.06s; }
.about-credentials .cred-card:nth-child(2) { transition-delay: 0.12s; }
.about-credentials .cred-card:nth-child(3) { transition-delay: 0.18s; }
.about-credentials .cred-card:nth-child(4) { transition-delay: 0.24s; }


/* Type A — wave focal left */
/* Type B — wave focal right */
/* Colour pairs — bg = FROM, ::after fill = TO */
/* ═══════════════════════════════════════════════════
   GLASSMORPHISM UTILITIES
═══════════════════════════════════════════════════ */
/* Used on bento-card, cred-card (light sections) */
.glass-light {
  background: color-mix(in srgb, var(--white) 62%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--white) 92%, transparent) !important;
  box-shadow: 0 2px 20px color-mix(in srgb, #000000 6%, transparent),
              inset 0 1px 0 color-mix(in srgb, var(--white) 100%, transparent);
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --section-pad: 56px; }
  .about-grid  { grid-template-columns: 1fr; gap: 48px; }
  .blog-grid   { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --section-pad: 48px; }
  .container { padding: 0 22px; }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-name { letter-spacing: -2.5px; margin-inline-start: 0; }
  .hero-left::before { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px 14px; }
  .stat-divider { display: none; }

  /* Experience */
  .exp-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 36px 0;
  }
  .exp-meta { display: flex; gap: 20px; align-items: baseline; }

  /* Projects */
  .bento-grid { grid-template-columns: 1fr; }
  .bento-featured { grid-column: 1; }

  /* Positions */
  .thesis-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 22px;
    margin: 0 -22px;
  }
  .thesis-number-col {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    position: static;
  }
  .thesis-num-large { font-size: 48px; }
  .thesis-claim { font-size: 20px; }

  /* Currently */
  .now-bento { grid-template-columns: 1fr; }
  .now-reading,
  .now-tracking,
  .now-building,
  .now-thinking { grid-column: 1; grid-row: auto; }
  .now-thoughts { grid-template-columns: 1fr; }
  .now-book { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .now-book-author { text-align: left; grid-column: 1; grid-row: 2; }
  .now-book-note { grid-column: 1 / -1; grid-row: 3; }
  .now-book-type { grid-column: 2; grid-row: 2; align-self: center; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-links { flex-direction: column; align-items: center; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-ctas  { flex-direction: column; align-items: flex-start; }
  .hero-name  { font-size: clamp(44px, 14vw, 68px); letter-spacing: -2px; }
}

/* ═══════════════════════════════════════════════════
   ACCESSIBILITY — FOCUS VISIBLE
═══════════════════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
.tag:focus-visible,
.nav-links a:focus-visible,
.bento-card:focus-visible,
.blog-card:focus-visible,
.now-book:focus-visible,
.contact-link:focus-visible,
.proj-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════
   ACCESSIBILITY — REDUCED MOTION
═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════
   ACCESSIBILITY — TOUCH TARGETS (mobile)
═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .tag { min-height: 36px; display: inline-flex; align-items: center; }
  .proj-badge, .now-build-status { min-height: 32px; display: inline-flex; align-items: center; }
}

/* (constellation canvas system removed in distill — 2026-05-05) */

#positions,
#contact {
  position: relative;
}

/* ═══════════════════════════════════════════════════
   NOISE GRAIN OVERLAY
═══════════════════════════════════════════════════ */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
}
.noise-overlay svg {
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════════
   CUSTOM CURSOR (desktop only)
═══════════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }

  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width var(--duration-fast), height var(--duration-fast), background var(--duration-fast);
  }

  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgb(from var(--teal) r g b / 45%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
  }

  .cursor-dot.cursor-hover {
    width: 14px;
    height: 14px;
    background: rgb(from var(--teal) r g b / 60%);
  }
  .cursor-ring.cursor-hover {
    width: 56px;
    height: 56px;
    border-color: rgb(from var(--teal) r g b / 25%);
  }
}

/* Hide cursor elements on touch devices */
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ═══════════════════════════════════════════════════
   LIQUID GLASS CARD SHIMMER
═══════════════════════════════════════════════════ */
.bento-card,
.cred-card,
.blog-card {
  position: relative;
  overflow: hidden;
}

/* Ensure card content sits above shimmer */
.bento-card > *,
.cred-card > *,
.blog-card > * {
  position: relative;
  z-index: 2;
}

/* Shimmer overlay on hover */
.bento-card::after,
.cred-card::after,
.blog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    color-mix(in srgb, var(--white) 8%, transparent) 60deg,
    rgb(from var(--teal) r g b / 5%) 120deg,
    transparent 180deg,
    color-mix(in srgb, var(--white) 6%, transparent) 240deg,
    rgb(from var(--teal) r g b / 4%) 300deg,
    transparent 360deg
  );
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.bento-card:hover::after,
.cred-card:hover::after,
.blog-card:hover::after {
  opacity: 1;
  animation: shimmer-rotate 4s linear infinite;
}

@keyframes shimmer-rotate {
  from { transform: rotate(0deg) scale(2); }
  to   { transform: rotate(360deg) scale(2); }
}

/* ═══════════════════════════════════════════════════
   SPLITTING.JS HEADING ANIMATIONS — fail-safe (defaults to visible)
═══════════════════════════════════════════════════ */
/* Chars stay visible by default; GSAP overrides via inline styles when it
   loads. This prevents headings from appearing "ghosted" if Splitting.js or
   GSAP fail to load or are slow to initialize. */
h2[data-splitting] .char {
  display: inline-block;
}
h2[data-splitting].split-visible .char {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}
@media (prefers-reduced-motion: reduce) {
  h2[data-splitting] .char {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Nav liquid glass on scroll, values set in main #nav.scrolled rule above */

/* ═══════════════════════════════════════════════════
   HARDEN: a11y baselines (post-impeccable-harden, 2026-05-05)
═══════════════════════════════════════════════════ */

/* Focus-visible coverage for interactive controls that previously had none */
.hamburger:focus-visible,
.mobile-close:focus-visible,
.hero-email:focus-visible,
.btn:focus-visible,
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Skip-to-content link for keyboard users (revealed on focus) */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 1000;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-to-content:focus {
  top: 8px;
}

/* prefers-reduced-motion: blanket coverage for any animation/transition the
   site has, including legacy GSAP-driven sections */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Force fade-up elements to their final state immediately */
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════
   EDITORIAL HERO (post-bolder, replaces dark constellation hero)
═══════════════════════════════════════════════════ */
.hero-editorial-section {
  min-height: 88vh;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: flex-end;
  padding: clamp(96px, 18vh, 220px) clamp(24px, 6vw, 96px) clamp(48px, 10vh, 140px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  position: relative;
}
.hero-editorial-section::before {
  /* hairline rule with brand accent — replaces angle divider visual rhythm */
  content: '';
  position: absolute;
  top: 0; left: clamp(24px, 6vw, 96px); right: clamp(24px, 6vw, 96px);
  height: 1px;
  background: var(--oxblood);
  opacity: 0.6;
}
.hero-editorial {
  max-width: 1280px;
  width: 100%;
}
.hero-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
  margin-bottom: clamp(20px, 4vh, 40px);
}
.hero-editorial-section .hero-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(64px, 13vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 clamp(24px, 5vh, 48px);
  margin-inline-start: 0;
  font-variation-settings: "opsz" 144;
  animation: none;
  position: static;
}
.hero-editorial-section .hero-name em,
.hero-editorial-section .hero-emphasis {
  font-style: italic;
  font-weight: 400;
  color: var(--oxblood);
}
.hero-editorial-section .hero-bio {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 0 clamp(16px, 2.5vh, 28px);
  font-weight: 400;
}
.hero-editorial-section .hero-credentials {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  max-width: 75ch;
  margin: 0 0 clamp(28px, 5vh, 56px);
}
.hero-editorial-section .hero-actions {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  align-items: baseline;
  flex-wrap: wrap;
}
.link-underlined {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 3px;
  transition: color 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.link-underlined:hover,
.link-underlined:focus-visible {
  color: var(--oxblood);
}
.link-underlined:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 6px;
}
/* Override the old .hero-email which now sits on paper, not dark */
.hero-editorial-section .hero-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: transparent;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  border: none;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.02em;
}
.hero-editorial-section .hero-email:hover {
  color: var(--oxblood);
}

/* ═══════════════════════════════════════════════════
   EDITORIAL PROJECTS INDEX (post-bolder, replaces .bento-grid)
═══════════════════════════════════════════════════ */
.editorial-projects {
  list-style: none;
  padding: 0;
  margin: clamp(40px, 8vh, 80px) 0 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.editorial-project {
  display: grid;
  grid-template-columns: clamp(72px, 11vw, 140px) 1fr auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding: clamp(32px, 6vh, 56px) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  transition: background 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.editorial-project:hover {
  background: color-mix(in srgb, var(--ochre) 6%, transparent);
}
.editorial-project__num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.9;
  color: color-mix(in srgb, var(--ink) 28%, transparent);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.editorial-project--featured .editorial-project__num {
  color: var(--oxblood);
  font-weight: 400;
  font-style: italic;
}
.editorial-project--archive .editorial-project__num {
  color: color-mix(in srgb, var(--ink) 22%, transparent);
}
.editorial-project__body {
  min-width: 0;
}
.editorial-project__type {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
  margin-bottom: 12px;
}
.editorial-project__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 16px;
}
.editorial-project__title em {
  font-style: italic;
  color: var(--oxblood);
}
.editorial-project__desc {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  max-width: 65ch;
  margin: 0 0 18px;
}
.editorial-project__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.editorial-project__tags li {
  display: inline-flex;
  align-items: center;
}
.editorial-project__tags li::after {
  content: '·';
  margin-left: 14px;
  color: color-mix(in srgb, var(--ink) 30%, transparent);
}
.editorial-project__tags li:last-child::after {
  content: '';
}
.editorial-project__tags a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.editorial-project__tags a:hover,
.editorial-project__tags a:focus-visible {
  color: var(--oxblood);
  border-color: var(--oxblood);
}
.editorial-project__link {
  align-self: end;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--oxblood);
  padding-bottom: 3px;
  transition: color 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}
.editorial-project__link:hover,
.editorial-project__link:focus-visible {
  color: var(--oxblood);
}
.editorial-project__link:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .editorial-project {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }
  .editorial-project__num {
    font-size: 36px;
    margin-bottom: 4px;
  }
  .editorial-project__link {
    margin-top: 16px;
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-project,
  .link-underlined,
  .editorial-project__link,
  .editorial-project__tags a {
    transition: none;
  }
}
