:root {
  color-scheme: dark;
  --bg: #17191b;
  --ink: #f2f3f4;
  --muted: #a3a8ad;
  --line: #35393d;
  --accent: #bccdde;
  --font: "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
[hidden] { display: none !important; }
.page { width: min(1120px, calc(100% - 112px)); min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 5; padding: .75rem 1rem; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 116px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 1.125rem; font-weight: 550; letter-spacing: -.035em; }
.nav-link { display: inline-block; font-size: .9375rem; color: var(--muted); padding: 10px 0; transition: color .18s; }
.nav-link:hover { color: var(--ink); }
main { flex: 1; }
.introduction { padding: 87px 0 74px; }
.section-label { margin: 0 0 28px; color: var(--muted); font-size: .875rem; font-weight: 400; }
h1 { margin: 0; font-size: clamp(3rem, 8.7vw, 7.1rem); font-family: "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-weight: 400; letter-spacing: -.065em; line-height: 1.13; }
h1 span { white-space: nowrap; }
.intro-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 36px; margin-top: 30px; }
.intro-copy { margin: 0; color: var(--muted); font-size: 1.375rem; font-weight: 350; letter-spacing: -.02em; line-height: 1.55; }
.index-link { display: inline-flex; align-items: center; gap: 15px; font-size: .875rem; line-height: 1.5; color: var(--accent); padding-block: 6px; }
.index-link svg, .back-top svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.4; flex-shrink: 0; transition: transform .18s; }
.index-link:hover svg { transform: translateY(3px); }
.index-link:hover { color: var(--ink); }
.projects-section { display: grid; grid-template-columns: 24% minmax(0, 1fr); gap: 26px; border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 88px; scroll-margin-top: 2rem; }
h2 { font-size: 1rem; line-height: 1.6; font-weight: 500; margin: 0; letter-spacing: -.015em; }
.empty-state { padding: 0 0 60px; min-height: 128px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.project-list { padding: 0; margin: 0; list-style: none; }
.project-list > li + li { border-top: 1px solid var(--line); }
.project-card { display: grid; grid-template-columns: minmax(0, 1fr) 28px; column-gap: 28px; padding: 0 0 27px; }
.project-list > li + li .project-card { padding-top: 27px; }
.project-card h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 500; letter-spacing: -.025em; margin: 0; overflow-wrap: anywhere; }
.project-card p { color: var(--muted); font-size: 1rem; line-height: 1.65; margin: 9px 0 0; max-width: 42rem; overflow-wrap: anywhere; }
.project-card svg { grid-column: 2; grid-row: 1; width: 20px; height: 20px; margin-top: 4px; stroke: var(--muted); stroke-width: 1.3; transition: transform .18s, stroke .18s; }
.project-card:hover h3 { color: var(--accent); }
.project-card:hover svg { transform: translate(2px, -2px); stroke: var(--ink); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 26px 0 32px; color: var(--muted); font-size: .8125rem; }
.back-top { display: inline-flex; align-items: center; gap: 11px; font-size: .875rem; }
.back-top:hover { color: var(--ink); }
.back-top:hover svg { transform: translateY(-2px); }
@media (max-width: 850px) {
  .page { width: calc(100% - 72px); }
  .site-header { min-height: 98px; }
  .introduction { padding: 72px 0 60px; }
  h1 { font-size: 9.4vw; }
  .intro-bottom { align-items: flex-start; flex-direction: column; gap: 20px; }
  .intro-copy { font-size: 1.25rem; }
  .projects-section { grid-template-columns: 23% minmax(0, 1fr); padding-bottom: 65px; }
}
@media (max-width: 540px) {
  .page { width: calc(100% - 48px); }
  .site-header { min-height: 86px; }
  .wordmark { font-size: 1rem; }
  .nav-link { font-size: .875rem; }
  .introduction { padding: 55px 0 45px; }
  .section-label { font-size: .875rem; margin-bottom: 23px; }
  h1 { font-size: clamp(2rem, 14.3vw, 4.6rem); line-height: 1.1; letter-spacing: -.06em; }
  h1 span { display: block; }
  .intro-bottom { gap: 21px; margin-top: 25px; }
  .intro-copy { font-size: 1.125rem; }
  .index-link { font-size: .875rem; gap: 12px; }
  .projects-section { grid-template-columns: 1fr; gap: 20px; padding-top: 25px; padding-bottom: 55px; }
  .empty-state { min-height: 90px; padding-bottom: 15px; }
  .empty-state p { font-size: 1rem; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; gap: 18px; padding: 23px 0 28px; font-size: .75rem; }
  .back-top { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
