:root {
  --background: hsl(30 8% 7%);
  --foreground: hsl(40 25% 92%);
  --card: hsl(30 8% 9%);
  --primary: hsl(152 65% 55%);
  --secondary: hsl(30 6% 14%);
  --muted: hsl(35 12% 60%);
  --accent: hsl(18 85% 60%);
  --border: hsl(30 8% 18%);
  --grid: hsl(30 8% 14%);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Fraunces", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--foreground);
  background-color: var(--background);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 80px 80px;
  font-family: var(--mono);
  font-feature-settings: "ss01", "cv11";
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
mark { color: var(--accent); background: none; }
em { color: var(--muted); font-weight: 300; }
::selection { color: var(--background); background: var(--primary); }
.muted { color: var(--muted); }
.primary { color: var(--primary); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; color: var(--background); background: var(--foreground); }
.skip-link:focus { top: 1rem; }
.page-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at top, hsl(152 65% 55% / .15), transparent 60%); }

.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: hsl(30 8% 7% / .8); backdrop-filter: blur(12px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: auto; padding: 12px 24px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-dot { width: 8px; height: 8px; background: var(--primary); }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); transition: color .2s; }
nav a:hover, nav a:focus-visible { color: var(--primary); }
.utc-clock { color: var(--muted); }

.ticker { overflow: hidden; border-bottom: 1px solid var(--border); background: hsl(30 6% 14% / .4); }
.ticker-track { display: flex; width: max-content; padding: 8px 0; white-space: nowrap; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .3em; animation: ticker 40s linear infinite; }
.ticker-group { display: flex; flex-shrink: 0; gap: 40px; padding: 0 20px; }
.ticker-group span { display: flex; gap: 40px; }
.ticker-group b { color: var(--primary); font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }

main { max-width: 1400px; margin: auto; padding: 0 24px; }
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 112px 0; }
.hero-copy { grid-column: span 8; }
.profile-card { grid-column: span 4; align-self: start; margin-left: 24px; }
.eyebrow { margin: 0 0 24px; font-size: 12px; text-transform: uppercase; letter-spacing: .3em; }
.eyebrow span { color: var(--primary); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .row-body h3, .cert-grid h3 { font-family: var(--display); font-optical-sizing: auto; font-variation-settings: "SOFT" 50, "WONK" 1; }
h1 { margin-bottom: 0; font-size: 8.5rem; font-weight: 300; line-height: .85; letter-spacing: -.025em; }
h1 em { color: var(--primary); }
.cursor::after { content: "▊"; margin-left: .15em; color: var(--primary); font-style: normal; animation: blink 1s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.hero-summary { max-width: 640px; margin: 32px 0 0; font-size: 18px; line-height: 1.625; text-wrap: pretty; }
.hero-summary strong { color: var(--foreground); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }
.button { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--border); padding: 12px 24px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; transition: color .2s, border-color .2s, transform .2s; }
.button-primary { border-color: var(--foreground); color: var(--background); background: var(--foreground); box-shadow: 6px 6px 0 var(--primary); }
.button-primary:hover { transform: translate(-4px, -4px); }
.button-secondary:hover { color: var(--primary); border-color: var(--primary); }
.fade-up { animation: fade-up .8s ease-out both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }

.profile-card, .contact-card { border: 1px solid var(--border); padding: 24px; background: var(--card); font-size: 12px; }
.card-title { display: flex; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); color: var(--muted); }
.profile-card dl { display: grid; gap: 12px; margin: 0; }
.profile-card dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.profile-card dt { color: var(--muted); }
.profile-card dd { margin: 0; text-align: right; }
.card-note { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); line-height: 1.5; }
.card-note span { color: var(--accent); }

.section { border-top: 1px solid var(--border); padding: 112px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.section-heading .eyebrow { margin-bottom: 12px; }
h2 { margin-bottom: 0; font-size: 72px; font-weight: 300; line-height: 1; letter-spacing: -.025em; }
.section-intro { max-width: 384px; margin: 0; font-size: 14px; line-height: 1.5; }
.stack-heading h2 { max-width: 768px; }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; padding: 32px 0; border-top: 1px solid var(--border); transition: background .2s; }
.timeline-row:hover { background: hsl(30 6% 14% / .3); }
.row-number { grid-column: span 1; color: var(--muted); font-size: 12px; }
.row-meta { grid-column: span 3; }
.row-meta p, .education { margin-bottom: 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.row-meta mark { display: block; margin-top: 8px; font-size: 12px; }
.row-body { grid-column: span 8; }
.row-body h3 { margin-bottom: 0; font-size: 48px; font-weight: 400; line-height: 1.25; }
.row-body h3 span { color: var(--muted); }
.row-body h3 em { color: var(--primary); }
.row-body p { max-width: 672px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.625; text-wrap: pretty; }
.education { margin: 0; padding-top: 32px; border-top: 1px solid var(--border); line-height: 1.6; }
.education span { color: var(--primary); }

.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); }
.stack-grid article { padding: 32px; background: var(--background); }
.stack-grid h3 { margin: 0 0 24px; color: var(--accent); font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .3em; }
.stack-grid ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stack-grid li { border: 1px solid var(--border); padding: 6px 12px; background: hsl(30 6% 14% / .5); font-size: 12px; transition: color .2s, border-color .2s, background .2s; }
.stack-grid li:hover { color: var(--background); border-color: var(--primary); background: var(--primary); }

.cert-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--border); }
.cert-grid article { position: relative; padding: 24px; background: var(--background); transition: background .2s; }
.cert-grid article:hover { background: hsl(30 6% 14% / .4); }
.cert-grid article > span { position: absolute; right: 12px; top: 12px; color: hsl(35 12% 60% / .6); font-size: 10px; }
.cert-grid h3 { margin: 0; color: var(--primary); font-size: 36px; font-weight: 400; }
.cert-grid p { margin: 8px 0 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-top: 128px; padding-bottom: 128px; }
.contact-copy { grid-column: span 7; }
.contact-copy .eyebrow { margin-bottom: 16px; }
.contact-copy h2 { font-size: 112px; line-height: .9; }
.contact-copy h2 em { color: var(--accent); }
.contact-copy > p:last-child { max-width: 448px; margin: 32px 0 0; font-size: 14px; line-height: 1.625; }
.contact-card { grid-column: span 5; align-self: start; margin-left: 32px; }
.contact-card ul { margin: 0; padding: 0; list-style: none; }
.contact-card li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-card li:last-child { border-bottom: 0; }
.contact-card li > span { color: var(--muted); }
.contact-card a:hover { color: var(--primary); }
.contact-card button { border: 1px solid var(--border); padding: 4px 12px; cursor: pointer; background: transparent; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.contact-card button:hover { color: var(--primary); border-color: var(--primary); }
.contact-card strong { font-weight: 400; }
.status { display: flex; align-items: center; gap: 8px; color: var(--primary); }
.status i { width: 8px; height: 8px; background: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }

footer { border-top: 1px solid var(--border); }
footer > div { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: auto; padding: 32px 24px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
footer b { color: var(--primary); font-weight: 400; }

@media (max-width: 767px) {
  nav, .utc-clock { display: none; }
  .topbar-inner { justify-content: flex-start; }
  .hero { padding: 80px 0; }
  .hero-copy, .profile-card, .contact-copy, .contact-card { grid-column: 1 / -1; }
  h1 { font-size: 15vw; }
  .hero-summary { font-size: 16px; }
  .profile-card { margin: 0; }
  .section { padding: 80px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 56px; }
  h2 { font-size: 48px; }
  .timeline-row { gap: 16px; }
  .row-number, .row-meta, .row-body { grid-column: 1 / -1; }
  .row-body h3 { font-size: 30px; }
  .stack-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid h3 { font-size: 30px; }
  .contact { padding-top: 96px; padding-bottom: 96px; }
  .contact-copy h2 { font-size: 60px; }
  .contact-card { margin: 0; }
  footer > div { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
