/* Lyumic Productions
   Brand: maroon #7f1a17, saffron #e69c24, black, white.
   Type: Noka (display, labels, nav), Karmina Sans (reading). Nothing else.
   One page: the hero film filling the screen over a maroon band, the work as coloured mats,
   services as a numbered list that floods maroon under the pointer, the saffron enquiry and a black footer. */

/* Free stand-ins, self-hosted (SIL Open Font License, see fonts/OFL-*.txt). Karmina Sans and Noka are paid faces; they stay
   first in the stacks below, so the day the Adobe Fonts kit is linked in index.html the real brand type takes over by itself.
   Alegreya Sans stands in for Karmina Sans (both humanist, calligraphic), Jost for Noka (geometric, single storey a). */
@font-face { font-family: "Alegreya Sans"; font-weight: 300; font-display: swap; src: url(../fonts/alegreya-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url(../fonts/alegreya-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/alegreya-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap; src: url(../fonts/alegreya-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-display: swap; src: url(../fonts/alegreya-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 100 900; font-display: swap; src: url(../fonts/jost-var.woff2) format("woff2"); }

:root {
  --maroon: #7f1a17;
  --saffron: #e69c24;
  --ink: #000;
  --paper: #fff;
  --ink-soft: rgba(0, 0, 0, .64);
  --ink-faint: rgba(0, 0, 0, .22);
  --line: rgba(0, 0, 0, .16);

  --karmina: "karmina-sans", "Alegreya Sans", sans-serif;
  --noka: "noka", "Jost", sans-serif;

  --edge: 2rem;
  --head-h: 64px;
  --ease: cubic-bezier(.77, 0, .18, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--karmina);
  font-kerning: normal;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* the pointer is the Lyumic mark turned into its lamp flame (the tip is the hot spot); over anything clickable it turns saffron. Text fields keep the text cursor */
@media (hover: hover) and (pointer: fine) {
  html { cursor: url(../img/cursor.svg) 17 2, auto; }
  a, button, label, summary, [role="option"], .card, .svc-row { cursor: url(../img/cursor-link.svg) 19 2, pointer; }
  .send[disabled] { cursor: progress; }
}

:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }
.cs[data-tone="dark"] :focus-visible { outline-color: var(--saffron); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--edge); top: -100px; z-index: 99; background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--noka); text-decoration: none; }
.skip:focus { top: 12px; }

.m-l { fill: var(--maroon); }
.m-d { fill: var(--saffron); }

.label { font: 500 .8125rem/1.2 var(--noka); text-transform: uppercase; letter-spacing: .04em; }
.quiet { color: var(--ink-soft); }
svg use[href="#arr"] { vector-effect: non-scaling-stroke; }


/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 var(--edge); background: var(--paper);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; transition: color .2s; }
.brand-mark { width: 22px; height: 22px; }
.brand-word { font: 400 .9375rem/1 var(--noka); }
.nav { flex: 0 1 72%; display: flex; justify-content: space-between; align-items: center; }
.nav a { font: 400 .875rem/1 var(--noka); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; padding: 8px 0; transition: color .2s; }
.nav a[aria-current="true"] { color: var(--maroon); }
.nav-cta { display: inline-flex; justify-content: space-between; align-items: center; min-width: 14rem; border-bottom: 1px solid currentColor; }
.nav-cta svg { width: 14px; height: 14px; transition: translate .35s var(--out); }
@media (hover: hover) {
  .nav a:hover { color: var(--maroon); }
  .nav-cta:hover svg { translate: 3px -3px; }
  .brand:hover { color: var(--maroon); }
}

/* ---------- hero: the film fills the screen under the header, then the line and the promise on maroon ---------- */
.hero { position: relative; background: var(--maroon); color: var(--paper); overflow-x: clip; } /* the spinning star's corners must not widen the page */
.hero-band { position: relative; display: grid; gap: 1.75rem; padding: 2.5rem var(--edge) 3rem; }
.hero :focus-visible { outline-color: var(--saffron); }
.hero-h {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: baseline; gap: .3em;
  font: 400 clamp(2rem, 5vw, 5.5rem)/1 var(--noka); text-transform: uppercase; letter-spacing: -.02em;
}
.hw-into > span { color: var(--saffron); }
.hero-h > .hw:first-child { justify-self: start; }
.hero-h > .hw:last-child { justify-self: end; }
/* every line rises out of its own mask on arrival */
.hw { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .18em 0 .2em; margin: -.18em 0 -.14em; }
.hw > span { display: inline-block; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 2rem; }
.hero-sub {
  grid-column: 2; text-align: center; max-width: 34ch; text-wrap: balance;
  font: 400 clamp(1rem, 1.3vw, 1.375rem)/1.15 var(--noka); text-transform: uppercase; letter-spacing: .01em;
}
.hero-jump { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: flex-end; gap: .75rem; font: 400 1rem/1.15 var(--noka); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.hero-jump svg { width: 16px; height: 16px; color: var(--saffron); rotate: 90deg; margin-bottom: 2px; transition: translate .35s var(--out); }
@media (hover: hover) { .hero-jump:hover svg { translate: 0 3px; } }

/* ---------- the films ---------- */
.film { position: relative; margin: 0; background: var(--paper); }
.film video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.film--hero { margin-top: var(--head-h); height: calc(100vh - var(--head-h)); height: calc(100svh - var(--head-h)); }
.hero .film-btn:focus-visible { outline-color: var(--ink); }
.film--hero video { position: absolute; inset: 0; object-fit: cover; } /* edge to edge: js/site.js plays the shape nearest the screen, so cover only trims a sliver */
.film-btn {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  font: 500 .75rem/1 var(--noka); text-transform: uppercase; letter-spacing: .04em;
  background: var(--paper); color: var(--ink); padding: 8px 10px; border: 1px solid var(--line);
}
@media (hover: hover) { .film-btn:hover { color: var(--maroon); border-color: currentColor; } }

/* ---------- the Say Hello star, draggable ---------- */
.dragger {
  translate: var(--dx, 0px) var(--dy, 0px); rotate: var(--r, 0deg);
  transition: translate .7s cubic-bezier(.3, 1.5, .5, 1), rotate .35s, scale .25s, box-shadow .25s;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.dragger.dragging { transition: rotate .2s, scale .2s, box-shadow .2s; }
.dragger.lifted { scale: 1.05; rotate: calc(var(--r, 0deg) + 3deg); }
.sticker { position: relative; display: grid; place-items: center; text-align: center; text-decoration: none; cursor: grab; line-height: 1; margin: 0; }
/* Say Hello: the spinning star */
.hello { position: absolute; z-index: 4; right: calc(var(--edge) + 9rem); top: -92px; width: 128px; height: 128px; background: none; border: 0; box-shadow: none; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .35)) drop-shadow(0 6px 8px rgba(0, 0, 0, .2)); }
.hello .spin { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.hello svg { display: block; width: 100%; height: 100%; }
.hello span:last-child { position: relative; font: 700 1.375rem/.95 var(--noka); letter-spacing: -.01em; color: var(--ink); }
.hello.asleep .spin { animation-play-state: paused; }
@keyframes spin { to { rotate: 360deg; } }
a.sticker:focus-visible { outline-offset: 4px; }

/* Tidy up: shows once something has been moved */
.tidy {
  position: fixed; right: var(--edge); bottom: var(--edge); z-index: 30; font: 500 .875rem/1 var(--noka);
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 10px 16px;
  box-shadow: 0 7px 14px -9px rgba(0, 0, 0, .5); transition: rotate .3s, scale .3s cubic-bezier(.3, 1.7, .5, 1);
}
@media (hover: hover) { .tidy:hover { rotate: -3deg; scale: 1.06; background: var(--saffron); } }

/* ---------- work: coloured mats in three columns; the ninth lists the case studies ---------- */
.work { padding: 4rem var(--edge) 6rem; }
.work-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 3.5rem 2.5rem; align-items: stretch; }
.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: var(--bg); color: var(--ink); padding: 14px 14px 6px; rotate: -.8deg; transition: rotate .4s var(--out), translate .4s var(--out);
}
.card:nth-child(even) { rotate: .9deg; }
.card[data-tone="dark"] { color: var(--paper); }
/* a wide mat spans two columns and takes its height from the row, so a landscape picture keeps most of its width */
.card.wide { grid-column: span 2; rotate: .5deg; }
.card.wide:nth-child(even) { rotate: -.5deg; }
.card[style*="--bg:#fff"] { box-shadow: inset 0 0 0 1px var(--line); }
.card-head { display: flex; justify-content: space-between; align-items: flex-end; gap: .875rem; padding-bottom: .625rem; }
.card-t { font: 400 clamp(1.125rem, 1.6vw, 1.5rem)/1.15 var(--noka); }
.card-img { position: relative; flex: 1 0 auto; aspect-ratio: 4 / 5; background: var(--ink); }
.card.wide .card-img { aspect-ratio: auto; min-height: 0; flex: 1 1 0; }
.card-clip { position: absolute; inset: 0; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--out); }
/* hover: the second frame opens through a disc from the pointer */
.card-img .alt { clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); transition: clip-path .8s var(--ease); }
.card-meta { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: .625rem 0 .5rem; font: 400 .8125rem/1.2 var(--noka); text-transform: uppercase; letter-spacing: .03em; }
.card-meta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.card-view { display: inline-flex; align-items: center; gap: .6rem; }
.arr2 { position: relative; width: 12px; height: 12px; overflow: hidden; }
.arr2 svg { position: absolute; inset: 0; width: 12px; height: 12px; transition: translate .45s var(--ease); }
.arr2 svg + svg { translate: -100% 100%; }
@media (hover: hover) {
  .grid > a.card:hover { rotate: 0deg; translate: 0 -6px; }
  .card:hover .alt, .card:focus-visible .alt { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
  .card:hover .alt { scale: 1.04; }
  a.card:hover .card-meta::after { transform: scaleX(1); }
  :is(.card, .arc-row):hover .arr2 svg { translate: 100% -100%; }
  :is(.card, .arc-row):hover .arr2 svg + svg { translate: 0 0; }
}
.card:focus-visible { outline-offset: 6px; }

/* the ninth mat: the eight case studies, one line each; a line floods maroon under the pointer */
.arc { container-type: inline-size; }
.arc-list { flex: 1; display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .3); }
.arc-list li { flex: 1; display: flex; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.arc-row {
  position: relative; flex: 1; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 12px; gap: .875rem; align-items: center;
  padding: .25rem .5rem .25rem 0; text-decoration: none; isolation: isolate; transition: color .25s, padding .4s var(--out);
}
.arc-row::before { content: ""; position: absolute; inset: 0 -14px; z-index: -1; background: var(--saffron); transform: scaleY(0); transition: transform .45s var(--ease); }
.arc-img { width: 44px; height: 44px; object-fit: cover; }
.arc-t { font: 400 clamp(1rem, 1.3vw, 1.3125rem)/1.1 var(--noka); }
.arc-k { font: 400 .75rem/1 var(--noka); text-transform: uppercase; letter-spacing: .03em; opacity: .75; }
.arc-row:focus-visible { outline-color: var(--saffron); outline-offset: -2px; }
.arc .card-meta > span:first-child { white-space: nowrap; }
@container (max-width: 520px) { .arc-k { display: none; } .arc-row { grid-template-columns: 44px minmax(0, 1fr) 12px; } }
@media (hover: hover) {
  .arc-row:hover { color: var(--ink); padding-left: .5rem; }
  .arc-row:hover::before { transform: scaleY(1); }
}

/* scroll reveal: the picture unveils upwards once */
.js .reveal .card-clip { clip-path: inset(100% 0 0 0); }
.js .reveal .card-clip img:first-child { scale: 1.18; }
.js .reveal.in .card-clip { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease); }
.js .reveal.in .card-clip img:first-child { scale: 1; transition: scale 1.6s var(--out); }

.peek { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(200px, 20vw, 320px); aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; scale: .6; rotate: -3deg; border: 6px solid var(--paper); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .5); transition: opacity .25s, scale .4s var(--out); }
.peek img { width: 100%; height: 100%; object-fit: cover; }
.peek.on { opacity: 1; scale: 1; }

/* ---------- the colour study ---------- */
.study { padding: 2rem var(--edge) 6rem; }
.study-head { border-top: 1px solid var(--line); padding-top: 2rem; }
.film--study video, .film--turns video { aspect-ratio: 16 / 9; height: auto; }

/* ---------- studio: the founders photo large and flush left; story, the decade and the mark film beside it ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 clamp(2rem, 4vw, 4.5rem); align-items: stretch; padding: 5rem var(--edge) 5rem 0; border-top: 1px solid var(--line); }
.studio-photo { position: relative; margin: 0; min-height: 100%; background: var(--ink); }
.studio-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.studio-photo figcaption { position: absolute; left: var(--edge); bottom: 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.studio-photo figcaption span { background: var(--paper); color: var(--ink); padding: 6px 10px; font: 500 .75rem/1 var(--noka); text-transform: uppercase; letter-spacing: .04em; }
.studio-photo figcaption span:last-child { background: var(--saffron); }
.studio-body { display: flex; flex-direction: column; gap: 1.5rem; padding-top: .25rem; }
.studio-k { color: var(--maroon); }
.studio-h { font: 400 clamp(1.75rem, 2.6vw, 2.75rem)/1.02 var(--noka); text-transform: uppercase; letter-spacing: -.01em; max-width: 14ch; }
.read { font: 400 clamp(1.0625rem, 1.25vw, 1.25rem)/1.4 var(--karmina); max-width: 44ch; }
.read .w { color: var(--ink-faint); transition: color .4s; }
.read .w.on { color: var(--ink); }
.studio-years { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio-years b { font: 400 clamp(2.5rem, 4vw, 3.75rem)/.9 var(--noka); color: var(--maroon); letter-spacing: -.03em; }
.studio-years span { font: 500 .8125rem/1.25 var(--noka); text-transform: uppercase; letter-spacing: .04em; max-width: 18ch; }
.film--turns { margin-top: auto; }
.film--turns video { outline: 1px solid var(--line); outline-offset: -1px; }
.film--turns figcaption { padding-bottom: .625rem; }

/* ---------- services: a numbered list; a row floods maroon under the pointer, and the whole row is the link ---------- */
.svc-panel { padding: 6rem var(--edge); border-top: 1px solid var(--line); }
.svc-panel > .label { margin-bottom: 2.5rem; }
.svc-list { border-bottom: 1px solid var(--line); }
.svc-row { position: relative; border-top: 1px solid var(--line); isolation: isolate; }
.svc-row::before { content: ""; position: absolute; inset: -1px calc(-1 * var(--edge)); z-index: -1; background: var(--maroon); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.svc-text { display: grid; grid-template-columns: 4rem minmax(0, 1fr) 12rem; gap: 1.5rem; align-items: baseline; padding: 1.5rem 0; transition: color .3s; }
.svc-n { font: 400 .875rem/1 var(--noka); color: var(--ink-soft); transition: color .3s; }
.svc-text h3 { font: 400 clamp(1.375rem, 2vw, 2.125rem)/1.05 var(--noka); letter-spacing: -.015em; transition: translate .5s var(--out); }
.svc-btn { justify-self: end; padding: 6px 0; border-bottom: 1px solid currentColor; text-decoration: none; font: 500 .8125rem/1 var(--noka); text-transform: uppercase; letter-spacing: .04em; transition: color .3s; }
.svc-btn::after { content: ""; position: absolute; inset: 0; }
.svc-btn:focus-visible { outline: none; }
.svc-row:has(.svc-btn:focus-visible) { outline: 2px solid var(--maroon); outline-offset: 2px; }
@media (hover: hover) {
  .svc-row:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
  .svc-row:hover .svc-text { color: var(--paper); }
  .svc-row:hover .svc-n, .svc-row:hover .svc-btn { color: var(--saffron); }
  .svc-row:hover h3 { translate: 1rem 0; }
}

/* ---------- enquiry: I need ___ on saffron ---------- */
.need { padding: clamp(24px, 4vw, 40px) var(--edge); }
.need-panel { background: var(--saffron); color: var(--ink); padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 56px); min-height: min(48vh, 460px); display: grid; align-content: center; }
.need-one { display: grid; grid-template-columns: 7fr 5fr; gap: 2rem; align-items: end; }
.need-line { font: 400 clamp(2.5rem, 6.4vw, 6rem)/.95 var(--noka); letter-spacing: -.03em; display: flex; flex-wrap: wrap; column-gap: .25em; align-items: baseline; }
/* the window is a line and a third tall, so descenders (the p, g and h of photographs) are not clipped;
   the line keeps its baseline because the window, like the word, is the line's full height */
.slot { display: inline-block; height: 1.34em; overflow: hidden; color: var(--maroon); vertical-align: bottom; }
.slot-track { display: block; transition: transform .55s cubic-bezier(.7, 0, .2, 1); }
.slot-word { display: block; line-height: 1.34; white-space: nowrap; }
.need-pick { display: grid; gap: 18px; justify-items: start; }
.need-hint { font: 500 .875rem/1 var(--noka); }
.need-list { display: flex; flex-wrap: wrap; gap: 6px; }
.need-list:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.need-list button { font: 500 .875rem/1 var(--noka); padding: 9px 12px; border: 1px solid rgba(0, 0, 0, .35); border-radius: 99px; transition: background .2s, color .2s, rotate .25s; }
.need-list button[aria-selected="true"] { background: var(--ink); color: var(--saffron); border-color: var(--ink); rotate: -2deg; }
@media (hover: hover) { .need-list button:hover { border-color: var(--ink); } }
.need-next, .send { background: var(--ink); color: var(--paper); padding: 14px 28px; font: 500 1rem/1 var(--noka); transition: background .2s, rotate .3s, scale .3s cubic-bezier(.3, 1.7, .5, 1); }
@media (hover: hover) { .need-next:hover, .send:hover { background: var(--maroon); rotate: -2deg; scale: 1.04; } }
.need-next::after { content: " \2192"; }
.need :focus-visible { outline-color: var(--ink); }
.need-two { display: grid; gap: 36px; max-width: 980px; }
.need-line--small { font-size: clamp(1.875rem, 4vw, 3.5rem); }
.need-line--small:focus { outline: none; }
.need-chosen { font-weight: 400; color: var(--maroon); }
.need-back { font: 500 .875rem/1 var(--noka); border-bottom: 1px solid currentColor; align-self: center; padding: 6px 0 3px; }
@media (hover: hover) { .need-back:hover { color: var(--maroon); } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 2rem; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field span { font: 500 .875rem/1.2 var(--noka); }
.field input, .field textarea { border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 8px 0; font-size: 1.125rem; border-radius: 0; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--maroon); padding-bottom: 7px; }
.field [aria-invalid="true"] { border-bottom: 2px solid var(--maroon); }
.form-end { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.send[disabled] { opacity: .5; cursor: progress; }
.form-status a { color: inherit; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer: black, with the ring and the big word ---------- */
.foot { padding: 0 var(--edge) var(--edge); }
.foot-panel { background: var(--ink); color: var(--paper); padding: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px) 28px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; align-items: start; }
.foot-brand { grid-column: 1 / span 2; }
.foot-mark { width: 64px; height: 64px; }
.foot-mark .m-l, .ring .m-l { fill: var(--paper); }
.foot-col { display: grid; gap: 2px; justify-items: start; }
.foot-col--site { grid-column: 5 / span 2; }
.foot-col--talk { grid-column: 7 / span 4; }
.foot-h { font: 500 .875rem/1 var(--noka); color: rgba(255, 255, 255, .62); margin-bottom: 8px; }
.foot-col a { display: inline-block; padding: 3px 0; text-decoration: none; }
.foot-copy { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.copy { font: 500 .875rem/1 var(--noka); border: 1px solid rgba(255, 255, 255, .4); padding: 4px 8px; }
.copy-done { font-size: .875rem; color: var(--saffron); }
@media (hover: hover) { .foot-col a:hover { color: var(--saffron); } .copy:hover { border-color: var(--saffron); color: var(--saffron); } }
.foot :focus-visible { outline-color: var(--saffron); }
.ring { grid-column: 11 / span 2; justify-self: end; width: 120px; height: 120px; display: block; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring text { font: 500 10.6px var(--noka); letter-spacing: .14em; fill: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .ring svg text { transform-origin: 60px 60px; animation: spinT 22s linear infinite; }
  .ring:hover svg text { animation-duration: 6s; }
}
@keyframes spinT { to { transform: rotate(360deg); } }
.foot-line { margin-top: clamp(56px, 10vh, 120px); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .72); max-width: none; font-size: .9375rem; }

/* ---------- case study overlay: the old sticker cards ---------- */
html.locked { overflow: hidden; }
.cs {
  --die: 0 0 0 1px rgba(0, 0, 0, .14), 0 7px 14px -9px rgba(0, 0, 0, .5);
  position: fixed; inset: 0; z-index: 88; background: var(--cs-bg, var(--paper)); color: var(--cs-fg, var(--ink));
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); transition: background-color .6s, color .3s;
}
.cs[data-tone="dark"] { --cs-fg: var(--paper); }
.cs.wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.cs-art { position: relative; margin: clamp(12px, 1.6vw, 24px); margin-right: 0; border-radius: 8px; overflow: hidden; background: var(--ink); }
.cs-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-art.fit::before { content: ""; position: absolute; inset: -40px; background: var(--back) center/cover; filter: blur(24px) brightness(.8); }
.cs-art.fit .cs-main { object-fit: contain; }
.cs-pick { position: absolute; left: 14px; top: 14px; background: var(--paper); color: var(--ink); padding: 5px 10px 4px; border-radius: 99px; }
.cs-body { overflow: auto; overscroll-behavior: contain; padding: clamp(18px, 2.4vw, 40px) clamp(18px, 3vw, 56px) 40px; display: flex; flex-direction: column; container-type: inline-size; }
.cs-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: clamp(24px, 5vh, 70px); }
.cs-close, .btn-ghost { border: 2px solid currentColor; background: transparent; color: inherit; border-radius: 99px; padding: 8px 14px; font: 500 .875rem/1.2 var(--noka); transition: rotate .3s, scale .3s; }
.cs-close kbd { font: 500 11px var(--noka); opacity: .7; margin-left: 6px; }
.cs-k { margin-bottom: 12px; opacity: .85; }
.cs-title { font: 500 min(clamp(36px, 4.6vw, 76px), calc(150cqi / var(--tl, 1)))/.9 var(--noka); letter-spacing: -.04em; }
.cs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; margin: 28px 0; padding: 16px 0; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.cs-meta dt { font: 500 .6875rem var(--noka); text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin-bottom: 4px; }
.cs-meta dd { font-weight: 500; }
.cs-story p { font: 400 clamp(15px, 1.15vw, 20px)/1.3 var(--karmina); margin: 0 0 .7em; max-width: 64ch; }
.frames { margin: 24px 0 6px; }
.frames-h { margin-bottom: 10px; opacity: .85; }
.frames-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 4px 2px 8px; }
.fr { background: var(--paper); color: var(--ink); border-radius: 10px; overflow: hidden; text-align: left; box-shadow: var(--die); display: flex; flex-direction: column; transition: translate .25s, rotate .25s, scale .25s; }
.fr img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fr span { display: block; padding: 6px 8px 8px; font: 500 12px/1.15 var(--karmina); }
.fr[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; rotate: -1.5deg; }
.cs[data-tone="dark"] .fr[aria-pressed="true"] { outline-color: var(--saffron); }
.fr-now { margin-top: 12px; font: 500 clamp(16px, 1.3vw, 19px)/1.2 var(--karmina); max-width: 40ch; }
.cs-cards { display: grid; gap: 36px; margin: 44px 0 12px; padding: 0 4px; }
.cs-card { position: relative; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 32px 22px 18px; box-shadow: var(--die); rotate: -1deg; max-width: 560px; }
.cs-card:nth-of-type(3n+2) { rotate: 1.2deg; } .cs-card:nth-of-type(3n) { rotate: -.6deg; }
.cs-card-k { position: absolute; top: -13px; left: 18px; background: var(--saffron); color: var(--ink); padding: 6px 12px 5px; border-radius: 99px; rotate: -2.5deg; box-shadow: var(--die); }
.cs-card:nth-of-type(even) .cs-card-k { background: var(--maroon); color: var(--paper); }
.cs-card p { font-size: 18px; line-height: 1.45; margin: 0 0 .7em; }
.cs-card .cs-card-h { font: 700 clamp(19px, 1.5vw, 22px)/1.15 var(--karmina); letter-spacing: -.01em; margin: 0 0 .45em; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.cs-tags span { border: 2px solid var(--ink); border-radius: 99px; padding: 5px 11px 4px; font: 500 14px/1.1 var(--noka); }
.cs-card .cs-note { font: italic 400 clamp(24px, 2vw, 30px)/1.08 var(--karmina); color: var(--maroon); rotate: -2deg; margin: 14px 0 6px; max-width: 22ch; }
.cs-quote { margin: 18px 0; padding: 16px 18px; background: var(--saffron); color: var(--ink); border-radius: 12px; rotate: -1.2deg; max-width: 34ch; box-shadow: 0 0 0 3px var(--paper), var(--die); }
.cs-quote p { font: 700 23px/1.1 var(--karmina); letter-spacing: -.01em; }
.cs-quote cite { display: block; margin-top: 8px; font: 500 12px var(--noka); font-style: normal; text-transform: uppercase; letter-spacing: .06em; }
.cs-body .compare { max-width: 560px; margin: 24px 0 8px; border-radius: 10px; box-shadow: 0 0 0 3px var(--paper), var(--die); rotate: .8deg; }
.cs-actions { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-next { background: var(--ink); color: var(--paper); border-radius: 99px; padding: 16px 24px; font: 600 18px/1 var(--noka); letter-spacing: -.01em; box-shadow: 0 0 0 3px var(--paper); transition: scale .3s cubic-bezier(.3, 1.7, .5, 1), rotate .3s; }
.cs[data-tone="dark"] .btn-next { background: var(--saffron); color: var(--ink); }
.btn-ghost { padding: 14px 20px; }
@media (hover: hover) {
  .fr:hover { translate: 0 -5px; rotate: -1.5deg; scale: 1.03; }
  :is(.btn-next, .btn-ghost, .cs-close):hover { rotate: -3deg; scale: 1.06; }
  :is(.btn-ghost, .cs-close):hover { background: var(--saffron); color: var(--ink); border-color: var(--ink); }
}

/* before / after (scan and print, in the case overlay) */
.compare { position: relative; overflow: hidden; aspect-ratio: 800 / 1052; background: #000; user-select: none; touch-action: pan-y; }
.compare > img, .compare-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--saffron); pointer-events: none; }
.compare-label { position: absolute; top: 12px; font: 500 .75rem var(--noka); text-transform: uppercase; color: var(--ink); background: var(--paper); padding: 3px 8px; pointer-events: none; }
.compare-label--b { left: 12px; }
.compare-label--a { right: 12px; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.compare-range:focus-visible) { outline: 2px solid var(--saffron); outline-offset: 3px; }

/* ---------- small laptops and tablets: two columns of mats ---------- */
@media (max-width: 1199px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; }
  .card.wide .card-img { aspect-ratio: 16 / 10; flex: 1 0 auto; }
}

/* ---------- tablet ---------- */
@media (max-width: 991px) {
  .nav { flex-basis: 64%; }
  .nav-cta { min-width: 9rem; }
  .studio { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding: 0 0 4rem; }
  .studio-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .studio-body { padding: 0 var(--edge); }
  .film--turns { margin-top: 1rem; }
  .svc-text { grid-template-columns: 3rem minmax(0, 1fr) auto; }
  .need-one { grid-template-columns: 1fr; }
  .need-panel { min-height: 0; }
  .hello { right: calc(var(--edge) + 6.5rem); }
  .foot-top { column-gap: 1rem; }
  .foot-brand { grid-column: 1 / span 2; }
  .foot-col--site { grid-column: 3 / span 3; }
  .foot-col--talk { grid-column: 6 / span 5; }
  .ring { grid-column: 11 / span 2; grid-row: 1; justify-self: end; width: 96px; height: 96px; }
}

/* ---------- phone ---------- */
@media (max-width: 759px) {
  :root { --edge: 1rem; --head-h: 56px; }
  .nav { flex: none; gap: 1.1rem; }
  .nav a { font-size: .8125rem; }
  .nav a[href="#studio"] { display: none; }
  .nav-cta { min-width: 0; gap: .4rem; }
  .hero-band { padding-top: 2rem; gap: 1.5rem; }
  .hero-h { display: flex; flex-wrap: wrap; font-size: min(3rem, 13vw); justify-content: flex-start; column-gap: .25em; }
  .film--study video, .film--turns video { aspect-ratio: 9 / 16; }
  .hello { width: 96px; height: 96px; left: auto; right: var(--edge); top: -76px; }
  .film--hero .film-btn { right: auto; left: 0; }
  .hello span:last-child { font-size: 1.125rem; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem; justify-items: center; }
  .hero-sub { grid-column: 1; }
  .hero-jump { grid-row: 2; justify-self: start; }
  .work { padding-bottom: 4rem; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .card.wide { grid-column: auto; }
  .card.wide .card-img { aspect-ratio: 4 / 3; }
  .study { padding-bottom: 4rem; }
  .studio-photo { aspect-ratio: 4 / 5; }
  .svc-panel { padding: 4rem var(--edge); }
  .svc-text { grid-template-columns: 2rem minmax(0, 1fr); gap: .5rem 1rem; }
  .svc-btn { grid-column: 1 / -1; justify-self: start; }
  .need { padding: 14px 0; }
  .need-panel { padding: 40px 16px; min-height: 0; }
  .need-line { font-size: min(2.75rem, 12vw); }
  .need-line--small { font-size: min(2rem, 9vw); }
  .fields { grid-template-columns: 1fr; }
  .foot { padding: 0; }
  .foot-panel { padding: 32px 16px 40px; }
  .foot-top { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot-brand { grid-column: 1; }
  .ring { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; width: 96px; height: 96px; }
  .foot-col--site { grid-column: 1; }
  .foot-col--talk { grid-column: 1 / -1; }
  .tidy { bottom: var(--edge); }

  .cs { display: block; overflow: hidden auto; overscroll-behavior: contain; }
  /* on a phone the picture panel takes the picture's own shape, so nothing is cropped away */
  .cs-art { aspect-ratio: var(--car, 1); max-height: 60vh; max-height: 60dvh; margin: 12px 12px 0; }
  .cs-body { overflow: visible; padding: 18px 16px 40px; }
  .cs-top { position: sticky; top: 0; z-index: 2; background: var(--cs-bg, var(--paper)); margin: -18px -16px 24px; padding: max(14px, env(safe-area-inset-top)) 16px 12px; border-bottom: 2px solid currentColor; }
  .cs-title { font-size: min(52px, calc(150cqi / var(--tl, 1))); }
  .frames-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scroll-padding: 0 16px; }
  .fr { scroll-snap-align: start; }
  /* the smallest phones: the mark alone carries the name, so the nav fits */
  @media (max-width: 380px) { .brand-word { display: none; } }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .read .w, .slot-track, .card, .card-img img, .card-img .alt, .card-meta::after, .arr2 svg, .arc-row, .arc-row::before, .svc-row::before, .svc-text h3, .peek, .cs, .dragger, .fr { transition: none; }
  .hello .spin { animation: none; }
  .peek { display: none; }
}
