:root {
  --bg: #0b0e13;
  --bg-deep: #080a0e;
  --panel: #121621;
  --panel-hover: #161c2a;
  --text: #e6e9ee;
  --muted: #929baa;
  --line: #222a3a;
  --line-bright: #334155;
  --accent: #7dd3fc;
  --accent-soft: rgba(125, 211, 252, .1);
  --violet: #b8a7ff;
  --orange: #f5bd7b;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 580px at 18% -12%, #11182c 0, transparent 68%),
    radial-gradient(850px 460px at 92% 0, #0d1a28 0, transparent 66%),
    var(--bg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-head {
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(11, 14, 19, .76);
  backdrop-filter: blur(12px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { display: inline-flex; align-items: center; font-size: 21px; font-weight: 700; letter-spacing: .01em; text-decoration: none; }
.logo b {
  width: 8px;
  height: 1.05em;
  margin-left: 5px;
  overflow: hidden;
  color: transparent;
  background: var(--accent);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s ease; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--accent); }

.hero { padding: 84px 0 68px; }
.hero.compact { padding: 62px 0 44px; }
.kicker, .overline, .status {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kicker { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: 900px;
  margin: 15px 0 22px;
  font-size: clamp(42px, 7vw, 74px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.compact h1 { max-width: 940px; font-size: clamp(38px, 5.5vw, 58px); }
h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 610; line-height: 1.15; letter-spacing: -.035em; }
h3 { margin: 0; font-size: 21px; font-weight: 580; line-height: 1.28; letter-spacing: -.02em; }
.lead { max-width: 780px; margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.hero-copy { max-width: 790px; color: var(--muted); font-size: 18px; }
.hero-copy p { margin: 0 0 13px; }
.hero-copy p:last-child { margin-bottom: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero-meta span { padding: 5px 9px; color: #aeb7c5; border: 1px solid var(--line); border-radius: 5px; background: rgba(18, 22, 33, .66); font-size: 12px; }
.buttons { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-bright); border-radius: 8px; color: #dce2eb; background: rgba(18, 22, 33, .72); font-size: 14px; font-weight: 650; text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.btn:hover { transform: translateY(-2px); border-color: rgba(125, 211, 252, .65); background: var(--panel); }
.btn.primary { color: #071017; border-color: var(--accent); background: var(--accent); }
.btn.primary:hover { background: #a4e3ff; }

section.block { padding: 62px 0; }
.section-head { display: grid; grid-template-columns: 185px 1fr; gap: 30px; align-items: start; margin-bottom: 27px; }
.overline { padding-top: 8px; color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card, .project, .lab-note, .personal-links a, .service-band, .note {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .024), transparent 58%), var(--panel);
}
.card { display: flex; flex-direction: column; min-height: 260px; padding: 23px; }
.card h3 { margin-top: 19px; }
.card p { margin: 10px 0 0; color: var(--muted); }
.card .bottom { margin-top: auto; padding-top: 20px; color: var(--accent); font-size: 14px; font-weight: 650; }
.card .bottom a { text-decoration: none; }
.card .bottom a:hover { text-decoration: underline; }

.status { align-self: flex-start; width: max-content; max-width: 100%; padding: 4px 8px; border-radius: 99px; color: var(--accent); background: var(--accent-soft); }
.status.blue { color: var(--accent); background: rgba(125, 211, 252, .1); }
.status.violet { color: var(--violet); background: rgba(184, 167, 255, .1); }
.status.orange { color: var(--orange); background: rgba(245, 189, 123, .1); }
.status.gray { color: #a1a9b5; background: rgba(255, 255, 255, .055); }

.list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.row { display: grid; grid-template-columns: 1.1fr 1.75fr auto; align-items: center; gap: 22px; min-height: 82px; padding: 17px 21px; text-decoration: none; transition: background .2s ease; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--panel-hover); }
.row strong { font-size: 17px; font-weight: 600; }
.row p { margin: 0; color: var(--muted); font-size: 14px; }
.row .go { color: var(--accent); font-size: 19px; }

.category { padding-top: 54px; }
.category:first-child { padding-top: 0; }
.category-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.category-title h2 { font-size: 32px; }
.category-title p { max-width: 590px; margin: 0; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.project { min-height: 180px; padding: 21px; transition: border-color .2s ease, transform .2s ease; }
.project:hover { transform: translateY(-2px); border-color: rgba(125, 211, 252, .34); }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.project p { margin: 12px 0; color: var(--muted); font-size: 14px; }
.project a { color: var(--accent); font-size: 14px; font-weight: 650; text-decoration: none; }
.project a:hover { text-decoration: underline; }
.project .status { flex: 0 0 auto; font-size: 9px; white-space: nowrap; }

.timeline { max-width: 880px; margin-left: 6px; border-left: 1px solid var(--line-bright); }
.step { position: relative; padding: 0 0 38px 34px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; top: 7px; left: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px rgba(125, 211, 252, .07); }
.step small { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.step h3 { margin: 5px 0 7px; font-size: 23px; }
.step p { max-width: 790px; margin: 0; color: var(--muted); }

.note { padding: 28px; }
.note p { max-width: 850px; margin: 0; color: #d7dce4; font-size: 21px; line-height: 1.5; }
.note span { color: var(--muted); }
.service-band { display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 28px; padding: 29px; }
.service-band h2 { font-size: 34px; }
.service-band p { max-width: 680px; margin: 8px 0 0; color: var(--muted); }
.quick-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.quick-nav a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: rgba(18, 22, 33, .7); font-size: 13px; text-decoration: none; }
.quick-nav a:hover { color: var(--accent); border-color: rgba(125, 211, 252, .45); }

.lab-board { display: grid; grid-template-columns: repeat(12, 1fr); gap: 15px; }
.lab-note { padding: 22px; transition: border-color .2s ease, transform .2s ease; }
.lab-note:hover { transform: translateY(-2px); border-color: rgba(125, 211, 252, .35); }
.lab-note:nth-child(1) { grid-column: span 7; }
.lab-note:nth-child(2) { grid-column: span 5; }
.lab-note:nth-child(3) { grid-column: span 5; }
.lab-note:nth-child(4) { grid-column: span 7; }
.lab-note h3 { margin: 16px 0 7px; }
.lab-note p { margin: 0; color: var(--muted); }
.lab-note a { display: inline-block; margin-top: 13px; color: var(--accent); font-size: 14px; font-weight: 650; text-decoration: none; }
.lab-note a:hover { text-decoration: underline; }
.personal-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.personal-links a { min-height: 112px; padding: 17px; font-weight: 600; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.personal-links a:hover { transform: translateY(-2px); border-color: rgba(125, 211, 252, .45); }
.personal-links small { display: block; margin-top: 7px; color: var(--muted); font-weight: 400; line-height: 1.45; }

.site-foot { margin-top: 38px; padding: 27px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 25px; }
.foot strong { color: var(--text); }
.foot a { color: #b9c1cc; text-decoration: none; }
.foot a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .grid, .grid.two, .project-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 5px; }
  .overline { padding-top: 0; }
  .service-band { grid-template-columns: 1fr; }
  .lab-board { grid-template-columns: 1fr; }
  .lab-note:nth-child(n) { grid-column: auto; }
  .personal-links { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr auto; }
  .row p { grid-column: 1; }
  .row .go { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 0; padding: 13px 0; flex-wrap: wrap; }
  .logo { width: 100%; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .menu { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .menu a { justify-self: center; font-size: 12px; }
  .hero { padding: 55px 0 47px; }
  .hero.compact { padding: 45px 0 34px; }
  h1 { font-size: 42px; }
  .hero-copy { font-size: 17px; }
  section.block { padding: 46px 0; }
  .category-title { align-items: flex-start; flex-direction: column; gap: 9px; }
  .project-top { display: block; }
  .project .status { margin-top: 10px; }
  .personal-links { grid-template-columns: 1fr; }
  .foot { flex-direction: column; }
  .note, .service-band { padding: 22px; }
  .note p { font-size: 18px; }
}

@media (max-width: 380px) {
  .menu { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
}

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