:root {
  /* Warm paper palette */
  --bg: oklch(0.965 0.012 85);
  --bg-2: oklch(0.945 0.014 82);
  --bg-3: oklch(0.93 0.016 80);
  --ink: oklch(0.20 0.012 60);
  --ink-2: oklch(0.30 0.012 60);
  --muted: oklch(0.52 0.012 60);
  --muted-2: oklch(0.65 0.012 60);
  --rule: oklch(0.84 0.014 75);
  --rule-strong: oklch(0.75 0.016 70);
  --accent: oklch(0.50 0.16 28);          /* oxblood */
  --accent-soft: oklch(0.50 0.16 28 / 0.10);
  --highlight: oklch(0.85 0.13 92);        /* warm marker */

  --serif: 'Newsreader', 'Iowan Old Style', 'Georgia', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Menlo', monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  background-image:
    radial-gradient(oklch(0.55 0.01 70 / 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  background-position: 0 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 500;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 16px;
}

::selection { background: var(--accent); color: var(--bg); }

/* ---------- Type primitives ---------- */
.serif { font-family: var(--serif); font-weight: 400; }
.mono  { font-family: var(--mono); }
.italic { font-style: italic; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-2);
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-strong { height: 1px; background: var(--rule-strong); border: 0; margin: 0; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { position: relative; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 200;
  background: transparent; pointer-events: none;
}
.scroll-progress > i {
  display: block; height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.08s linear;
}

/* ---------- Top status bar ---------- */
.statusbar {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(8px);
  background: oklch(0.965 0.012 85 / 0.85);
}
.statusbar .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.statusbar .row > div { display: flex; gap: 18px; align-items: center; }
.statusbar .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: oklch(0.62 0.16 145);
  box-shadow: 0 0 0 0 oklch(0.62 0.16 145 / 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(0.62 0.16 145 / 0.55); }
  70%  { box-shadow: 0 0 0 8px oklch(0.62 0.16 145 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.62 0.16 145 / 0); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 37px; z-index: 80;
  background: oklch(0.965 0.012 85 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav .row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
  padding: 16px 0;
}
.nav .brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 8px;
}
.nav .brand .mark {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
  margin-right: 6px;
}
.nav .brand small {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 12px;
}
.menu-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle-bars i {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
}
.nav .links {
  display: flex; gap: 28px; justify-content: center;
}
.nav .links a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav .links a .num {
  color: var(--accent);
  margin-right: 6px;
  font-weight: 500;
}
.nav .links a:hover { color: var(--ink); }
.nav .links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav .links a:hover::after { transform: scaleX(1); }
.nav .cta {
  display: flex; justify-content: flex-end; gap: 12px; align-items: center;
}
.nav .cta a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.nav .cta a:hover { background: var(--ink); color: var(--bg); }
.nav .cta a .arrow { transition: transform 0.2s; display: inline-block; }
.nav .cta a:hover .arrow { transform: translateX(3px); }

@media (max-width: 1024px) {
  .statusbar {
    position: static;
    backdrop-filter: none;
  }

  .statusbar .row {
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
  }

  .statusbar .row > div {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav {
    top: 0;
  }

  .nav .row {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav .brand {
    justify-content: flex-start;
  }

  .nav .links,
  .nav .cta {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  .nav.nav-open .links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--rule);
  }

  .nav.nav-open .links a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav.nav-open .cta {
    display: flex;
    padding-top: 6px;
  }

  .nav .cta a {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(40px, 8vw, 80px);
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hero .grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}
@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.5vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 14px 0 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero .hero-name {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 .it {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-2);
  position: relative;
  display: inline-block;
}
.hero h1 .it::before {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: 0.18em;
  height: 0.14em;
  background: var(--accent-soft);
  z-index: -1;
}
.hero h1 .punct { color: var(--accent); }
.hero .h-meta {
  display: flex; gap: 32px; align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero .h-meta .item {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.hero .h-meta .item b { color: var(--ink); font-weight: 500; }

.hero .right {
  display: flex; flex-direction: column; gap: 24px;
  padding-bottom: 8px;
}

.hero .lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.hero .lede b {
  color: var(--ink);
  font-weight: 500;
  background: linear-gradient(transparent 62%, var(--highlight) 62%, var(--highlight) 92%, transparent 92%);
  padding: 0 2px;
}

/* award strip */
.award {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--rule-strong);
  background: var(--bg-2);
  position: relative;
}
.award::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
}
.award .star {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  color: var(--accent);
}
.award .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.award h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  margin: 2px 0 4px;
  letter-spacing: -0.01em;
}
.award p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* counters */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  margin-top: clamp(40px, 6vw, 64px);
}
.counters > div {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  overflow: hidden;
}
.counters > div:last-child { border-right: 0; }
.counters .num {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 2px;
}
.counters .num .sym {
  font-size: 0.5em;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0;
}
.counters .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.counters .sub {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.35;
  max-width: 220px;
}
@media (max-width: 720px) {
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counters > div:nth-child(2) { border-right: 0; }
  .counters > div:nth-child(1), .counters > div:nth-child(2) {
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: clamp(40px, 14vw, 72px);
  }

  .hero .hero-name {
    margin-top: 18px;
    font-size: 10.5px;
  }

  .hero .h-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .award {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 18px;
  }

  .award .star {
    font-size: 28px;
  }

  .counters {
    grid-template-columns: 1fr;
  }

  .counters > div {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 22px 18px;
  }

  .counters > div:last-child {
    border-bottom: 0;
  }
}

/* ---------- Section header ---------- */
.sec-head {
  padding: clamp(60px, 9vw, 110px) 0 clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
}
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
  text-wrap: balance;
}
.sec-head h2 .it { font-style: italic; font-weight: 300; color: var(--ink-2); }
.sec-head .right {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 460px;
  margin-left: auto;
  padding-bottom: 8px;
  text-wrap: pretty;
}

/* ---------- Experience ---------- */
.exp {
  border-top: 1px solid var(--rule-strong);
}
.role {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background 0.3s;
}
.role:hover { background: oklch(0.945 0.014 82 / 0.5); }
.role:last-child { border-bottom: 0; }

.role .idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 6px;
}
.role .head h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap;
}
.role .head h3 .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  font-weight: 500;
  vertical-align: middle;
  letter-spacing: 0.14em;
  border-radius: 2px;
  position: relative;
  top: -8px;
}
.role .head .title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-2);
  font-weight: 400;
  margin: 6px 0 18px;
}
.role .head .meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex; flex-direction: column; gap: 6px;
  text-transform: uppercase;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  margin-top: 18px;
  max-width: 280px;
}
.role .head .meta b { color: var(--ink); font-weight: 500; }
.role .head .meta .line { display: flex; gap: 10px; }
.role .head .meta .line span:first-child { color: var(--muted-2); min-width: 64px; }

.role .body ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.role .body li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.003em;
}
.role .body li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}
.role .body li b {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.93em;
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .role { grid-template-columns: 40px 1fr; }
  .role .body { grid-column: 2; }
  .role .head .meta { max-width: 100%; }
}

@media (max-width: 640px) {
  .role {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 0;
  }

  .role .idx,
  .role .body {
    grid-column: auto;
  }

  .role .head h3 {
    gap: 10px;
  }

  .role .head h3 .tag {
    top: 0;
  }

  .role .body li {
    padding-left: 18px;
    font-size: 14px;
  }
}

/* ---------- Toolkit ---------- */
.toolkit {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.tk-card {
  grid-column: span 4;
  background: var(--bg);
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 200px;
  position: relative;
  transition: background 0.3s;
}
.tk-card:hover { background: var(--bg-2); }
.tk-card .num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  position: absolute;
  top: 16px; right: 20px;
}
.tk-card h4 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}
.tk-card h4 em {
  font-weight: 300;
  color: var(--ink-2);
}
.tk-card .tags {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  margin-top: 6px;
}
.tk-card .tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 5px 9px;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  letter-spacing: 0.01em;
  transition: all 0.2s;
  cursor: default;
}
.tk-card .tag:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-2);
}
.tk-card.span-6 { grid-column: span 6; }
.tk-card.span-8 { grid-column: span 8; }
@media (max-width: 900px) {
  .tk-card, .tk-card.span-6, .tk-card.span-8 { grid-column: span 12; }
}

/* ---------- Case studies placeholder ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .cases {
    gap: 16px;
  }

  .case {
    min-height: auto;
  }

  .case .vis {
    height: 160px;
  }

  .case .body {
    padding: 18px;
  }
}

.case {
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  padding: 0;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case.case-soon {
  cursor: default;
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -28px oklch(0.20 0.012 60 / 0.18);
}
.case .vis {
  height: 200px;
  background:
    repeating-linear-gradient(
      135deg,
      oklch(0.93 0.016 80) 0 1px,
      transparent 1px 12px
    ),
    var(--bg-2);
  border-bottom: 1px solid var(--rule-strong);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.case .vis .badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  padding: 4px 9px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.case .body {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.case .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.case h4 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}
.case p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.case .more {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--rule);
}
.case .more .status {
  color: var(--accent);
}

/* ---------- Education ---------- */
.edu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.edu .card {
  background: var(--bg);
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 200px;
}
.edu .card .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.edu .card h4 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.edu .card .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
}
.edu .card .meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
@media (max-width: 800px) { .edu { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--rule-strong);
}
.contact h2 {
  font-family: var(--serif);
  font-size: clamp(60px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin: 0 0 48px;
  text-wrap: balance;
}
.contact h2 .it { font-style: italic; font-weight: 300; }
.contact h2 .punct { color: var(--accent); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.contact-card {
  background: var(--bg);
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.contact-card:hover { background: var(--bg-2); }
.contact-card .left { display: flex; flex-direction: column; gap: 6px; }
.contact-card .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card .val {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.contact-card .arr {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink-2);
  transition: transform 0.3s, color 0.3s;
}
.contact-card:hover .arr { transform: translate(6px, -6px); color: var(--accent); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.oss-note {
  margin-top: 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.oss-note .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.oss-note p {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-2);
}
.oss-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}
.oss-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
}
.oss-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .contact h2 {
    margin-bottom: 28px;
  }

  .contact-card {
    padding: 20px 18px;
    align-items: flex-start;
    gap: 16px;
  }

  .contact-card .val {
    font-size: 21px;
    overflow-wrap: anywhere;
  }

  .oss-note {
    flex-direction: column;
    gap: 14px;
  }

  .oss-links {
    justify-content: flex-start;
  }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
footer .row {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
footer a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
footer a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d-1 { transition-delay: 0.06s; }
.reveal.d-2 { transition-delay: 0.12s; }
.reveal.d-3 { transition-delay: 0.18s; }
.reveal.d-4 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee .track {
    animation: none;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  padding: 18px 0;
}
.marquee .track {
  display: flex; gap: 56px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em;
  font-weight: 400;
}
.marquee .track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee .track .dot { color: var(--accent); }
.marquee .track em {
  font-style: italic;
  color: oklch(0.72 0.04 70);
  font-weight: 300;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Utilities ---------- */
.kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink-2);
}
