:root {
  --bg: #090c10;
  --hero: #090c10;
  --work: #0e1318;
  --experience: #0b0f14;
  --contact: #0e141a;
  --text: #f1f4f7;
  --body: #c3ccd5;
  --muted: #8c98a4;
  --line: rgba(188, 205, 221, 0.17);
  --line-soft: rgba(188, 205, 221, 0.09);
  --accent: #8fb8e9;
  --accent-strong: #b7d5f7;
  --badge-label: #343b43;
  --badge-value: #4c7199;
  --content: 1040px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 58px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(143, 184, 233, 0.25); color: var(--text); }

.shell {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: .82rem;
  font-weight: 700;
  transition: top 120ms ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 12, 16, 0.88);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar .shell {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: #e2e7ec;
  font-size: .84rem;
  font-weight: 720;
  letter-spacing: -.012em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: .8rem;
}
.nav a, .text-links a, .band-links a, .contact-actions a {
  transition: color 120ms ease;
}
.nav a:hover, .text-links a:hover, .band-links a:hover, .contact-actions a:hover {
  color: var(--accent-strong);
}

/* Hero */
.hero {
  background: var(--hero);
  padding: 70px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: 78px;
  align-items: start;
}
.identity h1 {
  margin: 0 0 10px;
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: .99;
  letter-spacing: -.052em;
  font-weight: 760;
}
.role {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .98rem;
  font-weight: 730;
}
.summary {
  max-width: 600px;
  margin: 0 0 22px;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
}
.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #d3dbe3;
  font-size: .8rem;
  font-weight: 650;
}
.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts div {
  padding: 13px 0 14px;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  margin: 0;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.facts dd {
  margin: 4px 0 0;
  color: #cbd4dd;
  font-size: .86rem;
}

/* Section heading */
#work { scroll-margin-top: 54px; }
.section-head {
  background: var(--work);
  padding: 50px 0 24px;
}
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section-head h2,
.experience-title h2 {
  margin: 5px 0 0;
  font-size: clamp(1.7rem, 3vw, 2rem);
  line-height: 1.12;
  letter-spacing: -.038em;
  font-weight: 730;
}

/* Projects */
.project-band {
  background: var(--work);
  border-top: 1px solid var(--line);
}
.project-band:last-child { border-bottom: 1px solid var(--line); }
.project-inner {
  padding: 34px 0 36px;
}
.project-head { display: block; }
.project-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .69rem;
}
.project-head h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.18;
  letter-spacing: -.029em;
  font-weight: 720;
}
.project-title-link {
  color: inherit;
  text-decoration: none;
}

.project-title-link:hover {
  color: var(--accent);
}
.project-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.project-band p {
  max-width: 820px;
  margin: 10px 0 19px;
  color: var(--body);
  font-size: .91rem;
  line-height: 1.62;
}

.metric-strip {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 18px;
}
.metric-item {
  min-width: 150px;
  margin-right: 25px;
  padding-right: 25px;
  border-right: 1px solid var(--line);
}
.metric-item:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}
.metric-item strong {
  display: block;
  color: var(--text);
  font-family: var(--mono);
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 760;
}
.metric-item span {
  display: block;
  max-width: 155px;
  margin-top: 3px;
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.35;
}

.project-status {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 18px;
  padding-left: 11px;
  border-left: 2px solid rgba(143, 184, 233, 0.55);
  font-size: .75rem;
}
.project-status strong { color: #cbd4dd; }
.project-status span { color: var(--muted); }

.project-foot {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px 12px;
  max-width: 900px;
}
.project-stack,
.project-actions > time,
.band-links a {
  font-family: var(--mono);
  font-size: .67rem;
  line-height: 1.55;
}
.project-stack { color: var(--muted); }
.project-actions {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 12px;
}
.project-actions > time {
  color: #788591;
  white-space: nowrap;
}
.band-links {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.band-links a {
  color: var(--accent);
  font-weight: 650;
}

.download-badge {
  display: inline-flex;
  height: 20px;
  overflow: hidden;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: .59rem;
  line-height: 20px;
  white-space: nowrap;
  transform: translateY(1px);
}
.download-badge span,
.download-badge b { padding: 0 6px; }
.download-badge span {
  background: var(--badge-label);
  color: #f1f3f5;
  font-weight: 500;
}
.download-badge b {
  min-width: 42px;
  background: var(--badge-value);
  color: #fff;
  text-align: center;
  font-weight: 750;
}

/* Experience */
.experience {
  background: var(--experience);
  border-top: 1px solid var(--line);
  padding: 60px 0 68px;
  scroll-margin-top: 54px;
}
.experience-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 78px;
  align-items: start;
}
.experience-title p {
  max-width: 245px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.55;
}
.career {
  position: relative;
  max-width: 735px;
  padding-left: 34px;
}
.career-line {
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 18px;
  width: 1px;
  background: var(--line);
}
.career-item {
  position: relative;
  padding: 0 0 29px;
}
.career-item:last-child { padding-bottom: 0; }
.career-item i {
  position: absolute;
  left: -34px;
  top: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--experience);
}
.career-item time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .65rem;
}
.career-item h3 {
  margin: 3px 0 1px;
  font-size: 1.08rem;
  letter-spacing: -.018em;
}
.career-item b {
  color: #bec8d1;
  font-size: .78rem;
  font-weight: 650;
}
.career-item p {
  max-width: 670px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.58;
}

/* About / contact */
.contact {
  background: var(--contact);
  border-top: 1px solid var(--line);
  padding: 58px 0 62px;
}
.contact-inner {
  text-align: left;
}
.contact h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -.029em;
}
.contact p {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--body);
  font-size: .91rem;
  line-height: 1.64;
}
.contact-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 9px 20px;
  color: #d4dce4;
  font-size: .81rem;
  font-weight: 680;
}
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding: 21px 0 28px;
  color: #74808b;
  font-size: .69rem;
}
.footer .shell {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .facts { max-width: 680px; }
  .experience-grid { grid-template-columns: 1fr; gap: 34px; }
  .experience-title p { max-width: 620px; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 30px), var(--content)); }
  .topbar .shell { min-height: 52px; }
  .nav { gap: 15px; }
  .nav a:nth-child(1), .nav a:nth-child(2) { display: none; }
  .hero { padding: 54px 0 58px; }
  .identity h1 { font-size: 2.85rem; }
  .section-head { padding: 43px 0 20px; }
  .project-inner { padding: 27px 0 29px; }
  .project-band p { font-size: .89rem; }
  .metric-item {
    min-width: 125px;
    margin-right: 17px;
    padding-right: 17px;
    margin-bottom: 5px;
  }
  .project-status { display: block; }
  .project-status span { display: block; margin-top: 3px; }
  .experience { padding: 51px 0 58px; }
  .contact { padding: 50px 0 54px; }
}

@media (max-width: 480px) {
  .brand { font-size: .78rem; }
  .nav a:last-child { display: none; }
  .identity h1 { font-size: 2.55rem; }
  .summary { font-size: .98rem; }
  .metric-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 0;
  }
  .metric-item {
    min-width: 0;
    margin: 0;
    padding: 0 13px 0 0;
    border-right: 0;
  }
  .metric-item:nth-child(even) {
    padding: 0 0 0 13px;
    border-left: 1px solid var(--line);
  }
  .project-foot { display: block; }
  .project-actions { display: flex; margin-top: 5px; }
  .career { padding-left: 30px; }
  .career-item i { left: -30px; }
  .footer .shell { display: block; }
  .footer .shell span:last-child { display: block; margin-top: 4px; }
}

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