/* ════════════════════════════════════════════════════════════════════
   Johnson Afolayan — portfolio
   Art direction: a printer's proof sheet. Registration crosses, job
   numbers, colour bars and trim rails form the structural grid.
   ════════════════════════════════════════════════════════════════════ */

/* ── tokens ─────────────────────────────────────────────────────────── */
:root {
  --paper:   #EAE6DB;
  --proof:   #F7F5F0;
  --ink:     #191612;
  --cyan:    #0092E5;   /* graphics, fills, rules */
  --cyan-text: #005E96;  /* cyan as text on light ground (contrast) */
  --grey:    #7E7A70;
  --rule:    #CFC9BB;
  --kraft:   #C6A87A;
  --oxblood: #8E2C22;
  --body-fg: #2B2721;

  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'Newsreader', Georgia, 'Times New Roman', serif;
  --f-mono:    'Space Mono', 'Courier New', monospace;

  --rail: 44px;
  --head-h: 58px;
  --gut: clamp(20px, 4vw, 56px);
  --pad-y: clamp(64px, 10vh, 132px);
  --inner: 1500px;
}

/* ── reset / base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: var(--head-h) var(--rail) 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.15rem);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--cyan); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan-text);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--proof);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  text-decoration: none;
}
.skip-link:focus { left: calc(var(--rail) + 8px); }

/* ── shared utilities ───────────────────────────────────────────────── */
/* Lenis requires these four rules (its lenis.css, inlined) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.mono {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* registration cross (inline) */
.xh {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
}
.xh::before, .xh::after {
  content: "";
  position: absolute;
  background: var(--cyan);
}
.xh::before { left: 0; right: 0; top: 50%; height: 1.5px; }
.xh::after  { top: 0; bottom: 0; left: 50%; width: 1.5px; }

/* colour control bar */
.cbar { display: inline-flex; }
.cbar i { display: block; width: 26px; height: 14px; }
.cbar--v { flex-direction: column; }
.cbar--v i { width: 14px; height: 26px; }
.cb-cy   { background: var(--cyan); }
.cb-k    { background: var(--ink); }
.cb-gy   { background: var(--grey); }
.cb-cy50 { background: color-mix(in srgb, var(--cyan) 50%, var(--paper)); }
.cb-pa   { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }

/* section head: proof number + title + lede */
.sec-head {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 8px;
  align-items: baseline;
}
.sec-no { color: var(--cyan-text); }
.sec-head h2 {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 122, 'wght' 800;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.sec-lede {
  grid-column: 2;
  margin-top: 16px;
  max-width: 56ch;
  color: var(--body-fg);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

/* ── fixed trim rails ───────────────────────────────────────────────── */
.trim {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 40;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.trim--l { left: 0; border-right: 1px solid var(--rule); }
.trim--r { right: 0; border-left: 1px solid var(--rule); }
.trim-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}

/* ── header ─────────────────────────────────────────────────────────── */
.site-head {
  position: fixed;
  top: 0;
  left: var(--rail);
  right: var(--rail);
  z-index: 50;
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
  padding-inline: max(var(--gut), calc((100% - var(--inner)) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.sh-name {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 112, 'wght' 750;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.sh-role {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--grey);
  white-space: nowrap;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: clamp(12px, 2vw, 26px);
}
.site-nav a {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 105, 'wght' 620;
  font-size: 0.84rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s;
}
.site-nav a:hover { color: var(--cyan-text); }

/* ── 01 masthead ────────────────────────────────────────────────────── */
.mast {
  min-height: calc(100svh - var(--head-h));
  display: flex;
  flex-direction: column;
  padding-block: clamp(26px, 5vh, 56px) clamp(22px, 4vh, 44px);
  padding-inline: max(var(--gut), calc((100% - var(--inner)) / 2));
}
.mast-meta {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--grey);
}
.mast-meta .xh { margin-left: auto; }

.mast-title {
  margin-top: clamp(22px, 6vh, 72px);
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 125, 'wght' 800;
  font-size: clamp(3.2rem, 13vw, 12rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.print-line { display: block; overflow: hidden; }
.print-line > span { display: block; }

.mast-rule {
  height: 3px;
  background: var(--ink);
  margin-top: clamp(20px, 4vh, 42px);
  transform-origin: left center;
}

.mast-foot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  column-gap: var(--gut);
  row-gap: 28px;
  margin-top: clamp(24px, 4.5vh, 50px);
}
.mast-lede {
  max-width: 42ch;
  font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.55rem);
  line-height: 1.45;
}
.mast-ticket { align-self: start; }
.ticket-row {
  display: grid;
  gap: 3px;
  padding-block: 10px;
  border-top: 1px solid var(--rule);
}
.ticket-row:last-child { border-bottom: 1px solid var(--rule); }
.ticket-k {
  color: var(--grey);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ticket-row > span:last-child {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 105, 'wght' 600;
  font-size: 0.95rem;
}

.mast-base {
  margin-top: auto;
  padding-top: clamp(28px, 5vh, 56px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 0.25s;
}
.scroll-cue:hover { color: var(--cyan-text); }
.scroll-cue svg { transition: transform 0.3s; }
.scroll-cue:hover svg { transform: translateY(4px); }

/* ── 02 work index ──────────────────────────────────────────────────── */
.index {
  position: relative;
  padding-block: var(--pad-y);
  padding-inline: max(var(--gut), calc((100% - var(--inner)) / 2));
  scroll-margin-top: var(--head-h);
}
.work-list {
  margin-top: clamp(34px, 6vh, 60px);
  border-top: 2px solid var(--ink);
}
.work-row { border-bottom: 1px solid var(--rule); }
.work-row a {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, auto) 5rem;
  column-gap: clamp(14px, 2.5vw, 36px);
  align-items: baseline;
  padding-block: clamp(18px, 2.6vh, 30px);
  text-decoration: none;
}
.work-no { color: var(--grey); transition: color 0.3s; }
.work-name {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 118, 'wght' 760;
  font-size: clamp(1.5rem, 3.4vw, 2.9rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: color 0.3s, transform 0.35s var(--ease, ease);
}
.work-field {
  color: var(--body-fg);
  font-size: 1.02rem;
}
.work-year { color: var(--grey); text-align: right; }
.work-row a:hover .work-name { color: var(--cyan-text); transform: translateX(10px); }
.work-row a:hover .work-no { color: var(--cyan-text); }

.index-preview {
  position: absolute;
  top: 0; left: 0;
  width: min(360px, 26vw);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  box-shadow: 0 22px 48px rgba(25, 22, 18, 0.22);
  outline: 7px solid var(--proof);
}
.index-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── 03–06 project bands ────────────────────────────────────────────── */
.band {
  position: relative;
  --bg: var(--paper);
  --fg: var(--ink);
  --dim: var(--grey);
  --line: var(--rule);
  --cyan-text: #005E96;
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--pad-y);
  padding-inline: max(var(--gut), calc((100% - var(--inner)) / 2));
  scroll-margin-top: var(--head-h);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 36px);
  row-gap: clamp(30px, 5vh, 60px);
}

.band-x {
  position: absolute;
  width: 22px;
  height: 22px;
  color: var(--fg);
  opacity: 0.8;
}
.band-x::before, .band-x::after { content: ""; position: absolute; background: currentColor; }
.band-x::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.band-x::after  { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); }
.band-x--tl { top: 16px; left: 16px; }
.band-x--br { bottom: 16px; right: 16px; }

.band-head {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--gut);
  row-gap: 28px;
  align-items: start;
}
.band-no { color: var(--cyan-text); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; }
.band-titles { position: relative; }

.band-chip { display: inline-flex; margin-top: 14px; box-shadow: 0 0 0 1px var(--line); }
.band-chip i { display: block; width: 30px; height: 30px; }
.chip--threshold i:nth-child(1) { background: var(--ink); }
.chip--threshold i:nth-child(2) { background: var(--cyan); }
.chip--cadence i:nth-child(1)   { background: var(--proof); }
.chip--cadence i:nth-child(2)   { background: var(--cyan); }
.chip--harmattan i:nth-child(1) { background: var(--kraft); }
.chip--harmattan i:nth-child(2) { background: var(--oxblood); }
.chip--atlas i:nth-child(1)     { background: var(--paper); }
.chip--atlas i:nth-child(2)     { background: var(--cyan); }

.band-title {
  margin-top: 16px;
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 120, 'wght' 800;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.spec { align-self: start; }
.spec > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  column-gap: 16px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
}
.spec dt {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 0.25em;
}
.spec dd {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 105, 'wght' 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* cadence waveform divider */
.wave {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: flex-end;
  gap: clamp(4px, 0.7vw, 9px);
  height: clamp(56px, 8vh, 92px);
}
.wave i { display: block; flex: 1 1 0; max-width: 30px; height: var(--h); background: var(--cyan); }
.wave { justify-content: space-between; }
.wave i:nth-child(4n + 2) { background: var(--proof); }

.band-fig { grid-row: 3; grid-column: 1 / span 7; margin: 0; }
.band-body { grid-row: 3; grid-column: 8 / -1; align-self: start; }
.band--swap .band-fig { grid-column: 6 / -1; }
.band--swap .band-body { grid-column: 1 / span 5; }

/* supporting application plate: full-width exhibit under the case study */
.band-app { grid-row: 4; grid-column: 1 / -1; margin: 0; overflow: hidden; }

.band-fig { overflow: hidden; }
.band-fig img, .band-app img { width: 100%; background: var(--line); }
.band-cap {
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.72rem;
}
.band-body p { color: var(--fg); }
.band-body p + p { margin-top: 1em; }
.band-note {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.72rem;
}

.band--threshold { --bg: var(--proof); }
.band--cadence {
  --bg: var(--ink);
  --fg: var(--proof);
  --dim: #97917f;
  --line: #3A352E;
  --cyan-text: var(--cyan);
}
.band--harmattan { --bg: #EEE6D5; }
.band--atlas {
  background-image:
    repeating-linear-gradient(to right, transparent 0 79px, rgba(207, 201, 187, 0.5) 79px 80px),
    repeating-linear-gradient(to bottom, transparent 0 79px, rgba(207, 201, 187, 0.5) 79px 80px);
}
.band--cadence .wave i:nth-child(4n + 2) { background: var(--proof); }

/* ── 07 services ────────────────────────────────────────────────────── */
.services {
  background: var(--proof);
  padding-block: var(--pad-y);
  padding-inline: max(var(--gut), calc((100% - var(--inner)) / 2));
  scroll-margin-top: var(--head-h);
}
.svc {
  margin-top: clamp(34px, 6vh, 60px);
  border-top: 2px solid var(--ink);
}
.svc li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 4fr) minmax(0, 6fr);
  column-gap: var(--gut);
  row-gap: 6px;
  align-items: baseline;
  padding-block: clamp(20px, 3vh, 32px);
  border-bottom: 1px solid var(--rule);
}
.svc-no { color: var(--cyan-text); }
.svc h3 {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 110, 'wght' 720;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
.svc li:hover h3 { color: var(--cyan-text); }
.svc p { color: var(--body-fg); max-width: 58ch; font-size: 1.05rem; }

/* ── 08 studio ──────────────────────────────────────────────────────── */
.studio {
  background: var(--paper);
  padding-block: var(--pad-y);
  padding-inline: max(var(--gut), calc((100% - var(--inner)) / 2));
  scroll-margin-top: var(--head-h);
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 76px);
  row-gap: 40px;
  margin-top: clamp(34px, 6vh, 60px);
}
.studio-photos { display: grid; gap: clamp(20px, 3vw, 36px); align-content: start; }
.ph { margin: 0; }
.ph img { width: 100%; background: var(--rule); }
.ph figcaption { margin-top: 8px; color: var(--grey); font-size: 0.72rem; }

.studio-prose .studio-lede {
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.45;
}
.studio-prose p + p { margin-top: 1em; }
.studio-prose p { color: var(--body-fg); }
.studio-prose .studio-lede { color: var(--ink); }

.seq-title {
  margin-top: clamp(30px, 5vh, 46px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--grey);
}
.seq { margin-top: 14px; border-top: 2px solid var(--ink); }
.seq li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: 16px;
  padding-block: 13px;
  border-bottom: 1px solid var(--rule);
}
.seq-year { grid-column: 1; grid-row: 1 / span 2; color: var(--cyan-text); padding-top: 0.3em; font-size: 0.74rem; }
.seq-what {
  grid-column: 2; grid-row: 1;
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 105, 'wght' 700;
  font-size: 1.02rem;
}
.seq-where { grid-column: 2; grid-row: 2; color: #4A463F; font-size: 0.95rem; }
.seq-ed { margin-top: 14px; color: var(--grey); font-size: 0.74rem; }

/* toolkit: software, the way the spec lists materials */
.toolkit { margin-top: 14px; border-top: 2px solid var(--ink); }
.toolkit li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  column-gap: 16px;
  padding-block: 11px;
  border-bottom: 1px solid var(--rule);
}
.tool-k { color: var(--cyan-text); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; padding-top: 0.3em; }
.tool-v {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 105, 'wght' 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ── full-bleed applications strip ──────────────────────────────────── */
.strip { position: relative; margin: 0; background: var(--ink); }
.strip img {
  width: 100%;
  height: clamp(320px, 60vh, 660px);
  object-fit: cover;
  object-position: center 42%;
}
.strip figcaption {
  padding-block: 16px 34px;
  padding-inline: max(var(--gut), calc((100% - var(--inner)) / 2));
  max-width: 60ch;
  color: rgba(247, 245, 240, 0.86);
  font-size: 0.72rem;
}

/* ── 09 contact ─────────────────────────────────────────────────────── */
.contact {
  position: relative;
  background: var(--ink);
  color: var(--proof);
  --cyan-text: var(--cyan);
  --line: #3A352E;
  padding-block: clamp(80px, 14vh, 168px);
  padding-inline: max(var(--gut), calc((100% - var(--inner)) / 2));
  scroll-margin-top: var(--head-h);
}
.contact .sec-no { display: block; color: var(--cyan); margin-bottom: clamp(18px, 4vh, 40px); }
.contact-title {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 125, 'wght' 800;
  font-size: clamp(2.9rem, 9.5vw, 8.2rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.contact-mail {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  margin-top: clamp(28px, 5vh, 56px);
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 108, 'wght' 640;
  font-size: clamp(1.05rem, 0.9rem + 2.2vw, 2.5rem);
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 0.14em;
  transition: color 0.3s, border-color 0.3s;
  word-break: break-word;
}
.contact-mail:hover { color: var(--proof); border-color: var(--proof); }
.contact-mail svg { align-self: center; }
.contact-note { margin-top: 26px; max-width: 52ch; color: #A8A297; font-size: 1.08rem; }
.contact-meta { margin-top: 16px; color: #8E887D; }

/* ── colophon ───────────────────────────────────────────────────────── */
.colophon {
  background: var(--paper);
  border-top: 2px solid var(--ink);
  padding-block: clamp(28px, 5vh, 48px);
  padding-inline: max(var(--gut), calc((100% - var(--inner)) / 2));
}
.colophon > .cbar { margin-bottom: clamp(22px, 4vh, 36px); }
.colo-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  column-gap: var(--gut);
  row-gap: 28px;
}
.colo-note { color: var(--body-fg); font-size: 0.95rem; max-width: 56ch; }
.colo-note a { color: var(--cyan-text); text-underline-offset: 3px; }
.colo-nav { display: flex; flex-direction: column; gap: 8px; }
.colo-nav a {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 105, 'wght' 620;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s;
}
.colo-nav a:hover { color: var(--cyan-text); }
.colo-legal { color: var(--grey); font-size: 0.72rem; text-align: right; }

/* ── motion: initial states (JS + no reduced-motion only) ───────────── */
.js.motion [data-reveal] { opacity: 0; }
.js.motion [data-reveal="img"] { opacity: 1; clip-path: inset(0 0 100% 0); }
.js.motion [data-print] { opacity: 0; }
.js.motion .print-line > span { transform: translateY(110%); }
/* if keyboard focus lands inside a not-yet-revealed block, show it */
.js.motion [data-reveal]:focus-within { opacity: 1 !important; clip-path: none !important; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --rail: 0px; }
  .trim { display: none; }
  .skip-link:focus { left: 8px; }
}

@media (max-width: 900px) {
  .band-head { grid-template-columns: 1fr; }
  .band-fig, .band--swap .band-fig { grid-column: 1 / -1; grid-row: auto; }
  .band-body, .band--swap .band-body { grid-column: 1 / -1; grid-row: auto; }
  .band-app { grid-row: auto; }
  .wave { grid-row: auto; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-photos { grid-template-columns: 1fr 1fr; }
  .mast-foot { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .work-row a {
    grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    grid-template-areas: "no name year" ". field field";
    row-gap: 5px;
  }
  .work-no { grid-area: no; }
  .work-name { grid-area: name; }
  .work-field { grid-area: field; color: var(--grey); font-size: 0.92rem; }
  .work-year { grid-area: year; }

  .index-preview { display: none; }

  .svc li { grid-template-columns: 3rem minmax(0, 1fr); }
  .svc p { grid-column: 2; }

  .sec-head { grid-template-columns: 3rem minmax(0, 1fr); }
  .colo-grid { grid-template-columns: 1fr; }
  .colo-legal { text-align: left; }
  .studio-photos { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .sh-role { display: none; }
  /* the header must fit narrow phones without clipping: shrink type and
     gaps (fixed-position overflow never shows up in scrollWidth) */
  .site-head { gap: 9px; }
  .site-nav { gap: 9px; }
  .site-nav a { font-size: 0.65rem; letter-spacing: 0.04em; }
  .sh-name { font-size: 0.68rem; }
  .mast-meta { flex-wrap: wrap; gap: 12px 22px; }
  .mast-meta .xh { margin-left: 0; }
  .spec > div { grid-template-columns: 1fr; row-gap: 2px; }
  .toolkit li { grid-template-columns: 1fr; row-gap: 2px; }
  .mast-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-head { padding-inline: 14px; }
}

@media (max-width: 380px) {
  .site-head { gap: 6px; padding-inline: 12px; }
  .site-nav { gap: 7px; }
  .site-nav a { font-size: 0.6rem; letter-spacing: 0.03em; }
  .sh-name { font-size: 0.62rem; }
}

/* ── no hover devices: no cursor-following preview anyway ───────────── */
@media (hover: none) {
  .index-preview { display: none; }
}

/* ── reduced motion: belt and braces beyond the .motion gate ────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .work-row a:hover .work-name { transform: none; }
}

/* ── print: the site behaves like the sheet it is drawn as ──────────── */
@media print {
  .trim, .site-head, .index-preview, .scroll-cue, .skip-link { display: none !important; }
  body { padding: 0; background: #fff; }
  .band, .services, .studio, .contact, .colophon, .mast, .index {
    background: #fff !important;
    color: #000 !important;
    break-inside: avoid;
  }
  .band { --fg: #000; --dim: #555; --line: #bbb; --cyan-text: #005E96; }
  .contact { --cyan-text: #005E96; }
  .contact-mail, .contact .sec-no { color: #005E96 !important; border-color: #005E96 !important; }
  .contact-note, .contact-meta, .band-body p { color: #000 !important; }
  img { opacity: 1 !important; clip-path: none !important; break-inside: avoid; }
  .strip { display: none; }
}
