/* ==========================================================================
   braxtonelmer.com
   Type: IM Fell English (name, headings) · Archivo (body) · IBM Plex Mono (labels)
   ========================================================================== */

:root {
  --bg: #F2F6F8;
  --bg-edge: #D8E0E6;
  --film: #101634;
  --film-edge: #05071A;
  --text: #0A0F26;
  --dim: rgba(10, 15, 38, .66);
  --faint: rgba(10, 15, 38, .55);
  --rule: rgba(10, 15, 38, .14);
  --grid: rgba(10, 15, 38, .045);
  --bar-bg: rgba(242, 246, 248, .96);
  --bar-bg-0: rgba(242, 246, 248, 0);
  --paper-0: rgba(247, 250, 251, 0);
  --glow-1: rgba(255, 255, 255, .95);
  --glow-2: rgba(187, 169, 228, .28);
  --on-solid: #FFFFFF;
  --mount-text: rgba(10, 15, 38, .64);
  --shadow: rgba(10, 15, 38, .22);
  --accent: #6F58BD;      /* hovers, buttons, progress, case pages */
  --elmer: #5B6472;       /* graphite: the italic "Elmer" in the hero */
  --ice: #3A76AB;
  --edge: #BBA9E4;        /* film-edge labels, top */
  --edge-2: #A8CBEA;      /* film-edge labels, bottom */
  --mount: #FBFBFA;
  --mount-edge: #E3E6E8;
  --paper: #F7FAFB;

  --display: "IM Fell English", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 60px);
  --maxw: 1480px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 40px 40px fixed,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 40px 40px fixed,
    radial-gradient(120% 80% at 50% 30%, var(--bg) 40%, var(--bg-edge) 100%) fixed,
    var(--bg);
}
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-solid); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.lab {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- top bar ---------- */
.bar-wrap {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: linear-gradient(var(--bar-bg) 55%, var(--bar-bg-0));
  transition: transform .45s var(--ease);
}
.bar-wrap.hide { transform: translateY(-110%); }
.bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 18px;
}
.brand { font-family: var(--display); font-size: 21px; text-decoration: none; white-space: nowrap; }
.bar-right { display: flex; align-items: center; gap: 22px; }
.bar nav { display: flex; gap: 26px; }
.bar nav a { position: relative; text-decoration: none; color: var(--dim); transition: color .2s; }
.bar nav a:hover, .bar nav a.active { color: var(--text); }
.bar nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease);
}
.bar nav a.active::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 96px) clamp(64px, 8vw, 110px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 4vw, 72px); align-items: center;
}
.hero-top { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--dim); margin-bottom: clamp(18px, 3vw, 30px); }
.name {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(60px, 9vw, 150px); line-height: .88; letter-spacing: -.015em;
}
.name span { display: block; }
.name .l2 { font-style: italic; color: var(--elmer); padding-left: clamp(28px, 10vw, 180px); }
.lede {
  margin: 30px 0 0; max-width: 30ch;
  font-family: var(--display); font-style: italic;
  font-size: clamp(22px, 2.1vw, 30px); line-height: 1.3; color: var(--text);
  text-wrap: pretty;
}
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 30px 0 0; color: var(--dim); }
.facts dt { color: var(--text); }
.facts dd { margin: 0; }

.portrait-col { position: relative; display: flex; justify-content: center; align-items: center; }
/* soft backlight behind the photo, like a lit patch of the table */
.portrait-col::before {
  content: ""; position: absolute; inset: -8% -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow-1), var(--glow-2) 55%, transparent 100%);
}
.portrait {
  position: relative; z-index: 1; margin: 0;
  /* scales with the viewport width but never taller than the screen */
  width: clamp(240px, min(34vw, 64svh), 500px); max-width: 100%;
  background: var(--mount); border-radius: 10px;
  padding: clamp(12px, 1.2vw, 18px) clamp(12px, 1.2vw, 18px) clamp(38px, 3.4vw, 50px);
  box-shadow:
    0 0 0 1px var(--mount-edge),
    var(--sx, 0px) var(--sy, 18px) 44px var(--shadow),
    0 2px 6px rgba(10, 15, 38, .08);
  transform: rotate(-2deg); will-change: transform;
}
.portrait-win { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: #DDE1E8; }
.portrait-win img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 40%;
  transform: scale(1.4); transform-origin: 50% 42%;
}
.portrait-lab {
  position: absolute; left: clamp(12px, 1.2vw, 18px); right: clamp(12px, 1.2vw, 18px); bottom: clamp(13px, 1.2vw, 17px);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: clamp(10px, .8vw, 11.5px); letter-spacing: .08em; text-transform: uppercase; color: var(--mount-text);
}

/* ---------- section heads ---------- */
.sec { padding-block: clamp(72px, 10vw, 140px); }
.shead { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: baseline; margin-bottom: clamp(26px, 4vw, 44px); }
.shead h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.shead h2 em { color: var(--ice); }
.shead hr { margin: 0; border: 0; border-top: 1px solid var(--rule); align-self: center; }
.shead .lab { color: var(--dim); }

/* ---------- reel (pinned horizontal film strip) ---------- */
.reel { position: relative; }
.reel-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.strip, .caps {
  display: flex; width: max-content; will-change: transform;
  /* line the first frame up with the page content on very wide screens */
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
}
.film { display: flex; position: relative; padding: 46px 0; background: linear-gradient(180deg, var(--film-edge), var(--film) 18%, var(--film) 82%, var(--film-edge)); }
.film::before, .film::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px; opacity: .85; border-radius: 2px;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(238, 240, 248, .82) 9px 20px, transparent 20px 30px);
}
.film::before { top: 8px; }
.film::after { bottom: 8px; }
.frame { position: relative; width: min(60vw, 640px); padding-inline: 16px; flex: none; }
.frame + .frame { border-left: 2px solid var(--film-edge); }
.pic {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden;
  background: #000; border: 0; padding: 0; border-radius: 2px; cursor: pointer;
  transition: transform .45s var(--ease);
}
.pic .art { position: absolute; top: 0; left: -8%; width: 116%; height: 100%; display: block; object-fit: cover; will-change: transform; transition: filter .3s; }
.pic:hover { transform: translateY(-4px); }
.pic:hover .art { filter: brightness(1.08); }
.pic .open {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(238, 240, 248, .92); color: var(--text); padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease);
}
.pic:hover .open, .pic:focus-visible .open { opacity: 1; transform: none; }
.edge {
  position: absolute; top: -21px; left: 16px; right: 16px; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--edge);
}
.edge.b { top: auto; bottom: -21px; color: var(--edge-2); }
.cap {
  width: min(60vw, 640px); flex: none; padding: 22px 16px 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline;
  transition: opacity .35s;
}
.cap h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1; }
.cap .lab { color: var(--dim); }
.cap p { grid-column: 1 / -1; margin: 6px 0 0; max-width: 50ch; color: var(--dim); text-wrap: pretty; }
.cap button {
  grid-column: 1 / -1; justify-self: start; margin-top: 8px; padding: 0 0 2px;
  background: none; border: 0; border-bottom: 1px solid var(--accent); color: var(--text); cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
}
.reel-foot { margin-top: 24px; display: flex; align-items: center; gap: 16px; color: var(--dim); }
.counter { font-family: var(--display); font-size: 26px; color: var(--text); letter-spacing: 0; min-width: 3.4ch; }
.prog { flex: 1; max-width: 260px; height: 1px; background: var(--rule); position: relative; }
.prog span { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--accent); }

/* ---------- archive ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 26px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--text); cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.chip sup { color: var(--dim); margin-left: 4px; font-size: 9px; }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--on-solid); }
.chip[aria-pressed="true"] sup { color: inherit; opacity: .7; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index li { border-bottom: 1px solid var(--rule); transition: opacity .3s; }
.index li.fade { opacity: 0; }
.index button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding-block: clamp(14px, 2vw, 24px);
}
.index button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.index .yr { color: var(--faint); }
.index .title {
  display: block; margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(36px, 6vw, 92px); line-height: 1;
  transition: transform .6s var(--ease), color .3s;
}
.index button:hover .title, .index button:focus-visible .title { font-style: italic; color: var(--accent); transform: translateX(.2em); }
.index .cat { color: var(--dim); text-align: right; }
.index .thumb { display: none; }

.preview {
  position: fixed; left: 0; top: 0; z-index: 50; width: clamp(240px, 22vw, 340px); aspect-ratio: 4 / 5;
  pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .25s; border-radius: 2px; background: var(--film);
  box-shadow: 0 30px 60px rgba(10, 15, 38, .3); outline: 1px solid rgba(10, 15, 38, .15); outline-offset: 6px;
}
.preview.on { opacity: 1; }
.preview .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.preview .art.on { opacity: 1; }
.pv-lab {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: linear-gradient(transparent, rgba(5, 7, 26, .75)); color: #EEF0F8;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- case study sheet ---------- */
.case-back { position: fixed; inset: 0; z-index: 80; background: rgba(10, 15, 38, .35); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.case-back.on { opacity: 1; pointer-events: auto; }
.case {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; height: min(92svh, 980px);
  background: var(--paper); border-radius: 14px 14px 0 0; box-shadow: 0 -20px 60px rgba(10, 15, 38, .25);
  transform: translateY(104%); transition: transform .6s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
}
.case.on { transform: none; }
.case-top {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-block: 16px; background: linear-gradient(var(--paper) 70%, var(--paper-0));
  touch-action: none;
}
.grab { width: 44px; height: 4px; border-radius: 2px; background: var(--rule); position: absolute; left: 50%; top: 7px; translate: -50% 0; }
.case.dragging { transition: none; }
.case-nav { display: flex; gap: 8px; }
.cbtn {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--text); cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
}
.cbtn:hover { border-color: var(--accent); color: var(--accent); }
.case-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; margin-top: 10px; }
.case-art {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px; background: var(--film); margin: 13px;
  box-shadow: 0 0 0 12px var(--mount), 0 0 0 13px var(--mount-edge), 0 20px 40px rgba(10, 15, 38, .15);
}
.case-art .art { width: 100%; height: 100%; display: block; object-fit: cover; }
.case-kicker { margin: 0 0 10px; color: var(--accent); }
.case h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 110px); line-height: .9; }
.case .meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0 0; color: var(--dim); }
.case .meta dt { color: var(--text); }
.case .meta dd { margin: 0; }
.case-links { margin-top: 22px; }
.case-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 22px; margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--rule); padding-top: 26px; }
.case-gallery figure { margin: 0; display: grid; gap: 10px; }
.case-gallery a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule), 0 14px 30px rgba(10, 15, 38, .12); transition: transform .4s var(--ease); }
.case-gallery a:hover { transform: translateY(-3px); }
.case-gallery img { display: block; width: 100%; height: auto; }
.case-gallery figcaption { color: var(--dim); }
.case-body {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--rule); padding-top: 24px;
}
.case-body h4 { margin: 0 0 8px; font-weight: 500; color: var(--accent); }
.case-body p { margin: 0; text-wrap: pretty; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.about p { margin: 0 0 1.1em; max-width: 56ch; text-wrap: pretty; }
.about .about-lead { font-family: var(--display); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.2; }
.skills { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.skills li { display: flex; justify-content: space-between; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--rule); }
.skills .lab { color: var(--dim); }
.log { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.log li { display: grid; grid-template-columns: 8rem 1fr; gap: 14px; }
.log .lab { color: var(--dim); padding-top: 3px; }

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--text); padding-top: clamp(28px, 4vw, 48px); display: grid; gap: 24px; }
.contact .lab { color: var(--dim); }
.email { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(34px, 7.4vw, 120px); line-height: 1; overflow-wrap: anywhere; user-select: all; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--text); cursor: pointer; text-decoration: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--text); color: var(--on-solid); border-color: var(--text); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-solid); }
footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 40px; color: var(--faint); border-top: 1px solid var(--rule); margin-top: clamp(24px, 4vw, 48px); }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--accent); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--text); }
.service { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 4px 18px; padding: clamp(22px, 3vw, 34px) clamp(0px, 2vw, 28px) clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--rule); }
.service:nth-child(odd) { border-right: 1px solid var(--rule); }
.service:nth-child(even) { padding-left: clamp(18px, 3vw, 40px); }
.service .no { color: var(--faint); padding-top: 10px; }
.service h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; }
.service p { grid-column: 2; margin: 6px 0 0; max-width: 46ch; color: var(--dim); text-wrap: pretty; }
.services-note { margin: 26px 0 0; font-family: var(--display); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); }
.services-note a { color: var(--accent); }

/* ---------- stack (hidden until filled in projects.js) ---------- */
.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px 28px; margin-top: 30px; }
.stack h4 { margin: 0 0 8px; color: var(--dim); font-weight: 400; }
.stack ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

/* ---------- project enquiry ---------- */
.enquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 8px; padding: clamp(20px, 3vw, 32px); background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; }
.enquiry h3 { grid-column: 1 / -1; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1; }
.enquiry .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; padding: 11px 12px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.enquiry .row { grid-column: 1 / -1; align-items: center; }
.form-note { color: var(--dim); font-size: 14px; }

/* ---------- reel dots (phones) ---------- */
.reel-dots { display: none; justify-content: center; gap: 8px; margin-top: 14px; }
.reel-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); transition: background .3s, transform .3s; }
.reel-dots span.on { background: var(--accent); transform: scale(1.3); }

/* ---------- cursor label over reel frames ---------- */
.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity .2s;
  padding: 6px 12px; border-radius: 999px; background: var(--text); color: var(--on-solid);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.cursor-tag.on { opacity: 1; }
.has-cursor-tag .pic { cursor: none; }
.has-cursor-tag .pic .open { display: none; }


/* ---------- page intro ---------- */
.intro .hero-top, .intro .name span, .intro .lede, .intro .facts, .intro .portrait-col {
  animation: rise .9s var(--ease) both;
}
.intro .name span:nth-child(1) { animation-delay: .08s; }
.intro .name span:nth-child(2) { animation-delay: .16s; }
.intro .lede { animation-delay: .26s; }
.intro .facts { animation-delay: .34s; }
.intro .portrait-col { animation-delay: .2s; animation-duration: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
/* tablets and small laptops: keep two columns, give the photo a bit more room */
@media (max-width: 1100px) and (min-width: 721px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .name { font-size: clamp(56px, 9.5vw, 110px); }
  .portrait { width: clamp(240px, min(38vw, 60svh), 420px); }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
/* phones and narrow tablets: stack, photo full and centred */
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-col { margin-top: 12px; }
  .portrait { width: min(84vw, 420px); transform: rotate(-1.5deg); }
  .name { font-size: clamp(56px, 17vw, 110px); }
}
@media (max-width: 900px) {
  .about, .case-hero { grid-template-columns: 1fr; }
  .reel { height: auto !important; }
  .reel-pin { position: relative; height: auto; padding-block: 20px; }
  .reel-scroll { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .strip, .caps { transform: none !important; }
  .frame, .cap { width: 82vw; scroll-snap-align: start; }
  .cap { opacity: 1 !important; grid-template-columns: 1fr; }
  .reel-foot { display: none; }
  .index button { grid-template-columns: minmax(0, 1fr) auto; }
  .index .yr { display: none; }
  .index .thumb { display: block; grid-column: 1 / -1; width: 100%; height: 110px; object-fit: cover; border-radius: 2px; background: var(--film); }
  .case-body { grid-template-columns: 1fr; }
  .reel-dots { display: flex; }
  .services { grid-template-columns: 1fr; }
  .service:nth-child(odd) { border-right: 0; }
  .service:nth-child(even) { padding-left: 0; }
  .enquiry { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .shead { grid-template-columns: auto 1fr; }
  .shead .lab { display: none; }
  .log li { grid-template-columns: 1fr; gap: 0; }
  .bar nav { gap: 14px; }
  .bar nav a:nth-child(2), .bar nav a:nth-child(3) { display: none; }
  .bar-right { gap: 12px; }

  .brand { font-size: 19px; }
}
@media (hover: none) { .preview, .cursor-tag { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .index .title, .case, .case-back, .cap, .index li, .pic, .bar-wrap { transition: none; }
  .intro .hero-top, .intro .name span, .intro .lede, .intro .facts, .intro .portrait-col { animation: none; }
}
