:root {
  --bg: #000;
  --fg: #fff;
  --muted: #aeaca8;
  --line: #1c1c1c;
  --gap: 3px;
  --pad: 16px;
  --display: "Inter", "Inter Display", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--fg); color: var(--bg); }

/* Small labels — same typeface as the headings, just smaller (Title Case, as written) */
.mono {
  font-family: var(--display);
  font-variation-settings: "opsz" 32;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Section headings — "Projects" and "AI Film Producer & Creative Director"
   all share one size, weight and finish */
.title, .statement {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
  font-variation-settings: "opsz" 32;
  background: linear-gradient(180deg, #fff 35%, #a1a1a6 130%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* Extra room so letter edges/descenders aren't clipped by the gradient fill
     (negative margins cancel it out, so the layout doesn't shift) */
  padding: .12em .1em;
  margin-left: -.1em; margin-right: -.1em;
}
.title { margin-top: -.12em; margin-bottom: -.12em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  height: 52px;
  padding: 0 var(--pad);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: border-color .4s;
  /* Own compositing layer: the browser can slide the glass over the page smoothly
     without repainting the rest of the page on every scroll frame */
  transform: translateZ(0);
  isolation: isolate;
}
.logo {
  position: fixed; top: 6px; left: var(--pad); z-index: 51;
  display: flex; align-items: center; height: 40px;
  transition: opacity .2s;
}
.logo img { height: 40px; width: auto; }
.logo:hover img { filter: brightness(1.15); }   /* no opacity change, for the same reason as the links */

/* Desktop page links */
.nav, .menu-btn, .search { pointer-events: auto; }

/* Header search */
/* Header search — Apple-style frosted pill */
.search {
  --ease: cubic-bezier(.32,.72,0,1);
  display: flex; align-items: center; gap: 7px;
  height: 30px;
  padding: 0 8px 0 11px;
  border-radius: 999px;
  cursor: text;
  background: rgba(255,255,255,.08);
  border: .5px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.15),
    0 1px 2px rgba(0,0,0,.25);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.search:hover { background: rgba(255,255,255,.11); }
.search:focus-within {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.32);
  box-shadow:
    0 0 0 3.5px rgba(255,255,255,.12),
    inset 0 1px 0 rgba(255,255,255,.14),
    0 4px 14px rgba(0,0,0,.3);
}
.search svg.icon {
  width: 13px; height: 13px; flex: none;
  fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.7; stroke-linecap: round;
  transition: stroke .3s var(--ease);
}
.search:focus-within svg.icon { stroke: rgba(255,255,255,.85); }
.search input {
  width: 130px;
  height: 100%; align-self: stretch; padding: 0; cursor: text;
  background: none; border: 0; outline: 0;
  color: #fff; font: inherit; letter-spacing: inherit;
  caret-color: #fff;
  transition: width .45s var(--ease);
}
.search input:focus { width: 190px; }
.search input::placeholder { color: rgba(255,255,255,.45); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Clear button — appears once there's text */
.search-clear {
  width: 16px; height: 16px; flex: none;
  display: grid; place-items: center;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255,255,255,.32);
  opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .2s var(--ease), transform .3s var(--ease), background .2s;
}
.search-clear svg { width: 7px; height: 7px; stroke: #1c1c1e; stroke-width: 2; stroke-linecap: round; }
.search-clear:hover { background: rgba(255,255,255,.5); }
.search.has-value .search-clear { opacity: 1; transform: scale(1); pointer-events: auto; }

.no-results { padding: 40px var(--pad) 80px; color: var(--muted); text-align: center; }
/* Centred in the header (tiger stays left; on phones the menu button stays right) */
.nav {
  display: flex; gap: 32px;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
/* Hover dims the text colour (not opacity) so the glass header behind it isn't re-rendered */
.nav a { font-size: 14px; font-weight: 700; color: #fff; transition: color .2s; }
.nav a:hover { color: rgba(255,255,255,.6); }

/* Hamburger: mobile only (shown in the media query below) */
/* Apple-style: two short, thin lines in a generous 40px tap area.
   Lines are 17px wide, 1.2px thick, 5px apart — each moves (5 + 1.2) / 2 = 3.1px
   to meet in the middle as it rotates into the ✕. */
.menu-btn {
  display: none;
  justify-self: end;
  width: 40px; height: 40px;
  margin-right: -11.5px;                 /* keeps the lines' right edge aligned with the page margin */
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span {
  display: block; width: 17px; height: 1.2px; border-radius: 1px;
  background: #fff;
  transition: transform .45s cubic-bezier(.77,0,.18,1);
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.1px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child  { transform: translateY(-3.1px) rotate(-45deg); }

/* Mobile menu: the header's glass extends downward into a compact panel */
.menu {
  display: none;
  position: fixed; top: 52px; left: 0; right: 0; z-index: 49;
  flex-direction: column; gap: 2px;
  padding: 10px var(--pad) 26px;
  /* Same glass as the header so the two read as one sheet */
  background: rgba(18,18,20,.38);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border-bottom: 1px solid rgba(255,255,255,.14);
  border-radius: 0 0 24px 24px;
  /* Unfolds from the header's bottom edge */
  clip-path: inset(0 0 100% 0 round 0 0 24px 24px);
  visibility: hidden;
  transition: clip-path .5s cubic-bezier(.32,.72,0,1), visibility 0s linear .5s;
}
.menu.is-open {
  clip-path: inset(0 0 0 0 round 0 0 24px 24px);
  visibility: visible;
  transition: clip-path .55s cubic-bezier(.32,.72,0,1), visibility 0s;
}
/* While open, drop the header's bottom edge so header + menu look continuous */
body.menu-open .site-header { border-bottom-color: transparent; box-shadow: none; }

/* Header glass: frosted, slightly tinted, and exactly the size of the header
   (a larger layer and a heavier blur made scrolling stutter). Apple's recipe. */
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: rgba(22,22,24,.42);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  pointer-events: none;
}

.menu-link {
  font-size: 32px; font-weight: 500;
  letter-spacing: -0.04em; line-height: 1.25;
  font-variation-settings: "opsz" 32;
  color: #fff;
  width: fit-content;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s ease, transform .45s cubic-bezier(.32,.72,0,1);
}
.menu.is-open .menu-link { opacity: 1; transform: none; }
.menu.is-open .menu-link:nth-child(1) { transition-delay: .12s; }
.menu.is-open .menu-link:nth-child(2) { transition-delay: .18s; }
.menu.is-open .menu-link:nth-child(3) { transition-delay: .24s; }
.menu-link:active { opacity: .6; }

/* Invisible layer below the menu: tap it to close (no dimming) */
.menu-scrim {
  position: fixed; inset: 0; z-index: 48;
  background: transparent;
  visibility: hidden;
}
body.menu-open .menu-scrim { visibility: visible; }

/* ---------- Home (simple Apple-style landing) ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(110px, 16vh, 170px) var(--pad) 64px;
  text-align: center;
}
.hero-name {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700; letter-spacing: -0.05em; line-height: 1.02;
  font-variation-settings: "opsz" 32;
  background: linear-gradient(180deg, #fff 35%, #a1a1a6 130%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding: .1em .1em; margin: -.1em -.1em;      /* room so letter edges aren't clipped */
}
.hero-role {
  margin-top: 14px;
  font-size: clamp(19px, 2vw, 26px); font-weight: 500;
  letter-spacing: -0.02em; color: #86868b;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 34px;
}
.btn-primary {
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 24px;
  border-radius: 999px;
  background: #f5f5f7; color: #000;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: background .25s, transform .2s cubic-bezier(.32,.72,0,1);
}
.btn-primary:hover { background: #fff; }
.btn-primary:active { transform: scale(.97); }
.btn-link {
  font-size: 16px; font-weight: 500; color: #2997ff;     /* Apple's link blue */
  transition: opacity .2s;
}
.btn-link:hover { opacity: .75; text-decoration: underline; text-underline-offset: 3px; }
.btn-link span { margin-left: 2px; }

/* One still frame from the latest work — plays only when clicked */
.hero-card {
  position: relative;
  width: min(1080px, 100%);
  margin: clamp(48px, 7vh, 80px) 0 0;
  aspect-ratio: 2206 / 946;
  border-radius: 24px;
  overflow: hidden;
  background: #0b0b0c;
  cursor: pointer;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.6);
}
.hero-card video { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.hero-card::after {                                   /* gentle shade for the caption */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 40%);
}
.hero-play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 64px; height: 64px; border-radius: 50%;
  translate: -50% -50%;
  display: grid; place-items: center;
  background: rgba(30,30,32,.45);
  border: .5px solid rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  transition: transform .35s cubic-bezier(.32,.72,0,1), background .3s;
}
.hero-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.hero-card:hover .hero-play { transform: scale(1.08); background: rgba(60,60,64,.55); }
.hero-caption {
  position: absolute; left: 22px; bottom: 18px; z-index: 2;
  font-size: 14px; color: #fff; text-align: left;
}
.hero-caption span { color: rgba(255,255,255,.7); margin-left: 6px; }

/* Entrance: name, role, buttons and image fade up in sequence, then stay still */
.hero-name, .hero-role, .hero-actions, .hero-card { animation: hero-in 1.2s cubic-bezier(.16,.84,.3,1) both; }
.hero-role    { animation-delay: .12s; }
.hero-actions { animation-delay: .24s; }
.hero-card    { animation-delay: .38s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-name, .hero-role, .hero-actions, .hero-card { animation: none; }
}
/* ---------- Work heading ---------- */
/* "Projects" centred, with the categories as a segmented control beneath it */
.work-head {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 140px var(--pad) 72px;
  text-align: center;
}
.work-head .title { order: 1; }

.filters {
  position: relative;
  display: inline-flex; align-items: center; gap: 2px;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: .5px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  overflow-x: auto; scrollbar-width: none;      /* scrolls sideways on very narrow screens */
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  position: relative; z-index: 1;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--muted);
  transition: color .3s ease;
}
.filter:hover, .filter.is-active { color: var(--fg); }
/* Highlight that glides to the selected category */
.filter-indicator {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 3px rgba(0,0,0,.3);
  transition: transform .5s cubic-bezier(.32,.72,0,1), width .5s cubic-bezier(.32,.72,0,1);
  pointer-events: none;
}

.title { white-space: nowrap; }      /* size/weight shared with the other section headings */
/* Long search terms trim with "…" */
#titleText {
  display: inline-block; vertical-align: bottom;
  max-width: min(80vw, 720px);
  overflow: hidden; text-overflow: ellipsis;
  /* room inside the trim box for the "j" descender and round letter edges */
  padding: .08em .08em .14em; margin: -.08em -.08em -.14em;
  background: inherit; -webkit-background-clip: text; background-clip: text;
}

/* ---------- Grid view ---------- */
/* Social-profile style: a compact, centred grid of justified rows with tight
   gaps — no empty spaces, and every video keeps its own shape. JS positions
   each tile (see layoutGrid in script.js). */
.projects.grid {
  --tile-gap: 4px;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.project { cursor: pointer; position: absolute; top: 0; left: 0; }
.project.is-hidden, .project.is-collapsed { display: none; }

/* Sort-by switch: fade out → swap → ease height → cascade in */
.projects { transition: height .6s cubic-bezier(.32,.72,0,1); }
.projects.is-switching, .projects.is-settling { overflow: hidden; }
.projects.is-switching .project {
  opacity: 0 !important; transform: translateY(14px) !important;
  transition: opacity .3s ease, transform .3s ease !important;
}
.projects.is-settling .project {
  transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
#titleText { transition: opacity .3s ease, filter .3s ease; }
#titleText.is-switching { opacity: 0; filter: blur(4px); }
/* Tiles revealed by "Show more" fade up into place */

/* "Show more" — frosted pill, same family as the search bar */
.show-more-wrap { display: flex; justify-content: center; padding: 48px var(--pad) 8px; }
.show-more {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 32;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: .5px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 1px 2px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  transition: background .3s cubic-bezier(.32,.72,0,1), border-color .3s, transform .2s cubic-bezier(.32,.72,0,1);
}
.show-more[hidden] { display: none; }
.show-more:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); }
.show-more:active { transform: scale(.97); }
.show-more-count { color: #a1a1a6; font-variant-numeric: tabular-nums; }
.media { position: relative; overflow: hidden; background: #0d0d0d; border-radius: 4px; }
.wide .media { aspect-ratio: 16 / 9; }
.tall .media { aspect-ratio: 9 / 16; }
.media video { width: 100%; height: 100%; display: block; object-fit: cover; }
/* Soft dim on idle tiles that lifts on hover. Done with an overlay rather than
   scaling/filtering the video itself, which made playback jitter. */
.media::after {
  content: ""; position: absolute; inset: 0;
  background: #000; opacity: .12;
  transition: opacity .5s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.project:hover .media::after { opacity: 0; }

/* Title + category laid over the bottom of the tile, like a social feed */
.meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  padding: 28px 12px 10px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.meta .name { font-weight: 700; }
.meta .client { font-weight: 400; color: rgba(255,255,255,.7); }

/* ---------- Footer ---------- */
.site-footer { padding: 160px var(--pad) 56px; }
/* Profile — centred, Apple-style statement section */
.profile {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px var(--pad) 160px;
  text-align: center;
}
.statement { margin-bottom: 40px; }  /* size/weight shared with the other section headings */
.bio {
  max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.2em;
  font-size: 19px; line-height: 1.58; letter-spacing: -0.012em;
  color: #a1a1a6;
  text-wrap: pretty;
}
/* First paragraph leads, slightly larger and brighter */
.bio p:first-child { font-size: 21px; line-height: 1.5; color: #f5f5f7; }

/* Gentle fade-up as the section scrolls into view (JS adds .js to <html>) */
/* Slow fade-up used across the site as content scrolls into view */
.js .reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.4s cubic-bezier(.16,.84,.3,1), transform 1.4s cubic-bezier(.16,.84,.3,1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .statement.reveal { transition-delay: .1s; }
.js .bio.reveal { transition-delay: .22s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Footer links — three equal columns, centred on the page like the profile above */
.cols {
  border-top: 1px solid #1d1d1f;   /* thin divider below the profile */
  padding-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 900px; margin: 0 auto;
  text-align: center;
}
.cols > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cols a { width: fit-content; transition: opacity .2s; }
.cols a:hover { opacity: .6; }
.label { color: #a9a9a9; margin-bottom: 14px; }
.bottom {
  display: flex; justify-content: center;
  margin-top: 96px;
  color: #6e6e73;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 64px var(--pad) 32px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
/* Dark-room viewing: the video sits on near-black, and a blurred live copy of
   it spills soft coloured light around the frame, like a screen glowing in a dark room */
.lightbox { background: #000; }   /* fully dark room — only the video's glow lights it */
.lb-stage { position: relative; display: flex; max-width: 100%; }
.lb-glow {
  position: absolute; left: -12%; top: -12%; width: 124%; height: 124%;
  z-index: 0; pointer-events: none;
  filter: blur(90px) saturate(1.2);
  opacity: 0; transition: opacity 1.2s ease;
}
.lightbox.is-open .lb-glow { opacity: .28; }    /* very subtle light spill */
.lightbox video {
  position: relative; z-index: 1;
  max-width: 100%; max-height: calc(100vh - 180px);
  border-radius: 10px;
  background: #000;
  cursor: pointer;
}

/* Minimal controls row beneath the video */
.lb-controls {
  display: flex; align-items: center; gap: 14px;
  width: min(720px, 100%);
  margin-top: 4px;
}
.lb-btn {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  transition: background .2s, opacity .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.1); }
.lb-btn svg { width: 14px; height: 14px; fill: currentColor; }
.lb-btn .i-play, .lb-btn .i-muted { display: none; }
.lightbox.is-paused .lb-btn .i-play { display: block; }
.lightbox.is-paused .lb-btn .i-pause { display: none; }
.lightbox.is-muted .lb-btn .i-muted { display: block; }
.lightbox.is-muted .lb-btn .i-sound { display: none; }

.lb-progress {
  position: relative; flex: 1;
  height: 18px;                          /* generous hit area around a thin line */
  cursor: pointer;
}
.lb-progress::before, .lb-progress-fill {
  content: ""; position: absolute; left: 0; top: 50%;
  height: 2px; border-radius: 2px; transform: translateY(-50%);
}
.lb-progress::before { right: 0; background: rgba(255,255,255,.18); }
.lb-progress-fill { width: 0; background: #fff; }
.lb-progress:hover::before, .lb-progress:hover .lb-progress-fill { height: 4px; }
.lb-time { flex: none; color: #a1a1a6; font-variant-numeric: tabular-nums; }
.close { position: absolute; top: 18px; right: var(--pad); }
.close:hover { opacity: .6; }

/* ---------- Responsive ---------- */
/* Small "N Results for “…”" line under the toolbar while searching */
.results-note {
  order: 3;
  margin-top: -8px;
  font-size: 13px; color: #86868b;
  animation: note-in .35s ease both;
}
.results-note[hidden] { display: none; }
@keyframes note-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Projects toolbar: categories and search side by side, centred under "Projects" */
.toolbar {
  order: 2;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}
/* Search pill: same height and frosted finish as the category bar beside it */
.toolbar .search {
  height: 42px;
  width: 230px;
  padding: 0 10px 0 14px;
}
.toolbar .search input,
.toolbar .search input:focus { flex: 1; width: auto; min-width: 0; }


@media (max-width: 809px) {
  .site-header { gap: 16px; }
  .hero { justify-content: center; padding-top: 84px; padding-bottom: 48px; }
  .hero-card { border-radius: 16px; }
  .hero-play { width: 52px; height: 52px; }
  .hero-caption { left: 14px; bottom: 12px; font-size: 13px; }

  .nav { display: none; }
  /* Phones: search sits on its own line under the categories, as wide as the category bar.
     16px text stops iPhones zooming in when the field is tapped. */
  /* Stack shrink-wraps to the category bar, and the search stretches to match its width */
  .toolbar { display: inline-flex; flex-direction: column; align-items: stretch; gap: 10px; width: auto; }
  .toolbar .search { width: auto; height: 40px; }
  .search input { font-size: 16px; }
  .menu-btn { display: flex; }
  .menu { display: flex; }

  .work-head { gap: 20px; padding: 96px var(--pad) 40px; }
  #titleText { max-width: calc(100vw - 40px); }
  .filter { padding: 8px 9px; }

  /* Phones: still three across, edge to edge with hairline gaps, like the apps */
  .projects.grid { --tile-gap: 2px; padding: 0; }
  .media, .meta { border-radius: 0; }
  .meta { padding: 20px 6px 6px; font-size: 10px; }
  .meta .client { display: none; }       /* tiles are small: title only */


  .cols { grid-template-columns: 1fr; gap: 40px; }
  .profile { padding: 24px 8px 112px; }
  .statement { margin-bottom: 28px; }
  .bio { font-size: 17px; }
  .bio p:first-child { font-size: 19px; }
  .bottom { margin-top: 64px; }
}
