:root {
  --cream-50: #fffdf9;
  --cream-100: #fdf8f3;
  --cream-200: #f5ede3;
  --cream-300: #e8dfd5;
  --charcoal-500: #6a6560;
  --charcoal-700: #4a4541;
  --charcoal-800: #3a3632;
  --charcoal-900: #2d2a26;
  --sunflower-400: #f7d94c;
  --sunflower-500: #f5c518;
  --sunflower-600: #d4a50f;
  --sage-500: #4a7c59;
  --sage-600: #3d6649;
  --ink-blue: #121d3b;
  --shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.055);
  --shadow-md: 0 16px 40px rgba(45, 42, 38, 0.11);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--cream-100);
  color: var(--charcoal-900);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  border: 0;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

:focus-visible {
  outline: 3px solid #2463eb;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--charcoal-900);
  color: white;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.cursor-orb {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 42, 38, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 6px 18px rgba(45, 42, 38, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  transition: width 180ms ease, height 180ms ease, background 180ms ease, opacity 140ms ease;
  backdrop-filter: blur(8px);
}

.cursor-orb.is-active {
  opacity: 1;
}

.cursor-orb span {
  font-size: 17px;
  line-height: 1;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(232, 223, 213, 0.86);
  background: rgba(253, 248, 243, 0.84);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  width: min(1152px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--sunflower-500);
  box-shadow: inset 0 -3px 0 rgba(45, 42, 38, 0.08);
  transition: transform 180ms ease;
}

.brand-mark:hover {
  transform: rotate(-5deg) scale(1.04);
}

.brand-mark__prompt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links > a:not(.nav-cta) {
  position: relative;
  color: var(--charcoal-700);
  font-size: 14px;
  font-weight: 600;
}

.nav-links > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sunflower-500);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-links > a:hover::after,
.nav-links > a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  padding: 10px 17px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--sunflower-500);
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover {
  background: var(--sunflower-400);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--charcoal-900);
  transition: transform 180ms ease, opacity 180ms ease;
}

main {
  padding-top: 64px;
}

.hero-shell {
  width: min(1152px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 22px;
}

.bento-grid {
  display: grid;
  grid-template-areas:
    "intro intro portrait learning"
    "career stack portrait impact"
    "game politics pipeline connect";
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 280px 160px 160px;
  gap: 16px;
}

.tile {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(45, 42, 38, 0.035);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--charcoal-900);
  text-align: left;
}

button.tile,
a.tile {
  cursor: pointer;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

button.tile:hover,
a.tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.reveal {
  animation: tile-in 560ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.tile:nth-child(2) { animation-delay: 90ms; }
.tile:nth-child(3) { animation-delay: 150ms; }
.tile:nth-child(4) { animation-delay: 190ms; }
.tile:nth-child(5) { animation-delay: 230ms; }
.tile:nth-child(6) { animation-delay: 270ms; }
.tile:nth-child(7) { animation-delay: 310ms; }
.tile:nth-child(8) { animation-delay: 350ms; }
.tile:nth-child(9) { animation-delay: 390ms; }
.tile:nth-child(10) { animation-delay: 430ms; }

@keyframes tile-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.intro-tile {
  grid-area: intro;
  display: flex;
  padding: 34px;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--sunflower-500), var(--sunflower-400));
}

.eyebrow,
.tile-kicker {
  margin-bottom: 10px;
  color: var(--charcoal-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.intro-tile h1 {
  margin-bottom: 14px;
  font-size: clamp(45px, 4.15vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.intro-copy {
  max-width: 590px;
  margin-bottom: 22px;
  color: var(--charcoal-800);
  font-size: 17px;
  line-height: 1.55;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-row span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  font-size: 11px;
  font-weight: 700;
}

.portrait-tile {
  grid-area: portrait;
  padding: 0;
  background: var(--sunflower-500);
}

.portrait-photo {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(300px, calc(100% - 30px));
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 17px;
  box-shadow: 0 18px 35px rgba(45, 42, 38, 0.2);
  transform: translate(-50%, -50%);
  transition: box-shadow 350ms ease, transform 350ms ease;
}

.portrait-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.92) contrast(1.03);
  transition: filter 400ms ease;
}

.portrait-tile::after {
  display: none;
}

.portrait-tile:hover img {
  filter: saturate(1.08) contrast(1.02);
}

.portrait-tile:hover .portrait-photo {
  box-shadow: 0 22px 42px rgba(45, 42, 38, 0.25);
  transform: translate(-50%, -50%) rotate(-0.7deg);
}

.portrait-tile.is-celebrating .portrait-photo {
  animation: portrait-party 520ms ease;
}

@keyframes portrait-party {
  0%, 100% { transform: translate(-50%, -50%) rotate(0); }
  25% { transform: translate(-50%, -50%) rotate(-1.5deg); }
  75% { transform: translate(-50%, -50%) rotate(1.5deg); }
}

.portrait-backdrop {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(145deg, var(--sunflower-400), var(--sunflower-500) 53%, var(--sage-500));
}

.portrait-backdrop i {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.portrait-backdrop i:nth-child(1) { top: 8%; left: 8%; }
.portrait-backdrop i:nth-child(2) { right: 8%; bottom: 20%; width: 54px; height: 54px; }
.portrait-backdrop i:nth-child(3) { top: 41%; right: 12%; width: 34px; height: 34px; background: rgba(74, 124, 89, 0.36); }

.portrait-status {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.9);
  color: var(--charcoal-700);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(8px);
}

.portrait-status.is-visible {
  opacity: 1;
  transform: scale(1);
}

.portrait-spark {
  position: absolute;
  z-index: 4;
  color: #fff4a6;
  font-size: 26px;
  text-shadow: 0 2px 12px rgba(45, 42, 38, 0.22);
  animation: spark-float 2.8s infinite ease-in-out;
}

.burst-emoji {
  position: absolute;
  z-index: 8;
  top: 48%;
  left: var(--burst-x);
  color: #fff8bf;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  pointer-events: none;
  text-shadow: 0 4px 13px rgba(45, 42, 38, 0.25);
  animation: portrait-burst 1.25s var(--burst-delay) both cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes portrait-burst {
  from { opacity: 0; transform: translate(-50%, 20px) scale(0.2) rotate(-20deg); }
  24% { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -155px) scale(1.2) rotate(20deg); }
}

.spark-one { top: 11%; left: 10%; }
.spark-two { right: 8%; bottom: 11%; animation-delay: 500ms; }

@keyframes spark-float {
  50% { transform: translateY(-8px) rotate(12deg) scale(1.15); }
}

.learning-tile {
  grid-area: learning;
  display: flex;
  padding: 24px;
  flex-direction: column;
  background:
    radial-gradient(circle at 90% 12%, rgba(247, 217, 76, 0.28), transparent 24%),
    linear-gradient(145deg, #172445, #0d1630);
  color: white;
}

.terminal-top {
  display: flex;
  margin-bottom: auto;
  gap: 6px;
}

.terminal-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.learning-tile .tile-kicker {
  margin: 28px 0 7px;
  color: rgba(255, 255, 255, 0.58);
}

.learning-tile h2 {
  max-width: 230px;
  margin-bottom: 11px;
  font-size: 25px;
  line-height: 1.08;
}

.learning-tile > p:not(.tile-kicker) {
  margin-bottom: 17px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.55;
}

.terminal-line {
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.terminal-line > span:first-child {
  margin-right: 6px;
  color: var(--sunflower-400);
}

.terminal-caret {
  display: inline-block;
  width: 5px;
  height: 10px;
  margin-left: 4px;
  background: var(--sunflower-400);
  vertical-align: -1px;
  animation: caret 950ms infinite steps(1);
}

@keyframes caret { 50% { opacity: 0; } }

.game-tile {
  grid-area: game;
  display: flex;
  padding: 20px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, var(--sage-500), var(--sage-600));
  color: white;
  text-align: center;
}

.game-icon {
  margin-bottom: 7px;
  font-size: 39px;
  filter: drop-shadow(0 5px 5px rgba(16, 48, 28, 0.25));
  animation: bug-wiggle 1.6s infinite ease-in-out;
}

@keyframes bug-wiggle {
  25% { transform: rotate(-9deg); }
  75% { transform: rotate(9deg); }
}

.game-tile strong {
  font-size: 12px;
}

.game-tile small,
.best-score {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
}

.pipeline-tile {
  grid-area: pipeline;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sunflower-400);
}

.pipeline-fact {
  position: absolute;
  z-index: 4;
  bottom: 9px;
  left: 50%;
  width: 90%;
  color: rgba(45, 42, 38, 0.62);
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  transform: translateX(-50%);
}

.pipeline-visual {
  position: relative;
  display: block;
  width: 104px;
  height: 104px;
  animation: orbit 9s infinite linear;
}

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

.pipeline-visual::before,
.pipeline-visual::after {
  position: absolute;
  inset: 17px;
  border: 1px dashed rgba(45, 42, 38, 0.28);
  border-radius: 50%;
  content: "";
}

.pipeline-visual::after {
  inset: 31px;
  border-style: solid;
  border-color: rgba(45, 42, 38, 0.16);
}

.pipeline-core,
.node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-style: normal;
  font-weight: 800;
}

.pipeline-core {
  z-index: 2;
  top: 37px;
  left: 37px;
  width: 30px;
  height: 30px;
  background: var(--charcoal-900);
  color: white;
  font-size: 14px;
}

.node {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--charcoal-900);
  font-size: 8px;
  box-shadow: 0 5px 10px rgba(45, 42, 38, 0.12);
}

.node-a { top: 0; left: 37px; }
.node-b { right: 1px; bottom: 10px; }
.node-c { bottom: 10px; left: 1px; }

.pipeline-tile.is-pulsing .pipeline-core {
  animation: core-pulse 480ms ease;
}

@keyframes core-pulse {
  50% { box-shadow: 0 0 0 16px rgba(45, 42, 38, 0.13); transform: scale(1.14); }
}

.impact-tile {
  grid-area: impact;
  display: flex;
  padding: 18px;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(145deg, #517f60, #355c43);
  color: white;
}

.impact-tile .tile-kicker {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
}

.impact-tile h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.metric-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-pair span {
  min-width: 0;
}

.metric-pair strong {
  display: block;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
}

.metric-pair small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  line-height: 1.35;
}

.career-tile {
  grid-area: career;
  display: flex;
  padding: 18px;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 87% 12%, rgba(247, 217, 76, 0.22), transparent 27%),
    radial-gradient(circle at 4% 100%, rgba(74, 124, 89, 0.32), transparent 34%),
    linear-gradient(145deg, #1a2949, #101a31);
  color: white;
}

.career-tile::before {
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  pointer-events: none;
}

.career-tile > * {
  position: relative;
  z-index: 1;
}

.career-tile .tile-kicker {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
}

.career-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.career-logos span {
  display: flex;
  min-width: 0;
  padding: 9px 8px;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 700;
}

.career-logos b {
  display: flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #c74634;
  color: white;
  font-size: 10px;
}

.career-logos span:last-child b {
  background: #8a3ffc;
}

.career-tile > p:last-child {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  line-height: 1.45;
}

.career-tile > p strong {
  color: var(--sunflower-400);
}

.politics-tile {
  grid-area: politics;
  display: flex;
  padding: 18px;
  align-items: center;
  gap: 14px;
  background: linear-gradient(145deg, #e8edf4, #f7f4ec);
}

.politics-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(18, 29, 59, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 29, 59, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
}

.politics-icon {
  position: relative;
  z-index: 1;
  display: flex;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink-blue);
  color: var(--sunflower-400);
  font-size: 25px;
  box-shadow: 0 8px 20px rgba(18, 29, 59, 0.2);
}

.politics-tile > span:last-child {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.politics-tile small,
.politics-tile strong,
.politics-tile em {
  display: block;
}

.politics-tile small {
  margin-bottom: 3px;
  color: var(--charcoal-500);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.politics-tile strong {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 16px;
}

.politics-tile em {
  color: var(--charcoal-500);
  font-size: 8px;
  font-style: normal;
  line-height: 1.45;
}

.stack-tile {
  grid-area: stack;
  display: flex;
  padding: 18px;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 88% 14%, rgba(245, 197, 24, 0.38), transparent 24%),
    radial-gradient(circle at 7% 93%, rgba(79, 115, 185, 0.19), transparent 34%),
    linear-gradient(145deg, #eef3ff, #fff9e9);
}

.stack-tile::before {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image: radial-gradient(circle at 1px 1px, rgba(18, 29, 59, 0.2) 1px, transparent 0);
  background-size: 15px 15px;
  content: "";
  pointer-events: none;
}

.stack-tile::after {
  position: absolute;
  top: -23px;
  right: -18px;
  width: 82px;
  height: 82px;
  border: 15px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.stack-tile > * {
  position: relative;
  z-index: 1;
}

.stack-heading {
  display: flex;
  margin-bottom: 10px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
}

.stack-heading small {
  color: var(--charcoal-500);
  font-size: 8px;
  font-weight: 500;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.stack-grid span {
  padding: 9px 5px;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid rgba(45, 42, 38, 0.06);
  background: rgba(255, 255, 255, 0.7);
  color: var(--charcoal-700);
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connect-tile {
  grid-area: connect;
  display: flex;
  padding: 18px;
  flex-direction: column;
  justify-content: center;
  background: var(--sunflower-500);
}

.connect-tile > p {
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.connect-grid a {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.47);
  color: var(--charcoal-700);
  color: var(--charcoal-800);
  transition: transform 180ms ease, background 180ms ease;
}

.connect-grid svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.connect-grid a:nth-child(1):hover { color: #171515; }
.connect-grid a:nth-child(2):hover { color: #0a66c2; }
.connect-grid a:nth-child(3):hover { color: #c5221f; }
.connect-grid a:nth-child(4):hover { color: var(--sage-600); }

.connect-grid a:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: scale(1.05);
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading p {
  margin-bottom: 9px;
  color: var(--charcoal-500);
  font-size: 13px;
}

.section-heading h2,
.about-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.work-section {
  margin-top: 0;
  padding: 110px 16px 120px;
  background: var(--cream-50);
}

.timeline {
  position: relative;
  display: grid;
  width: min(980px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  row-gap: 28px;
}

.timeline-rail {
  position: absolute;
  z-index: 0;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 3px;
  overflow: hidden;
  background: var(--cream-300);
  transform: translateX(-50%);
}

.timeline-rail span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--sunflower-500);
  transition: height 100ms linear;
}

.timeline-year {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin: 15px 0 -4px;
}

.timeline-year:first-of-type {
  margin-top: 0;
}

.timeline-year span {
  min-width: 82px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--sunflower-500);
  box-shadow: 0 8px 18px rgba(212, 165, 15, 0.22);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.project-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
}

.project-card--left {
  grid-column: 1;
  justify-self: end;
}

.project-card--right {
  grid-column: 3;
  justify-self: start;
}

.project-card::after {
  position: absolute;
  z-index: 3;
  top: 30px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--sunflower-500);
  border-radius: 50%;
  background: var(--cream-50);
  content: "";
}

.project-card--left::after { right: -53px; }
.project-card--right::after { left: -52px; }

.project-card > button {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.project-card > button:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.project-visual {
  position: relative;
  display: block;
  height: 225px;
  overflow: hidden;
}

.project-copy {
  display: block;
  padding: 20px 22px 21px;
}

.project-copy small,
.project-copy strong,
.project-copy span,
.project-copy em {
  display: block;
}

.project-copy small {
  margin-bottom: 7px;
  color: var(--sunflower-600);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.project-copy strong {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 24px;
}

.project-copy span {
  color: var(--charcoal-500);
  font-size: 11px;
  line-height: 1.58;
}

.project-copy em {
  margin-top: 14px;
  color: var(--charcoal-700);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.project-copy em b {
  color: var(--sunflower-600);
}

.visual-nitro {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 14% 22%, rgba(247, 217, 76, 0.36), transparent 27%),
    linear-gradient(145deg, #0d1630, #1b2d55);
}

.agent-window {
  display: flex;
  width: 80%;
  height: 70%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.24);
  color: white;
  backdrop-filter: blur(8px);
}

.agent-window .window-dots {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 5px;
}

.agent-window > b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px;
}

.agent-window > em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-style: normal;
}

.agent-flow {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
}

.agent-flow::before,
.agent-flow::after {
  position: absolute;
  right: 29%;
  left: 29%;
  height: 1px;
  background: rgba(247, 217, 76, 0.4);
  content: "";
}

.agent-flow i {
  position: relative;
  z-index: 2;
  display: flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 217, 76, 0.42);
  border-radius: 10px;
  background: #1a294c;
  color: var(--sunflower-400);
  font-size: 8px;
  font-style: normal;
}

.visual-rapid {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f6f0e7, #ddd5ca);
}

.rapid-shell {
  display: grid;
  width: 82%;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  transform: rotate(-3deg);
}

.rapid-shell i {
  display: flex;
  aspect-ratio: 0.82;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--charcoal-900);
  box-shadow: 0 13px 24px rgba(45, 42, 38, 0.16);
  color: var(--sunflower-400);
  font-family: var(--font-display);
  font-size: 24px;
  font-style: normal;
}

.rapid-shell i:nth-child(even) {
  transform: translateY(14px);
}

.rapid-shell b {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: var(--charcoal-500);
  font-size: 8px;
  letter-spacing: 0.28em;
  text-align: center;
}

.visual-racc {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #efe9e0, #fbf8f3);
}

.component-stage {
  position: relative;
  display: block;
  width: 84%;
  height: 73%;
  overflow: hidden;
  border-radius: 12px;
  background: white;
  box-shadow: 0 18px 38px rgba(45, 42, 38, 0.16);
}

.component-nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 24px;
  background: var(--sunflower-500);
}

.component-side {
  position: absolute;
  top: 24px;
  bottom: 0;
  left: 0;
  width: 26%;
  background: #18223e;
}

.component-main {
  position: absolute;
  top: 42px;
  right: 14px;
  bottom: 20px;
  left: calc(26% + 14px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.component-main b {
  border-radius: 7px;
  background: var(--cream-200);
}

.component-main b:first-child {
  grid-column: 1 / -1;
  background: #e5edf7;
}

.component-stage > em {
  position: absolute;
  right: 10px;
  bottom: 5px;
  color: var(--charcoal-500);
  font-size: 6px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.visual-lux {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1b3154, #0e1a31);
}

.lux-stage {
  display: flex;
  width: 80%;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  color: white;
}

.lux-stage > i {
  color: var(--sunflower-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 27px;
  font-style: normal;
  font-weight: 800;
}

.lux-stage > b {
  margin: 9px 0 18px;
  font-family: var(--font-display);
  font-size: 17px;
}

.lux-stage > span {
  display: flex;
  gap: 7px;
}

.lux-stage > span em {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.68);
  font-size: 6px;
  font-style: normal;
}

.visual-automation {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #385d46, #203c2b);
}

.test-dashboard {
  display: grid;
  width: 82%;
  padding: 18px;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.test-dashboard > b {
  grid-column: 1 / -1;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
}

.test-dashboard > b i,
.test-dashboard > em i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #76dc8d;
}

.test-dashboard > span {
  padding: 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
}

.test-dashboard > span strong,
.test-dashboard > span small {
  display: block;
}

.test-dashboard > span strong {
  font-family: var(--font-display);
  font-size: 25px;
}

.test-dashboard > span small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 7px;
}

.test-dashboard > em {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
  font-style: normal;
}

.expertise-section {
  padding: 108px 16px 116px;
  background: var(--cream-100);
}

.expertise-grid {
  display: grid;
  width: min(1050px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.expertise-card {
  min-height: 255px;
  padding: 31px;
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.expertise-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.expertise-card > span {
  display: flex;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: var(--sunflower-400);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.expertise-card:nth-child(2) > span {
  background: #dfe8ff;
}

.expertise-card:nth-child(3) > span {
  background: #dcecdf;
}

.expertise-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.expertise-card p {
  margin-bottom: 0;
  color: var(--charcoal-500);
  font-size: 12px;
  line-height: 1.7;
}

.about-section {
  padding: 105px 16px 120px;
  background: linear-gradient(180deg, var(--cream-50), var(--cream-100));
}

.about-heading {
  margin-bottom: 44px;
  text-align: center;
}

.about-heading img {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border: 7px solid var(--sunflower-500);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 15px 30px rgba(45, 42, 38, 0.15);
}

.about-heading p {
  margin: 10px 0 0;
  color: var(--charcoal-500);
  font-size: 12px;
}

.about-layout {
  width: min(900px, 100%);
  margin: 0 auto;
}

.about-story,
.experience-card,
.skills-block {
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.about-story {
  margin-bottom: 32px;
  padding: 35px;
}

.about-story .tile-kicker {
  color: var(--sunflower-600);
}

.about-story h3 {
  margin-bottom: 17px;
  font-size: 28px;
}

.about-story > p:not(.tile-kicker) {
  margin-bottom: 13px;
  color: var(--charcoal-700);
  font-size: 12px;
  line-height: 1.75;
}

.about-story > p:last-child {
  margin-bottom: 0;
}

.experience-list {
  display: grid;
  margin-bottom: 32px;
  gap: 12px;
}

.experience-card {
  display: grid;
  padding: 22px 25px;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 9px 22px;
}

.experience-card div span,
.experience-card div small {
  display: block;
}

.experience-card div span {
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.experience-card div small,
.experience-card time {
  color: var(--charcoal-500);
  font-size: 9px;
}

.experience-card time {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--cream-100);
  white-space: nowrap;
}

.experience-card p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--charcoal-500);
  font-size: 10px;
  line-height: 1.58;
}

.skills-block {
  padding: 26px;
}

.skills-block h3 {
  margin-bottom: 14px;
  font-size: 19px;
}

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

.skills-list span {
  padding: 8px 11px;
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  background: var(--cream-100);
  color: var(--charcoal-700);
  font-size: 9px;
  font-weight: 700;
}

.cta-section {
  display: flex;
  min-height: 390px;
  padding: 75px 20px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 25%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.16), transparent 20%),
    var(--sunflower-500);
  text-align: center;
}

.cta-section > p {
  margin-bottom: 12px;
  color: var(--charcoal-700);
  font-size: 12px;
  font-weight: 600;
}

.cta-section h2 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(37px, 5vw, 62px);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.cta-section > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  box-shadow: 0 12px 24px rgba(45, 42, 38, 0.16);
  transform: translateY(-3px);
}

.button--dark {
  background: var(--charcoal-900);
  color: white;
}

.button--light {
  border: 1px solid rgba(45, 42, 38, 0.12);
  background: rgba(255, 255, 255, 0.65);
}

.site-footer {
  padding: 54px max(16px, calc((100% - 1100px) / 2));
  background: var(--charcoal-900);
  color: white;
}

.site-footer > div {
  display: flex;
  margin-bottom: 33px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.site-footer div div {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--sunflower-400);
}

.site-footer > small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 580ms cubic-bezier(0.22, 1, 0.36, 1), transform 580ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.game-overlay {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--sage-600);
  color: white;
}

.game-overlay[hidden] {
  display: none;
}

.game-bar {
  display: flex;
  min-height: 78px;
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.14);
}

.game-bar > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.game-bar > div > span {
  font-size: 28px;
}

.game-bar p {
  margin-bottom: 0;
}

.game-bar p strong,
.game-bar p small {
  display: block;
}

.game-bar p strong {
  font-size: 20px;
}

.game-bar p small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
}

.game-bar time {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.game-bar > button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  cursor: pointer;
  font-size: 25px;
}

.game-field {
  position: relative;
  flex: 1;
  overflow: hidden;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.11) 1px, transparent 0);
  background-size: 28px 28px;
}

.moving-bug {
  position: absolute;
  display: flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c6ff00;
  box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.4);
  cursor: pointer;
  font-size: 34px;
  animation: bug-beacon 900ms infinite ease-out;
  touch-action: manipulation;
}

@keyframes bug-beacon {
  70% { box-shadow: 0 0 0 22px rgba(198, 255, 0, 0); }
}

.game-hint {
  margin: 0;
  padding: 14px;
  background: rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  text-align: center;
}

.game-message {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  padding: 25px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: rgba(31, 67, 45, 0.94);
  text-align: center;
}

.game-message[hidden] {
  display: none;
}

.game-message > span {
  display: flex;
  width: 78px;
  height: 78px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c6ff00;
  color: var(--charcoal-900);
  font-size: 38px;
}

.game-message h2 {
  margin-bottom: 8px;
  font-size: 36px;
}

.game-message p {
  color: rgba(255, 255, 255, 0.7);
}

.game-message div {
  display: flex;
  margin-top: 12px;
  gap: 10px;
}

.game-message button {
  padding: 11px 16px;
  border-radius: 999px;
  background: white;
  color: var(--charcoal-900);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.game-message button:first-child {
  background: var(--sunflower-500);
}

.project-dialog {
  width: min(800px, calc(100% - 32px));
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: var(--cream-50);
  color: var(--charcoal-900);
  box-shadow: 0 40px 100px rgba(20, 17, 14, 0.34);
}

.project-dialog::backdrop {
  background: rgba(45, 42, 38, 0.68);
  backdrop-filter: blur(7px);
}

.dialog-close {
  position: absolute;
  z-index: 4;
  top: 15px;
  right: 15px;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--charcoal-900);
  cursor: pointer;
  font-size: 24px;
  backdrop-filter: blur(10px);
}

.dialog-hero {
  position: relative;
  display: flex;
  min-height: 270px;
  padding: 40px;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(145deg, #111c38, #29456d);
  color: white;
}

.dialog-hero::before {
  position: absolute;
  top: -70px;
  right: -35px;
  width: 240px;
  height: 240px;
  border: 48px solid rgba(247, 217, 76, 0.18);
  border-radius: 50%;
  content: "";
}

.dialog-hero::after {
  position: absolute;
  bottom: -60px;
  left: -20px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(74, 124, 89, 0.24);
  content: "";
}

.dialog-hero span {
  position: relative;
  z-index: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(32px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.dialog-content {
  padding: 40px;
}

.dialog-meta {
  margin-bottom: 9px;
  color: var(--sunflower-600);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dialog-content > h2 {
  margin-bottom: 13px;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.045em;
}

.dialog-summary {
  max-width: 660px;
  color: var(--charcoal-700);
  font-size: 13px;
  line-height: 1.75;
}

.dialog-impact {
  display: grid;
  margin: 28px 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dialog-impact span {
  padding: 17px;
  border-radius: 13px;
  background: var(--cream-200);
}

.dialog-impact strong,
.dialog-impact small {
  display: block;
}

.dialog-impact strong {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 21px;
}

.dialog-impact small {
  color: var(--charcoal-500);
  font-size: 8px;
  line-height: 1.35;
}

.dialog-columns {
  display: grid;
  padding-top: 26px;
  border-top: 1px solid var(--cream-300);
  grid-template-columns: 1.35fr 0.65fr;
  gap: 35px;
}

.dialog-columns h3 {
  margin-bottom: 13px;
  font-size: 18px;
}

.dialog-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dialog-columns li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 19px;
  color: var(--charcoal-700);
  font-size: 10px;
  line-height: 1.55;
}

.dialog-columns li::before {
  position: absolute;
  top: 4px;
  left: 0;
  color: var(--sunflower-600);
  content: "✓";
  font-weight: 800;
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dialog-tags span {
  padding: 7px 9px;
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  background: white;
  font-size: 8px;
  font-weight: 700;
}

.dialog-note {
  margin: 26px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef4ef;
  color: var(--sage-600);
  font-size: 8px;
  line-height: 1.5;
}

.celebration {
  position: fixed;
  z-index: 6000;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(360px, calc(100% - 40px));
  padding: 17px;
  grid-template-columns: 45px 1fr;
  gap: 3px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: var(--charcoal-900);
  box-shadow: var(--shadow-md);
  color: white;
  animation: toast-in 400ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.celebration[hidden] {
  display: none;
}

.celebration > span {
  display: flex;
  grid-row: 1 / 3;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c6ff00;
  color: var(--charcoal-900);
  font-size: 22px;
}

.celebration strong {
  font-family: var(--font-display);
  font-size: 16px;
}

.celebration small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  line-height: 1.4;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(18px) scale(0.95); }
}

@media (hover: hover) and (pointer: fine) {
  .cursor-orb {
    display: flex;
  }

  [data-cursor] {
    cursor: none !important;
  }
}

@media (max-width: 1023px) {
  .bento-grid {
    grid-template-areas:
      "intro intro"
      "portrait portrait"
      "career stack"
      "game pipeline"
      "learning learning"
      "impact politics"
      "connect connect";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 260px 330px 160px 160px 240px 170px 155px;
  }

  .intro-tile h1 {
    font-size: clamp(43px, 8vw, 62px);
  }

  .portrait-tile img {
    object-position: center;
  }


  .learning-tile > p:not(.tile-kicker) {
    max-width: 560px;
  }
}

@media (max-width: 767px) {
  .nav-shell {
    height: 58px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    padding: 18px 16px 22px;
    gap: 4px;
    border-bottom: 1px solid var(--cream-300);
    background: rgba(253, 248, 243, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links > a:not(.nav-cta) {
    padding: 12px 9px;
    font-size: 15px;
  }

  .nav-links > a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 7px;
    justify-content: center;
  }

  main {
    padding-top: 58px;
  }

  .hero-shell {
    padding-top: 12px;
  }

  .timeline {
    grid-template-columns: 40px minmax(0, 1fr);
    row-gap: 20px;
  }

  .timeline-rail {
    left: 17px;
    width: 2px;
    transform: none;
  }

  .timeline-year {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 40px;
  }

  .timeline-year span {
    min-width: 72px;
    padding: 10px 14px;
    font-size: 15px;
  }

  .project-card--left,
  .project-card--right {
    grid-column: 2;
    max-width: none;
    justify-self: stretch;
  }

  .project-card--left::after,
  .project-card--right::after {
    top: 24px;
    left: -29px;
    right: auto;
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  .project-visual {
    height: 230px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    min-height: 0;
  }

  .site-footer > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-columns {
    grid-template-columns: 1fr;
  }

  .dialog-impact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  :root {
    --radius: 15px;
  }

  .hero-shell {
    width: calc(100% - 16px);
  }

  .bento-grid {
    grid-template-rows: 270px 285px 135px 135px 230px 155px 145px;
    gap: 8px;
  }

  .intro-tile {
    padding: 25px 20px;
  }

  .intro-tile h1 {
    margin-bottom: 11px;
    font-size: clamp(37px, 11vw, 49px);
  }

  .intro-copy {
    margin-bottom: 17px;
    font-size: 13px;
    line-height: 1.48;
  }

  .pill-row span {
    padding: 7px 10px;
    font-size: 8px;
  }

  .learning-tile {
    padding: 20px;
  }

  .learning-tile .tile-kicker {
    margin-top: 17px;
  }

  .learning-tile h2 {
    font-size: 23px;
  }

  .game-tile,
  .pipeline-tile,
  .impact-tile,
  .career-tile,
  .politics-tile,
  .stack-tile,
  .connect-tile {
    padding: 13px;
  }

  .game-icon {
    font-size: 31px;
  }

  .game-tile strong {
    font-size: 9px;
  }

  .pipeline-visual {
    transform: scale(0.8);
  }

  .impact-tile h2 {
    font-size: 14px;
  }

  .metric-pair {
    gap: 7px;
  }

  .metric-pair strong {
    font-size: 22px;
  }

  .metric-pair small {
    font-size: 6px;
  }

  .career-logos {
    gap: 5px;
  }

  .career-logos span {
    padding: 7px 5px;
    gap: 4px;
    font-size: 6px;
  }

  .career-logos b {
    width: 16px;
    height: 16px;
    font-size: 7px;
  }

  .career-tile > p:last-child {
    font-size: 7px;
  }

  .politics-tile {
    gap: 8px;
  }

  .politics-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .politics-tile strong {
    font-size: 13px;
  }

  .politics-tile em {
    font-size: 6px;
  }

  .stack-grid {
    gap: 5px;
  }

  .stack-grid span {
    padding: 8px 3px;
    font-size: 6px;
  }

  .connect-grid {
    gap: 6px;
  }

  .connect-grid a {
    min-height: 30px;
  }

  .work-section,
  .expertise-section,
  .about-section {
    padding: 82px 8px 90px;
  }

  .section-heading {
    margin-bottom: 35px;
    padding: 0 16px;
  }

  .section-heading p {
    font-size: 10px;
  }

  .section-heading h2,
  .about-heading h2 {
    font-size: 36px;
  }

  .timeline {
    grid-template-columns: 29px minmax(0, 1fr);
  }

  .timeline-rail {
    left: 10px;
  }

  .timeline-year {
    padding-left: 29px;
  }

  .project-card--left::after,
  .project-card--right::after {
    left: -24px;
  }

  .project-visual {
    height: 205px;
  }

  .project-copy {
    padding: 17px;
  }

  .project-copy strong {
    font-size: 21px;
  }

  .project-copy span {
    font-size: 9px;
  }

  .expertise-card {
    padding: 27px 22px;
  }

  .about-heading img {
    width: 80px;
    height: 80px;
  }

  .about-story {
    padding: 24px 20px;
  }

  .about-story h3 {
    font-size: 24px;
  }

  .about-story > p:not(.tile-kicker) {
    font-size: 10px;
  }

  .experience-card {
    padding: 18px;
    grid-template-columns: 1fr;
  }

  .experience-card time {
    width: max-content;
  }

  .skills-block {
    padding: 20px;
  }

  .cta-section {
    min-height: 390px;
  }

  .cta-section h2 {
    font-size: 39px;
  }

  .site-footer p {
    font-size: 19px;
  }

  .dialog-hero {
    min-height: 200px;
    padding: 25px;
  }

  .dialog-content {
    padding: 28px 20px;
  }

  .game-message div {
    flex-direction: column;
  }
}

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

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

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  .cursor-orb {
    display: none;
  }
}
