/* ==========================================================================
   Ankita — portfolio
   ========================================================================== */
:root {
  --dark: #000000; --ink: #000000; --paper: #ffffff; --paper-2: #ededed;
  --muted: #6b6b6b; --line: rgba(0, 0, 0, .14);
  /* palette: purple, pink, orange, green on black and white */
  --purple: #694aff; --pink: #ff80ea; --orange: #ff5500; --green: #06df72;
  --lavender: var(--purple); --yellow: var(--pink); /* legacy names used around the stylesheet */
  --indigo: #2b1680; --maroon: #7a2300; --umber: #6e1d60; --olive: #023b1f;
  --blue: var(--purple); --violet: var(--purple);
  /* Neue Haas Grotesk for headings and UI, Reckless for reading text. Both are licensed fonts:
     if they are installed they are used, otherwise Inter Tight and Newsreader stand in. */
  --sans: "Neue Haas Grotesk Text Pro", "NHaasGroteskTXPro-55Rg", "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Neue Haas Grotesk Display Pro", "NHaasGroteskDSPro-65Md", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Aeonik", "Aeonik Pro", "Instrument Sans", "Inter Tight", ui-sans-serif, system-ui, sans-serif; /* reading text: Aeonik, or Instrument Sans as the free stand-in */
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --gap: clamp(14px, 2vw, 28px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-anchor: none; overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; font-weight: 400; }
.muted { color: var(--muted); }
.plain { list-style: none; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }
.tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 6px 2px; background: var(--paper-2); font: 400 10px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transform: translateY(-.2em); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: flex-start; /* links line up with the name, not the two-line block */
  padding: 18px var(--pad); color: var(--ink);
  transition: color .4s var(--ease), background-color .4s var(--ease);
}
.nav[data-mode="dark"] { color: var(--paper); }
.nav[data-mode="light"].is-scrolled { background: var(--paper); }
.home .nav[data-mode="dark"].is-scrolled { background: transparent; }
.contact-visible .nav { background: var(--dark); }
.nav__logo { display: flex; align-items: center; gap: 9px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; font-size: 16px; }
.nav__logo i { width: 10px; height: 10px; background: currentColor; transition: transform .5s var(--ease); }
.nav__logo:hover i { transform: rotate(90deg) scale(1.2); }
.nav__links { display: flex; gap: clamp(18px, 3vw, 44px); list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; display: block; text-decoration: none; font-size: 16px; line-height: 1.15; cursor: pointer; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }
.nav__links a[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.nav__links a[aria-disabled="true"]::after { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 180vh; height: 180svh; } /* greeting → intro: about 22% less scrolling than before */
.hero.is-collapsed { height: 150vh; height: 150svh; } /* one dark screen + the 50vh the intro slides over */ /* after you have scrolled past it once */
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--dark); color: var(--paper); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; } /* pieces can be dragged sideways; vertical swipes still scroll */
.greet {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .22em;
  font-size: clamp(25px, 4.5vw, 73px); font-weight: 500; letter-spacing: -.035em; line-height: 1;
  pointer-events: none; will-change: transform, opacity;
}
.greet__mark { width: .15em; height: .15em; flex: none; background: var(--green); transition: background .5s cubic-bezier(.19,1,.22,1); }
.greet__clip { display: block; overflow: hidden; padding: .08em .04em .16em; }
.greet__word { display: block; white-space: nowrap; }
.hero__meta {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 100px; /* clears the Tetris pile (max 6 rows) */
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  font-size: 15px; line-height: 1.35; opacity: 0; transition: opacity .7s var(--ease);
}
.hero.is-ready .hero__meta { opacity: 1; }
.hero__meta span { color: rgba(255, 255, 255, .55); }
.hero__scroll span { display: inline-block; color: inherit; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }

/* ---------- Intro ---------- */
.intro { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 88px 0 40px; } /* one screen */
/* slide up over the last stretch of the hero (already paper by then): ~30% less blank scrolling */
.intro { position: relative; z-index: 1; margin-top: -50vh; margin-top: -50svh; background: var(--paper); }
.intro > .wrap { width: 100%; }
.intro__title { font-size: clamp(42px, 7.2vw, 120px); font-weight: 500; letter-spacing: -.058em; line-height: .86; margin-left: -.05em; margin-bottom: clamp(16px, 3vh, 36px); }
.intro__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.intro__text { grid-column: 1 / span 4; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; align-self: stretch; }
.intro__text [data-intro-lines] { display: flex; flex-direction: column; gap: 1em; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.35; letter-spacing: -.01em; }
.intro__text [data-intro-lines] p { max-width: 28ch; }
.intro__text [data-intro-lines] p + p { color: var(--muted); }
.rw { transition: opacity .25s linear; }
.intro__hint { color: var(--muted); }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-fine { display: none; } .hint-touch { display: inline; } }

.field { grid-column: 5 / -1; position: relative; height: clamp(280px, calc(100svh - 340px), 560px); touch-action: pan-y; cursor: crosshair; }
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5;
  /* no hard edges: the field dissolves into the page */
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 55% 50%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 58% at 55% 50%, #000 35%, transparent 100%); }
.field__labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.field__labels li {
  position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 8px;
  padding: 4px 7px 3px; background: var(--paper); white-space: nowrap; pointer-events: auto; cursor: text;
  font: 400 12px/1.2 var(--mono); letter-spacing: .03em; text-transform: uppercase;
  /* hidden until the cursor passes: rises out of the letters to the front */
  opacity: 0; transform: scale(.7); filter: blur(6px);
  transition: opacity 1.2s var(--ease) .4s, transform 1.2s var(--ease) .4s, filter 1.2s var(--ease) .4s, background-color .3s var(--ease); /* lingers before fading */
}
.field__labels li::before { content: ""; width: 8px; height: 8px; background: var(--ink); flex: none; }
.field__labels li.on { background: var(--c); opacity: 1; transform: none; filter: none; transition-duration: .35s; transition-delay: 0s; box-shadow: 0 0 0 6px var(--paper); }
@media (pointer: coarse) { .field__labels li { opacity: 1; transform: none; filter: none; } }

/* ---------- Section heads ---------- */
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end;
  padding: clamp(64px, 10vh, 112px) 0 clamp(28px, 4vh, 48px); border-top: 1px solid var(--line);
}
.section-head h2 { grid-column: 1 / span 9; font-size: clamp(40px, 5.6vw, 92px); font-weight: 500; letter-spacing: -.052em; line-height: .9; }
.section-head p { grid-column: 10 / -1; color: var(--muted); line-height: 1.6; }

/* ---------- Selected work ----------
   An editorial rhythm that repeats every five projects: landscape + tall portrait,
   then a side-captioned square interlocking with a portrait, then a wide banner with
   its caption alongside. Every image height is tied to the screen height, so a
   thumbnail and its caption are always visible together. */
.work__list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(40px, 7vh, 80px); padding-bottom: clamp(80px, 12vh, 140px); align-items: start; }
.proj { grid-column: span 6; --h: 46vh; --c: var(--lavender); }
.proj:nth-child(5n+1) { grid-column: 1 / span 7; --h: 50vh; }
.proj:nth-child(5n+2) { grid-column: 9 / -1; --h: 56vh; margin-top: 12vh; --c: var(--orange); }
.proj:nth-child(5n+3) { grid-column: 2 / span 6; --h: 40vh; --c: var(--yellow); }
.proj:nth-child(5n+4) { grid-column: 9 / -1; --h: 44vh; margin-top: 10vh; --c: var(--green); }
.proj:nth-child(5n+5) { grid-column: 1 / -1; --h: 46vh; }
.proj__link { display: block; text-decoration: none; }
/* side-captioned variants */
.proj:nth-child(5n+3) .proj__link { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: var(--gap); align-items: end; }
.proj:nth-child(5n+5) .proj__link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.proj:nth-child(5n+5) .proj__media { grid-column: 1 / span 8; }
.proj:nth-child(5n+5) .proj__info { grid-column: 9 / -1; }
.proj:nth-child(5n+3) .proj__info, .proj:nth-child(5n+5) .proj__info { padding-top: 0; }
.proj__media { position: relative; height: clamp(200px, var(--h), 540px); overflow: hidden; background: var(--paper-2); }
.proj__media img { width: 100%; height: 112%; margin-top: -6%; object-fit: cover; --py: 0%; --s: 1;
  transform: translateY(var(--py)) scale(var(--s)); transition: transform 1.1s var(--ease), clip-path 1.2s var(--ease); will-change: transform; }
/* image unmasks upward as its card enters */
.js .proj.reveal .proj__media img { clip-path: inset(100% 0 0 0); --s: 1.12; }
.js .proj.reveal.in .proj__media img { clip-path: inset(0); --s: 1; }
/* a Tetris block slides in at the corner on hover */
.proj__media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 28px; background: var(--c); transform: translate(-100%, 100%); transition: transform .5s var(--ease); }
.js .proj.reveal.in .proj__link:hover .proj__media img, .proj__link:focus-visible .proj__media img { --s: 1.04; }
.proj__link:hover .proj__media::after, .proj__link:focus-visible .proj__media::after { transform: none; }
/* Card text — three clear levels:
   1. a quiet mono line (number · type · org)   2. the outcome, bold, in the display grotesk
   3. what I did, then the kinds of work as plain text. Colour only on the small type marker. */
.proj__info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 16px; }
.proj__top { margin-bottom: 6px; }
.proj__tags { margin-top: 6px; }
.proj__top { display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; color: var(--muted); }
.proj__num { color: var(--muted); }
.proj__type { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 500; }
.proj__type::before { content: ""; width: 8px; height: 8px; background: var(--c); }
.proj__type--internship::before { background: var(--orange); }
.proj__type--academic::before { background: var(--lavender); }
.proj__type--personal::before { background: var(--green); }
.proj__org::before { content: "·"; margin-right: 14px; }
.proj__title { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -.03em; line-height: 1.1; text-wrap: balance;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.proj__link:hover .proj__title, .proj__link:focus-visible .proj__title { background-size: 100% 1px; }
.proj:nth-child(5n+5) .proj__title { font-size: clamp(24px, 2.1vw, 34px); }
.proj__desc { color: var(--muted); font-size: 16px; line-height: 1.4; }
.proj__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; } /* same chip style as the Play section status tags */
.proj__tags li { padding: 3px 6px 2px; font-size: 10px; color: var(--ink); background: var(--lavender); }
.proj__tags li:nth-child(3n+2) { background: var(--yellow); }
.proj__tags li:nth-child(3n) { background: var(--green); }
.proj__cta { color: var(--ink); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); }
.proj__link:hover .proj__cta, .proj__link:focus-visible .proj__cta { opacity: 1; transform: none; }

/* ---------- Experiments ---------- */
.play { padding-bottom: clamp(100px, 14vw, 200px); }
.section-head--play h2 { grid-column: 1 / span 8; }
.section-head--play p { grid-column: 9 / -1; color: var(--ink); font-size: 18px; line-height: 1.45; max-width: 34ch; }
.play-word { display: inline-flex; gap: .03em; vertical-align: baseline; }
.play-word b { font-weight: 500; display: inline-block; padding: 0 .05em; transition: transform .45s var(--ease); }
.play-word b:nth-child(1) { background: var(--lavender); }
.play-word b:nth-child(2) { background: var(--orange); color: var(--paper); }
.play-word b:nth-child(3) { background: var(--yellow); transform: translateY(.06em); }
.play-word b:nth-child(4) { background: var(--green); }
.play-word b:nth-child(5) { background: var(--maroon); color: var(--orange); transform: translateY(-.05em); }
.play-word:hover b:nth-child(odd) { transform: translateY(-.08em) rotate(-4deg); }
.play-word:hover b:nth-child(even) { transform: translateY(.06em) rotate(3deg); }

.exp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); }
.exp { grid-column: span 2; display: block; text-decoration: none; outline-offset: 6px; }
.exp--wide { grid-column: span 4; }
.exp__media { height: clamp(220px, 24vw, 400px); background: var(--dark); overflow: hidden; position: relative; }
.exp__media canvas, .exp__media img { width: 100%; height: 100%; object-fit: cover; }
.exp__media::after { content: "▶ hover"; position: absolute; right: 10px; bottom: 8px; font: 400 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .6); mix-blend-mode: difference; transition: opacity .3s; }
.exp:hover .exp__media::after, .exp:focus-visible .exp__media::after { opacity: 0; }
@media (pointer: coarse) { .exp__media::after { content: "▶ tap"; } }
.exp__info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding-top: 14px; }
.exp__title { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.exp__desc { flex-basis: 100%; color: var(--muted); font-size: 15px; max-width: 46ch; }
.status { width: max-content; padding: 3px 6px 2px; font-size: 10px; background: var(--paper-2); }
.status--experiment { background: var(--green); }
.status--in-progress { background: var(--yellow); }
.status--concept { background: #c4b8ff; }
.status--live { background: var(--orange); color: var(--paper); }

/* Playground collage (desktop): one screen, small tiles scattered across a board with
   loose accent squares, like pieces mid-game. Captions sit beside each tile. */
@media (min-width: 961px) {
  .play { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-bottom: 32px; }
  .play > .wrap { flex: 1; display: flex; flex-direction: column; width: 100%; }
  .section-head--play { padding-bottom: 8px; }
  .section-head--play h2 { font-size: clamp(36px, 4.4vw, 72px); }
  .section-head--play p { font-size: 16px; }
  .exp-grid { display: block; position: relative; flex: 1; min-height: 420px; max-height: 640px; --mx: 0; --my: 0; }
  .exp { position: absolute; left: var(--l); top: var(--t); display: flex; align-items: center; gap: 14px; width: max-content;
    translate: calc(var(--mx) * var(--d, 10) * 1px) calc(var(--my) * var(--d, 10) * 1px); transition: translate .8s var(--ease), opacity 1.1s var(--ease), transform 1.1s var(--ease); }
  .exp:nth-child(1) { --l: 2%;  --t: 4%;  --d: 14; }
  .exp:nth-child(2) { --d: 6; }                                   /* the centre piece, see .exp--feature */
  .exp:nth-child(3) { --l: 70%; --t: 2%;  --d: 8;  flex-direction: row-reverse; }
  .exp:nth-child(4) { --l: 3%;  --t: 62%; --d: -14; }
  .exp:nth-child(5) { --l: 70%; --t: 38%; --d: 12; flex-direction: row-reverse; }
  .exp:nth-child(6) { --l: 66%; --t: 76%; --d: -10; flex-direction: row-reverse; }
  .exp:nth-child(7) { --l: 30%; --t: 80%; --d: -8; }
  /* Feature tile: bigger, centred, caption underneath */
  .exp.exp--feature { --fw: clamp(260px, 22vw, 360px); --l: calc(50% - var(--fw) / 2); --t: 10%;
    flex-direction: column; align-items: center; gap: 12px; width: var(--fw); z-index: 1; }
  .exp--feature .exp__media { width: var(--fw); aspect-ratio: 3 / 2; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45); }
  .exp--feature .exp__media::after { display: none; }
  .exp--feature .exp__info { width: 100%; justify-items: center; text-align: center; }
  .exp--feature .exp__title { font-size: 20px; }
  .exp--feature .exp__desc { opacity: 1; transform: none; max-width: 40ch; }
  .exp__media { width: clamp(150px, 13vw, 220px); height: auto; aspect-ratio: 3 / 2; flex: none; transition: transform .5s var(--ease); }
  .exp--wide .exp__media { width: clamp(200px, 19vw, 320px); aspect-ratio: 2 / 1; }
  .exp:hover .exp__media, .exp:focus-visible .exp__media { transform: scale(1.06) rotate(-1deg); }
  .exp__media::after { content: "▶"; right: 6px; bottom: 4px; }
  .exp__info { display: grid; gap: 6px; padding: 0; width: 170px; }
  .exp:nth-child(3) .exp__info, .exp:nth-child(5) .exp__info, .exp:nth-child(6) .exp__info { justify-items: end; text-align: right; }
  .exp__title { font-size: 17px; }
  .exp__desc { font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(-4px); transition: opacity .35s, transform .45s var(--ease); }
  .exp:hover .exp__desc, .exp:focus-visible .exp__desc { opacity: 1; transform: none; }
  .bit { position: absolute; width: 18px; height: 18px; background: var(--c); pointer-events: none;
    translate: calc(var(--mx) * var(--d) * 1px) calc(var(--my) * var(--d) * 1px); transition: translate 1s var(--ease);
    animation: bob var(--dur) ease-in-out infinite alternate; }
  @keyframes bob { to { transform: translateY(-8px) rotate(8deg); } }
}
.bit { display: none; }
@media (min-width: 961px) { .bit { display: block; } }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--line); padding: clamp(72px, 12vh, 140px) 0 clamp(100px, 14vw, 200px); }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.about__label { grid-column: 1 / span 2; padding-top: .6em; }
.about__text { grid-column: 3 / span 6; display: flex; flex-direction: column; gap: .8em; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.18; letter-spacing: -.028em; }
.about__text p + p { color: var(--muted); }
.about__side { grid-column: 10 / -1; display: flex; flex-direction: column; gap: 10px; padding-top: .7em; }
.about__side h3 { color: var(--muted); margin-top: 18px; }
.about__side h3:first-child { margin-top: 0; }
.about__side li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact { background: var(--dark); color: var(--paper); padding-top: clamp(100px, 16vh, 180px); }
.contact__kicker { color: rgba(255, 255, 255, .5); margin-bottom: 24px; }
.contact__title { font-size: clamp(48px, 9vw, 150px); font-weight: 500; letter-spacing: -.055em; line-height: .9; }
.contact__row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 32px; margin-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(60px, 8vw, 120px); }
.contact__email { font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -.02em; user-select: text; }
.contact__email a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color .3s; }
.contact__email a:hover { color: var(--green); }
.contact .muted { color: rgba(255, 255, 255, .45); }
.contact__links { display: flex; gap: 24px; }
.contact__links a { text-decoration: none; }
.contact__links a:hover { color: var(--green); }
.contact__blocks { width: 100%; height: clamp(90px, 11vw, 160px); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px 26px; color: rgba(255, 255, 255, .55); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer--light { color: var(--muted); border-top: 1px solid var(--line); }
.footer--light a:hover { color: var(--ink); }

/* ---------- Case study ---------- */
.case { padding-top: 110px; }
.case-hero { display: grid; gap: 22px; padding-bottom: clamp(40px, 6vw, 80px); }
.back { text-decoration: none; justify-self: start; }
.back:hover { color: var(--blue); }
.notice { justify-self: start; background: var(--yellow); padding: 5px 8px 4px; }
.case-hero__meta { color: var(--muted); margin-top: clamp(20px, 5vw, 60px); }
.case-hero__title { font-size: clamp(44px, 7vw, 112px); font-weight: 500; letter-spacing: -.055em; line-height: .88; margin-left: -.04em; }
.case-hero__intro { max-width: 32ch; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.1vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
.case-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 28px 0 0; }
.case-meta dt { color: var(--muted); margin-bottom: 6px; }
.case-meta dd { margin: 0; }
.case-sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-top: clamp(64px, 10vw, 140px); }
.case-sec__label { grid-column: 1 / span 3; display: flex; gap: 14px; align-self: start; position: sticky; top: 90px; }
.case-sec__label span { color: var(--muted); }
.case-sec__body { grid-column: 5 / span 7; }
.case-lead { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.32; letter-spacing: -.015em; max-width: 34ch; }
.insights { list-style: none; counter-reset: i; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.insights li { counter-increment: i; border-top: 2px solid var(--ink); padding-top: 12px; }
.insights li::before { content: "0" counter(i); display: block; font: 400 12px var(--mono); color: var(--muted); margin-bottom: 8px; }
.spread { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); padding-top: clamp(40px, 6vw, 80px); align-items: end; }
.spread .fig:nth-child(2) img { aspect-ratio: 4 / 5; }
.full { padding-top: clamp(40px, 6vw, 80px); }
.fig { margin: 0; }
.fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.full .fig img { aspect-ratio: 16 / 9; }
.fig figcaption { display: flex; gap: 12px; padding-top: 10px; color: var(--muted); text-transform: none; }
.fig figcaption span { color: var(--ink); }
.case-next { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-block: clamp(100px, 14vw, 180px) 40px; }
.case-next a { display: grid; gap: 10px; text-decoration: none; padding-top: 18px; border-top: 1px solid var(--ink); }
.case-next a:last-child { text-align: right; }
.case-next strong { font-size: clamp(28px, 4vw, 64px); font-weight: 500; letter-spacing: -.045em; line-height: 1; transition: color .3s; }
.case-next a:hover strong { color: var(--blue); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .proj.reveal:nth-child(even), .js .about__grid > .reveal:nth-child(2) { transition-delay: .12s; }
.js .about__grid > .reveal:nth-child(3) { transition-delay: .24s; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro__text { grid-column: 1 / -1; }
  .field { grid-column: 1 / -1; height: auto; display: flex; flex-direction: column; gap: 18px; }
  .field canvas { position: relative; height: min(100vw, 520px); }
  .field__labels { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .field__labels li { position: static; }
  .section-head h2, .section-head--play h2 { grid-column: 1 / -1; }
  .section-head p, .section-head--play p { grid-column: 1 / -1; }
  .proj, .proj:nth-child(n) { grid-column: 1 / -1; margin-top: 0; --h: 44vh; }
  .proj:nth-child(n) .proj__link { display: block; }
  .proj:nth-child(n) .proj__info { padding-top: 14px; }
  .exp, .exp--wide { grid-column: span 3; }
  .about__label, .about__text, .about__side { grid-column: 1 / -1; }
  .case-sec__label { grid-column: 1 / -1; position: static; }
  .case-sec__body { grid-column: 1 / -1; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__links { gap: 18px; }
  .greet { flex-direction: column; gap: .12em; }
  .proj__cta { display: none; }
  .exp, .exp--wide { grid-column: 1 / -1; }
  .insights { grid-template-columns: 1fr; }
  .spread { grid-template-columns: 1fr; }
  .case-cover img { aspect-ratio: 4 / 3; }
  .case-next { grid-template-columns: 1fr; }
  .case-next a:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .proj.reveal .proj__media img { clip-path: none; --s: 1; }
}

/* "Pieces that fit." — the letters are Tetris blocks that drop and lock into place */
.fit-word { display: inline-flex; gap: .03em; vertical-align: baseline; }
.fit-word b { font-weight: 500; display: inline-block; padding: 0 .07em; transition: transform .45s var(--ease); }
.fit-word b:nth-child(1) { background: var(--yellow); }
.fit-word b:nth-child(2) { background: var(--lavender); }
.fit-word b:nth-child(3) { background: var(--orange); color: var(--paper); }
.js .fit-word b { transform: translateY(-120%); opacity: 0; }
.fit-word.in b { transform: none; opacity: 1; animation: lock .7s cubic-bezier(.34, 1.3, .64, 1) backwards; }
.fit-word.in b:nth-child(2) { animation-delay: .14s; }
.fit-word.in b:nth-child(3) { animation-delay: .28s; }
@keyframes lock { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }
.section-head h2:hover .fit-word b:nth-child(odd) { transform: translateY(-.08em) rotate(-4deg); }
.section-head h2:hover .fit-word b:nth-child(even) { transform: translateY(.06em) rotate(3deg); }
@media (prefers-reduced-motion: reduce) { .js .fit-word b { transform: none; opacity: 1; animation: none; } }

/* Behance project embedded in a case page (temporary until written case studies exist) */
.behance { display: grid; gap: 12px; }
.behance iframe { width: 100%; height: calc(100vh - 120px); height: calc(100svh - 120px); border: 0; background: var(--paper-2); }
.behance__link { justify-self: end; color: var(--muted); text-decoration: none; }
.behance__link:hover { color: var(--ink); }

/* ---------- Scroll polish ---------- */
/* thin reading-progress bar in the theme accents */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--lavender), var(--orange), var(--yellow), var(--green));
  transform-origin: 0 50%; transform: scaleX(0); }
/* nav colour and background fade as sections change */
.nav { transition: color .4s var(--ease), background-color .4s var(--ease), transform .6s var(--ease); }
/* section headings wipe up out of a mask instead of just fading */
.js .section-head.reveal h2, .js .contact__title.reveal { clip-path: inset(0 0 100% 0); transform: translateY(30%); transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease); }
.js .section-head.reveal.in h2, .js .contact__title.reveal.in { clip-path: inset(0 0 -20% 0); transform: none; }
.js .section-head.reveal p { opacity: 0; transition: opacity 1s var(--ease) .35s; }
.js .section-head.reveal.in p { opacity: 1; }
/* the dark contact block widens to full bleed as it arrives */
.contact { clip-path: inset(0 var(--inset, 0%)); }
@media (prefers-reduced-motion: reduce) {
  .js .section-head.reveal h2, .js .contact__title.reveal, .js .section-head.reveal p { clip-path: none; transform: none; opacity: 1; }
}
.case-hero__desc { max-width: 56ch; color: var(--muted); }

/* Type pairing: Schibsted Grotesk for headings (bold, a little character), Geist for reading, Geist Mono for labels */
.intro__title, .section-head h2, .contact__title, .case-hero__title, .case-next strong { font-family: var(--display); font-weight: 600; letter-spacing: -.045em; }
.play-word b, .fit-word b { font-weight: 600; }


/* Logo: name + programme */
.nav__name { display: grid; line-height: 1.15; }
.nav__name strong { font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.nav__name small { font-size: 13px; font-weight: 400; opacity: .6; }
/* Hero status line, bottom-left */
.hero__status { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.hero__dot { width: 8px; height: 8px; flex: none; background: var(--green); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero__id { display: grid; gap: 2px; }
.hero__id strong { font-weight: 600; color: var(--paper); }
.hero__id span { font-weight: 400; }

/* Nav links: vertical roll text on hover/focus (letters roll up in a quick stagger) */
.roll { display: block; height: 1.15em; overflow: hidden; }
.roll__row { display: block; white-space: nowrap; }
.roll__row span { display: inline-block; transition: transform .38s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--i) * 60ms); } /* clearly one letter at a time */
.nav__links a:hover .roll__row span, .nav__links a:focus-visible .roll__row span { transform: translateY(-100%); }
.nav__links a::after { display: none; } /* the roll replaces the underline */
@media (prefers-reduced-motion: reduce) { .roll__row span { transition: none; } }

/* Field reaches up to the top of "I'm Ankita." (desktop): it extends behind the title's right side */
@media (min-width: 961px) {
  .intro { --title: clamp(42px, 7.2vw, 120px); --title-gap: clamp(16px, 3vh, 36px); }
  .intro__title { position: relative; z-index: 2; pointer-events: none; }
  .field { --lift: calc(var(--title) * .86 + var(--title-gap));
    margin-top: calc(-1 * var(--lift));
    height: calc(clamp(280px, calc(100svh - 340px), 560px) + var(--lift)); }
}

/* "I'm Ankita." — tile mosaic reveal + full stop as a block */
.intro__title { position: relative; }
.intro__title .tiles { position: absolute; inset: 0 auto auto 0; pointer-events: none; }
.intro__title .tiles b { position: absolute; width: var(--s); height: var(--s); background: var(--paper); }
.title-block { display: inline-block; width: .15em; height: .15em; margin-left: .05em; background: var(--orange); vertical-align: baseline; }

/* "Drag a block" hint: appears 3s after the greeting settles, leaves once someone grabs a piece */
.hero__hint { display: flex; align-items: center; gap: 3px; opacity: 0; transform: translateY(6px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__hint i { width: 7px; height: 7px; background: var(--yellow); }
.hero__hint i:nth-child(2) { background: var(--lavender); animation: hint-hop 1.6s var(--ease) infinite; }
.hero__hint i:nth-child(3) { background: var(--green); margin-right: 8px; }
.hero__hint .hint-touch { display: none; }
@media (pointer: coarse) { .hero__hint .hint-fine { display: none; } .hero__hint .hint-touch { display: inline; } }
@keyframes hint-hop { 0% { transform: translateY(-9px); opacity: 0; } 20% { opacity: 1; } 60%, 100% { transform: none; opacity: 1; } } /* the middle block falls into place */
.hero.hint-on .hero__hint { opacity: 1; transform: none; }
.hero.hint-done .hero__hint { opacity: 0; transform: translateY(6px); }
.footer__made { display: inline-flex; align-items: center; gap: 6px; min-height: 1.4em; } /* lines rotate here */ .footer__made .heart { width: 13px; height: 13px; color: var(--orange); }

/* ---------- About page: The Shape of Ankita ---------- */
.about-page { background: var(--paper); }
.scene { position: relative; height: 76vh; height: 76svh; min-height: 520px; overflow: hidden; background: var(--paper); }
.scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.scene__intro { position: absolute; left: var(--pad); top: 96px; display: grid; gap: 8px; pointer-events: none; max-width: min(520px, 80vw); }
.scene__label { color: var(--muted); }
.scene__title { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 54px); line-height: .95; letter-spacing: -.045em; }
.scene__prompt { color: var(--muted); font-size: 15px; }
.scene__prompt .hint-touch { display: none; }
@media (pointer: coarse) { .scene__prompt .hint-fine { display: none; } .scene__prompt .hint-touch { display: inline; } }
/* the phrase the character pauses beside */
.scene__phrase { position: absolute; margin: 0; padding: 8px 10px 7px; background: var(--paper); border: 1px solid var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; line-height: 1.25; width: max-content; max-width: 280px;
  opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.scene__phrase.is-on { opacity: 1; transform: none; }
/* hidden details: an outlined square on a block; label on hover, focus or tap */
.scene__details { position: absolute; inset: 0; pointer-events: none; }
.scene__detail { position: absolute; padding: 0; border: 0; background: transparent; cursor: help; pointer-events: auto; }
.scene__detail::before { content: ""; position: absolute; inset: 28%; border: 2px solid var(--c); transition: inset .3s var(--ease), background-color .3s; }
.scene__detail:hover::before, .scene__detail:focus-visible::before, .scene__detail.is-open::before { inset: 18%; background: var(--c); }
.scene__detail:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.scene__tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); width: max-content; max-width: 220px; display: grid; gap: 2px;
  padding: 7px 9px 6px; background: var(--paper); border: 1px solid var(--ink); color: var(--ink); text-align: left; font: 400 12px/1.35 var(--sans);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); z-index: 2; }
.scene__tip b { font: 500 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.scene__detail:hover .scene__tip, .scene__detail:focus-visible .scene__tip, .scene__detail.is-open .scene__tip { opacity: 1; transform: translate(-50%, 0); }
.scene__keys { position: absolute; right: var(--pad); top: 100px; color: var(--muted); pointer-events: none; }
@media (pointer: coarse) { .scene__keys { display: none; } }

/* the blocks settle into a line */
.settle { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 0; height: 14px; margin: 0; overflow: hidden; }
.settle i { background: var(--c); transform: translateY(-140%); opacity: 0; }
.settle.in i { animation: settle-in .55s cubic-bezier(.34, 1.3, .64, 1) var(--d) both; }
@keyframes settle-in { to { transform: none; opacity: 1; } }

/* written section */
.more { padding: clamp(72px, 12vh, 140px) 0 clamp(60px, 10vh, 110px); background: var(--paper); }
.more__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.more__title { grid-column: 1 / span 4; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3vw, 48px); line-height: 1; letter-spacing: -.04em; }
.more__body { grid-column: 6 / span 7; display: grid; gap: 1em; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; letter-spacing: -.01em; }
.more__body p + p { color: var(--muted); }
.more__notes { margin-top: clamp(56px, 9vh, 104px); padding-top: 28px; border-top: 1px solid var(--line); }
.more__notes > div { grid-column: span 4; }
.more__label { color: var(--muted); margin-bottom: 14px; font-weight: 400; }
.more__list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.more__chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.more__chips li { padding: 3px 6px 2px; font-size: 10px; background: var(--lavender); }
.more__chips li:nth-child(3n+2) { background: var(--yellow); }
.more__chips li:nth-child(3n) { background: var(--green); }
.more__next { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(64px, 10vh, 120px); }
.more__next a { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ink); text-decoration: none; }
.more__next a:last-child { text-align: right; }
.more__next span { color: var(--muted); }
.more__next strong { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -.035em; transition: color .3s; }
.more__next a:hover strong { color: var(--orange); }
@media (max-width: 960px) {
  .more__title, .more__body, .more__notes > div { grid-column: 1 / -1; }
  .more__notes > div + div { margin-top: 28px; }
}
@media (max-width: 640px) {
  .scene { height: 72svh; }
  .more__next { grid-template-columns: 1fr; }
  .more__next a:last-child { text-align: left; }
}

/* New palette: purple is darker than the old lavender, so text on it turns white */
.proj__tags li:nth-child(3n+1), .more__chips li:nth-child(3n+1), .about-chips li:nth-child(1),
.play-word b:nth-child(1), .fit-word b:nth-child(2) { color: var(--paper); }
.field__labels li.on { color: var(--ink); }

/* ---------- Page transition: Drop & lock (quiet) ---------- */
.dl { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; }
.dl__piece { position: absolute; inset: 0; opacity: 0; transform: translateY(-28px); }
.dl__piece b { position: absolute; background: var(--c); }
.dl__label { position: absolute; display: inline-flex; align-items: center; gap: 10px; color: var(--paper); opacity: 0; font-size: 12px; letter-spacing: .06em; }
.dl__label i { width: 9px; height: 9px; background: var(--orange); }
/* leaving: each piece eases down a short way and locks */
.dl--in { pointer-events: auto; }
.dl--in .dl__piece { animation: dl-in .38s cubic-bezier(.22, .8, .25, 1) calc(var(--i) * 60ms) both; }
.dl--in .dl__label { transition: opacity .35s .42s; opacity: .85; }
@keyframes dl-in { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
/* arriving: covered, then the pieces snap away down off the screen, top piece first */
.dl--full .dl__piece { opacity: 1; transform: none; }
.dl--full.dl--out .dl__piece { animation: dl-out .34s cubic-bezier(.7, 0, .84, 0) calc(var(--r) * 35ms) both; }
@keyframes dl-out { from { transform: none; } to { transform: translateY(105vh); } } /* crisp: no fade, just gone */





/* ---------- About opening: point grid / research map ---------- */
.pg { position: relative; height: 82vh; height: 82svh; min-height: 560px; overflow: hidden; background: var(--paper); }
.pg__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.pg__intro { position: absolute; left: 50%; top: 53%; transform: translate(-50%, -50%); width: min(380px, 70vw); display: grid; justify-items: center; gap: 12px; text-align: center; pointer-events: none; }
.pg__kicker { color: var(--muted); }
.pg__role { color: var(--muted); font-size: 16px; line-height: 1.4; max-width: 30ch; background: var(--paper); }
.pg__title { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4vw, 64px); line-height: 1; letter-spacing: -.045em; background: var(--paper); box-shadow: 0 0 0 10px var(--paper); }
.pg__labels { position: absolute; inset: 0; pointer-events: none; }
.pg__label { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 4px 7px 3px; border: 0; background: var(--paper); color: var(--ink);
  font-size: 11px; letter-spacing: .05em; cursor: pointer; pointer-events: auto; white-space: nowrap; transition: background-color .3s, color .3s; }
.pg__label i { width: 7px; height: 7px; background: var(--c); }
.pg__label.is-on, .pg__label:hover, .pg__label:focus-visible { background: var(--dark); color: var(--paper); }
.pg__label:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pg__note { position: absolute; left: 0; top: calc(100% + 6px); padding: 6px 8px 5px; background: var(--paper); border: 1px solid var(--ink); color: var(--ink);
  font: 400 12px/1.35 var(--sans); letter-spacing: 0; text-transform: none; white-space: normal; width: max-content; max-width: 220px;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
.pg__label:hover .pg__note, .pg__label:focus-visible .pg__note { opacity: 1; transform: none; }
.pg__phrase { position: absolute; margin: 0; padding: 8px 11px 7px; background: var(--paper); border: 1px solid var(--ink); width: max-content;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; line-height: 1.25;
  opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.pg__phrase.is-on { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .pg { height: auto; min-height: 100svh; }
  .pg__intro { width: 64vw; }
  .pg__role { font-size: 14px; }
}

/* ---------- About page, dark: the point-grid opening + written section on black ---------- */
.about-page { background: var(--dark); color: var(--paper); }
.about-page .nav[data-mode="dark"].is-scrolled { background: var(--dark); }
.pg { height: 100vh; height: 100svh; min-height: 620px; background: var(--dark); color: var(--paper); }
.pg__intro { width: min(420px, 70vw); gap: 14px; }
.pg__kicker { color: rgba(255, 255, 255, .5); }
.pg__title { color: var(--paper); background: var(--dark); box-shadow: 0 0 0 14px var(--dark); font-size: clamp(40px, 4.6vw, 76px); }
.pg__role { color: rgba(255, 255, 255, .62); background: var(--dark); font-size: 16px; }
.pg__label { background: transparent; color: rgba(255, 255, 255, .62); font-size: 11px; letter-spacing: .08em; padding: 4px 0; gap: 10px; }
.pg__label i { display: none; }
.pg__num { color: var(--c); }
.pg__label::after { content: ""; height: 1px; width: 0; background: var(--c); transition: width .4s var(--ease); }
.pg__label.is-on, .pg__label:hover, .pg__label:focus-visible { background: transparent; color: var(--paper); }
.pg__label.is-on::after, .pg__label:hover::after { width: 24px; }
.pg__label:focus-visible { outline: 1px solid var(--paper); outline-offset: 4px; }
.pg__note { background: var(--dark); border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85); }
.pg__phrase { background: var(--dark); border: 1px solid rgba(255, 255, 255, .28); color: var(--paper); font-size: 15px; padding: 9px 12px 8px; }
@media (pointer: coarse) { .pg__corner .hint-fine { display: none; } .pg__corner .hint-touch { display: inline; } }

.about-page .more { background: var(--dark); color: var(--paper); border-top: 1px solid rgba(255, 255, 255, .1); }
.about-page .more__body p + p, .about-page .more__label, .about-page .more__next span { color: rgba(255, 255, 255, .55); }
.about-page .more__notes { border-top-color: rgba(255, 255, 255, .14); }
.about-page .more__list li { border-bottom-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.about-page .more__next a { border-top-color: rgba(255, 255, 255, .5); }
.about-page .more__chips li { color: var(--ink); }
.about-page .more__chips li:nth-child(3n+1) { color: var(--paper); }
@media (max-width: 760px) {
  .pg { height: 100svh; }
}

/* About point grid: text stays hidden until the pointer reaches a cluster; entrance is staggered */
.pg__label { opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--ease), color .3s; }
.pg__label.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pg__label:focus-visible { opacity: 1; transform: none; }
.pg__label::after { display: none; }
.pg__name { min-width: 1ch; }
.pg__phrase { font-size: 15px; }
/* centre lines rise one after another, after the clusters start arriving; corners last */
.js .pg__intro > *, .js .pg__corner { opacity: 0; transform: translateY(14px); }
.pg.is-in .pg__intro > * { animation: pg-rise .9s var(--ease) both; }
.pg.is-in .pg__kicker { animation-delay: 1.1s; }
.pg.is-in .pg__title { animation-delay: 1.35s; }
.pg.is-in .pg__role { animation-delay: 1.65s; }
.pg.is-in .pg__corner { animation: pg-rise .8s var(--ease) 3.6s both; }
@keyframes pg-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .pg__intro > *, .js .pg__corner { opacity: 1; transform: none; animation: none; } }

/* About centre + labels: decoding name, pink block full stop, word-by-word sentence; labels visible */
.pg__label { opacity: 0; transform: translateY(6px); pointer-events: none; }
.pg__label.is-shown { opacity: 1; transform: none; pointer-events: auto; color: rgba(255, 255, 255, .55); }
.pg__label.is-shown.is-on, .pg__label.is-shown:hover, .pg__label.is-shown:focus-visible { color: var(--paper); }
.pg__title { display: inline-flex; align-items: baseline; gap: .02em; white-space: nowrap; font-size: clamp(40px, 5vw, 84px); }
.pg__name-text { min-height: 1em; }
.pg__stop { width: .17em; height: .17em; background: var(--pink); transform: translateY(-140%) scale(.4); opacity: 0; }
.pg.is-in .pg__stop { animation: pg-stop .55s cubic-bezier(.34, 1.4, .64, 1) 2.15s both; }
@keyframes pg-stop { to { transform: none; opacity: 1; } }
.js .pg__intro > .pg__title { opacity: 1; transform: none; animation: none; }
.js .pg__intro > .pg__role { opacity: 1; transform: none; animation: none; }
.pg__role span { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(8px); }
.pg.is-in .pg__role span { animation: pg-word .7s var(--ease) calc(2.3s + var(--i) * 70ms) both; }
@keyframes pg-word { to { opacity: 1; filter: none; transform: none; } }
@media (max-width: 760px) { .pg__title { white-space: normal; flex-wrap: wrap; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .pg__stop, .pg__role span { opacity: 1; filter: none; transform: none; animation: none; } }

/* the full stop leaves the name: the canvas square takes over from here */
.pg__stop.is-gone { animation: none; opacity: 0; transition: opacity .2s; }

/* highlighted phrases in the role line (after GSAP's homepage): a colour block wipes in from the
   left, then the words appear on it in black */
.pg__role .pg__mark { position: relative; display: inline-block; padding: 0 .3em; margin: .1em 0; color: var(--dark); background: none; opacity: 1; filter: none; transform: none; animation: none; }
.pg__mark::before { content: ''; position: absolute; inset: 0; background: var(--c); transform: scaleX(0); transform-origin: left; }
.pg__mark b { position: relative; font-weight: 500; opacity: 0; }
.pg.is-in .pg__mark::before { animation: pg-wipe .55s cubic-bezier(.7, 0, .2, 1) calc(2.3s + var(--i) * 70ms) both; }
.pg.is-in .pg__mark b { animation: pg-word .35s var(--ease) calc(2.65s + var(--i) * 70ms) both; }
@keyframes pg-wipe { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .pg__mark::before { transform: none; animation: none; } .pg__mark b { opacity: 1; animation: none; } }

/* playful shapes around the name: they spring in after the highlights, then drift and turn slowly */
.js .pg__intro > .pg__shapes { opacity: 1; transform: none; animation: none; }
.pg__shapes { position: absolute; inset: 0; pointer-events: none; }
.pg__shape { position: absolute; width: var(--s); height: var(--s); fill: var(--c); opacity: 0; transform: scale(0) rotate(-90deg); }
.pg__shape--star   { --c: var(--orange); --s: 26px; left: -14%; top: -22%; --d: 3.0s; }
.pg__shape--flower { --c: var(--pink);   --s: 30px; right: -10%; top: -48%; --d: 3.15s; }
.pg__shape--hour   { --c: var(--purple); --s: 18px; left: -6%;  bottom: -18%; --d: 3.3s; }
.pg__shape--pill   { --c: var(--green);  --s: 22px; right: -4%; bottom: -26%; --d: 3.45s; }
.pg.is-in .pg__shape { animation: pg-pop .7s cubic-bezier(.34, 1.56, .64, 1) var(--d) both, pg-drift 7s ease-in-out calc(var(--d) + .7s) infinite; }
@keyframes pg-pop { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes pg-drift { 0%, 100% { opacity: 1; transform: translate(0, 0) rotate(0); } 50% { opacity: 1; transform: translate(4px, -8px) rotate(25deg); } }
@media (max-width: 760px) { .pg__shape--star { left: -2%; } .pg__shape--flower { right: -2%; top: -14%; } }
@media (prefers-reduced-motion: reduce) { .pg__shape { opacity: 1; transform: none; animation: none; } }

/* headline roll-in (after GSAP's homepage): letters spring up from below, each a beat apart */
.pg__title { display: block; white-space: normal; }
.pg__line { display: block; white-space: nowrap; }
.pg__ch { display: inline-block; opacity: 0; transform: translateY(.75em) rotate(8deg); }
.pg.is-in .pg__ch { animation: pg-roll .9s cubic-bezier(.34, 1.45, .5, 1) var(--d) both; }
@keyframes pg-roll { 0% { opacity: 0; transform: translateY(.75em) rotate(8deg); } 25% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.pg__line .pg__stop { display: inline-block; margin-left: .04em; }
@media (prefers-reduced-motion: reduce) { .pg__ch { opacity: 1; transform: none; animation: none; } }
.pg.is-in .pg__line .pg__stop { animation-delay: 2.5s; }
.pg__intro { width: min(560px, 86vw); } .pg__role { max-width: 40ch; }

/* slot reels: the slot shows a little above and below its letter, faded, so passing letters
   are glimpsed like the reference; the reel overshoots a touch and settles */
.pg__slot { position: relative; display: inline-block; vertical-align: top; padding: .5em 0; margin: -.5em 0; line-height: 1;
  -webkit-mask-image: linear-gradient(transparent, #000 34%, #000 66%, transparent); mask-image: linear-gradient(transparent, #000 34%, #000 66%, transparent); }
.pg__ghost { visibility: hidden; }
.pg__reel { position: absolute; left: 50%; top: .5em; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, 1.2em); opacity: 0; }
.pg__reel i { display: block; height: 1em; font-style: normal; }
.pg__glyph svg { display: block; width: .62em; height: .62em; margin-top: .2em; fill: currentColor; }
.pg.is-in .pg__reel { animation: pg-reel var(--t) cubic-bezier(.25, .9, .3, 1.12) var(--d) both; }
@keyframes pg-reel { 0% { opacity: 0; transform: translate(-50%, 1.2em); } 12% { opacity: 1; } 100% { opacity: 1; transform: translate(-50%, calc(var(--n) * -1em)); } }
@media (prefers-reduced-motion: reduce) { .pg__ghost { visibility: visible; } .pg__reel { display: none; } .pg__slot { -webkit-mask-image: none; mask-image: none; } }
/* once a reel stops, the letters it rolled past fade away */
.pg.is-in .pg__reel i:not(:last-child) { animation: pg-gone .25s linear calc(var(--d) + var(--t) - .1s) both; }
@keyframes pg-gone { to { opacity: 0; } }
/* letters that don't roll just rise in quietly */
.pg__plain { display: inline-block; opacity: 0; transform: translateY(.3em); }
.pg.is-in .pg__plain { animation: pg-word .6s var(--ease) var(--d) both; }
@media (prefers-reduced-motion: reduce) { .pg__plain { opacity: 1; transform: none; animation: none; } }

/* journey: a quiet stacked timeline — a thin rule, a small square per stage (pink for now) */
.more__journey { margin-top: clamp(56px, 9vh, 104px); }
.more__jtitle { grid-column: 1 / span 4; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; letter-spacing: -.03em; }
.journey { grid-column: 6 / span 7; position: relative; display: grid; gap: 40px; padding-left: 28px; }
.journey::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: rgba(255, 255, 255, .16); }
.journey__group { position: relative; display: grid; gap: 18px; }
.journey__group::before { content: ''; position: absolute; left: -28px; top: 3px; width: 9px; height: 9px; background: rgba(255, 255, 255, .45); }
.journey__group.is-now::before { background: var(--pink); }
.journey__label { color: rgba(255, 255, 255, .55); }
.journey__item { display: grid; gap: 4px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.45; }
.journey__item strong { font-family: var(--display); font-weight: 600; font-size: 1.15em; letter-spacing: -.02em; color: var(--paper); }
.journey__item span { color: rgba(255, 255, 255, .62); max-width: 52ch; }
@media (max-width: 760px) { .more__jtitle, .journey { grid-column: 1 / -1; } .more__jtitle { margin-bottom: 8px; } }

/* ---------- About: editorial spread (after a magazine-style story layout) ---------- */
.about-page .more { background-color: var(--dark);
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px; }
.ed { display: grid; gap: clamp(40px, 7vh, 80px); max-width: 1040px; }
.ed__row { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.ed__tag { font-size: 13px; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ed__tag b { color: var(--paper); font-weight: 600; }
.ed__tag--right { display: flex; align-items: center; gap: 28px; text-align: right; }
.ed__big { display: grid; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -.03em; }
.ed__big small { font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.ed__palette { display: grid; grid-template-columns: repeat(3, 32px) auto; grid-template-rows: 32px 32px; align-items: center; }
.ed__palette i { display: block; width: 32px; height: 32px; }
.ed__palette i:nth-child(1) { grid-area: 1 / 2; background: var(--orange); }
.ed__palette i:nth-child(2) { grid-area: 1 / 3; background: var(--pink); }
.ed__palette i:nth-child(3) { grid-area: 2 / 1; background: var(--green); }
.ed__palette i:nth-child(4) { grid-area: 2 / 2; background: var(--purple); }
.ed__palette span { grid-area: 1 / 4 / 3; padding-left: 36px; font-size: 13px; line-height: 1.25; text-transform: uppercase; text-align: right; }
.ed__photo { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.ed__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.ed__photo.in img { transform: none; }
.ed__ph { height: 100%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; text-transform: uppercase; color: rgba(255,255,255,.4); }
.ed__title { flex: 1 1 auto; max-width: 11ch; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 84px); line-height: .92; letter-spacing: -.04em; text-transform: uppercase; }
.ed__arrow { display: inline-block; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; color: var(--paper); animation: ed-nudge 2.4s var(--ease) infinite; }
.ed__arrow--left { transform: scaleX(-1); animation: none; }
@keyframes ed-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 8px 0; } }
.ed__note { position: relative; padding: 14px 0 0 16px; font-size: 14px; line-height: 1.55; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.ed__note::before, .ed__note::after { content: ''; position: absolute; width: 20px; height: 20px; border: 0 solid var(--pink); transition: width .8s var(--ease) .3s, height .8s var(--ease) .3s; }
.ed__note::before { left: 0; top: 0; border-width: 2px 0 0 2px; }
.ed__note--top { flex: 0 1 260px; }
.ed__note--block { flex: 0 1 440px; padding: 14px 16px; text-align: justify; }
.ed__note--block::after { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.ed__note:not(.in)::before, .ed__note:not(.in)::after { width: 0; height: 0; }
.ed__body { align-items: flex-start; }
.ed__aside { flex: 0 1 380px; display: grid; gap: 22px; }
.ed__italic, .ed__script { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.ed__italic { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -.01em; color: var(--paper); }
.ed__script { text-transform: none; font-size: 16px; letter-spacing: 0; color: rgba(255,255,255,.7); }
.ed__foot { align-items: flex-end; }
@media (max-width: 760px) {
  .ed__row { flex-wrap: wrap; }
  .ed__head .ed__arrow { display: none; }
  .ed__note--top, .ed__note--block, .ed__aside { flex-basis: 100%; }
  .ed__palette { grid-template-columns: repeat(3, 24px) auto; grid-template-rows: 24px 24px; }
  .ed__palette i { width: 24px; height: 24px; }
  .ed__palette span { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ed__arrow { animation: none; } .ed__note:not(.in)::before, .ed__note:not(.in)::after { width: 20px; height: 20px; } }

/* spread v2: everything sits on the full-width 12-column grid, no dead margins */
.ed { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(36px, 6vh, 72px); max-width: none; align-items: end; }
.ed__tag--l { grid-column: 1 / span 6; }
.ed__tag--r { grid-column: 7 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 28px; text-align: right; }
.ed__photo { grid-column: 1 / span 7; display: grid; gap: 12px; aspect-ratio: auto; overflow: visible; background: none; border: 0; }
.ed__frame { aspect-ratio: 4 / 3; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.ed__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.ed__photo.in .ed__frame img { transform: none; }
.ed__head { grid-column: 9 / -1; display: grid; gap: 28px; align-self: end; }
.ed__title { max-width: none; font-size: clamp(38px, 4.6vw, 72px); }
.ed__lead { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.ed__lead .ed__arrow { margin-top: 10px; }
.ed__aside { grid-column: 1 / span 6; align-self: start; }
.ed__note--block { grid-column: 8 / -1; align-self: start; }
@media (max-width: 900px) {
  .ed__tag--l, .ed__tag--r, .ed__photo, .ed__head, .ed__aside, .ed__note--block { grid-column: 1 / -1; }
  .ed__tag--r { justify-content: flex-start; text-align: left; }
  .ed__tag--r .ed__arrow { display: none; }
}

/* ---------- Selected work v2: big alternating rows with labelled facts (overrides the collage) ---------- */
.section-head .work__kicker { grid-column: 1 / -1; color: var(--muted); line-height: 1; margin-bottom: -4px; }
.work__list { display: block; padding-bottom: clamp(80px, 12vh, 140px); }
.proj, .proj:nth-child(n) { grid-column: auto; margin-top: 0; border-top: 1px solid var(--line); padding: clamp(28px, 4vh, 44px) 0; }
.proj:last-child { border-bottom: 1px solid var(--line); }
.proj:nth-child(n) .proj__link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; }
.proj:nth-child(n) .proj__media { grid-column: 1 / span 8; height: clamp(300px, 62vh, 640px); }
.proj:nth-child(n) .proj__info { grid-column: 9 / -1; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.proj:nth-child(even) .proj__media { grid-column: 5 / -1; order: 2; }
.proj:nth-child(even) .proj__info { grid-column: 1 / span 4; order: 1; }
.proj__num { font-size: 13px; color: var(--muted); }
.proj__title, .proj:nth-child(n) .proj__title { font-size: clamp(30px, 2.9vw, 46px); line-height: 1.02; letter-spacing: -.035em; }
.proj__desc { font-size: 17px; max-width: 30ch; }
.proj__facts { margin: auto 0 0; padding: 0; width: 100%; display: grid; }
.proj__facts > div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.proj__facts dt { font-size: 11px; color: var(--muted); padding-top: 3px; }
.proj__facts dd { margin: 0; font-size: 15px; line-height: 1.35; }
.proj__cta, .proj:nth-child(n) .proj__cta { opacity: 1; transform: none; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 18px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; }
.proj__cta i { font-style: normal; transition: transform .4s var(--ease); }
.proj__link:hover .proj__cta i, .proj__link:focus-visible .proj__cta i { transform: translateX(5px); }
@media (max-width: 860px) {
  .proj:nth-child(n) .proj__media, .proj:nth-child(n) .proj__info { grid-column: 1 / -1; order: 0; }
  .proj:nth-child(n) .proj__media { height: 46vh; }
  .proj:nth-child(n) .proj__info { padding-top: 18px; }
  .proj__cta, .proj:nth-child(n) .proj__cta { display: inline-flex; }
}

/* ---------- Contact v2: a short, friendly sign-off instead of a giant headline ---------- */
.contact { padding-top: clamp(64px, 10vh, 110px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; padding-bottom: clamp(44px, 7vh, 80px); }
.contact__title { font-size: clamp(32px, 3.6vw, 58px); line-height: 1.05; letter-spacing: -.04em; }
.contact__hi { position: relative; display: inline-block; padding: 0 .18em; color: var(--dark); background: var(--pink); transform: rotate(-2deg); transform-origin: left center; transition: transform .4s var(--ease), background .3s; }
.contact__hi:hover { transform: rotate(1.5deg) scale(1.03); background: var(--green); }
.contact__lede { margin-top: 18px; max-width: 40ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: rgba(255, 255, 255, .65); }
.contact__reach { display: grid; gap: 18px; justify-items: start; }
.contact__email { font-size: clamp(20px, 1.9vw, 28px); }
.contact__links { flex-wrap: wrap; gap: 10px; }
.contact__links a, .contact__links .muted { display: inline-block; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .22); font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.contact__links a:hover { color: var(--dark); background: var(--green); border-color: var(--green); }
.contact__blocks { height: clamp(56px, 6vw, 90px); }
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Contact v3: big again, with a friendly kicker ---------- */
.contact { padding-top: clamp(100px, 16vh, 180px); }
.contact__kicker { font-size: 14px; color: rgba(255, 255, 255, .6); margin-bottom: 22px; }
.contact__title { font-size: clamp(48px, 8.4vw, 140px); line-height: .92; letter-spacing: -.055em; }
.contact__hi { margin-top: .06em; padding: 0 .12em .04em; }
.contact__lede { margin-top: clamp(24px, 3vw, 40px); max-width: 44ch; font-size: clamp(17px, 1.4vw, 22px); }
.contact__row { margin-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(60px, 8vw, 120px); }
.contact__email { font-size: clamp(22px, 2.6vw, 40px); }
.contact__blocks { height: clamp(90px, 11vw, 160px); }

/* ---------- Work rows v3: more air, less text ---------- */
.proj, .proj:nth-child(n) { padding: clamp(48px, 8vh, 96px) 0; }
.proj:nth-child(n) .proj__media { grid-column: 1 / span 8; height: clamp(320px, 66vh, 700px); }
.proj:nth-child(n) .proj__info { grid-column: 10 / -1; justify-content: center; gap: 18px; }
.proj:nth-child(even) .proj__media { grid-column: 5 / -1; }
.proj:nth-child(even) .proj__info { grid-column: 1 / span 3; }
.proj__meta { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 13px; color: var(--muted); }
.proj__meta i { font-style: normal; }
.proj__cta, .proj:nth-child(n) .proj__cta { margin-top: 10px; padding: 0 0 4px; background: none; color: var(--ink); font-size: 15px; border-bottom: 1px solid currentColor; }
/* text beside each cover arrives a beat after the image, line by line */
.js .proj.reveal .proj__info > * { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .proj.reveal.in .proj__info > * { opacity: 1; transform: none; }
.js .proj.reveal.in .proj__info > :nth-child(1) { transition-delay: .25s; }
.js .proj.reveal.in .proj__info > :nth-child(2) { transition-delay: .35s; }
.js .proj.reveal.in .proj__info > :nth-child(3) { transition-delay: .45s; }
.js .proj.reveal.in .proj__info > :nth-child(4) { transition-delay: .55s; }
.js .proj.reveal { transform: none; }
@media (max-width: 860px) { .proj:nth-child(n) .proj__info { grid-column: 1 / -1; } .proj:nth-child(n) .proj__media { height: 46vh; } }
@media (prefers-reduced-motion: reduce) { .js .proj.reveal .proj__info > * { opacity: 1; transform: none; } }

/* project focus labels: quiet outlined tags (Play keeps the coloured chips) */
.proj__labels { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.proj__labels li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; line-height: 1.2; color: var(--ink); }
.proj__link:hover .proj__labels li { border-color: currentColor; }
.js .proj.reveal.in .proj__info > :nth-child(5) { transition-delay: .65s; }

/* focus tags sit on the cover, bottom-left, as small palette chips (the hover block grows beside them) */
.proj__labels { position: absolute; left: 0; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.proj__labels li { padding: 7px 10px 6px; border: 0; border-radius: 0; font-size: 11px; line-height: 1; letter-spacing: .02em; color: var(--dark); background: var(--paper); }
.proj__labels li:nth-child(4n+1) { background: var(--purple); color: var(--paper); }
.proj__labels li:nth-child(4n+2) { background: var(--pink); }
.proj__labels li:nth-child(4n+3) { background: var(--green); }
.proj__labels li:nth-child(4n+4) { background: var(--orange); color: var(--paper); }
.proj__link:hover .proj__labels li { border-color: transparent; }
.proj__media::after { z-index: 2; }

/* ---------- Contact v4: the whole sign-off fits one screen after Play ---------- */
.contact { min-height: 100svh; display: flex; flex-direction: column; padding-top: clamp(80px, 12vh, 120px); }
.contact > .wrap:first-child { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact__kicker { margin-bottom: 16px; }
.contact__title { font-size: clamp(40px, 5.4vw, 92px); }
.contact__lede { margin-top: clamp(16px, 2.4vh, 28px); }
.contact__row { margin-top: clamp(24px, 4vh, 48px); padding-bottom: clamp(24px, 4vh, 48px); }
.contact__blocks { height: clamp(60px, 8vh, 110px); flex: none; }
.proj__media::after { left: auto; right: 0; transform: translate(100%, 100%); } /* hover block moves to the opposite corner from the tags */

/* ---------- Play v2 (after an editorial "perspectives" layout): same-size tiles on a loose
   stagger, a label beside each, one palette square pinned to a corner. Calm, still fun. ---------- */
@media (min-width: 961px) {
  .exp-grid { min-height: 560px; max-height: 680px; }
  .exp, .exp.exp--feature { width: max-content; translate: none; gap: 18px; z-index: auto; flex-direction: row; align-items: center; }
  .exp:nth-child(1) { --l: 6%;  --t: 4%;  }
  .exp:nth-child(2) { --l: 36%; --t: 20%; flex-direction: row-reverse; }
  .exp:nth-child(3) { --l: 68%; --t: 4%;  flex-direction: row-reverse; }
  .exp:nth-child(4) { --l: 2%;  --t: 46%; }
  .exp:nth-child(5) { --l: 56%; --t: 50%; flex-direction: row-reverse; }
  .exp:nth-child(6) { --l: 18%; --t: 78%; }
  .exp:nth-child(7) { --l: 66%; --t: 80%; flex-direction: row-reverse; }
  .exp__media, .exp--wide .exp__media, .exp--feature .exp__media { position: relative; width: clamp(150px, 12vw, 200px); aspect-ratio: 3 / 2; box-shadow: none; overflow: visible; }
  .exp__media > canvas, .exp__media > img { display: block; overflow: hidden; }
  /* the pinned square: sits just off one corner, colour by position */
  .exp__media::before { content: ""; position: absolute; width: 16px; height: 16px; z-index: 1; background: var(--c, var(--orange)); transition: transform .45s var(--ease); }
  .exp:nth-child(4n+1) .exp__media::before { --c: var(--orange); right: -16px; top: -16px; }
  .exp:nth-child(4n+2) .exp__media::before { --c: var(--purple); left: -16px; bottom: -16px; }
  .exp:nth-child(4n+3) .exp__media::before { --c: var(--green); left: -16px; top: -16px; }
  .exp:nth-child(4n+4) .exp__media::before { --c: var(--pink); right: -16px; bottom: -16px; }
  .exp:hover .exp__media::before, .exp:focus-visible .exp__media::before { transform: scale(1.4); }
  .exp:hover .exp__media, .exp:focus-visible .exp__media { transform: translateY(-4px); }
  .exp--feature .exp__media::after { display: block; }
  .exp__info, .exp--feature .exp__info { position: relative; width: 190px; display: grid; gap: 6px; justify-items: start; text-align: left; }
  .exp:nth-child(2) .exp__info, .exp:nth-child(3) .exp__info, .exp:nth-child(5) .exp__info, .exp:nth-child(7) .exp__info { justify-items: end; text-align: right; }
  .exp:nth-child(6) .exp__info { justify-items: start; text-align: left; }
  .exp__title, .exp--feature .exp__title { font-size: 18px; letter-spacing: -.02em; }
  .exp__desc, .exp--feature .exp__desc { position: absolute; top: 100%; margin-top: 6px; width: 220px; opacity: 0; transform: translateY(-4px); }
  .exp:nth-child(2) .exp__desc, .exp:nth-child(3) .exp__desc, .exp:nth-child(5) .exp__desc, .exp:nth-child(7) .exp__desc { right: 0; }
  .exp:hover .exp__desc, .exp:focus-visible .exp__desc { opacity: 1; transform: none; }
  .bit { width: 14px; height: 14px; animation: none; translate: none; }
}

/* ---------- Typography hygiene: no orphans, balanced headings ---------- */
h1, h2, h3, .proj__title, .exp__title, .contact__title, .ed__title, .more__jtitle { text-wrap: balance; }
p, li, dd, figcaption, .proj__meta { text-wrap: pretty; }

/* Pieces that fit: give the text column room so titles break cleanly */
.proj:nth-child(n) .proj__media { grid-column: 1 / span 7; }
.proj:nth-child(n) .proj__info { grid-column: 9 / -1; gap: 16px; }
.proj:nth-child(even) .proj__media { grid-column: 6 / -1; }
.proj:nth-child(even) .proj__info { grid-column: 1 / span 4; }
.proj__title, .proj:nth-child(n) .proj__title { font-size: clamp(28px, 2.5vw, 40px); line-height: 1.08; max-width: 14ch; }
.proj__num { line-height: 1; }
@media (max-width: 860px) { .proj:nth-child(n) .proj__media, .proj:nth-child(n) .proj__info { grid-column: 1 / -1; } .proj__title, .proj:nth-child(n) .proj__title { max-width: 20ch; } }

/* ---------- Play v3: heading and note side by side, tiles drop in, squares play ---------- */
.section-head--play { align-items: end; }
.section-head--play h2 { grid-column: 1 / span 7; }
.section-head--play p { grid-column: 9 / -1; align-self: end; max-width: 38ch; margin-bottom: .55em; font-size: 16px; line-height: 1.5; color: var(--muted); }
@media (min-width: 961px) {
  .section-head--play { padding-bottom: clamp(28px, 5vh, 56px); }
  /* landing: each tile falls a short way with a little overshoot, one after another */
  .js .exp-grid .exp.reveal { opacity: 0; transform: translateY(-48px) rotate(-3deg); transition: opacity .5s var(--ease), transform .8s cubic-bezier(.34, 1.56, .64, 1), translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .exp-grid.is-dropped .exp.reveal { opacity: 1; transform: none; }
  /* hover: the tile tips, its square spins round to the other side */
  .exp:hover .exp__media, .exp:focus-visible .exp__media { transform: translateY(-6px) rotate(-1.5deg); }
  .exp:nth-child(even):hover .exp__media, .exp:nth-child(even):focus-visible .exp__media { transform: translateY(-6px) rotate(1.5deg); }
  .exp__media::before { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
  .exp:hover .exp__media::before, .exp:focus-visible .exp__media::before { transform: rotate(180deg) scale(1.5); }
  .exp__title { transition: transform .4s var(--ease); }
  .exp:hover .exp__title { transform: translateX(var(--nudge, 4px)); }
  .exp:nth-child(2) .exp__title, .exp:nth-child(3) .exp__title, .exp:nth-child(5) .exp__title, .exp:nth-child(7) .exp__title { --nudge: -4px; }
  .bit { transition: translate .5s cubic-bezier(.34, 1.56, .64, 1), rotate .5s var(--ease); }
}
@media (prefers-reduced-motion: reduce) { .js .exp-grid .exp.reveal { opacity: 1; transform: none; } }

/* bring back the cursor drift and the bobbing squares on the playground */
@media (min-width: 961px) {
  .exp-grid .exp, .exp-grid .exp.exp--feature { translate: calc(var(--mx) * var(--d, 10) * 1px) calc(var(--my) * var(--d, 10) * 1px); }
  .exp-grid .bit { width: 16px; height: 16px; translate: calc(var(--mx) * var(--d) * 1px) calc(var(--my) * var(--d) * 1px); transition: translate 1s var(--ease); animation: bob var(--dur) ease-in-out infinite alternate; }
}
@media (prefers-reduced-motion: reduce) { .exp-grid .exp, .exp-grid .bit { translate: none; animation: none; } }

/* drift is eased in JS now, so translate needs no transition (and never inherits the drop-in stagger) */
@media (min-width: 961px) {
  .js .exp-grid .exp.reveal, .exp-grid .exp { transition-property: opacity, transform; }
  .exp-grid .bit { transition: none; }
}

/* ---------- Sectioning: one quiet rule and a small label per section, no doubled lines ---------- */
.proj:last-child { border-bottom: 0; }
.work__list { padding-bottom: clamp(56px, 9vh, 104px); }
.section-head { border-top: 1px solid var(--line); }
.section-head__kicker { grid-column: 1 / -1; color: var(--muted); line-height: 1; margin-bottom: -4px; }

/* covers: a little more image than frame, so the parallax never shows a strip */
.proj__media img { height: 124%; margin-top: -12%; }
.section-head--play p.section-head__kicker { grid-column: 1 / -1; align-self: start; max-width: none; margin: 0 0 -4px; font-size: 13px; line-height: 1; color: var(--muted); }

/* Play gets its own surface: a soft paper tone with a faint grid, so the switch from the work rows is felt */
.play { background-color: var(--paper-2); background-image: linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px); background-size: 44px 44px; }
.play .section-head { border-top: 0; }
.contact__blocks { height: clamp(104px, 13vh, 150px); }

/* "Play?" letters pop up one by one once the Play heading has risen into view */
.js .section-head--play .play-word b { opacity: 0; translate: 0 .35em; scale: .6; transition: opacity .4s var(--ease), translate .6s cubic-bezier(.34, 1.56, .64, 1), scale .6s cubic-bezier(.34, 1.56, .64, 1), transform .45s var(--ease); }
.js .section-head--play.in .play-word b { opacity: 1; translate: none; scale: none; }
.js .section-head--play.in .play-word b:nth-child(1) { transition-delay: .55s, .55s, .55s, 0s; }
.js .section-head--play.in .play-word b:nth-child(2) { transition-delay: .63s, .63s, .63s, 0s; }
.js .section-head--play.in .play-word b:nth-child(3) { transition-delay: .71s, .71s, .71s, 0s; }
.js .section-head--play.in .play-word b:nth-child(4) { transition-delay: .79s, .79s, .79s, 0s; }
.js .section-head--play.in .play-word b:nth-child(5) { transition-delay: .87s, .87s, .87s, 0s; }
/* the note beside it follows a beat later */
.js .section-head--play.reveal p { opacity: 0; translate: 0 12px; transition: opacity .8s var(--ease) .35s, translate .8s var(--ease) .35s; }
.js .section-head--play.reveal.in p { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) { .js .section-head--play .play-word b, .js .section-head--play.reveal p { opacity: 1; translate: none; scale: none; } }
/* the note sits right after the heading and runs three lines */
@media (min-width: 961px) {
  .section-head--play h2 { grid-column: 1 / span 6; white-space: nowrap; }
  .section-head--play p { grid-column: 8 / -1; max-width: 52ch; justify-self: start; }
}

/* ---------- Case study long scroll: the project's own images, stacked with no gaps ---------- */
.scroll-case { width: min(100% - 2 * var(--pad, 24px), 1400px); margin: 0 auto clamp(64px, 10vh, 120px); display: grid; }
.scroll-case img { display: block; width: 100%; height: auto; }
.scroll-case .behance__link { justify-self: end; margin-top: 16px; }
.scroll-case video { display: block; width: 100%; height: auto; background: #000; }

/* ---------- Case study process strip ---------- */
.process { margin-bottom: clamp(40px, 6vh, 72px); }
.process__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.process__title { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2vw, 32px); letter-spacing: -.03em; }
.process__nav { display: flex; gap: 8px; }
.process__nav button { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 18px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.process__nav button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.process__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 23vw, 320px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; cursor: grab; }
.process__track::-webkit-scrollbar { display: none; }
.process__track:active { cursor: grabbing; }
.process__track li { scroll-snap-align: start; }
.process__card { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 220px; padding: 20px 20px 18px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); user-select: none; -webkit-user-drag: none; transition: border-color .3s, transform .4s var(--ease); }
.process__card::after { content: ''; position: absolute; top: -1px; right: -1px; width: 14px; height: 14px; background: var(--pink); transform: scale(0); transform-origin: top right; transition: transform .35s var(--ease); }
.process__card:hover, .process__card:focus-visible { border-color: var(--ink); transform: translateY(-3px); }
.process__card:hover::after, .process__card:focus-visible::after { transform: none; }
.process__phase { display: flex; gap: 10px; font-size: 11px; color: var(--muted); }
.process__phase b { font-weight: 500; color: var(--ink); }
.process__card strong { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.process__text { font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.process__go { margin-top: auto; font-size: 11px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease); }
.process__card:hover .process__go, .process__card:focus-visible .process__go { opacity: 1; transform: none; }
.process__bar { height: 2px; margin-top: 16px; background: var(--line); overflow: hidden; }
.process__bar i { display: block; height: 100%; background: var(--ink); transition: transform .2s linear; }
/* phase colours on the step number */
.process__track li:nth-child(-n+2) .process__phase b { color: var(--purple); }
.process__track li:nth-child(n+3):nth-child(-n+4) .process__phase b { color: var(--orange); }
.process__track li:nth-child(n+5):nth-child(-n+6) .process__phase b { color: #d94bc4; }
.process__track li:nth-child(n+7):nth-child(-n+9) .process__phase b { color: #03a957; }
.process__card { width: 100%; font: inherit; text-align: left; cursor: pointer; }

/* ---------- Case study step bar: sticky under the nav, quiet until active ---------- */
.steps { position: sticky; top: var(--nav-h, 64px); z-index: 20; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps__list { display: flex; gap: clamp(20px, 3vw, 44px); overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad, 24px); justify-content: safe center; }
.steps__list::-webkit-scrollbar { display: none; }
.steps__item { display: inline-flex; align-items: baseline; gap: 8px; padding: 16px 0 14px; border: 0; background: none; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--muted); opacity: .55; cursor: pointer; transition: opacity .3s, color .3s; }
.steps__item span { font-size: 10px; }
.steps__item:hover, .steps__item:focus-visible { opacity: 1; }
.steps__item.is-on { color: var(--ink); opacity: 1; }
.steps__item.is-on span { color: var(--pink); color: #d94bc4; }
.steps__bar { height: 2px; background: transparent; }
.steps__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.case-next strong { font-size: clamp(22px, 2.3vw, 36px); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }

/* step bar v2: the line runs along the bottom of the list, ending at the step you're on */
.steps__list { position: relative; }
.steps__bar--in { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; pointer-events: none; background: none; }
.steps__bar--in i { width: 0; transform: none; background: var(--ink); }
.steps__item { position: relative; transition: opacity .35s var(--ease), color .35s var(--ease); }
.steps__item.is-done { opacity: .85; color: var(--ink); }

/* case hero fills the first screen when a long scroll follows; a small cue sits at the bottom */
.case-hero--fit { align-content: start; padding-bottom: 28px; }
.case-hero__cue { align-self: flex-start; margin-top: auto; padding-top: 32px; font-size: 12px; color: var(--muted); animation: cue-bob 2.4s var(--ease) infinite; }
.case-hero--fit { display: flex; flex-direction: column; align-items: flex-start; }
@keyframes cue-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }
@media (prefers-reduced-motion: reduce) { .case-hero__cue { animation: none; } }

/* title-screen hand-off: these are driven per frame from the scroll position */
.case-hero--fit > *, .scroll-case, .steps { will-change: opacity, transform; }
.scroll-case { transform-origin: 50% 0; }

/* ---------- Case hero entrance: words rise out of a mask, the rest follows a beat later ---------- */
.case-hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.case-hero__title .w > span { display: inline-block; animation: hero-word .9s cubic-bezier(.16, 1, .3, 1) calc(.15s + var(--i) * .07s) backwards; }
@keyframes hero-word { from { transform: translateY(105%); } }
.case-hero > :not(.case-hero__title) { animation: hero-line .8s cubic-bezier(.16, 1, .3, 1) backwards; }
.case-hero > .back { animation-delay: .05s; }
.case-hero > .case-hero__meta { animation-delay: .1s; }
.case-hero > .case-hero__intro { animation-delay: .45s; }
.case-hero > .case-hero__desc { animation-delay: .55s; }
.case-hero > .proj__tags { animation-delay: .65s; }
.case-hero > .case-hero__cue { animation: hero-line .8s cubic-bezier(.16, 1, .3, 1) .9s backwards, cue-bob 2.4s var(--ease) 1.7s infinite; }
@keyframes hero-line { from { opacity: 0; transform: translateY(14px); } }

/* parts of the long scroll: a soft rise as each one enters */
.scroll-case > .part-in { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.scroll-case > .part-in.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .case-hero__title .w > span, .case-hero > * { animation: none; } }

/* ---------- Pieces that fit: covers at the original Behance thumbnail shape (808 × 632), never cropped ---------- */
.proj:nth-child(n) .proj__media { height: auto; aspect-ratio: 808 / 632; }
.proj__media img, .js .proj.reveal .proj__media img { height: 100%; margin-top: 0; object-fit: cover; --py: 0%; }
.proj:nth-child(n) .proj__link { align-items: center; }
.proj:nth-child(n) .proj__info { justify-content: center; }
.proj, .proj:nth-child(n) { padding: clamp(40px, 7vh, 80px) 0; }

/* ---------- Pieces that fit: final text block. One label row, title, one line, link.
   Aligned to the cover's bottom edge, on a fixed spacing scale (8 / 16 / 28). ---------- */
.proj:nth-child(n) .proj__link { align-items: end; }
.proj:nth-child(n) .proj__info { gap: 0; justify-content: flex-end; padding-bottom: 4px; }
.proj__eyebrow { display: flex; gap: 14px; margin: 0 0 16px; font-size: 12px; line-height: 1; letter-spacing: .04em; color: var(--muted); }
.proj__eyebrow span { color: var(--ink); }
.proj__title, .proj:nth-child(n) .proj__title { margin: 0; max-width: 16ch; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.08; letter-spacing: -.03em;
  background: none; padding: 0; }                      /* no hover underline on the title */
.proj__desc, .proj:nth-child(n) .proj__desc { margin: 16px 0 0; max-width: 34ch; font-size: 16px; line-height: 1.45; color: var(--muted); }
.proj__cta, .proj:nth-child(n) .proj__cta { margin-top: 28px; padding: 0; border: 0; font-size: 15px; font-weight: 500; gap: 8px; }
.proj__cta i { transition: transform .4s var(--ease); }
.proj__link:hover .proj__cta i, .proj__link:focus-visible .proj__cta i { transform: translateX(6px); }
.proj__link:hover .proj__title, .proj__link:focus-visible .proj__title { color: var(--ink); }
.proj__meta { display: none; }

/* ---------- Nav pixel icons: dotted at rest, the dots re-form into a shape on hover ---------- */
.nav__links a { display: inline-flex; align-items: center; gap: 8px; }
.nav__px { width: 13px; height: 13px; flex: none; overflow: visible; }
.nav__px .px { fill: currentColor; opacity: calc(var(--a) * .55); transform-box: fill-box; transform-origin: center;
  transition: opacity .25s ease var(--d), fill .25s ease var(--d), transform .35s cubic-bezier(.34, 1.56, .64, 1) var(--d); }
.nav__links a:hover .px, .nav__links a:focus-visible .px, .nav__links a[aria-current="page"] .px { opacity: var(--b); fill: var(--px); }
.nav__links a:hover .px, .nav__links a:focus-visible .px { transform: scale(1.15); }
.nav__links a[aria-disabled="true"] .px { opacity: calc(var(--a) * .3); }
@media (prefers-reduced-motion: reduce) { .nav__px .px { transition: none; } }

/* ---------- Project text: the title's words rise out of a mask, the rest follows ---------- */
.proj__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.proj__title .w > span { display: inline-block; }
.js .proj.reveal .proj__info > .proj__title { opacity: 1; transform: none; }            /* the words animate instead */
.js .proj.reveal .proj__title .w > span { transform: translateY(105%); transition: transform .9s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(.3s + var(--k) * .06s); }
.js .proj.reveal.in .proj__title .w > span { transform: none; }
/* eyebrow, line and link: a quiet fade-up, staggered after the title */
.js .proj.reveal.in .proj__info > .proj__eyebrow { transition-delay: .2s; }
.js .proj.reveal.in .proj__info > .proj__desc { transition-delay: .6s; }
.js .proj.reveal.in .proj__info > .proj__cta { transition-delay: .72s; }
/* hover: the title nudges, the arrow slides */
.proj__title { transition: transform .5s var(--ease); }
.proj__link:hover .proj__title, .proj__link:focus-visible .proj__title { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .js .proj.reveal .proj__title .w > span { transform: none; transition: none; } .proj__link:hover .proj__title { transform: none; } }

/* ---------- Project text hierarchy v2: label → title → line → button ---------- */
.proj__eyebrow { align-items: center; gap: 12px; margin-bottom: 20px; font-size: 12px; letter-spacing: .06em; }
.proj__eyebrow span { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 6px; font-size: 11px; color: var(--paper); background: var(--ink); }
.proj:nth-child(4n+1) .proj__eyebrow span { background: var(--purple); }
.proj:nth-child(4n+2) .proj__eyebrow span { background: var(--orange); }
.proj:nth-child(4n+3) .proj__eyebrow span { background: var(--pink); color: var(--ink); }
.proj:nth-child(4n+4) .proj__eyebrow span { background: var(--green); color: var(--ink); }
.proj__title, .proj:nth-child(n) .proj__title { font-size: clamp(30px, 2.7vw, 44px); line-height: 1.04; letter-spacing: -.035em; max-width: 15ch; }
.proj__desc, .proj:nth-child(n) .proj__desc { margin-top: 16px; max-width: 36ch; font-size: 17px; line-height: 1.5; color: #555; }
.proj__cta, .proj:nth-child(n) .proj__cta { margin-top: 32px; display: inline-flex; align-items: center; gap: 12px; padding: 13px 18px 13px 20px;
  background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500; letter-spacing: -.005em; transition: background .3s, color .3s; }
.proj__cta i { display: inline-grid; place-items: center; width: 22px; height: 22px; font-style: normal; background: var(--paper); color: var(--ink); transition: transform .4s var(--ease); }
.proj__link:hover .proj__cta, .proj__link:focus-visible .proj__cta { background: var(--pink); color: var(--ink); }
.proj__link:hover .proj__cta i, .proj__link:focus-visible .proj__cta i { transform: translateX(4px); }

/* ---------- One title motion everywhere (project rows, case hero, previous / next):
   each word rises out of its own mask, .9s, expo-out, .06s apart; hover nudges the title 6px ---------- */
:root { --title-ease: cubic-bezier(.16, 1, .3, 1); --title-dur: .9s; --title-gap: .06s; }
.proj__title .w, .case-hero__title .w, .case-next strong .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.proj__title .w > span, .case-hero__title .w > span, .case-next strong .w > span { display: inline-block; }
.case-hero__title .w > span { animation: hero-word var(--title-dur) var(--title-ease) calc(.15s + var(--k) * var(--title-gap)) backwards; }
.js .proj.reveal .proj__title .w > span { transition: transform var(--title-dur) var(--title-ease); transition-delay: calc(.3s + var(--k) * var(--title-gap)); }
.js .case-next.reveal { opacity: 1; transform: none; }
.js .case-next.reveal strong .w > span { transform: translateY(105%); transition: transform var(--title-dur) var(--title-ease); transition-delay: calc(.15s + var(--k) * var(--title-gap)); }
.js .case-next.reveal.in strong .w > span { transform: none; }
.case-next a:last-child strong .w > span { transition-delay: calc(.3s + var(--k) * var(--title-gap)); }
/* hover: the same small nudge for every project title */
.proj__title, .case-next strong { transition: transform .5s var(--ease), color .3s; }
.proj__link:hover .proj__title, .case-next a:hover strong, .case-next a:focus-visible strong { transform: translateX(6px); color: var(--ink); }
.case-next a:last-child:hover strong { transform: translateX(-6px); }
@media (prefers-reduced-motion: reduce) { .case-next strong .w > span, .case-hero__title .w > span { transform: none !important; transition: none; animation: none; } }

/* the name's own pixel mark: always shows its current shape, dots re-form between shapes */
.nav__logo { display: inline-flex; align-items: center; gap: 10px; }
.nav__px--me { width: 15px; height: 15px; }
.nav__px--me .px { opacity: var(--on); fill: var(--px); }
.nav__logo:hover .nav__px--me .px, .nav__logo:focus-visible .nav__px--me .px { transform: scale(1.12); }
[data-mode="dark"] .nav__px--me .px { fill: var(--px); }
[data-mode="dark"] .nav__px--me { --ink: #fff; }
.nav__px--me .px { transition-duration: .15s, .25s, .35s; }

/* pixel icons stay hidden until you hover a link or the name; they slide open beside the text */
.nav__links a, .nav__logo { gap: 0; }
.nav__px { width: 0; margin-right: 0; opacity: 0; transition: width .35s var(--ease), margin-right .35s var(--ease), opacity .25s ease; }
.nav__links a:hover .nav__px, .nav__links a:focus-visible .nav__px { width: 13px; margin-right: 8px; opacity: 1; }
.nav__logo:hover .nav__px--me, .nav__logo:focus-visible .nav__px--me { width: 15px; margin-right: 10px; opacity: 1; }

/* project text plays when the text is on screen (.proj__info.is-in), whatever the image is doing */
.js .proj.reveal.in .proj__info:not(.is-in) > * { opacity: 0; transform: translateY(18px); }
.js .proj.reveal.in .proj__info:not(.is-in) .proj__title .w > span { transform: translateY(105%); }
.js .proj.reveal .proj__info > .proj__title { opacity: 1 !important; transform: none !important; }

/* ---------- Page transition: a quiet cross-fade (the nav stays put) ---------- */
main, .footer--light { transition: opacity .32s cubic-bezier(.4, 0, .2, 1), transform .32s cubic-bezier(.4, 0, .2, 1); }
.is-leaving main, .is-leaving .footer--light { opacity: 0; transform: translateY(-10px); }
.is-arriving main, .is-arriving .footer--light { opacity: 0; transform: translateY(14px); transition: none; }
.is-arriving.is-arrived main, .is-arriving.is-arrived .footer--light { opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
/* a thin line runs across the top while the next page loads */
html::after { content: ''; position: fixed; left: 0; top: 0; z-index: 200; height: 2px; width: 100%; background: var(--pink);
  transform: scaleX(0); transform-origin: left; pointer-events: none; }
html.is-leaving::after { transform: scaleX(.8); transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.dl { display: none !important; }                       /* the old block-wipe overlay is retired */

/* ---------- About spread: very light motion ---------- */
.ed__title .w, .ed__italic .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.ed__title .w > span, .ed__italic .w > span { display: inline-block; }
.js .ed__title.reveal, .js .ed__italic.reveal { opacity: 1; transform: none; }
.js .ed__title.reveal .w > span { transform: translateY(105%); transition: transform var(--title-dur, .9s) var(--title-ease, cubic-bezier(.16, 1, .3, 1)) calc(var(--k) * .06s); }
.js .ed__title.reveal.in .w > span { transform: none; }
.js .ed__italic.reveal .w > span { opacity: 0; transform: translateY(.3em); transition: opacity .7s ease calc(.2s + var(--k) * .035s), transform .9s cubic-bezier(.16, 1, .3, 1) calc(.2s + var(--k) * .035s); }
.js .ed__italic.reveal.in .w > span { opacity: 1; transform: none; }
/* the photo frame opens upward as it arrives */
.js .ed__photo.reveal .ed__frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s cubic-bezier(.16, 1, .3, 1); }
.js .ed__photo.reveal.in .ed__frame { clip-path: inset(0); }
.ed__frame, .ed__italic { will-change: translate; }
/* the bracketed notes read left-aligned: no stretched gaps or stranded last words */
.ed__note--block { text-align: left; }
@media (prefers-reduced-motion: reduce) { .js .ed__title.reveal .w > span, .js .ed__italic.reveal .w > span { opacity: 1; transform: none; transition: none; } .js .ed__photo.reveal .ed__frame { clip-path: none; } }

/* ---------- Page transition v3: a dark panel sweeps up with the destination's name ---------- */
:root { --pt-ease: cubic-bezier(.76, 0, .24, 1); --pt-bg: #0b0b0b; }
html:not(.is-arriving)::after { display: none; }        /* retire the thin loading line; ::after now carries the arriving label */
.is-leaving main, .is-leaving .footer--light { opacity: 1; transform: translateY(-40px); transition: transform .65s var(--pt-ease); }
/* leaving: panel rises from the bottom, the name rises into the middle */
.pt { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--pt-bg); color: #fff;
  transform: translateY(100%); transition: transform .65s var(--pt-ease); }
.pt.is-in { transform: none; }
.pt__label { display: inline-flex; align-items: center; gap: .35em; overflow: hidden; font-family: var(--display); font-weight: 600;
  font-size: clamp(36px, 5vw, 80px); letter-spacing: -.04em; line-height: 1.1; padding: 0 var(--pad, 24px); text-align: center; }
.pt__label i { flex: none; width: .28em; height: .28em; background: var(--pink); transform: scale(0); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1) .45s; }
.pt__label > span { transform: translateY(110%); transition: transform .7s cubic-bezier(.16, 1, .3, 1) .25s; }
.pt.is-in .pt__label i { transform: none; }
.pt.is-in .pt__label > span { transform: none; }
/* arriving: the same panel and name start on screen, then sweep off the top */
html.is-arriving::before { content: ''; position: fixed; inset: 0; z-index: 300; background: var(--pt-bg); transform: none; }
html.is-arriving::before { pointer-events: none; }
html.is-arriving[data-pt]::after { content: attr(data-pt); position: fixed; inset: 0; z-index: 301; display: grid; place-items: center;
  color: #fff; font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5vw, 80px); letter-spacing: -.04em; pointer-events: none; }
html.is-arriving.is-arrived::before { transform: translateY(-100%); transition: transform .8s var(--pt-ease) .15s; }
html.is-arriving.is-arrived::after { opacity: 0; transform: translateY(-40px); transition: opacity .35s ease, transform .5s var(--pt-ease); }
.is-arriving main, .is-arriving .footer--light { opacity: 0; transform: translateY(60px); transition: none; }
.is-arriving.is-arrived main, .is-arriving.is-arrived .footer--light { opacity: 1; transform: none;
  transition: opacity .7s ease .35s, transform 1s cubic-bezier(.16, 1, .3, 1) .3s; }
html.is-arriving[data-pt]::after { left: 0; top: 0; width: 100%; height: 100%; background: none; transform: none; transform-origin: center; text-align: center; padding: 0 var(--pad, 24px); }
html.is-arriving.is-arrived::after { transform: translateY(-40px); }
/* no destination name on the transition panel: just the panel */
.pt__label, html.is-arriving[data-pt]::after { display: none !important; }

/* About opening, a touch quicker: the line, highlights and full stop follow the faster heading */
.pg.is-in .pg__role span { animation: pg-word .6s var(--ease) calc(1.6s + var(--i) * 50ms) both; }
.pg.is-in .pg__mark::before { animation: pg-wipe .5s cubic-bezier(.7, 0, .2, 1) calc(1.6s + var(--i) * 50ms) both; }
.pg.is-in .pg__mark b { animation: pg-word .3s var(--ease) calc(1.9s + var(--i) * 50ms) both; }
.pg.is-in .pg__line .pg__stop { animation-delay: 1.7s; }
.pg.is-in .pg__plain { animation-duration: .5s; }

/* About spread with the real photo: a portrait frame on the left, heading and notes beside it */
.ed__photo { grid-column: 1 / span 5; }
.ed__frame { aspect-ratio: 4 / 5; }
.ed__frame img { object-position: 50% 40%; }
.ed__head { grid-column: 7 / -1; }
@media (max-width: 900px) { .ed__photo, .ed__head { grid-column: 1 / -1; } }

/* ---------- Type pairing: grotesk for headings and UI, serif for reading text ---------- */
.intro__text p, .proj__desc, .case-hero__desc, .contact__lede, .section-head--play p, .journey__item span,
.more__body p, .pg__role, .process__text, .steps__item[title] + *, .exp__desc {
  font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.intro__text p { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.4; }
.proj__desc, .proj:nth-child(n) .proj__desc { font-size: 18px; line-height: 1.45; }
.case-hero__desc, .contact__lede { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.45; }
.section-head--play p { font-size: 17px; }
.journey__item span { font-size: 17px; line-height: 1.45; }
.pg__role { font-size: 18px; letter-spacing: 0; }
.pg__role .pg__mark b { font-family: var(--sans); font-size: .9em; }  /* the highlighted phrases stay in the grotesk */
/* headings: Neue Haas–style weight and tracking */
h1, h2, h3, .proj__title, .case-hero__title, .contact__title, .ed__title, .intro__title { font-family: var(--display); }
.intro__title, .section-head h2, .contact__title, .case-hero__title, .case-next strong, .proj__title, .pg__title { font-weight: 600; letter-spacing: -.045em; }
.intro__text p.mono, p.mono, .mono { font-family: var(--mono); } /* small labels stay in the mono */

/* reading text in Aeonik: a touch tighter and a size down from the serif settings */
.intro__text p, .proj__desc, .case-hero__desc, .contact__lede, .section-head--play p, .journey__item span, .pg__role, .exp__desc { letter-spacing: -.01em; }
.intro__text p { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.45; }
.proj__desc, .proj:nth-child(n) .proj__desc { font-size: 17px; }
.intro__text .intro__hint, .intro__hint { font-size: 11px; letter-spacing: .06em; line-height: 1.2; }
