:root {
  --paper: #f4f4f0;
  --paper-deep: #e8e9e3;
  --ink: #0d1f1a;
  --ink-muted: #4a5a53;
  --rule: #c9ccc4;
  --callout: #2f54ff;
  --on-callout: #ffffff;
  --lime: #d4ff4f;
  --shadow-float: 0 20px 34px -18px rgba(13, 31, 26, 0.45);
  --font: "Geist", system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1360px;
  --ease: ease;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--callout); }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--callout); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.mark {
  height: 46px; padding: 0 10px; background: var(--ink); color: var(--lime);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 19px; letter-spacing: -0.04em; text-decoration: none;
}
.mark:hover { color: var(--lime); background: var(--callout); }
.site-head { position: sticky; top: 0; z-index: 50; transition: transform .35s var(--ease-out); }
.site-head.hide { transform: translateY(-100%); }
.menu { display: flex; background: var(--lime); box-shadow: 0 14px 30px -20px rgba(13, 31, 26, 0.45); }
.menu a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden;
  padding: 15px 20px; font: 600 17px/1 var(--font); color: var(--ink); text-decoration: none;
  transition: color .25s var(--ease-out);
}
.menu a::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .3s var(--ease-out); }
.menu a > * { position: relative; }
.menu a:hover, .menu a:focus-visible { color: var(--lime); }
.menu a:hover::before, .menu a:focus-visible::before { transform: none; }
.menu .menu-cta { background: var(--ink); color: var(--lime); }
.menu .menu-cta::before { background: var(--callout); }
.menu .menu-cta:hover { color: var(--on-callout); }
.menu .menu-cta svg { transition: transform .3s var(--ease-out); }
.menu .menu-cta:hover svg { transform: translate(2px, -2px); }
.menu-btn {
  display: none; border: 0; cursor: pointer; background: var(--lime); color: var(--ink);
  font: 600 17px/1 var(--font); padding: 15px 20px; min-height: 48px;
}
.menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--lime); }
.overlay {
  position: fixed; inset: 0; z-index: 40; background: var(--lime); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter) 32px;
}
.overlay[hidden] { display: none; }
.overlay nav { display: grid; gap: 4px; }
.overlay nav a { display: block; overflow: hidden; font-size: clamp(64px, 19vw, 180px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; text-decoration: none; color: var(--ink); }
.overlay nav a span { display: inline-block; transition: translate .3s var(--ease-out); }
.overlay nav a:hover span { translate: 12px 0; }
.overlay-foot { margin-top: auto; font-size: 18px; }
.overlay-foot a { color: var(--ink); }
body.menu-open { overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  font: 600 17px/1 var(--font); padding: 15px 22px; text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--callout); color: var(--on-callout); }
.btn-lime { background: var(--lime); color: var(--ink); font-size: 18px; padding: 17px 26px; }
.btn-lime:hover { background: var(--ink); color: var(--lime); }

/* Hero */
.hero {
  position: relative; overflow-x: clip;
  height: calc(100svh - 90px); min-height: 520px;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding-bottom: clamp(16px, 3vh, 36px);
}
.hero-name { grid-row: 1; }
.strip { grid-row: 2; }
.portrait-zone { grid-row: 3; }
.hero-foot { grid-row: 4; }
.yt-link { margin-top: 12px; font-size: 15px; }
.yt-link a { color: var(--ink-muted); }
.hero-name {
  font-size: clamp(76px, 17.5vw, 270px);
  line-height: 0.82; letter-spacing: -0.045em; white-space: nowrap;
  margin-left: calc(var(--gutter) - 0.05em);
  padding-top: clamp(16px, 3vw, 40px);
  position: relative; z-index: 1;
}
.hero-name { margin-left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.marquee { display: block; overflow: hidden; padding-bottom: 0.06em; }
.track { display: flex; width: max-content; will-change: transform; }
.grp { display: flex; align-items: center; padding-right: 0.32em; }
.sep { display: inline-block; width: 0.11em; height: 0.11em; background: var(--callout); margin-left: 0.32em; }
.strip { display: none; }
.floats { position: absolute; inset: 0; pointer-events: none; }
.float { position: absolute; aspect-ratio: 4 / 3; pointer-events: auto; will-change: transform; }
.float-in { display: block; width: 100%; height: 100%; overflow: hidden; background: var(--rule); }
.float img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.float.front .float-in { box-shadow: var(--shadow-float); }
.float.front { z-index: 2; }
.float.back { z-index: 0; }
.f1 { left: 3%; top: 32%; width: 15%; }
.f2 { left: 6%; top: 52%; width: 10%; }
.f3 { right: 24%; top: 3%; width: 12%; }
.f4 { right: 2%; top: 18%; width: 14%; }
.f5 { left: 33%; top: 0%; width: 8%; }
.f6 { right: 8%; top: 58%; width: 11%; }
.f7 { right: 2%; top: 78%; width: 8%; }
.f8 { right: 22%; top: 74%; width: 8.5%; }
.float-cap {
  position: absolute; left: 0; top: calc(100% + 10px); white-space: nowrap;
  background: var(--callout); color: var(--on-callout); font: 600 12px/1 var(--font);
  letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 10px;
  opacity: 0; translate: 0 -6px; transition: opacity .2s var(--ease-out), translate .25s var(--ease-out);
  pointer-events: none;
}
.f4 .float-cap, .f6 .float-cap { left: auto; right: 0; }
.float-in { transition: scale .35s var(--ease-out), rotate .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.float { transition: opacity .3s var(--ease-out); }

.portrait-zone { position: relative; z-index: 3; justify-self: center; height: calc(100% + 5vw); margin-top: -5vw; aspect-ratio: 880 / 1148; max-width: 80vw; }
.portrait { height: 100%; overflow: visible; }
.portrait img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 85%; }
mark { font-weight: 600; }
.hl, mark {
  background: var(--lime); color: var(--ink); padding: 0.06em 0.28em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.frame { position: absolute; z-index: 4; left: 4%; top: 1%; width: 92%; height: 98%; border: 2px solid var(--callout); pointer-events: none; }
.trait {
  position: absolute; z-index: 4; white-space: nowrap;
  background: var(--callout); color: var(--on-callout);
  font: 600 14px/1 var(--font); letter-spacing: 0.05em; text-transform: uppercase;
  padding: 11px 14px; margin-top: -18px;
  transition: translate .35s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.trait i { position: absolute; top: 50%; height: 2px; margin-top: -1px; width: 32px; background: var(--callout); }
.c1 { right: calc(96% + 24px); top: 32%; }
.c1 i { left: 100%; width: 24px; transform-origin: right center; }
.c2 { right: calc(96% + 96px); top: 66%; }
.c2 i { left: 100%; width: 96px; transform-origin: right center; }
.c3 { left: calc(96% + 56px); top: 24%; }
.c3 i { right: 100%; width: 56px; transform-origin: left center; }

.hero-foot { grid-row: 4; }
.yt-link { margin-top: 12px; font-size: 15px; }
.yt-link a { color: var(--ink-muted); }
.hero-name {
  font-size: clamp(76px, 17.5vw, 270px);
  line-height: 0.82; letter-spacing: -0.045em; white-space: nowrap;
  margin-left: calc(var(--gutter) - 0.05em);
  padding-top: clamp(16px, 3vw, 40px);
  position: relative; z-index: 1;
}
.hero-name { margin-left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.marquee { display: block; overflow: hidden; padding-bottom: 0.06em; }
.track { display: flex; width: max-content; will-change: transform; }
.grp { display: flex; align-items: center; padding-right: 0.32em; }
.sep { display: inline-block; width: 0.11em; height: 0.11em; background: var(--callout); margin-left: 0.32em; }
.strip { display: none; }
.floats { position: absolute; inset: 0; pointer-events: none; }
.float { position: absolute; aspect-ratio: 4 / 3; pointer-events: auto; will-change: transform; }
.float-in { display: block; width: 100%; height: 100%; overflow: hidden; background: var(--rule); }
.float img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.float.front .float-in { box-shadow: var(--shadow-float); }
.float.front { z-index: 2; }
.float.back { z-index: 0; }
.f1 { left: 3%; top: 32%; width: 15%; }
.f2 { left: 6%; top: 52%; width: 10%; }
.f3 { right: 24%; top: 3%; width: 12%; }
.f4 { right: 2%; top: 18%; width: 14%; }
.f5 { left: 33%; top: 0%; width: 8%; }
.f6 { right: 8%; top: 58%; width: 11%; }
.f7 { right: 2%; top: 78%; width: 8%; }
.f8 { right: 22%; top: 74%; width: 8.5%; }
.float-cap {
  position: absolute; left: 0; top: calc(100% + 10px); white-space: nowrap;
  background: var(--callout); color: var(--on-callout); font: 600 12px/1 var(--font);
  letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 10px;
  opacity: 0; translate: 0 -6px; transition: opacity .2s var(--ease-out), translate .25s var(--ease-out);
  pointer-events: none;
}
.f4 .float-cap, .f6 .float-cap { left: auto; right: 0; }
.float-in { transition: scale .35s var(--ease-out), rotate .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.float { transition: opacity .3s var(--ease-out); }

.portrait-zone { position: relative; z-index: 3; justify-self: center; height: calc(100% + 5vw); margin-top: -5vw; aspect-ratio: 880 / 1148; max-width: 80vw; }
.portrait { height: 100%; overflow: visible; }
.portrait img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 85%; }
mark { font-weight: 600; }
.hl, mark {
  background: var(--lime); color: var(--ink); padding: 0.06em 0.28em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(12px, 2.5vh, 32px); width: 100%; }
.intro { font-size: clamp(19px, min(2vw, 3.2vh), 28px); font-weight: 600; line-height: 1.42; letter-spacing: -0.015em; max-width: 26em; }
.iw {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat; background-position: 0 55%; background-size: 100% 88%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Sections */
.section { padding-top: 96px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 18px; }
.section-head h2 { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -0.035em; line-height: 1; }
.section-head p { color: var(--ink-muted); font-size: 15px; }

/* Work list */
.work { list-style: none; margin: 0; padding: 0; }
.work li { border-bottom: 1px solid var(--rule); }
.work a {
  display: grid; grid-template-columns: 84px minmax(0, 1.1fr) minmax(0, 2fr) 170px; gap: 24px; align-items: center;
  padding: 22px 0; text-decoration: none; position: relative;
}
.work .cl { color: var(--ink-muted); font-size: 15px; }
.work .yr { font-size: 17px; font-variant-numeric: tabular-nums; }
.work h3 { font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -0.02em; line-height: 1.1; transition: transform .25s var(--ease-out); }

.work a:hover { color: var(--ink); }
.work .thumb { display: none; }
.work .badge { justify-self: end; }
.badge {
  background: var(--callout); color: var(--on-callout); font: 600 12px/1 var(--font);
  letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 10px; white-space: nowrap;
}
.peek {
  position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 16 / 9; z-index: 20; pointer-events: none;
  overflow: hidden; box-shadow: var(--shadow-float); opacity: 0;
  transition: opacity .2s var(--ease);
}
.peek img { width: 100%; height: 100%; object-fit: cover; }
.peek.on { opacity: 1; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 40px; }
.about p { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; max-width: 32em; }
.about p + p { margin-top: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.timeline .when { font-size: 16px; font-variant-numeric: tabular-nums; }
.timeline b { font-weight: 600; }

/* Contact */
.contact { padding-top: 120px; padding-bottom: 56px; }
.contact h2 { font-size: clamp(48px, 9vw, 140px); letter-spacing: -0.045em; line-height: 0.9; }
.contact h2 a { text-decoration: none; }
.contact h2 a:hover { color: var(--callout); }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; font-size: 18px; }
.foot { border-top: 1px solid var(--ink); padding-top: 20px; padding-bottom: 28px; margin-top: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-muted); }

/* Project page */
.p-head { padding-top: clamp(28px, 4vw, 56px); }
.p-client { font-size: 18px; color: var(--ink-muted); }
.p-title { font-size: clamp(48px, 7.6vw, 112px); letter-spacing: -0.045em; line-height: 0.92; margin-top: 10px; }
.p-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.p-title .w > span { display: inline-block; }
.video {
  --vw: calc(100vw - 2 * clamp(8px, 1.2vw, 20px));
  position: relative; background: var(--ink); overflow: hidden;
  width: var(--vw); margin-left: calc(50% - 50vw + clamp(8px, 1.2vw, 20px));
  height: min(calc(100svh - 104px), calc(var(--vw) * 9 / 16));
  min-height: 200px;
}
.video button { all: unset; position: absolute; inset: 0; cursor: pointer; }
.video button img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .3s var(--ease); }

.video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--lime); color: var(--ink); font: 600 18px/1 var(--font);
  padding: 18px 26px; display: inline-flex; gap: 10px; align-items: center;
}
.video button:focus-visible { outline: 2px solid var(--lime); outline-offset: -6px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; margin-top: 40px; }
.p-desc { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; max-width: 30em; }
.facts { margin: 0; display: grid; }
.facts dt, .facts dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 15px; display: flex; align-items: flex-start; }
.facts { grid-template-columns: 120px minmax(0, 1fr); }
.facts dt { padding-top: 12px; }
.facts dd ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
main.wrap { padding-bottom: 96px; }
.p-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 80px; border-top: 1px solid var(--ink); padding-top: 22px; }
.p-nav a { text-decoration: none; display: grid; gap: 4px; max-width: 45%; }
.p-nav a span { color: var(--ink-muted); font-size: 14px; }
.p-nav a b { font-weight: 600; font-size: clamp(18px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.15; }
.p-nav .next { text-align: right; margin-left: auto; }

@media (max-width: 900px) {
  .work a { grid-template-columns: minmax(0, 1fr) 120px; gap: 4px 16px; align-items: start; padding: 18px 0; }
  .work .yr { grid-column: 1; grid-row: 1; }
  .work .cl { grid-column: 1; grid-row: 2; }
  .work h3 { grid-column: 1; grid-row: 3; margin-top: 4px; }
  .work .badge { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 8px; }
  .work .thumb { display: block; grid-column: 2; grid-row: 1 / span 4; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rule); }
  .work .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .peek { display: none; }
  .about, .p-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .menu { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .floats { display: none; }
  .hero-name { font-size: 30vw; }
  .strip { display: block; overflow: hidden; margin-top: 12px; }
  .hero { min-height: 600px; }
  .strip-track { display: flex; gap: 10px; width: max-content; }
  .strip-item { width: 30vw; aspect-ratio: 4 / 3; overflow: hidden; background: var(--rule); flex-shrink: 0; }
  .strip-item img { width: 100%; height: 100%; object-fit: cover; }
  .portrait-zone { margin-top: 12px; height: auto; aspect-ratio: auto; width: 100%; max-width: none; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .portrait { flex: 1 1 0; min-height: 0; width: 100%; }
  .trait { position: static; align-self: center; font-size: 13px; padding: 9px 12px; margin-top: 0; }
  .trait i, .frame { display: none; }
  .hero-foot .btn-lime { width: 100%; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Hover, only where a real pointer exists */
@media (hover: hover) and (pointer: fine) {
  .work a:hover h3 { transform: translateX(10px); }
  .float:hover { z-index: 6; }
  .float:hover .float-in { scale: 1.14; rotate: 0deg; animation-play-state: paused; box-shadow: 0 30px 50px -20px rgba(13,31,26,0.55); }
  .float:hover img { transform: scale(1.08); }
  .float:hover .float-cap { opacity: 1; translate: 0 0; }
  .floats:has(.float:hover) .float:not(:hover) { opacity: 0.35; }
  .c1:hover { translate: -8px 0; background: var(--lime); color: var(--ink); }
  .c2:hover, .c3:hover { translate: 8px 0; background: var(--lime); color: var(--ink); }
  .frame { transition: scale .4s var(--ease-out); }
  .portrait-zone:hover .frame { scale: 1.03; }
  .btn-lime { transition: background-color .2s var(--ease), color .2s var(--ease), translate .4s var(--ease-out); }
  .video button:hover img { transform: scale(1.02); filter: brightness(0.85); }
}

/* Motion. Content is visible without JS; the .js class (set in <head>) opts into the entrance. */
@keyframes rise   { from { transform: translateY(105%); } }
@keyframes drop   { from { opacity: 0; transform: translateY(32px) scale(0.96); } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw   { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes grow   { from { transform: scaleX(0); } }
@keyframes tag    { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade   { from { opacity: 0; } }
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bob { from { transform: translate3d(0, -10px, 0) rotate(-1.2deg); } to { transform: translate3d(0, 12px, 0) rotate(1.2deg); } }

@media (prefers-reduced-motion: no-preference) {
  .js .grp { animation: name-in 1.3s var(--ease-out) both; }
  .js .grp + .grp { animation-delay: .08s; }
  .js .sep { animation: tag .6s var(--ease-out) .7s both; }
  .track { animation: marquee 32s linear infinite; }
  .float-in { animation: bob 7s ease-in-out infinite alternate; }
  .f2 .float-in { animation-duration: 8.5s; animation-delay: -3s; }
  .f3 .float-in { animation-duration: 6s; animation-delay: -1.5s; }
  .f4 .float-in { animation-duration: 9s; animation-delay: -4s; }
  .strip-track { animation: marquee-left 40s linear infinite; }
  .js .portrait { animation: face-up 1.1s cubic-bezier(0.34, 1.3, 0.64, 1) .3s backwards; }
  .js .float { animation: drop .8s var(--ease-out) backwards; }
  .js .f1 { animation-delay: .45s; }
  .js .f3 { animation-delay: .52s; }
  .js .f2 { animation-delay: .59s; }
  .js .f4 { animation-delay: .66s; }
  .js .f5 { animation-delay: .73s; }
  .js .f6 { animation-delay: .8s; }
  .js .f7 { animation-delay: .87s; }
  .js .f8 { animation-delay: .94s; }
  .f5 .float-in { animation-duration: 7.5s; animation-delay: -2s; }
  .f6 .float-in { animation-duration: 6.5s; animation-delay: -5s; }
  .f7 .float-in { animation-duration: 8s; animation-delay: -1s; }
  .f8 .float-in { animation-duration: 9.5s; animation-delay: -6s; }
  .js .frame { animation: draw .6s var(--ease-out) 1s both; }
  .js .trait i { animation: grow .25s var(--ease-out) both; }
  .js .trait { animation: tag .35s var(--ease-out) both; }
  .js .c1 i { animation-delay: 1.4s; }
  .js .c1 { animation-delay: 1.55s; }
  .js .c2 i { animation-delay: 1.55s; }
  .js .c2 { animation-delay: 1.7s; }
  .js .c3 i { animation-delay: 1.7s; }
  .js .c3 { animation-delay: 1.85s; }
  .js .hero-foot { animation: tag .6s var(--ease-out) .8s both; }

  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }

  .js .p-title .w > span { animation: rise 1s var(--ease-out) both; }
  .js .p-client { animation: tag .6s var(--ease-out) .05s both; }
  .js .video { animation: unveil .9s var(--ease-out) .15s both; }
}

/* Reduced motion: no movement, but a gentle fade so the page still arrives. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-name, .js .portrait, .js .floats, .js .frame, .js .trait, .js .hero-foot { animation: fade .4s ease both; }
  .float img, .work h3 { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .overlay:not([hidden]) nav a span { animation: rise .7s var(--ease-out) both; }
  .overlay:not([hidden]) nav a:nth-child(2) span { animation-delay: .06s; }
  .overlay:not([hidden]) nav a:nth-child(3) span { animation-delay: .12s; }
  .overlay:not([hidden]) { animation: unveil .5s var(--ease-out) both; }
}

/* Intro: the highlighter sweeps across the sentence word by word. */
@keyframes highlight { from { background-size: 0% 88%; } to { background-size: 100% 88%; } }
@media (prefers-reduced-motion: no-preference) {
  .js .iw { animation: highlight 1.1s cubic-bezier(0.77, 0, 0.175, 1) both; animation-delay: calc(2s + var(--i) * 650ms); }
}


/* Some previews are round: square crop, full circle. */
.float.round { aspect-ratio: 1 / 1; }
.float.round .float-in, .strip-item.round { border-radius: 50%; }
.strip-item.round { aspect-ratio: 1 / 1; width: 22.5vw; align-self: center; }

/* Hero layout v2: name on top, portrait on the left, intro on the right. */
.hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
}
.hero-name { grid-column: 1 / -1; grid-row: 1; }
.portrait-zone {
  grid-column: 1; grid-row: 2; justify-self: start;
  margin-left: calc(var(--gutter) + max(0px, (100vw - var(--max)) / 2));
  max-width: 18vw; height: 88%; align-self: center; margin-top: 0;
  margin-left: calc(var(--gutter) + max(0px, (100vw - var(--max)) / 2) + clamp(170px, 15vw, 240px));
}
.hero-foot {
  grid-column: 2; grid-row: 2; align-self: center;
  margin: 0; padding-right: calc(var(--gutter) + max(0px, (100vw - var(--max)) / 2));
  width: auto;
}
.intro { font-size: clamp(21px, min(2.1vw, 3.4vh), 30px); max-width: 19em; }
/* All three labels sit to the right of the frame, at different distances and heights. */
.c1 { right: calc(96% + 36px); left: auto; top: 34%; }
.c1 i { right: auto; left: 100%; width: 36px; transform-origin: right center; }
.c2 { left: calc(96% + 72px); right: auto; top: 20%; }
.c2 i { left: auto; right: 100%; width: 72px; transform-origin: left center; }
.c3 { left: calc(96% + 28px); right: auto; top: 70%; }
.c3 i { left: auto; right: 100%; width: 28px; transform-origin: left center; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; min-height: 520px; }
  .portrait-zone {
    grid-column: 1; grid-row: 2; justify-self: center; margin: 16px 0 0; max-width: none;
    height: auto; aspect-ratio: auto; width: 100%; min-height: 0;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
  }
  .portrait { flex: 1 1 0; min-height: 0; width: 100%; }
  .trait { position: static; align-self: center; font-size: 13px; padding: 9px 12px; margin-top: 0; }
  .trait i, .frame { display: none; }
  .hero-foot { grid-column: 1; grid-row: 3; padding: 0 var(--gutter); margin-top: clamp(12px, 2.5vh, 28px); }
  .intro { font-size: clamp(19px, 4.6vw, 26px); }
}

.intro-now { margin-top: 1.1em; font-size: clamp(16px, min(1.4vw, 2.4vh), 20px); line-height: 1.4; }
.intro-now b { font-weight: 600; }

/* Portrait: always swaying. Two rotations with unrelated periods add up to an irregular motion, never past ±5°. */
.portrait img { will-change: transform; }
@media (max-width: 1000px) {
  .portrait-zone { margin: 16px 0 0; height: auto; max-width: none; align-self: stretch; }
  .intro-now { font-size: 16px; }
}

/* Mobile polish */
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.contact-row a, .yt-link a, .overlay-foot a { display: inline-flex; align-items: center; min-height: 44px; }
.yt-link { margin-top: 4px; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 96px minmax(0, 1fr); }
  .contact-row { gap: 4px 24px; }
  .p-nav { margin-top: 56px; }
  .badge { font-size: 12.5px; }
}
@media (max-width: 1000px) and (max-height: 700px) {
  .intro { font-size: 17px; }
  .trait { font-size: 12px; padding: 7px 10px; }
}

/* Mobile landing: frame around the face only, no labels, no campaign count, no thumbnails. */
@media (max-width: 1000px) {
  .portrait-zone {
    display: block; width: auto; height: 100%; aspect-ratio: 880 / 1148; max-width: 80vw;
    justify-self: center; align-self: stretch; margin: 12px 0 0;
  }
  .portrait { height: 100%; }
  .frame { display: block; left: -4%; top: -2%; width: 108%; height: 104%; }
  .trait { display: none; }
}
@media (max-width: 760px) {
  .section-head .count { display: none; }
  .work .thumb { display: none; }
  .work a { grid-template-columns: minmax(0, 1fr); }
}

/* Work list entrance: each row's rule draws in from the left, then its content rises into place. */
.work li { position: relative; border-bottom: 0; }
.work li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .js .work li.reveal { opacity: 1; transform: none; }
  .js .work li.reveal::after { transform: scaleX(0); transition: transform .9s var(--ease-out); transition-delay: inherit; }
  .js .work li.reveal > a > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); transition-delay: inherit; }
  .js .work li.reveal.in::after { transform: none; }
  .js .work li.reveal.in > a > * { opacity: 1; transform: none; }
  .js .work li.reveal.in > a > .cl { transition-delay: calc(var(--d, 0ms) + 60ms); }
  .js .work li.reveal.in > a > h3 { transition-delay: calc(var(--d, 0ms) + 120ms); }
  .js .work li.reveal.in > a > .badge { transition-delay: calc(var(--d, 0ms) + 200ms); }
}

@keyframes name-in { from { transform: translate3d(-12%, 105%, 0); } }

@keyframes face-up { from { opacity: 0; transform: translateY(70%); } 35% { opacity: 1; } }

/* Slower, softer reveal for reading blocks (About, project pages). */
@media (prefers-reduced-motion: no-preference) {
  .js .about > .reveal, .js .timeline li.reveal, .js .p-body > .reveal, .js .p-nav.reveal {
    transform: translateY(26px);
    transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  }
  .js .about > .reveal.in, .js .timeline li.reveal.in, .js .p-body > .reveal.in, .js .p-nav.reveal.in { transform: none; }
  .js .p-title .w > span { animation-duration: 1.25s; }
  .js .p-client { animation-duration: .9s; }

  /* Facts table: rows drop in one after another. */
  .js .p-body > .facts.reveal { opacity: 1; transform: none; }
  .js .facts.reveal > dt, .js .facts.reveal > dd {
    opacity: 0; transform: translateY(-18px);
    transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
  }
  .js .facts.reveal.in > dt, .js .facts.reveal.in > dd { opacity: 1; transform: none; transition-delay: calc(250ms + var(--r, 0) * 160ms); }
  .js .facts.reveal.in > dd { transition-delay: calc(310ms + var(--r, 0) * 160ms); }
}

/* Mobile: smaller face, no awards in the home list. */
@media (max-width: 760px) {
  .portrait-zone { height: 74%; align-self: center; max-width: 62vw; margin-top: 0; }
  .work .badge { display: none; }
}
