:root {
  /* Light: slightly off-white neutral; the purple->yellow spectrum carries the color */
  --bg: #f6f5f8;
  --paper: #ffffff;
  --ink: #1c1a22;
  --muted: #6a6676;
  --soft: #eeecf3;
  --band: #eeecf3;
  --line: #e8e6ee;
  --accent: #e11d48;
  --accent-dark: #be123c;
  --accent-2: #9333ea;
  --grad: linear-gradient(120deg, #9333ea, #db2777, #ea580c, #d97706);
  --charcoal: #1c1a22;
  --panel: rgba(255, 255, 255, 0.7);
  --bar-bg: rgba(246, 245, 248, 0.82);
  --grid: rgba(28, 26, 34, 0.04);
  --placeholder: #ddd9e6;
  --footer-bg: #141019;
  --footer-ink: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.68);
  --max: 1180px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow: 0 24px 80px rgba(28, 26, 34, 0.10);
  --hero-bg: #f6f5f8;
  --hero-ink: #1c1a22;
  --hero-muted: #6a6676;
  --hero-line: rgba(28, 26, 34, 0.18);
  --font-display: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-marquee: "Sora", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  /* Dark: near-black neutral so the spectrum pops */
  --bg: #0f0e13;
  --paper: #19171f;
  --ink: #efedf3;
  --muted: #9a96a6;
  --soft: #211e29;
  --band: #16141d;
  --line: #262430;
  --accent: #f43f5e;
  --accent-dark: #fb7185;
  --accent-2: #c084fc;
  --grad: linear-gradient(120deg, #a855f7, #ec4899, #fb7233, #facc15);
  --charcoal: #060509;
  --panel: rgba(255, 255, 255, 0.045);
  --bar-bg: rgba(15, 14, 19, 0.82);
  --grid: rgba(255, 255, 255, 0.04);
  --placeholder: #211e29;
  --footer-bg: #08070b;
  --footer-ink: #efedf3;
  --footer-muted: rgba(239, 237, 243, 0.66);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --hero-bg: #0f0e13;
  --hero-ink: #ffffff;
  --hero-muted: rgba(255, 255, 255, 0.7);
  --hero-line: rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0f0e13;
    --paper: #19171f;
    --ink: #efedf3;
    --muted: #9a96a6;
    --soft: #211e29;
    --band: #16141d;
    --line: #262430;
    --accent: #f43f5e;
    --accent-dark: #fb7185;
    --accent-2: #c084fc;
    --grad: linear-gradient(120deg, #a855f7, #ec4899, #fb7233, #facc15);
    --charcoal: #060509;
    --panel: rgba(255, 255, 255, 0.045);
    --bar-bg: rgba(15, 14, 19, 0.82);
    --grid: rgba(255, 255, 255, 0.04);
    --placeholder: #211e29;
    --footer-bg: #08070b;
    --footer-ink: #efedf3;
    --footer-muted: rgba(239, 237, 243, 0.66);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    --hero-bg: #0f0e13;
    --hero-ink: #ffffff;
    --hero-muted: rgba(255, 255, 255, 0.7);
    --hero-line: rgba(255, 255, 255, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* full-bleed 100vw bands overshoot by the scrollbar width with classic
     scrollbars; clip at the root so the page never scrolls horizontally */
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

/* Display typeface (Outfit) for headings and UI accents; body copy stays in Inter */
h1, h2, h3, h4, h5, h6,
.brand, .section-label, .kb-hero-name, .kb-hero-job,
.button, .nav-links a, .metric-grid dt, .number-list span {
  font-family: var(--font-display);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

p,
h1,
h2,
h3,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 50;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: min(var(--max), calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--hero-ink);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* sticky translucent bar once scrolled past the hero */
.site-header.is-stuck {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  min-height: 64px;
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* .is-shown is toggled a frame after .is-stuck so the bar slides in, and removed
   before .is-stuck on scroll-up so it slides back out */
.site-header.is-stuck.is-shown {
  transform: translateY(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  isolation: isolate;
}

.brand-mark::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  content: "";
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.icon-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  transition: border-color 180ms ease, background 180ms ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  background: var(--paper);
  border-color: var(--line);
}

.icon-link svg,
.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-pad {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 92px) 0;
}

.hero {
  min-height: min(820px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 116px);
  padding-top: clamp(40px, 7vw, 92px);
}

.hero-copy {
  max-width: 610px;
}

.section-label {
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: min(740px, 100%);
  font-size: clamp(40px, 6.6vw, 72px);
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(24px, 3.2vw, 40px);
  max-width: 720px;
}

h3 {
  font-size: clamp(19px, 2.1vw, 24px);
}

.hero-copy > p:last-of-type,
.section-heading > p,
.portfolio-intro p,
.metrics p,
.quote-lead p,
.experience-copy > p,

.hero-copy > p:last-of-type {
  margin-top: 22px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary,
.button.compact {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover,
.button.compact:hover,
.button.secondary:focus-visible,
.button.compact:focus-visible {
  background: var(--paper);
  border-color: var(--line);
}

.button.compact {
  min-width: 148px;
  align-self: end;
}

.hero-visual {
  position: relative;
  min-height: clamp(380px, 48vw, 620px);
  display: grid;
  place-items: center;
}

.hero-circle {
  position: relative;
  width: min(92vw, 430px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0)),
    var(--placeholder);
  box-shadow: var(--shadow);
}

.orbit {
  position: absolute;
  border: 2px dashed var(--line);
  border-radius: 999px;
  pointer-events: none;
}

.orbit-one {
  width: min(96vw, 500px);
  aspect-ratio: 1;
  animation: rotate 26s linear infinite;
}

.orbit-two {
  width: min(88vw, 390px);
  aspect-ratio: 1;
  transform: translate(32px, -26px);
  animation: rotate 20s linear infinite reverse;
}

.screen-card {
  position: absolute;
  width: 118px;
  height: 118px;
  display: grid;
  align-content: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--muted);
  padding: 34px 24px;
  box-shadow: 0 18px 48px rgba(24, 23, 20, 0.2);
}

.screen-card span {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
}

.card-a {
  left: -22px;
  top: 24px;
}

.card-b {
  right: -40px;
  bottom: 72px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(44px, 8vw, 100px);
}

.section-heading {
  display: grid;
  align-content: start;
  gap: 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 42px;
}

.feature {
  display: grid;
  gap: 12px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--accent-dark);
}

.feature p,
.work-card p,
.timeline-item p,
.article-grid p,
blockquote {
  color: var(--muted);
}

.experience-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  align-items: stretch;
  padding-top: 0;
}

.media-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.experience-copy {
  display: grid;
  align-content: center;
  gap: 22px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 72px);
  box-shadow: var(--shadow);
}

.number-list {
  display: grid;
  gap: 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.number-list li {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-weight: 600;
}

.number-list span {
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.works {
  /* wider than other sections for a deliberate visual break while scrolling */
  width: min(1320px, calc(100% - 48px));
}

.works-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px 48px;
  margin-bottom: 32px;
}

.works-head > p {
  max-width: 430px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
}

/* Recent works — category filter */
.pf-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.pf-filter button {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease;
}

.pf-filter button:hover,
.pf-filter button.current {
  color: var(--accent-dark);
}

.pf-filter-mobile-wrap {
  display: none;
  margin: 0 0 30px;
}

.pf-filter-mobile {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius);
}

.article-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Recent works — grid + square image cards with a hover-reveal panel */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.work-card.is-hidden {
  display: none;
}

.work-link {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
  transition: border-color 0.25s ease;
}

.work-link:hover,
.work-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.work-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* cover fills the card */
.work-cover {
  position: absolute;
  inset: 0;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.work-link:hover .work-cover img {
  transform: scale(1.06);
}

.work-cover.is-placeholder {
  display: grid;
  place-items: center;
  overflow: hidden;
  /* fallback only; the per-project gradient is set inline from cover.from/to */
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* shared motifs on every branded cover so the grid reads as one set:
   a soft top-left sheen + a dot field that echoes the hero waves */
.work-cover.is-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 130% at 16% 12%, rgba(255, 255, 255, 0.22), transparent 55%);
  pointer-events: none;
}

.work-cover.is-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.5px);
  background-size: 13px 13px;
  opacity: 0.5;
  pointer-events: none;
}

.work-mono {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(50px, 8vw, 88px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease;
}

/* glyph: app-icon image (rounded, squircle-ish).
   selector beats the generic `.work-cover img` fill rule so it stays a centered glyph */
.work-cover img.work-glyph-img {
  position: relative;
  z-index: 1;
  width: 40%;
  height: auto;
  max-width: 116px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 23%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease;
}

/* glyph: tech logo (devicon), forced white to sit on the accent */
.work-glyph-icon {
  position: relative;
  z-index: 1;
  font-size: clamp(54px, 8.5vw, 92px);
  line-height: 1;
  color: #fff;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.28));
  transition: transform 0.5s ease;
}

.work-link:hover .work-mono,
.work-link:hover .work-glyph-img,
.work-link:hover .work-glyph-icon {
  transform: scale(1.06);
}

/* persistent overlay: category chip (top) + title (bottom) on a scrim */
.work-rest {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 5, 10, 0.82), rgba(6, 5, 10, 0) 58%);
  transition: opacity 0.35s ease;
}

.work-link:hover .work-rest {
  opacity: 0;
}

.work-rest .work-term {
  position: absolute;
  top: clamp(14px, 1.4vw, 18px);
  left: clamp(14px, 1.4vw, 18px);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: color-mix(in srgb, #06050a 55%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 5px 11px;
  border-radius: 999px;
}

.work-rest .work-title {
  position: absolute;
  left: clamp(16px, 1.6vw, 22px);
  right: clamp(16px, 1.6vw, 22px);
  bottom: clamp(16px, 1.6vw, 22px);
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.14;
}

/* hover reveal: a panel slides up over the card with the details + out-arrow */
.work-reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: clamp(18px, 1.8vw, 26px);
  color: #fff;
  background: color-mix(in srgb, var(--charcoal) 90%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-link:hover .work-reveal,
.work-link:focus-visible .work-reveal {
  transform: translateY(0);
}

.work-reveal-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.work-reveal .work-term {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-status {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.work-rtitle {
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.14;
}

.work-reveal .work-sum {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.55;
}

.work-reveal .work-tags {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-reveal .work-tags li {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 9px;
}

.work-go {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #fff;
}

.work-go svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.work-link:hover .work-go svg {
  transform: translate(3px, -3px);
}

@keyframes work-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-card.is-filtering {
  animation: work-in 420ms ease both;
}

/* Experience — minimal two-column work timeline (landing teaser) */
.experience {
  border-top: 1px solid var(--line);
}

.experience .section-heading {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.exp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.exp-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 72px);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 999px;
  z-index: 1;
  transition: background 160ms ease;
}

.timeline-item.is-placeholder::before {
  border-color: var(--line);
}

.timeline-item:not(.is-placeholder):hover::before {
  background: var(--accent);
}

.timeline-item .time {
  display: block;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item.is-placeholder .time {
  color: var(--muted);
}

.timeline-item .title {
  margin: 6px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.25;
}

.timeline-item.is-placeholder .title {
  color: var(--muted);
  font-weight: 700;
}

.metrics {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 42px;
  border-top: 1px solid var(--line);
}

.metrics p {
  margin-top: 16px;
}

.metric-grid {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.metric-grid div {
  display: grid;
  gap: 8px;
}

.metric-grid dt {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1;
}

.metric-grid dd {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quotes {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 7vw, 88px);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.quote-grid figure {
  position: relative;
  display: grid;
  gap: 22px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 54px 34px 34px;
  box-shadow: var(--shadow);
}

.quote-grid figure::before {
  position: absolute;
  top: -26px;
  left: 34px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--soft);
  content: "";
}

blockquote {
  font-size: 18px;
}

figcaption {
  font-weight: 800;
}

.writing {
  border-top: 1px solid var(--line);
}

.article-grid {
  padding-bottom: clamp(82px, 10vw, 132px);
}

.article-grid article {
  display: grid;
  gap: 14px;
}

.article-image {
  aspect-ratio: 1.12;
  background: var(--soft);
  border-radius: var(--radius-lg);
}

.article-grid h3 {
  font-size: 20px;
  line-height: 1.18;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: clamp(48px, 7vw, 80px) max(24px, calc((100vw - var(--max)) / 2)) clamp(22px, 3vw, 34px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(30px, 4vw, 46px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand-col p {
  margin: 0;
  max-width: 320px;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-label {
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer-col a {
  color: var(--footer-ink);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: clamp(20px, 2.5vw, 28px);
  color: var(--footer-muted);
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ===================================================================
   Contact — drifting gradient aurora + cursor glow
   =================================================================== */
.contact {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(540px, 70vh, 740px);
  padding: clamp(64px, 10vw, 120px) 24px;
  text-align: center;
  background: var(--bg);
}

.contact-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.contact-aurora .blob {
  position: absolute;
  width: clamp(280px, 42vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.blob-1 {
  left: -6%;
  top: 6%;
  background: radial-gradient(circle, #a855f7, transparent 68%);
  animation: blob-a 18s ease-in-out infinite;
}

.blob-2 {
  right: -8%;
  top: 16%;
  background: radial-gradient(circle, #f43f5e, transparent 68%);
  animation: blob-b 22s ease-in-out infinite;
}

.blob-3 {
  left: 32%;
  bottom: -16%;
  background: radial-gradient(circle, #fb7233, transparent 68%);
  animation: blob-c 20s ease-in-out infinite;
}

@keyframes blob-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(44px, 32px) scale(1.12); }
}

@keyframes blob-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-52px, 40px) scale(1.08); }
}

@keyframes blob-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(34px, -42px) scale(1.15); }
}

.contact-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
}

.contact:hover .contact-glow {
  opacity: 1;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 720px;
}

.contact-title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.08;
  color: var(--ink);
}

.contact-sub {
  margin: 0;
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
}

.contact-form {
  width: min(560px, 100%);
  margin: 6px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-field span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.cf-field input,
.cf-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cf-field textarea {
  min-height: 120px;
  resize: vertical;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.cf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

@media (max-width: 560px) {
  .cf-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-aurora .blob {
    animation: none;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav-links {
    display: none;
  }

  .section-pad,
  .article-grid {
    width: min(var(--max), calc(100% - 32px));
  }

  .hero,
  .split,
  .experience-band,
  .exp-columns,
  .quotes,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .feature-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .works-head {
    grid-template-columns: 1fr;
  }

  .button.compact {
    align-self: start;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    padding: 0 0 32px 34px;
  }

  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    font-size: 14px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy,
  .section-heading,
  .portfolio-intro > div,
  .quote-lead,
  .metrics > div {
    width: 100%;
    max-width: 350px;
  }

  h1 {
    font-size: 35px;
    line-height: 1.08;
  }

  h2 {
    font-size: 29px;
    line-height: 1.12;
  }

  .section-label {
    max-width: 100%;
    font-size: 11px;
    overflow-wrap: break-word;
  }

  .hero-visual {
    width: 100%;
    max-width: 350px;
    min-height: 330px;
    overflow: hidden;
  }

  .hero-circle {
    width: min(82vw, 300px);
  }

  .orbit-one {
    width: min(90vw, 340px);
  }

  .orbit-two {
    width: min(76vw, 280px);
  }

  .screen-card {
    width: 84px;
    height: 84px;
    padding: 24px 18px;
  }

  .card-a {
    left: -8px;
  }

  .card-b {
    right: -18px;
    bottom: 48px;
  }

  .button {
    width: 100%;
  }

  .media-placeholder {
    min-height: 270px;
  }

  .experience-copy {
    padding: 28px 22px;
  }

  .metric-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .pf-filter {
    display: none;
  }

  .pf-filter-mobile-wrap {
    display: block;
  }
}

/* =====================================================================
   Project detail page (project.html) — Lieon-style layout, our tokens
   ===================================================================== */
.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.pj-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 12px max(24px, calc((100% - var(--max)) / 2));
  background: var(--bar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.pj-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  margin-left: -10px; /* keep the label on the gutter; hover pad grows leftward */
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 160ms ease;
}

.pj-back svg {
  transition: transform 160ms ease;
}

.pj-back:hover,
.pj-back:focus-visible {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.pj-back:hover svg,
.pj-back:focus-visible svg {
  transform: translateX(-2px);
}

.pj-crumb {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pj-all {
  margin-left: auto;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pj-all:hover,
.pj-all:focus-visible {
  color: var(--accent-dark);
}

.pj-hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 60px);
}

.pj-cat {
  margin-bottom: 18px;
}

.pj-title {
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
}

.pj-tag {
  max-width: 640px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
}

.pj-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
  margin: 38px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.pj-facts li {
  display: grid;
  gap: 4px;
  font-weight: 600;
}

.pj-facts li span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pj-cover {
  width: 100%;
  height: clamp(300px, 56vh, 660px);
  margin: clamp(20px, 4vw, 48px) 0;
  overflow: hidden;
  background: var(--soft);
}

.pj-parallax {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pj-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pj-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(40px, 6vw, 88px);
  padding: clamp(20px, 4vw, 48px) 0 clamp(60px, 9vw, 120px);
}

.pj-content {
  max-width: 760px;
}

.pj-section {
  margin-bottom: clamp(36px, 5vw, 60px);
}

.pj-section h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 3vw, 34px);
}

.pj-section p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
}

.pj-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.pj-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(28px, 4vw, 48px) 0;
}

.pj-gallery .pj-shot {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.pj-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pj-aside {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 22px;
}

.pj-side-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.pj-side-card h3 {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pj-tags li {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
}

.pj-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pj-links a {
  font-weight: 700;
  border-bottom: 1px solid transparent;
}

.pj-links a:hover,
.pj-links a:focus-visible {
  color: var(--accent-dark);
  border-color: currentColor;
}

.pj-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.pj-nav a {
  display: grid;
  gap: 4px;
}

.pj-nav a span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pj-nav a b {
  font-size: 18px;
}

.pj-next {
  text-align: right;
}

.pj-cta {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--footer-bg);
  color: var(--footer-ink);
  text-align: center;
}

.pj-cta .section-label {
  color: var(--accent);
}

.pj-cta h2 {
  max-width: 640px;
  margin: 12px auto 26px;
  color: var(--footer-ink);
  font-size: clamp(30px, 5vw, 54px);
}

.pj-cta .button.primary {
  background: var(--footer-ink);
  color: var(--footer-bg);
  border-color: var(--footer-ink);
}

@media (max-width: 860px) {
  .pj-body {
    grid-template-columns: 1fr;
  }

  .pj-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .pj-gallery {
    grid-template-columns: 1fr;
  }

  .pj-bar {
    gap: 12px;
  }

  .pj-crumb {
    display: none;
  }
}

/* =====================================================================
   Full work history page (work-history.html) — alternating timeline
   ===================================================================== */
.wh-hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(20px, 3vw, 40px);
}

/* full work-history timeline — gradient spine + right meta rail */
.wh-timeline {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin: clamp(16px, 3vw, 40px) auto clamp(64px, 9vw, 120px);
  padding: 0;
}

.wh-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: var(--grad);
  /* taper the spine out at the bottom instead of stopping hard */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent);
}

.wh-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  gap: clamp(24px, 4vw, 64px);
  padding: 0 0 clamp(36px, 4.5vw, 60px) clamp(34px, 4vw, 48px);
}

.wh-item:last-child {
  padding-bottom: 0;
}

.wh-node {
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 0 4px var(--bg);
}

.wh-role {
  margin: 0 0 14px;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.2;
}

.wh-co {
  color: var(--muted);
  font-weight: 600;
}

.wh-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wh-bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
}

.wh-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.wh-summary {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.65;
}

.wh-tech {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wh-tech li {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}

.wh-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wh-when {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--accent-2);
}

.wh-loc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .wh-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 30px;
  }

  .wh-meta {
    order: -1;
  }
}

/* =====================================================================
   Theme toggle button (header + sticky bars) + icon swap
   ===================================================================== */
button.icon-link {
  background: none;
  font: inherit;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pj-theme {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.pj-theme:hover,
.pj-theme:focus-visible {
  background: var(--paper);
  border-color: var(--line);
}

.pj-theme svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme-toggle] .icon-sun {
  display: none;
}

[data-theme="dark"] [data-theme-toggle] .icon-sun {
  display: block;
}

[data-theme="dark"] [data-theme-toggle] .icon-moon {
  display: none;
}

/* =====================================================================
   Resume page (resume.html) — document layout in app design + print
   ===================================================================== */
.resume {
  padding-bottom: clamp(60px, 9vw, 110px);
}

.resume-head {
  padding: clamp(48px, 8vw, 92px) 0 clamp(26px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.resume-head h1 {
  font-size: clamp(40px, 7vw, 72px);
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.resume-contact a:hover,
.resume-contact a:focus-visible {
  color: var(--accent-dark);
}

.resume-section {
  padding-top: clamp(30px, 5vw, 52px);
}

.resume-section > h2 {
  margin-bottom: 16px;
  font-size: clamp(20px, 2.6vw, 28px);
}

.resume-lead {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
}

.resume-strengths {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.resume-jobs {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
}

.resume-job {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 4px 30px;
}

.resume-job .when {
  padding-top: 3px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.resume-job h3 {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.25;
}

.resume-job p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.resume-edu {
  display: grid;
  gap: 0;
}

.resume-edu-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.resume-edu-row:first-child {
  border-top: 1px solid var(--line);
}

.resume-edu-row .deg {
  font-weight: 700;
}

.resume-edu-row .where {
  color: var(--muted);
}

.resume-edu-row .yr {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 640px) {
  .resume-job {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  .pj-bar,
  .skip-link,
  .resume-downloads {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12px;
  }

  .resume {
    padding-bottom: 0;
  }

  .resume-head {
    padding: 0 0 14px;
    border-bottom: 1px solid #ccc;
  }

  .resume-head h1 {
    font-size: 30px;
  }

  .resume-section {
    padding-top: 18px;
    break-inside: avoid;
  }

  .resume-section > h2 {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .resume-lead,
  .resume-strengths,
  .resume-job p,
  .resume-edu-row .where {
    color: #333 !important;
  }

  .resume-job .when,
  .resume-edu-row .yr,
  .resume-contact a {
    color: #000 !important;
  }

  .resume-job {
    break-inside: avoid;
  }
}

/* Resume download buttons (PDF / Markdown / JSON) */
.resume-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.resume-dl-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dl-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.dl-btn:hover,
.dl-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* =====================================================================
   Data-driven states + resume skills/bullets
   ===================================================================== */
.data-loading,
.data-error {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  font-weight: 600;
}

.pj-link-muted {
  color: var(--muted);
  font-size: 14px;
}

.resume-where {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.resume-bullets {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}

.rs-skill-group {
  margin-bottom: 22px;
}

.rs-skill-group:last-child {
  margin-bottom: 0;
}

.rs-skill-group h3 {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rs-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-skill {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
}

.rs-skill.is-expert {
  border-color: var(--accent);
  color: var(--ink);
}

@media print {
  .rs-skill {
    border-color: #999 !important;
    background: transparent !important;
  }
  .rs-skill.is-expert {
    border-color: #000 !important;
  }
  .resume-bullets,
  .resume-where {
    color: #333 !important;
  }
}

/* =====================================================================
   Hero header — WebGL waves background + rotating headline
   ===================================================================== */
.kb-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(900px, 112vh, 1100px);
  display: grid;
  align-items: start;
  justify-items: center;
  text-align: center;
  background: var(--hero-bg);
  color: var(--hero-ink);
}

.kb-hero .waves {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Fade the waves into the next section (no hard seam) */
.kb-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.kb-hero .waves canvas {
  display: block;
}

.kb-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  padding: clamp(120px, 28vh, 280px) 0 80px;
}

.kb-hero-photo {
  width: clamp(132px, 18vw, 184px);
  height: clamp(132px, 18vw, 184px);
  margin: 0 auto 28px;
}

.kb-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
  border-radius: 50%;
  border: 4px solid var(--hero-bg);
  box-shadow: 0 0 0 1px var(--hero-line), var(--shadow);
}

.kb-hero-name {
  max-width: none;
  margin: 0 0 18px;
  color: var(--hero-ink);
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
}

.kb-hero-name .coloring {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Stack first/last name vertically early, so it never shrinks small on one line
   then jumps large. Below this width the name reads as two big stacked words. */
@media (max-width: 860px) {
  .kb-hero-name {
    font-size: clamp(52px, 11vw, 88px);
  }

  .kb-hero-name .coloring {
    display: block;
  }
}

.kb-hero-job {
  position: relative;
  margin: 0 0 38px;
  color: var(--hero-muted);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
}

/* Soft frosted halo so the rotating line reads over the dotted waves: very
   subtle tint + backdrop blur to smear the dots, feathered edges, no border. */
.kb-hero-job::before {
  content: "";
  position: absolute;
  inset: -0.3em -0.9em;
  z-index: -1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hero-bg) 24%, transparent);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  -webkit-mask: radial-gradient(118% 135% at 50% 50%, #000 36%, transparent 76%);
  mask: radial-gradient(118% 135% at 50% 50%, #000 36%, transparent 76%);
  pointer-events: none;
}

.kb-hero-job b {
  color: var(--hero-ink);
  font-weight: 700;
}

.kb-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.kb-hero .button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.kb-hero .button.hero-ghost {
  background: color-mix(in srgb, var(--hero-ink) 8%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-color: transparent;
  color: var(--hero-ink);
}

.kb-hero .button.hero-ghost:hover,
.kb-hero .button.hero-ghost:focus-visible {
  background: color-mix(in srgb, var(--hero-ink) 16%, transparent);
  border-color: transparent;
}

/* rotating headline (CodyHouse rotate-1) */
.cd-headline {
  display: inline-block;
}

.cd-words-wrapper {
  display: inline-block;
  position: relative;
  text-align: left;
}

.cd-words-wrapper b {
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}

.cd-words-wrapper b.is-visible {
  position: relative;
}

.cd-headline.rotate-1 .cd-words-wrapper {
  perspective: 300px;
}

.cd-headline.rotate-1 b {
  opacity: 0;
  transform-origin: 50% 100%;
  transform: rotateX(180deg);
}

.cd-headline.rotate-1 b.is-visible {
  opacity: 1;
  transform: rotateX(0deg);
  animation: cd-rotate-1-in 1.2s;
}

.cd-headline.rotate-1 b.is-hidden {
  transform: rotateX(180deg);
  animation: cd-rotate-1-out 1.2s;
}

@keyframes cd-rotate-1-in {
  0% { transform: rotateX(180deg); opacity: 0; }
  35% { transform: rotateX(120deg); opacity: 0; }
  65% { opacity: 0; }
  100% { transform: rotateX(360deg); opacity: 1; }
}

@keyframes cd-rotate-1-out {
  0% { transform: rotateX(0deg); opacity: 1; }
  35% { transform: rotateX(-40deg); opacity: 1; }
  65% { opacity: 0; }
  100% { transform: rotateX(180deg); opacity: 0; }
}

/* Landing nav overlays the hero: transparent, theme-aware text */
.site-header .brand {
  color: var(--hero-ink);
}

.site-header .nav-links {
  color: var(--hero-muted);
}

.site-header .nav-links a:hover,
.site-header .nav-links a:focus-visible {
  color: var(--hero-ink);
}

.site-header .icon-link {
  color: var(--hero-ink);
}

.site-header .icon-link:hover,
.site-header .icon-link:focus-visible {
  background: var(--hero-line);
  border-color: var(--hero-line);
}

/* Hero — mobile: stack the name larger, bigger headline, small inline CTAs */
@media (max-width: 640px) {
  .kb-hero-job {
    font-size: clamp(22px, 6vw, 28px);
  }

  .kb-hero-cta {
    flex-wrap: nowrap;
  }

  .kb-hero-cta .button {
    width: auto;
    min-height: 40px;
    padding: 9px 18px;
    font-size: 12px;
  }
}

/* =====================================================================
   Wordmark last name + mobile nav (hamburger + overlay menu)
   ===================================================================== */
.brand-last {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--hero-ink);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--hero-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mobile-menu a {
  padding: 12px 20px;
  color: var(--hero-ink);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: var(--accent);
}

.mobile-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hero-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--hero-ink) 8%, transparent);
  color: var(--hero-ink);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mobile-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.mobile-close:hover,
.mobile-close:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
  }
}

@media (min-width: 921px) {
  .mobile-menu {
    display: none;
  }
}

/* motion control: enable/disable the cursor wave effect */
.wave-mode-toggle {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hero-ink);
  background: color-mix(in srgb, var(--hero-ink) 8%, transparent);
  border: 1px solid var(--hero-line);
  border-radius: 999px;
  padding: 6px 11px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.wave-mode-toggle:hover {
  background: color-mix(in srgb, var(--hero-ink) 14%, transparent);
}

@media (max-width: 560px) {
  .wave-mode-toggle {
    display: none;
  }
}

/* ===================================================================
   Infinite marquee (reusable) — pure CSS, seamless, pauses on hover.
   Two identical groups in the track; translateX(-50%) loops one group.
   =================================================================== */
.marquee-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(18px, 3vw, 32px) 0;
  background: var(--bg);
  overflow-x: clip;
  overflow-y: visible;
}

/* same band color as the tinted Skills section above + no dividing border,
   so the section and this logo marquee read as one block */
.marquee-band--skills {
  background: var(--band);
  border-top: 0;
  padding: clamp(12px, 1.4vw, 18px) 0;
}

/* tall inner padding so the bigger logos + their hover scale/glow never clip */
.marquee--skills {
  padding-block: 40px;
}

/* directly under the hero: no top line, so it blends with the wave fade */
.marquee-band--flush {
  border-top: 0;
}

.marquee {
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  /* horizontal fade only; stretch the mask vertically so it never clips the
     hover-scaled logo + glow that overflow the row */
  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: kb-marquee var(--marquee-dur, 40s) linear infinite;
}

.marquee--skills .marquee__track {
  animation-duration: var(--marquee-dur, 32s);
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
}

.marquee__group > * {
  flex: none;
  margin-right: clamp(26px, 3.6vw, 52px);
}

@keyframes kb-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* text variant: big uppercase words, alternating solid / outline / gradient */
.marquee--text .marquee__item {
  font-family: var(--font-marquee);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(18px, 3.2vw, 36px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.marquee--text .marquee__item.is-outline {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink);
}

.marquee--text .marquee__item.is-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.marquee__sep {
  display: inline-flex;
  color: var(--accent);
}

.marquee__sep svg {
  width: clamp(16px, 2.2vw, 26px);
  height: clamp(16px, 2.2vw, 26px);
}

/* skills variant: monochrome tech icons + label, occasional gradient */
/* fixed-width chips → even spacing as they scroll by; icon stacked over a small label */
.marquee--skills .marquee__group > * {
  margin-right: clamp(16px, 2.2vw, 34px);
}

.marquee--skills .marquee__chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: clamp(120px, 13vw, 156px);
  color: var(--ink);
  transition: transform 0.25s ease;
}

.marquee--skills .marquee__chip i {
  font-size: clamp(38px, 4.6vw, 52px);
  line-height: 1;
  transition: filter 0.25s ease;
}

.marquee--skills .marquee__chip span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}

/* hover (the track pauses on hover): pop, glow, gradient label */
.marquee--skills .marquee__chip:hover {
  transform: scale(1.18);
}

.marquee--skills .marquee__chip:hover i {
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--accent) 45%, transparent));
}

.marquee--skills .marquee__chip:hover span {
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* ===================================================================
   About — editorial layout (prose + stat strip + labeled list + outline note)
   =================================================================== */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about {
  display: grid;
  gap: clamp(28px, 3.4vw, 46px);
}

.about-head {
  max-width: 880px;
}

.about-lead {
  margin: 0;
  max-width: none;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.14;
  color: var(--ink);
}

/* flowing prose, two columns */
.about-prose {
  max-width: 70ch;
}

.about-prose p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.8;
}

/* open stat strip with hairline dividers (no boxes) */
.about-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-stats li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2vw, 26px);
}

.about-stats li + li {
  border-left: 1px solid var(--line);
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1;
}

.about-stat-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 620px) {
  /* uniform comfortable side padding for every content section on mobile */
  .section-pad {
    padding-inline: 14px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats li + li {
    border-left: 0;
  }

  .about-stats li:nth-child(2n) {
    border-left: 1px solid var(--line);
  }

  .about-stats li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ===================================================================
   Experience (A/B/C prototypes — remove the two not chosen)
   =================================================================== */
.experience-block {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.exp-head h2 {
  margin: 0;
}

.experience-block .exp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Experience (landing) — curated roles, two-column */
.exp-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 2.6vw, 38px) clamp(28px, 4vw, 64px);
}

.exp-two-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-two-bar {
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: var(--grad);
  margin-bottom: 4px;
}

.exp-two-when {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--accent-2);
}

.exp-two-role {
  margin: 0;
  font-size: clamp(15.5px, 1.4vw, 18px);
}

.exp-two-co {
  color: var(--muted);
  font-weight: 600;
}

.exp-two-sum {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.6;
}

@media (max-width: 620px) {
  .exp-two {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   Section differentiation — full-bleed tinted band (alternating rhythm)
   =================================================================== */
.section-tint {
  position: relative;
}

.section-tint::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* merge seamlessly into the band/section directly below (e.g. Skills -> marquee) */
.section-tint--flush-bottom::before {
  border-bottom: 0;
}

/* opt-in faint dot texture on a tinted band */
.section-tint.section-dots::before {
  background-color: var(--band);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1.5px);
  background-size: 22px 22px;
}

/* ===================================================================
   Skills — category groups + proficiency-coded chips
   =================================================================== */
.skills {
  display: grid;
  gap: clamp(28px, 3.5vw, 44px);
}

.skills-head {
  max-width: 760px;
}

.skills-head h2 {
  margin: 0;
}

.skills-legend {
  margin: 14px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.skills-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--grad);
}

.skills-grid {
  column-width: 270px;
  column-gap: clamp(28px, 4vw, 56px);
}

.skill-group {
  break-inside: avoid;
  margin-bottom: clamp(24px, 3vw, 38px);
}

.skill-cat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
  font-size: clamp(13.5px, 1.2vw, 16px);
}

.skill-cat::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--grad);
}

.skill-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.skill-tag.is-expert {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.skill-tag.is-expert::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--grad);
  flex: none;
}

/* ---- Testimonials (landing section, cardless editorial pull-quotes) ---- */
.tm-head {
  text-align: center;
  margin-bottom: clamp(34px, 5vw, 60px);
}
.tm-head h2 {
  margin: 10px auto 0;
}

.tm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  max-width: 1000px;
  margin-inline: auto;
}

.tm-card {
  position: relative;
  margin: 0;
}
.tm-card:first-child {
  padding-right: clamp(30px, 4.5vw, 56px);
  border-right: 1px solid var(--line);
}
.tm-card:last-child {
  padding-left: clamp(30px, 4.5vw, 56px);
}

/* big gradient opening quote mark */
.tm-card::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 4.4vw, 60px);
  line-height: 0.7;
  margin-bottom: clamp(8px, 1.2vw, 14px);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}
.tm-quote {
  margin: 0 0 clamp(18px, 2vw, 26px);
  font-size: clamp(14px, 1.1vw, 16.5px);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
}
.tm-cap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tm-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.1;
  width: fit-content;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tm-context {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .tm-grid { grid-template-columns: 1fr; }
  .tm-card:first-child {
    padding-right: 0;
    padding-bottom: clamp(30px, 8vw, 44px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .tm-card:last-child {
    padding-left: 0;
    padding-top: clamp(30px, 8vw, 44px);
  }
}
