:root {
  --ink: #101413;
  --paper: #f2efe8;
  --muted: #9fa9a2;
  --line: rgba(242, 239, 232, .18);
  --lime: #d8f36a;
  --coral: #ff8066;
  --blue: #93c8ff;
  --display: "Arial Narrow", "Aptos Display", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
}

a { color: inherit; }
.page-shell { position: relative; isolation: isolate; min-height: 100vh; overflow: hidden; }
.backdrop { position: absolute; inset: 0 0 auto; z-index: -1; height: 760px; pointer-events: none; }
.backdrop svg { width: 100%; height: 100%; display: block; }
.backdrop .orbit { transform-origin: 72% 30%; animation: drift 20s ease-in-out infinite alternate; }
.backdrop .orbit-reverse { transform-origin: 72% 30%; animation: drift-reverse 27s ease-in-out infinite alternate; }
.backdrop .dash { stroke-dasharray: 12 20; animation: dash 22s linear infinite; }
.backdrop .spark { animation: pulse 3.8s ease-in-out infinite; transform-origin: center; }

.nav, .hero, .work, .footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.04em; }
.mark { width: 18px; height: 18px; border-radius: 50% 50% 50% 4px; background: var(--lime); transform: rotate(-45deg); display: inline-block; }
.nav-label { color: var(--muted); font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; }

.hero { min-height: 650px; display: grid; justify-items: center; align-content: center; gap: 28px; padding: 78px 0 110px; text-align: center; }
.eyebrow { color: var(--lime); text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 800; }
h1 { margin: 14px 0 0; font-family: var(--display); font-size: clamp(4rem, 11vw, 9.6rem); line-height: .82; letter-spacing: -.095em; font-weight: 800; }
h1 em { color: var(--coral); font-style: normal; }
.intro { max-width: 430px; margin: 0; color: #c4cbc5; font-size: 1rem; line-height: 1.6; }
.hero-link { display: inline-flex; gap: 12px; align-items: center; color: var(--paper); text-decoration: none; font-weight: 750; }
.hero-link::after { content: "↓"; color: var(--lime); font-size: 1.3em; transition: transform .2s ease; }
.hero-link:hover::after { transform: translateY(4px); }

.portrait-wrap { position: relative; width: min(250px, 62vw); aspect-ratio: 1; }
.portrait-wrap::before { content: ""; position: absolute; inset: 12px -14px -14px 14px; border: 1px solid var(--coral); border-radius: 50%; transform: rotate(8deg); }
.portrait { position: relative; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: #293330; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.78) contrast(1.08); }
.portrait-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--lime); font-family: var(--display); font-size: 5rem; letter-spacing: -.12em; background: radial-gradient(circle at 70% 20%, #48534a, #1a2421 66%); }
.portrait-label { position: absolute; bottom: 10px; left: 50%; padding: 6px 8px; color: var(--ink); background: var(--lime); font-size: .62rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; transform: translateX(-50%); white-space: nowrap; }

.work { padding: 28px 0 110px; text-align: center; }
.section-head { display: grid; justify-items: center; gap: 12px; padding-bottom: 28px; }
h2 { margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -.08em; line-height: .9; }
.section-note { max-width: 420px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.project-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.project { display: grid; justify-items: center; gap: 10px; width: 92px; color: var(--paper); text-decoration: none; }
.project-icon { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--lime); font-size: 1.45rem; transition: transform .25s ease, background .25s ease, color .25s ease; }
.project:hover .project-icon, .project:focus-visible .project-icon { color: var(--ink); background: var(--coral); transform: translateY(-5px) rotate(-7deg); }
.project-icon i { line-height: 1; }
.project h3 { margin: 0; font-size: .72rem; font-weight: 700; line-height: 1.2; }
.project p, .project-index, .project-arrow { display: none; }

.footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.footer p { margin: 0; }

@keyframes drift { to { transform: rotate(8deg) translate(3%, -2%); } }
@keyframes drift-reverse { to { transform: rotate(-8deg) translate(-2%, 3%); } }
@keyframes dash { to { stroke-dashoffset: -280px; } }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
@media (max-width: 520px) {
  .nav, .hero, .work, .footer { width: min(100% - 32px, 1180px); }
  .nav { padding-top: 20px; }
  .nav-label { font-size: .62rem; }
  .hero { min-height: 0; padding: 70px 0 90px; }
  h1 { font-size: clamp(4.2rem, 21vw, 7rem); }
  .footer { display: block; text-align: center; }
  .footer p + p { margin-top: 8px; }
}
