:root {
  --bg: #0a0d11;
  --bg-soft: #0e1319;
  --panel: #111821;
  --panel-2: #151e28;
  --text: #edf4f8;
  --muted: #9fb0bd;
  --line: #263442;
  --accent: #67d4ff;
  --accent-strong: #a6e9ff;
  --good: #7ee2b8;
  --warn: #f3c879;
  --critical: #ff9a9a;
  --max: 1160px;
  --shadow: 0 18px 60px rgba(0,0,0,.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(103,212,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,212,255,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 38px 38px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
/* Accessibility: visually hidden until reached by keyboard focus. */
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  z-index: 1000;
}
.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: .8rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--accent);
  color: #061018;
  border-radius: 8px;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,13,17,.90);
  border-bottom: 1px solid rgba(38,52,66,.9);
  backdrop-filter: blur(14px);
}
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { color: var(--text); font-weight: 850; letter-spacing: .02em; }
.nav-links { display: flex; gap: 1.15rem; align-items: center; flex-wrap: wrap; font-size: .94rem; }
.nav-links a { color: var(--muted); font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .nav-cta { border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem; color: var(--text); }
.hero { padding: 7.5rem 0 5.5rem; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); gap: 3rem; align-items: end; }
.eyebrow { margin: 0 0 1rem; color: var(--accent); font-weight: 800; letter-spacing: .11em; text-transform: uppercase; font-size: .76rem; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: .97; letter-spacing: -.05em; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .55rem; line-height: 1.25; }
h4 { margin: 1.4rem 0 .45rem; }
.hero-copy { max-width: 790px; margin-top: 1.7rem; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); }
.hero-side { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.hero-side p { margin: .3rem 0; }
.actions { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .72rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-weight: 780; transition: transform .14s ease, border-color .14s ease; }
.button:hover { transform: translateY(-1px); border-color: #3c5265; color: var(--text); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #061119; }
.button.primary:hover { color: #061119; }
.skill-strip { display: flex; flex-wrap: wrap; gap: .58rem; margin-top: 2rem; }
.pill { border: 1px solid var(--line); background: rgba(17,24,33,.92); padding: .38rem .66rem; border-radius: 999px; color: #d4e0e8; font-size: .86rem; }
.section { padding: 5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 2rem; align-items: start; margin-bottom: 2rem; }
.section-heading p { margin: .2rem 0 0; color: var(--muted); max-width: 760px; }
.grid3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.grid2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(180deg, rgba(21,30,40,.98), rgba(17,24,33,.98)); padding: 1.45rem; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.project-card { display: flex; flex-direction: column; min-height: 100%; }
.project-card .spacer { flex: 1; }
.project-link { margin-top: 1rem; font-weight: 800; }
.meta { color: var(--accent); font-size: .80rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; margin-bottom: .7rem; }
.arch-mini, .arch { margin: 1rem 0; border: 1px solid var(--line); border-radius: 10px; background: #070a0d; padding: 1rem; color: #d9eaf2; overflow-x: auto; white-space: pre; font-size: .87rem; line-height: 1.48; }
.arch { padding: 1.25rem; font-size: .94rem; }
.timeline { display: grid; gap: .4rem; }
.timeline-item { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.timeline-item:first-child { border-top: 0; padding-top: 0; }
.role { color: var(--accent); font-weight: 800; }
.timeline-item ul { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .89rem; color: var(--muted); }
.page-hero { padding: 5.5rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.6rem, 6vw, 5rem); }
.page-hero p.lead { max-width: 830px; color: var(--muted); font-size: 1.12rem; }
.breadcrumbs { color: var(--muted); font-size: .88rem; margin-bottom: 1.3rem; }
.breadcrumbs a { color: var(--muted); }
.case-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(250px,.45fr); gap: 2rem; align-items: start; }
.case-main > section { padding: 1.7rem 0; border-top: 1px solid var(--line); }
.case-main > section:first-child { border-top: 0; padding-top: 0; }
.case-aside { position: sticky; top: 92px; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: .65rem 0; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; }
.facts strong { display: block; color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.code-block { border: 1px solid var(--line); border-radius: 11px; background: #06090c; overflow-x: auto; padding: 1.1rem; color: #d7ebf5; font-size: .9rem; line-height: 1.55; white-space: pre; }
.callout { border-left: 3px solid var(--accent); background: var(--panel); padding: 1rem 1.15rem; margin: 1.4rem 0; color: #dce6ec; }
.callout.warning { border-left-color: var(--warn); }
.metric-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1.5rem 0; }
.metric { border: 1px solid var(--line); border-radius: 11px; background: var(--panel); padding: 1rem; }
.metric .number { display: block; font-size: 1.8rem; font-weight: 850; letter-spacing: -.03em; }
.metric .label { color: var(--muted); font-size: .86rem; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: .25rem .45rem; margin: .15rem .12rem .15rem 0; font-size: .82rem; color: #d5e3eb; background: #0c1117; }
.resume-shell { max-width: 960px; }
.resume-section { padding: 1.7rem 0; border-top: 1px solid var(--line); }
.resume-section:first-of-type { border-top: 0; }
.resume-job { margin: 1.4rem 0 1.7rem; }
.resume-job h3 { margin-bottom: .15rem; }
.resume-job .dates { color: var(--accent); font-weight: 700; font-size: .92rem; }
.resume-job li { margin: .45rem 0; }
.link-row { display: flex; flex-wrap: wrap; gap: .8rem; }
footer { border-top: 1px solid var(--line); padding: 2.8rem 0; color: var(--muted); background: rgba(8,11,14,.72); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-row a { color: var(--muted); }
.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; }
.not-found h1 { max-width: none; }
@media (max-width: 900px) {
  .hero-grid, .case-layout, .grid3, .grid2, .section-heading { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; border-top: 1px solid var(--line); padding: 1.4rem 0 0; }
  .case-aside { position: static; }
  .metric-row { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav { align-items: flex-start; padding: 1rem 0; }
  .nav-links { justify-content: flex-end; gap: .65rem .9rem; }
  .hero { padding: 5.2rem 0 4rem; }
  .page-hero { padding-top: 4rem; }
  .section { padding: 4rem 0; }
}
@media print {
  .site-header, footer, .actions, .breadcrumbs { display: none !important; }
  body { background: white; color: black; }
  .page-hero, .section { border: 0; padding: 1rem 0; }
  .card { box-shadow: none; }
}
