@font-face {
  font-family: 'Commit Mono';
  src: url('./assets/fonts/commit-mono-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Commit Mono';
  src: url('./assets/fonts/commit-mono-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #020101;
  --surface: #11100e;
  --surface-raised: #191713;
  --surface-hover: #211e18;
  --line: rgba(224, 216, 199, 0.14);
  --soft: rgba(224, 216, 199, 0.07);
  --text: #f1eee7;
  --muted: #a9a59a;
  --accent: #b89a61;
  --accent-dim: rgba(184, 154, 97, 0.18);
  --signal-cyan: #79c4cf;
  --signal-violet: #b291c9;
  --signal-coral: #d28d78;
  --green: var(--accent);
  --gd: var(--accent-dim);
  --sans: 'Instrument Sans', sans-serif;
  --display: 'Bricolage Grotesque', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Commit Mono', monospace;
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
}

html { background: var(--bg); }
body { background: var(--bg); font-family: var(--sans); text-wrap: pretty; }
h1, h2, h3, h4, strong { font-family: var(--display); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 300; top: 12px; left: 12px; padding: 8px 12px; background: var(--text); color: var(--bg); font: 600 12px/16px var(--sans); transform: translateY(-180%); transition: transform .3s var(--curve); }
.skip-link:focus { transform: translateY(0); }
.site-noise { opacity: .08; }
.scroll-progress { height: 2px; background: var(--accent); box-shadow: none; }
.scroll-progress::after { display: none; }
.boot-screen { background: var(--bg); overflow: hidden; }
.boot-matrix { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .48; pointer-events: none; }
.boot-log { position: relative; z-index: 1; padding: 18px 20px; border: 1px solid var(--line); background: rgba(17,16,14,.66); box-shadow: 0 20px 60px rgba(0,0,0,.35); backdrop-filter: blur(10px); }
.boot-screen button { z-index: 1; border-color: var(--accent-dim); color: var(--accent); }

.site-header {
  position: fixed; top: 16px; left: 50%; right: auto; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); height: 48px; padding: 0 8px 0 16px;
  gap: 22px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(24, 24, 24, .78); backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22); transition: border-color .3s var(--curve), background .3s var(--curve);
}
.site-header.is-scrolled { border-color: rgba(255,255,255,.24); background: rgba(24,24,24,.92); }
.wordmark { position: static !important; color: var(--text); font: 600 12px/16px var(--sans); letter-spacing: -.02em; }
.wordmark span { color: var(--accent); }
.desktop-nav { display: flex; gap: 4px; margin: 0 !important; }
.desktop-nav a, .header-command { padding: 7px 9px; color: var(--muted); border-radius: 999px; font: 500 12px/16px var(--sans); letter-spacing: 0; transition: color .3s var(--curve), background .3s var(--curve); }
.desktop-nav a:hover, .header-command:hover { color: var(--text); background: var(--soft); }
.desktop-nav a.is-active { color: var(--text); background: var(--surface-raised); }
.header-actions { position: static !important; gap: 2px; }
.header-command { border: 0 !important; background: transparent !important; }
.header-command:first-child { display: none; }
.menu-trigger { border: 0; border-radius: 999px; background: var(--surface-raised); }
.menu-trigger i { background: var(--text); }

main { max-width: 1180px; padding: 0 32px; }
.hero { min-height: 100svh; padding: 136px 0 72px; }
.hero-copy { max-width: 680px; }
.availability { margin-bottom: 24px; color: var(--accent); font: 500 12px/16px var(--sans); letter-spacing: .02em; text-transform: none; }
.availability span { width: 8px; height: 8px; background: var(--accent); box-shadow: none; }
.hero h1 {
  max-width: 680px; font-family: var(--serif); font-size: clamp(60px, 9vw, 128px); font-weight: 400; line-height: .9; letter-spacing: -.065em;
  background: linear-gradient(90deg, #f8f5ed 8%, #b7b1a4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.cursor { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.hero-intro-photo { width: 92px; height: 92px; margin: 28px 0 8px; border: 1px solid var(--line); border-radius: 12px; box-shadow: none; filter: grayscale(.15) contrast(1.04); }
.hero-location { margin: 18px 0 14px; color: var(--muted); font: 500 12px/16px var(--sans); letter-spacing: .06em; }
.hero-summary { max-width: 620px; color: #d4d0c7; font-size: 18px; line-height: 28px; text-wrap: pretty; }
.hero-proof { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.hero-links { margin-top: 32px; }
.button { min-height: 44px; padding: 8px 12px; border-radius: 8px; font: 600 14px/20px var(--sans); transition: transform .5s var(--curve), background .3s var(--curve), border-color .3s var(--curve); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.98); }
.solid { border-color: var(--text); background: var(--text); color: var(--bg); }
.ghost { background: transparent; }
.hero-socials { gap: 16px; margin-top: 24px; }
.hero-socials a, footer a { color: var(--muted); font: 500 12px/16px var(--sans); transition: color .3s var(--curve); }
.hero-socials a:hover, footer a:hover { color: var(--text); }
.scroll-cue { font: 500 12px/16px var(--sans); letter-spacing: .04em; }
.hero-radar { opacity: .35; }
.ticker { margin-inline: 0; border-color: var(--line); background: var(--surface); }
.ticker div { animation: none; width: 100%; padding: 12px 0; color: var(--muted); font: 500 12px/16px var(--sans); letter-spacing: .08em; text-align: center; }
.ticker div i:nth-of-type(n+5), .ticker div i:nth-of-type(n+5) ~ * { display: none; }

.tagline-reveal { max-width: 840px; margin: 0 auto; padding: 128px 0 32px; text-align: center; }
.tagline-reveal p { margin: 0; font-size: clamp(30px, 4.8vw, 60px); font-weight: 600; line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
.tagline-reveal [data-reveal-word] { display: inline-block; color: rgba(245,245,243,.28); transition: color .7s var(--curve), transform .7s var(--curve); }
.tagline-reveal.is-visible [data-reveal-word] { color: var(--text); transform: translateY(0); }

.section { padding-top: 112px; }
.section-label, .eyebrow { color: var(--accent); font: 600 12px/16px var(--sans); letter-spacing: .02em; }
.section:nth-of-type(3n) .section-label { color: var(--signal-cyan); }
.section:nth-of-type(4n) .section-label { color: var(--signal-violet); }
.section h2, .contact-section h2 { max-width: 680px; margin-top: 12px; font-size: clamp(48px, 6vw, 72px); font-weight: 560; line-height: 1; letter-spacing: -.065em; text-wrap: balance; }
.about-layout { gap: 64px; padding-top: 40px; }
.lead { font-size: 20px !important; line-height: 28px !important; }
.about-layout p:not(.section-label) { font-size: 16px; line-height: 24px; }
.text-link { color: var(--text); font: 600 14px/20px var(--sans); }
.metric-grid { gap: 8px; border: 0; }
.metric-grid article { min-height: 152px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: background .3s var(--curve), transform .5s var(--curve), border-color .3s var(--curve); }
.metric-grid article:nth-child(2n) { border-right: 1px solid var(--line); }
.metric-grid article:hover { border-color: rgba(255,255,255,.28); background: var(--surface-hover); transform: translateY(-4px); }
.metric-grid strong { font-size: 48px; font-weight: 600; letter-spacing: -.06em; }
.metric-grid strong span { color: var(--accent); }
.metric-grid strong .counter-value { color: var(--text); }
.metric-grid p { font: 500 12px/16px var(--sans); letter-spacing: 0; text-transform: none; }

.timeline, .skill-groups, .project-list { margin-top: 40px; border-top-color: var(--line); }
.experience-timeline::before, .signal-list::before { background: var(--line); }
.timeline-progress, .signal-progress { background: var(--accent); box-shadow: none; }
.timeline-progress-dot, .signal-progress-dot { background: var(--text); box-shadow: 0 0 0 4px var(--accent-dim); }
.role, .education-card { grid-template-columns: 190px 56px minmax(0, 1fr); padding: 32px 0; }
.role-date { font: 500 12px/16px var(--sans); letter-spacing: 0; }
.role-mark { width: 36px; height: 36px; border-radius: 50%; color: var(--accent); font: 600 12px/16px var(--sans); }
.role-body h3, .honors-grid h3 { font-size: 24px; font-weight: 600; line-height: 32px; letter-spacing: -.04em; }
.role-body h4 { margin: 4px 0 16px; color: var(--accent); font: 500 14px/20px var(--sans); }
.role-body li { margin: 8px 0; color: #cbc6ba; font-size: 14px; line-height: 20px; }
.tags span { padding: 4px 8px; border-radius: 999px; font: 500 12px/16px var(--sans); }
.skill-groups article, .project { padding: 28px 0; }
.skill-groups h3 { font-size: 20px; line-height: 28px; }
.skill-groups span, .project > span { color: var(--accent); font: 500 12px/16px var(--sans); }
.stack-token { min-height: 32px; border-radius: 999px; font: 500 12px/16px var(--sans); }
.project { grid-template-columns: 190px minmax(0,1fr); transition: background .3s var(--curve), padding .5s var(--curve); }
.project:hover { padding-left: 0; background: transparent; }
.project h3 { font-size: clamp(30px, 3.5vw, 48px); font-weight: 600; line-height: 1; }
.project p { font-size: 16px; line-height: 24px; }
.honors-grid { gap: 8px; border: 0; }
.honors-grid article { min-height: 264px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.honors-grid h3 { margin-top: 16px; }
.contact-section { gap: 64px; margin-top: 112px; padding: 80px 0; border-top-color: var(--line); }
.contact-links a { min-height: 48px; color: var(--text); border-bottom-color: var(--line); font: 500 14px/20px var(--sans); transition: color .3s var(--curve); }
.contact-links a:hover { color: var(--accent); }
footer { max-width: 1180px; border-top-color: var(--line); font: 500 12px/16px var(--sans); }

@media (hover: hover) and (pointer: fine) {
  .role, .education-card, .skill-groups article, .project, .honors-grid article {
    transition: transform .5s var(--curve), background .3s var(--curve), border-color .3s var(--curve), box-shadow .3s var(--curve);
  }
  .role:hover, .education-card:hover, .skill-groups article:hover, .project:hover {
    background: rgba(255,255,255,.025);
  }
  .role:hover, .education-card:hover { transform: translateX(8px); }
  .skill-groups article:hover, .project:hover { transform: translateX(6px); }
  .honors-grid article:hover { border-color: rgba(255,255,255,.28); background: var(--surface-hover); box-shadow: 0 16px 30px rgba(0,0,0,.15); transform: translateY(-5px); }
}

.mobile-nav { background: rgba(0,0,0,.96); backdrop-filter: blur(24px); }
.mobile-nav a { font-family: var(--sans); font-weight: 600; }
.mobile-close, .modal-close { color: var(--text); }
.terminal-window, .palette-window { border-radius: 12px; background: var(--surface); }
.terminal-content { color: var(--accent); }
.palette-window a { font-family: var(--sans); }

.wordmark, .desktop-nav a, .header-command, .availability, .hero-location, .hero-socials a,
.scroll-cue, .ticker div, .section-label, .eyebrow, .metric-grid p, .role-date, .role-mark,
.tags span, .stack-token, .project > span, footer, .contact-links a, .boot-log, .boot-screen button {
  font-family: var(--mono);
}
.tagline-reveal p { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }

@media (max-width: 800px) {
  .site-header { top: 12px; left: 16px; right: 16px; transform: none; width: auto; max-width: none; justify-content: space-between; }
  .desktop-nav, .header-command { display: none; }
  .menu-trigger { display: block; }
  main { padding: 0 20px; }
  .hero { padding: 108px 0 56px; }
  .hero h1 { font-size: clamp(48px, 13vw, 72px); }
  .hero-intro-photo { width: 76px; height: 76px; margin-top: 24px; }
  .hero-summary { font-size: 16px; line-height: 24px; }
  .ticker { margin-inline: -20px; }
  .tagline-reveal { padding: 80px 0 8px; }
  .section { padding-top: 80px; }
  .section h2, .contact-section h2 { font-size: clamp(36px, 10vw, 52px); }
  .about-layout { gap: 40px; }
  .role, .education-card { grid-template-columns: 40px minmax(0,1fr); gap: 14px; }
  .role-date { grid-column: 1 / -1; }
  .role-mark { grid-column: 1; grid-row: 2; }
  .role-body { grid-column: 2; }
  .project { grid-template-columns: 1fr; gap: 12px; }
  .honors-grid { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; gap: 36px; margin-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .tagline-reveal [data-reveal-word] { color: var(--text); transition: none; }
  .boot-matrix { display: none; }
}
