/* Charli Burns: video editor, videographer and creative director
   Palette from pastael.co.uk: cream ground, brown ink, blush pink surface, rose accent.
   Type: Gelasio, a Georgia-style serif (headings, project titles, introductions and italic notes) over Commissioner
   (running text and controls), with a handwritten marker face for Charli's name and the scrapbook notes.
   Scrapbook details (stickers, brushstrokes, tape, notes) are in the "scrapbook" block near the end. */

/* ---------- tokens ---------- */
:root {
  --bg: #F8F4EF;          /* cream ground */
  --surface: #F1D3D2;     /* blush pink */
  --ink: #574138;         /* brown */
  --muted: #86695E;       /* soft brown, on the cream ground only */
  --accent: #E5A3AE;      /* rose, on the action */
  --accent-ink: #574138;
  --on-ink: #F8F4EF;
  --on-ink-soft: #F1D3D2;

  --font-display: "Gelasio", Georgia, "Times New Roman", serif;
  --font-text: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Covered By Your Grace", "Bradley Hand", "Segoe Print", cursive; /* Charli's name and the handwritten notes */
  --font-notebook: "Patrick Hand", "Segoe Print", "Bradley Hand", cursive; /* neat print handwriting for words written straight onto the notebook paper */
  --track-display: -0.012em;
  --sticker-shadow: drop-shadow(0 1px 1px rgba(39, 28, 24, 0.22)) drop-shadow(0 6px 10px rgba(39, 28, 24, 0.16)); /* taste-skill-ignore: the stickers sit on the page like paper, as the brief asks */

  --step-small: 0.8125rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.277rem, 0.766rem + 0.63vw, 1.419rem);
  --step-sub: clamp(1.510rem, 0.906rem + 0.94vw, 1.887rem);
  --step-head: clamp(1.887rem, 1.132rem + 1.40vw, 2.519rem);
  --step-display: clamp(2.494rem, 1.496rem + 4.09vw, 5.938rem);

  --margin: clamp(1.5rem, 4.5vw, 4.5rem);
  --gutter: clamp(1rem, 1.7vw, 1.5rem);
  --section-gap: clamp(7rem, 12vh + 7vw, 15.75rem);
  --radius: 16px;
  --hud-inset: 28px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg, iframe { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }

.head { font-size: var(--step-head); font-weight: 500; line-height: 1.08; letter-spacing: var(--track-display); }
.skip { position: fixed; left: var(--margin); top: 8px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); transform: translateY(-160%); }
.skip:focus { transform: none; }
.section { padding-inline: var(--margin); padding-block: calc(var(--section-gap) / 2); }

/* ---------- controls: the circle-arrow button and its quieter sibling, the underlined label ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; color: var(--ink); font-size: 1.125rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out); }
.btn__label { transition: transform var(--t-hover) var(--ease-out); }
.btn__circle { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.btn__circle svg { transition: transform var(--t-hover) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--on-ink { color: var(--on-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__label { transform: translateX(4px); }
  .btn:hover .btn__circle svg { transform: rotate(-45deg); }
}
.btn:focus-visible .btn__circle svg { transform: rotate(-45deg); }

.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; background: var(--bg); color: var(--ink); border-radius: var(--radius); font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.tab:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .tab:hover { background: var(--ink); color: var(--bg); } }

.text-btn { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-text); font-size: 1rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; transition: text-underline-offset var(--t-hover) ease, opacity var(--t-hover) ease; }
.text-btn:active { opacity: 0.7; }
@media (hover: hover) and (pointer: fine) { .text-btn:hover { text-underline-offset: 0.4em; } }

/* ---------- navigation: four corner tabs ---------- */
.hud { position: fixed; z-index: 40; isolation: isolate; }
.hud__ground { position: absolute; inset: 0; z-index: -1; background: var(--bg); border-radius: inherit; transition: background-color var(--t-hover) ease; }
.hud__brand { top: var(--hud-inset); left: var(--margin); font-family: var(--font-display); font-size: var(--step-sub); font-weight: 500; line-height: 1; padding: 12px 14px 10px; transition: opacity 240ms ease, background-color var(--t-hover) ease, color var(--t-hover) ease; }
.hud__brand.is-away, .hud__action.is-away { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hud__brand, .hud__action { animation: tab-in 240ms ease; }
}
@keyframes tab-in { from { opacity: 0; } }
.hud__menu { top: var(--hud-inset); right: var(--margin); }
.hud__action { bottom: var(--hud-inset); left: var(--margin); min-height: 0; padding: 6px 6px 6px 18px; border-radius: 40px; font-size: 1rem; transition: opacity 240ms ease, transform var(--t-press) var(--ease-out); }
.hud__action .btn__circle { width: 44px; height: 44px; }
.hud__top { bottom: var(--hud-inset); right: var(--margin); background: none; opacity: 0; visibility: hidden; transition: none; }
.hud__top.is-on { opacity: 1; visibility: visible; transition: opacity 240ms ease; }
@media (hover: hover) and (pointer: fine) {
  .hud__top:hover { background: none; color: var(--bg); }
  .hud__top:hover .hud__ground { background: var(--ink); }
}
@media (max-width: 47.99em) {
  :root { --hud-inset: 16px; }
  .hud__brand { font-size: var(--step-lead); }
  .hud__action { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .hud__top { display: none; }
}

/* ---------- hero: the name, filled fact rows and a picture ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; column-gap: var(--gutter); row-gap: 40px; padding: calc(var(--hud-inset) + 92px) var(--margin) calc(var(--section-gap) / 2); }
.hero__words { grid-column: 1 / span 7; grid-row: 1; }
.hero__title { font-size: var(--step-display); line-height: 1.02; letter-spacing: var(--track-display); }
.hero--page .hero__title { max-width: 9em; }
.hero--page .hero__words { grid-column: 1 / span 6; } /* ends before the cover begins */
.hero__lead { margin-top: 36px; font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.4; max-width: 32ch; }
.hero__foot { grid-column: 1 / span 6; grid-row: 3; display: grid; gap: 32px; justify-items: start; }
.facts { display: grid; gap: 8px; width: 100%; }
.fact { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; column-gap: var(--gutter); min-height: 64px; padding: 10px 22px; background: var(--surface); border-radius: var(--radius); }
.fact dt { font-size: var(--step-body); }
.fact dd { font-size: var(--step-lead); line-height: 1.25; }
.hero__picture { grid-column: 8 / span 5; grid-row: 1 / span 3; position: relative; min-height: 0; }
.hero__photo { --picture-ground: var(--surface); position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.hero__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--page .hero__picture { grid-column: 7 / span 6; }
@media (max-width: 63.99em) {
  .hero__words, .hero__foot { grid-column: 1 / span 7; }
  .hero__picture, .hero--page .hero__picture { grid-column: 8 / span 5; }
  .fact { grid-template-columns: 1fr; row-gap: 2px; padding-block: 12px; }
}
@media (max-width: 47.99em) {
  .hero { display: flex; flex-direction: column; gap: 28px; padding-top: calc(var(--hud-inset) + 76px); padding-bottom: 96px; }
  .hero__lead { margin-top: 20px; }
  .fact { grid-template-columns: 7.5rem 1fr; row-gap: 0; padding: 10px 16px; }
  .hero__foot .btn { width: 100%; justify-content: space-between; }
  .hero__picture { width: 100%; aspect-ratio: 4 / 5; flex: none; }
  .hero--page .hero__picture { aspect-ratio: 954 / 745; }
}

/* ---------- home hero: the showreel behind the name ---------- */
.hero--reel { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(56px, 10vh, 104px); background: #271C18; color: var(--on-ink); }
.hero__reel { --picture-ground: #271C18; position: absolute; inset: 0; z-index: -1; overflow: clip; }
.hero__reel > video { width: 100%; height: 100%; object-fit: cover; background: #271C18; }
.hero__reel::after { content: ""; position: absolute; inset: 0; background: rgba(39, 28, 24, 0.5); } /* a flat scrim so the name reads over every shot */
.hero__name { position: relative; width: fit-content; }
/* the name in quick, hand-written capitals, the strokes thickened a touch to sit closer to the marker reference */
.hero--reel .hero__title { font-family: var(--font-hand); font-weight: 400; font-size: clamp(5rem, 2.6rem + 6.4vw, 9.5rem); line-height: 0.92; letter-spacing: 0.02em; text-transform: uppercase; -webkit-text-stroke: 0.022em currentColor; }
.hero--reel .hero__title span { display: block; }
/* a torn scrap of notebook paper behind the name, so it reads over every shot of the reel. The scrap is sized from
   the heading (--pad-x, --pad-y around it), tilted slightly while the name stays level; the soft cast sits on
   .hero__paper because the torn clip on .hero__sheet would cut it off */
.hero__name { --pad-x: clamp(16px, 0.6rem + 1.6vw, 40px); --pad-y: clamp(12px, 0.4rem + 1.2vw, 28px); margin-top: var(--pad-y); margin-bottom: calc(var(--pad-y) + clamp(14px, 0.6rem + 1vw, 28px)); }
.hero__paper { position: absolute; inset: calc(var(--pad-y) * -1) calc(var(--pad-x) * -1); z-index: 0; rotate: -1.5deg; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(39, 28, 24, 0.28)) drop-shadow(0 12px 18px rgba(39, 28, 24, 0.35)); } /* taste-skill-ignore: a paper scrap lifts off the footage, as the brief asks */
.hero__sheet { position: absolute; inset: 0; background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.34 0 0 0 0 0.25 0 0 0 0 0.22 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 30' preserveAspectRatio='none'%3E%3Cpath d='M0 29.5H10' stroke='%23574138' stroke-opacity='0.1' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-size: 180px 180px, 100% var(--rule);
  --rule: clamp(18px, 0.8rem + 0.9vw, 30px);
  clip-path: polygon(0.6% 3px, 2.6% 0.3px, 4.2% 1.4px, 7.3% 1.8px, 9.0% 4.0px, 12.7% 0.1px, 15.2% 1.3px, 17.1% 1.6px, 21.4% 2.1px, 24.4% 5.0px, 26.7% 5.9px, 30.2% 2.1px, 31.9% 5.8px, 34.9% 2.5px, 37.5% 0.9px, 42.4% 2.3px, 46.7% 4.9px, 49.1% 5.4px, 51.9% 4.5px, 53.6% 0.6px, 55.5% 3.5px, 60.4% 4.1px, 65.8% 0.4px, 67.0% 2.0px, 70.0% 4.0px, 74.9% 5.3px, 80.0% 6.4px, 82.9% 1.0px, 84.4% 0.5px, 86.0% 4.0px, 87.3% 5.1px, 92.6% 4.4px, 98.1% 1.1px, calc(100% - 2px) 1px, calc(100% - 3.2px) 13.6%, calc(100% - 2.1px) 24.0%, calc(100% - 1.8px) 35.1%, calc(100% - 1.6px) 48.0%, calc(100% - 1.7px) 59.3%, calc(100% - 2.4px) 74.8%, calc(100% - 3.3px) 89.5%, 100% calc(100% - 4px), 95.6% calc(100% - 1.3px), 90.3% calc(100% - 1.5px), 85.9% calc(100% - 6.0px), 82.4% calc(100% - 1.1px), 77.9% calc(100% - 0.9px), 73.2% calc(100% - 1.1px), 69.9% calc(100% - 7.9px), 67.6% calc(100% - 2.1px), 62.1% calc(100% - 2.7px), 58.9% calc(100% - 4.7px), 54.1% calc(100% - 1.3px), 49.3% calc(100% - 0.3px), 46.1% calc(100% - 1.6px), 43.2% calc(100% - 1.1px), 37.7% calc(100% - 2.2px), 35.900000000000006% calc(100% - 7.9px), 34.0% calc(100% - 3.8px), 30.0% calc(100% - 1.5px), 25.200000000000003% calc(100% - 0.6px), 20.799999999999997% calc(100% - 0.9px), 15.599999999999994% calc(100% - 2.8px), 12.599999999999994% calc(100% - 2.6px), 9.200000000000003% calc(100% - 2.4px), 7.299999999999997% calc(100% - 6.5px), 3.200000000000003% calc(100% - 3.7px), 1.7000000000000028% calc(100% - 2.6px), 0% calc(100% - 2px), 3.3px 88.4%, 0.5px 74.0%, 1.5px 66.8%, 0.8px 60.1%, 2.3px 53.3%, 3.1px 39.5%, 2.5px 31.900000000000006%, 0.5px 19.299999999999997%); }
/* the notebook margin: one faint rose line down the left */
.hero__sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--pad-x) * 0.55); width: 1.5px; background: rgba(229, 163, 174, 0.4); }
/* one strip of blush tape on the top-left corner */
.hero__paper::after { content: ""; position: absolute; top: -10px; left: -14px; width: clamp(64px, 3rem + 2.4vw, 108px); aspect-ratio: 160 / 46; background: url(../media/stickers/tape.svg) center / 100% 100% no-repeat; rotate: -28deg; }
.hero--reel .hero__title { position: relative; z-index: 1; color: var(--ink); }
.hero--reel .hero__lead { margin-top: 24px; font-size: var(--step-sub); line-height: 1.25; max-width: 24ch; }
.hero--reel .btn { margin-top: 36px; }
.hero__pause { position: absolute; right: var(--margin); bottom: clamp(56px, 10vh, 104px); color: var(--on-ink); }
@media (max-width: 47.99em) {
  .hero--reel { padding-bottom: 48px; }
  .hero--reel .btn { margin-top: 28px; }
  .hero__pause { position: static; align-self: flex-start; margin-top: 8px; }
}
@media (max-width: 63.99em) { .hero__paper::after { left: -4px; top: -12px; rotate: -22deg; } }

/* ---------- who I've worked with: a carousel of polaroids, the middle card large and the rest at the sides ---------- */
.who { padding-inline: 0; padding-top: calc(var(--section-gap) / 2 + 32px); overflow: clip; }
.who__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 12px; align-items: end; padding-inline: var(--margin); }
.who__head h2 { grid-column: 1 / span 6; }
.who__head p { grid-column: 8 / span 5; font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.4; }
/* Each card is a polaroid: its picture window (the original card's size and crop) in a narrow paper border, deeper
   below, where the name is written. --pb is the border, --pb-low the deeper bottom border. */
.who__carousel { --who-w: clamp(210px, 23vw, 340px); --who-grow: 1.28; --pb: 12px; --pb-low: 68px; position: relative; margin-top: 56px; }
.who__viewport { position: relative; overflow: hidden; outline-offset: -3px; touch-action: pan-y; }
/* each card is placed by the script around the middle of the line, so the cards rotate endlessly */
.who__track { position: relative; height: calc(var(--who-w) * 1.74 + var(--pb) + var(--pb-low) + 28px); user-select: none; -webkit-user-select: none; }
.who__card { position: absolute; left: 50%; top: 50%; width: calc(var(--who-w) + var(--pb) * 2); height: calc(var(--who-w) * 1.5 + var(--pb) + var(--pb-low)); border-radius: 2px; background: var(--paper) var(--grain); background-size: auto, 180px 180px; cursor: pointer; transform: translate(-50%, -50%); box-shadow: 0 1px 2px rgba(39, 28, 24, 0.12), 0 10px 18px -12px rgba(39, 28, 24, 0.4); transition: transform 650ms var(--ease-out), width 650ms var(--ease-out), height 650ms var(--ease-out), opacity 400ms ease; } /* taste-skill-ignore: a print resting on the page */
.who__card.is-active { z-index: 2; width: calc(var(--who-w) * var(--who-grow) + var(--pb) * 2); height: calc(var(--who-w) * 1.74 + var(--pb) + var(--pb-low)); cursor: auto; box-shadow: 0 2px 3px rgba(39, 28, 24, 0.12), 0 18px 28px -16px rgba(39, 28, 24, 0.45); } /* taste-skill-ignore: the middle print */
/* the cards waiting at the sides are faded back into the page, as in the Pastael reference */
.who__carousel.is-live .who__card:not(.is-active) { opacity: 0.45; }
/* the picture window: the still, the preview clip and the chips share the same box inside the border */
.who__still, .who__preview, .who__overlay { position: absolute; top: var(--pb); left: var(--pb); width: calc(100% - var(--pb) * 2); height: calc(100% - var(--pb) - var(--pb-low)); }
.who__still { object-fit: cover; background: var(--surface); }
/* the middle card's 5-second preview clip: over the still, same crop, faded in once it is really playing */
.who__preview { object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 450ms ease; }
.who__card.is-active .who__preview.is-playing { opacity: 1; }
.who__track img { pointer-events: none; -webkit-user-drag: none; }
.who__overlay { z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; }
/* the chips and play button only on the middle card; on the others they are hidden, so never in the tab order */
.who__foot { transition: opacity 300ms ease 200ms, visibility 0s; }
.who__card:not(.is-active) .who__foot { opacity: 0; visibility: hidden; transition: opacity 150ms ease, visibility 0s linear 150ms; }
/* the name, written in the deep bottom border, with the collaborator's small round photo */
.who__name { position: absolute; left: 0; right: 0; top: 100%; height: var(--pb-low); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; font-family: var(--font-hand); font-size: clamp(1.5rem, 1.2rem + 0.6vw, 1.875rem); line-height: 1; color: var(--ink); white-space: nowrap; }
.who__name span { overflow: hidden; text-overflow: clip; }
/* a credit under the name, set like the chips' credit lines ("With …") */
.who__name:has(.who__credit) { flex-wrap: wrap; align-content: center; row-gap: 2px; }
.who__name .who__credit { flex-basis: 100%; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 0.9375rem; line-height: 1.2; color: var(--muted); }
.who__name img { flex: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px rgba(87, 65, 56, 0.18); } /* taste-skill-ignore: a small round photo pasted beside the name */
.who__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.who__chips { display: grid; gap: 6px; min-width: 0; max-width: 64%; }
.chip { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--bg); color: var(--ink); text-align: left; text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.chip img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.chip__text { display: grid; min-width: 0; }
.chip__title { font-family: var(--font-display); font-size: 1rem; font-weight: 500; line-height: 1.2; }
.chip__label { font-family: var(--font-display); font-style: italic; font-size: 1rem; line-height: 1.3; color: var(--muted); }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--surface); } }
.who__play { flex: none; border-radius: 50%; transition: transform var(--t-press) var(--ease-out); }
.who__play svg { transition: transform var(--t-hover) var(--ease-out); }
.who__play:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .who__play:hover svg { transform: scale(1.15); } }
.who__controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; min-height: 44px; margin-top: 22px; padding-inline: var(--margin); }
.who__dots { display: flex; align-items: center; gap: 2px; }
.who__dot { display: grid; place-items: center; width: 22px; height: 44px; }
.who__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: 0.35; transition: transform 300ms var(--ease-out), opacity 300ms ease; }
.who__dot[aria-current="true"]::before { opacity: 1; transform: scale(1.75); }
.who__toggle { flex: none; }
/* still while being dragged, while setting up, and for a card that goes round from one end of the line to the other */
.who__carousel.is-still .who__card, .who__card.is-wrapping { transition: none; }
/* without the script: the prints as one row the visitor can scroll sideways, every print shown in full */
.who__carousel:not(.is-live) .who__viewport { overflow-x: auto; }
.who__carousel:not(.is-live) .who__track { display: flex; align-items: center; gap: 10px; width: max-content; padding-inline: var(--margin); }
.who__carousel:not(.is-live) .who__card { position: relative; left: auto; top: auto; flex: none; transform: none; }
.who__carousel:not(.is-live) .who__foot { opacity: 1; visibility: visible; }
/* scrapbook props beside the carousel: a pair of craft scissors and a roll of washi tape, photographed from above and
   cut out (media/props). They lie still in the corners of the row of dots, clear of the cards and the controls. Lit
   from the upper left like the page, each casts one soft, close contact shadow. Never clickable. */
.who__props { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.who__prop { position: absolute; height: auto; filter: drop-shadow(1px 2px 1.5px rgba(39, 28, 24, 0.2)) drop-shadow(3px 6px 8px rgba(39, 28, 24, 0.12)); } /* taste-skill-ignore: objects resting on the page */
/* life-size beside the prints: each lies partly over the edge of the page (the section clips what runs off), low in
   the empty space under the row of dots, clear of the cards above */
.who__prop--scissors { width: clamp(150px, 5.6rem + 7vw, 214px); left: calc(clamp(150px, 5.6rem + 7vw, 214px) * -0.2); bottom: -64px; rotate: -8deg; }
.who__prop--tape { width: clamp(116px, 4.2rem + 5.2vw, 164px); right: calc(clamp(116px, 4.2rem + 5.2vw, 164px) * -0.24); bottom: -58px; rotate: 6deg; }
@media (max-width: 63.99em) {
  .who__prop--scissors { width: 138px; left: -26px; bottom: -40px; }
  .who__prop--tape { width: 108px; right: -24px; bottom: -36px; }
}
@media (max-width: 47.99em) { .who__props { display: none; } } /* phones use the copy above the favourites instead */
@media (max-width: 79.99em) { .who__chips { max-width: 76%; } }
/* the smaller cards of tablets and phones hold two chips */
@media (max-width: 63.99em) {
  .who__chips li:nth-child(n + 3) { display: none; }
}
@media (max-width: 47.99em) {
  .who__head h2, .who__head p, .who__head .stickered { grid-column: 1 / -1; }
  .who__carousel { --who-w: 58vw; --who-grow: 1.24; --pb: 10px; --pb-low: 54px; margin-top: 36px; }
  .who__track { height: calc(var(--who-w) * 1.74 + var(--pb) + var(--pb-low) + 20px); }
  .who__name { font-size: 1.375rem; gap: 8px; }
  .who__name img { width: 24px; height: 24px; }
  .who__overlay { padding: 10px; }
  .who__chips { max-width: none; flex: 1; }
  .chip { grid-template-columns: 36px minmax(0, 1fr); padding: 5px 8px 5px 5px; gap: 8px; }
  .chip img { width: 36px; height: 36px; }
  .chip__title { font-size: 0.9375rem; }
  .who__play .btn__circle { width: 48px; height: 48px; }
  .who__controls { gap: 0 12px; }
}

/* ---------- selected work: three showcases side by side, in paper frames ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* the handwritten note stands alone above the work, its arrow pointing down towards the first frame */
.featured__note { margin-left: clamp(0px, 4vw, 56px); }
.works { margin: 48px auto 0; max-width: 72rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px clamp(28px, 3.2vw, 48px); align-items: start; }
/* each showcase shares its rows (frame, label, title, words, link) with its neighbours, so they line up across */
.works > .work { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.work > * { align-self: start; }
.work__media { grid-row: 1; } .work__label { grid-row: 2; } .work__title { grid-row: 3; } .work__desc { grid-row: 4; } .work__link { grid-row: 5; justify-self: start; }
@media (min-width: 48em) { .work__media + .work__title { margin-top: 6px; } }
.work { position: relative; }
/* a print on paper: a pale paper border, a soft cast and a slight tilt; the words below stay level */
.work__media { --paper: #FFFCF8; position: relative; display: block; padding: clamp(8px, 0.8vw, 12px); background: var(--paper); border-radius: 6px; box-shadow: 0 1px 2px rgba(39, 28, 24, 0.08), 0 14px 28px -16px rgba(39, 28, 24, 0.32); rotate: var(--tilt, 0deg); transition: rotate 320ms var(--ease-out), translate 320ms var(--ease-out), box-shadow 320ms ease; } /* taste-skill-ignore: a paper print casts a soft shadow, as the brief asks */
.work__photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--surface); }
.work__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.work__label { margin-top: 24px; font-family: var(--font-text); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--muted); }
.work__label + .work__title { margin-top: 6px; }
.work__title { margin-top: 24px; font-size: clamp(1.5rem, 1.2rem + 0.6vw, 1.875rem); text-wrap: balance; font-weight: 500; line-height: 1.12; letter-spacing: var(--track-display); }
.work__title a { text-decoration: none; text-decoration-thickness: 1.5px; text-underline-offset: 0.16em; }
.work__desc { margin-top: 10px; max-width: 46ch; line-height: 1.55; }
.work__pending { font-family: var(--font-hand); font-size: clamp(1.5rem, 1.2rem + 0.6vw, 1.875rem); line-height: 1; color: var(--ink); rotate: -4deg; }
.work__link { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--font-text); font-size: 1rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; }
.work__link svg { transition: transform var(--t-hover) var(--ease-out); }
.work__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
/* pointing at a project, or tabbing to its link, straightens and lifts its print */
@media (hover: hover) and (pointer: fine) {
  .work:not(.work--pending):hover .work__media { rotate: 0deg; translate: 0 -4px; box-shadow: 0 2px 4px rgba(39, 28, 24, 0.08), 0 22px 36px -18px rgba(39, 28, 24, 0.36); } /* taste-skill-ignore: the print lifts off the page */
  .work:hover .work__photo img { transform: scale(1.03); }
  .work:hover .work__title a { text-decoration-line: underline; }
  .work:hover .work__link svg { transform: translate(2px, -2px); }
}
.work:focus-within .work__media { rotate: 0deg; translate: 0 -4px; }
.work:focus-within .work__link svg { transform: translate(2px, -2px); }
/* tape on a corner of some prints */
.work__media.taped--tl::before { top: -14px; left: -20px; rotate: -32deg; }
.work__media.taped--tr::before { top: -14px; right: -20px; rotate: 30deg; }
/* desktop (1280px and up): the favourites about 15% larger. The row may run 15% wider (82.8rem, still inside the
   page margins), and every size below is the original one times 1.15: the frames' paper border, the tape, the
   handwritten introduction, the labels, titles, descriptions and links, and the spaces between them. The frames
   keep their 4:3 crop, and the shared rows keep the image tops, titles and links level across the three columns. */
@media (min-width: 80em) {
  .works { max-width: 82.8rem; column-gap: clamp(32px, 3.68vw, 55px); }
  .featured .note.featured__note { font-size: clamp(2.0125rem, 1.495rem + 1.0925vw, 2.73rem); margin-left: max(0px, calc((100% - 82.8rem) / 2 - 28px)); }
  .work__media { padding: clamp(9px, 0.92vw, 14px); }
  .work__media.taped::before { width: clamp(106px, 5.175rem + 2.3vw, 147px); }
  .work__media.taped--tl::before { top: -16px; left: -16px; }
  .work__media.taped--tr::before { top: -16px; right: -23px; }
  .work__label { margin-top: 28px; font-size: 1.078rem; }
  .work__media + .work__title, .work__label + .work__title { margin-top: 7px; }
  .work__title { font-size: clamp(1.725rem, 1.38rem + 0.69vw, 2.156rem); }
  .work__desc { margin-top: 12px; font-size: 1.222rem; }
  .work__link { margin-top: 12px; min-height: 50px; gap: 7px; font-size: 1.15rem; }
  .work__link svg { width: 21px; height: 21px; }
}
/* a tablet: two across, the third centred below */
@media (max-width: 63.99em) {
  .works { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 46rem; gap: 64px 36px; }
  .work { grid-column: span 2; }
  .work:nth-child(3n) { grid-column: 2 / span 2; }
}
/* a phone: one under another, in order, level */
@media (max-width: 47.99em) {
  .works { grid-template-columns: minmax(0, 1fr); max-width: 30rem; gap: 56px; margin-top: 36px; }
  .works > .work { display: block; grid-row: auto; }
  .work, .work:nth-child(3n) { grid-column: auto; }
  .work__media { rotate: 0deg; }
  .work__media.taped--tl::before { left: -8px; }
  .work__media.taped--tr::before { right: -8px; }
  .featured__note { margin-left: 0; }
}

/* ---------- past collaborations & clients: a scrapbook of polaroid prints ---------- */
.collabs__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 48px; }
/* the section's heading is the handwritten "a few familiar faces" itself, its arrow curving down to the prints */
.collabs__title { font-weight: 400; text-wrap: pretty; }
/* Each print keeps its own tilt (--r), nudge (--x, --y) and size (--s), set on its slot in the HTML so the layout is the
   same on every visit. --k and --kr soften the nudges and tilts on smaller screens. The padding above and below leaves
   room for the prints nudged furthest and for their tape, so nothing spills into the sections around. */
.polaroids { --k: 1; --kr: 1; margin: 48px auto 0; max-width: 68rem; padding-block: 34px 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 58px clamp(12px, 2vw, 28px); }
.polaroid-slot { display: flex; justify-content: center; align-items: flex-start; }
/* a print: warm paper, narrow borders, a deeper bottom border for the name, almost-square corners */
.polaroid { --lift: 0px; --straight: 1; position: relative; display: block; width: min(100%, 196px); padding: 9px 9px 0; background: #FFFCF7; border-radius: 2px; color: var(--ink); text-decoration: none; box-shadow: 0 1px 1px rgba(39, 28, 24, 0.1), 0 10px 18px -12px rgba(39, 28, 24, 0.45); transform: translate(calc(var(--x, 0px) * var(--k)), calc(var(--y, 0px) * var(--k) + var(--lift))) rotate(calc(var(--r, 0deg) * var(--kr) * var(--straight))) scale(var(--s, 1)); transition: transform 340ms var(--ease-out), box-shadow 340ms ease; } /* taste-skill-ignore: a paper print casts a soft shadow, as the brief asks */
.polaroid__window { position: relative; display: grid; place-items: center; aspect-ratio: 7 / 8; overflow: hidden; background: var(--window, #EDE3D6); }
/* a portrait fills its window */
.polaroid--face .polaroid__window img { width: 100%; height: 100%; object-fit: cover; }
/* a logo shows whole, at its own proportions, with room round it on its own colour */
.polaroid--logo .polaroid__window img { width: 80%; height: 80%; object-fit: contain; }
/* a name with no picture: the name alone in the window, never an invented image */
.polaroid__blank { padding: 12%; font-family: var(--font-hand); font-size: 1.5rem; line-height: 1.1; text-align: center; }
/* the name, handwritten in the bottom border, with room for two lines so every print keeps the same depth */
.polaroid__name { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: calc(2.1em + 18px); padding: 7px 6px 11px; font-family: var(--font-hand); font-size: clamp(1.1875rem, 1rem + 0.3vw, 1.375rem); line-height: 1.05; text-align: center; text-wrap: balance; color: var(--ink); }
/* strips of translucent blush tape on a few prints */
.polaroid.taped::before { width: clamp(62px, 3.4rem + 1vw, 82px); top: -13px; }
.polaroid.taped--top::before { left: 50%; translate: -50% 0; rotate: -4deg; }
.polaroid.taped--tl::before { left: -18px; top: -6px; rotate: -38deg; }
.polaroid.taped--tr::before { right: -18px; top: -6px; rotate: 36deg; }
/* "…and you?": a blush-tinted print with the message in its window and the link in its border */
.polaroid--you { background: #FBEDEC; }
.polaroid--you .polaroid__window { background: var(--surface); }
.polaroid__message { font-family: var(--font-hand); font-size: clamp(1.875rem, 1.4rem + 1vw, 2.5rem); line-height: 1; color: var(--ink); rotate: -6deg; }
.polaroid--you .polaroid__name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
/* the linked print lifts and straightens a little under the pointer or keyboard focus */
@media (hover: hover) and (pointer: fine) {
  .polaroid--you:hover { --lift: -6px; --straight: 0.35; box-shadow: 0 2px 3px rgba(39, 28, 24, 0.1), 0 18px 26px -14px rgba(39, 28, 24, 0.5); } /* taste-skill-ignore: the print lifts off the page */
}
.polaroid--you:focus-visible { --lift: -6px; --straight: 0.35; outline: 2px solid var(--ink); outline-offset: 4px; }
/* tablets: three across, gentler tilts and nudges */
@media (max-width: 63.99em) {
  .polaroids { --k: 0.55; --kr: 0.7; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 40rem; gap: 48px 22px; }
}
/* phones: two readable columns, small tilts, almost no nudge and no overlap */
@media (max-width: 47.99em) {
  .polaroids { --k: 0.15; --kr: 0.4; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; margin-top: 36px; padding-block: 24px 28px; }
  .polaroid { --s: 1; } /* every print the same size, so the two columns stay even */
  .polaroid.taped--tl::before { left: -6px; }
  .polaroid.taped--tr::before { right: -6px; }
}
/* very narrow screens: one print across */
@media (max-width: 22.49em) {
  .polaroids { grid-template-columns: minmax(0, 1fr); }
  .polaroid { width: min(100%, 220px); }
}

/* ---------- the three kinds of work: overlapping cards ---------- */
.types__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; row-gap: 16px; }
.types__head h2 { grid-column: 1 / span 6; }
.types__head p { grid-column: 8 / span 5; font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.4; }
.cards { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 48px; }
.cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 58rem; }
.card { position: relative; border-radius: var(--radius); transition: transform 260ms var(--ease-out); }
.card--surface { background: var(--surface); color: var(--ink); }
.card--ink { background: var(--ink); color: var(--on-ink); }
.cards .card + .card { margin-left: -28px; }
.cards .card:nth-child(1) { z-index: 1; }
.cards .card:nth-child(2) { margin-top: 24px; z-index: 2; }
.cards .card:nth-child(3) { margin-top: 48px; z-index: 3; }
.card__link { display: block; height: 100%; overflow: hidden; border-radius: inherit; text-decoration: none; color: inherit; }
.card__media { display: block; position: relative; aspect-ratio: 954 / 745; overflow: hidden; }
.card__media img { position: absolute; inset: -5% 0; width: 100%; height: 110%; object-fit: cover; transform: translateY(var(--drift, 0%)) scale(var(--zoom, 1)); }
.card__caption { display: grid; gap: 6px; padding: 22px 52px 28px 24px; }
.cards .card + .card .card__caption { padding-left: 52px; }
.card__title { font-size: var(--step-sub); font-weight: 500; line-height: 1.12; letter-spacing: var(--track-display); transition: transform 260ms var(--ease-out); }
.card__text { font-family: var(--font-display); font-style: italic; font-size: var(--step-body); line-height: 1.45; }
@media (hover: hover) and (pointer: fine) {
  .cards .card:hover, .cards .card:focus-within { z-index: 5; transform: translateY(-6px); }
  .card:hover .card__media img { --zoom: 1.03; }
  .card:hover .card__title { transform: translateX(4px); }
}
@media (max-width: 47.99em) {
  .types__head h2, .types__head p { grid-column: 1 / -1; }
  .cards, .cards--two { grid-template-columns: 1fr; gap: 16px; padding-bottom: 0; }
  .cards .card + .card { margin-left: 0; }
  .cards .card:nth-child(n) { margin-top: 0; }
  .card__caption, .cards .card + .card .card__caption { padding: 18px 20px 22px; }
}

/* the home page's three category cards as polaroids: one cream paper frame round each photograph, narrow at the top
   and sides, deeper below where the title and description are written in the brown ink. Each card sizes to its own
   caption (no empty paper), keeps the stagger, sits a degree or so off straight, and straightens and lifts when
   pointed at. The More of my work cards on the category pages keep their own look. */
.types .cards { align-items: start; }
.types .card { --tilt: 0deg; padding: 12px 12px 0; border-radius: 2px; background: var(--paper) var(--grain); background-size: auto, 180px 180px; color: var(--ink); box-shadow: 0 1px 2px rgba(39, 28, 24, 0.12), 0 14px 24px -14px rgba(39, 28, 24, 0.42); rotate: var(--tilt); transition: transform 260ms var(--ease-out), rotate 260ms var(--ease-out), box-shadow 260ms ease; } /* taste-skill-ignore: a photograph resting on the page */
.types .card:nth-child(1) { --tilt: -1.4deg; }
.types .card:nth-child(2) { --tilt: 0.9deg; }
.types .card:nth-child(3) { --tilt: -0.7deg; }
.types .card__link { border-radius: 1px; overflow: visible; }
.types .card__media { border-radius: 1px; }
.types .card__caption, .types .cards .card + .card .card__caption { padding: 16px 10px 20px; }
.types .card:not(:last-child) .card__caption { padding-right: 44px; }
.types .card__text { color: var(--ink); }
.types .card__link:focus-visible { outline: none; }
.types .card:has(.card__link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) {
  .types .cards .card:hover, .types .cards .card:focus-within { rotate: 0deg; box-shadow: 0 2px 3px rgba(39, 28, 24, 0.12), 0 22px 32px -16px rgba(39, 28, 24, 0.46); } /* taste-skill-ignore: the photograph lifts off the page */
}
@media (max-width: 47.99em) {
  .types .card { --tilt: 0deg; padding: 10px 10px 0; }
  .types .card:nth-child(n) { --tilt: 0deg; }
  .types .card__caption, .types .cards .card + .card .card__caption, .types .card:not(:last-child) .card__caption { padding: 14px 8px 18px; }
}

/* ---------- video tiles on the category pages ---------- */
.videos .head { margin-bottom: 48px; }
.tiles { display: grid; gap: 48px var(--gutter); }
.tiles--tall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { display: block; width: 100%; text-align: left; color: inherit; }
.tile__media { position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 16; border-radius: var(--radius); background: var(--surface); }
.tiles--wide .tile__media, .tiles--two .tile__media { aspect-ratio: 16 / 9; }
.tile__media img { position: absolute; inset: -5% 0; width: 100%; height: 110%; object-fit: cover; transform: translateY(var(--drift, 0%)) scale(var(--zoom, 1)); }
.tile__title { display: block; margin-top: 14px; font-family: var(--font-display); font-size: var(--step-lead); font-weight: 500; line-height: 1.22; transition: transform 260ms var(--ease-out); }
.tile__kind { display: block; margin-top: 4px; font-family: var(--font-display); font-style: italic; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__media img { --zoom: 1.04; }
  .tile:hover .tile__title { transform: translateX(4px); }
}
.tile:focus-visible { outline: none; }
.tile:focus-visible .tile__media { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 63.99em) {
  .tiles--tall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.99em) {
  .tiles { gap: 32px 14px; }
  .tiles--tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--wide, .tiles--two { grid-template-columns: 1fr; }
  .tile__title { font-size: 1.0625rem; }
  .tile__kind { font-size: 0.9375rem; }
}

/* ---------- about: on the brown field ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: center; background: var(--ink); color: var(--on-ink); }
.about__portrait { grid-column: 1 / span 5; position: relative; }
.about__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.about__photo img { position: absolute; left: 0; bottom: 0; width: 100%; height: 94%; object-fit: contain; object-position: 50% 100%; }
.about__text { grid-column: 7 / span 6; display: grid; gap: 1.1em; font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.55; }
.about__title { font-size: var(--step-display); line-height: 1.02; letter-spacing: var(--track-display); margin-bottom: 0.25em; }
.about__links { font-family: var(--font-text); }
.about__text a { text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.about__links { margin-top: 0.4em; }
.about .text-btn { color: var(--on-ink); }
@media (max-width: 63.99em) {
  .about__portrait { grid-column: 1 / span 5; }
  .about__text { grid-column: 6 / span 7; }
  .about__title { font-size: var(--step-head); }
}
@media (max-width: 47.99em) {
  .about__portrait { grid-column: 1 / -1; width: min(100%, 22rem); }
  .about__text { grid-column: 1 / -1; }
}

/* ---------- get in touch ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: start; }
.contact__words { grid-column: 1 / span 5; }
.contact__words > .head { font-size: var(--step-display); font-weight: 400; line-height: 1.02; }
.contact__lead { margin-top: 24px; font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.4; }
.contact__alt { margin-top: 20px; font-family: var(--font-display); font-style: italic; }
.contact__alt a { text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.contact__offer { margin-top: 48px; font-family: var(--font-text); font-size: var(--step-body); font-weight: 600; }
.contact__list { margin-top: 12px; display: grid; gap: 6px; }
.contact__list li { font-family: var(--font-display); font-size: var(--step-sub); line-height: 1.3; }
.contact__form { grid-column: 7 / span 6; position: relative; }
.enquiry { padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; overflow: visible; }
.enquiry label { display: grid; gap: 8px; font-size: 1rem; font-weight: 600; }
.field { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--bg); border: 0; border-radius: 10px; font-size: 1rem; font-weight: 400; color: var(--ink); }
textarea.field { resize: vertical; min-height: 140px; }
.field:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field[aria-invalid="true"] { outline: 2px solid #8C2A1E; outline-offset: 1px; }
.enquiry .btn { justify-self: start; margin-top: 4px; }
.enquiry__status { min-height: 1.5em; font-size: 1rem; }
@media (max-width: 63.99em) {
  .contact__words, .contact__form { grid-column: 1 / -1; }
}

/* ---------- footer: a contact block on the brown ---------- */
.footer { min-height: 42svh; display: flex; flex-direction: column; justify-content: space-between; gap: 72px; padding: clamp(72px, 10vh, 120px) var(--margin) calc(var(--hud-inset) + 84px); background: var(--ink); color: var(--on-ink); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; }
.footer__head { grid-column: 1 / span 6; }
.footer__contact { grid-column: 7 / span 6; }
.footer__email { font-family: var(--font-display); font-size: var(--step-sub); line-height: 1.2; }
.footer__email a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
.footer__row { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.footer .text-btn, .player .text-btn { color: var(--on-ink); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
.footer__links a:hover { text-decoration-color: currentColor; }
.footer__base p { color: var(--on-ink-soft); }
@media (max-width: 47.99em) {
  .footer__head, .footer__contact { grid-column: 1 / -1; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- menu: the notebook's contents page ----------
   A torn sheet of ruled notebook paper over the brown, a strip of tape holding it down: "Charli Burns" and Close
   across the top, the numbered contents (written in the neat hand) on the left and the contact action on the right.
   The dialog itself scrolls on short screens, so every destination stays reachable; the page behind is held still. */
.menu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 4vh, 56px) clamp(12px, 4vw, 56px); border: 0; background: var(--ink); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.menu[open] { display: grid; }
.menu::backdrop { background: var(--ink); }
.menu__sheet { position: relative; isolation: isolate; align-self: center; justify-self: center; width: min(100%, 64rem); padding: clamp(22px, 3vw, 44px) clamp(22px, 4vw, 60px) clamp(30px, 4vw, 56px); }
/* the paper: cream, a fine grain, faint ruling and a blush margin line, torn along its edges; the cast sits on the
   wrapper because the torn clip would cut it off */
.menu__sheet::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: var(--bg); background-image: var(--grain), url(../media/stickers/margin-line.svg), url(../media/stickers/ruling.svg); background-size: 180px 180px, 6px 8px, 8px 34px; background-repeat: repeat, repeat-y, repeat; background-position: 0 0, clamp(12px, 1.8vw, 28px) 0, 0 10px; clip-path: polygon(0.6% 3px, 2.6% 0.3px, 4.2% 1.4px, 7.3% 1.8px, 9.0% 4.0px, 12.7% 0.1px, 15.2% 1.3px, 17.1% 1.6px, 21.4% 2.1px, 24.4% 5.0px, 26.7% 5.9px, 30.2% 2.1px, 31.9% 5.8px, 34.9% 2.5px, 37.5% 0.9px, 42.4% 2.3px, 46.7% 4.9px, 49.1% 5.4px, 51.9% 4.5px, 53.6% 0.6px, 55.5% 3.5px, 60.4% 4.1px, 65.8% 0.4px, 67.0% 2.0px, 70.0% 4.0px, 74.9% 5.3px, 80.0% 6.4px, 82.9% 1.0px, 84.4% 0.5px, 86.0% 4.0px, 87.3% 5.1px, 92.6% 4.4px, 98.1% 1.1px, calc(100% - 2px) 1px, calc(100% - 3.2px) 13.6%, calc(100% - 2.1px) 24.0%, calc(100% - 1.8px) 35.1%, calc(100% - 1.6px) 48.0%, calc(100% - 1.7px) 59.3%, calc(100% - 2.4px) 74.8%, calc(100% - 3.3px) 89.5%, 100% calc(100% - 4px), 95.6% calc(100% - 1.3px), 90.3% calc(100% - 1.5px), 85.9% calc(100% - 6.0px), 82.4% calc(100% - 1.1px), 77.9% calc(100% - 0.9px), 73.2% calc(100% - 1.1px), 69.9% calc(100% - 7.9px), 67.6% calc(100% - 2.1px), 62.1% calc(100% - 2.7px), 58.9% calc(100% - 4.7px), 54.1% calc(100% - 1.3px), 49.3% calc(100% - 0.3px), 46.1% calc(100% - 1.6px), 43.2% calc(100% - 1.1px), 37.7% calc(100% - 2.2px), 35.900000000000006% calc(100% - 7.9px), 34.0% calc(100% - 3.8px), 30.0% calc(100% - 1.5px), 25.200000000000003% calc(100% - 0.6px), 20.799999999999997% calc(100% - 0.9px), 15.599999999999994% calc(100% - 2.8px), 12.599999999999994% calc(100% - 2.6px), 9.200000000000003% calc(100% - 2.4px), 7.299999999999997% calc(100% - 6.5px), 3.200000000000003% calc(100% - 3.7px), 1.7000000000000028% calc(100% - 2.6px), 0% calc(100% - 2px), 3.3px 88.4%, 0.5px 74.0%, 1.5px 66.8%, 0.8px 60.1%, 2.3px 53.3%, 3.1px 39.5%, 2.5px 31.900000000000006%, 0.5px 19.299999999999997%); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); } /* taste-skill-ignore: the sheet of paper lifts off the brown */
/* one strip of blush tape holding the top corner down */
.menu__sheet::after { content: ""; position: absolute; top: -12px; right: clamp(70px, 14%, 180px); width: clamp(84px, 4rem + 3vw, 124px); aspect-ratio: 160 / 46; background: url(../media/stickers/tape.svg) center / 100% 100% no-repeat; rotate: 4deg; pointer-events: none; }
/* top: the name and Close, kept in reach while the sheet scrolls on a phone */
.menu__top { position: sticky; top: calc(clamp(16px, 4vh, 56px) * -1); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-inline: -8px; padding: 6px 8px; }
/* on short screens, where the sheet scrolls, the pinned top line gets the paper behind it so rows pass under it */
@media (max-height: 720px) { .menu__top { background: var(--bg); } }
.menu__brand { font-family: var(--font-display); font-size: var(--step-sub); font-weight: 500; line-height: 1; }
.menu__close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--radius); background: var(--ink); color: var(--on-ink); font-family: var(--font-text); font-size: 1rem; font-weight: 600; line-height: 1; }
.menu__close span { font-size: 1.375rem; line-height: 0.8; }
@media (hover: hover) and (pointer: fine) { .menu__close:hover { background: #3E2E27; } }
.menu__close:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* body: the contents on the left, the contact action on the right, level at the foot */
.menu__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; margin-top: clamp(20px, 3vw, 36px); }
.menu__title { font-family: var(--font-hand); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem); font-weight: 400; line-height: 1.1; color: var(--ink); rotate: -2deg; transform-origin: left center; width: fit-content; }
.menu__list { margin-top: clamp(10px, 1.6vw, 18px); display: grid; }
/* each row: its number and its name, the whole row clickable, a ruled line beneath */
.menu__link { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: baseline; gap: 10px; min-height: 56px; padding: 6px 4px 8px; text-decoration: none; color: var(--ink); border-bottom: 1px solid rgba(87, 65, 56, 0.14); }
.menu__num { font-family: var(--font-notebook); font-size-adjust: ex-height 0.56; font-size: 1.125rem; color: var(--muted); letter-spacing: 0.04em; }
.menu__label { position: relative; z-index: 0; width: fit-content; font-family: var(--font-notebook); font-size-adjust: ex-height 0.56; font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); line-height: 1.15; }
/* pointing at a row, or tabbing to it, draws the pink marker under its name; the page being read keeps it */
.menu__label::after { content: ""; position: absolute; z-index: -1; left: -4%; right: -6%; bottom: 0.02em; height: 0.34em; background: url(../media/stickers/brush.svg) center / 100% 100% no-repeat; opacity: 0.85; clip-path: inset(0 100% 0 0); transition: clip-path 260ms var(--ease-out); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .menu__link:hover .menu__label::after { clip-path: inset(0 0 0 0); } }
.menu__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.menu__link:focus-visible .menu__label::after, .menu__link[aria-current="page"] .menu__label::after { clip-path: inset(0 0 0 0); }
.menu__link[aria-current="page"] .menu__num { color: var(--ink); }
/* the contact action and Instagram, smaller, on the right */
.menu__side { display: grid; gap: 14px; justify-items: start; padding-bottom: 10px; }
.menu__action { color: var(--ink); }
.menu__insta { color: var(--ink); }
/* opening: the sheet rises a few pixels into place */
.menu[open] .menu__sheet { animation: sheet-in 320ms var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) rotate(-0.6deg); } }
/* the page behind holds still while the menu is open (see js/site.js) */
html.menu-open { overflow: hidden; }
/* tablets and phones: one column, the contents first and the contact action beneath */
@media (max-width: 47.99em) {
  .menu__body { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .menu__link { min-height: 52px; }
  .menu__label { font-size: clamp(1.75rem, 1.2rem + 3vw, 2.25rem); }
  .menu__sheet::after { right: 38%; }
}

/* ---------- player ---------- */
.player { width: min(92vw, 1200px); max-width: none; padding: 0; border: 0; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(39, 28, 24, 0.45); } /* taste-skill-ignore: the player is an open dialog */
.player::backdrop { background: rgba(39, 28, 24, 0.82); }
.player__frame { aspect-ratio: 16 / 9; background: #271C18; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.player.is-tall { width: min(92vw, calc((100svh - 140px) * 9 / 16)); }
.player.is-tall .player__frame { aspect-ratio: 9 / 16; }
/* a square video (the Julia Wolf lyric video) plays in a square frame, as large as the screen allows */
.player.is-square { width: min(92vw, calc(100svh - 140px)); }
.player.is-square .player__frame { aspect-ratio: 1 / 1; }
.player__frame iframe, .player__frame video { width: 100%; height: 100%; border: 0; }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px 12px 22px; }
.player__title { font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.2; }

/* ---------- scrapbook: stickers, brushstrokes, tape and handwritten notes ----------
   Stickers are <img class="sticker sticker--PLACE"> elements pointing at SVG files in media/stickers. Each has its
   own tilt in style="--tilt: …deg". The place classes below say where each sits; they keep stickers off text and
   controls, overlapping only picture corners. Everything here is decoration: alt="" and no pointer target over links.
   Each sticker sits in an empty <span class="sticker-slot"> so it is never read as part of the text beside it. */
.sticker-slot { display: contents; }
.sticker { position: absolute; z-index: 3; width: var(--size, 96px); height: auto; max-width: none; transform: rotate(var(--tilt, 0deg)); filter: var(--sticker-shadow); transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease; -webkit-user-drag: none; user-select: none; }
@media (hover: hover) and (pointer: fine) {
  .sticker:hover { transform: rotate(calc(var(--tilt, 0deg) + 7deg)) scale(1.07) translateY(-2px); }
}
/* beside Charli's name on the home page */
.sticker--name { --size: clamp(58px, 2.4rem + 3vw, 116px); z-index: 2; left: calc(100% + var(--pad-x) - var(--size) * 0.42); top: calc(var(--pad-y) * -1 - var(--size) * 0.5); }
/* at the end of a section heading; above its right end on a phone, where there is no room beside it */
.stickered { position: relative; width: fit-content; max-width: 100%; }
.who__head .stickered { grid-column: 1 / span 6; }
.sticker--after { --size: clamp(64px, 3rem + 1.6vw, 96px); left: calc(100% + 16px); top: 50%; translate: 0 -55%; }
/* on a top corner of a selected-work print; it moves with the print */
.sticker--work-tr, .sticker--work-tl { --size: clamp(70px, 3.4rem + 2vw, 108px); top: -30px; pointer-events: none; }
.sticker--work-tr { right: -24px; }
.sticker--work-tl { left: -26px; }
@media (max-width: 47.99em) {
  .sticker--work-tr { right: -6px; }
  .sticker--work-tl { left: -6px; }
}
/* on the outer top corners of a row of cards; moves with the card it belongs to */
.sticker--card { --size: clamp(64px, 3rem + 1.8vw, 86px); top: -28px; pointer-events: none; }
.sticker--card-start { left: max(-24px, calc(8px - var(--margin))); }
.sticker--card-end { right: max(-20px, calc(8px - var(--margin))); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .sticker--card { transform: rotate(calc(var(--tilt, 0deg) + 7deg)) scale(1.07); }
}
/* on the top right corner of a category page's cover */
.sticker--cover { --size: clamp(76px, 3.5rem + 3vw, 120px); top: -30px; right: -18px; }
@media (max-width: 63.99em) { .sticker--cover { right: 8px; } }
/* on the top right corner of Charli's portrait */
.sticker--portrait { --size: clamp(64px, 3rem + 2vw, 96px); top: -26px; right: -26px; }
/* inline at the start of a credit line */
.sticker--credit { --size: clamp(54px, 2.6rem + 1.6vw, 76px); position: relative; flex: none; z-index: auto; }

/* the credit line, as in Charli's own project notes */
.credit { display: flex; align-items: center; gap: 14px; margin: -26px 0 44px; font-family: var(--font-display); font-size: var(--step-sub); line-height: 1.2; }

/* a dry rose brushstroke under a word of a heading */
.brush { position: relative; z-index: 0; display: inline-block; }
.brush::after { content: ""; position: absolute; z-index: -1; left: -3%; right: -5%; bottom: -0.2em; height: 0.24em; background: url(../media/stickers/brush.svg) center / 100% 100% no-repeat; pointer-events: none; }

/* a strip of washi tape across a corner */
.taped { position: relative; }
.taped::before { content: ""; position: absolute; z-index: 4; width: clamp(92px, 4.5rem + 2vw, 128px); aspect-ratio: 160 / 46; background: url(../media/stickers/tape.svg) center / 100% 100% no-repeat; pointer-events: none; }
.about__portrait.taped::before { top: -12px; left: -14px; rotate: -32deg; }
.enquiry.taped::before { top: -14px; right: -12px; rotate: 24deg; }

/* handwritten notes, with a drawn arrow that follows the text colour of the section */
.note { font-family: var(--font-hand); font-size: clamp(1.75rem, 1.3rem + 0.95vw, 2.375rem); line-height: 1.1; color: var(--ink); max-width: none; transform: rotate(-3deg); transform-origin: left center; }
.note::after, .note--up::before { content: ""; display: inline-block; vertical-align: middle; width: 2.3em; height: 1.75em; background: url(../media/stickers/arrow-swoop.svg) center / contain no-repeat; }
.note::after { margin-left: 0.2em; }
.note--light { color: var(--on-ink-soft); }
.note--light::after, .note--light::before { background-image: url(../media/stickers/arrow-swoop-light.svg); }
/* "that's me!" under the portrait: the arrow sits before the words and points back up at the photo */
.note--up { text-align: right; margin-top: 16px; transform-origin: right center; }
.note--up::after { content: none; }
.note--up::before { margin-right: 0.2em; transform: rotate(180deg) scaleX(-1); vertical-align: top; }
/* "say hi!": points across to the form on wide screens, down to it where the form sits below */
.note--to-form { margin-top: 40px; }
.note--to-form::after { width: 2.8em; height: 2em; background-image: url(../media/stickers/arrow-curl.svg); }
@media (max-width: 63.99em) {
  .note--to-form::after { width: 2.3em; height: 1.75em; background-image: url(../media/stickers/arrow-swoop.svg); }
}
.note--down { padding-bottom: 6px; }
/* "say hi!": on wide screens it sits centred above the contact form, in the section's top padding, its arrow curving
   down at the form; where the section stacks, the note under the services list shows instead */
.note--above-form { display: none; }
@media (min-width: 64em) {
  .note--to-form { display: none; }
  .note--above-form { display: block; position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0; padding-bottom: 0; white-space: nowrap; transform-origin: center; }
}

/* entrances: a sticker is pressed onto the page, a brushstroke drawn, a note appears; all once, on first sight */
@media (prefers-reduced-motion: no-preference) {
  .js .sticker:not(.is-in) { opacity: 0; transform: rotate(calc(var(--tilt, 0deg) - 16deg)) scale(0.6); }
  .js .brush::after { clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-out) 250ms; }
  .js .brush.is-in::after { clip-path: inset(0 -2% 0 0); }
  .js .note:not(.is-in) { opacity: 0; transform: rotate(-3deg) translateY(6px); }
  .js .note { transition: opacity 600ms ease 200ms, transform 600ms var(--ease-out) 200ms; }
}

/* where columns get narrow, a heading's sticker moves above the heading's right end, and the portrait's star
   tucks inside the photo's corner, so neither reaches into the column beside */
@media (max-width: 63.99em) {
  .sticker--after { left: auto; right: 0; top: auto; bottom: calc(100% + 8px); translate: none; }
  .sticker--portrait { top: -22px; right: 10px; }
}
@media (max-width: 47.99em) {
  .who__head .stickered { grid-column: 1 / -1; }
  .sticker--cover { top: -22px; right: -6px; }
  .sticker--card-start { left: -8px; }
  .sticker--card-end { right: -6px; }
  .about__portrait.taped::before { left: -8px; }
  .enquiry.taped::before { right: -6px; }
}

/* ---------- the notebook: one paper material for the whole site ----------
   Decoration only, drawn with backgrounds, outer box-shadows and pseudo-elements, so nothing here moves, resizes or
   re-crops any content. Torn edges hang into the empty padding of the neighbouring section; binding holes and margin
   lines sit in the page margin; tape and photo corners never take pointer events. SVG pieces are in media/stickers. */
:root {
  --radius: 6px;                    /* paper corners: cut, not rounded */
  --paper: #FFFCF7;                 /* the print paper, a touch lighter than the page */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.34 0 0 0 0 0.25 0 0 0 0 0.22 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.97 0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --rest: 0 1px 1px rgba(39, 28, 24, 0.1), 0 10px 18px -12px rgba(39, 28, 24, 0.4); /* thin paper resting on the page */ /* taste-skill-ignore: paper resting on paper, as the brief asks */
}
/* the page: cream paper, a faint grain and very faint ruling */
body { background-image: var(--grain), url(../media/stickers/ruling.svg); background-size: 180px 180px, 8px 34px; }
/* a blush margin line and punched binding holes, in the empty margin beside some sections (never on a phone) */
@media (min-width: 48em) {
  .featured, .contact, .videos:first-of-type, .hero--page { background-image: url(../media/stickers/margin-line.svg); background-repeat: repeat-y; background-size: 6px 8px; background-position: calc(var(--margin) * 0.62) 0; }
}
@media (min-width: 64em) {
  .featured, .contact, .videos:first-of-type, .hero--page { background-image: url(../media/stickers/margin-line.svg), url(../media/stickers/punch-hole.svg); background-repeat: repeat-y, repeat-y; background-size: 6px 8px, 22px 210px; background-position: calc(var(--margin) * 0.62) 0, calc(var(--margin) * 0.3 - 11px) 64px; }
}

/* brown sections are pasted-in inserts: their top and bottom edges are torn, hanging into the cream padding beside */
.about, .footer { position: relative; background-image: var(--grain-light); background-size: 180px 180px; }
.about::before, .footer::before, .about::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background: url(../media/stickers/torn-top-ink.svg) 0 0 / 1440px 18px repeat-x; pointer-events: none; }
.about::before, .footer::before { top: -17px; }
.about::after { bottom: -17px; background-image: url(../media/stickers/torn-bottom-ink.svg); background-position: 37% 0; }
.footer::before { background-position: 61% 0; }
/* the reel's bottom edge: the notebook page torn over it */
.hero--reel::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 0; height: 18px; background: url(../media/stickers/torn-top-cream.svg) 23% 0 / 1440px 18px repeat-x; pointer-events: none; }

/* pictures as prints: a narrow paper border drawn outside the picture (so its size and crop stay as they are) and a
   thin resting cast */
.tile__media, .hero__photo, .about__photo { box-shadow: 0 0 0 6px var(--paper), 0 1px 1px 6px rgba(39, 28, 24, 0.08), 0 14px 22px -10px rgba(39, 28, 24, 0.42); } /* taste-skill-ignore: a print's paper border and cast */
.about__photo { box-shadow: 0 0 0 7px var(--paper), 0 16px 26px -12px rgba(0, 0, 0, 0.5); } /* taste-skill-ignore: a print on the brown insert */
.tile__media, .hero__photo, .about__photo { border-radius: 2px; }
.tile:focus-visible .tile__media { outline-offset: 9px; }
/* brown photo corners holding some prints in place */
.hero__photo::after, .tiles > li:nth-child(4n+3) .tile__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url(../media/stickers/corner-tl.svg) 0 0 / 26px 26px no-repeat, url(../media/stickers/corner-tr.svg) 100% 0 / 26px 26px no-repeat, url(../media/stickers/corner-bl.svg) 0 100% / 26px 26px no-repeat, url(../media/stickers/corner-br.svg) 100% 100% / 26px 26px no-repeat; }
.tiles > li:nth-child(4n+3) .tile__media::after { background-size: 20px 20px; }
/* a strip of blush tape on a few other prints */
.tile { position: relative; }
.tiles > li:nth-child(5n+1) .tile::before, .tiles > li:nth-child(7n+5) .tile::before { content: ""; position: absolute; z-index: 2; top: -16px; width: clamp(62px, 3rem + 1.6vw, 92px); aspect-ratio: 160 / 46; background: url(../media/stickers/tape.svg) center / 100% 100% no-repeat; pointer-events: none; }
.tiles > li:nth-child(5n+1) .tile::before { left: -14px; rotate: -30deg; }
.tiles > li:nth-child(7n+5) .tile::before { right: -14px; rotate: 28deg; }

/* the three cards: sheets of coloured paper with a grain, laid over each other; the middle one taped down */
.card--surface, .fact { background-image: var(--grain); background-size: 180px 180px; }
.card--ink { background-image: var(--grain-light); background-size: 180px 180px; }
.cards .card { box-shadow: var(--rest); } /* taste-skill-ignore: sheets of paper laid over each other */
.cards .card:nth-child(2)::before { content: ""; position: absolute; z-index: 6; top: -14px; left: 50%; width: clamp(80px, 4rem + 2vw, 120px); aspect-ratio: 160 / 46; background: url(../media/stickers/tape.svg) center / 100% 100% no-repeat; translate: -50% 0; rotate: -3deg; pointer-events: none; }
/* the selected-work prints and the polaroids share the same paper and cast */
.work__media, .polaroid { background-image: var(--grain); background-size: 180px 180px; }

/* the form: a blush notebook page with ruling, a margin line and fields like ruled writing lines */
.enquiry { background-image: var(--grain), url(../media/stickers/margin-line.svg), url(../media/stickers/ruling.svg); background-size: 180px 180px, 6px 8px, 8px 34px; background-repeat: repeat, repeat-y, repeat; background-position: 0 0, calc(clamp(24px, 3vw, 40px) * 0.45) 0, 0 0; }
.field { border-radius: 3px; background-image: var(--grain); background-size: 180px 180px; box-shadow: inset 0 -1.5px 0 rgba(87, 65, 56, 0.3); } /* taste-skill-ignore: the field's ruled writing line */
.field:focus-visible { box-shadow: inset 0 -2px 0 var(--ink); } /* taste-skill-ignore: the writing line darkens on focus */

/* buttons: the rose dot becomes a hand-cut paper sticker with an inked edge; tabs become paper tags */
.btn__circle { border-radius: 51% 49% 52% 48% / 48% 52% 49% 51%; background-image: var(--grain); background-size: 180px 180px; border: 1.5px solid rgba(87, 65, 56, 0.22); } /* the inked edge of a paper dot; the box keeps its size */
.tab, .hud__ground { background-image: var(--grain); background-size: 180px 180px; }


/* ---------- objects on the desk: things Charli has put down on the page while making the scrapbook ----------
   Photographic cutouts (media/props), lit from the upper left like the scissors and tape, each with one soft contact
   shadow. A group hangs from the bottom edge of the section above a gap, centred on that edge, so it lies in the
   empty band between the two sections whatever the screen size and scrolls with the page. Nothing here takes space,
   clicks or a place in the accessibility tree. Tablets keep the larger objects smaller; phones show none. */
.featured, .collabs { position: relative; }
.desk { position: absolute; left: 0; right: 0; top: 100%; z-index: 1; height: 0; overflow-x: clip; pointer-events: none; } /* the full width of the page; what runs off either side is clipped here, never the content */
.desk__item { position: absolute; top: 0; height: auto; max-width: none; translate: 0 -50%; filter: drop-shadow(1px 2px 1.5px rgba(39, 28, 24, 0.2)) drop-shadow(3px 6px 8px rgba(39, 28, 24, 0.12)); } /* taste-skill-ignore: objects resting on the page */
/* life size, roughly: the pencil and strap long, the marker a little shorter, the tape and lens cap smaller, the SD
   cards smallest. The long objects lie across the edge of the page, part of them off it. */
.desk { --pencil-w: clamp(200px, 2rem + 18vw, 340px); --marker-w: clamp(150px, 6.4rem + 6.6vw, 236px); --strap-w: clamp(200px, 8rem + 8.6vw, 300px); --lens-w: clamp(64px, 2.7rem + 2.6vw, 96px); --sd-w: clamp(42px, 1.9rem + 1.4vw, 60px); }
/* after the favourites: the pencil across the left edge, above the heading; on the right, where the gap runs deeper
   (the heading only fills the left), the blush marker with two SD cards dropped beside it */
.desk__item--pencil { width: var(--pencil-w); left: calc(var(--pencil-w) * -0.26); rotate: -4deg; margin-top: -6px; }
.desk__item--marker { width: var(--marker-w); right: calc(var(--margin) + 2vw); rotate: -14deg; margin-top: 34px; }
/* two SD cards dropped together: the top one tilted one way, a second tucked partly under it the other way */
.desk__item--sd { width: var(--sd-w); right: calc(var(--margin) + 2vw + var(--marker-w) + 20px); rotate: 14deg; z-index: 1; margin-top: 22px; }
.desk__item--sd-under { width: var(--sd-w); right: calc(var(--margin) + 2vw + var(--marker-w) + 20px + var(--sd-w) * 0.6); rotate: -21deg; margin-top: 39px; }
/* after the polaroids: the wrist strap across the right edge, a lens cap beside it */
.desk__item--strap { width: var(--strap-w); right: calc(var(--strap-w) * -0.22); rotate: -6deg; margin-top: 4px; }
.desk__item--lens { width: var(--lens-w); right: calc(var(--strap-w) * 0.78 + 18px); rotate: 8deg; margin-top: -4px; }
/* tablets: smaller, and the pencil without the marker */
@media (max-width: 63.99em) {
  .desk { --pencil-w: 200px; --strap-w: 184px; --lens-w: 64px; --sd-w: 46px; }
  .desk__item--marker { display: none; }
  .desk__item--sd { right: calc(var(--margin) + 7vw); margin-top: 0; }
  .desk__item--sd-under { right: calc(var(--margin) + 7vw + var(--sd-w) * 0.6); margin-top: 17px; }
}
/* the phone-only pair above the favourites (on larger screens the carousel's own scissors and tape are used) */
.desk--before-work { top: 0; display: none; }
/* phones: one small group in each of the three gaps tall enough to hold one, the longer objects over the screen's
   edge: the tape roll and scissors above the favourites, the pencil and two SD cards below them, and the wrist strap
   and lens cap below the polaroids. Sizes and places are fractions of the width, so they suit any phone. */
@media (max-width: 47.99em) {
  .desk--before-work { display: block; top: -7px; }
  .desk--after-work { top: calc(100% - 12px); }
  .desk { --pencil-w: clamp(140px, 40vw, 176px); --strap-w: clamp(134px, 40vw, 172px); --lens-w: clamp(46px, 13vw, 58px); --sd-w: clamp(30px, 9vw, 38px); --scissors-w: clamp(88px, 24vw, 100px); --tape-w: clamp(62px, 17vw, 74px); }
  .desk__item--tape { width: var(--tape-w); left: calc(var(--tape-w) * -0.1); rotate: 5deg; margin-top: 0; }
  .desk__item--scissors { width: var(--scissors-w); right: calc(var(--scissors-w) * -0.22); rotate: -5deg; margin-top: 0; }
  .desk__item--pencil { left: auto; right: calc(var(--pencil-w) * -0.14); rotate: 4deg; margin-top: 0; }
  .desk__item--sd { right: auto; left: calc(var(--margin) + 4% + var(--sd-w) * 0.6); }
  .desk__item--sd-under { right: auto; left: calc(var(--margin) + 4%); }
  .desk__item--strap { right: calc(var(--strap-w) * -0.24); rotate: -5deg; }
  .desk__item--lens { right: calc(var(--strap-w) * 0.76 + 12px); }
}

/* ---------- notebook handwriting: words written straight onto the bare paper ----------
   Headings, introductions, project titles and captions that sit directly on the cream notebook page are written in a
   neat print hand (--font-notebook). Only these components are listed: text on the showreel, on the brown inserts, in
   the navigation, buttons, form, cards and polaroids keeps its own type, and the expressive notes keep --font-hand.
   font-size-adjust enlarges the hand's small letters to read at the same size as before, while the declared sizes and
   line heights, and so every line box and gap, stay exactly as they were. The hand has one weight and no italic. */
.who__head .head, .who__head > p,
.types__head .head, .types__head > p,
.work__label, .work__title, .work__desc,
.contact__words > .head, .contact__lead, .contact__alt, .contact__offer, .contact__list li,
.hero--page .hero__title, .hero--page .hero__lead,
.videos .head, .credit, .tile__title, .tile__kind {
  font-family: var(--font-notebook); font-size-adjust: ex-height 0.56; font-weight: 400; font-style: normal; letter-spacing: 0.005em;
}

/* ---------- the entrance: focus pull ---------- */
[data-entrance] [data-e="picture"] { background: var(--picture-ground, transparent); }
[data-entrance="focus"] { --lens: 8px; }
@media (max-width: 47.99em) { [data-entrance="focus"] { --lens: 0px; } }
@media (prefers-reduced-motion: no-preference) {
  .js [data-entrance] [data-reveal] { opacity: 1; transform: none; }
  .js [data-entrance="focus"] [data-e="picture"] > :not(figcaption) { animation: e-focus-lens 1000ms var(--ease-soft) backwards; }
  .js [data-entrance="focus"] [data-e="headline"] { animation: e-focus-type 700ms var(--ease-soft) 260ms backwards; }
  .js [data-entrance="focus"] [data-reveal="heading"] { opacity: 0.45; filter: blur(4px); transition: opacity 700ms var(--ease-out), filter 700ms var(--ease-soft); }
  .js [data-entrance="focus"] [data-reveal="heading"].is-in { opacity: 1; filter: none; }
  .js [data-entrance] [data-e="picture"][data-e-wait] > * { animation: none; opacity: 0; }
  .js [data-entrance] [data-e="picture"][data-e-wait="late"] > * { opacity: 1; transition: opacity 320ms ease; }
}
@keyframes e-focus-lens { from { filter: blur(var(--lens, 8px)); transform: scale(1.03); } }
@keyframes e-focus-type { from { filter: blur(4px); opacity: 0.5; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
