:root {
  --background: #f4c8ba;
  --ink: #2a2926;
  --muted: #615b55;
  --edge: clamp(1.25rem, 4vw, 4rem);
  color-scheme: light;
  font-family: 'Google Sans', sans-serif;
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; width: 100%; height: 100%; }
/* The body supplies the canvas background, so one color transition covers the viewport. */
body { background-color: var(--background); overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 7px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.header { position: fixed; z-index: 3; top: 0; left: 0; width: 100%; padding: 2.2rem var(--edge); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.header a { pointer-events: auto; }
.wordmark { display: inline-flex; align-items: baseline; font-size: 1.4rem; font-weight: 700; letter-spacing: -.06em; }
.wordmark-text { display: inline-block; transform-origin: 60% 85%; }
.wordmark-dot { display: inline-block; margin-left: .04em; transform-origin: 50% 85%; }
.wordmark:focus-visible .wordmark-text { animation: wordmark-sway 700ms cubic-bezier(.22,1,.36,1); }
.wordmark:focus-visible .wordmark-dot { animation: wordmark-hop 800ms 60ms cubic-bezier(.22,1,.36,1); }
@media (hover: hover) {
  .wordmark:hover .wordmark-text { animation: wordmark-sway 700ms cubic-bezier(.22,1,.36,1); }
  .wordmark:hover .wordmark-dot { animation: wordmark-hop 800ms 60ms cubic-bezier(.22,1,.36,1); }
}
.story { position: relative; z-index: 1; height: 100vh; height: 100svh; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-y: contain; }
.story::-webkit-scrollbar { display: none; }
.story:focus-visible { outline-offset: -6px; }
.slide { min-height: 100vh; min-height: 100svh; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 7rem calc(var(--edge) + 1.75rem); text-align: center; }
.content { width: 100%; transition: opacity 600ms ease, transform 700ms cubic-bezier(.22,1,.36,1); }
.js .slide:not(.is-active) .content { opacity: 0; transform: translateY(2rem); }
h1, h2, p { margin: 0; }
h1 { font-weight: 600; font-size: clamp(7rem, 21vw, 20rem); line-height: 1; letter-spacing: -.09em; padding-right: .09em; }
.motion-trigger { display: inline-block; }
.hello-mark, .name-period, .question-mark, .mail-at { display: inline-block; transform-origin: 50% 85%; }
.vibe-line { position: relative; max-width: 100%; }
.vibe-note { position: absolute; right: 0; top: calc(100% + .75rem); width: 17ch; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(1rem, 1.8vw, 1.35rem); line-height: 1.4; text-align: left; opacity: 0; transition: opacity 200ms ease; }
.vibe-note span { display: block; overflow: hidden; white-space: nowrap; }
.vibe-line.is-playing .vibe-note { opacity: 1; }
.vibe-line.is-playing .vibe-note span { animation: note-type 1200ms steps(17, end) both; }
h2 { font-size: clamp(2.8rem, 8.1vw, 8rem); line-height: 1.08; font-weight: 500; letter-spacing: -.065em; text-wrap: balance; }
.content-portrait { display: flex; flex-direction: column; align-items: center; gap: clamp(2rem, 4.5vh, 3rem); }
.content-portrait h2 { font-size: clamp(2.6rem, 6.9vw, 6.8rem); }
.portrait { display: block; width: clamp(10rem, 27vh, 15rem); height: clamp(10rem, 27vh, 15rem); border-radius: 50%; object-fit: cover; object-position: center; }
.content-project { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.project-intro { font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 400; letter-spacing: -.05em; }
.project-link { font-size: clamp(1.75rem, 7.7vw, 8rem); font-weight: 500; line-height: 1.15; letter-spacing: -.065em; white-space: nowrap; position: relative; padding-bottom: .1em; }
.project-link::after, .email-link::after { content: ''; position: absolute; bottom: 0; left: .035em; right: 0; height: .025em; min-height: 2px; background: currentColor; transform-origin: left; transition: transform 300ms ease, opacity 300ms ease; opacity: .35; }
.project-link:hover::after, .email-link:hover::after { transform: scaleX(.65); opacity: 1; }
.content-contact h2 { font-size: clamp(2.8rem, 6.5vw, 6.5rem); }
.content-contact p { margin: clamp(1.5rem, 4vh, 2.5rem) 0 1rem; font-size: clamp(1rem, 1.6vw, 1.3rem); }
.email-link { font-size: clamp(1.5rem, 5.7vw, 5.5rem); letter-spacing: -.055em; font-weight: 500; line-height: 1.25; position: relative; padding-bottom: .12em; white-space: nowrap; }
.chapter-nav { position: fixed; right: calc(var(--edge) - .75rem); top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; }
.chapter-nav a { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.35rem; }
.chapter-nav a span { width: .4rem; height: .4rem; border: 1px solid var(--ink); border-radius: 50%; opacity: .4; transition: background-color 200ms, opacity 200ms, transform 300ms; }
.chapter-nav a:hover span { opacity: 1; transform: scale(1.3); }
.chapter-nav a[aria-current] span { background: var(--ink); opacity: 1; transform: scale(1.55); }
.footer { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 3; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 2rem var(--edge); font-size: .8125rem; pointer-events: none; }
.counter { display: flex; align-items: center; gap: .85rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.counter-line { height: 1px; width: 1.6rem; background: currentColor; opacity: .35; }
.total-chapters { color: var(--muted); }
.scroll-cue { justify-self: center; display: flex; align-items: center; gap: .85rem; border: 0; background: none; padding: .65rem; cursor: pointer; font-size: .875rem; pointer-events: auto; }
.scroll-track { width: 1rem; height: 1.5rem; border: 1px solid currentColor; border-radius: .7rem; display: flex; justify-content: center; padding-top: .3rem; opacity: .7; }
.scroll-track span { width: 2px; height: 4px; border-radius: 1rem; background: currentColor; animation: scroll 2s ease-in-out infinite; }
@keyframes scroll { 0%, 20% { transform: translateY(0); opacity: 1; } 75% { transform: translateY(6px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.motion-trigger.is-playing .hello-mark { animation: exclamation-fly 900ms cubic-bezier(.22,1,.36,1); }
.motion-trigger.is-playing .name-period { animation: period-land 900ms cubic-bezier(.22,1,.36,1); }
.motion-trigger.is-playing .question-mark { animation: question-tilt 800ms 60ms cubic-bezier(.22,1,.36,1); }
.motion-trigger.is-playing .mail-at { animation: at-roll 950ms 180ms cubic-bezier(.22,1,.36,1); }
@keyframes exclamation-fly {
  0% { transform: translate(.55em, -.7em) rotate(35deg) scale(.65); opacity: 0; }
  30% { opacity: 1; }
  55% { transform: translateY(.035em) rotate(-6deg) scale(1.08, .92); }
  73% { transform: translateY(-.1em) rotate(4deg); }
  88% { transform: rotate(-1deg); }
  100% { transform: translate(0) rotate(0) scale(1); opacity: 1; }
}
@keyframes period-land {
  0% { transform: translate(.35em, -1.4em) scale(.7); opacity: 0; }
  25% { opacity: 1; }
  48% { transform: translateY(0) scale(.85, 1.15); }
  60% { transform: translateY(0) scale(1.4, .65); }
  77% { transform: translateY(-.23em) scale(.95, 1.05); }
  90% { transform: translateY(0) scale(1.08, .92); }
  100% { transform: translate(0) scale(1); opacity: 1; }
}
@keyframes note-type { from { width: 0; } to { width: 100%; } }
@keyframes question-tilt {
  0%, 100% { transform: translateY(0) rotate(0); }
  28% { transform: translateY(-.07em) rotate(14deg); }
  58% { transform: rotate(-7deg); }
  80% { transform: rotate(2deg); }
}
@keyframes at-roll {
  0%, 100% { transform: translateY(0) rotate(0); }
  28% { transform: translateY(-.12em) rotate(-24deg); }
  55% { transform: translateY(0) rotate(14deg); }
  75% { transform: translateY(-.03em) rotate(-5deg); }
  90% { transform: rotate(2deg); }
}
@keyframes wordmark-sway {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-2px) rotate(-3deg); }
  55% { transform: translateY(0) rotate(1.5deg); }
  78% { transform: translateY(-1px) rotate(-.5deg); }
}
@keyframes wordmark-hop {
  0%, 100% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-.65em) scale(.9, 1.1); }
  52% { transform: translateY(0) scale(1.3, .8); }
  72% { transform: translateY(-.2em) scale(.95, 1.05); }
  87% { transform: translateY(0) scale(1.08, .95); }
}
@media (max-width: 600px) {
  .header { padding-top: 1.5rem; }
  .wordmark { font-size: 1.25rem; }
  .slide { padding: 6rem 2rem; }
  h1 { font-size: 30vw; }
  h2 { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .content-portrait h2 { max-width: 8em; font-size: clamp(2.7rem, 12vw, 4rem); }
  .portrait { width: clamp(10rem, 27vh, 13rem); height: clamp(10rem, 27vh, 13rem); }
  .project-link { font-size: 8.3vw; }
  .content-project { gap: 1rem; }
  .content-contact h2 { font-size: 11vw; max-width: 8em; margin-inline: auto; }
  .email-link { font-size: 8.3vw; }
  .chapter-nav { right: .1rem; }
  .chapter-nav a { width: 2rem; height: 2.35rem; }
  .chapter-nav a span { width: .3rem; height: .3rem; }
  .footer { padding-bottom: 1.25rem; grid-template-columns: 1fr 1fr; }
  .scroll-cue { justify-self: end; padding-right: 0; }
}
@media (max-height: 560px) and (min-width: 601px) {
  .header { padding-top: 1rem; }
  .footer { padding-bottom: 1rem; }
  .slide { padding-block: 4rem; }
  h1 { font-size: 35vh; }
  h2 { font-size: 14vh; }
  .content-portrait { gap: 1rem; }
  .content-portrait h2 { font-size: 12vh; }
  .portrait { width: 28vh; height: 28vh; }
  .project-link { font-size: min(7.7vw, 17vh); }
  .content-contact h2 { font-size: 12vh; }
  .email-link { font-size: min(5.7vw, 12vh); }
  .content-contact p { margin-block: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .story { scroll-behavior: auto; }
  .js .slide:not(.is-active) .content { transform: none; }
}
