:root {
  --light: #fffce1;
  --color-surface-white: #fffce1;
  --accent: #f5451b;
  --dark: #151515; /* the flat dark the work and services fields were drawn in */
}

* {
  box-sizing: border-box;
  user-select: none;
}

/* Lenis smooth-scroll (recommended styles) */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

a {
  color: var(--color-surface-white);
  text-decoration: none;
}

/* The clip has to sit on <html>, not only on <body>. .star-layer is absolutely
   positioned, and because <body> is static its containing block is the initial
   one — so the oversized star escaped a clip set on <body> and widened the
   document on narrow screens. <html> is the scroller, so clipping here is what
   actually stops the sideways drag. `clip` rather than `hidden`: it pairs with
   overflow-y: visible, so it neither creates a scroll container nor breaks
   position: sticky or Lenis. */
html {
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  color: var(--light);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  background: #050505;
  overflow-x: clip;
}

/* ---------------------------------------------------------------------------
   Header — [menu + logo]  ·  [role label]  ·  [nav]
--------------------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  width: 100%;
  z-index: 20;
  /* Height is kept independent of font-size so the bar doesn't resize with the type. */
  height: clamp(4.29rem, 9.1vw, 6.18rem);
  font-size: clamp(0.56rem, 1.2vw, 0.8rem);
  letter-spacing: 0.28em;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: clamp(22px, 2.6vw, 32px);
  width: auto;
  display: block;
}

.role-label {
  letter-spacing: 0.28em;
  opacity: 0.85;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.4rem);
}

nav a {
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 1;
}

/* The section you are in is struck through — drawn as a rule behind the label
   rather than with text-decoration. The reveal script wraps each word in an
   inline-block span, and a decoration set on the link is never painted inside
   one of those: single-word items showed no line at all, and "Say hi" showed
   it only in the gap between the words, which read as "SAY-HI". A background
   line ignores all that and runs the full width of the item. */
nav a.current {
  --nav-strike: var(--accent);

  opacity: 1;
  text-decoration: none;
  background: linear-gradient(var(--nav-strike), var(--nav-strike)) 0 50% / 100% 1.5px no-repeat;
}

/* The accent is the field itself while the orange modules pass behind the
   header, so there the rule is drawn in the dark instead. */
[data-bg="warm"] nav a.current {
  --nav-strike: var(--dark);
}

/* ---------------------------------------------------------------------------
   Shared content layout (intro + gallery captions)
--------------------------------------------------------------------------- */
.content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 5rem);
  width: 90vw;
  max-width: 1300px;
}

/* ---------------------------------------------------------------------------
   Intro panels (hero + bio)
--------------------------------------------------------------------------- */
/* Fixed dither background canvas, behind everything. */
.dither-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
  pointer-events: none;
}

/* One scrim for the whole page, fixed over the dither. Each panel used to
   darken its own box, which left a visible step wherever a panel met a section
   that did not — between the bio and the clients row, for one. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--scrim, rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Warm run — the services and awards modules carry the orange themselves (see
   their own rules further down), so the page's field never changes and nothing
   here cross-fades. Everything drawn inside those two is cream, always; what
   is left for a flag is the logo, which is fixed in the header and has to know
   when one of them is passing behind it. js/main.js sets data-bg="warm" for
   exactly that stretch.
--------------------------------------------------------------------------- */

/* logo.png is an orange star beside a cream wordmark; on orange the star
   would vanish, so the whole lockup is painted through as one cream mark. */
[data-bg="warm"] .logo {
  position: relative;
}

[data-bg="warm"] .logo img {
  visibility: hidden;
}

[data-bg="warm"] .logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--light);
  -webkit-mask: url("../logo.png") left center / contain no-repeat;
  mask: url("../logo.png") left center / contain no-repeat;
}

.panel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: transparent; /* let the fixed dither background show through */
}

/* Uniform scrim for text legibility over the dither.
   (Must be flat, not a gradient — a per-panel gradient creates a visible seam
   where one panel's edge meets the next over the fixed background.) */
/* Kept as the stacking step between the star layer and the content; the tone
   itself now comes from the page-wide scrim above. */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.panel .content {
  position: relative;
  z-index: 3;
  height: 100%;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
  width: 90vw;
  max-width: 1400px;
  /* Lets the hero heading size itself against this column (see .intro-heading). */
  container-type: inline-size;
}

/* --- Star: background layer (above the bg video, below the text). ---
   It scrolls up with the page from the bottom, parks in the middle of the
   screen, and lets go once the bio heading reaches the middle too, from where
   the two scroll away together (main.js -> syncStarRelease). */
.star-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Fallback only — main.js resizes this so the sticky star lets go exactly
     when the bio heading reaches the top of the viewport. */
  height: 200vh;
  z-index: 2; /* above .bg-video (0) and .panel::before (1), below .content (3) */
  pointer-events: none;
}

.hero-star-img {
  --star-size: 66vh;
  position: sticky;
  /* Holds dead centre of the viewport: half the leftover height above it.
     main.js sizes .star-layer from this, so the release point stays put. */
  top: calc((100vh - var(--star-size)) / 2);
  margin: 61vh auto 0; /* starts near the bottom of the hero, centered */
  width: var(--star-size);
  height: var(--star-size);
  max-width: 92vw;
  /* Lottie injects the halftone burst here (main.js -> initStar). The webp is
     the fallback if the animation cannot load. */
  background: url("../star-halftone.webp") center / contain no-repeat;
  animation: spin 34s linear infinite;
  will-change: transform;
}

/* Once the animation is in, it replaces the background image. */
.hero-star-img.has-lottie {
  background: none;
}

.hero-star-img svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Hero --- */
.intro .content {
  justify-content: space-between;
  padding-top: 7em;
  padding-bottom: clamp(6em, 30vh, 32vh);
}

/* Futura Extra Bold, used only for the hero heading. local() pins the exact
   face: the "Futura LT" family maps weight 800 to Condensed ExtraBold, which is
   a much narrower font. No file is served — this uses the visitor's installed
   copy, so anyone without Futura falls back to Jost (the closest free
   geometric sans). Serving Futura itself would need a webfont licence. */
@font-face {
  font-family: "Futura XB";
  src: local("Futura LT Extra Bold"), local("FuturaLT-ExtraBold"),
    local("Futura-ExtraBold");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.intro-heading {
  font-family: "Futura XB", "Jost", system-ui, sans-serif;
  font-weight: 800;
  color: var(--accent);
  /* 11.5cqi keeps the longest line ("HI! IT'S NICE TO", ~8.50x the font size in
     Futura Extra Bold caps at -0.04em) inside the content column, so it can
     never spill onto a third line — the vw/px terms only ever make it smaller.
     Futura is the widest face in the stack, so the fallbacks stay safe too.
     Px (not rem) so a larger root font-size can't push it past the column.
     Re-measure this ratio if the font, tracking, or copy changes. */
  font-size: clamp(2.1rem, min(9vw, 9.8cqi), 145px);
  letter-spacing: -0.04em; /* -4% */
  line-height: 0.9; /* 90% */
  margin: 0;
  width: 100%;
  text-transform: uppercase;
}

.intro-cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem 3rem;
}

.intro-cols .accent {
  color: var(--accent);
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Sits in the same column as the nav's "Work" item: main.js measures that link
   and writes --il-w / --il-shift so this block's left edge lands under it and
   its right edge under the nav's. The clamp is the fallback for mobile (where
   the columns stack) and for the measurement not having run yet. */
.intro-lines {
  flex: 0 0 var(--il-w, clamp(260px, 24vw, 330px));
  transform: translateX(var(--il-shift, 0px));
  text-align: left;
}

.intro-lines p {
  margin: 0;
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  line-height: 1.35;
  text-transform: none;
  color: rgba(255, 252, 225, 0.9);
}

.intro-lines p + p {
  margin-top: 1.1em;
}

/* Right column rhythm: every block leads with a label in caps and closes with
   a sentence-case line. */
.intro-lines .ln-top {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.intro-lines .ln-sub {
  text-transform: none;
  letter-spacing: 0;
}

.clock {
  font-variant-numeric: tabular-nums;
}

.intro-lines a {
  color: var(--color-surface-white);
  border-bottom: 1px solid rgba(255, 252, 225, 0.4);
}

/* --- Bio --- */
.bio .content {
  justify-content: center;
  padding-top: 6em;
  padding-bottom: 6vh;
  /* The air between the statement and the paragraph under it. */
  gap: clamp(2.5rem, 7vh, 6rem);
}

.bio-heading {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 3.8rem);
  line-height: 1.16;
  margin: 0;
  max-width: 1200px;
  text-transform: none;
  color: var(--light);
}

.bio-aside {
  align-self: flex-end;
  max-width: 470px;
}

.bio-aside p {
  margin: 0;
  font-size: clamp(0.9rem, 1.25vw, 1.15rem);
  line-height: 1.4;
  text-transform: none;
  color: rgba(255, 252, 225, 0.9);
}

/* Set as written, like the paragraph above it, and with no rule under it —
   the mark is the "opens elsewhere" icon, which is what this link does. */
.bio-aside .about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 1.4em;
  color: var(--accent);
  text-transform: none;
}

.bio-aside .about-link svg {
  flex: none;
  width: 1em;
  height: 1em;
}

/* --- Contact / Send a message --- */
/* The closing panel takes the whole screen (height comes from .panel), with
   its block centred in it. The padding is even top and bottom so the block
   sits on the middle of the screen rather than being pushed down by a heavier
   top inset, which is what left the lopsided gap above the star. */
.contact-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1.4rem, 3.5vh, 2.8rem);
  padding: 5em 5%;
  /* Lets the contact heading size itself against this column. */
  container-type: inline-size;
}

.contact-star {
  width: clamp(84px, 9vw, 140px);
  aspect-ratio: 1 / 1;
}

.contact-star-img {
  width: 100%;
  height: 100%;
  background: url("../Star.png") center / contain no-repeat;
  animation: spin 30s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.contact-heading {
  font-family: "Futura XB", "Jost", system-ui, sans-serif;
  font-weight: 800;
  color: var(--accent);
  /* 7.2cqi keeps the longest line ("NEXT PROJECT TOGETHER", ~13.52x the font
     size in Futura Extra Bold caps at -0.04em) on one line, so the <br> stays a
     two-line heading. Re-measure if the font, tracking, or copy changes. */
  font-size: clamp(1.6rem, min(5.4vw, 7.2cqi), 5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9em;
  margin-top: 1em;
}

.contact-links p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4em;
  letter-spacing: 0.04em;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
}

.contact-links a {
  color: var(--color-surface-white);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

/* Icon-only links: a hairline ring in the light tone, nothing filled, so the
   two marks read as one pair of buttons under the address. */
.contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 1vw, 0.9rem);
  margin: 0.3em 0 0;
  padding: 0;
  list-style: none;
}

/* Scoped under .contact-links: that block sets display and colour on every
   anchor inside it, and a bare class would lose to it. */
.contact-links .contact-social__link {
  --ring: clamp(42px, 3.4vw, 54px);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ring);
  height: var(--ring);
  /* One of the two is a button (it copies the address rather than opening
     anything), so the browser's own button padding and face are cleared. */
  appearance: none;
  padding: 0;
  background: none;
  border: 1px solid var(--light);
  border-radius: 50%;
  color: var(--light);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-social__link svg {
  width: 45%;
  height: 45%;
}

.contact-links .contact-social__link:is(:hover, :focus-visible) {
  background: var(--light);
  color: #151515;
  transform: translateY(-2px);
}

/* Copy-email button — the small ones that sit beside an address, in the hero
   and in the closing panel. The :not() keeps the circled one in the Say-hi row
   out of it: that one is sized and coloured as one of the two discs. */
.copy-email:not(.contact-social__link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 0.5em;
  padding: 0;
  width: 1.5em;
  height: 1.5em;
  background: transparent;
  border: none;
  color: var(--color-surface-white);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.copy-email:not(.contact-social__link):hover {
  opacity: 1;
}

.copy-email:not(.contact-social__link) svg {
  width: 1em;
  height: 1em;
  display: block;
}

/* ---------------------------------------------------------------------------
   Toast
--------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2.5em;
  z-index: 30;
  transform: translate(-50%, 1rem);
  padding: 0.75em 1.25em;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(255, 252, 225, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-surface-white);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------------------
   Clients — the logo row between the bio and the WORK band
   Transparent: the dither keeps running behind it. The marks are SVG shapes
   used as masks, so they take the page's text colour rather than their own
   brand colours, and one fades into the next in place.
--------------------------------------------------------------------------- */
/* Tight to what is above it, open underneath, so the row reads as the start of
   the hand-off to the work section rather than as a band of its own. */
.clients {
  position: relative;
  z-index: 3;
  width: 90vw;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(0.5rem, 1.4vh, 0.9rem) 0 clamp(2.6rem, 7vh, 4.4rem);
}

/* The written list stays for screen readers; the row is built from it. */
.clients__source {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  list-style: none;
}

.clients__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clients__slot {
  position: relative;
  height: clamp(74px, 9vw, 116px);
}

/* hairlines between the cells, as in the reference */
.clients__slot + .clients__slot {
  border-left: 1px solid rgba(255, 252, 225, 0.14);
}

/* Two stacked layers per slot: one showing, one fading in behind it.
   The box is the cell inset on both sides and capped at --mark-h, and the mark
   is contained in it — so every logo is drawn at the same height unless it is
   so wide that the width catches it first, and none of them run into the
   hairlines. (The source SVGs are trimmed to their ink, or a square icon
   canvas would make a wordmark render tiny at the same box height.) */
.clients__mark {
  position: absolute;
  top: 50%;
  left: 11%;
  right: 11%;
  height: calc(var(--mark-h) * var(--logo-scale, 1));
  transform: translateY(-50%);
  background-color: var(--light);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.clients__mark.is-on {
  opacity: 0.85;
}

.clients__slot {
  --mark-h: clamp(26px, 3vw, 44px);
}

/* Optical balance. Drawn at one common height these marks were anything but:
   a round badge (Fiat, Pepsi) came out at 41 × 41 against Coca-Cola's
   41 × 131, so the ink one carried was three times the other's. Each mark now
   takes a factor on that height, set so the area they cover lands in the same
   range — squarer marks a little under it, since a solid badge reads heavier
   than an open wordmark at equal area. Measure before changing one: the
   factors are a set, not eight independent numbers. */
.clients__mark[data-logo$="fiat.svg"],
.clients__mark[data-logo$="pepsi.svg"],
.clients__mark[data-logo$="google.svg"],
.clients__mark[data-logo$="shopify.svg"],
.clients__mark[data-logo$="adobe.svg"] {
  --logo-scale: 1.25;
}

.clients__mark[data-logo$="meta.svg"],
.clients__mark[data-logo$="adidas.svg"] {
  --logo-scale: 1.08;
}

.clients__mark[data-logo$="ea.svg"] {
  --logo-scale: 0.95;
}

.clients__mark[data-logo$="ebay.svg"] {
  --logo-scale: 0.86;
}

.clients__mark[data-logo$="ibm.svg"] {
  --logo-scale: 0.84;
}

.clients__mark[data-logo$="visa.svg"],
.clients__mark[data-logo$="cocacola.svg"] {
  --logo-scale: 0.78;
}

/* The widest of them by far (5 : 1) — at the common height it ran into the
   hairlines and was being shrunk by the cell rather than by design. */
.clients__mark[data-logo$="sonos.svg"] {
  --logo-scale: 0.62;
}

@media (prefers-reduced-motion: reduce) {
  .clients__mark {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   Awards — between services and the closing section
   Same cell rhythm as the clients row: a mark on top, the count underneath.
--------------------------------------------------------------------------- */
/* Same column as the bio and the clients row, and the same em-based vertical
   inset the other sections use. */
/* Title in its own column on the left, the blocks in the one on the right.
   The title sets over two lines ("21" / "Awards") and the left column is
   sized to the wider of them; both scale with the viewport, so the fit
   holds at any width. */
.awards {
  position: relative;
  z-index: 3;
  display: grid;
  /* Equal halves with no gutter, so the blocks start on the centre line of
     the page — the section is centred, so its 50% is the screen's 50%. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: 0;
  width: 90vw;
  max-width: 1400px;
  margin: 0 auto;
  /* Top: the air between the pile and the first blocks. Bottom: a tail of
     empty orange, so the last row has left the screen before the closing
     panel arrives. It used to be tied to a scroll trigger in js/main.js; now
     that the module paints its own field, the colour simply ends with this
     padding and the number stands alone. */
  padding: 14em 0 20vh;
}

/* The orange the awards module paints for itself. The section is 90vw, so the
   field is a layer of its own stretched back out to the full width of the
   screen; it sits behind the blocks and ends with the section's own tail, which
   is what hands the page back to the dark. */
.awards::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: var(--accent);
}

/* Carries the weight of the Services title (--wp-title-size in word-pile.css).
   Sticks once it reaches the upper third and rides there while the blocks
   scroll past it; the section is tall enough to give that real travel. */
.awards__label {
  position: sticky;
  top: clamp(5.5rem, 30vh, 15rem);
  margin: 0;
  color: var(--light); /* the module is orange, so this is cream throughout */
  font-family: "Futura XB", "Jost", system-ui, sans-serif;
  font-weight: 800;
  font-size: max(2.5rem, 6.25vw);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-align: left;
  text-transform: uppercase;
}

/* The total gets its own line: it counts up with the scroll, and on one line
   with the word it would shove "Awards" sideways on reaching two digits. */
.awards__total {
  display: block;
}

/* Two columns of four. Fixed column counts rather than auto-fit, since the
   hairlines are per cell and the layout has to know where a row starts to
   leave that one bare. */
.awards__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: clamp(3.4rem, 9vh, 5.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.awards__row > li {
  position: relative; /* the hover detail hangs off the cell */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1rem, 3vh, 1.8rem);
  min-height: clamp(150px, 19vh, 230px);
  /* tight on the right: these lockups run very wide (the Clube wordmark is
     8:1) and width is what decides how big they can be drawn. On the left, the
     room the divider needs — the line is the column's own edge, so this inset
     moves the content, never the line. */
  padding: 0 clamp(0.35rem, 0.8vw, 0.7rem) 0 clamp(1.5rem, 2.8vw, 2.6rem);
  /* Every cell carries one, the first of each row included: the leftmost sits
     on the centre line of the page, where the column starts. */
  border-left: 1px solid rgba(255, 252, 225, 0.2);
}

.awards__name {
  color: var(--light);
  font-family: "Futura XB", "Jost", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(0.82rem, 1.05vw, 1.05rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* a mark replaces the name in the same slot, drawn in the text colour.
   contain, not a fixed height: these lockups run from square (ADCC) to very
   wide (FWA), and a wide one would otherwise spill out of its cell. */
.awards__name[data-logo] {
  width: 100%;
  height: calc(clamp(32px, 3.6vw, 56px) * var(--logo-scale, 1));
  background-color: var(--light);
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  font-size: 0;
}

/* FWA is a far wider lockup (3.3:1 against Cannes' 2.3:1), so at the common
   height it came out half again as wide. Matched to Cannes on width instead. */
.awards__name[data-logo$="fwa.png"] {
  --logo-scale: 0.7;
}

/* The count and its breakdown share one clipped box and trade places on hover:
   the count slides up and out, the breakdown slides up into the space it left.
   Both travel exactly the box's height, so both sit flush with its top.
   The box is as tall as the count, with room for three lines of breakdown. */
.awards__swap {
  --swap-h: calc(clamp(2.1rem, 3.5vw, 3.6rem) * 1.3);

  position: relative;
  height: var(--swap-h);
  overflow: hidden;
}

/* Both sit on the floor of the box, so the breakdown's last line lands on the
   same line the count stood on. */
.awards__tally {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.awards__count {
  color: var(--light);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 3.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums; /* the count-up must not shift the layout */
}

/* What the count is made of. Parked one box-height below, so it is out of the
   clip until the hover brings it up into the count's place.
   The text is on the <li>'s aria-label too, so it is not hover-only. */
.awards__detail {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  transform: translateY(var(--swap-h));
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--light);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(0.7rem, 0.82vw, 0.86rem);
  line-height: 1.35;
  /* The page sets everything in caps; small caps need the extra tracking. */
  letter-spacing: 0.05em;
  opacity: 0.8;
  pointer-events: none;
}

/* One win to a line. */
.awards__detail span {
  display: block;
}

.awards__row > li:is(:hover, :focus-within) .awards__detail {
  transform: translateY(0);
}

.awards__row > li:is(:hover, :focus-within) .awards__tally {
  transform: translateY(calc(-1 * var(--swap-h)));
  opacity: 0;
}

@media (max-width: 720px) {
  /* Nothing to stick beside in one column: the title goes back on top. */
  .awards {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(2rem, 6vh, 3rem);
  }

  .awards__label {
    position: static;
  }

  /* On a phone the headline total carries the whole claim, so the cells drop
     to the marks themselves: two columns of logos, no per-award counts. There
     is no hover on a touch screen to reveal the breakdown behind a number, and
     a swipe track hid seven of the eight names behind a gesture nobody is told
     about — the point of the module is the roll of names, so show them all. */
  .awards__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.4rem, 6vw, 2.4rem);
    row-gap: clamp(1.8rem, 6vw, 2.8rem);
    align-items: center;
  }

  .awards__row > li {
    align-items: center;
    gap: 0;
    min-height: 0;
    padding: 0;
    border-left: 0; /* the hairline divides a grid of blocks, not a wall of marks */
  }

  /* The count and the breakdown it trades places with are exactly the detail
     this layout drops. The <li>'s aria-label still carries both, so a screen
     reader is told "FWA: 5 awards — 4 Site of the Day, 1 Site of the Month"
     even though the number is off the screen. */
  .awards__swap {
    display: none;
  }

  /* Centred rather than flush left: with nothing underneath them the marks are
     the whole composition, and two ragged columns would read as a mistake. */
  .awards__name[data-logo] {
    height: calc(clamp(30px, 8.5vw, 46px) * var(--logo-scale, 1));
    -webkit-mask-position: center;
    mask-position: center;
  }
}

/* ---------------------------------------------------------------------------
   WORK marquee — the transition band between the bio and the work reel
--------------------------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;         /* the row runs past both edges of the viewport */
  width: 100%;
  padding: clamp(1.4rem, 4vh, 3rem) 0;
  background: transparent;  /* the fixed dither keeps running behind it */
}

.marquee__track {
  display: flex;
  align-items: baseline;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

/* Same face, colour and size as the hero heading. That one is sized against
   its column with 9.8cqi, and the column is min(90vw, 1400px) wide, so
   9.8cqi === min(8.82vw, 137.2px) — written out here because this band spans
   the whole viewport and has no such column to measure against. */
.marquee__word {
  flex: 0 0 auto;
  padding-right: 0.22em;
  font-family: "Futura XB", "Jost", system-ui, sans-serif;
  font-weight: 800;
  /* 30%, then another 20%, up on the sizes the band was first drawn at
     (8.82vw / 137.2px / 145px). */
  font-size: clamp(3.28rem, min(13.76vw, 214.1px), 226.2px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .role-label {
    display: none;
  }
}

@media (max-width: 720px) {
  .content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .intro-cols {
    flex-direction: column;
  }

  .bio-aside {
    align-self: flex-start;
  }
}

/* ---------------------------------------------------------------------------
   Placeholder modules standing in for sections still to be built
--------------------------------------------------------------------------- */
.section-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  background: #000; /* opaque: covers the fixed dither behind it */
}

.section-placeholder__label {
  margin: 0;
  font-family: "Futura XB", "Jost", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: rgba(255, 252, 225, 0.92);
}

/* ---------------------------------------------------------------------------
   Custom cursor (ported from tiagofurquim.com/new-home/)
   A dot pinned to the pointer + a ring that lags behind it; over anything
   clickable the dot collapses and the ring blows up into the accent colour.
--------------------------------------------------------------------------- */
/* Only hide the native cursor once JS confirms a fine pointer and takes over. */
html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none;
}

.custom-cursor,
.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  opacity: 0; /* stays hidden until the cursor script starts */
}

html.has-custom-cursor .custom-cursor,
html.has-custom-cursor .custom-cursor-follower {
  opacity: 1;
}

.custom-cursor {
  width: 20px;
  height: 20px;
  background-color: var(--light);
  transform: translate(-10px, -10px);
  transition: transform 0.3s cubic-bezier(0.75, -1.27, 0.3, 2.33);
}

.custom-cursor-follower {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 252, 225, 0.3);
  transform: translate(-20px, -20px);
  transition: transform 0.6s cubic-bezier(0.75, -1.27, 0.3, 2.33), background-color 0.3s;
}

body.cursor-hover-active .custom-cursor {
  transform: translate(-5px, -5px) scale(0);
}

body.cursor-hover-active .custom-cursor-follower {
  /* Scale is set per link (see initCursor): short labels get a tighter ring. */
  transform: translate(-50%, -50%) scale(var(--cursor-scale, 2.8));
  /* The accent, unless the element asks for another fill through
     data-cursor-fill — the shake button does, since an orange ring on the
     orange field would have nothing to read against. */
  background-color: var(--cursor-fill, var(--accent));
}

/* Optional label inside the ring, set per element via data-cursor="…". */
.cursor-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--light);
  /* These sizes are pre-transform: the ring's scale multiplies them. */
  font-size: var(--cursor-fs, 3.6px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  /* Wrap inside the circle rather than spilling out of it. */
  max-width: 30px;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  opacity: 0;
  transition: opacity 0.3s;
}

body.cursor-hover-active .cursor-text {
  opacity: 1;
}

/* ---------------------------------------------------------------------------
   Word-pile module (Services) — site-side adjustments.
   Kept here rather than in word-pile.css so the module stays drop-in
   replaceable if it is updated upstream.
--------------------------------------------------------------------------- */
/* Its overlay UI sits at the top of the section, which the fixed header covers. */
#services .wp__ui {
  padding-top: calc(clamp(4.29rem, 9.1vw, 6.18rem) + 0.7rem);
}

/* Shake control: a borderless white icon centred under the module title.
   (The module ships it as an outlined pill in the top-right overlay.) */
#services .wp__shake {
  position: absolute;
  left: 50%;
  /* title centre + half its line box + a gap. Two lines at line-height .9,
     so half the box is .9em, not .45em. */
  top: calc(var(--wp-title-anchor) + 0.9 * var(--wp-title-size) + 1.15rem);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.1rem, 2.5vw, 2.7rem);
  height: clamp(2.1rem, 2.5vw, 2.7rem);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--wp-cream);
  opacity: 0.8;
  transform: translateX(-50%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

#services .wp__shake svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Override the module's pill hover (it fills the background and shifts Y,
   which would also drop the translateX that centres this). */
#services .wp__shake:hover,
#services .wp__shake:focus-visible {
  background: transparent;
  color: var(--wp-cream);
  opacity: 1;
  transform: translateX(-50%) rotate(-140deg);
}

#services .wp__shake:active {
  transform: translateX(-50%) scale(0.9);
}

#services .wp__shake:focus-visible {
  outline: 2px solid var(--wp-accent);
  outline-offset: 4px;
}


/* Services is an orange module: it paints its own field rather than asking the
   page for one, so the colour arrives with the section's own edge. Everything
   in it is cream from the start — the title, the cue dot, the focus rings and
   the impact flash — since there is never a dark moment inside this box. */
#services.wp {
  background: var(--accent);
  --wp-accent: var(--wp-cream);
}

#services .wp-shock {
  background: radial-gradient(
    circle,
    rgba(254, 250, 239, 0.32) 0%,
    rgba(254, 250, 239, 0.11) 45%,
    transparent 68%
  );
}

/* The hero and closing headings use the reel's masked word reveal (.w in
   reel.css); this is their equivalent of .copy.is-active, so all three share
   one easing and stagger. */
.intro-heading.is-active .w > span,
.contact-heading.is-active .w > span,
header.is-active .w > span {
  transform: none;
}

/* Project description reads a step larger than the module ships it; the
   credits grid under it (.copy__meta) is deliberately left alone. */
#work .copy__desc {
  font-size: clamp(15px, 1.32vw, 25px);
}

