:root {
  --bg: oklch(17% 0.018 70);
  --bg-2: oklch(22% 0.02 72);
  --line: oklch(34% 0.02 75);
  --text: oklch(95% 0.012 85);
  --muted: oklch(74% 0.02 80);
  --copper: oklch(78% 0.11 68);
  --sage: oklch(78% 0.07 155);
  --ink: oklch(18% 0.02 70);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 85% -10%, oklch(32% 0.05 68 / 0.55), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, oklch(28% 0.04 155 / 0.35), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 400 1.05rem/1.6 "Public Sans", system-ui, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(oklch(80% 0.02 80 / 0.09) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 560; letter-spacing: -0.03em; text-wrap: balance; margin: 0; }
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--sage));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 20;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress {
      animation: grow linear both;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes grow { to { transform: scaleX(1); } }
.skip {
  position: absolute;
  left: 12px; top: -40px;
  background: var(--copper); color: var(--ink);
  padding: 8px 12px; border-radius: 8px; z-index: 30;
}
.skip:focus { top: 10px; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 7vw;
  background: oklch(17% 0.018 70 / 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(40% 0.02 75 / 0.45);
}
.mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 0.85rem;
  background: oklch(28% 0.03 70); border: 1px solid var(--line); color: var(--copper);
}
.where { margin: 0; color: var(--muted); font-size: 0.92rem; }
.where span { color: var(--text); margin-left: 8px; }
.top nav { margin-left: auto; display: flex; gap: 18px; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.top nav a:hover { color: var(--text); }

main { width: min(1040px, calc(100% - 10vw)); margin: 0 auto; padding: 8vh 0 10vh; }
.hero { padding: 6vh 0 7vh; }
.kicker {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
h1 { font-size: clamp(3.4rem, 11vw, 7.4rem); line-height: 0.92; font-weight: 620; }
.lede { max-width: 38rem; font-size: 1.25rem; color: var(--muted); margin: 22px 0 0; }
.stage {
  position: relative;
  margin: 0 0 22px;
  aspect-ratio: 16 / 8;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: oklch(14% 0.02 70);
}
.stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.stage img.on { opacity: 1; }
.stage figcaption {
  position: absolute; left: 14px; bottom: 12px;
  margin: 0; max-width: min(70%, 36rem);
  color: oklch(96% 0.01 90);
  font-size: 0.78rem;
  text-shadow: 0 1px 8px oklch(10% 0.02 70);
}
.block { margin-top: 28px; }
.block > h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 14px; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project h3 { font-family: Fraunces, Georgia, serif; font-size: 1.7rem; margin: 0 0 8px; font-weight: 560; }
#note { display: grid; gap: 12px; max-width: 36rem; }
#note label { display: grid; gap: 6px; color: var(--muted); font-size: 0.92rem; }
.input {
  font: inherit; color: var(--text);
  background: oklch(16% 0.015 70);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
}
textarea.input { min-height: 140px; resize: vertical; }
.input:focus { outline: 2px solid var(--copper); border-color: transparent; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; }
.form-note { min-height: 1.4em; margin: 0; color: var(--sage); }
button.go { border: 0; cursor: pointer; width: fit-content; }
button.go:disabled { opacity: 0.6; }

.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
}
.card {
  background: oklch(23% 0.018 72 / 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 26px 24px;
  box-shadow: 0 18px 40px oklch(10% 0.02 70 / 0.28);
}
.span-2 { grid-column: span 2; }
.label {
  margin: 0 0 10px;
  color: var(--sage);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.card h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.15; margin-bottom: 12px; }
.card p { margin: 0; color: var(--muted); }
.interests { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.interests li { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 10px; }
.interests b { font-weight: 700; }
.interests span { color: var(--muted); font-size: 0.95rem; }
.project {
  grid-column: 1 / -1;
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  background:
    linear-gradient(135deg, oklch(30% 0.05 68 / 0.55), oklch(23% 0.02 72) 46%),
    var(--bg-2);
}
.go {
  flex: none;
  text-decoration: none;
  background: var(--copper);
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 22px;
  min-height: 48px;
  display: inline-flex; align-items: center;
}
.go:hover { filter: brightness(1.06); }

footer {
  width: min(1040px, calc(100% - 10vw));
  margin: 0 auto;
  padding: 0 0 40px;
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--muted); font-size: 0.92rem;
}
footer a { color: var(--copper); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%;
    }
  }
}
@keyframes rise {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}
@view-transition { navigation: auto; }

@media (max-width: 760px) {
  .top { padding: 12px 18px; }
  .where { display: none; }
  .bento, .span-2, .project { grid-column: auto; }
  .bento, .projects { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 4 / 3; }
  .project { flex-direction: column; align-items: stretch; }
  .go { justify-content: center; }
  main, footer { width: min(1040px, calc(100% - 36px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress { transform: none; }
  .stage img { transition: none; }
}
