/* Ambika — portfolio v3. Serif sentence with work set into it, then the work. */

:root {
  --ink: #111;
  --muted: #666;
  --line: #e6e6e6;
  --accent: #9d00d1;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol { margin: 0; padding: 0; font-weight: 400; font-size: inherit; }
ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* Words never split mid-word; headings balance their lines and paragraphs
   avoid leaving one word alone on the last line. */
h1, h2, h3, h4, p, li, dd, dt, blockquote, figcaption, summary { overflow-wrap: normal; word-break: normal; hyphens: manual; }
h1, h2, h3, h4, .split__title, .pj-label, .ch__statement, .pj-statement, .contact h2 { text-wrap: balance; }
p, li, dd, blockquote, figcaption { text-wrap: pretty; }
/* Short labels and details: balance so no word is left alone. */
.pj-meta dd, .facts dd, .card p, .tags li, .timeline p, .pj-card .meta, .pj-cap, .split__text { text-wrap: balance; }

.skip { position: absolute; left: 12px; top: -40px; background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 99px; z-index: 10; }
.skip:focus { top: 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--gutter);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav__mark { display: grid; place-items: center; width: 40px; height: 40px; }
/* The pup doodle: peeks over a line, blinks, wags its ears and waves.
   Used as the logo, in the intro and the footer. */
.pup { overflow: visible; }
.pup path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pup__eye, .pup__nose { fill: var(--ink); }
/* Filled parts: apricot fur, brown ears, cream snout. The outline stays ink. */
.pup .pup__face, .pup .pup__pawfill { fill: #f6cfa4; }
.pup .pup__ear { fill: #b9764a; }
.pup .pup__muzzle { fill: #fff3e3; stroke: var(--ink); stroke-width: 1.2; }
.pup .pup__curl { stroke-width: 1.3; }
.pup__shine { fill: #fff; }
.pup__eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.pup .pup__tongue { fill: #f59bb4; stroke-width: 1; }
.pup__blush { fill: #f6b8cc; opacity: .8; }
.pup__head { animation: peek 4.5s ease-in-out infinite; }
.pup__ear { transform-box: fill-box; animation: wag 1.8s ease-in-out infinite; }
.pup__ear--l { transform-origin: 90% 5%; }
.pup__ear--r { transform-origin: 10% 5%; animation-delay: -.9s; }
.pup__paw { transform-box: fill-box; transform-origin: 30% 100%; animation: wave 2.2s ease-in-out infinite; }
.pup:hover .pup__paw, a:hover > .pup .pup__paw, .foot__brand:hover .pup__paw { animation-duration: .6s; }
@keyframes blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0deg); } 15% { transform: rotate(-16deg); } 30% { transform: rotate(10deg); } 45% { transform: rotate(-12deg); } }
@keyframes peek { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes wag { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }
.pup__ear--r { animation-name: wag-r; }
@keyframes wag-r { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(7deg); } }

/* The paper clip logo: same ink style as the pup. It rocks, gives a springy
   hop now and then, and spins when you hover the logo. */
.clip { overflow: visible; }
.clip path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.clip__wire { stroke: var(--ink); stroke-width: 1.45; }
.clip__metal { stroke: #f59bb4; stroke-width: .6; }
.clip__clip { transform-box: fill-box; transform-origin: 50% 50%; animation: clip-bob 4s ease-in-out infinite; }
a:hover > .clip .clip__clip { animation: clip-spin .9s var(--ease); }
@keyframes clip-bob { 0%, 100% { transform: rotate(-5deg); } 40% { transform: rotate(4deg); } 70% { transform: rotate(-2deg); }
  77% { transform: translateY(-3px) rotate(-12deg); } 85% { transform: translateY(0) rotate(5deg); } 92% { transform: rotate(-3deg); } }
@keyframes clip-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
/* Little interactions (set up in v3.js; all skipped with reduced motion). */
.card__media { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: border-radius .5s var(--ease), transform .5s var(--ease); }
.card.is-tilting .card__media { transition: border-radius .5s var(--ease), transform .08s linear; }
.card__glare { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.28), rgba(255,255,255,0) 45%); }
.card:hover .card__glare { opacity: 1; }
.pill { transition: background .2s, color .2s, transform .35s var(--ease); }
.hero em .ch { display: inline-block; }
.hero em.wiggle .ch { animation: hop .5s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes hop { 0%, 100% { transform: none; } 40% { transform: translateY(-.14em) rotate(-6deg); } 70% { transform: translateY(.02em) rotate(2deg); } }
.spark { cursor: pointer; position: relative; }
.woof { position: absolute; left: 50%; top: -.2em; font: 500 .28em/1 var(--sans, sans-serif); letter-spacing: .02em; background: var(--ink); color: #fff;
  padding: .35em .7em; border-radius: 999px; white-space: nowrap; pointer-events: none; animation: woof 1.1s var(--ease) forwards; }
.heart { position: absolute; left: 50%; top: 30%; font-size: .3em; pointer-events: none; animation: float 1.2s ease-out forwards; }
@keyframes woof { 0% { opacity: 0; transform: translate(-50%, 10%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -60%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -110%); } }
@keyframes float { to { opacity: 0; transform: translate(var(--dx), -2.4em) rotate(var(--dr)); } }
/* Push pin cursor in the doodles' ink style: red, tilting pink over anything clickable. The needle tip is the hotspot. */
body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='rotate(0 5 28)' stroke='%23111' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M5 28 L15.3 17.7' stroke-linecap='round'/%3E%3Cpath d='M11 14 L19 22 L21 20 L20 16 L25 11 L27 11.5 L28.5 10 L22 3.5 L20.5 5 L21 7 L16 12 L12 11 L10 13 Z' fill='%23ef5b5b'/%3E%3Cpath d='M14 13.5 L18.5 18' fill='none' stroke='%23fff' stroke-width='1.2' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") 5 28, auto; }
a, button, label, summary, .spark, .card, .obj, .pup, [role="button"] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='rotate(-14 5 28)' stroke='%23111' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M5 28 L15.3 17.7' stroke-linecap='round'/%3E%3Cpath d='M11 14 L19 22 L21 20 L20 16 L25 11 L27 11.5 L28.5 10 L22 3.5 L20.5 5 L21 7 L16 12 L12 11 L10 13 Z' fill='%23f59bb4'/%3E%3Cpath d='M14 13.5 L18.5 18' fill='none' stroke='%23fff' stroke-width='1.2' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") 5 28, pointer; }
input, textarea { cursor: text; }

/* Hero: the rotating word. */
.swap { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; height: 1.12em; padding: 0 .08em; margin: 0 -.1em;
  transition: width .6s var(--ease); box-sizing: content-box; }
.swap__w { display: inline-block; white-space: nowrap; transition: transform .55s var(--ease), opacity .45s; }
.swap__w.is-out { transform: translateY(-105%); opacity: 0; }
.swap__w.is-below { transform: translateY(105%); opacity: 0; transition: none; }
.swap__measure { position: absolute; visibility: hidden; white-space: nowrap; pointer-events: none; }
/* Hero lines rise into place on load. */
.hero .line { clip-path: inset(-1em -1em -.14em -1em); }
.is-settled .hero .line { clip-path: none; }
.rise { display: inline-block; transform: translateY(115%); transition: transform 1.2s var(--ease) var(--d, 0ms); }
.is-loaded .rise { transform: none; }

/* Images unveil with an upward wipe, settling from a slight zoom. */
.wipe { clip-path: inset(100% 0 0 0); transition: clip-path 1.15s var(--ease); }
.wipe.is-shown { clip-path: inset(0 0 0 0); }
.wipe img, .wipe video { scale: 1.12; transition: scale 1.6s var(--ease), opacity .45s, transform .8s var(--ease); }
.wipe.is-shown img, .wipe.is-shown video { scale: 1; }

/* About desk: the objects can be picked up and moved. */
.obj { touch-action: none; user-select: none; -webkit-user-drag: none; }
.obj img { pointer-events: none; }
.obj.is-held { animation-play-state: paused; transform: rotate(calc(var(--r) * -1)) scale(1.12); z-index: 5; transition: transform .25s var(--ease); }
.obj.is-held img { filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .2)); }
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--ink); z-index: 60; pointer-events: none; }.nav__mark svg { width: 66px; height: 42px; }
.nav nav { display: flex; gap: 8px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 4px 16px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-family: var(--serif); font-size: 17px;
  transition: background .25s, color .25s;
}
.pill:hover { background: var(--ink); color: #fff; }
/* Ovals rather than capsules: the radius is a share of the box, not a fixed round end. */
.pill { border-radius: 50%; padding: 6px 20px; }
.pill--big { min-height: 72px; padding: 10px 44px; font-size: 24px; }
.pill--small { min-height: 40px; padding: 6px 26px; font-size: 15px; }

/* Hero sentence */
.hero {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(72px, 16vh, 180px) var(--gutter) clamp(88px, 18vh, 200px);
  font-family: var(--serif);
  font-size: clamp(34px, 6.2vw, 92px);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-align: center;
}
/* Each line is ordinary centred text (not a flex row), so words wrap together
   and the no-orphan glue holds across the italic words. */
.line { display: block; }
.spark { vertical-align: middle; }
/* The sentence arrives a line at a time. */
.js .line { opacity: 0; transform: translateY(.4em); animation: rise .9s var(--ease) forwards; }
.js .line:nth-child(2) { animation-delay: .12s; }
.js .line:nth-child(3) { animation-delay: .24s; }
.js .line:nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* A small rounded image sitting in the text; it opens up on hover. */
.chip {
  display: inline-block; flex: none;
  width: 1.9em; height: .82em;
  border-radius: 999px; overflow: hidden;
  background: var(--bg, #eee);
  transition: width .5s var(--ease);
}
.chip img { width: 100%; height: 100%; object-fit: cover; }
/* Pattern only, no lettering: show the top-left corner of the artwork. */
.chip__zoom { object-position: 0 0; transform: scale(2.2); transform-origin: 0 0; }
.chip:hover { width: 2.6em; }

.spark { display: inline-block; width: 1.8em; height: 1.15em; margin-top: -.2em; }
.spark svg { width: 100%; height: 100%; }
.spark .pup path { stroke-width: 1.2; }

/* Section heads: title left, a small note right, a rule underneath. */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin: 0 var(--gutter) clamp(28px, 4vw, 48px);
}
.section-title { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.01em; }
.section-note { color: var(--muted); font-size: 14px; }
.section-link { font-family: var(--serif); font-size: 18px; padding: 4px 0; border-bottom: 1px solid currentColor; }
.section-link:hover { color: var(--accent); font-style: italic; }

/* Split intro: big serif title on the left, text on the right, lots of air. */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 6vw, 120px);
  padding: 0 clamp(0px, 8vw, 140px);
}
.split--section { min-height: 60vh; padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(40px, 8vh, 96px); margin: 0 var(--gutter); }
.split__title { font-family: var(--serif); font-size: clamp(40px, 9vw, 136px); line-height: .98; letter-spacing: -.03em; }
.split__text { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; max-width: 30em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li { padding: 4px 14px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; }

/* Work: two columns with a wide gutter, inset from the edges; the right one starts lower. */
.work { padding-bottom: clamp(120px, 20vh, 220px); }
.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 9vw, 180px);
  padding: 0 clamp(16px, 9vw, 180px);
  align-items: start;
}
.col { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 160px); }
.col--low { padding-top: clamp(80px, 16vw, 280px); }
.card { display: block; }
.card__media {
  position: relative; aspect-ratio: var(--ratio, 4 / 3); overflow: hidden;
  border-radius: clamp(16px, 2vw, 28px);
  background: var(--bg, #f3f3f3);
}
/* Guideline slides: zoom past the slide's own title and page text to the artwork. */
.card__media img.is-slide { transform: scale(1.62); transform-origin: 90% 53%; }
.card:hover .card__media img.is-slide:not(.card__alt) { transform: scale(1.68); }
.card__media img.card__alt.is-slide { transform: scale(1.5); transform-origin: 90% 53%; }
.card:hover .card__media img.card__alt.is-slide { transform: scale(1.5); }

/* A small label that slides up on hover. */
.card__media::after {
  content: "View project";
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font: 400 15px/1.2 var(--serif);
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .4s var(--ease);
}
.card:hover .card__media::after, .card:focus-visible .card__media::after { opacity: 1; transform: none; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .8s var(--ease); }
.card__media img.is-contain { inset: 7%; width: 86%; height: 86%; object-fit: contain; }
.card__media { transition: border-radius .5s var(--ease), transform .5s var(--ease); }
.card:hover .card__media { border-radius: clamp(28px, 4vw, 56px); }
.card:hover .card__media img:not(.card__alt) { transform: scale(1.05); }
.card__alt { opacity: 0; transform: scale(1.04); }
/* Logos sit centred with plenty of room; the brand colour fills the card. */
.card__media img.is-logo { inset: 18% 14%; width: 72%; height: 64%; object-fit: contain; }
.card:hover .card__media img.is-logo { opacity: 0; transform: scale(.96); }
.card__media--line { box-shadow: inset 0 0 0 1px var(--line); }
/* The Shelf Life logo file has a pale 2px line on its left edge; trim a hair off every side. */
img[src$="project-01/logo.webp"] { clip-path: inset(1.2%); }
.card:hover .card__alt, .card:focus-visible .card__alt { opacity: 1; transform: none; }
.card__text { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.card h3 { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 14px; text-align: right; }

/* Services */
.services { padding-bottom: clamp(96px, 16vh, 180px); }
/* Services: rows that open. Built on <details>, so it works without JS. */
.rows { margin: 0 var(--gutter); border-top: 1px solid var(--ink); }
.rows details { border-bottom: 1px solid var(--ink); }
.rows summary {
  display: grid; grid-template-columns: 4em minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: clamp(18px, 2.6vw, 30px) 0;
  cursor: pointer; list-style: none;
}
.rows summary::-webkit-details-marker { display: none; }
.rows__no { color: var(--muted); font-size: 14px; }
.rows h3 { font-family: var(--serif); font-size: clamp(34px, 5.4vw, 76px); line-height: 1; letter-spacing: -.02em; transition: color .3s; }
.rows summary:hover h3, .rows details[open] h3 { color: var(--accent); font-style: italic; }
/* A plus drawn from two bars; the upright one folds flat when open. */
.plus { position: relative; width: clamp(28px, 3vw, 40px); height: clamp(28px, 3vw, 40px); border: 1px solid var(--ink); border-radius: 50%; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40%; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.rows details p { max-width: 34em; margin: -4px 0 0 calc(4em + 16px); padding-bottom: clamp(20px, 2.6vw, 32px); color: var(--muted); font-size: 18px; }
details[open] p { animation: open .5s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }

/* Contact */
/* The ending: one full block of colour. */
.contact {
  display: flex; flex-direction: column; align-items: center; gap: 36px;
  margin: 0 var(--gutter);
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0;
  background: var(--accent); color: #fff;
  text-align: center;
}
.contact h2 { font-family: var(--serif); font-size: clamp(40px, 7vw, 104px); line-height: 1.04; letter-spacing: -.02em; }
.contact em { color: #ffe480; }
.contact .pill { border-color: #fff; }
.contact .pill:hover { background: #fff; color: var(--accent); }
.contact :focus-visible { outline-color: #fff; }

/* Footer: a block of yellow with the sparkle and three short link lists. */
.foot {
  display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 28px;
  padding: clamp(40px, 5vw, 64px) var(--gutter);
  background: #ffe480; border-top: 1px solid var(--ink);
  font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2;
}
.foot__brand { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.foot__brand svg { width: 96px; height: 62px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot a { padding: 2px 0; }
.foot a:hover { font-style: italic; color: var(--accent); }

.nav .pill[aria-current="page"] { background: var(--ink); color: #fff; }
mark { background: #fff3b0; color: inherit; border-radius: 3px; padding: 0 .15em; }

/* ── About page ─────────────────────────────────────────────── */
.ab-hero {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: clamp(24px, 4vw, 64px);
  padding: clamp(56px, 12vh, 140px) var(--gutter) clamp(48px, 8vh, 96px);
}
.ab-hero__title { font-family: var(--serif); font-size: clamp(40px, 7vw, 108px); line-height: 1.02; letter-spacing: -.02em; }
.ab-hero__title .line { justify-content: flex-start; }
.ab-hero__title em { color: var(--accent); }
.ab-hero__portrait { aspect-ratio: 4 / 5; border-radius: clamp(20px, 3vw, 40px); overflow: hidden; background: #ffe480; }
.ab-hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.ab-intro {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px);
  margin: 0 var(--gutter); padding: clamp(28px, 4vw, 48px) 0 clamp(96px, 16vh, 180px);
  border-top: 1px solid var(--ink);
}
.ab-intro__lead { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -.01em; max-width: 26em; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; }

.ab-off { padding-bottom: clamp(96px, 16vh, 180px); }
.ab-off__text { margin: 0 var(--gutter) clamp(28px, 4vw, 44px); max-width: 30em; font-size: 18px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: 0 var(--gutter); padding: 0; list-style: none; }
.tiles figure { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: clamp(14px, 1.8vw, 24px); overflow: hidden; background: var(--bg); }
.tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tiles img.is-contain { object-fit: contain; padding: 12%; }
.tiles li:hover img { transform: scale(1.06) rotate(-2deg); }
.tiles p { margin-top: 10px; font-family: var(--serif); font-size: 18px; }

.ab-list { padding-bottom: clamp(96px, 16vh, 180px); }
.timeline { margin: 0 var(--gutter); border-top: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 9em minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline span { color: var(--muted); font-size: 14px; }
.timeline h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); }
.timeline p { color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grid paper. */
.paper {
  background-color: #fff;
  background-image:
    linear-gradient(#e2e2e2 1px, transparent 1px),
    linear-gradient(90deg, #e2e2e2 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* The desk: objects scattered around a centred paragraph. */
.desk { position: relative; min-height: min(100svh, 980px); display: grid; place-items: center; padding: 120px var(--gutter); overflow: hidden; }
.desk__text { position: relative; z-index: 2; max-width: 17em; text-align: center; font-family: var(--serif); font-size: clamp(22px, 2.3vw, 38px); line-height: 1.22; letter-spacing: -.015em; }
.desk__text em { color: var(--accent); }
.desk__text .pill { margin-top: clamp(28px, 4vw, 48px); background: #fff; }
.desk__text .pill:hover { background: var(--ink); }

.obj {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: 1; margin: 0;
  transform: rotate(var(--r));
  animation: bob 6s ease-in-out infinite;
  transition: transform .5s var(--ease);
}
.obj:nth-of-type(2) { animation-delay: -1.2s; }
/* The top three and bottom three each sit in their own band on phones (see media query). */
.obj:nth-of-type(3) { animation-delay: -2.4s; }
.obj:nth-of-type(4) { animation-delay: -3.6s; }
.obj:nth-of-type(5) { animation-delay: -4.8s; }
.obj:nth-of-type(6) { animation-delay: -.6s; }
.obj img { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .12)); }
.obj:hover { transform: rotate(0deg) scale(1.08); z-index: 3; }
/* A photo gets a white border and a small tape strip. */
.obj--photo img { padding: 8% 8% 22%; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); filter: none; }
.obj--photo::before { content: ""; position: absolute; left: 50%; top: -10px; width: 40%; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 228, 128, .85); }
.obj--me img { border-radius: 50%; background: #ffe480; }
.obj figcaption {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(-4deg);
  padding: 2px 12px; border: 1px solid var(--ink); border-radius: 50%;
  background: #fff; font-family: var(--serif); font-style: italic; font-size: clamp(13px, 1.1vw, 17px); white-space: nowrap;
}
@keyframes bob { 50% { translate: 0 -8px; } }

.facts--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 var(--gutter); border-top: 1px solid var(--ink); }
.facts--row div { grid-template-columns: 1fr; gap: 4px; border: 0; padding: 14px 0; }

/* Contact: art on grid paper, a form on the right. */
.reach { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.reach__art { position: relative; display: grid; place-items: center; min-height: 560px; border-right: 1px solid var(--ink); overflow: hidden; }
/* Phone doodle in the contact section: same ink style as the pup. It rings,
   blinks and waves. */
.phone-doodle { width: min(52%, 300px); margin-top: 110px; overflow: visible; }
.phone-doodle path, .phone-doodle rect { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone-doodle .phone-doodle__case { fill: #9fd3f0; }
.phone-doodle .phone-doodle__screen { fill: #fff3e3; stroke-width: 1.5; }
.phone-doodle__btn { fill: #fff3e3; stroke: var(--ink); stroke-width: 1.5; }
.phone-doodle__eye { fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.phone-doodle__shine { fill: #fff; }
.phone-doodle__blush { fill: #f6b8cc; opacity: .85; }
.phone-doodle__hand { fill: #9fd3f0; stroke: var(--ink); stroke-width: 1.8; }
.phone-doodle__body { transform-box: fill-box; transform-origin: 50% 90%; animation: ring 2.6s ease-in-out infinite; }
.phone-doodle__arm { transform-box: fill-box; transform-origin: 0% 100%; animation: wave 2.2s ease-in-out infinite; }
.phone-doodle__rings path { stroke: var(--accent); animation: ringlines 2.6s ease-in-out infinite; }
.reach__art:hover .phone-doodle__body { animation-duration: .9s; }
@keyframes ring { 0%, 55%, 100% { transform: rotate(0deg); } 60% { transform: rotate(-5deg); } 66% { transform: rotate(5deg); } 72% { transform: rotate(-4deg); } 78% { transform: rotate(3deg); } 84% { transform: rotate(0deg); } }
@keyframes ringlines { 0%, 50%, 100% { opacity: 0; } 62%, 82% { opacity: 1; } }
.bubble {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%) rotate(-6deg);
  padding: 1.1em 2.2em; border: 1.5px solid var(--accent); border-radius: 50%;
  background: #f3dcff; color: var(--accent);
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.1; text-align: center; white-space: nowrap;
  box-shadow: 8px 8px 0 #ffe480;
}
.reach__form { display: flex; flex-direction: column; gap: 28px; padding: clamp(28px, 5vw, 64px); }
.reach__form h2 { font-family: var(--serif); font-size: clamp(56px, 8vw, 120px); line-height: .95; letter-spacing: -.03em; }
.reach__form label { display: grid; gap: 10px; }
.reach__form label span { padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); }
.reach__form input, .reach__form textarea { width: 100%; padding: 4px 0; border: 0; background: none; font: 400 18px/1.4 var(--sans); color: var(--ink); resize: vertical; }
.reach__form input::placeholder, .reach__form textarea::placeholder { color: #9a9a9a; }
.reach__form input:focus, .reach__form textarea:focus { outline: none; }
.reach__form label:focus-within span { border-color: var(--accent); color: var(--accent); }
.reach__form .pill { align-self: flex-start; background: #fff; cursor: pointer; }
.reach__form .pill:hover { background: var(--ink); color: #fff; }
.reach__note { min-height: 1.4em; color: var(--muted); font-size: 14px; }
.reach__email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: -8px 0 8px; }
.reach__email a { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; color: var(--ink); border-bottom: 1.5px solid currentColor; overflow-wrap: anywhere; }
.reach__email a:hover { color: var(--accent); }
.reach__copy { font: 500 13px/1 var(--sans); padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); transition: background .2s, color .2s; }
.reach__copy:hover, .reach__copy.is-done { background: var(--ink); color: #fff; }
.foot__mail { overflow-wrap: anywhere; }

/* ── Project page ───────────────────────────────────────────── */
.pj-head { padding: clamp(24px, 4vh, 40px) var(--gutter) clamp(56px, 10vh, 120px); }
.pj-head .split { min-height: min(72vh, 720px); }
.pj-head .split__title { font-size: clamp(40px, 8vw, 128px); min-width: 0; }
.split > * { min-width: 0; }
.pj-head .pj-meta { margin: 0 clamp(0px, 8vw, 140px); }
.pj-back { display: inline-block; margin-bottom: 20px; padding: 6px 0; color: var(--muted); font-size: 14px; }
.pj-back:hover { color: var(--ink); }
.pj-kicker { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.pj-title { font-family: var(--serif); font-size: clamp(48px, 9vw, 140px); line-height: .98; letter-spacing: -.03em; }
.pj-intro { margin-top: clamp(20px, 3vw, 32px); max-width: 30em; font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.3; }
.pj-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: clamp(32px, 5vw, 56px) 0 0; padding-top: 16px; border-top: 1px solid var(--ink); }
.pj-meta dt { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.pj-meta dd { margin: 0; font-size: 15px; }

/* Body sits on the same inset as the header, with generous gaps between sections. */
.pj-body { padding: 0 calc(var(--gutter) + clamp(0px, 8vw, 140px)) clamp(120px, 20vh, 220px); }
/* Spacing system, three steps:
   L  before a new topic (text, fold, statement, or a group with its own heading)
   M  between a section's text and the photos that belong to it
   S  between photos in the same set, so a set reads as one group */
.pj-body { --L: clamp(72px, 10vw, 160px); --M: clamp(28px, 3.5vw, 48px); --S: clamp(12px, 1.6vw, 20px); }
.pj-media { margin: 0; }
.pj-body > * { margin-top: 0; margin-bottom: 0; }
.pj-body > * + * { margin-top: var(--L); }
.pj-body > :is(.pj-text, .pj-fold) + :is(.pj-media, .pj-set) { margin-top: var(--M); }
.pj-body > :is(.pj-media, .pj-set) + :is(.pj-media, .pj-set) { margin-top: var(--S); }
.pj-body > .pj-fold + .pj-fold { margin-top: 0; border-top: 0; }
.pj-hero, .pj-big { margin-left: calc(-1 * clamp(0px, 8vw, 140px)); margin-right: calc(-1 * clamp(0px, 8vw, 140px)); }
/* Cards with a photo on top (e.g. personas). */
.pj-card.has-img { padding-top: clamp(12px, 1.4vw, 18px); background: #eaf6f5; border-color: transparent; }
.pj-card__img { aspect-ratio: 389 / 449; margin-bottom: 18px; border-radius: clamp(12px, 1.4vw, 18px); overflow: hidden; background: #fff; }
.pj-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.pj-card.has-img h4 { font-size: clamp(24px, 2.2vw, 30px); }
.pj-img { position: relative; overflow: hidden; border-radius: clamp(16px, 2vw, 28px); background: var(--bg, #f3f3f1); }
.pj-img img, .pj-img video { display: block; width: 100%; height: auto; }
.pj-img[style*="--ratio"] video { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.pj-img[style*="--ratio"] { aspect-ratio: var(--ratio); }
.pj-img[style*="--ratio"] img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.pj-img.is-contain img { object-fit: contain; }
/* A guideline slide: its own shape, white, with a hairline so it reads as a page. */
.pj-img.is-page { background: #fff; border: 1px solid var(--line); }
.pj-img.is-contain[style*="--ratio"] img { inset: 5%; width: 90%; height: 90%; }
/* Visual first: the cover runs big, text stays short. */
.pj-hero .pj-img[style*="--ratio"] { aspect-ratio: 16 / 9; }
.pj-hero .pj-img[style*="--ratio:3/2"] { aspect-ratio: 3 / 2; }
.pj-img.is-slide img { transform: scale(1.62); transform-origin: 90% 53%; }
.pj-prose { font-size: 17px; color: #333; }
.pj-label { font-size: clamp(22px, 2vw, 30px); }

.more summary { display: inline-block; margin-top: 10px; cursor: pointer; list-style: none; font-family: var(--serif); font-style: italic; color: var(--accent); border-bottom: 1px solid currentColor; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { display: none; }
.more p { margin-top: 1em; }

.pj-fold { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.pj-fold + .pj-fold { margin-top: 0 !important; border-top: 0; }
.pj-fold summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.pj-fold summary::-webkit-details-marker { display: none; }
.pj-fold summary:hover .pj-label, .pj-fold[open] .pj-label { color: var(--accent); font-style: italic; }
.pj-fold[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
/* Folded content sits in the same right-hand column as every other text block. */
.pj-fold__body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(24px, 4vw, 64px);
  padding-bottom: 28px; animation: open .5s var(--ease);
}
.pj-fold__body > * { grid-column: 2; }
.pj-fold__body > .pj-cards { grid-column: 1 / -1; }
.pj-fold__body .pj-prose { margin: 0; }
.pj-fold .pj-list { border-top: 1px solid var(--line); }

/* Logos at the top of a project get plenty of air around them. */
.pj-hero .pj-img.is-contain[style*="--ratio"] img { inset: 22% 24%; width: 52%; height: 56%; }
.pj-hero .pj-img { box-shadow: inset 0 0 0 1px var(--line); }
.pj-media figcaption, .pj-cap { margin-top: 10px; color: var(--muted); font-size: 14px; }

.pj-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(24px, 4vw, 64px); }
.pj-label { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.01em; }
.pj-prose { max-width: 36em; font-size: 18px; }
.pj-prose p + p { margin-top: 1em; }

.pj-grid { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.pj-masonry { columns: 4 220px; column-gap: clamp(12px, 1.6vw, 20px); }
.pj-masonry .pj-img { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 20px); }
.pj-stack { display: grid; gap: clamp(12px, 1.6vw, 20px); }

.pj-cards { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.pj-card { padding: clamp(18px, 2vw, 28px); border: 1px solid var(--ink); border-radius: clamp(16px, 2vw, 28px); }
.pj-card .eb { color: var(--muted); font-size: 13px; }
.pj-card h4 { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.pj-card .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pj-card p { margin-top: 10px; }
.pj-card blockquote { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--accent); }

.pj-list { border-top: 1px solid var(--ink); }
.pj-list li { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.pj-list li span { color: var(--muted); font-size: 14px; padding-top: 3px; }
.pj-list b { font-weight: 500; }

.pj-statement { padding: clamp(24px, 6vw, 80px) 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(36px, 6vw, 88px); line-height: 1.05; letter-spacing: -.02em; color: var(--accent); }

/* Native diagram of forms: one coloured outline per tile. */
.pj-shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.pj-shape { margin: 0; padding: clamp(18px, 3vw, 40px) clamp(18px, 3vw, 40px) 16px; border-radius: clamp(16px, 2vw, 28px); background: #f6f4ef; }
.pj-shape svg { display: block; width: 100%; height: auto; overflow: visible; }
.pj-shape path { stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; transition: transform .5s var(--ease); transform-origin: 50% 100%; }
.pj-shape:hover path { transform: rotate(-4deg) translateY(-3px); }
.pj-shape figcaption { margin-top: 14px; font-family: var(--serif); font-size: 18px; text-align: center; }
.pj-tags { margin-top: 20px; }
/* Design process: numbered steps joined by a line, each with its colour dot. */
.pj-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pj-step { position: relative; padding: 24px 18px 22px; border: 1px solid var(--ink); border-radius: clamp(16px, 2vw, 24px); background: #fff; }
.pj-step::before { content: ""; position: absolute; top: 24px; right: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.pj-step__no { display: block; font-family: var(--serif); font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pj-step__title { margin: 22px 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; }
.pj-step p { font-size: 15px; color: #444; line-height: 1.45; }
.pj-step + .pj-step::after { content: ""; position: absolute; left: calc(-1 * clamp(12px, 1.6vw, 20px)); top: 31px; width: clamp(12px, 1.6vw, 20px); height: 1px; background: var(--ink); }
.pj-step a { display: block; color: inherit; }
.pj-step { transition: transform .3s var(--ease), box-shadow .3s; }
.pj-step:hover { transform: translateY(-3px); box-shadow: 0 8px 0 -2px var(--c); }
@media (max-width: 1000px) { .pj-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pj-step + .pj-step::after { display: none; } }

/* Chapter heading for each step: a rule, its number and colour, then the step name. */
.pj-chapter { display: flex; align-items: baseline; gap: 18px; padding-top: 22px; border-top: 2px solid var(--ink); scroll-margin-top: 110px; }
.pj-chapter::before { content: ""; align-self: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c); flex: none; }
.pj-chapter__no { font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); color: var(--muted); font-variant-numeric: tabular-nums; }
.pj-chapter__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 80px); line-height: 1; letter-spacing: -.02em; }
.pj-body > .pj-chapter + * { margin-top: var(--M); }
@media (max-width: 520px) { .pj-steps { grid-template-columns: 1fr; } }

/* Flip book: a spread split into two pages; the turning page is a 3D leaf. */
.flip { outline-offset: 8px; }
.flip__book { position: relative; aspect-ratio: 2 / 1; perspective: 2600px; cursor: pointer; border-radius: 6px; box-shadow: 0 30px 60px rgba(40, 20, 60, .18), 0 2px 0 rgba(0, 0, 0, .05); }
.flip__half, .flip__face { background-size: 200% 100%; background-repeat: no-repeat; background-color: #f3f3f1; }
.flip__half { position: absolute; top: 0; bottom: 0; width: 50%; }
.flip__half--l { left: 0; border-radius: 6px 0 0 6px; }
.flip__half--r { right: 0; border-radius: 0 6px 6px 0; }
.flip__leaf { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; transform-style: preserve-3d; }
.flip__leaf.is-fwd { left: 50%; transform-origin: left center; }
.flip__leaf.is-back { left: 0; transform-origin: right center; }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__face--back { transform: rotateY(180deg); }
/* A soft shadow sweeps across the page as it turns. */
.flip__face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 40%); opacity: 0; }
.is-turning .flip__face::after { animation: pageshade .9s ease-in-out; }
.is-fwd.is-turning { animation: turnfwd .9s cubic-bezier(.45, .05, .35, 1) forwards; }
.is-back.is-turning { animation: turnback .9s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes turnfwd { to { transform: rotateY(-180deg); } }
@keyframes turnback { to { transform: rotateY(180deg); } }
@keyframes pageshade { 50% { opacity: 1; } }
.flip__spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 48px; transform: translateX(-50%); z-index: 3; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .13) 50%, transparent); }
.flip__bar { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 20px; }
.flip__count { min-width: 5em; text-align: center; font-family: var(--serif); font-size: 18px; font-variant-numeric: tabular-nums; }
.flip__btn { min-width: 64px; cursor: pointer; background: #fff; }
.flip__btn:disabled { opacity: .3; cursor: default; }
.flip__btn:disabled:hover { background: #fff; color: var(--ink); }

/* A poem keeps its line breaks, set a little larger in the serif. */
.pj-poem { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45; }
.pj-poem p + p { margin-top: 1.1em; }

.pj-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: 28px; }
.pj-swatch i { display: block; aspect-ratio: 4 / 3; border-radius: clamp(16px, 2vw, 28px); background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pj-swatch h4 { margin: 10px 0 2px; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.pj-swatch p { color: var(--muted); font-size: 13px; }

.pj-app { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: clamp(20px, 3vw, 40px); background: var(--bg, #f3f3f1); }
.pj-phone { width: min(360px, 80vw); aspect-ratio: 9 / 19; border: 8px solid #111; border-radius: 44px; overflow: hidden; background: #fff; }
.pj-phone iframe { width: 100%; height: 100%; border: 0; display: block; }

.pj-next { display: block; margin: 0 var(--gutter) clamp(64px, 10vh, 120px); padding-top: 20px; border-top: 1px solid var(--ink); }
.pj-next span { color: var(--muted); font-size: 14px; }
.pj-next strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 104px); line-height: 1; letter-spacing: -.02em; transition: color .3s; }
.pj-next:hover strong { color: var(--accent); font-style: italic; }

/* Gentle fade up as things arrive (only when JS is on). */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .ab-hero, .ab-intro, .pj-text, .pj-app { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; padding: 0; gap: 20px; }
  .split--section, .pj-head .split { min-height: 0; padding-top: 40px; padding-bottom: 48px; }
  .pj-head .pj-meta, .pj-hero, .pj-big { margin-left: 0; margin-right: 0; }
  .pj-body { padding-left: var(--gutter); padding-right: var(--gutter); }
  /* Desk on phones: objects ring the text, smaller, with room above and below. */
  .desk { padding: calc(64px + 36vw) var(--gutter) 44vw; min-height: 0; }
  .obj { width: 24vw; }
  .obj--top { top: 64px; }
  .obj--top:nth-of-type(1) { left: 8%; }
  .obj--top:nth-of-type(2) { left: 64%; width: 20vw; }
  .obj--low { top: auto; bottom: 3%; }
  .obj--low:nth-of-type(3) { left: 2%; width: 34vw; }
  .obj--low:nth-of-type(4) { left: 52%; width: 44vw; }
  .obj figcaption { font-size: 12px; }
  .facts--row { grid-template-columns: 1fr 1fr; }
  .reach { grid-template-columns: 1fr; }
  .reach__art { min-height: 380px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .phone-doodle { width: 46%; margin-top: 96px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .ab-hero__portrait { max-width: 320px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .pj-meta { grid-template-columns: minmax(0, 1fr); }
  .card__text { flex-direction: column; align-items: flex-start; gap: 2px; }
  .card p { text-align: left; }
  .pj-grid, .pj-cards { grid-template-columns: 1fr; }
  .pj-shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-fold__body { grid-template-columns: 1fr; }
  .pj-fold__body > * { grid-column: 1; }
  .pj-phone { justify-self: center; }
  .grid { grid-template-columns: 1fr; gap: 48px; }
  .col--low { padding-top: 0; }
  .card__media::after { display: none; }
  .rows summary { grid-template-columns: 2.4em minmax(0, 1fr) auto; }
  .rows details p { margin-left: calc(2.4em + 16px); font-size: 16px; }
  .nav .pill { padding: 4px 12px; font-size: 15px; }
}
/* Tablets: a narrower paragraph so the objects keep their distance,
   and the project details in two roomy columns instead of four tight ones. */
@media (min-width: 721px) and (max-width: 1100px) {
  .desk__text { max-width: 14.5em; }
  .pj-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .line { opacity: 1; transform: none; }
}

/* ── Photo & Film page ─────────────────────────────────────────────── */
.films, .photos { margin: 0 var(--gutter); padding: 0 clamp(0px, 8vw, 140px); }
.photos { padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(120px, 20vh, 220px); }
.films__title { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em; margin: 0 0 clamp(24px, 3vw, 40px); }
.film { margin: 0; }
.films__pair { display: grid; gap: clamp(56px, 8vw, 120px); margin-top: clamp(56px, 8vw, 120px); }
.film__poster, .film__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: clamp(16px, 2vw, 28px); background: #111; }
.film__poster { padding: 0; border: 0; cursor: pointer; }
.film__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.film__poster:hover img, .film__poster:focus-visible img { transform: scale(1.04); filter: brightness(.82); }
.film__play { position: absolute; left: 50%; top: 50%; width: clamp(64px, 7vw, 96px); aspect-ratio: 1; margin: calc(clamp(64px, 7vw, 96px) / -2) 0 0 calc(clamp(64px, 7vw, 96px) / -2);
  display: grid; place-items: center; border-radius: 50%; background: #fff; transition: transform .45s var(--ease); }
.film__play svg { width: 40%; height: 40%; margin-left: 8%; fill: var(--ink); }
.film__poster:hover .film__play { transform: scale(1.12); }
.film.is-soon .film__poster { cursor: default; }
.film.is-soon .film__play { width: auto; aspect-ratio: auto; margin: 0; transform: translate(-50%, -50%); padding: 10px 20px; border-radius: 999px; font-size: 14px; }
.film.is-soon .film__play svg { display: none; }
.film.is-soon .film__play::after { content: "Coming soon"; }
.film.is-soon .film__poster:hover img { transform: none; filter: none; }
.film.is-soon .film__poster:hover .film__play { transform: translate(-50%, -50%); }
.film__frame iframe, .film__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.film__meta h3 { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); letter-spacing: -.01em; }
.film__meta p { color: var(--muted); font-size: 14px; }
.film__credits { max-width: 46em; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.shots { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 140px); }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: clamp(12px, 1.4vw, 20px); }
/* Portraits: two side by side, or a single one centred. */
.shot.is-tall { width: min(58%, 640px); margin: 0 auto; }
.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.shot-pair .shot.is-tall { width: 100%; margin: 0; }
.shot img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 12, .94); }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__img { max-width: 88vw; max-height: 86vh; border-radius: 12px; object-fit: contain; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: none; color: #fff; font: 400 22px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.lightbox__btn:hover { background: #fff; color: var(--ink); }
.lightbox__close { top: 20px; right: 20px; font-size: 28px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .shot.is-tall { width: 78%; }
  .shot-pair .shot.is-tall { width: 100%; }
  .films, .photos { padding-left: 0; padding-right: 0; }
}
/* Four menu pills: keep each label on one line and let them tighten on phones. */
.nav .pill { white-space: nowrap; }
@media (max-width: 560px) {
  .nav nav { gap: 5px; }
  .nav .pill { min-height: 32px; padding: 4px 10px; font-size: 13px; }
  .films__pair { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}

/* About desk: the two dogs share one object and one "my team" sticker, centred under both. */
.obj__pair { display: flex; align-items: flex-end; gap: 6%; }
.obj--pair .obj__pair img { width: auto; min-width: 0; }
.obj--pair .obj__pair img:first-child { flex: 1.25 1 0; transform: rotate(3deg); }
.obj--pair .obj__pair img:last-child { flex: 1 1 0; transform: rotate(-3deg); }

/* Posters are printed pieces: square corners, not the site's rounded frames. */
[data-project="posters"] .pj-body .pj-img { border-radius: 0; }
