@font-face { font-family: "Space Grotesk"; src: url("/assets/space-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/space-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root { color-scheme: dark; --ink: #fff9ed; --quiet: #d3d7e0; --accent: #ffd19b; --line: rgb(232 239 255 / .28); --ease: cubic-bezier(.16, 1, .3, 1); --pad: clamp(18px, 3.2vw, 52px); --nav-count: 6; }
:root[data-theme="day"] { --accent: #ffe4b5; --quiet: #e0d8ce; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: #111a31; color: var(--ink); font: 400 16px/1.5 "Space Grotesk", sans-serif; -webkit-font-smoothing: antialiased; caret-color: var(--accent); }
::selection { background: #ffd19b; color: #182039; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .22em; }
button { color: inherit; font: inherit; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.world { position: fixed; inset: 0; overflow: hidden; transform: scale(var(--zoom, 1.025)) translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform 1.4s var(--ease); }
.world video { width: 100%; height: 100%; object-fit: cover; object-position: 48% 54%; display: block; }
.shade { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(4 12 27 / .68), rgb(4 12 27 / .25) 36%, transparent 57%, rgb(4 12 27 / .15) 74%, rgb(4 12 27 / .84)); }
.reading-shade { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(5 13 29 / .28), rgb(5 13 29 / .9) 55%); opacity: var(--reading, 0); }
.site-header { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: max(18px, env(safe-area-inset-top)) var(--pad) 0; }
.wordmark { display: flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.025em; }
.wordmark-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; transition: transform .4s var(--ease); }
.wordmark:hover .wordmark-dot { transform: scale(1.8); }
.github-link { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 13px; text-decoration: none; }
.github-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.github-link:hover svg { transform: translate(2px, -2px); }
.journey { position: relative; height: 100dvh; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior-y: contain; }
.journey::-webkit-scrollbar { display: none; }
.journey:focus { outline: none; }
.chapter { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; perspective: 1200px; overflow: hidden; }
.frame { transform-origin: 50% 50%; }
.hero { position: absolute; top: clamp(100px, 14vh, 152px); left: var(--pad); right: var(--pad); pointer-events: none; }
.eyebrow { margin: 0 0 14px !important; color: var(--accent) !important; font-size: 12px !important; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
h1 { font-size: clamp(47px, 6vw, 92px); line-height: .98; letter-spacing: -.045em; font-weight: 600; max-width: 14ch; margin: 0; text-shadow: 0 2px 22px rgb(0 0 0 / .2); }
.hero > p:last-child { max-width: 43ch; margin: 24px 0 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; text-shadow: 0 2px 10px #132039; }
.story { position: absolute; top: max(92px, 12vh); bottom: 142px; right: clamp(28px, 8vw, 140px); width: min(620px, 49vw); overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; scrollbar-color: #8790a5 transparent; padding: 0 12px 16px 0; }
h2 { margin: 0 0 22px; font-size: clamp(30px, 3.1vw, 46px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.story p { color: var(--quiet); margin: 0 0 18px; }
.story .lead { font-size: clamp(19px, 1.75vw, 26px); line-height: 1.35; color: var(--ink); letter-spacing: -.02em; }
.project-list, .note-list { list-style: none; padding: 0; margin: 24px 0 18px; border-top: 1px solid var(--line); }
.project-list li, .note-list li { border-bottom: 1px solid var(--line); }
.project-list a, .note-list a { display: block; padding: 13px 0; text-decoration: none; }
.project-list a span, .note-list a span { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.project-list svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.project-list a:hover, .note-list a:hover, .domain-notes a:hover { color: var(--accent); }
.project-list a:hover svg { transform: translate(3px, -3px); }
.project-list small, .note-list small { display: block; font-size: 14px; line-height: 1.45; color: var(--quiet); margin-top: 4px; }
.note-list a span { display: block; }
.domain-notes { border-top: 1px solid var(--line); }
.domain-notes a { display: grid; grid-template-columns: minmax(120px, .62fr) minmax(0, 1.38fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.domain-notes strong { font-size: 14px; line-height: 1.4; }
.domain-notes span { color: var(--quiet); font-size: 14px; line-height: 1.5; }
.notes-divider { margin: 26px 0 0 !important; color: var(--accent) !important; font-size: 13px; font-weight: 600; }
.notes-divider + .note-list { margin-top: 10px; }
.career-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.career-list li { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.career-list li > div { display: flex; justify-content: space-between; gap: 20px; color: var(--accent); font-size: 13px; }
.career-list time { color: var(--quiet); text-align: right; }
.career-list h3 { margin: 5px 0 8px; font-size: 18px; line-height: 1.25; font-weight: 600; }
.career-list p { margin: 0; font-size: 14px; line-height: 1.55; }
.career-divider { margin: 28px 0 10px !important; color: var(--accent) !important; font-size: 13px; font-weight: 600; }
.education-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.education-list li { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(220px, 1.4fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.education-list strong { font-weight: 600; }
.education-list span { color: var(--quiet); }
.portrait { object-fit: cover; object-position: center top; display: block; width: clamp(90px, 12vh, 140px); height: auto; aspect-ratio: 1; border-radius: 50%; margin: 0 0 26px; }
.contact-links { display: flex; gap: 28px; margin-top: 24px; }
.contact-links a { display: flex; gap: 12px; align-items: center; min-height: 44px; text-decoration: none; }
.contact-links svg { width: 16px; height: 16px; }
.contact-form { margin-top: 28px; }
.form-field { display: grid; gap: 7px; margin-top: 17px; }
.form-field:first-child { margin-top: 0; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: rgb(8 17 33 / .5); color: var(--ink); font: inherit; line-height: 1.45; padding: 10px 12px; transition: border-color .2s, background .2s; }
.form-field input { min-height: 44px; }
.form-field textarea { min-height: 132px; resize: vertical; }
.form-field input:hover, .form-field textarea:hover { border-color: rgb(255 249 237 / .58); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); background: rgb(8 17 33 / .72); }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.turnstile-wrap { margin-top: 20px; min-height: 65px; }
.turnstile-retry { min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--accent); background: transparent; color: var(--ink); text-align: left; }
.send-message { min-height: 46px; margin-top: 22px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 100px; background: var(--ink); color: #15203b; font-weight: 600; transition: transform .25s var(--ease), background .25s, border-color .25s; }
.send-message:hover:not(:disabled) { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
.send-message:disabled { cursor: wait; opacity: .7; }
.form-status { min-height: 24px; margin: 12px 0 0; color: var(--quiet); font-size: 14px; }
.form-status[data-state="error"] { color: #ffd0c6; }
.form-status[data-state="success"] { color: var(--accent); }
.form-privacy { margin-top: 4px !important; font-size: 12px; line-height: 1.45; }
.dock { position: fixed; z-index: 10; bottom: max(58px, calc(env(safe-area-inset-bottom) + 42px)); left: 50%; width: min(620px, calc(100% - 16px)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(var(--nav-count), minmax(0, 1fr)); padding: 5px; border: 1px solid rgb(255 249 237 / .3); border-radius: 100px; background: rgb(13 23 38 / .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.dock a { z-index: 1; position: relative; display: grid; place-items: center; min-height: 46px; min-width: 0; padding: 0 10px; border-radius: 100px; text-decoration: none; font-size: 13px; transition: color .3s; }
.dock a:hover { color: var(--accent); }
.dock a[aria-current] { color: #15203b; }
.nav-indicator { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / var(--nav-count)); border-radius: 100px; background: var(--ink); transform: translateX(calc(var(--active, 0) * 100%)); transition: transform .6s var(--ease); }
footer { position: fixed; z-index: 5; bottom: max(8px, env(safe-area-inset-bottom)); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; color: #ebe8e1; pointer-events: none; }
.credits-open { pointer-events: auto; background: none; border: 0; padding: 0; min-height: 44px; font-size: inherit; }
.credits-open:hover { text-decoration: underline; text-underline-offset: 4px; }
.explore-hint { transition: opacity .4s; }
body:not([data-chapter="future"]) .explore-hint { opacity: 0; }
.credits { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 24px; background: #152039; color: var(--ink); border: none; border-radius: 16px; box-shadow: 0 16px 60px rgb(0 0 0 / .35); }
.credits::backdrop { background: rgb(3 9 20 / .6); backdrop-filter: blur(8px); }
.credits[open] { animation: arrive .4s var(--ease); }
.credits-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.credits h2 { margin: 0; font-size: 30px; }
.credits p { color: var(--quiet); }
.close { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; transition: background .25s, transform .4s var(--ease); }
.close:hover { background: rgb(255 249 237 / .12); transform: rotate(90deg); }
@keyframes arrive { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  :root { --pad: 18px; }
  .site-header { padding-top: max(12px, env(safe-area-inset-top)); }
  .hero { top: max(98px, calc(env(safe-area-inset-top) + 76px)); }
  h1 { font-size: clamp(40px, 11.2vw, 66px); line-height: 1.01; }
  .hero > p:last-child { margin-top: 18px; font-size: 16px; max-width: 32ch; }
  .world video { object-position: 47% 50%; }
  .reading-shade { background: rgb(5 13 29 / .87); }
  .story { top: max(88px, calc(env(safe-area-inset-top) + 70px)); left: var(--pad); right: var(--pad); width: auto; bottom: max(132px, calc(env(safe-area-inset-bottom) + 112px)); padding-right: 4px; font-size: 14px; }
  h2 { font-size: 34px; margin-bottom: 18px; }
  .story .lead { font-size: 21px; }
  .project-list, .note-list { margin-top: 20px; }
  .project-list a, .note-list a { padding: 12px 0; }
  .project-list small, .note-list small { font-size: 13px; }
  .domain-notes a { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .domain-notes span { font-size: 13px; }
  .education-list li { display: block; }
  .education-list span { display: block; margin-top: 2px; }
  .dock a { min-height: 44px; padding: 0 4px; font-size: 11px; }
  footer { font-size: 10px; }
}
@media (max-width: 380px) {
  .dock a { font-size: 10px; letter-spacing: -.015em; }
  .career-list li > div { display: block; }
  .career-list time { display: block; margin-top: 2px; text-align: left; }
}
@media (max-height: 650px) {
  .hero { top: 82px; }
  h1 { font-size: clamp(36px, 7vw, 56px); }
  .hero > p:last-child { margin-top: 12px; font-size: 14px; }
  .story { top: 76px; bottom: 104px; }
  .dock { bottom: 44px; }
  .dock a { min-height: 44px; }
  .portrait { width: 80px; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .world { transform: none; }
}
