/* ==========================================================================
   GioGTM · Website v2
   Colour, type and spacing are all set as variables in :root.
   Headings use Gloock (from Gio's early logo round), in sentence case.
   To swap it, change --f-display. To go back to all caps, set --display-case
   to uppercase.
   ========================================================================== */

:root {
  /* Colour (sampled from Gio's logo boards and first homepage) */
  --cream: #FAF6EF;
  --white: #FFFFFF;
  --tomato: #F01E1E;   /* logo, star, big shapes and display type only */
  --brick: #CB0919;    /* buttons, small red text, Hire me section */
  --oxblood: #970018;  /* Kind words panel and footer */
  --apricot: #FCA28A;
  /* Yellow (butter #FDD839) was removed from the palette on 19 November 2026. */
  --ink: #17110F;

  /* Felt-pen outlines, now used only on the stat tiles: each colour at about 70% brightness */
  --tomato-d: #A81515;
  --brick-d: #8E0612;
  --oxblood-d: #690011;
  --apricot-d: #B07161;
  --cream-d: #AFACA7;

  --ink-soft: #4A3F3B;

  /* Type */
  --f-display: 'Gloock', Georgia, 'Times New Roman', serif;
  --f-text: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --display-case: none;
  --display-lh: 0.9;

  /* Layout */
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: 120px;
  --header-h: 76px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (max-width: 760px) {
  :root { --section: 72px; --header-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

.sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--brick); color: var(--cream); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.on-dark :focus-visible, .hire :focus-visible, .site-footer :focus-visible, .kind-panel :focus-visible { outline-color: var(--cream); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

.eyebrow {
  font: 400 13px/1.3 var(--f-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 18px;
}
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: var(--display-case);
  line-height: var(--display-lh);
  letter-spacing: -.015em;
}
.h2 { font-size: clamp(52px, 7.4vw, 116px); }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-soft); max-width: 36em; }
.ph {
  display: inline-block; font: 400 12px/1 var(--f-mono); letter-spacing: .06em;
  color: var(--brick); background: var(--white); border: 1.5px dashed var(--brick);
  padding: 5px 8px; border-radius: 6px; vertical-align: middle;
}

/* ---------- Felt-pen drawing ---------- */
.pen { position: relative; isolation: isolate; }
.pen-svg {
  position: absolute; left: -10px; top: -10px;
  width: calc(100% + 20px); height: calc(100% + 20px);
  z-index: -1; overflow: visible; pointer-events: none;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Staggered headlines ---------- */
.stagger .ln { display: block; white-space: nowrap; margin-left: calc(var(--i) * var(--step, .42em)); }
.stagger .ln-in { display: inline-block; }
.js .stagger .ln-in { opacity: 0; transform: translateY(40px); }
.js .stagger.is-in .ln-in {
  opacity: 1; transform: none;
  transition: transform .9s var(--ease-out), opacity .6s ease;
  transition-delay: calc(var(--i) * 90ms);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  font: 600 17px/1 var(--f-text); text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translate(0, 0); }
.btn-solid { color: var(--cream); }
.btn-outline { color: var(--brick); }
.btn-arrow { width: 22px; height: 14px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand img { height: 46px; width: auto; }
.site-nav ul { display: flex; align-items: center; gap: 10px; }
.nav-link {
  display: inline-block; padding: 9px 14px;
  font: 500 15px/1 var(--f-text); text-decoration: none; color: var(--ink);
  transition: transform .2s var(--ease-out);
}
.nav-link:hover { transform: translateY(-2px); }
.nav-contact { min-height: 0; padding: 11px 18px; font-size: 15px; }
.menu-toggle { display: none; width: 48px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 20px; height: 2.5px; background: var(--brick); border-radius: 2px; position: relative;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--cream); padding: 12px var(--gutter) 24px;
    box-shadow: 0 12px 24px -18px rgba(23, 17, 15, .4);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-link { display: block; padding: 14px 16px; font-size: 18px; }
  .nav-contact { width: 100%; padding: 16px; font-size: 18px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 96px); overflow-x: clip; }  /* the star's spikes may bleed to the edge but never scroll the page */
.hero-grid { align-items: center; row-gap: 40px; }
.hero-copy { grid-column: 1 / span 6; position: relative; z-index: 2; }
.hero-title { font-size: clamp(50px, 7.9vw, 122px); margin-bottom: 28px; --step: .38em; }
.hero-title .ln { padding-block: .03em; }
.block-word { display: inline-block; color: var(--cream); padding: .06em .14em 0; margin-left: -.04em; }
.hero-intro { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); max-width: 31em; margin-bottom: 32px; }
.hero-art { grid-column: 7 / span 6; position: relative; }
.stage { position: relative; width: 100%; max-width: 640px; margin-left: auto; aspect-ratio: 1 / 1.04; }
.star { position: absolute; left: 0%; top: -2%; width: 104%; height: 104%; overflow: visible; }
.star-g { transform-origin: 50% 50%; transform-box: fill-box; }
.cutout-wrap { position: absolute; left: 50%; bottom: 0; width: 80%; transform: translateX(-50%); z-index: 2; }
.cutout { width: 100%; height: auto; will-change: transform; filter: drop-shadow(0 18px 22px rgba(105, 0, 17, .18)); }
.anno-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; pointer-events: none; }
.anno-lines path { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.anno-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--white); z-index: 4; }
.anno { position: absolute; z-index: 5; left: var(--x); top: var(--y); }
.anno-window { width: 210px; background: transparent; }
.anno-window .win-bar { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; font: 400 11px/1 var(--f-mono); color: var(--cream); }
.anno-window .win-dots { display: flex; gap: 4px; }
.anno-window .win-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--cream); display: block; }
.anno-window .win-body { padding: 10px 12px 12px; font: 500 13px/1.2 var(--f-text); }
.progress { position: relative; height: 16px; margin-top: 8px; }
.anno-folder { width: 92px; text-align: center; }
.folder-shape { height: 66px; }
.anno-label { display: block; margin-top: 6px; font: 400 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--ink); }
.anno-warn { width: 236px; padding: 12px 14px; color: var(--cream); font: 500 14px/1.3 var(--f-text); display: flex; gap: 10px; align-items: flex-start; }
.anno-warn > svg:not(.pen-svg) { flex: none; margin-top: 1px; }
.pixel-face { position: absolute; z-index: 4; width: clamp(56px, 7vw, 92px); height: auto; }
.crosshair { position: absolute; width: 18px; height: 18px; z-index: 1; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--ink); }
.crosshair.tl { left: -6px; top: -4px; } .crosshair.tr { right: -6px; top: -4px; transform: scaleX(-1); }
.crosshair.bl { left: -6px; bottom: -4px; transform: scaleY(-1); } .crosshair.br { right: -6px; bottom: -4px; transform: scale(-1); }
.crosshair::before { left: 0; top: 0; width: 18px; height: 1.5px; }
.crosshair::after { left: 0; top: 0; width: 1.5px; height: 18px; }
.barcode { position: absolute; z-index: 1; width: 92px; height: 34px; }
.dot-col { position: absolute; z-index: 1; display: grid; gap: 8px; }
.dot-col i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); display: block; }
.dot-col i:nth-child(2) { opacity: .55; } .dot-col i:nth-child(3) { opacity: .25; }
.scroll-btn { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; color: var(--cream); margin-top: 40px; }
.scroll-btn > svg:not(.pen-svg) { width: 22px; height: 22px; }
.hero-meta { display: flex; align-items: center; gap: 18px; margin-top: 34px; }

/* Hero motion (only when motion is allowed) */
.js .hero .star-g { opacity: 0; }
.js .hero.is-ready .star-g { animation: star-in 1s cubic-bezier(.34, 1.4, .5, 1) forwards, star-drift 14s ease-in-out 1s infinite alternate; }
@keyframes star-in { from { opacity: 0; transform: scale(.55) rotate(-14deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes star-drift { from { transform: rotate(0); } to { transform: rotate(2deg) scale(1.01); } }
.js .anno-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .hero.is-ready .anno-lines path { transition: stroke-dashoffset .7s var(--ease-out) var(--d, 0ms); stroke-dashoffset: 0; }
.js .anno-dot { transform: scale(0); }
.js .hero.is-ready .anno-dot { transform: scale(1); transition: transform .3s var(--ease-out) var(--d, 0ms); }
.js .anno, .js .pixel-face { opacity: 0; transform: translateY(6px); }
.js .hero.is-ready .anno, .js .hero.is-ready .pixel-face { opacity: 1; transform: none; transition: opacity .45s ease var(--d, 0ms), transform .45s var(--ease-out) var(--d, 0ms); }

@media (max-width: 860px) {
  .hero-copy, .hero-art { grid-column: 1 / -1; }
  .stage { margin-inline: auto; max-width: 520px; }
  .anno[data-mobile="hide"], .anno-dot[data-mobile="hide"], .anno-lines path[data-mobile="hide"], .pixel-face[data-mobile="hide"], .barcode, .dot-col { display: none; }
  .anno { left: var(--xm, var(--x)); top: var(--ym, var(--y)); }
  .anno-window { width: 180px; }
  .anno-warn { width: 200px; font-size: 13px; }
  .scroll-btn { display: none; }
}

/* ---------- Strips (marquees) ---------- */
.strip { position: relative; padding-block: 8px; }
.strip + .strip { margin-top: -2px; }
.strip-head { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; }
.strip-label { font: 400 12px/1.3 var(--f-mono); letter-spacing: .16em; color: var(--brick); }
.rule { display: block; width: 100%; height: 10px; overflow: visible; }
.strip-software .rule:last-child { margin-top: 4px; }
.marquee {
  position: relative; overflow: hidden; padding: 16px 0 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.track { display: flex; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.track[data-dir="rev"] { animation-direction: reverse; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.track ul { display: flex; align-items: center; }
.m-item { position: relative; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 30px; outline-offset: -2px; }
.m-item img { height: 30px; width: auto; }
.wordmark { font: 400 30px/1 var(--f-display); text-transform: var(--display-case); color: var(--ink); letter-spacing: -.01em; }
.strip-software .m-item img { height: 22px; }
.sw-name { font: 600 18px/1 var(--f-text); white-space: nowrap; }
.m-note {
  position: absolute; left: 50%; top: calc(100% - 4px); transform: translate(-50%, 4px);
  font: 400 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: var(--ink); color: var(--cream); padding: 6px 9px; border-radius: 5px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease-out);
}
.m-item:hover .m-note, .m-item:focus .m-note { opacity: 1; transform: translate(-50%, 0); }
.m-item:hover .wordmark, .m-item:hover img { transform: translateY(-2px); }
.m-item .wordmark, .m-item img { transition: transform .2s var(--ease-out); }

/* ---------- Where I've been ---------- */
.where-head { margin-bottom: clamp(24px, 3vw, 40px); }
.where-head .h2 { --step: .5em; }
@media (max-width: 640px) {
  /* Gloock is wider than the old condensed caps, so phone headings step in less */
  .h2 { font-size: clamp(40px, 11.4vw, 52px); }
  .where-head .h2 { --step: .3em; }
}
.carousel { position: relative; outline: none; }

/* the ring: cards sit on the outside of a drum, so the front card is biggest and the rest fall away */
.ring-stage {
  position: relative; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  perspective-origin: 50% 62%; cursor: grab;
}
.ring-stage.is-dragging { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.wcard {
  position: absolute; left: calc(var(--cw) / -2); top: calc(var(--ch) / -2); width: var(--cw); height: var(--ch);
  display: flex; flex-direction: column; justify-content: flex-end; text-align: left; overflow: hidden; border-radius: 6px;
  padding: calc(var(--cw) * .07); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px rgba(23, 17, 15, .08);
}
.wcard[data-colour="brick"] { background: var(--brick); color: var(--cream); }
.wcard[data-colour="oxblood"] { background: var(--oxblood); color: var(--cream); }
.wcard[data-colour="apricot"] { background: var(--apricot); }
.wcard[data-colour="cream"] { background: var(--cream); box-shadow: 0 0 0 1px rgba(23, 17, 15, .14); }
.wcard:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
/* a picture fills the card; a soft shade keeps the name readable */
.wc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wcard.has-photo { color: var(--cream); }
.wcard.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23, 17, 15, .72), rgba(23, 17, 15, 0) 60%); pointer-events: none; }
.wc-text { position: relative; z-index: 1; display: grid; }
.wc-name { font: 400 calc(var(--cw) * .15)/.95 var(--f-display); letter-spacing: -.015em; }
.wc-roles { display: grid; gap: 6px; margin-top: 12px; }
.wc-role-row { display: grid; gap: 2px; }
.wc-role { font: 600 calc(clamp(13px, var(--cw) * .04, 16px))/1.3 var(--f-text); }
.wc-dates { font: 400 calc(clamp(10.5px, var(--cw) * .028, 12px))/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
/* hover: the name and dates slide up, and the one-liner and a button open underneath */
.wc-hover {
  position: relative; z-index: 1; display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .45s var(--ease-out), opacity .3s ease;
}
.wc-hover-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.wc-line { padding-top: 16px; font: 400 calc(clamp(14px, var(--cw) * .046, 19px))/1.35 var(--f-text); max-width: 22em; }
.wc-more {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: 2px; padding: .7em 1.1em; border: 0; border-radius: 10px;
  background: var(--ink); color: var(--cream); font: 600 calc(clamp(12.5px, var(--cw) * .036, 14.5px))/1 var(--f-text);
  transition: background-color .2s ease;
}
.wc-arrow { transition: transform .25s ease; }
.wcard:hover .wc-arrow { transform: translateX(3px); }
.wcard[data-colour="brick"] .wc-more { background: var(--cream); color: var(--brick); }
.wcard[data-colour="oxblood"] .wc-more { background: var(--cream); color: var(--oxblood); }
.wcard.has-photo .wc-more { background: var(--cream); color: var(--ink); }
.wcard:hover .wc-hover, .wcard:focus-visible .wc-hover { grid-template-rows: 1fr; opacity: 1; }
.wcard.has-photo:hover::after { background: linear-gradient(to top, rgba(23, 17, 15, .78), rgba(23, 17, 15, .55)); }
@media (hover: none) {
  .wc-hover { grid-template-rows: 1fr; opacity: 1; }
  .wc-more { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wc-hover { transition: opacity .2s ease; } }

/* company detail */
.work-dialog {
  border: 0; padding: 0; background: transparent; color: var(--ink);
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: visible;
}
.work-dialog::backdrop { background: rgba(23, 17, 15, .62); }
.wd-inner { position: relative; background: var(--white); border-radius: 22px; padding: clamp(28px, 4vw, 48px); max-height: calc(100vh - 48px); overflow: auto; }
.wd-inner[data-colour="brick"] { border-top: 14px solid var(--brick); }
.wd-inner[data-colour="oxblood"] { border-top: 14px solid var(--oxblood); }
.wd-inner[data-colour="apricot"] { border-top: 14px solid var(--apricot); }
.wd-inner[data-colour="cream"], .wd-inner[data-colour="white"] { border-top: 14px solid var(--cream); }
.wd-name { font: 400 clamp(44px, 6vw, 72px)/.95 var(--f-display); letter-spacing: -.015em; padding-right: 48px; }
.wd-roles { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; font: 600 16px/1.35 var(--f-text); }
.wd-roles li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.wd-dates { font: 400 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brick); }
.wd-line { font: 400 clamp(20px, 2vw, 25px)/1.3 var(--f-text); margin-top: 22px; }
.wd-summary { font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin-top: 12px; }
.wd-work { margin-top: 28px; border-top: 1px solid rgba(23, 17, 15, .14); padding-top: 22px; }
.wd-work-head { font: 400 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-bottom: 18px; }
.wd-work > ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.wd-item { display: grid; grid-template-columns: 1fr; gap: 12px; }
.wd-item:has(img) { grid-template-columns: 160px 1fr; align-items: start; }
.wd-item img { width: 160px; height: 100px; object-fit: cover; object-position: top left; border-radius: 8px; }
.wd-label { font: 700 12px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.wd-title { font: 600 16px/1.35 var(--f-text); margin-top: 6px; }
.wd-detail { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); margin-top: 6px; }
.wd-links { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.wd-links a { font: 600 15px/1.35 var(--f-text); color: var(--brick); text-underline-offset: 3px; }
@media (max-width: 560px) {
  .wd-item:has(img) { grid-template-columns: 1fr; }
  .wd-item img { width: 100%; height: 150px; }
}

.car-btn {
  position: absolute; top: 50%; z-index: 12; width: 60px; height: 60px; margin-top: -30px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--brick);
}
.car-btn > svg:not(.pen-svg) { width: 22px; height: 22px; }
.car-prev { left: max(12px, calc((100vw - var(--wrap)) / 2 - 20px)); }
.car-next { right: max(12px, calc((100vw - var(--wrap)) / 2 - 20px)); }
.car-dots { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.car-dot { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.car-dot i { display: block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brick-d); transition: background .2s, transform .2s; }
.car-dot[aria-current="true"] i { background: var(--brick); transform: scale(1.2); }
@media (max-width: 1000px) {
  .car-btn { width: 50px; height: 50px; margin-top: -25px; }
}

/* ---------- Use cases: bookshelf ---------- */
.uc-head { margin-bottom: clamp(32px, 4vw, 56px); }
.uc-head .lede { margin-top: 20px; }
.uc-grid { align-items: start; row-gap: 40px; }
.shelf { grid-column: 1 / span 5; position: relative; height: 470px; display: flex; flex-direction: column; justify-content: flex-end; }
.books { display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 0 12px; perspective: 1200px; }
.book {
  position: relative; width: var(--w); height: var(--h); flex: none;
  transform: rotate(var(--lean)); transform-origin: 50% 100%;
  transition: width .55s var(--ease-out), height .55s var(--ease-out), transform .45s var(--ease-out);
}
/* closed books look pressable, like the Specialities buttons: a raised edge that presses in on hover and click */
.books { padding-bottom: 6px; }
.book { cursor: pointer; }
.book:not([aria-expanded="true"]) {
  filter: drop-shadow(0 6px 0 rgba(23, 17, 15, .24));
  transition: width .55s var(--ease-out), height .55s var(--ease-out), transform .18s cubic-bezier(.3, .7, .4, 1), filter .18s ease;
}
.book:not([aria-expanded="true"]):hover, .book:not([aria-expanded="true"]):focus-visible { transform: translateY(3px) rotate(0); filter: drop-shadow(0 3px 0 rgba(23, 17, 15, .24)); }
.book:not([aria-expanded="true"]):active, .book.is-pressing:not([aria-expanded="true"]) { transform: translateY(6px) rotate(0); filter: drop-shadow(0 0 0 rgba(23, 17, 15, .24)); transition-duration: .09s; }
.uc-hint { margin-top: 18px; text-align: center; font: 400 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.book-spine, .book-cover { position: absolute; inset: 0; display: flex; overflow: hidden; border-radius: 4px; }
.book-spine {
  flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 0 14px;
  transition: opacity .25s ease;
}
.spine-title { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; flex: none; }
.spine-short { font: 700 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.book-cover {
  flex-direction: column; justify-content: space-between; padding: 22px 20px 18px; text-align: left;
  opacity: 0; transform-origin: 0 50%; transform: perspective(900px) rotateY(80deg);
}
.cover-title { font-size: 34px; line-height: .95; }
.cover-short { font: 700 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.book[aria-expanded="true"] { width: var(--cw); height: var(--ch); transform: translateY(-6px) rotate(0); }
.book[aria-expanded="true"] .book-spine { opacity: 0; }
.book[aria-expanded="true"] .book-cover { opacity: 1; transform: none; transition: transform .7s var(--ease-out) .12s, opacity .2s ease .12s; }
.book[data-colour="white"] { color: var(--ink); }
.book[data-colour="brick"] { color: var(--cream); }
.book[data-colour="apricot"] { color: var(--ink); }
.book .spine-title, .book .cover-title { font-family: var(--f-display); text-transform: var(--display-case); font-size: 30px; letter-spacing: -.005em; }
.shelf-board { display: block; width: 100%; height: 22px; margin-top: -2px; overflow: visible; }
.uc-panel { grid-column: 7 / span 6; position: relative; }
.uc-content { transition: opacity .3s ease, transform .4s var(--ease-out); }
.uc-content.is-out { opacity: 0; transform: translateY(8px); }
.uc-title { font-size: clamp(40px, 4.6vw, 68px); margin-bottom: 24px; }
.uc-line { font: 400 clamp(24px, 2.3vw, 34px)/1.15 var(--f-serif); color: var(--brick); margin-bottom: 26px; }
.uc-rows { display: grid; gap: 18px; margin-bottom: 30px; }
.uc-row { display: grid; grid-template-columns: 14px 1fr; gap: 12px; }
.uc-row::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--brick); margin-top: 9px; }
.uc-topic { font-weight: 700; text-decoration: underline; text-decoration-color: var(--brick); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.uc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.tile { container-type: inline-size; padding: 18px 18px 16px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; }
.tile-value { font: 400 min(58px, 30cqi)/.9 var(--f-display); }
.tile-label { font-size: 14px; line-height: 1.35; margin-top: 10px; }
@media (max-width: 900px) {
  .shelf, .uc-panel { grid-column: 1 / -1; }
  .shelf { height: auto; }
  .books { gap: 10px; }
  .book { --lean: 0deg !important; }
  .book, .book[aria-expanded="true"] { width: var(--mw); height: var(--mh); }
  .book[aria-expanded="true"] { transform: translateY(-10px); }
  .book[aria-expanded="true"] .book-spine { opacity: 1; }
  .book[aria-expanded="true"] .book-cover { display: none; }
}

/* ---------- What I do: bubbles ---------- */
.what-head { margin-bottom: clamp(36px, 4vw, 56px); }
.what-head .lede { margin-top: 20px; }
.bubbles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 24px; max-width: 1120px; margin: 0 auto; min-height: 360px; }
.bubble { position: relative; flex: none; margin-top: var(--dy, 0px); animation: bob var(--bob, 5s) ease-in-out var(--bob-delay, 0s) infinite alternate; }
@keyframes bob { from { translate: 0 -5px; } to { translate: 0 6px; } }
.bubble-btn { display: block; text-align: center; white-space: nowrap; position: relative; z-index: 1; }
.bubble[data-size="s"] .bubble-btn { padding: 16px 24px; font: 600 17px/1 var(--f-text); }
.bubble[data-size="m"] .bubble-btn { padding: 22px 34px; font: 600 21px/1 var(--f-text); }
.bubble[data-size="l"] .bubble-btn { padding: 30px 46px; font: 600 26px/1 var(--f-text); }
.bubble[data-colour="brick"] { color: var(--cream); }
.bubble-card { padding: 0 30px 28px; max-width: 560px; }
.bubble { max-width: 100%; }
@media (max-width: 640px) {
  /* longer category names: smaller and allowed to wrap on phones */
  .bubbles { gap: 14px 12px; }
  .bubble-btn { white-space: normal; max-width: calc(100vw - 2 * var(--gutter)); }
  .bubble[data-size="s"] .bubble-btn { padding: 13px 18px; font-size: 15px; }
  .bubble[data-size="m"] .bubble-btn { padding: 16px 22px; font-size: 17px; }
  .bubble[data-size="l"] .bubble-btn { padding: 20px 26px; font-size: 20px; }
}
.bubble.is-open { flex-basis: min(580px, 100%); animation: none; margin-top: 0; z-index: 3; }
/* buttons sit raised on a shadow and press in on hover and click, so they read as clickable */
.bubble:not(.is-open) { filter: drop-shadow(0 6px 0 rgba(23, 17, 15, .22)); transition: transform .16s cubic-bezier(.3, .7, .4, 1), filter .16s ease; }
.bubble:not(.is-open):hover { transform: translateY(4px); filter: drop-shadow(0 2px 0 rgba(23, 17, 15, .22)); }
.bubble:not(.is-open):active, .bubble.is-pressing { transform: translateY(6px); filter: drop-shadow(0 0 0 rgba(23, 17, 15, .22)); transition-duration: .08s; }
.bubble:not(.is-open):has(.bubble-btn:focus-visible) { transform: translateY(4px); filter: drop-shadow(0 2px 0 rgba(23, 17, 15, .22)); }
.bubble.is-open .bubble-btn { padding: 26px 64px 12px 30px; font: 400 clamp(32px, 3.4vw, 44px)/var(--display-lh) var(--f-display); text-transform: var(--display-case); text-align: left; white-space: normal; width: 100%; }
.bubble-card .bi { display: grid; gap: 8px; margin-top: 14px; font-size: 16px; line-height: 1.5; }
.at-tag {
  justify-self: start; font: 700 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 9px 5px; border-radius: 999px; background: var(--ink); color: var(--cream);
}
.bubble[data-colour="brick"] .at-tag { background: var(--cream); color: var(--brick); }
.bubble-card .links { margin-top: 16px; display: grid; gap: 7px; }
.bubble-card .links a { font-weight: 600; font-size: 15px; text-underline-offset: 3px; }
.bubble[data-colour="brick"] .bubble-card .links a { color: var(--cream); }
.bubble[data-colour="oxblood"] { color: var(--cream); }
.bubble[data-colour="oxblood"] .at-tag { background: var(--cream); color: var(--oxblood); }
.bubble[data-colour="oxblood"] .bubble-card .links a { color: var(--cream); }
.bubble[data-colour="white"] .bubble-card .links a, .bubble[data-colour="apricot"] .bubble-card .links a { color: var(--ink); }
.bubble-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; font: 400 22px/1 var(--f-text); }

/* ---------- Kind words ---------- */
.kind-panel {
  position: relative; background: var(--oxblood); color: var(--cream);
  border-radius: clamp(28px, 4vw, 52px); overflow: hidden;
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 6vw, 84px);
}
.kind-title {
  position: relative; z-index: 0; text-align: center; color: var(--cream);
  font-size: clamp(34px, 8.4vw, 136px); white-space: nowrap; margin-bottom: -.42em;
  pointer-events: none; user-select: none;
}
.kind-row { position: relative; z-index: 1; height: calc(var(--ch, 560px) + 60px); touch-action: pan-y; }
.qcard {
  position: absolute; left: 50%; top: 20px; width: var(--cw, 440px); height: var(--ch, 550px);
  margin-left: calc(var(--cw, 440px) / -2);
  color: var(--ink); display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 32px);
  will-change: transform; outline-offset: 6px; cursor: default;
}
.qcard .q-company { font: 400 22px/1 var(--f-display); text-transform: var(--display-case); letter-spacing: .04em; }
.qcard .q-pull { font: 500 var(--qfs, 20px)/1.32 var(--f-text); letter-spacing: -.005em; margin: 18px 0 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; }
.qcard .q-pull p { margin: 0; }
.qcard .q-read { align-self: flex-start; font: 700 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; margin-bottom: 14px; }
.qcard hr { border: 0; height: 1px; background: currentColor; opacity: .28; margin: 0 0 16px; }
.q-person { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; }
.q-initials { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font: 700 14px/1 var(--f-mono); }
.q-photo { border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--cream), 0 0 0 3px rgba(23, 17, 15, .2); }
.q-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-name { font: 700 16px/1.2 var(--f-text); }
.q-role { font: 400 11px/1.35 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.kind-hint { position: relative; z-index: 1; text-align: center; font: 400 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.qcard.rm-active { outline: 3px solid var(--cream); outline-offset: 6px; border-radius: 22px; }

.quote-dialog {
  border: 0; padding: 0; background: transparent; color: var(--ink);
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: visible;
}
.quote-dialog::backdrop { background: rgba(23, 17, 15, .62); }
.qd-inner { padding: clamp(28px, 4vw, 44px); max-height: calc(100vh - 48px); overflow: auto; }
.qd-inner .q-company { font: 400 22px/1 var(--f-display); text-transform: var(--display-case); letter-spacing: .04em; margin-bottom: 18px; }
.qd-inner p { font-size: 17px; line-height: 1.6; margin-bottom: 14px; }
.qd-inner .q-person { margin-top: 22px; }
.qd-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }

/* ---------- About ---------- */
.about-grid { align-items: start; row-gap: 32px; }
.about-title {
  grid-column: 1 / span 4; color: var(--tomato);
  writing-mode: vertical-rl; font-size: clamp(120px, 15.5vw, 236px); line-height: .84;
  justify-self: start; margin-top: -.06em;
}
.about-title span { display: block; }
.about-body { grid-column: 5 / span 8; }
.bio { font: 400 14px/1.6 var(--f-mono); color: var(--brick); max-width: 62ch; }
.bio p + p { margin-top: 1em; }
/* polaroids taped to the page */
.photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; align-items: end; margin-top: 52px; padding: 0 8px; }
.polaroid {
  position: relative; margin: 0; background: var(--white); padding: 12px 12px 44px; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(23, 17, 15, .12), 0 14px 30px -8px rgba(23, 17, 15, .28);
  transform: rotate(var(--tilt, -3deg)); transition: transform .35s cubic-bezier(.3, .7, .3, 1), box-shadow .35s ease;
}
.polaroid:nth-child(1) { --tilt: -3.5deg; z-index: 1; }
.polaroid:nth-child(2) { --tilt: 4deg; margin: 0 0 28px -18px; z-index: 2; }
.polaroid:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 1px 2px rgba(23, 17, 15, .12), 0 22px 40px -10px rgba(23, 17, 15, .32); z-index: 3; }
.polaroid img { width: 100%; height: auto; aspect-ratio: 9 / 10; object-fit: cover; object-position: 50% 22%; border-radius: 0; background: #e9e2d6; }
/* a strip of tape across the top, slightly crooked with torn ends */
.polaroid::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 38%; height: 30px; z-index: 1;
  transform: translateX(-50%) rotate(var(--tape, -4deg));
  background: rgba(252, 162, 138, .62); box-shadow: 0 1px 2px rgba(23, 17, 15, .08);
  clip-path: polygon(0 6%, 4% 0, 9% 8%, 14% 0, 100% 0, 96% 12%, 100% 26%, 96% 44%, 100% 62%, 96% 80%, 100% 100%, 90% 94%, 84% 100%, 0 100%, 4% 82%, 0 64%, 4% 46%, 0 28%);
}
.polaroid:nth-child(2)::before { --tape: 5deg; left: 46%; background: rgba(250, 246, 239, .78); box-shadow: 0 1px 3px rgba(23, 17, 15, .14); }
@media (max-width: 860px) {
  .about-title { grid-column: 1 / -1; writing-mode: horizontal-tb; font-size: clamp(56px, 17vw, 140px); line-height: .88; }
  .about-title span { display: inline; }
  .about-title span + span { margin-left: .2em; }
  .about-body { grid-column: 1 / -1; }
}

/* ---------- Hire me ---------- */
.hire {
  position: relative; overflow: hidden; background: var(--brick); color: var(--cream);
  padding-block: clamp(96px, 12vw, 170px);
}
.hire-inner { position: relative; z-index: 2; }
.hire-title { font-size: clamp(66px, 11.5vw, 184px); margin-bottom: 30px; --step: .62em; }
.hire-line { font-size: clamp(17px, 1.4vw, 20px); max-width: 32em; margin-bottom: 32px; }
.hire .btn-solid { color: var(--brick); }
.hire .btn-outline { color: var(--cream); }
.trail { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.lead-dot { position: absolute; left: 0; top: 0; width: var(--d, 26px); height: var(--d, 26px); border-radius: 50%; will-change: transform; opacity: 0; transform: translate3d(-100px, -100px, 0) scale(0); }
.trail-static { display: none; gap: 8px; align-items: center; vertical-align: middle; margin-left: .3em; }
.trail-static i { display: block; width: .26em; height: .26em; border-radius: 50%; }

/* ---------- Footer ---------- */
.site-footer { position: relative; color: var(--cream); margin-top: 0; }
.hire + .site-footer, main + .site-footer { margin-top: -2px; }
.footer-edge { display: block; width: 100%; height: 70px; overflow: visible; background: var(--brick); }
.footer-body { background: var(--oxblood); padding: 10px 0 34px; margin-top: -1px; }
.footer-card { padding: clamp(26px, 3.5vw, 44px); color: var(--ink); display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-logo img { width: clamp(150px, 16vw, 230px); height: auto; }
.footer-tagline { font: 400 13px/1.5 var(--f-mono); color: var(--brick); margin-top: 18px; max-width: 26ch; }
.footer-col h3 { font: 400 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-weight: 600; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--brick); text-underline-offset: 4px; }
.newsletter { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid rgba(23, 17, 15, .15); }
.newsletter h3 { font: 400 clamp(30px, 3vw, 42px)/var(--display-lh) var(--f-display); text-transform: var(--display-case); }
.nl-form { display: flex; align-items: center; background: var(--oxblood); border-radius: 999px; padding: 6px 6px 6px 22px; width: min(420px, 100%); }
.nl-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--cream); font: 500 16px/1 var(--f-text); padding: 12px 0; }
.nl-form input::placeholder { color: rgba(250, 246, 239, .7); }
.nl-form button { width: 46px; height: 46px; border-radius: 50%; color: var(--cream); display: inline-flex; align-items: center; justify-content: center; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font: 400 12px/1.4 var(--f-mono); letter-spacing: .08em; }
@media (max-width: 860px) {
  .footer-card { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

.noscript { padding: 40px; font-size: 18px; }

/* ---------- Layout breakpoints ---------- */
@media (max-width: 860px) {
  .grid12 { column-gap: 16px; }
}

/* ---------- Reduced motion: everything still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js .stagger .ln-in, .js .anno, .js .pixel-face, .js .hero .star-g { opacity: 1 !important; transform: none !important; }
  .js .anno-lines path { stroke-dashoffset: 0 !important; }
  .js .anno-dot { transform: none !important; }
  .bubble { animation: none !important; translate: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .track { animation: none !important; }
  .track ul[aria-hidden="true"] { display: none; }
  .book, .book:hover, .book:active, .book.is-pressing { transform: none !important; }
  .trail { display: none; }
  .trail-static { display: inline-flex; }
}

@media (max-width: 640px) {
  .qcard { padding: 18px 18px 16px; }
  .qcard .q-pull { margin: 12px 0 0; }
  .qcard .q-company { font-size: 18px; }
  .q-person { grid-template-columns: 40px 1fr; gap: 10px; }
  .q-initials { width: 40px; height: 40px; font-size: 12px; }
}

@media (max-width: 640px) {
  .footer-card { grid-template-columns: 1fr; gap: 26px; }
  .footer-col a { overflow-wrap: anywhere; }
}
