/* ==========================================================================
   bettercrispy — styles
   1. Fonts          6. Media & cards       11. Confetti pixels
   2. Tokens         7. Featured band       12. Footer & consent banner
   3. Base           8. Work tiles          13. Tablet (≤860px)
   4. Layout grid       & cursor pill       14. Phone (≤600px)
      & header       9. Vector DAO          15. Motion & input preferences
   5. Home intro    10. Creative practices
   ========================================================================== */


/* 1. Fonts
   Editor's Note Text — web license; files in /fonts. */
@font-face {
  font-family: "Editor's Note Text";
  src: url("fonts/EditorsNoteText-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Editor's Note Text";
  src: url("fonts/EditorsNoteText-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


/* 2. Tokens */
:root {
  --bg: #fafcfd;
  --ink: #313131;
  --headline: #313131;  /* home eyebrow, rotating headline, statement */
  --muted: #8a94a0;
  --line: #f4f4f4;      /* work history keylines */
  --surface: #f7f8f9;   /* featured band */
  --accent: #e8321e;
  --serif: "Editor's Note Text", Georgia, serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  /* Layout grid: 9 columns, 12px gaps, 40px page margins.
     Phones switch to 4 columns, 16px gaps, 16px margins (section 13).
     Spacing is on a 4px step. */
  --gutter: 40px;
  --cols: 9;
  --col-gap: 12px;
}


/* 3. Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }


/* 4. Layout grid & header */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--col-gap);
}
main, .site-footer { padding: 0 var(--gutter); }

/* Press G to toggle a column overlay (site.js). */
.grid-overlay {
  position: fixed;
  inset: 0 var(--gutter);
  z-index: 100;
  pointer-events: none;
}
.grid-overlay span { background: rgba(124, 118, 240, 0.09); border-inline: 1px solid rgba(124, 118, 240, 0.28); }
.grid-overlay[hidden] { display: none; }

/* Header: no background; items turn white over dark images (site.js adds
   .on-dark). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: center;
  padding: 16px var(--gutter);
  background: none;
  font: 13px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand { grid-column: 1 / 4; justify-self: start; display: flex; align-items: center; }
.logo { width: 28px; height: 28px; flex: none; transition: filter 0.2s; }
/* Name on column 5, where the bio and work years start. */
.header-name { grid-column: 5; color: var(--muted); white-space: nowrap; transition: color 0.2s; }
nav { grid-column: 6 / -1; justify-self: end; display: flex; align-items: center; gap: 24px; }
nav a { color: var(--muted); transition: color 0.15s; }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--accent); }

.brand.on-dark .logo { filter: invert(1); }
.header-name.on-dark,
nav a:not(.cta).on-dark { color: rgba(255, 255, 255, 0.85); }
nav a:not(.cta).on-dark:hover,
nav a[aria-current="page"].on-dark { color: #fff; }

/* "Send — Hello" pill (from bettercrispy.com); "Hello" swaps to "Jello" on hover. */
nav a.cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 16px;
  border-radius: 88px;
  font: 400 13px/1 "DM Mono", var(--mono);
  letter-spacing: -0.01em;
  color: #5c5c5c;
  background: radial-gradient(50% 50%, #fff 13%, #f7f7f7 100%);
  box-shadow:
    rgba(255, 126, 33, 0.067) 0 0.77px 1.08px -0.2px,
    rgba(255, 126, 33, 0.075) 0 2.1px 2.94px -0.4px,
    rgba(255, 126, 33, 0.09) 0 4.61px 6.45px -0.6px,
    rgba(255, 126, 33, 0.13) 0 10.23px 14.32px -0.8px,
    rgba(255, 126, 33, 0.24) 0 26px 36.4px -1px,
    rgba(255, 0, 0, 0.4) 0 9px 9px -5px,
    #f7f7f7 0 0 0 6px inset;
  transition: box-shadow 0.25s, color 0.25s, background 0.25s;
}
nav a.cta:hover {
  color: #000;
  background: #37ff00;
  box-shadow:
    rgba(115, 255, 0, 0.314) 0 0.77px 0.77px -0.5px,
    rgba(115, 255, 0, 0.314) 0 2.1px 2.1px -1px,
    rgba(115, 255, 0, 0.314) 0 4.61px 4.61px -1.5px,
    rgba(115, 255, 0, 0.314) 0 10.23px 10.23px -2px,
    rgba(115, 255, 0, 0.314) 0 26px 26px -2.5px,
    rgba(0, 224, 56, 0.6) 0 9px 10px -4px,
    #0ff507 0 0 0 4px inset;
}
.cta-dash { color: rgba(92, 92, 92, 0.2); transition: color 0.25s; }
.cta:hover .cta-dash { color: inherit; }
.cta-word { display: inline-grid; }
.cta-word > span, .cta-word::after { grid-area: 1 / 1; transition: opacity 0.2s; }
.cta-word::after { content: attr(data-hover); opacity: 0; }
.cta:hover .cta-word > span { opacity: 0; }
.cta:hover .cta-word::after { opacity: 1; }


/* 5. Home intro
   Eyebrow, rotating headline and subhead stack in columns 1–4, 20px apart.
   The side column (5–9: about text, then work history) starts on the
   subhead's row so the two top-align; the eyes sit bottom-left. */
.intro {
  align-items: start;
  row-gap: 20px;
  padding: 64px 0 80px; /* 80px from the work history to the featured band */
}
.intro-text { display: contents; } /* its children join the intro grid */
.intro-text > * { grid-column: 1 / 5; }
.intro-text > .eyebrow {
  grid-row: 1;
  margin: 0;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--headline);
}
.intro-text > .hero {
  grid-row: 2;
  margin: 0;
  font: 400 clamp(36px, 5.4vw, 64px)/1.08 var(--serif);
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--headline);
}
.intro-text > .subhead { grid-row: 3; margin: 0; font-size: 16px; color: var(--ink); }
/* Trim to the top of the capitals so text starts flush with its box. */
.intro-text > *, .about-text p { text-box: trim-start cap alphabetic; }

/* Rotating word (site.js): every word shares one cell; the active one fades
   up in, the previous one fades up out. */
.rotator { display: inline-grid; justify-items: start; }
.rotator em {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.25em);
  transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rotator em.is-active { opacity: 1; transform: none; }
.rotator em.is-leaving { transform: translateY(-0.25em); }

/* The side column, about text, work history and its rows all share the page
   columns via subgrid. */
.intro-side, .about-text, .index, .index li {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
}
.intro-side { grid-column: 5 / -1; grid-row: 3 / span 2; }

/* About: two paragraphs side by side, two columns each. */
.about-text {
  align-items: start;
  padding-bottom: 32px;
  margin-bottom: 48px;
  font: 400 13px/22px var(--sans);
  color: var(--muted);
}
.about-text p { grid-column: 3 / 5; margin: 0; }
.about-text p:first-child { grid-column: 1 / 3; }
.about-text a { color: var(--accent); font-weight: 500; }
.about-text a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Work history: year, company, role (role on column 8), each row padded
   and underlined with a faint keyline. */
.index { list-style: none; margin: 0; padding: 0; row-gap: 6px; }
.index li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.index .year { grid-column: 1; font: 14px/1.6 var(--mono); white-space: nowrap; color: var(--muted); }
.index .co { grid-column: 2; }
.index .co:last-child { grid-column: 2 / -1; } /* no role: let it run on */
.index .co a:hover { text-decoration: underline; text-underline-offset: 4px; }
.index .what { grid-column: 4 / -1; color: var(--muted); }
.index .co, .index .what { font-size: 13px; line-height: 22.5px; }

/* Grumpy eyes (from bettercrispy.com): site.js drives --g (0 → 1.5) from
   the scroll position, tilting them inward and drooping the lids, and on
   desktop moves the pupils toward the cursor. */
.eyes {
  --g: 0;
  grid-column: 1 / 3;
  grid-row: 4;
  align-self: end;
  display: flex;
  gap: 24px;
}
.eye {
  position: relative;
  overflow: hidden; /* the pupil slips behind the lid and rim as it moves */
  flex: none;
  width: 88px;
  height: calc(57px + 10px * var(--g));
  border: 5px solid #1e1e1e;
  border-radius: 0 0 240px 240px;
  transform: rotate(calc(6.7deg * var(--g)));
}
.eye + .eye { transform: rotate(calc(-6.7deg * var(--g))); }
/* Fully rounded pupil that starts tucked up behind the lid: at rest it sits
   flush, and as it looks down its rounded top eases out from under the lid. */
.pupil {
  position: absolute;
  top: -19px;
  left: 15px;
  width: 48px;
  height: calc(54px + 5px * var(--g));
  border-radius: 24px;
  background: #1e1e1e;
  /* On desktop the pupils look toward the cursor (site.js sets --lx/--ly). */
  translate: var(--lx, 0px) var(--ly, 0px);
  transition: translate 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}


/* 6. Media & cards
   .media is a rounded image frame filled with the item's colour; it gets
   data-dark when that colour is dark (site.js). */
.media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 20px -8px rgba(16, 24, 40, 0.12);
  transition: box-shadow 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .media { box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05), 0 16px 32px -12px rgba(16, 24, 40, 0.18); }
.card:hover .media img { transform: scale(1.02); }

/* Small mono label: company names, status • year, tile notes. */
.meta {
  margin: 0;
  font: 12px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}


/* 7. Featured band
   A horizontal "notebook": the frame (corners, keyline, dot grid) stays put
   while the featured projects sit side by side as pages. On desktop,
   scrolling over the band flips pages (site.js); past the last page the
   page scrolls on. The frame is inset from the screen edge by --band-inset;
   each page pads back in so projects stay on the page grid. */
.projects-band {
  --band-inset: 20px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 calc(var(--band-inset) - var(--gutter)) var(--band-inset);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* soft drop shadow, no keyline */
}
.projects {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  height: 540px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain; /* no browser back-swipe from the band */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.projects::-webkit-scrollbar { display: none; }

/* Dot grid. site.js sets --dx/--dy (parallax drift) and --mx/--my (cursor
   position) while the pointer is over the band; ::after darkens the dots in
   a soft circle around the cursor. */
.projects-band::before,
.projects-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background-size: 24px 24px;
  background-position: calc(12px + var(--dx, 0px)) calc(12px + var(--dy, 0px));
  transition: background-position 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s;
}
.projects-band::before { background-image: radial-gradient(circle, rgba(49, 49, 49, 0.07) 1px, transparent 1.5px); }
.projects-band::after {
  background-image: radial-gradient(circle, rgba(49, 49, 49, 0.16) 1px, transparent 1.5px);
  -webkit-mask-image: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), #000, transparent);
  mask-image: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), #000, transparent);
  opacity: 0;
}
.projects-band.is-hovered::after { opacity: 1; }

/* A page: label in columns 1–3, image in 5–9. */
.project {
  align-items: start;
  scroll-margin-top: 88px;
  scroll-snap-align: start;
  padding-inline: calc(var(--gutter) - var(--band-inset));
}
.project .label { grid-column: 1 / 4; } /* three columns so the larger title has room */
.project .media { grid-column: 5 / -1; }
.project .company { color: var(--ink); }
/* Title scales with the screen: 32px on desktop down to 24px on phones,
   set tight. */
.project h2 {
  margin: 8px 0 12px;
  font: 400 clamp(24px, 1.2rem + 1.2vw, 32px)/1.1 var(--sans);
  letter-spacing: -0.025em;
  transition: color 0.15s;
}
.project:hover h2 { color: var(--accent); }

/* Case-study facts (Scope, Timeline, …) pinned to the bottom of the label,
   level with the bottom of the image. Multi-line values use the serif. */
.project .label:has(.facts) { align-self: stretch; display: flex; flex-direction: column; }
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 16px;
  margin: auto 0 0;
  padding-top: 32px;
}
.facts dt, .facts dd { font: 12px/1.6 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.facts dd.serif { font: 400 15px/1.4 var(--serif); letter-spacing: 0; text-transform: none; }
.facts dd.serif span { display: block; }

/* Page dots */
.pager {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 1;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.pager button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--muted);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.pager button[aria-current="true"] { opacity: 1; background-color: var(--ink); transform: scale(1.2); }


/* 8. Work tiles & cursor pill
   Square tiles, three per row, running edge to edge (full width, no gaps,
   square corners). The caption sits in the top corner, inset to the page
   margin, over a dark gradient so white text reads on any image. */
.more-projects { margin-inline: calc(-1 * var(--gutter)); padding: 140px 0 0; gap: 0; }
.work-tile { grid-column: span 3; display: block; position: relative; }
.work-tile .media, .work-tile:hover .media { aspect-ratio: 1; border-radius: 0; box-shadow: none; }
.work-tile-caption {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 20px var(--gutter) 112px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  color: #fff;
  pointer-events: none;
}
/* Description wraps at two thirds of the caption width. */
.work-tile-caption .title { max-width: 66.667%; font-size: 13px; color: rgba(255, 255, 255, 0.9); }
.work-tile-caption .meta { margin-top: 4px; color: rgba(255, 255, 255, 0.8); }

/* "tap unavailable" pill that trails the cursor over tiles (site.js).
   Frosted over dark images; near-black over light ones (.on-light). */
.cursor-pill {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 5px 4px 13px; /* + 1px border: 6px around the WIP token, 14px left */
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font: italic 400 16px/20px var(--serif);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  scale: 0.85;
  transition: opacity 0.2s, scale 0.2s;
}
.cursor-pill.show { opacity: 1; scale: 1; }
.cursor-pill.on-light {
  border-color: rgba(0, 0, 0, 0.7);
  background: rgba(22, 22, 22, 0.84);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  text-shadow: none;
}
.cursor-pill svg { flex: none; width: 16px; height: 16px; } /* closed-eye icon */
/* Inset "WIP" token, solid in the pill's tone. */
.cursor-pill .wip {
  margin-left: 2px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font: normal 10px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: none;
}
.cursor-pill.on-light .wip { background: rgba(0, 0, 0, 0.9); color: #fff; }


/* 9. Vector DAO
   A full-width collage under the tiles, top to bottom: Vector mark beside
   the "Vector DAO /" link, Sapien, the Sup block, then three Boost screens
   (the product page runs off the right edge). Everything is placed on the
   Figma frame (1440 × 2304) in percentages, x ÷ 1440 and y ÷ 2304, so the
   collage scales with the screen. */
.vector {
  position: relative;
  aspect-ratio: 1440 / 2304;
  margin: 0 calc(-1 * var(--gutter)) 34px;
  overflow: hidden;
}
.vector > * { position: absolute; margin: 0; }
.vector-logo   { left: 12.847%; top: 4.831%;  width: 20.647%; }
.vector-label  { left: 45.069%; top: 4.831%;  font: 400 15px/21px var(--serif); color: var(--ink); }
.vector-label a:hover { color: var(--accent); }
.vector-sapien { left: 45.069%; top: 13.164%; width: 52.847%; }
.vector-sup    { left: 0;       top: 37.196%; width: 100%; }

/* Boost screens: rounded cards with a soft shadow. The rewards card shows a
   cropped slice of its screenshot, as in Figma. */
.vector-shot { border-radius: 12px; overflow: hidden; box-shadow: 0 27px 27px -4px rgba(57, 57, 57, 0.12); }
.vector-shot img { display: block; width: 100%; height: auto; }
.vector-reward { left: 2.778%;  top: 72.822%; width: 34.723%; aspect-ratio: 500 / 336.65; box-shadow: 0 14px 17px -2px rgba(57, 57, 57, 0.12); }
.vector-reward img { position: absolute; left: -32.7%; top: -22.78%; width: 142.76%; max-width: none; }
.vector-feed   { left: 12.5%;   top: 78.563%; width: 49.572%; }
.vector-pdp    { left: 66.319%; top: 78.563%; width: 49.572%; }


/* 10. Creative practices
   Header matches the home intro: mono eyebrow, then a large serif statement
   (*word* → italic, ((word)) → oval, from content.js). */
.page-intro { padding: 64px 0; row-gap: 20px; }
.page-intro .eyebrow {
  grid-column: 1 / 5;
  margin: 0;
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--headline);
  text-box: trim-start cap alphabetic;
}
.statement {
  grid-column: 1 / 8;
  margin: 0;
  /* At 1.04 a "g" descender (0.227em) clears the ascenders below (0.781em)
     by ~1.5px at 48px. */
  font: 400 clamp(28px, 3.4vw, 48px)/1.04 var(--serif);
  letter-spacing: -0.02em;
  color: var(--headline);
  text-wrap: pretty;
}
/* Tilted oval around a word, drawn by a pseudo-element so it never changes
   the tight line spacing. */
.statement .pill {
  position: relative;
  padding: 0 0.12em;
  margin-right: 0.16em; /* room for the oval before the next word */
  white-space: nowrap;
}
.statement .pill::before {
  content: "";
  position: absolute;
  inset: 0.02em -0.22em -0.06em;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: rotate(-4deg);
  pointer-events: none;
}

/* Gallery: 4:5 tiles, three per row, caption underneath. */
.fun-grid { row-gap: 32px; margin-bottom: 96px; }
.fun-grid > * { grid-column: span 3; }
.tile { display: block; margin: 0; }
.tile .media { aspect-ratio: 4 / 5; }
.tile figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.tile.card:hover span:first-child { color: var(--accent); }


/* 11. Confetti pixels
   1–4px squares in red, CTA orange and yellow (site.js makes them). On the
   home intro they trail the cursor; on Creative practices they sit scattered
   behind the page, twinkling and shying away from the cursor. */
.pixel-trail { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.pixel-trail i { position: absolute; left: 0; top: 0; }
[data-pixel-field] { position: relative; isolation: isolate; }
.pixel-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pixel-field i {
  position: absolute;
  width: var(--s);
  height: var(--s);
  background: var(--c);
  translate: var(--px, 0) var(--py, 0);
  transition: translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: twinkle var(--t) ease-in-out var(--d) infinite alternate;
}
@keyframes twinkle { from { opacity: 1; } to { opacity: 0.15; } }


/* 12. Footer
   Sign-off in column 1, email in column 7, social links stacked in 9. */
.site-footer {
  align-items: start;
  row-gap: 12px;
  padding-top: 24px;
  padding-bottom: 40px;
  font: 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer-signoff { grid-column: 1 / 7; }
.footer-email { grid-column: 7 / 9; }
.footer-links { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 8px; }
.footer-email:hover, .footer-links a:hover { color: var(--ink); }

/* Analytics consent banner (analytics.js): EU / UK visitors only, bottom
   left, in the site's type. */
.consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 60;
  width: min(360px, calc(100vw - 2 * var(--gutter)));
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 32px -8px rgba(16, 24, 40, 0.18);
  font: 400 13px/20px var(--sans);
  color: var(--muted);
}
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; }
.consent button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 88px;
  background: none;
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.consent button:hover { color: var(--ink); }
.consent .consent-allow { background: var(--ink); color: #fff; }
.consent .consent-allow:hover { background: #000; color: #fff; }


/* 13. Tablet (≤860px): everything stacks to full width. */
@media (max-width: 860px) {
  .header-name { display: none; } /* no column 5 to align with */

  /* Intro */
  .intro { padding: 40px 0 56px; } /* 56px to the featured band (desktop 80px) */
  .intro-text > *, .intro-side { grid-column: 1 / -1; }
  .intro-side { grid-row: auto; margin-top: 28px; }
  .about-text { row-gap: 16px; }
  .about-text p, .about-text p:first-child { grid-column: 1 / -1; }
  .about-text p + p { text-box: normal; } /* stacked: keep even spacing */
  .index .year { grid-column: 1 / 3; }
  .index .co { grid-column: 3 / 5; }
  .index .co:last-child { grid-column: 3 / -1; }
  .index .what { grid-column: 5 / -1; }
  .eyes { grid-row: auto; grid-column: 1 / -1; margin-top: 48px; }

  /* Featured band: a horizontal swipe, one project per page, as tall as
     the tallest page. Each page reads company, title, industry, then the
     image, then Scope / Timeline: the label's parts join the page grid so
     the image can sit between them. */
  .projects { height: auto; align-items: start; padding-block: 24px 44px; /* room for the dots */ }
  .project .label, .project .label:has(.facts) { display: contents; }
  .project .label > *, .project .media { grid-column: 1 / -1; }
  .project .media { margin-top: 24px; }
  .project .facts { order: 1; margin: 0; padding-top: 24px; }

  /* Work tiles */
  .more-projects { padding-top: 48px; }
  .work-tile { grid-column: 1 / -1; }

  /* Creative practices */
  .page-intro { padding: 40px 0 48px; }
  .statement, .page-intro .eyebrow { grid-column: 1 / -1; }
}


/* 14. Phone (≤600px): 4-column grid, 16px margins. */
@media (max-width: 600px) {
  :root { --gutter: 16px; --cols: 4; --col-gap: 16px; }
  .grid-overlay span:nth-child(n + 5) { display: none; }

  /* Header: logo with Work / Creative practices stacked under it, the CTA
     on the right. */
  .site-header {
    grid-template-columns: 1fr auto;
    row-gap: 0;
    align-items: start;
    padding-top: 20px;
  }
  .brand { grid-column: 1; grid-row: 1; margin-bottom: 8px; }
  nav { display: contents; }
  nav a:not(.cta) { grid-column: 1; justify-self: start; padding-block: 5px; line-height: 1.2; }
  nav a.cta { grid-column: 2; grid-row: 1 / span 3; align-self: start; }

  /* Intro: headline 42px and 8px closer to the eyebrow; subhead 22px lines;
     ≈48px (glyph to glyph) subhead → about → work history. */
  .intro-text > .hero { font-size: 42px; margin-top: -8px; }
  .intro-text > .subhead { line-height: 22px; }
  .intro-side { margin-top: 30px; }
  .about-text { padding-bottom: 0; margin-bottom: 37px; } /* + the first row's 8px padding */

  /* Work history: 11px; year in columns 1–2, company with its role beneath
     in 3–4. */
  .index .year, .index .co, .index .what { font-size: 11px; line-height: 17px; }
  .index .year { grid-column: 1 / 3; }
  .index .co, .index .co:last-child, .index .what { grid-column: 3 / -1; }

  /* Featured band: frame 8px from the screen edge. Dots keep their 6px look
     with a 24px tap area. */
  .projects-band { --band-inset: 8px; }
  .project .facts { padding-top: 80px; } /* room between the image and Scope */
  .pager { gap: 0; bottom: 8px; }
  .pager button { box-sizing: content-box; padding: 9px; background-clip: content-box; }

  /* Gallery: one per row. */
  .fun-grid > * { grid-column: 1 / -1; }

  /* Footer: sign-off on its own row; email in 1–2, links in 3–4, with
     finger-sized tap areas. */
  .site-footer { row-gap: 16px; }
  .footer-signoff { grid-column: 1 / -1; }
  .footer-email { grid-column: 1 / 3; }
  .footer-links { grid-column: 3 / -1; gap: 0; }
  .footer-email, .footer-links a { padding-block: 6px; }
}


/* 15. Motion & input preferences */
@media (prefers-reduced-motion: reduce) {
  .pixel-field i { animation: none; transition: none; }
  .projects-band::before, .projects-band::after { transition: none; background-position: 12px 12px; }
}
@media (hover: none) {
  .cursor-pill { display: none; }
}
