/* ==========================================================================
   Corporate Casual® — site stylesheet
   Single source of truth for type, colour, spacing and component styles.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "PP Neue Gstaad";
  src: url("../assets/fonts/PPNeueGstaad-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Neue Gstaad";
  src: url("../assets/fonts/PPNeueGstaad-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Neue Gstaad";
  src: url("../assets/fonts/PPNeueGstaad-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Neue Gstaad";
  src: url("../assets/fonts/PPNeueGstaad-RegularItalic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "PP Neue Gstaad";
  src: url("../assets/fonts/PPNeueGstaad-BoldItalic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --ink: #000;
  --paper: #fff;
  --blue: #4f86ef;
  --chip: #d5d5d5;
  --hairline: rgba(0, 0, 0, .14);
  --hint: #a8a8a8;
  --cursor-move: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2732%27%20height%3D%2732%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cg%20fill%3D%27%23000%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.1%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M16%201.2%2022.4%208.2h-3.6v4.4h-5.6V8.2H9.6z%27%2F%3E%3Cpath%20d%3D%27M16%2030.8%209.6%2023.8h3.6v-4.4h5.6v4.4h3.2z%27%2F%3E%3Cpath%20d%3D%27M1.2%2016%208.2%209.6v3.6h4.4v5.6H8.2v3.2z%27%2F%3E%3Cpath%20d%3D%27M30.8%2016%2023.8%2022.4v-3.6h-4.4v-5.6h4.4V9.6z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 16 16, move;


  --gutter: clamp(9px, 1.07vw, 17px);
  --grid-gap: var(--gutter);   /* the margin is the spacing rule, everywhere */

  --fs-nav: clamp(10.5px, .86vw, 13.1px);
  /* chip line + its padding + the slot's own padding, top and bottom: what
     the sticky bar occupies, and what anything under it has to clear. */
  --nav-h: calc(var(--fs-nav) * 1.8 + var(--gutter) * 2);
  --fs-body: clamp(15px, 1.32vw, 21px);
  --fs-lede: clamp(17px, 1.58vw, 25px);
  --fs-list: clamp(13px, 1.02vw, 16px);
  --fs-micro: clamp(11px, .85vw, 14px);
  --fs-footer: clamp(11.5px, .88vw, 14px);
  --fs-hint: clamp(11px, .88vw, 14px);
  --fs-card-title: clamp(20px, 1.9vw, 30px);
  --fs-card-body: clamp(12px, 1vw, 15px);

  --r-chip: 2px;        /* barely there, but not a hard corner */
  --r-card: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --roll-ease: cubic-bezier(.33, .9, .28, 1);

  --stack: "PP Neue Gstaad", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--stack);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  font-size: var(--fs-body);
  line-height: 1.22;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, not hidden: hidden makes the body a scroll container, which
     silently breaks every position: sticky on the page. */
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }   /* let the <img> be the real layout box */
source { display: none; }        /* …and stop <source> becoming a grid item */
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
p { margin: 0 0 .75em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Layout --------------------------------------------------------------- */
.page { padding: var(--gutter) var(--gutter) 0; }

/* Header plus hero fill exactly one screen. svh, not dvh or vh, so the blue
   never overshoots when mobile browser chrome collapses. */
.fold {
  display: flex;
  flex-direction: column;
  /* the screen, less the gutter and the nav that sits above this */
  min-height: calc(100vh - var(--gutter) - var(--nav-h));
  min-height: calc(100svh - var(--gutter) - var(--nav-h));
}
.stripe { padding-inline: var(--gutter); }

/* --- Navigation ----------------------------------------------------------- */
/* Sticks to the top of the window for the whole page. It has to be a child of
   .page, not of <header>: sticky moves inside its parent's box, and a parent
   only as tall as the nav itself gives it nowhere to go.
   The min-height reserves the chips' exact height, so nothing shifts on load. */
.nav-slot {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: calc(var(--fs-nav) * 1.22 + 9px);
  /* Out to the window on both sides so the chips keep their margin, but with
     no plate of its own — the page is already white, and a bar drawn on top of
     white is only there to hide things, which is what made it show. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: var(--gutter);   /* the same margin under the bar as around it */
  margin-top: calc(var(--gutter) * -1);
}
.nav { display: flex; gap: 4px; align-items: stretch; flex-wrap: wrap; }
/* The CV is not part of the site's own navigation, so it stands apart from it. */
.nav__item--lock { margin-left: auto; gap: .45em; }

.nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  padding: .26em .62em .32em;
  background: var(--chip);
  border-radius: var(--r-chip);
  font-size: var(--fs-nav);
  font-weight: 400;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background-color .26s var(--ease), color .26s var(--ease);
}
.nav__item:hover { background: var(--blue); color: #fff; }

/* The brief arrow, next to the project it belongs to. */
.nav__brief {
  padding: .26em .45em .32em;
  background: var(--blue);
  color: #fff;
}

.nav__brief svg {
  width: 1.05em; height: 1.05em;
  transition: transform .34s var(--ease);
}
.nav__brief:hover svg { transform: scale(1.75); }
.nav__brief[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__brief[aria-expanded="true"]:hover svg { transform: rotate(180deg) scale(1.75); }

/* CV — behind a passphrase. The padlock is the whole affordance: the chip
   says what it is and that you cannot just have it. */
.nav__item--lock { gap: .55em; }
.nav__lock { width: .82em; height: .96em; margin-top: -.08em; }
.nav__item[hidden] { display: none; }

.nav__home { letter-spacing: 0; }
.nav__home .reg { font-size: .95em; vertical-align: super; margin-left: .24em; }
.nav__key {
  /* Stands where the CV chip stood: the chip is pushed to the end of the row,
     and without this the field falls back in beside Off Cuts. */
  margin-left: auto;
  width: 9.5em;
  padding: 4px 10px 5px;
  background: var(--chip);
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: var(--fs-nav);
  letter-spacing: .04em;
  color: var(--ink);
}
.nav__key::placeholder { color: var(--hint); letter-spacing: .04em; }
.nav__key.is-wrong { animation: navShake .32s var(--ease); }
@keyframes navShake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.nav__item[aria-current="page"] { background: var(--blue); color: #fff; }
/* Where you already are: it reads as a control, so it should not offer a
   text cursor and a selection the way a paragraph would. */
.nav__crumb { cursor: default; }
.nav__item[aria-current="page"]:hover { background: var(--blue); }

/* --- Intro copy ----------------------------------------------------------- */
.intro { max-width: 108ch; margin: clamp(4px, .4vw, 7px) 0 var(--gutter); }
.intro--lede { font-size: var(--fs-lede); max-width: 96ch; }
.intro h1 { font-size: var(--fs-lede); font-weight: 700; margin: 0 0 .4em; letter-spacing: -.015em; }
.intro p:last-child { margin-bottom: 0; }

/* --- Copyable email ------------------------------------------------------- */
.copy {
  position: relative;
  color: var(--blue);
  text-decoration: none;
  cursor: pointer;
  transition: color .18s var(--ease);
}
/* Blue is the resting state; pointing at it settles to ink, so the address
   reads as something you are about to act on rather than a link to follow. */
.copy[data-copy]:hover,
.copy[data-copy]:focus-visible { color: var(--ink); }

/* "Click to copy" sits alongside on hover, never in the layout. Pointer
   devices only: there is no hover on a phone, and the off-screen label
   would otherwise extend the page's scrollable width. */
@media (hover: hover) {
.copy[data-copy]::after {
  content: "Click to copy";
  position: absolute;
  left: 100%; top: 50%;
  margin-left: .28em;
  transform: translate(-3px, -50%);
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  color: var(--hint);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .28s var(--ease);
}
.copy[data-copy]:hover::after, .copy[data-copy]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.copy[data-copy].is-copied::after { content: "Copied"; opacity: 1; transform: translate(0, -50%); }
}

/* --- Hero ----------------------------------------------------------------
   A blue plate with the wordmark running across it and a few pieces of the
   studio's own work floating on top. The pieces sit above the type, the way a
   collage stacks — and they are the layer you can actually grab.
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  flex: 1;
  min-height: clamp(280px, 42svh, 520px);
  background: var(--blue);
  margin-bottom: var(--grid-gap);
  overflow: hidden;
  touch-action: pan-y;
}
/* Isolated, and with no background of its own: inside this group the backdrop
   starts empty, so the white logo differences against nothing and stays white
   — and inverts only where a collage piece is actually under it. The blue
   plate is on .hero, outside the group, and is never blended. */
.hero__stage {
  position: absolute; inset: 0;
  isolation: isolate;
  user-select: none; -webkit-user-select: none;
}

/* The marquee. The track holds the logo twice over, so sliding it exactly half
   its width lands the second set where the first was — seamless, and it never
   needs to know how wide the artwork ended up.

   It rides ABOVE the collage and blends by difference: the white logo inverts
   whatever it crosses, so it stays legible over a piece instead of hiding it,
   and over the bare plate it simply reads white. Nothing in here takes the
   pointer — the pieces underneath are what you grab. */
.hero__marquee {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  overflow: hidden;
  z-index: 3;
  mix-blend-mode: difference;
  pointer-events: none;
}
.hero__logo {
  display: block;
  height: clamp(38px, 9vw, 130px);
  width: auto;
  /* The gap belongs to the artwork's scale, not the page's font size. */
  margin-right: clamp(64px, 12vw, 200px);
  flex: none;
}
.hero__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Add your own -------------------------------------------------------
   Anything dropped here is kept in this browser and nowhere else. It is the
   collage, not the site: no upload, no server, nothing anyone else can see.
   ------------------------------------------------------------------------ */
.hero__add {
  position: absolute;
  right: var(--gutter); bottom: var(--gutter);
  z-index: 4;
}
/* A die-cut sticker: white pill, a second white ring peeled around it, sitting
   on the plate at an angle the way one would if you had actually stuck it on. */
.hero__addBtn {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: clamp(12px, 1.5vw, 20px) clamp(20px, 2.4vw, 34px);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(15px, 1.5vw, 24px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-align: left;
  transform: rotate(-7deg);
  /* The tilt swings the corners further down than out — about 8px below the
     layout box against 4px to the side at this size — so the sticker is
     lifted by its own measure to sit evenly off both edges. */
  margin-bottom: .3em;
  box-shadow:
    0 0 0 6px var(--paper),
    0 0 0 8px rgba(0, 0, 0, .06),
    0 14px 30px rgba(0, 20, 60, .28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.hero__addPlus { width: 1.9em; height: 1.9em; flex: none; }
.hero__addBtn:hover {
  transform: rotate(-3deg) scale(1.04);
  box-shadow:
    0 0 0 6px var(--paper),
    0 0 0 8px rgba(0, 0, 0, .06),
    0 18px 38px rgba(0, 20, 60, .34);
}
.hero__addBtn:active { transform: rotate(-7deg) scale(.98); }
/* While a file is over the plate. */
.hero.is-catching::after {
  content: "";
  position: absolute; inset: 10px;
  border: 2px dashed rgba(255, 255, 255, .85);
  pointer-events: none;
  z-index: 5;
}

/* Yours carry a way to take them off again. */
.drift__drop {
  position: absolute;
  top: -10px; right: -10px;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.drift:hover .drift__drop,
.drift__drop:focus-visible { opacity: 1; }

/* --- Hero collage --------------------------------------------------------
   .drift is placed and dragged; the picture inside it does the idle bobbing,
   so a drag never fights the animation for the transform property.
   ------------------------------------------------------------------------ */
.drift {
  position: absolute;
  left: var(--left); top: var(--top);
  width: var(--w);
  z-index: 2;
  cursor: var(--cursor-move);
  touch-action: none;
  will-change: transform;
}
.drift img {
  display: block;
  width: 100%; height: auto;
  animation: bob var(--dur, 9s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 12px 26px rgba(0, 20, 60, .22));
  pointer-events: none;               /* the wrapper takes the drag */
}
@keyframes bob {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(-2.5%); }
  50%      { transform: rotate(calc(var(--rot, 0deg) + 1.6deg)) translateY(2.5%); }
}

/* --- Cross-document transitions ------------------------------------------
   The cover a tile shows and the cover on its project page share a
   view-transition-name, so one morphs into the other on navigation.
   Browsers without the API just navigate; nothing else changes.
   ------------------------------------------------------------------------ */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .38s; }

::view-transition-group(*) {
  animation-duration: .58s;
  animation-timing-function: var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: .001ms; }
}

/* --- Project grid --------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.tile {
  /* Per-tile art direction — override these three inline on any tile.
     --tile-bg  colour behind cut-out artwork
     --tile-fit cover (fill and crop) or contain (show the whole image)
     --tile-pos focal point of the crop, e.g. 50% 30% */
  --tile-bg: #111;
  --tile-fit: cover;
  --tile-pos: 50% 50%;
  position: relative;
  display: block;
  aspect-ratio: 3 / 3.55;
  overflow: hidden;
  background: var(--tile-bg);
  color: #fff;
  text-decoration: none;
  border-radius: 0;
  transform: translateZ(0);
  transition: transform .42s var(--ease), border-radius .42s var(--ease);
}
.tile__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: var(--tile-fit);
  object-position: var(--tile-pos);
  transform: scale(1.001);
  transition: transform .5s var(--ease), filter .42s var(--ease);
  will-change: filter, transform;
}
/* A plain darkening pass so the copy holds against whatever is underneath.
   The interest comes from the reel behind it, not from an effect on top. */
.tile__scrim {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .42s var(--ease);
  background: linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.34) 46%, rgba(0,0,0,.62) 100%);
}

/* A second still, cross-fading in on hover — a closer look at the work rather
   than a caption promising one. A tile without one just shows its cover. */
.tile__hover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .42s var(--ease);
}
.tile:hover .tile__hover,
.tile:focus-visible .tile__hover { opacity: 1; }

/* A tile that moves: the film is what you see, and hovering stops it to show
   the still underneath. The still keeps the view-transition name, so the
   morph into the project page still has an image to work with. */
.tile__film {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity .42s var(--ease);
}
.tile:hover .tile__film,
.tile:focus-visible .tile__film { opacity: 0; }

.tile__body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .5em;
  padding: clamp(12px, 1.35vw, 22px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .34s var(--ease), transform .42s var(--ease);
}
.tile__tags { display: flex; flex-wrap: wrap; gap: 5px; }
/* Same chip as the navigation: sharp by default, the bevel is the hover
   state. Here they sit on artwork, so the plate is paper rather than silver. */
.tag {
  font-size: var(--fs-nav);
  line-height: 1;
  padding: .42em .8em .48em;
  border-radius: var(--r-chip);
  background: var(--paper);
  color: var(--ink);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-radius .26s var(--ease);
}
.tile:hover .tag, .tile:focus-visible .tag { border-radius: 11px; }
.tile__title {
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -.012em;
}
.tile__desc {
  font-size: var(--fs-card-body);
  line-height: 1.3;
  max-width: 30ch;
  color: rgba(255,255,255,.88);
  margin: 0;
}

/* Hover / focus — corners round, the tile lifts a little, the reel runs */
.tile:hover, .tile:focus-visible { transform: scale(1.05); border-radius: var(--r-card); z-index: 2; }
.tile:hover .tile__media, .tile:focus-visible .tile__media { transform: scale(1.04); }
.tile:hover .tile__scrim, .tile:focus-visible .tile__scrim,
.tile:hover .tile__body,  .tile:focus-visible .tile__body { opacity: 1; }
.tile:hover .tile__body,  .tile:focus-visible .tile__body { transform: none; }

.tile--soon { cursor: default; }

/* --- About: column lists -------------------------------------------------- */
.columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 48px);
  font-size: var(--fs-list);
  margin: clamp(40px, 8vw, 130px) 0 clamp(40px, 6vw, 90px);
  align-items: start;
}
.columns h2 {
  font-size: inherit; font-weight: 400; margin: 0 0 .1em;
  text-transform: uppercase; letter-spacing: .035em;
}
.columns ul { list-style: none; margin: 0; padding: 0; }
.columns li { line-height: 1.42; }
.columns sup { font-size: .62em; vertical-align: super; }

.portrait {
  margin-top: clamp(20px, 2.6vw, 44px);
  width: clamp(120px, 15vw, 210px);
  height: auto;
  cursor: var(--cursor-move);
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: pixelated;
  will-change: transform;
}

.portrait--floating { position: fixed; z-index: 40; margin: 0; }

/* --- Footer --------------------------------------------------------------- */
.footer { margin-top: var(--gutter); padding-bottom: var(--gutter); }

.cc-mark {
  position: relative;
  width: min(92%, 1280px);
  margin: 0 auto clamp(28px, 4vw, 70px);
  aspect-ratio: 6028 / 2789;  /* trimmed artwork ratio — no dead space */
}
/* The plate is the only thing that moves; the box above it stays put, so
   pointerenter / pointerleave fire once each instead of chattering as the
   plate leans out from under the cursor. */
.cc-mark__plate {
  position: absolute; inset: 0;
  will-change: transform;
  transform-origin: 50% 50%;
}
.cc-mark__img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.footer__meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  font-size: var(--fs-footer);
  line-height: 1.32;
}
.footer__meta > :last-child { text-align: right; }
.footer__btn { text-align: center; transition: opacity .18s var(--ease); }
.footer__btn:hover { opacity: .55; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; }

/* --- Acknowledgement of Country ------------------------------------------
   Pushes up from under the silver CC instead of covering the page.
   ------------------------------------------------------------------------ */
.footer__lower {
  transition: background-color .45s var(--ease), padding .45s var(--ease);
  padding-bottom: 0;
}
.footer__lower.is-open {
  background: var(--blue);
  padding: clamp(18px, 2vw, 34px) clamp(16px, 2vw, 34px) clamp(16px, 1.6vw, 26px);
}

.ack {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.is-open .ack { grid-template-rows: 1fr; }
.ack__inner {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.ack__title {
  font-size: var(--fs-footer);
  margin: 0 0 clamp(20px, 3vw, 48px);
}
.ack__body {
  max-width: 62ch;
  margin: 0 auto clamp(26px, 4vw, 60px);
  font-size: var(--fs-body);
  line-height: 1.28;
}
/* The button stays exactly where it was and becomes the cross, so closing the
   panel never asks the pointer to go looking for the control. */
.footer__lower.is-open .footer__btn { font-size: 0; }
.footer__lower.is-open .footer__btn::after {
  content: "\2715";
  font-size: var(--fs-footer);
  line-height: 1;
}
.footer__lower.is-open .copy { color: var(--ink); }
.footer__lower.is-open .copy[data-copy]::after { color: rgba(0,0,0,.45); }

/* --- Inline expanding list (Select Clients) ------------------------------ */
.more-list {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.more-list[data-open="true"] { grid-template-rows: 1fr; }
.more-list > ul { overflow: hidden; list-style: none; margin: 0; padding: 0; }
.more-toggle {
  color: var(--blue);
  transition: opacity .18s var(--ease);
  line-height: 1.42;
}
.more-toggle:hover { opacity: .65; }

/* --- Toast ---------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px;
  transform: translate(-50%, 14px);
  background: var(--ink); color: var(--paper);
  padding: 9px 16px 10px; border-radius: 999px;
  font-size: var(--fs-micro);
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .28s var(--ease);
  z-index: 60;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --- Project page --------------------------------------------------------- */
.nav__crumb { background: var(--blue); color: #fff; border-radius: var(--r-chip); }

.project__head { margin: var(--gutter) 0; }
.project__title {
  font-size: clamp(28px, 3.6vw, 58px);
  font-weight: 700; letter-spacing: -.022em; line-height: 1.02; margin: 0;
}
.project__aside { max-width: 56ch; }
.project__intro { font-size: var(--fs-list); margin: 0 0 .7em; }
.project__intro:last-child { margin-bottom: 0; }

/* Hover a key and its values drop out underneath it. Nothing moves in the
   layout — the panel is taken out of flow. */
.facts { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: clamp(12px, 1.4vw, 22px); }
.fact { position: relative; }
.fact__key {
  display: inline-flex; align-items: center;
  padding: 4px 10px 5px;
  background: var(--chip);
  border-radius: var(--r-chip);
  font-size: var(--fs-nav);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-radius .26s var(--ease), background-color .26s var(--ease), color .26s var(--ease);
}
.fact:hover .fact__key,
.fact:focus-within .fact__key { background: var(--blue); color: #fff; border-radius: 11px; }

.fact__val {
  position: absolute;
  top: calc(100% + 5px); left: 0;
  z-index: 20;
  display: grid;
  gap: .25em;
  min-width: max-content;
  padding: .7em .9em .8em;
  background: var(--paper);
  border-radius: 9px;
  box-shadow: 0 1px 0 rgba(0,0,0,.1), 0 14px 34px rgba(0,0,0,.14);
  font-size: var(--fs-list);
  line-height: 1.3;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .26s var(--ease), visibility .2s;
}
.fact:hover .fact__val,
.fact:focus-within .fact__val { opacity: 1; visibility: visible; transform: none; }

.project__cover { width: 100%; height: auto; }

.shot { margin-top: var(--gutter); }
.shot__img { width: 100%; height: auto; }
/* Renders floating on a blank background sit a little small, so they read as
   objects rather than filling their cell edge to edge. */
.is-shirt  { width: 88%; }
.is-shorts { width: 62%; }

.project__next {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; font-size: var(--fs-list);
  border-top: 1px solid var(--hairline);
  margin-top: var(--gutter); padding-top: var(--gutter);
}
.project__next a { text-decoration: none; }
.project__next a:hover { color: var(--blue); }

/* --- Project page, version 2 ---------------------------------------------
   Hierarchy comes from contrast, not from size alone: the pattern shots run
   full-bleed and loud, the product renders sit small and quiet on a narrow
   measure with air around them.
   ------------------------------------------------------------------------ */
.proj2 .project__title { font-size: clamp(30px, 4.4vw, 74px); }

/* Break out of the page gutter, edge to edge. */
.bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: clamp(30px, 4vw, 72px);
}
.bleed__img { width: 100%; height: auto; display: block; }

.chapter { margin-bottom: clamp(48px, 7vw, 130px); }
.chapter__head {
  display: flex;
  align-items: baseline;
  gap: .7em;
  margin-bottom: clamp(12px, 1.6vw, 26px);
}
.chapter__num {
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  color: var(--hint);
}
.chapter__title {
  font-size: clamp(19px, 2.1vw, 34px);
  font-weight: 700;
  letter-spacing: -.018em;
  margin: 0;
}
.chapter__team {
  font-size: var(--fs-list);
  color: var(--hint);
}

.detail { display: grid; gap: var(--grid-gap); margin-bottom: clamp(24px, 3vw, 54px); }
.detail--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail__img { width: 100%; height: auto; }

/* Product renders: small, centred, generously spaced. */
.kit {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(28px, 6vw, 110px);
  padding: clamp(10px, 2vw, 40px) 0 clamp(20px, 3vw, 50px);
}
.kit__img { height: auto; }
.kit__img.is-shirt  { width: clamp(96px, 15vw, 215px); }
.kit__img.is-shorts { width: clamp(64px, 9.5vw, 138px); }

@media (max-width: 640px) {
  .kit { gap: 18px; }
}

/* --- Jersey pair ----------------------------------------------------------
   One file per jersey, shown twice. On the right the whole garment floats on
   black, doing nothing. On the left the same file is blown up to a detail,
   holds, fades out, moves while it is invisible, and fades back in — it never
   travels across the picture. Both panes share one ratio, so the pair reads as
   a diptych however wide the column gets.

   The areas the left pane visits live in js/nbl.js; tools/hotspots.html is a
   picker for setting them by clicking on the garment.
   ------------------------------------------------------------------------ */
/* White page, black boxes: each half is its own plate, and the paper between
   them is what separates one garment from the next. */
/* Paper between the header picture and the first garment, so the run reads as
   its own chapter rather than running straight on from the cover. */
.jersey-run--spaced { margin-top: var(--gutter); }
.jersey { margin-top: var(--gutter); }
.jersey-run > .jersey:first-child { margin-top: 0; }
.jersey__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

/* Left — the window. Clicking it moves on to the next detail. */

.jersey__zoom {
  position: relative;
  aspect-ratio: 20 / 17;
  margin: 0;
  background: #000;
  cursor: pointer;
}

/* --- The project brief --------------------------------------------------
   An arrow next to the title, and a sheet of frosted glass over the page with
   everything on it. No panel, no border, no close button in a corner: the
   words sit straight on the blur and anywhere off them puts it away.
   ------------------------------------------------------------------------ */

.brief {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .38s var(--ease), visibility .38s;
  backdrop-filter: blur(34px) saturate(1.5) brightness(1.18);
  -webkit-backdrop-filter: blur(34px) saturate(1.5) brightness(1.18);
  background: rgba(255, 255, 255, .34);
}
.brief.is-open { opacity: 1; visibility: visible; }

/* No backdrop-filter (older Firefox): a plain sheet of paper instead. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .brief { background: rgba(255, 255, 255, .97); }
}

.brief__inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-content: space-between;
  gap: var(--gutter);
  min-height: 100%;
  /* clears the bar, which sits over the top of this */
  padding: calc(var(--nav-h) + var(--gutter)) var(--gutter) clamp(44px, 7vh, 96px);
  cursor: pointer;                 /* the whole sheet puts itself away */
}
.brief__inner > * { cursor: auto; }
/* The title sits at the top of the left column, the copy fills the right, and
   the list sits at the foot of it. */
.brief__head { grid-column: 1; grid-row: 1; }
.brief__title {
  font-size: clamp(24px, 3.2vw, 52px);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.02;
  margin: 0;
}
.brief__copy {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--fs-body);
  line-height: 1.26;
  max-width: 62ch;
}
.brief__copy p { margin: 0 0 1em; }
.brief__copy p:last-child { margin-bottom: 0; }

/* The key / value list, small and quiet, at the foot of the sheet. */
.brief__facts {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: clamp(20px, 4vw, 70px);
  row-gap: .28em;
  margin: 0;
  font-size: var(--fs-micro);
  line-height: 1.34;
  align-self: end;
}
.brief__facts dt { grid-column: 1; font-weight: 400; }
.brief__facts dd { grid-column: 2; margin: 0; }

/* Held still while the sheet is up: reading a fixed sheet with the page
   sliding about underneath is horrible. */
body.is-briefing { position: fixed; left: 0; right: 0; overflow: hidden; }

@media (max-width: 760px) {
  .brief__inner { grid-template-columns: 1fr; align-content: start; row-gap: 1.2em; }
  .brief__head, .brief__copy, .brief__facts { grid-column: 1; grid-row: auto; }
  .brief__facts { align-self: start; margin-top: 1em; }
}

/* --- Screen mockup ------------------------------------------------------
   A monitor drawn in CSS rather than composited into the picture: it stays
   sharp at any size, and the screenshot inside is the real file.
   ------------------------------------------------------------------------ */
.screen { display: grid; justify-items: center; }
.screen__bezel {
  width: min(100%, 1100px);
  padding: clamp(8px, 1vw, 16px);
  padding-bottom: clamp(20px, 2.4vw, 38px);
  border-radius: clamp(10px, 1.2vw, 20px);
  background: linear-gradient(180deg, #33363d 0%, #24262b 62%, #17181c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 22px 50px rgba(0, 20, 60, .26);
}
.screen__shot { display: block; width: 100%; height: auto; border-radius: 3px; }
.screen__neck {
  width: clamp(48px, 7vw, 96px);
  height: clamp(18px, 2.4vw, 40px);
  background: linear-gradient(180deg, #2b2d33, #1d1f23);
}
.screen__foot {
  width: clamp(130px, 19vw, 260px);
  height: clamp(7px, .9vw, 13px);
  border-radius: 0 0 40% 40% / 0 0 100% 100%;
  background: linear-gradient(180deg, #2b2d33, #141518);
  box-shadow: 0 8px 18px rgba(0, 20, 60, .2);
}

/* --- Slide shows --------------------------------------------------------
   One rule for anything that steps through pictures in a fixed window — the
   jersey close-ups and the campaign carousels both. It clips, it takes a
   click, and it leans towards you while the pointer is on it so it is clear
   which panel is the one you can work. Scale, not size, so nothing reflows.
   ------------------------------------------------------------------------ */
.jersey__zoom,
.wool__carousel {
  position: relative;
  overflow: hidden;
  transition: transform .42s var(--ease), border-radius .42s var(--ease);
  z-index: 1;
}
.jersey__zoom,
.wool__carousel { border-radius: 0; }
.jersey__zoom:hover,
.wool__carousel:hover {
  transform: scale(1.025);
  border-radius: var(--r-card);
  z-index: 2;
}

/* --- Slide markers -------------------------------------------------------
   The slots are the map; one bead travels between them. Present only while
   the pointer is on the pane — the rest of the time the picture is the point.
   ------------------------------------------------------------------------ */
.dots {
  --gap: 16px;
  --size: 7px;
  z-index: 2;
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: calc(var(--gap) - var(--size));
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease);
}
.dots__slot { padding: 0; }
.jersey__zoom:hover .dots,
.wool__carousel:hover .dots { opacity: 1; pointer-events: auto; }
.dots__slot {
  width: var(--size); height: var(--size);
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28);
}
.dots__bead {
  position: absolute;
  left: 0; top: 0;
  width: var(--size); height: var(--size);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28);
  transform: translateX(calc(var(--at, 0) * var(--gap)));
  transition: transform .5s cubic-bezier(.66, 0, .2, 1);
}
/* left/top put the image's own origin at the centre of the window; the
   negative translate then slides the chosen point of the image onto it. */
.jersey__zoom-img {
  position: absolute;
  left: 50%; top: 50%;
  max-width: none;               /* the reset's 100% cap is what it escapes */
  width: calc(var(--z, 3) * 100%);
  height: auto;
  transform: translate(calc(var(--x, 50) * -1%), calc(var(--y, 50) * -1%));
  /* Only the opacity moves. The jump to the next detail happens while the
     picture is invisible, so nothing is ever seen flying across the frame. */
  transition: opacity .5s linear;
}
.jersey__zoom-img.is-out { opacity: 0; }

/* Right — the whole garment. */
/* The garment, then who it is for, inside the one black plate. */
.jersey__full {
  position: relative;
  aspect-ratio: 20 / 17;
  background: #000;
  display: flex;
  flex-direction: column;
}
.jersey__id {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1.15em;
  margin: 0;
  padding: 0 12px clamp(14px, 1.8vw, 26px);
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
}
.jersey__id span + span {
  padding-left: 1.15em;
  border-left: 1px solid rgba(255, 255, 255, .45);
}
/* Padding plus object-fit: contain does the centring, and the garment is
   sized from whichever edge runs out first — so it cannot fall out of the
   square whatever shape the file is. */
.jersey__full-img {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 3.4% 3.4% 0;
  object-fit: contain;
  animation: jerseyFloat 9s ease-in-out infinite;
  will-change: transform;
}
@keyframes jerseyFloat {
  0%, 100% { transform: translateY(-.9%) rotate(-.35deg); }
  50%      { transform: translateY(.9%)  rotate(.35deg); }
}

/* --- Disney x Woolworths -------------------------------------------------
   The page is a stack of blocks that drop in as they arrive, with the discs
   drifting down past them. Nothing here is shared with the other project
   pages — swap it wholesale if the layout changes.
   ------------------------------------------------------------------------ */
/* The disc field is positioned against the page, so the page has to be the
   containing block for it. */
.page { position: relative; }
.wool { margin-top: var(--gutter); }
.wool__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: start;
}
.wool__block { margin-bottom: var(--grid-gap); }
.wool__img { width: 100%; height: auto; }


/* Drop in. Comes down from above and settles — the delay is per block, so a
   pair lands one after the other rather than together. */
[data-fall] {
  opacity: 0;
  transform: translateY(-38px);
  transition: opacity .55s var(--ease), transform .75s cubic-bezier(.17, .84, .26, 1);
  transition-delay: var(--fall-delay, 0s);
}
[data-fall].is-in { opacity: 1; transform: none; }

/* Carousel: the stills are stacked and one is shown at a time. Shape and
   behaviour come from .slides below, shared with the jersey panes. */
.wool__carousel {
  aspect-ratio: var(--ratio, 3 / 2);
  background: #f1f1f1;
}
.wool__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .65s var(--ease);
}
.wool__frame.is-on { opacity: 1; }
/* Slide markers are shared with the jersey pages — see .dots. */

/* The film. */
/* The player sits on the page, not in a black box: the frame is the picture's
   own edge, rounded, with the shadow doing the lifting. */
.wool__film { display: grid; place-items: center; }
.wool__video {
  display: block;
  width: 100%;
  /* the whole frame, inside the window, with the chrome and the nav allowed for */
  max-height: calc(100svh - 12rem);
  max-width: calc((100svh - 12rem) * 16 / 9);
  height: auto;
  border-radius: clamp(8px, 1vw, 18px);
  box-shadow: 0 18px 48px rgba(0, 20, 60, .22);
}
.wool__block { position: relative; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(22px, 5vw, 40px); }
  .project__head { grid-template-columns: 1fr; align-items: start; }
  }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* One column on phones — two is too cramped to read a project title in. */
  .grid { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 3 / 3.2; }
  .columns { grid-template-columns: 1fr; }
  /* Two square panes side by side leave nothing to look at on a phone. */
  .jersey__pair { grid-template-columns: 1fr; }
  .wool__pair { grid-template-columns: 1fr; }

    .footer__meta { grid-template-columns: 1fr; text-align: left; gap: 10px; }
  .footer__meta > :last-child { text-align: left; }
  .footer__btn { text-align: left; }
  .cc-mark { width: 100%; }
  /* Six pieces is a crowd on a phone; keep the three that carry the idea. */
  .drift--small { display: none; }

  .project__next { flex-direction: column; gap: 6px; }
}

/* Touch devices have no hover — reveal the card copy permanently. */
@media (hover: none) {
  .tile__scrim { opacity: 1; background: linear-gradient(180deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.52) 34%, rgba(0,0,0,.08) 72%); }
  .tile__body { opacity: 1; transform: none; }
  .tile__desc { display: none; }
  .tile { border-radius: var(--r-card); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .tile:hover, .tile:focus-visible { transform: none; }
}
