/* POSTER — cream paper, flat print colours, chunky extruded type and glyph circles. */

:root {
  /* "Bright" palette: one family of clean, saturated print colours on bright paper */
  --cream: #f7f2e8;
  --ink: #111110;
  --coral: #ff4b3e;
  --cobalt: #2f5cff;
  --sun: #ffc62e;
  --orange: #ff8a2a;
  --green: #1fb36b;
  --pad: clamp(18px, 4vw, 56px);
  --font: "Instrument Sans", "Inter", system-ui, sans-serif;          /* body, tags, nav */
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;   /* big type */
  --fit: 3.575;        /* hero name width / font-size, per font (see font options below) */
  --fit-stack: 2.107;  /* same for "CAIRO" alone, used when the name stacks on phones */
  --extrude:
    .004em .004em 0 var(--ink), .008em .008em 0 var(--ink), .012em .012em 0 var(--ink),
    .016em .016em 0 var(--ink), .020em .020em 0 var(--ink), .024em .024em 0 var(--ink),
    .028em .028em 0 var(--ink), .032em .032em 0 var(--ink), .036em .036em 0 var(--ink),
    .040em .040em 0 var(--ink), .044em .044em 0 var(--ink), .048em .048em 0 var(--ink);
  --bounce: cubic-bezier(.3, 1.6, .5, 1);
  color-scheme: light;
}

html { background: var(--cream); overflow-x: clip; }
body {
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.55 var(--font);
  letter-spacing: -0.005em;
}
::selection { background: var(--sun); color: var(--ink); }
a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

/* ---------- Page grid: name, then a wall of circles, then a ticker ---------- */
.page {
  display: grid;
  /* hero width: full width, unless that would push the circle wall below the fold.
     The name is ~0.249 x this width tall and the wall 1/3 x, plus ~184px of padding. */
  --hw: clamp(70%, (100svh - 184px) * 1.717, 100%);
  grid-template-columns: minmax(0, 1fr) repeat(6, calc(var(--hw) / 6)) minmax(0, 1fr);
  padding: 0 var(--pad);
  overflow-x: clip;                       /* spinning circles' square boxes never cause sideways scroll */
}
.hero        { grid-column: 2 / -2; grid-row: 1; }
.portrait    { grid-column: 2 / span 2; grid-row: 2 / span 2; }
.ornaments   { grid-column: 4 / span 4; grid-row: 2 / span 2; }
.ticker      { grid-column: 1 / -1; grid-row: 4; }
.sections    { grid-column: 1 / -1; margin: 0 calc(-1 * var(--pad)); }

/* ---------- Hero ---------- */
.hero { container-type: inline-size; display: flex; flex-direction: column; padding: 22px 0 44px; }
.toc {
  order: -1;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(40px, 6vw, 88px);
  font: 600 14px/1 var(--font);
}
.toc a {
  padding: 9px 15px 10px; border: 2px solid var(--ink); border-radius: 999px;
  text-decoration: none; background: var(--cream);
  transition: background .15s, color .15s, rotate .15s;
}
.toc a:hover { background: var(--ink); color: var(--cream); rotate: -4deg; }
.toc a[aria-current] { background: var(--ink); color: var(--cream); }

.hero-name {
  display: flex; flex-wrap: nowrap; align-items: baseline; gap: 0 .2em;
  font: 800 15vw/.84 var(--display);
  font-size: calc(100cqi / var(--fit));   /* "JON CAIRO" + extrusion spans the full width */
  font-stretch: 82%;
  text-transform: uppercase; letter-spacing: -0.02em;
  color: var(--coral);
  text-shadow: var(--extrude);
  padding-bottom: .05em;
  white-space: nowrap;
}

/* ---------- Circle wall ---------- */
.portrait {
  position: relative; isolation: isolate;
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--cobalt);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: screen;                 /* black → cobalt, light → paper: a duotone print */
}
.portrait::after {                        /* fine print screen over the duotone */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(21,20,18,.26) 1px, transparent 1.6px) 0 0 / 5px 5px;
  mix-blend-mode: multiply;
}

.ornaments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ornaments > span,
.section-head::before {
  border-radius: 50%;
  background-color: var(--c); background-position: center; background-size: var(--gs, 100%); background-repeat: no-repeat;
}
.ornaments > span { aspect-ratio: 1; transition: scale .3s var(--bounce); }
.ornaments > span:hover { scale: 1.06; }
.ornaments > span:nth-child(1) { --c: var(--cobalt); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 11v78M16.2 30.5l67.6 39M16.2 69.5l67.6-39' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E"); }
.ornaments > span:nth-child(2) { --c: var(--sun);    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='33.5' fill='none' stroke='%23151412' stroke-width='10.5'/%3E%3Ccircle cx='40' cy='40.5' r='6.8' fill='%23151412'/%3E%3Ccircle cx='61.5' cy='45' r='6.8' fill='%23151412'/%3E%3Cpath d='M32.5 55.5c4 13.5 22.5 19 34 6' fill='none' stroke='%23151412' stroke-width='9.5'/%3E%3C/svg%3E"); }
.ornaments > span:nth-child(3) { --c: var(--orange);  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate%2850 50%29 scale%281.27%29 translate%28-50 -50%29'%3E%3Cpath d='M44 53a6 6 0 0 1 12 0a12 12 0 0 1-24 0a18 18 0 0 1 36 0a24 24 0 0 1-48 0a30 30 0 0 1 60 0' fill='none' stroke='%23151412' stroke-width='8.2'/%3E%3C/g%3E%3C/svg%3E"); }
.ornaments > span:nth-child(4) { --c: var(--green);  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 90V14M50 15c-2 18-14 30-34 33M50 15c2 18 14 30 34 33' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E"); }
.ornaments > span:nth-child(5) { --c: var(--coral);  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 50h78M88 50c-18-2-30-14-33-34M88 50c-18 2-30 14-33 34' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E"); }
.ornaments > span:nth-child(6) { --c: var(--ink);    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M8 50c7-21 17-21 21 0s14 21 21 0 14-21 21 0 14 21 21 0' fill='none' stroke='%23f3ede1' stroke-width='10.5'/%3E%3C/svg%3E"); }
.ornaments > span:nth-child(7) { --c: var(--cobalt); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 12v76M12 50h76' fill='none' stroke='%23151412' stroke-width='12'/%3E%3C/svg%3E"); }
.ornaments > span:nth-child(8) { --c: var(--sun);    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M60 10 35 50h30L40 90' fill='none' stroke='%23151412' stroke-width='11' stroke-linejoin='miter'/%3E%3C/svg%3E"); --gs: 82%; }

/* Entrance: the name lifts off the paper, circles pop in one after another */
@keyframes stamp { from { translate: .048em .048em; text-shadow: none; } }
@keyframes pop   { from { scale: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-name { animation: stamp .8s cubic-bezier(.2, .9, .3, 1.15) .1s both; }
  .portrait, .ornaments > span { animation: pop .7s var(--bounce) backwards; }
  .portrait { animation-delay: .25s; }
  .ornaments > span:nth-child(1) { animation-delay: .35s; }
  .ornaments > span:nth-child(2) { animation-delay: .42s; }
  .ornaments > span:nth-child(3) { animation-delay: .49s; }
  .ornaments > span:nth-child(4) { animation-delay: .56s; }
  .ornaments > span:nth-child(5) { animation-delay: .63s; }
  .ornaments > span:nth-child(6) { animation-delay: .70s; }
  .ornaments > span:nth-child(7) { animation-delay: .77s; }
  .ornaments > span:nth-child(8) { animation-delay: .84s; }
}

/* Every glyph circle turns as the page scrolls (site.js sets --spin in degrees) */
.ornaments > span, .section-head::before { rotate: calc(var(--spin, 0) * 1deg); }
.ornaments > span:nth-child(even),
.section:nth-of-type(even) .section-head::before { rotate: calc(var(--spin, 0) * -1deg); }

/* ---------- Ticker: two crossed tapes (built by site.js, which also moves them) ---------- */
.ticker {
  position: relative; height: clamp(150px, 19vw, 290px);
  margin: 28px calc(-1 * var(--pad)) 0;
}
.tape {
  position: absolute; left: -6%; right: -6%; top: 50%;
  overflow: hidden; padding: .3em 0 .34em;
  border-block: 3px solid var(--ink);
  transform-origin: 36% 50%;               /* the tapes cross left of centre */
  font: 800 clamp(24px, 2.9vw, 46px)/1 var(--display); font-stretch: 78%;
  text-transform: uppercase;
}
.tape--a {
  z-index: 1; translate: 0 -50%; rotate: -6.5deg;
  background-color: var(--ink); color: var(--cream);
  background-image: radial-gradient(circle, rgba(243,237,225,.07) 1.15px, transparent 1.7px); background-size: 7px 7px;
}
.tape--b {
  z-index: 2; translate: 0 -50%; rotate: 5deg;
  background-color: var(--sun); color: var(--ink);
  background-image: radial-gradient(circle, rgba(21,20,18,.13) 1.15px, transparent 1.7px); background-size: 7px 7px;
  box-shadow: 0 7px 0 rgba(17, 17, 16, .16);
}
.tape-track { display: flex; width: max-content; will-change: transform; }
.tape-copy { display: flex; flex: none; }
.tape-copy span { display: inline-flex; align-items: center; white-space: nowrap; }
.tape-copy span::after {
  content: ""; flex: none; width: .82em; height: .82em; margin: 0 .5em;
  background: var(--gc, currentColor);
  -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
          mask-position: center;         mask-size: contain;         mask-repeat: no-repeat;
}
.tape-copy span:nth-child(4n+1)::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 11v78M16.2 30.5l67.6 39M16.2 69.5l67.6-39' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 11v78M16.2 30.5l67.6 39M16.2 69.5l67.6-39' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E"); }
.tape-copy span:nth-child(4n+2)::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate%2850 50%29 scale%281.27%29 translate%28-50 -50%29'%3E%3Cpath d='M44 53a6 6 0 0 1 12 0a12 12 0 0 1-24 0a18 18 0 0 1 36 0a24 24 0 0 1-48 0a30 30 0 0 1 60 0' fill='none' stroke='%23151412' stroke-width='8.2'/%3E%3C/g%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate%2850 50%29 scale%281.27%29 translate%28-50 -50%29'%3E%3Cpath d='M44 53a6 6 0 0 1 12 0a12 12 0 0 1-24 0a18 18 0 0 1 36 0a24 24 0 0 1-48 0a30 30 0 0 1 60 0' fill='none' stroke='%23151412' stroke-width='8.2'/%3E%3C/g%3E%3C/svg%3E"); }
.tape-copy span:nth-child(4n+3)::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 12v76M12 50h76' fill='none' stroke='%23151412' stroke-width='12'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 12v76M12 50h76' fill='none' stroke='%23151412' stroke-width='12'/%3E%3C/svg%3E"); }
.tape-copy span:nth-child(4n)::after   { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M60 10 35 50h30L40 90' fill='none' stroke='%23151412' stroke-width='11' stroke-linejoin='miter'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M60 10 35 50h30L40 90' fill='none' stroke='%23151412' stroke-width='11' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
.tape--a span:nth-child(4n+1) { --gc: var(--sun); }
.tape--a span:nth-child(4n+2) { --gc: var(--coral); }
.tape--a span:nth-child(4n+3) { --gc: var(--green); }
.tape--a span:nth-child(4n)   { --gc: var(--orange); }
.tape--b span:nth-child(4n+2) { --gc: var(--coral); }
.tape--b span:nth-child(4n)   { --gc: var(--cobalt); }
@media (max-width: 560px) {                 /* phones: too narrow for an X, so the tapes splay apart */
  .ticker { height: 150px; }
  .tape { transform-origin: 50% 50%; }
  .tape--a { top: 34%; rotate: -5deg; }
  .tape--b { top: 68%; rotate: 4deg; }
}

/* ---------- Sections ---------- */
.section {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px 56px;
  padding: 112px var(--pad);
  border-top: 3px solid var(--ink);
}
.section-head {
  position: sticky; top: 92px; align-self: start;
  display: grid; justify-items: start; gap: 16px;
}
.section-head::before {
  content: ""; width: clamp(88px, 9.5vw, 140px); aspect-ratio: 1;
}
.section-num {
  font: 700 13px/1 var(--font); letter-spacing: .08em;
  padding: 6px 11px 7px; border: 2px solid currentColor; border-radius: 999px;
}
.section-title {
  font: 800 clamp(48px, 6.2vw, 104px)/.86 var(--display); font-stretch: 78%;
  text-transform: uppercase; letter-spacing: -0.015em;
  text-shadow: .05em .05em 0 var(--c);    /* offset print in the section's colour */
  overflow-wrap: anywhere;
}
.section-body { min-width: 0; max-width: 700px; }

#about { --c: var(--sun); }
#about .section-head::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='33.5' fill='none' stroke='%23151412' stroke-width='10.5'/%3E%3Ccircle cx='40' cy='40.5' r='6.8' fill='%23151412'/%3E%3Ccircle cx='61.5' cy='45' r='6.8' fill='%23151412'/%3E%3Cpath d='M32.5 55.5c4 13.5 22.5 19 34 6' fill='none' stroke='%23151412' stroke-width='9.5'/%3E%3C/svg%3E"); }
#experience { --c: var(--coral); }
#experience .section-head::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='rotate%2845 50 50%29'%3E%3Cpath d='M50 92V12M50 13c-2 18-14 30-34 33M50 13c2 18 14 30 34 33' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/g%3E%3C/svg%3E"); }
#brands { --c: var(--cobalt); }
#brands .section-head::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 11v78M16.2 30.5l67.6 39M16.2 69.5l67.6-39' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E"); }
#education { --c: var(--orange); }
#education .section-head::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate%2850 50%29 scale%281.27%29 translate%28-50 -50%29'%3E%3Cpath d='M44 53a6 6 0 0 1 12 0a12 12 0 0 1-24 0a18 18 0 0 1 36 0a24 24 0 0 1-48 0a30 30 0 0 1 60 0' fill='none' stroke='%23151412' stroke-width='8.2'/%3E%3C/g%3E%3C/svg%3E"); }
#skills { --c: var(--sun); --gs: 82%; }
#skills .section-head::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M60 10 35 50h30L40 90' fill='none' stroke='%23151412' stroke-width='11' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
#podcasts { --c: var(--green); }
#podcasts .section-head::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M8 50c7-21 17-21 21 0s14 21 21 0 14-21 21 0 14 21 21 0' fill='none' stroke='%23151412' stroke-width='10.5'/%3E%3C/svg%3E"); }
#seminars { --c: var(--coral); }
#seminars .section-head::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 50h78M88 50c-18-2-30-14-33-34M88 50c-18 2-30 14-33 34' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E"); }
#contact { --c: var(--sun); }
#contact .section-head::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 12v76M12 50h76' fill='none' stroke='%23151412' stroke-width='12'/%3E%3C/svg%3E"); }

#about { border-top: 0; }

/* ---------- About: taped pull-quote + stat circles ---------- */
.pull-sticker {
  display: block; position: relative;
  margin: 44px 0 0 6px; width: fit-content; max-width: 100%;
  padding: 26px 30px 28px;
  background: var(--coral); color: var(--cream);
  border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink);
  rotate: -4deg;
  font: 800 clamp(30px, 4.6vw, 70px)/.9 var(--display); font-stretch: 80%;
  text-transform: uppercase; letter-spacing: -0.01em;
  text-shadow: .045em .045em 0 var(--ink);
}
.pull-sticker::after {                    /* a strip of tape */
  content: ""; position: absolute; top: -15px; left: 50%; translate: -50% 0; rotate: 5deg;
  width: 124px; height: 32px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(17, 17, 16, .12);
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
/* About: "now playing" from Spotify (built by site.js; hidden until Spotify is connected) */
.now-playing {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px;
  width: min(100%, 340px); margin: 34px 0 0 10px; padding: 12px 18px 12px 12px;
  background: var(--cream); color: var(--ink); text-decoration: none;
  border: 3px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--ink);
  rotate: 2deg; transition: translate .15s, box-shadow .15s, rotate .3s var(--bounce);
}
.now-playing[hidden] { display: none; }
.now-playing:hover { translate: -2px -2px; box-shadow: 7px 7px 0 var(--ink); rotate: 0deg; }
.np-art {
  width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid var(--ink);
  background: radial-gradient(circle, var(--coral) 0 17%, var(--ink) 18% 100%);   /* a record, if there's no album art */
}
.np-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.np-art img[hidden] { display: none; }
.np-text { display: grid; gap: 3px; min-width: 0; }
.np-label { display: inline-flex; align-items: center; gap: 7px; font: 700 11px/1 var(--font); text-transform: uppercase; letter-spacing: .08em; }
.np-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.np-bars i { width: 3px; height: 4px; border-radius: 1px; background: var(--green); }
.now-playing:not(.is-playing) .np-bars i { background: var(--ink); opacity: .35; }
.now-playing.is-playing .np-bars i { animation: np-eq .9s ease-in-out infinite alternate; }
.now-playing.is-playing .np-bars i:nth-child(2) { animation-delay: -.3s; }
.now-playing.is-playing .np-bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes np-eq { from { height: 3px; } to { height: 11px; } }
.np-title  { font: 800 19px/1.1 var(--display); font-stretch: 88%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-artist { font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .now-playing.is-playing .np-bars i { animation: none; height: 9px; } }

.about-stats {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.about-stats li {
  aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px;
  padding: 12%;
  background: var(--c); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transition: rotate .35s var(--bounce), translate .2s;
  transform: translateY(var(--wy, 0px)) rotate(var(--wr, 0deg));   /* site.js: jostle while scrolling */
}
.about-stats li:nth-child(1) { --c: var(--sun); }
.about-stats li:nth-child(2) { --c: var(--cobalt); color: var(--cream); }
.about-stats li:nth-child(3) { --c: var(--green); }
.about-stats li:nth-child(4) { --c: var(--orange); }
.about-stats li:hover { rotate: -6deg; translate: -2px -2px; }
.stat-num { font: 800 clamp(40px, 4.2vw, 68px)/.85 var(--display); font-stretch: 80%; letter-spacing: -0.02em; }
.stat-label { font: 700 11px/1.2 var(--font); text-transform: uppercase; letter-spacing: .05em; max-width: 13ch; }

/* ---------- Text ---------- */
.prose > * + * { margin-top: 14px; }
.prose.lead { font: 500 clamp(22px, 2.1vw, 31px)/1.28 var(--font); letter-spacing: -0.018em; }
.prose.lead > * + * { margin-top: 22px; }
.prose strong { font-weight: 760; }
/* hand-drawn highlighter on key lines; sweeps in when the paragraph appears */
.prose mark {
  color: inherit; font-weight: 700; padding: 0 .1em; margin: 0 -.05em;
  background: linear-gradient(100deg, transparent .4em, var(--sun) .55em, var(--sun) calc(100% - .5em), transparent calc(100% - .35em)) 0 60% / 100% 78% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.1s cubic-bezier(.5, 0, .2, 1) .35s;
}
.js .reveal:not(.is-in) mark { background-size: 0% 78%; }
@media (prefers-reduced-motion: reduce) { .prose mark { transition: none; } }
.prose ul { list-style: none; padding: 0; }
.prose li { position: relative; padding-left: 30px; }
.prose li + li { margin-top: 10px; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: .26em; width: 18px; height: 18px;
  background: var(--coral);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 11v78M16.2 30.5l67.6 39M16.2 69.5l67.6-39' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 11v78M16.2 30.5l67.6 39M16.2 69.5l67.6-39' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose .subhead {
  display: inline-block; margin-top: 44px;
  padding: 7px 14px 5px; border: 3px solid var(--ink); border-radius: 14px;
  background: var(--sun); box-shadow: 4px 4px 0 var(--ink); rotate: -1.5deg;
  font: 800 28px/1.05 var(--display); font-stretch: 85%; text-transform: uppercase;
}
.prose .group-label { margin-top: 30px; font: 750 13px/1 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.prose .group-label + ul { margin-top: 14px; }
.prose .closing {
  margin-top: 34px; padding: 20px 24px;
  background: var(--cobalt); color: var(--cream);
  border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); rotate: .8deg;
  font: 600 21px/1.35 var(--font);
}
.prose .closing em { font-style: normal; }

.entry + .entry { margin-top: 64px; padding-top: 56px; border-top: 3px solid var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.meta > span {
  font: 700 12px/1 var(--font); text-transform: uppercase; letter-spacing: .07em;
  padding: 6px 10px 7px; border: 2px solid var(--ink); border-radius: 999px;
}
.meta > span:first-child { background: var(--ink); color: var(--cream); }
.entry-title {
  font: 800 clamp(34px, 3.4vw, 52px)/.92 var(--display); font-stretch: 80%;
  text-transform: uppercase; letter-spacing: -0.01em;
  margin-bottom: 22px;
}

/* ---------- Brands: logo wall ---------- */
:is(.section--wide, #podcasts) { grid-template-columns: minmax(0, 1fr); }
:is(.section--wide, #podcasts) .section-head {
  position: static; grid-auto-flow: column; align-items: center; justify-content: start; gap: 22px;
}
:is(.section--wide, #podcasts) .section-body { max-width: none; margin-top: 28px; }
#brands { background-color: var(--sun); }
#brands .marquee { display: block; overflow: visible; -webkit-mask-image: none; mask-image: none; }
#brands .marquee-track {
  animation: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px;
  background: var(--ink); border: 3px solid var(--ink); border-radius: 26px; overflow: hidden;
}
#brands .marquee-track.is-clone { display: none; }
#brands .marquee-track li,
#brands .marquee-track::after { height: clamp(104px, 9.5vw, 144px); }
#brands .marquee-track li {
  display: grid; place-items: center; padding: 18px 26px;
  --hc: var(--cream);
  background: radial-gradient(circle, rgba(21,20,18,.13) 1.15px, transparent 1.7px) 0 0 / 7px 7px, var(--sun);
  transition: background-color .2s;
}
#brands .marquee-track li:nth-child(4n+2) { --hc: var(--coral); }
#brands .marquee-track li:nth-child(4n+3) { --hc: var(--green); }
#brands .marquee-track li:nth-child(4n)   { --hc: var(--orange); }
#brands .marquee-track li:hover { background-color: var(--hc); background-image: none; }
#brands .marquee-track img {
  width: calc(sqrt(var(--a, 4)) * 44px); height: auto; max-height: 44px; max-width: 100%; object-fit: contain;
  filter: invert(1);                      /* white logo files → printed in ink */
  transition: scale .25s var(--bounce);
}
#brands .marquee-track li:hover img { scale: 1.08; }
/* a 20th cell so the grid closes as a clean rectangle */
#brands .marquee-track::after {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='33.5' fill='none' stroke='%23151412' stroke-width='10.5'/%3E%3Ccircle cx='40' cy='40.5' r='6.8' fill='%23151412'/%3E%3Ccircle cx='61.5' cy='45' r='6.8' fill='%23151412'/%3E%3Cpath d='M32.5 55.5c4 13.5 22.5 19 34 6' fill='none' stroke='%23151412' stroke-width='9.5'/%3E%3C/svg%3E") center / auto 66% no-repeat, var(--coral);
}

/* ---------- Skills: pie circles on a cobalt block ---------- */
#skills { background: var(--cobalt); color: var(--cream); overflow-x: clip; }
#skills .section-title { text-shadow: .05em .05em 0 var(--ink); }
/* the plain list (shown only if the tapes can't be built) */
.skill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skill-list li {
  padding: 8px 16px 9px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--sun); color: var(--ink);
  font: 800 clamp(20px, 2vw, 28px)/1 var(--display); font-stretch: 82%; text-transform: uppercase;
}
.skill-list.is-taped {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
/* three stacked tapes, built by site.js from the list */
.skill-tapes { position: relative; height: clamp(250px, 30vw, 440px); margin: 0 calc(-1 * var(--pad)); }
.skill-tapes .tape { transform-origin: 50% 50%; translate: 0 -50%; font-size: clamp(30px, 4.6vw, 72px); }
.tape--s1 { top: 20%; rotate: -3deg;   z-index: 1; background-color: var(--sun);   color: var(--ink); }
.tape--s2 { top: 50%; rotate: 2.2deg;  z-index: 2; background-color: var(--cream); color: var(--ink); box-shadow: 0 7px 0 rgba(17, 17, 16, .18); }
.tape--s3 { top: 80%; rotate: -1.6deg; z-index: 3; background-color: var(--ink);   color: var(--cream); box-shadow: 0 7px 0 rgba(17, 17, 16, .18); }
.tape--s1, .tape--s2 { background-image: radial-gradient(circle, rgba(21,20,18,.13) 1.15px, transparent 1.7px); background-size: 7px 7px; }
.tape--s3 { background-image: radial-gradient(circle, rgba(243,237,225,.07) 1.15px, transparent 1.7px); background-size: 7px 7px; }
.tape--s1 span:nth-child(4n+2) { --gc: var(--coral); }
.tape--s1 span:nth-child(4n)   { --gc: var(--cobalt); }
.tape--s2 span:nth-child(4n+1) { --gc: var(--coral); }
.tape--s2 span:nth-child(4n+2) { --gc: var(--cobalt); }
.tape--s2 span:nth-child(4n+3) { --gc: var(--green); }
.tape--s2 span:nth-child(4n)   { --gc: var(--orange); }
.tape--s3 span:nth-child(4n+1) { --gc: var(--sun); }
.tape--s3 span:nth-child(4n+2) { --gc: var(--coral); }
.tape--s3 span:nth-child(4n+3) { --gc: var(--green); }
.tape--s3 span:nth-child(4n)   { --gc: var(--orange); }

/* ---------- Link lists ---------- */
.links { border-top: 3px solid var(--ink); }
.links > li { border-bottom: 3px solid var(--ink); --hc: var(--sun); }
.links > li:nth-child(4n+2) { --hc: var(--coral); }
.links > li:nth-child(4n+3) { --hc: var(--orange); }
.links > li:nth-child(4n)   { --hc: var(--green); }
.link-entry {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: center;
  padding: 18px 0; text-decoration: none;
  transition: background-color .2s, padding .25s var(--bounce);
}
.link-entry > * { grid-column: 1; }
.link-entry::after {
  content: ""; grid-column: 2; grid-row: 1 / span 3;
  width: 52px; height: 52px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 50h78M88 50c-18-2-30-14-33-34M88 50c-18 2-30 14-33 34' fill='none' stroke='%23f3ede1' stroke-width='11'/%3E%3C/svg%3E") center / 72% no-repeat, var(--ink);
  transition: rotate .3s var(--bounce);
}
.link-entry:hover { background-color: var(--hc); padding-left: 16px; padding-right: 12px; }
.link-entry:hover::after { rotate: -45deg; }
.link-entry .meta { margin-bottom: 8px; }
.link-entry .meta > span { padding: 4px 8px 5px; font-size: 11px; border-width: 1.5px; }
.link-title { font: 750 clamp(20px, 1.7vw, 25px)/1.15 var(--display); letter-spacing: -0.012em; }
.link-desc { margin-top: 10px; font-size: 16px; line-height: 1.45; }

/* Seminars: sticker cards */
.links--detailed { border: 0; display: grid; gap: 22px; }
.links--detailed > li { border: 0; }
.links--detailed .link-entry {
  padding: 24px; align-items: start;
  background: var(--sun); border: 3px solid var(--ink); border-radius: 26px;
  box-shadow: 7px 7px 0 var(--ink);
  transition: translate .15s, box-shadow .15s;
}
.links--detailed > li:nth-child(2) .link-entry { background: var(--coral); }
.links--detailed .link-entry:hover { padding: 24px; translate: -3px -3px; box-shadow: 10px 10px 0 var(--ink); background-color: var(--sun); }
.links--detailed > li:nth-child(2) .link-entry:hover { background-color: var(--coral); }
.links--detailed .link-entry .meta > span:first-child { background: var(--cream); color: var(--ink); }
/* a talk with no recording: same card, no arrow, no hover lift */
.links--detailed .link-entry.is-static,
.links--detailed .link-entry.is-static:hover { background-color: var(--green); translate: none; box-shadow: 7px 7px 0 var(--ink); }
.links--detailed .link-entry.is-static::after { display: none; }

/* Podcasts: a sticker wall, coloured by show */
#podcasts .links { border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#podcasts .links > li { border: 0; display: flex; }
#podcasts .link-entry {
  position: relative; flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; gap: 36px;
  border: 3px solid var(--ink); border-radius: 24px;
  transition: translate .15s, box-shadow .15s;
}
#podcasts .link-entry::after { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; }
#podcasts .link-entry .meta { padding-right: 56px; margin: 0; }
#podcasts .link-entry .meta > span { border-color: currentColor; }

#podcasts .link-entry {
  min-height: 210px; padding: 20px 22px 22px;
  background-color: var(--show, var(--cream)); color: var(--show-ink, var(--ink));
  box-shadow: 5px 5px 0 var(--ink);
}
#podcasts .link-entry .meta > span:first-child { background: var(--ink); color: var(--cream); border-color: var(--ink); }
#podcasts .link-title { font: 800 clamp(22px, 1.9vw, 28px)/1.06 var(--display); font-stretch: 88%; letter-spacing: -0.012em; }
#podcasts .link-entry:hover { padding: 20px 22px 22px; background-color: var(--show, var(--cream)); translate: -3px -3px; box-shadow: 8px 8px 0 var(--ink); }
#podcasts li[data-show="the-customersai-podcast"]          { --show: var(--coral); }
#podcasts li[data-show="the-conversion-tracking-playbook"] { --show: var(--cobalt); --show-ink: var(--cream); }
#podcasts li[data-show="vision-labs-podcast"]              { --show: var(--sun); }
#podcasts li[data-show="h-street-digital"]                 { --show: var(--orange); }
/* Trackstars articles: ink cards, so writing reads apart from the shows */
#podcasts li[data-show="trackstars"] { --show: var(--ink); --show-ink: var(--cream); }
#podcasts li[data-show="trackstars"] .link-entry { box-shadow: 5px 5px 0 var(--coral); }
#podcasts li[data-show="trackstars"] .link-entry:hover { box-shadow: 8px 8px 0 var(--coral); }
#podcasts li[data-show="trackstars"] .link-entry .meta > span:first-child { background: var(--cream); color: var(--ink); border-color: var(--cream); }
#podcasts li[data-show="trackstars"] .link-entry::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 50h78M88 50c-18-2-30-14-33-34M88 50c-18 2-30 14-33 34' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E") center / 72% no-repeat, var(--sun); }

/* ---------- Contact: coral block, a short note + three cards ---------- */
#contact { background: var(--coral); }
.contact-lead {
  font: 800 clamp(40px, 4.6vw, 68px)/.92 var(--display); font-stretch: 82%;
  text-transform: uppercase; letter-spacing: -0.015em;
  color: var(--cream);
  text-shadow: .03em .03em 0 var(--ink), .06em .06em 0 var(--ink);
}
.contact-note > p + p { margin-top: 20px; max-width: 32ch; font: 500 clamp(20px, 1.75vw, 24px)/1.4 var(--font); }

.contact-cards {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.contact-cards > li { display: flex; min-width: 0; }
.contact-cards > .cc--email { grid-column: 1 / -1; --cc: var(--sun); }
.contact-card {
  position: relative; flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 18px 86px 22px 20px;
  background: var(--cc, var(--cream)); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 24px; box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
  transition: translate .15s, box-shadow .15s;
}
.contact-card::after {
  content: ""; position: absolute; right: 18px; top: 50%; margin-top: -25px;
  width: 50px; height: 50px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 50h78M88 50c-18-2-30-14-33-34M88 50c-18 2-30 14-33 34' fill='none' stroke='%23f3ede1' stroke-width='11'/%3E%3C/svg%3E") center / 72% no-repeat, var(--ink);
  transition: rotate .3s var(--bounce);
}
.contact-card:hover { translate: -3px -3px; box-shadow: 8px 8px 0 var(--ink); }
.contact-card:hover::after { rotate: -45deg; }
.contact-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.cc-label {
  font: 700 12px/1 var(--font); text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 10px 7px; border-radius: 999px; background: var(--ink); color: var(--cream);
}
.cc-value {
  max-width: 100%;
  font: 800 clamp(22px, 2vw, 28px)/1.05 var(--display); font-stretch: 85%; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.cc--email .cc-value { font-size: clamp(26px, 3.2vw, 44px); }

.contact-end {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 44px 32px;
  margin-top: 56px;
}
.contact-end .signoff { margin-top: 0; }
.scroll-meter {
  display: grid; justify-items: start; gap: 2px;
  width: min(100%, 300px); margin: 0 12px 0 0; padding: 18px 22px 20px;
  background: var(--sun); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink);
  rotate: 3deg;
}
.js .scroll-meter { transition: scale .55s var(--bounce), opacity .3s; }
.js .scroll-meter:not(.is-in) { scale: .6; opacity: 0; }
.sm-label {
  margin-bottom: 10px; padding: 6px 10px 7px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font: 700 12px/1 var(--font); text-transform: uppercase; letter-spacing: .08em;
}
.sm-line { font: 600 18px/1.25 var(--font); }
.sm-num {
  margin: 4px 0 6px;
  font: 800 clamp(56px, 5.4vw, 80px)/.9 var(--display); font-stretch: 80%; font-variant-numeric: tabular-nums;
  text-shadow: .045em .045em 0 var(--coral);
}
.sm-compare { margin-top: 10px; font: 500 16px/1.4 var(--font); }
@media (prefers-reduced-motion: reduce) { .js .scroll-meter { transition: none; } }
.signoff { margin-top: 56px; }
.signature { display: block; width: 220px; height: auto; color: var(--ink); }
.signature path { stroke-width: 3.4; }
.signoff-name { margin-top: 10px; font: 800 15px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Experience: sticky role index (built by site.js) ---------- */
.role-index { display: none; }
@media (min-width: 961px) {
  .role-index { display: block; width: 100%; max-width: 340px; margin-top: 18px; }
  .role-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .role-index a {
    position: relative;
    display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 3px 12px;
    padding: 11px 14px 12px 12px; border: 2px solid var(--ink); border-radius: 18px;
    background: var(--cream); text-decoration: none;
    transition: background-color .2s, color .2s, translate .25s var(--bounce), rotate .25s var(--bounce), box-shadow .2s;
  }
  .role-index a::before {
    content: ""; grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid var(--ink);
    background-color: var(--c); background-position: center; background-size: 100%; background-repeat: no-repeat;
    transition: rotate .45s var(--bounce);
  }
  .role-index li:nth-child(5n+1) a { --c: var(--sun); }
  .role-index li:nth-child(5n+1) a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='33.5' fill='none' stroke='%23151412' stroke-width='10.5'/%3E%3Ccircle cx='40' cy='40.5' r='6.8' fill='%23151412'/%3E%3Ccircle cx='61.5' cy='45' r='6.8' fill='%23151412'/%3E%3Cpath d='M32.5 55.5c4 13.5 22.5 19 34 6' fill='none' stroke='%23151412' stroke-width='9.5'/%3E%3C/svg%3E"); }
  .role-index li:nth-child(5n+2) a { --c: var(--green); }
  .role-index li:nth-child(5n+2) a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 11v78M16.2 30.5l67.6 39M16.2 69.5l67.6-39' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E"); }
  .role-index li:nth-child(5n+3) a { --c: var(--cobalt); }
  .role-index li:nth-child(5n+3) a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M8 50c7-21 17-21 21 0s14 21 21 0 14-21 21 0 14 21 21 0' fill='none' stroke='%23f3ede1' stroke-width='10.5'/%3E%3C/svg%3E"); }
  .role-index li:nth-child(5n+4) a { --c: var(--orange); }
  .role-index li:nth-child(5n+4) a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate%2850 50%29 scale%281.27%29 translate%28-50 -50%29'%3E%3Cpath d='M44 53a6 6 0 0 1 12 0a12 12 0 0 1-24 0a18 18 0 0 1 36 0a24 24 0 0 1-48 0a30 30 0 0 1 60 0' fill='none' stroke='%23151412' stroke-width='8.2'/%3E%3C/g%3E%3C/svg%3E"); }
  .role-index li:nth-child(5n)   a { --c: var(--coral); }
  .role-index li:nth-child(5n)   a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 12v76M12 50h76' fill='none' stroke='%23151412' stroke-width='12'/%3E%3C/svg%3E"); }
  .role-index a:hover { background-color: var(--sun); }
  .role-index a:hover::before { rotate: 90deg; }
  .role-index a[aria-current] {
    background-color: var(--coral);
    translate: -3px -3px; rotate: -1.2deg; box-shadow: 5px 5px 0 var(--ink);
  }
  .ri-org   { grid-column: 2; font: 800 17px/1.1 var(--display); font-stretch: 85%; text-transform: uppercase; }
  .ri-year  {
    grid-column: 3; justify-self: end; white-space: nowrap;
    padding: 4px 8px 5px; border: 1.5px solid currentColor; border-radius: 999px;
    font: 700 11px/1 var(--font); letter-spacing: .04em;
  }
  .role-index a.is-current .ri-year { background: var(--sun); color: var(--ink); border-color: var(--ink); }
  .ri-title { grid-column: 2 / -1; font-size: 14px; line-height: 1.3; }
  #experience .entry { scroll-margin-top: 96px; }
}

/* ---------- Floating section nav (desktop) ---------- */
@media (min-width: 961px) {
  .hero { padding-top: 116px; }
  .toc {
    position: fixed; z-index: 40; top: 18px; left: 50%; translate: -50% 0;
    margin: 0; padding: 6px; gap: 3px; flex-wrap: nowrap; font-size: 15.5px;
    background: var(--cream); border: 2px solid var(--ink); border-radius: 999px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .toc a { border: 0; padding: 10px 16px 11px; background: transparent; white-space: nowrap; }
  .toc a:hover { background: var(--sun); color: var(--ink); rotate: 0deg; }
  .toc a[aria-current] { background: var(--ink); color: var(--cream); }
}

/* ---------- Menu button + full-screen sheet (phones + tablets) ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 28px; }
  .menu-toggle {
    position: fixed; z-index: 60; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; translate: -50% 0;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 7px 7px 7px 22px; border: 3px solid var(--ink); border-radius: 999px;
    background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--coral);
    font: 800 19px/1 var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .02em;
    cursor: pointer;
  }
  .menu-glyph {
    width: 40px; height: 40px; border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 11v78M16.2 30.5l67.6 39M16.2 69.5l67.6-39' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E") center / 78% no-repeat, var(--sun);
    rotate: calc(var(--spin, 0) * 1deg);
    transition: rotate .4s var(--bounce);
  }
  .menu-open .menu-glyph { rotate: 45deg; }
  .menu-open .menu-toggle { box-shadow: 4px 4px 0 var(--sun); }

  .toc {
    position: fixed; z-index: 55; inset: 0; margin: 0;
    display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: center; gap: 0;
    padding: 72px var(--pad) 110px;
    background: radial-gradient(circle, rgba(21,20,18,.13) 1.15px, transparent 1.7px) 0 0 / 7px 7px, var(--cream);
    overflow-y: auto;
    translate: 0 102%; visibility: hidden;
    transition: translate .45s cubic-bezier(.2, .8, .2, 1), visibility 0s .45s;
  }
  .menu-open .toc { translate: 0 0; visibility: visible; transition: translate .45s cubic-bezier(.2, .8, .2, 1); }
  .menu-open, .menu-open body { overflow: hidden; }
  .toc a {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 0; border: 0; border-radius: 0; background: none;
    font: 800 clamp(30px, 8.4vw, 54px)/1 var(--display); font-stretch: 80%; text-transform: uppercase; letter-spacing: -0.01em;
  }
  .toc a::before {
    content: ""; flex: none; width: 1.15em; height: 1.15em; border-radius: 50%;
    background: var(--g, none) center / 100% no-repeat, var(--c, var(--ink));
  }
  .toc a:hover, .toc a[aria-current] { background: none; color: var(--coral); rotate: 0deg; }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .toc, .menu-open .toc { transition: none; }
}

/* ---------- Phone menu variants (?menu=sheet|tiles|burst|dock|bar; default sheet) ---------- */
@media (max-width: 600px) {

  /* TILES: the sheet as a grid of sticker tiles */
  html[data-menu="tiles"] .toc {
    display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 12px;
    padding: 64px var(--pad) 110px;
  }
  html[data-menu="tiles"] .toc a {
    flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px;
    min-height: 116px; padding: 12px 14px 14px;
    background: var(--c); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink);
    font-size: 20px; line-height: 1;
  }
  html[data-menu="tiles"] .toc a[href="#brands"] { color: var(--cream); }
  html[data-menu="tiles"] .toc a::before {
    width: 42px; height: 42px; border: 2.5px solid var(--ink);
    background-color: var(--cream); background-position: center; background-size: 100%; background-repeat: no-repeat;
  }
  html[data-menu="tiles"] .toc a:hover, html[data-menu="tiles"] .toc a[aria-current] {
    color: inherit; translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink);
  }
  html.menu-open[data-menu="tiles"] .toc a { animation: pop .45s var(--bounce) backwards; }
  html.menu-open[data-menu="tiles"] .toc a:nth-child(2) { animation-delay: .03s; }
  html.menu-open[data-menu="tiles"] .toc a:nth-child(3) { animation-delay: .06s; }
  html.menu-open[data-menu="tiles"] .toc a:nth-child(4) { animation-delay: .09s; }
  html.menu-open[data-menu="tiles"] .toc a:nth-child(5) { animation-delay: .12s; }
  html.menu-open[data-menu="tiles"] .toc a:nth-child(6) { animation-delay: .15s; }
  html.menu-open[data-menu="tiles"] .toc a:nth-child(7) { animation-delay: .18s; }
  html.menu-open[data-menu="tiles"] .toc a:nth-child(8) { animation-delay: .21s; }

  /* BURST: sections fan up out of the button as sticker pills */
  html[data-menu="burst"] .toc {
    justify-content: flex-end; align-items: center; gap: 10px;
    padding: 72px var(--pad) 100px;
    background: rgba(247, 242, 232, .82);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    translate: none; opacity: 0;
    transition: opacity .25s, visibility 0s .3s;
  }
  html.menu-open[data-menu="burst"] .toc { opacity: 1; visibility: visible; transition: opacity .25s; }
  html[data-menu="burst"] .toc a {
    gap: 12px; padding: 7px 20px 7px 7px;
    background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
    font-size: 22px;
    opacity: 0; scale: .3; translate: 0 60px;
    transition: opacity .2s, scale .4s var(--bounce), translate .4s var(--bounce);
  }
  html[data-menu="burst"] .toc a:nth-child(odd)  { rotate: -2.5deg; }
  html[data-menu="burst"] .toc a:nth-child(even) { rotate: 2.5deg; }
  html[data-menu="burst"] .toc a::before { width: 38px; height: 38px; }
  html.menu-open[data-menu="burst"] .toc a { opacity: 1; scale: 1; translate: 0 0; }
  html.menu-open[data-menu="burst"] .toc a:nth-last-child(2) { transition-delay: .03s; }
  html.menu-open[data-menu="burst"] .toc a:nth-last-child(3) { transition-delay: .06s; }
  html.menu-open[data-menu="burst"] .toc a:nth-last-child(4) { transition-delay: .09s; }
  html.menu-open[data-menu="burst"] .toc a:nth-last-child(5) { transition-delay: .12s; }
  html.menu-open[data-menu="burst"] .toc a:nth-last-child(6) { transition-delay: .15s; }
  html.menu-open[data-menu="burst"] .toc a:nth-last-child(7) { transition-delay: .18s; }
  html.menu-open[data-menu="burst"] .toc a:nth-last-child(8) { transition-delay: .21s; }
  html[data-menu="burst"] .toc a:hover, html[data-menu="burst"] .toc a[aria-current] { color: var(--ink); background: var(--sun); }

  /* BAR: a classic top bar with a wordmark and a drop-down panel */
  html[data-menu="bar"] body::before {
    content: "Jon Cairo"; position: fixed; z-index: 57; top: 0; left: 0; right: 0; height: 60px;
    display: flex; align-items: center; padding: 0 var(--pad);
    background: var(--cream); border-bottom: 3px solid var(--ink);
    font: 800 26px/1 var(--display); font-stretch: 82%; text-transform: uppercase; letter-spacing: -0.01em;
    color: var(--coral); text-shadow: .035em .035em 0 var(--ink), .07em .07em 0 var(--ink);
  }
  html[data-menu="bar"] .hero { padding-top: 88px; }
  html[data-menu="bar"] .menu-toggle {
    top: 9px; bottom: auto; left: auto; right: var(--pad); translate: none;
    padding: 4px 4px 4px 16px; font-size: 15px; box-shadow: none;
  }
  html[data-menu="bar"] .menu-glyph { width: 30px; height: 30px; }
  html[data-menu="bar"] .toc {
    inset: 60px 0 auto 0; max-height: calc(100vh - 60px); justify-content: flex-start; gap: 0;
    padding: 14px var(--pad) 22px;
    border-bottom: 3px solid var(--ink); box-shadow: 0 14px 0 rgba(17, 17, 16, .06);
    translate: 0 -115%;
  }
  html.menu-open[data-menu="bar"] .toc { translate: 0 0; }
  html[data-menu="bar"] .toc a { font-size: 28px; padding: 9px 0; }
  html[data-menu="bar"] .toc a::before { width: 34px; height: 34px; }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  html[data-menu] .toc a { transition: none !important; animation: none !important; }
}

/* Section colour, glyph and label for each nav link (used by the dock and menu variants) */
.toc a[href="#about"] { --c: var(--sun); --label: "About"; }
.toc a[href="#about"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='33.5' fill='none' stroke='%23151412' stroke-width='10.5'/%3E%3Ccircle cx='40' cy='40.5' r='6.8' fill='%23151412'/%3E%3Ccircle cx='61.5' cy='45' r='6.8' fill='%23151412'/%3E%3Cpath d='M32.5 55.5c4 13.5 22.5 19 34 6' fill='none' stroke='%23151412' stroke-width='9.5'/%3E%3C/svg%3E"); }
.toc a[href="#experience"] { --c: var(--coral); --label: "Experience"; }
.toc a[href="#experience"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='rotate%2845 50 50%29'%3E%3Cpath d='M50 92V12M50 13c-2 18-14 30-34 33M50 13c2 18 14 30 34 33' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/g%3E%3C/svg%3E"); }
.toc a[href="#brands"] { --c: var(--cobalt); --label: "Brands"; }
.toc a[href="#brands"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 11v78M16.2 30.5l67.6 39M16.2 69.5l67.6-39' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E"); }
.toc a[href="#education"] { --c: var(--orange); --label: "Education"; }
.toc a[href="#education"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg transform='translate%2850 50%29 scale%281.27%29 translate%28-50 -50%29'%3E%3Cpath d='M44 53a6 6 0 0 1 12 0a12 12 0 0 1-24 0a18 18 0 0 1 36 0a24 24 0 0 1-48 0a30 30 0 0 1 60 0' fill='none' stroke='%23151412' stroke-width='8.2'/%3E%3C/g%3E%3C/svg%3E"); }
.toc a[href="#skills"] { --c: var(--sun); --label: "Skills"; }
.toc a[href="#skills"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M60 10 35 50h30L40 90' fill='none' stroke='%23151412' stroke-width='11' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
.toc a[href="#podcasts"] { --c: var(--green); --label: "Articles & Podcasts"; }
.toc a[href="#podcasts"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M8 50c7-21 17-21 21 0s14 21 21 0 14-21 21 0 14 21 21 0' fill='none' stroke='%23151412' stroke-width='10.5'/%3E%3C/svg%3E"); }
.toc a[href="#seminars"] { --c: var(--coral); --label: "Seminars"; }
.toc a[href="#seminars"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 50h78M88 50c-18-2-30-14-33-34M88 50c-18 2-30 14-33 34' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E"); }
.toc a[href="#contact"] { --c: var(--sun); --label: "Contact"; }
.toc a[href="#contact"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 12v76M12 50h76' fill='none' stroke='%23151412' stroke-width='12'/%3E%3C/svg%3E"); }

/* ---------- Phones: the Dock (default phone menu) ---------- */
@media (max-width: 600px) {
  html[data-menu="dock"] .menu-toggle { display: none; }
  html[data-menu="dock"] .toc {
    --dock: 48px;
    position: fixed; z-index: 55; order: 0;
    top: auto; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); left: 0;
    width: max-content; max-width: calc(100vw - 16px); margin: 0 auto;
    display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px;
    padding: 7px; overflow: visible;
    background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 5px 5px 0 var(--ink);
    translate: none; opacity: 1; visibility: visible; transition: none;
    font-size: 0;
  }
  html[data-menu="dock"] .toc a {
    position: relative; display: block; padding: 0; gap: 0; border: 0; border-radius: 50%;
    background: none; color: inherit; font-size: 0; rotate: 0deg; animation: none;
  }
  html[data-menu="dock"] .toc a::before {
    content: ""; display: block; width: var(--dock); height: var(--dock); border-radius: 50%;
    background-color: var(--c); background-position: center; background-size: 100%; background-repeat: no-repeat;
    transition: scale .25s var(--bounce), box-shadow .2s;
  }
  html[data-menu="dock"] .toc a:hover::before,
  html[data-menu="dock"] .toc a:focus-visible::before { scale: 1.1; }
  html[data-menu="dock"] .toc a[aria-current]::before { scale: 1.1; box-shadow: 0 0 0 2.5px var(--ink); }
  /* the name of the hovered (or current) section floats above its circle */
  html[data-menu="dock"] .toc a:hover::after,
  html[data-menu="dock"] .toc a:focus-visible::after,
  html[data-menu="dock"] .toc a[aria-current]::after {
    content: var(--label); position: absolute; bottom: calc(100% + 14px); left: 50%; translate: -50% 0;
    padding: 7px 11px 8px; border-radius: 999px; background: var(--ink); color: var(--cream);
    font: 800 13px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
    pointer-events: none;
  }
  html[data-menu="dock"] .toc:hover a[aria-current]:not(:hover)::after { opacity: 0; }
  html[data-menu="dock"] .toc a:first-child::after { left: 0; translate: 0 0; }
  html[data-menu="dock"] .toc a:last-child::after  { left: auto; right: 0; translate: 0 0; }
  html[data-menu="dock"] #contact { padding-bottom: 170px; }   /* room for the dock at the very end */
  html[data-menu="dock"] .toc { --dock: 34px; gap: 8px; padding: 9px; }   /* room for the current circle's ring */
}
@media (max-width: 360px) {
  html[data-menu="dock"] .toc { --dock: 30px; gap: 6px; padding: 8px; }
}

/* ---------- Desktop menus (?desk=overlay|rail|bar|pill; default overlay) ---------- */
@media (min-width: 961px) {
  /* shared resets when not using the old floating pill */
  html:not([data-desk="pill"]) .hero { padding-top: 34px; }
  html:not([data-desk="pill"]) .section-head { top: 36px; }
  html:not([data-desk="pill"]) #experience .entry { scroll-margin-top: 40px; }

  /* RAIL: glyph circles stacked on the right edge; names slide out on hover */
  html[data-desk="rail"] .toc {
    top: 50%; right: 18px; left: auto; translate: 0 -50%;
    flex-direction: column; gap: 10px; padding: 8px; font-size: 0;
    border-radius: 999px;
  }
  html[data-desk="rail"] .toc a { position: relative; padding: 0; border-radius: 50%; background: none; font-size: 0; }
  html[data-desk="rail"] .toc a::before {
    content: ""; display: block; width: 46px; height: 46px; border-radius: 50%;
    background-color: var(--c); background-position: center; background-size: 100%; background-repeat: no-repeat;
    transition: scale .25s var(--bounce), box-shadow .2s;
  }
  html[data-desk="rail"] .toc a:hover, html[data-desk="rail"] .toc a[aria-current] { background: none; }
  html[data-desk="rail"] .toc a:hover::before, html[data-desk="rail"] .toc a:focus-visible::before { scale: 1.12; }
  html[data-desk="rail"] .toc a[aria-current]::before { scale: 1.12; box-shadow: 0 0 0 3px var(--ink); }
  html[data-desk="rail"] .toc a:hover::after,
  html[data-desk="rail"] .toc a:focus-visible::after,
  html[data-desk="rail"] .toc a[aria-current]::after {
    content: var(--label); position: absolute; top: 50%; right: calc(100% + 16px); translate: 0 -50%;
    padding: 8px 12px 9px; border-radius: 999px; background: var(--ink); color: var(--cream);
    font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
    pointer-events: none;
  }
  html[data-desk="rail"] .toc:hover a[aria-current]:not(:hover)::after { opacity: 0; }

  /* BAR: a classic full-width top bar with a wordmark */
  html[data-desk="bar"] .toc {
    top: 0; left: 0; right: 0; translate: none;
    justify-content: flex-end; align-items: center; gap: 2px;
    padding: 10px var(--pad);
    border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; box-shadow: none;
    font-size: 15px;
  }
  html[data-desk="bar"] .toc::before {
    content: "Jon Cairo"; margin-right: auto;
    font: 800 28px/1 var(--display); font-stretch: 82%; text-transform: uppercase; letter-spacing: -0.01em;
    color: var(--coral); text-shadow: .035em .035em 0 var(--ink), .07em .07em 0 var(--ink);
  }
  html[data-desk="bar"] .toc a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 9px 8px; }
  html[data-desk="bar"] .toc a::before {
    content: ""; width: 22px; height: 22px; border-radius: 50%;
    background-color: var(--c); background-position: center; background-size: 100%; background-repeat: no-repeat;
  }
  html[data-desk="bar"] .hero { padding-top: 108px; }
  html[data-desk="bar"] .section-head { top: 100px; }
  html[data-desk="bar"] #experience .entry { scroll-margin-top: 96px; }

  /* OVERLAY: a round MENU sticker opens a full-screen poster menu */
  html[data-desk="overlay"] .menu-toggle {
    position: fixed; z-index: 60; top: 22px; right: var(--pad);
    display: inline-flex; align-items: center; gap: 12px;
    padding: 7px 7px 7px 22px; border: 3px solid var(--ink); border-radius: 999px;
    background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--coral);
    font: 800 19px/1 var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .02em;
    cursor: pointer;
  }
  html[data-desk="overlay"] .menu-glyph {
    width: 42px; height: 42px; border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 11v78M16.2 30.5l67.6 39M16.2 69.5l67.6-39' fill='none' stroke='%23151412' stroke-width='11'/%3E%3C/svg%3E") center / 78% no-repeat, var(--sun);
    rotate: calc(var(--spin, 0) * 1deg); transition: rotate .4s var(--bounce);
  }
  html.menu-open[data-desk="overlay"] .menu-glyph { rotate: 45deg; }
  html[data-desk="overlay"] .hero { padding-top: 92px; }     /* clear the MENU button */
  html[data-desk="overlay"] .toc {
    inset: 0; translate: 0 -102%; visibility: hidden;
    display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: center; align-content: center;
    gap: 6px 72px; padding: 110px 6vw 80px;
    background: radial-gradient(circle, rgba(17, 17, 16, .13) 1.15px, transparent 1.7px) 0 0 / 7px 7px, var(--cream);
    border: 0; border-radius: 0; box-shadow: none;
    transition: translate .5s cubic-bezier(.2, .8, .2, 1), visibility 0s .5s;
  }
  html.menu-open[data-desk="overlay"] .toc { translate: 0 0; visibility: visible; transition: translate .5s cubic-bezier(.2, .8, .2, 1); }
  html.menu-open[data-desk="overlay"], html.menu-open[data-desk="overlay"] body { overflow: hidden; }
  html[data-desk="overlay"] .toc a {
    display: flex; align-items: center; gap: 22px; padding: 12px 0; background: none;
    font: 800 clamp(44px, 4.6vw, 78px)/1 var(--display); font-stretch: 80%; text-transform: uppercase; letter-spacing: -0.01em;
    transition: color .15s, translate .25s var(--bounce);
  }
  html[data-desk="overlay"] .toc a::before {
    content: ""; flex: none; width: .95em; height: .95em; border-radius: 50%;
    background-color: var(--c); background-position: center; background-size: 100%; background-repeat: no-repeat;
  }
  html[data-desk="overlay"] .toc a:hover { background: none; color: var(--coral); translate: 10px 0; }
  html[data-desk="overlay"] .toc a[aria-current] { background: none; color: var(--coral); }
}

/* ---------- Tablet & mobile ---------- */
@media (max-width: 960px) {
  .page { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero      { grid-column: 1 / -1; }
  .portrait  { grid-column: 1 / -1; grid-row: 2; width: min(100%, 560px); justify-self: center; }
  .ornaments { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 18px; }
  .ornaments > span:nth-child(n+7) { display: none; }   /* the extra two only fill the desktop wall */
  .section { grid-template-columns: minmax(0, 1fr); padding: 84px var(--pad); }
  .section-head { position: static; }
  /* tablet & phone: each heading sits beside its circle, anything else in the head (the About sticker) below */
  .section-head, :is(.section--wide, #podcasts) .section-head {
    grid-template-columns: auto minmax(0, 1fr); grid-auto-flow: row;
    align-items: center; justify-content: stretch; gap: 16px 18px;
  }
  .section-head::before { width: clamp(64px, 15vw, 96px); }
  .section-head > :not(.section-title) { grid-column: 1 / -1; }
  #brands .marquee-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #podcasts .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 180px)); justify-content: start; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero-name { flex-direction: column; align-items: flex-start; font-size: calc(100cqi / var(--fit-stack)); line-height: .82; }
  .ornaments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding: 72px var(--pad); }
  #brands .marquee-track { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 20px; }
  #brands .marquee-track li, #brands .marquee-track::after { height: 84px; }
  #brands .marquee-track img { max-height: 36px; width: calc(sqrt(var(--a, 4)) * 38px); }
  .contact-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 36px; }
  .contact-card { padding: 16px 76px 18px 18px; gap: 12px; }
  .contact-card::after { right: 14px; width: 44px; height: 44px; margin-top: -22px; }
  .pull-sticker { margin-top: 26px; max-width: 250px; }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
  .about-stats li { padding: 13%; gap: 6px; }
  .about-stats li:nth-child(odd)  { rotate: -2deg; }
  .about-stats li:nth-child(even) { rotate: 2deg; }
  .stat-num { font-size: clamp(52px, 17vw, 72px); }
  .stat-label { font-size: 11px; max-width: 12ch; }
  .link-entry::after { width: 42px; height: 42px; }
  #podcasts .links { grid-template-columns: minmax(0, 1fr); }
  #podcasts .link-entry { min-height: 0; gap: 26px; }
}

/* ---------- Display font options (?font=…; default Bricolage) ---------- */
html[data-font="rubik"]     { --display: "Rubik", system-ui, sans-serif;         --fit: 5.381; --fit-stack: 3.129; }
html[data-font="archivo"]   { --display: "Archivo", system-ui, sans-serif;       --fit: 3.972; --fit-stack: 2.306; }
html[data-font="unbounded"] { --display: "Unbounded", system-ui, sans-serif;     --fit: 6.853; --fit-stack: 3.974; }
html[data-font="syne"]      { --display: "Syne", system-ui, sans-serif;          --fit: 9.052; --fit-stack: 5.308; }
html[data-font="space"]     { --display: "Space Grotesk", system-ui, sans-serif; --fit: 4.8;   --fit-stack: 2.752; }
html[data-font] .hero-name, html[data-font] .section-title { letter-spacing: -0.03em; }
html[data-font="archivo"] .hero-name { font-stretch: 66%; }

/* ---------- Text font options for body, tags and nav (?text=…) ---------- */
html[data-text="bricolage"]  { --font: "Bricolage Grotesque", system-ui, sans-serif; }
html[data-text="inter"]      { --font: "Inter", system-ui, sans-serif; }
html[data-text="instrument"] { --font: "Instrument Sans", system-ui, sans-serif; }
html[data-text="dm"]         { --font: "DM Sans", system-ui, sans-serif; }
html[data-text="space"]      { --font: "Space Grotesk", system-ui, sans-serif; }

/* ---------- Palette options (?palette=…; default Bright) ---------- */
html[data-palette="muted"] {
  --cream: #f3ede1; --ink: #151412; --coral: #ef4a43; --cobalt: #2d63e2;
  --sun: #f5c540; --orange: #b98c52; --green: #b3b1ac;
}

/* ---------- Print texture ---------- */
/* Grain is part of the paper: a tiled texture in the page background and in the colour blocks, so it
   scrolls with the page and everything placed on the paper (name, circles, stickers, cards, tapes) stays
   clean on its own solid fill. No overlay layer, so nothing to repaint or stack around while scrolling. */
body { background-image: url("../img/grain-paper.png"); background-size: 220px 220px; }
/* the colour blocks: paper grain over a halftone screen */
#brands, #skills, #contact {
  background-image: url("../img/grain-paper.png"), radial-gradient(circle, rgba(21,20,18,.13) 1.15px, transparent 1.7px);
  background-size: 220px 220px, 7px 7px;
}
/* the hero sits above the sticky section heads, so its full-screen menu always covers them */
.hero { position: relative; z-index: 47; }

/* ---------- Ongoing roles (date ends in "Present") ---------- */
.meta > span.is-current { background: var(--sun); }

/* ---------- Links inside body copy (e.g. Trackstars, Stakeout) ---------- */
.prose a {
  text-decoration: underline; text-decoration-color: var(--coral);
  text-decoration-thickness: 3px; text-underline-offset: 3px;
  border-radius: 3px; transition: background-color .15s, text-decoration-color .15s;
}
.prose a:hover { background-color: var(--sun); text-decoration-color: var(--ink); }
