:root {
  /* palette sampled from the portrait PNG */
  --paper: #fffaf6;
  --paper-warm: #fff1ec;
  --coral: #fe878b;
  --coral-soft: #ffd3d0;
  --blush: #feb5ac;
  --ink: #141010;
  --ink-dim: rgba(20, 16, 16, 0.62);
  --hand: "Caveat", cursive;
  --brush: "Permanent Marker", cursive;
  --sans: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(110% 80% at 50% 35%, var(--paper) 0%, var(--paper) 55%, var(--paper-warm) 100%) fixed,
    var(--paper);
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>");
}
a { color: inherit; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(16px, 4vw, 48px);
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled { background: rgba(255, 250, 246, 0.85); backdrop-filter: blur(8px); }
.nav__logo { font-family: var(--brush); font-size: 28px; text-decoration: none; }
.nav__links { display: flex; gap: clamp(12px, 2.4vw, 32px); align-items: center; }
.nav__links a {
  font-family: var(--hand);
  font-size: 24px;
  text-decoration: none;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  border: 2px solid var(--ink);
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 2px 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}
.nav__cta::after { display: none; }
.nav__cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- Hero poster ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.poster { width: 100%; flex: 1; min-height: 0; display: block; }
.hero__mobile-title { display: none; }

.poster .layer { transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.portrait {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.is-ready .portrait { opacity: 1; transform: none; animation: breathe 5s ease-in-out 1.2s infinite; }
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.006); }
}

/* chalk strokes */
.poster path.draw {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.poster path.draw.thin { stroke-width: 2; opacity: 0.85; }
.poster text { fill: var(--ink); }
.poster .accent { fill: var(--coral); stroke: var(--ink); stroke-width: 2.5px; paint-order: stroke; }
.accent-text { color: var(--coral); -webkit-text-stroke: 1.5px var(--ink); }
.hand { font-family: var(--hand); font-weight: 700; font-size: 34px; }
.hand.sm { font-size: 30px; }
.hand.lg { font-size: 46px; }
.meta { font-family: var(--sans); font-size: 15px; letter-spacing: 0.22em; font-weight: 500; fill: var(--ink-dim) !important; }
.vertical { font-size: 12px; }
.brush-svg { font-family: var(--brush); font-size: 112px; letter-spacing: 2px; }

/* text "writing" reveal */
.poster .note text {
  clip-path: inset(-20% 100% -20% 0);
  transition: clip-path 0.9s cubic-bezier(.6,.1,.3,1);
}
.is-ready .poster .note text { clip-path: inset(-20% -5% -20% -5%); }
.note { cursor: default; }
.note:hover { animation: wiggle 0.4s ease; }
@keyframes wiggle {
  25% { transform: rotate(-0.6deg); }
  75% { transform: rotate(0.6deg); }
}
.note { transform-box: fill-box; transform-origin: center; }


/* ---------- Sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) clamp(16px, 4vw, 48px);
}
.section__title .hl {
  background: linear-gradient(transparent 62%, var(--coral-soft) 62%, var(--coral-soft) 92%, transparent 92%);
  padding: 0 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.section__title {
  font-family: var(--brush);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  margin: 0 0 32px;
  line-height: 1.05;
}
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.6; max-width: 760px; }

.sketch-box {
  border: 2.5px solid var(--ink);
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
  padding: 28px 30px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--coral);
  transition: transform 0.25s, box-shadow 0.25s;
}
.sketch-box:hover { transform: rotate(-0.5deg) translateY(-4px); box-shadow: 9px 10px 0 var(--coral); }


.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chips span {
  font-size: 13px;
  letter-spacing: 0.06em;
  background: var(--coral-soft);
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  padding: 3px 10px;
}

.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.skills h4 { font-family: var(--hand); font-size: 30px; margin: 0 0 6px; }
.skills p { margin: 0; line-height: 1.6; }

.contact { text-align: center; }
.contact__mail {
  display: inline-block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 52px);
  text-decoration: underline wavy var(--coral);
  text-underline-offset: 10px;
  text-decoration-thickness: 3px;
  word-break: break-word;
}
.contact__links { display: flex; justify-content: center; gap: 28px; font-family: var(--hand); font-size: 26px; margin-top: 28px; }

.footer { text-align: center; padding: 32px 16px 40px; font-size: 14px; opacity: 0.7; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 16px 0;
  transform: rotate(-1.2deg);
  margin: 24px -20px 0;
  border-top: 3px solid var(--coral);
  border-bottom: 3px solid var(--coral);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 28px;
  align-items: center;
  animation: ticker 32s linear infinite;
}
.ticker span { font-family: var(--brush); font-size: 26px; letter-spacing: 0.04em; text-transform: uppercase; }
.ticker i { font-style: normal; color: var(--coral); font-size: 24px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.kicker-hand { font-family: var(--hand); font-weight: 700; font-size: 26px; color: #d9525a; margin: 0 0 4px; }
.about {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}
.about .section__title { font-size: clamp(36px, 4vw, 54px); }
.nowrap { white-space: nowrap; }
.about .lede { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; font-weight: 500; margin: 0 0 20px; }
.about .body { font-size: 17px; line-height: 1.75; color: var(--ink-dim); max-width: 560px; margin: 0; }
.about .body strong { color: var(--ink); font-weight: 600; }
mark {
  background: linear-gradient(104deg, transparent 1%, var(--coral-soft) 3%, var(--coral-soft) 96%, transparent 99%);
  color: inherit;
  padding: 0 4px;
  border-radius: 4px;
}
.wave { display: inline-block; font-size: 0.7em; transform-origin: 70% 80%; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }

.about__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 24px;
  text-decoration: none;
  padding: 6px 22px;
  border: 2.5px solid var(--ink);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn--solid { background: var(--coral); box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost { background: var(--paper); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.about__notes { position: relative; min-height: 540px; }
.doodle-arrow { position: absolute; top: -24px; left: -40px; width: 200px; overflow: visible; }
.doodle-arrow text { font-family: var(--hand); font-weight: 700; font-size: 24px; fill: var(--ink); }
.doodle-arrow path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.note-card {
  position: absolute;
  width: 230px;
  padding: 30px 22px 22px;
  border: 2.5px solid var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
  border-radius: 4px 10px 6px 12px;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), opacity 0.7s ease;
}
/* strip of tape */
.note-card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 86px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(20, 16, 16, 0.3);
}
.note-card__n { display: block; font-family: var(--brush); font-size: 64px; line-height: 1; }
.note-card__l { display: block; font-family: var(--hand); font-weight: 700; font-size: 26px; line-height: 1.15; margin-top: 8px; }
.note-card--coral { background: var(--coral); top: 36px; left: 0; --r: -5deg; }
.note-card--cream { background: #fffdf8; top: 120px; right: 0; --r: 4deg; }
.note-card--blush { background: var(--coral-soft); top: 330px; left: 40px; --r: -2deg; }
.note-card.reveal { transform: translateY(24px) rotate(var(--r)); }
.note-card.reveal.is-in { transform: rotate(var(--r)); }
.note-card.reveal.is-in:hover { transform: rotate(0deg) scale(1.05); z-index: 2; }
.note-card--cream.reveal { transition-delay: 0.12s; }
.note-card--blush.reveal { transition-delay: 0.24s; }

/* ---------- Projects wheel ---------- */
.wheel-section { position: relative; }
.wheel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "head detail" "stage detail" "stage controls";
  column-gap: clamp(16px, 3vw, 48px);
  padding: 84px clamp(16px, 4vw, 48px) 24px;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
}
.wheel-head { grid-area: head; }
.wheel-head .section__title { font-size: clamp(34px, 4.2vw, 56px); margin: 0; }

.wheel-stage {
  grid-area: stage;
  position: relative;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.wheel-stage.is-dragging { cursor: grabbing; }
.wheel { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; z-index: 1; }
.wslot { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; will-change: transform; }

.wcard {
  position: absolute;
  left: calc(var(--cw) / -2);
  top: calc(-1 * (var(--R) + var(--ch)));
  width: var(--cw);
  height: var(--ch);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transform-origin: 50% 100%;
  transform: scale(var(--s, 1));
  perspective: 900px;
  -webkit-tap-highlight-color: transparent;
}
.wcard:focus-visible { outline: none; }
.wcard:focus-visible .wcard__body { outline: 3px dashed var(--coral); outline-offset: 6px; }
.wcard__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 11% 8% 6%;
  border: 2.5px solid var(--ink);
  border-radius: 22px 26px 20px 28px;
  box-shadow: 5px 6px 0 var(--ink);
  transform: rotateX(calc(var(--ty, 0) * -12deg)) rotateY(calc(var(--tx, 0) * 14deg));
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.wcard.is-active .wcard__body { box-shadow: 9px 11px 0 var(--ink); }
.wcard--coral .wcard__body { background: var(--coral); }
.wcard--cream .wcard__body { background: #fffdf8; }
.wcard--blush .wcard__body { background: var(--coral-soft); }
.wcard--ink .wcard__body { background: var(--ink); color: var(--paper); box-shadow: 5px 6px 0 var(--coral); }
.wcard--ink.is-active .wcard__body { box-shadow: 9px 11px 0 var(--coral); }
.wcard--dashed .wcard__body { background: var(--paper); border-style: dashed; box-shadow: none; }
.wcard__tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 38%;
  height: 22px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(20, 16, 16, 0.3);
}

.phone {
  position: relative;
  display: block;
  width: 68%;
  aspect-ratio: 9 / 17;
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 16% / 8.5%;
  overflow: hidden;
  container-type: inline-size;
}
.phone__notch {
  position: absolute;
  top: 3.5%;
  left: 50%;
  width: 32%;
  height: 3.6%;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 99px;
}
.phone__screen {
  position: absolute;
  inset: 13% 8% 6%;
  display: flex;
  flex-direction: column;
  gap: 5cqw;
  font-family: var(--sans);
  font-size: 7cqw;
  line-height: 1.25;
  text-align: left;
}
.wcard__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin-top: auto;
  gap: 6px;
}
.wcard__name { font-family: var(--brush); font-size: calc(var(--cw) * 0.085); line-height: 1.1; text-align: left; }
.wcard__year { font-family: var(--hand); font-weight: 700; font-size: calc(var(--cw) * 0.08); white-space: nowrap; }

/* mini app screens (sized in phone-width units) */
.ui__bar { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.ui__live { background: var(--coral); padding: 0.5cqw 3cqw; border-radius: 99px; font-size: 6cqw; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.55; } }
.ui__score { background: var(--ink); color: var(--paper); border-radius: 7cqw; padding: 6cqw 7cqw; }
.ui__score div { display: flex; justify-content: space-between; align-items: center; }
.ui__score b { font-size: 9cqw; letter-spacing: 0.05em; }
.ui__score span { font-family: var(--brush); font-size: 17cqw; line-height: 1.1; }
.ui__score div:first-child span { color: var(--coral); }
.ui__score small { display: block; font-size: 6cqw; opacity: 0.7; margin-top: 2cqw; }
.ui__rows i { display: block; height: 4cqw; margin: 4cqw 0; background: rgba(20, 16, 16, 0.12); border-radius: 99px; }
.ui__pill {
  margin-top: auto;
  text-align: center;
  font-size: 6.5cqw;
  font-weight: 700;
  padding: 3.5cqw;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  background: var(--coral-soft);
}
.ui__dot { width: 5cqw; height: 5cqw; border-radius: 50%; background: var(--coral); border: 1.5px solid var(--ink); }
.ui__chat { display: flex; flex-direction: column; gap: 3.5cqw; }
.ui__chat p { margin: 0; padding: 3cqw 4.5cqw; border-radius: 6cqw; font-size: 6.8cqw; max-width: 82%; }
.ui__chat .in { align-self: flex-start; background: var(--coral-soft); border-bottom-left-radius: 1cqw; }
.ui__chat .out { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 1cqw; }
.ui__badge { font-size: 5.5cqw; border: 1.5px solid var(--ink); border-radius: 99px; padding: 0.5cqw 2.5cqw; background: var(--coral-soft); }
.ui__list { list-style: none; margin: 0; padding: 0; }
.ui__list li { display: flex; align-items: center; gap: 3cqw; font-size: 6.2cqw; padding: 3.5cqw 0; border-bottom: 1.5px dashed rgba(20, 16, 16, 0.25); }
.ui__list i { flex: none; width: 4.5cqw; height: 4.5cqw; border-radius: 50%; border: 1.5px solid var(--ink); }
.ui__list .s1 { background: var(--coral); } .ui__list .s2 { background: var(--coral-soft); } .ui__list .s3 { background: var(--ink); }
.ui__list em { margin-left: auto; font-style: normal; opacity: 0.6; font-size: 5.5cqw; }
.ui__progress { height: 4cqw; background: rgba(20, 16, 16, 0.1); border-radius: 99px; overflow: hidden; }
.ui__progress span { display: block; width: 66%; height: 100%; background: var(--coral); }
.ui__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; }
.ui__grid span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1; font-size: 15cqw;
  background: var(--coral-soft); border: 1.5px solid var(--ink); border-radius: 7cqw;
}
.ui__grid span:nth-child(2), .ui__grid span:nth-child(3) { background: #fffdf8; }
.ui__grid em { font-style: normal; font-size: 5.5cqw; font-weight: 700; margin-top: 2cqw; text-align: center; }
.wcard--dashed .phone__screen { justify-content: center; align-items: center; }
.ui__plus { font-family: var(--brush); font-size: 52cqw; line-height: 1; color: var(--coral); -webkit-text-stroke: 1.5px var(--ink); }
.ui__next { font-family: var(--hand); font-weight: 700; font-size: 12cqw; margin: 0; }

/* hub the cards orbit around */
.hub {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--hub);
  height: var(--hub);
  transform: translate(-50%, 50%);
  z-index: 0;
}
.hub__ring { width: 100%; height: 100%; overflow: visible; }
.hub__dash { fill: var(--paper-warm); stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 7; }
.hub__line { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: 0.5; }
.hub__ring text { font-family: var(--sans); font-size: 15px; letter-spacing: 0.22em; font-weight: 500; fill: var(--ink-dim); }
.hub__center { position: absolute; left: 50%; top: 21%; transform: translateX(-50%); text-align: center; line-height: 1.1; }
.hub__arrow { display: block; color: var(--coral); font-size: 18px; -webkit-text-stroke: 1px var(--ink); }
.hub__count { font-family: var(--hand); font-weight: 700; font-size: 26px; white-space: nowrap; }
.hub__count b { font-family: var(--brush); font-weight: 400; font-size: 34px; }
.wheel-hint {
  margin: 6px 0 0;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-dim);
}

/* detail panel */
.wheel-detail { grid-area: detail; align-self: center; padding-top: 48px; }
.wheel-detail.is-in > * { animation: detailIn 0.55s cubic-bezier(.2,.8,.2,1) both; }
.wheel-detail.is-in > *:nth-child(2) { animation-delay: 0.04s; }
.wheel-detail.is-in > *:nth-child(3) { animation-delay: 0.08s; }
.wheel-detail.is-in > *:nth-child(4) { animation-delay: 0.12s; }
.wheel-detail.is-in > *:nth-child(5) { animation-delay: 0.16s; }
.wheel-detail.is-in > *:nth-child(6) { animation-delay: 0.2s; }
@keyframes detailIn { from { opacity: 0; transform: translateY(14px); } }
.wd__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 22px;
  color: #d9525a;
  margin: 0 0 6px;
  border-bottom: 2px dashed var(--ink-dim);
  padding-bottom: 6px;
}
.wd__title { font-family: var(--brush); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; margin: 12px 0 4px; }
.wd__tag { font-family: var(--hand); font-weight: 700; font-size: 26px; margin: 0 0 14px; color: #d9525a; }
.wd__desc { font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.wd__points { list-style: none; padding: 0; margin: 0 0 6px; }
.wd__points li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-dim); }
.wd__points li::before { content: "✱"; position: absolute; left: 0; top: 0; color: var(--coral); -webkit-text-stroke: 0.5px var(--ink); }
.wheel-detail .btn { display: inline-block; margin-top: 16px; }

.wheel-controls { grid-area: controls; display: flex; align-items: center; gap: 16px; padding-top: 12px; }
.wheel-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.wheel-btn:hover { background: var(--coral); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.wheel-dots { display: flex; gap: 8px; align-items: center; }
.wheel-dot {
  width: 12px; height: 12px; padding: 0;
  border-radius: 99px;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.wheel-dot.is-active { width: 30px; background: var(--coral); }

/* ---------- Work: journey panels ---------- */
.section--wide { max-width: 1280px; }
.journey-hint { font-family: var(--hand); font-weight: 700; font-size: 22px; color: var(--ink-dim); margin: -16px 0 28px; }
.journey {
  display: flex;
  gap: clamp(10px, 1.4vw, 18px);
  height: clamp(480px, 70vh, 640px);
}
.jpanel {
  --ease: cubic-bezier(.2,.8,.2,1);
  --d: calc(var(--i) * 140ms);
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transition: flex 0.7s var(--ease);
}
.jpanel.is-open { flex-grow: 2.6; }
.jpanel__card {
  position: relative;
  flex: 1;
  border: 2.5px solid var(--ink);
  border-radius: 18px 22px 16px 24px;
  box-shadow: 6px 7px 0 var(--ink);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.jpanel:hover .jpanel__card, .jpanel:focus-visible .jpanel__card { transform: translateY(-4px); box-shadow: 8px 11px 0 var(--ink); }
.jpanel:focus-visible .jpanel__card { outline: 3px dashed var(--coral); outline-offset: 5px; }
.jpanel--cream .jpanel__card { background: #fffdf8; }
.jpanel--blush .jpanel__card { background: var(--coral-soft); }
.jpanel--ink .jpanel__card { background: var(--ink); color: var(--paper); box-shadow: 6px 7px 0 var(--coral); }
.jpanel--ink:hover .jpanel__card { box-shadow: 8px 11px 0 var(--coral); }
.jpanel--coral .jpanel__card { background: var(--coral); }

.jpanel__stage { position: absolute; inset: 0; }
.jv {
  position: absolute;
  top: 6%;
  left: 50%;
  width: min(260px, 88%);
  height: 54%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jv .phone { width: 52%; max-width: 130px; box-shadow: 4px 5px 0 var(--ink); }
.jv--one .phone { width: 62%; transform: rotate(-4deg); }
.jv--two .phone { position: absolute; }
.jv--two .p1 { left: 4%; transform: rotate(-9deg); }
.jv--two .p2 { right: 4%; top: 12%; transform: rotate(7deg); }
.jv--edu svg { width: 82%; overflow: visible; }
.jv--edu path, .jv--edu rect, .jv--edu circle { fill: #fffdf8; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.jv--edu .jv-fill { fill: var(--coral); }
.jv-tag {
  position: absolute;
  right: 0;
  top: 4%;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 22px;
  background: var(--coral-soft);
  border: 2px solid var(--ink);
  border-radius: 99px;
  padding: 0 10px;
  transform: rotate(8deg);
}
.jv--badges { gap: 0; }
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40%;
  max-width: 96px;
  aspect-ratio: 1;
  margin: 0 -4%;
  border-radius: 50%;
  border: 2.5px solid var(--paper);
  background: var(--coral);
  color: var(--ink);
  font-size: 30px;
  box-shadow: 0 0 0 5px var(--ink);
}
.badge em { font-style: normal; font-family: var(--hand); font-weight: 700; font-size: 15px; line-height: 1; }
.badge.b1 { transform: rotate(-12deg) translateY(10%); }
.badge.b2 { background: var(--paper); z-index: 1; transform: translateY(-10%); }
.badge.b3 { background: var(--coral-soft); transform: rotate(12deg) translateY(10%); }

.jpanel__num {
  position: absolute;
  left: 7%;
  bottom: -0.1em;
  font-family: var(--brush);
  font-size: clamp(130px, 13vw, 210px);
  line-height: 1;
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  pointer-events: none;
}
.jpanel--ink .jpanel__num { color: var(--coral); -webkit-text-stroke-color: var(--paper); }
.now-sticker {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--brush);
  font-size: 18px;
  transform: rotate(12deg);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: rotate(12deg) scale(1.08); } }

.jpanel__detail {
  position: absolute;
  left: 40%;
  right: 5%;
  bottom: 5%;
  z-index: 3;
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 14px 18px 12px 20px;
  box-shadow: 4px 5px 0 var(--ink);
  padding: 14px 16px 10px;
  opacity: 0;
  transform: translateY(30px) rotate(-1deg);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.jpanel.is-settled.is-open .jpanel__detail { opacity: 1; transform: rotate(-1deg); transition-delay: 0.3s; pointer-events: auto; }
.jd__when { font-family: var(--hand); font-weight: 700; font-size: 22px; color: #d9525a; margin: 0 0 4px; }
.jpanel__detail ul { list-style: none; margin: 0; padding: 0; }
.jpanel__detail li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.45; margin-bottom: 6px; }
.jpanel__detail li::before { content: "✱"; position: absolute; left: 0; color: var(--coral); -webkit-text-stroke: 0.5px var(--ink); }

.jpanel__cap { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-left: 4px; min-height: 52px; }
.jpanel__cap b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jpanel__cap span { font-family: var(--hand); font-weight: 700; font-size: 21px; color: #d9525a; }

/* entrance: panels wipe up one by one, then numbers slide in, then the art pops */
.jpanel { opacity: 0; transform: translateY(70px); }
.jpanel__card { clip-path: inset(100% 0 0 0 round 18px); }
.jpanel__num { transform: translateY(70%); }
.jv { opacity: 0; transform: translateX(-50%) scale(0.75) rotate(-8deg); }
.jpanel__cap { opacity: 0; }
.jpanel.is-in {
  opacity: 1;
  transform: none;
  transition: flex 0.7s var(--ease), opacity 0.6s ease var(--d), transform 0.9s var(--ease) var(--d);
}
.jpanel.is-in .jpanel__card { clip-path: inset(-20px -20px -20px -20px round 18px); transition: clip-path 1s var(--ease) var(--d), box-shadow 0.3s, transform 0.3s; }
.jpanel.is-in .jpanel__num { transform: none; transition: transform 0.9s var(--ease) calc(var(--d) + 0.35s); }
.jpanel.is-in .jv { opacity: 1; transform: translateX(-50%); transition: opacity 0.5s ease calc(var(--d) + 0.55s), transform 0.8s cubic-bezier(.3,1.5,.5,1) calc(var(--d) + 0.55s); }
.jpanel.is-in .jpanel__cap { opacity: 1; transition: opacity 0.6s ease calc(var(--d) + 0.6s); }
.jpanel.is-in .jv .phone { animation: floaty 4s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
@keyframes floaty { 50% { translate: 0 -8px; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Mobile / portrait screens ---------- */
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .wide-only { display: none; }
  .hero { height: auto; min-height: 0; padding-top: 84px; }
  .hero__mobile-title { display: block; padding: 0 16px; }
  .kicker { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75; margin: 0 0 8px; }
  .brush { font-family: var(--brush); font-weight: 400; font-size: clamp(52px, 15vw, 96px); line-height: 0.95; margin: 0; }
  .hero__role { font-family: var(--hand); font-size: 24px; margin: 10px 0 0; }
  .poster { flex: none; aspect-ratio: 900 / 940; margin-top: -8px; }
  .skills { grid-template-columns: 1fr; }
  .journey { flex-direction: column; height: auto; gap: 30px; }
  .jpanel { --d: 0ms; }
  .jpanel, .jpanel.is-open { flex: none; }
  .jpanel__card { display: flex; flex-direction: column; }
  .jpanel__stage { position: relative; height: 260px; }
  .jpanel__detail, .jpanel.is-open .jpanel__detail {
    position: static; opacity: 1; transform: none; pointer-events: auto;
    margin: 0 12px 12px; transition: none;
  }
  .jpanel__num { font-size: 170px; }
  .jv { width: 60%; height: 80%; left: auto; right: 4%; transform: none; }
  .jv { scale: 0.8; }
  .jpanel.is-in .jv { transform: none; scale: 1; transition: opacity 0.5s ease calc(var(--d) + 0.5s), scale 0.7s cubic-bezier(.3,1.5,.5,1) calc(var(--d) + 0.5s); }
  .journey-hint { display: none; }
  .wheel-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas: "head" "stage" "detail" "controls";
    padding: 76px 16px 16px;
  }
  .wheel-stage { -webkit-mask-image: none; mask-image: none; }
  .wheel-detail { padding-top: 8px; }
  .wd__points, .wd__tag { display: none; }
  .wd__title { font-size: 30px; margin: 6px 0 4px; }
  .wd__desc { font-size: 14.5px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .wd__meta { font-size: 19px; }
  .wheel-detail .chips { margin-top: 6px; }
  .wheel-detail .btn { margin-top: 6px; font-size: 20px; }
  .wheel-hint { display: none; }
  .wheel-controls { justify-content: center; padding-top: 10px; }
  .about { grid-template-columns: 1fr; gap: 56px; }
  .about__notes { min-height: 0; padding: 0 8px; }
  .doodle-arrow { display: none; }
  .note-card { position: relative; inset: auto !important; width: min(300px, 82%); margin-bottom: 30px; }
  .note-card--cream { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .jpanel, .jpanel__num, .jv, .jpanel__cap { opacity: 1 !important; transform: none !important; }
  .jpanel__card { clip-path: none !important; }
  .portrait, .poster .note text, .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
