/* DM Sans (variable) and DM Mono, served from fonts/ — see OFL-*.txt there. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(fonts/dm-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(fonts/dm-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/dm-mono-400-latin.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/dm-mono-500-latin.woff2) format("woff2"); }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f3f4;
  --line: #dadce0;
  --text: #202124;
  --text-2: #5f6368;
  --accent: #1a73e8;
  --focus: #1a73e8;
  --shadow: 0 1px 6px rgba(32, 33, 36, .28);
  --drawer-w: min(46vw, 720px);
  --radius: 6px;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ink: #000; --on-ink: #fff;
  --gutter: 16px;
  --topbar-h: 76px;
  --grid-top: 23px;  /* space between the pills and the grid */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1f1f; --surface: #28292a; --surface-2: #303134; --line: #3c4043;
    --text: #e8eaed; --text-2: #9aa0a6; --accent: #8ab4f8; --focus: #8ab4f8;
    --shadow: 0 1px 6px rgba(0, 0, 0, .6);
    --ink: #fff; --on-ink: #000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1f1f; --surface: #28292a; --surface-2: #303134; --line: #3c4043;
  --text: #e8eaed; --text-2: #9aa0a6; --accent: #8ab4f8; --focus: #8ab4f8;
  --shadow: 0 1px 6px rgba(0, 0, 0, .6);
  --ink: #fff; --on-ink: #000;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  height: var(--topbar-h);
  padding: 0 24px;
  background: var(--bg);
}
/* The name, full width between the page margins. app.js sizes the type to
   fit; the trailing letter-space is pulled back so the last letter, not
   its spacing, meets the right margin. */
/* Search line to name, name to pills, and pills to grid are all equal:
   37px here, 23px on phones. */
/* The name fades as it slides under the search bar (app.js), rather than
   being cut through the middle of the letters. */
.masthead { padding: 6px 24px 14px; overflow: hidden; position: relative; }
.wordmark span { display: inline-block; }
.wordmark .sp { letter-spacing: 0; }  /* width set in app.js */
.wordmark {
  display: block; width: max-content;
  font: 500 100px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: var(--text); text-decoration: none;
  padding: 0; border: 0; background: none; cursor: pointer;
}

.corner { margin-left: auto; flex: none; display: flex; align-items: center; gap: 12px; }
.hire {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--on-ink); text-decoration: none;
  font: 500 19px/1 var(--mono);
}
.hire:hover { opacity: .8; }
/* The $ spins like a slot-machine reel now and then, landing back on $. */
.hire .slot { display: block; height: 1.3em; overflow: hidden; }
.hire .reel { display: flex; flex-direction: column; line-height: 1; }
.hire .reel span { display: block; height: 1.3em; line-height: 1.3em; text-align: center; }
.hire.spin .reel { animation: reel 1.4s cubic-bezier(.2, .6, .25, 1) both; }
@keyframes reel { from { transform: translateY(0); } to { transform: translateY(-11.7em); } }
/* The lightbulb lights up now and then. */
/* The lightbulb button flips to its reverse colors and straight back. */
.theme-btn.flash { animation: bulb .5s steps(1, end); }
@keyframes bulb {
  0% { background: var(--on-ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
  100% { background: var(--ink); color: var(--on-ink); box-shadow: none; }
}
/* The envelope's flap flips open and shut now and then. */
.mail-btn svg { overflow: visible; }
.mail-btn .flap { transform-box: view-box; transform-origin: 12px 6.5px; }
.mail-btn.open .flap { animation: flap 1.4s ease-in-out; }
@keyframes flap {
  0%, 100% { transform: scaleY(1); }
  35%, 65% { transform: scaleY(-1); }
}
/* The profile picture flips like a coin now and then. */
.corner { perspective: 400px; }
.avatar.flip { animation: coin 1s cubic-bezier(.45, .05, .35, 1); }
@keyframes coin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
/* Collection tiles sliding to their new places after a shuffle. */
.card.moving { transition: transform .9s cubic-bezier(.65, 0, .35, 1); z-index: 1; }
/* Search prompts: each slides up from the hairline, pauses, and moves on. */
.search .prompt {
  position: absolute; left: 0; right: 52px; top: 0; bottom: 6px; overflow: hidden;
  pointer-events: none; color: var(--text-2); font: 400 16px var(--sans);
}
.search .prompt span {
  position: absolute; left: 0; bottom: 0; top: 0; display: flex; align-items: center;
  white-space: nowrap; transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .45s;
}
.search .prompt span.below { transform: translateY(100%); opacity: 0; transition: none; }
.search .prompt span.above { transform: translateY(-100%); opacity: 0; }
.search .prompt[hidden] { display: none; }
.search {
  flex: 1; max-width: 460px; min-width: 0;
  display: flex; align-items: center;
  position: relative;
  height: 46px; padding: 0 6px 0 0;
  border: 0; border-radius: 0;
  background: none;
  transition: box-shadow .15s, border-color .15s;
}
/* A hairline under the search, from the start of the text to the icon's edge. */
.search::after {
  content: ""; position: absolute; left: 0; right: 15px; bottom: 4px;
  height: 1px; background: var(--line);
}
.search input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: none; color: var(--text);
  font: 400 16px var(--sans);
}
.search input::-webkit-search-cancel-button { display: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: var(--text-2);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[hidden] { display: none; }
.drawer-actions .icon-btn:disabled { visibility: hidden; }
.drawer-actions { align-items: center; }
/* Grid / one-at-a-time / stacked switch: a pill with a black knob behind
   whichever view is on. */
.view-switch {
  position: relative; display: inline-flex; align-items: center; flex: none;
  height: 32px; padding: 0; margin-right: 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--text);
}
.view-switch[hidden] { display: none; }
.view-switch button {
  position: relative; z-index: 1; width: 44px; height: 30px; padding: 0;
  border: 0; background: none; color: inherit; cursor: pointer; border-radius: 999px;
}
.view-switch svg {
  display: block; margin: auto; width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round;
  transition: color .2s;
}
.view-switch button[aria-checked="true"] { color: var(--on-ink); }
.view-switch .knob {
  position: absolute; top: 2px; bottom: 2px; left: 2px; width: 42px;
  border-radius: 999px; background: var(--ink); transition: transform .2s ease;
}
.view-switch[data-view="carousel"] .knob { transform: translateX(44px); }
.view-switch[data-view="stack"] .knob { transform: translateX(88px); }
.view-switch button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.theme-btn { border: 0; padding: 0; cursor: pointer; }
.theme-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Grid view inside the drawer */
.gallery { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 24px; }
.grid-mode .gallery { display: grid; }
.grid-mode #d-hero, .grid-mode #d-strip { display: none; }
/* Stacked: every image full width, one above the other. */
.stack { display: none; flex-direction: column; gap: 12px; margin: 0 0 24px; }
.stack-mode .stack { display: flex; }
.stack-mode #d-hero, .stack-mode #d-strip { display: none; }
.stack > img { display: block; width: 100%; height: auto; }
.stack .stack-video { position: relative; padding: 0; border: 0; cursor: pointer; display: block; background: #000; }
.stack .stack-video img { display: block; width: 100%; height: auto; opacity: .8; }
.gallery button { position: relative; padding: 0; border: 0; background: var(--surface-2); cursor: pointer; display: block; }
/* Every cell the same shape, so rows line up and a short last row leaves its gap on the right. */
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery button:hover img { opacity: .85; }
.gallery .play, .gallery .ba { pointer-events: none; }
.gallery .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; }
.gallery .play svg { width: 26px; height: 26px; fill: currentColor; }
.gallery .ba { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font: 400 10px var(--mono); }
.search button[type="submit"] { color: var(--text); }
.suggest {
  position: absolute; z-index: 40; top: 100%; left: -1px; right: -1px;
  margin: 0; padding: 6px 0; list-style: none;
  background: var(--surface); box-shadow: var(--shadow);
  border-top: 1px solid var(--line);
  max-height: 330px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--text-2) transparent;
}
/* Always-visible scrollbar (macOS otherwise hides it until you scroll). */
.suggest::-webkit-scrollbar { width: 10px; }
.suggest::-webkit-scrollbar-track { background: transparent; }
.suggest::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid var(--surface); }
.suggest::-webkit-scrollbar-thumb:hover { background: var(--text-2); }
.suggest li {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 20px; cursor: pointer;
  font: 400 15px var(--sans);
}
.suggest li svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; }
.suggest li .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest li .t b { font-weight: 500; }
.suggest li .n { color: var(--text-2); font: 400 11px var(--mono); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--surface-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.avatar {
  flex: none;
  display: block; overflow: hidden;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2);
}
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* ---------- Chips ---------- */
.chips {
  position: sticky; top: var(--topbar-h); z-index: 20;
  background: var(--bg);
}
/* "All work" stays put at the left; the company pills scroll beside it. */
.chips { display: flex; align-items: flex-start; }
.chips-all { flex: none; padding: 6px 0 14px 24px; }
.chips-scroll { position: relative; flex: 1; min-width: 0; }
.chips-track {
  display: flex; gap: 10px;
  padding: 6px 24px 14px 60px;  /* room for the left arrow, which stays put */
  overflow-x: auto; scrollbar-width: none;
}
.chips-track::-webkit-scrollbar { display: none; }
.chips-arrow {
  position: absolute; top: 0; bottom: 8px; z-index: 2;
  display: grid; place-items: center; width: 64px;
  border: 0; padding: 0; cursor: pointer; color: var(--text);
}
.chips-arrow[hidden] { display: none; }
.chips-arrow.prev { left: 0; width: 72px; justify-content: start; padding-left: 8px; background: linear-gradient(90deg, var(--bg) 60%, transparent); }
.chips-arrow.next { right: 0; justify-content: end; padding-right: 16px; background: linear-gradient(270deg, var(--bg) 45%, transparent); }
.chips-arrow svg {
  width: 40px; height: 40px; padding: 9px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.chip {
  display: inline-flex; align-items: center; gap: 12px; flex: none;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); cursor: pointer;
  font: 500 15px var(--sans); white-space: nowrap;
  overflow: hidden;
}
/* Rolling over a pill (or choosing it) fills it black; its hairline stays. */
.chip:hover { background: var(--ink); color: var(--on-ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* ---------- Layout + grid ---------- */
.layout { display: flex; align-items: flex-start; }
.results {
  flex: 1; min-width: 0;
  padding: var(--grid-top) 24px 64px;
}
.count { margin: 4px 4px 14px; color: var(--text-2); font: 400 12px var(--mono); }

.grid { display: flex; gap: 20px; align-items: flex-start; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
/* A company page: each project under its title, with room between them. */
.grid.grouped { display: block; }
/* Between projects: generous space and a hairline from margin to margin. */
.group + .group { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.group-title { margin: 0 0 14px; color: var(--text-2); font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.group .cols { display: flex; gap: 20px; align-items: flex-start; }

.card {
  display: block; width: 100%;
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.card .thumb {
  display: block; position: relative;
  border-radius: 0; overflow: hidden;
  background: var(--surface-2);
}
.card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .thumb img { transform: scale(1.025); }
.card .thumb::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .15s;
}
.card.selected .thumb::after { box-shadow: inset 0 0 0 2px var(--ink); }
/* The title rides up from the bottom of the tile on a dim band. */
.card .caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 10px 12px;
  background: rgba(0, 0, 0, .55); color: #fff;
  font: 500 14px/1.3 var(--sans);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translateY(101%);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .caption, .card:focus-visible .caption, .card.selected .caption { transform: none; }
/* No hover on touch screens, so the title stays up. */
@media (hover: none) { .card .caption { transform: none; } }
/* A thin hairline round images with white edges (thumbnails, filmstrip,
   grid view and the big image), drawn inside so nothing shifts. */
img.white { outline: 1px solid var(--line); outline-offset: -1px; }

/* Password-protected projects: a blurred tile with a lock, and the password
   box that appears just above it. */
.card.locked img { filter: blur(10px); transform: scale(1.12); }
.card.locked:hover .thumb img { transform: scale(1.14); }
.card .lock {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.card .lock svg {
  width: 52px; height: 52px; padding: 13px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.unlock-pop {
  position: absolute; z-index: 25; box-sizing: border-box; display: grid; gap: 8px;
  padding: 14px 16px 12px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.unlock-title { color: var(--text-2); font: 400 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.unlock-row { display: flex; align-items: center; gap: 8px; min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.unlock-row input {
  flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; color: var(--text);
  font: 400 16px var(--sans);  /* 16px keeps phones from zooming in */
}
.unlock-row button {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--on-ink); cursor: pointer;
}
.unlock-row .peek { background: none; color: var(--text-2); width: 32px; }
.unlock-row .peek:hover { color: var(--text); }
.unlock-row .peek .slash { display: none; }
.unlock-row .peek[aria-pressed="true"] .slash { display: inline; }
.unlock-row .peek[aria-pressed="true"] { color: var(--text); }
.unlock-row svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.unlock-msg { color: var(--text-2); font-size: 13px; }
.unlock-msg:empty { display: none; }
.unlock-pop.busy { opacity: .7; pointer-events: none; }
.unlock-pop.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Company pages title each group already, so tiles there go without. */
.grouped .card .caption { display: none; }
.empty { color: var(--text-2); margin: 40px 4px; }
.notes-empty { color: var(--text-2); }
.notes.plain ul { list-style: none; padding-left: 0; }
.tiers { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.notes .tiers h2 { flex-basis: 100%; margin: 0 0 4px; }
.contact { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.notes .contact h2 { flex-basis: 100%; margin: 0 0 4px; }
.contact-btn {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  border-radius: 999px; background: var(--ink); color: var(--on-ink);
  font: 500 15px var(--sans); text-decoration: none;
}
.contact-btn:hover { opacity: .85; }
.contact-email { color: var(--text-2); font: 400 13px var(--mono); text-decoration: none; }
.contact-email:hover { color: var(--text); text-decoration: underline; }

/* ---------- Drawer ---------- */
.drawer {
  position: sticky; top: var(--stick, 145px);
  flex: none; width: 0; height: calc(100vh - var(--stick, 145px));
  overflow: hidden;
  background: var(--surface);
  transition: width .28s cubic-bezier(.2, .7, .2, 1);
  outline: none;
}
/* The hairline beside the drawer starts level with the top of the grid. */
.drawer::before {
  content: ""; position: absolute; left: 0; top: var(--grid-top); bottom: 0; width: 1px;
  background: var(--line); opacity: 0; transition: opacity .28s; z-index: 2;
}
.drawer.open { width: var(--drawer-w); }
.drawer.open::before { opacity: 1; }
.drawer-bar, .drawer-body { width: var(--drawer-w); }
.drawer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 12px 0 24px;
}
.drawer-source { display: flex; align-items: center; gap: 8px; color: var(--text-2); font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; min-width: 0; }
.drawer-source span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-actions { display: flex; gap: 2px; }
.drawer-body {
  height: calc(100% - 60px); overflow-y: auto;
  padding: 0 24px 48px;
  overscroll-behavior: contain;
}
.drawer-hero {
  position: relative;
  margin: 0 0 12px;
  border-radius: 0; overflow: hidden;
  background: var(--surface-2);
}
.drawer-hero img { display: block; width: 100%; height: auto; max-height: 56vh; object-fit: contain; cursor: zoom-in;
  transform-origin: 0 0; transition: transform .25s ease; }
/* Zoomed in: drag to look around; a click zooms back out. */
.drawer-hero img.zoomed { cursor: grab; touch-action: none; }
.drawer-hero img.zoomed.dragging { cursor: grabbing; transition: none; }
.counter {
  position: absolute; right: 10px; bottom: 10px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff; font: 400 11px var(--mono);
}
.counter:empty { display: none; }
.strip {
  display: flex; gap: 8px; margin: 0 0 20px; padding-bottom: 8px;
  overflow-x: auto; scrollbar-color: var(--text-2) transparent;
}
/* A slightly larger, always-visible scrollbar under the thumbnails. */
.strip::-webkit-scrollbar { height: 12px; }
.strip::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 999px; }
.strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid var(--surface-2); }
.strip::-webkit-scrollbar-thumb:hover { background: var(--text-2); }
.strip[hidden] { display: none; }
.strip button {
  flex: none; width: 172px; aspect-ratio: 16 / 9; padding: 0;
  border: 0; border-radius: 0; overflow: hidden; cursor: pointer; position: relative;
  background: var(--surface-2); opacity: .6;
  box-shadow: inset 0 0 0 0 var(--accent); transition: opacity .15s;
}
.strip button:hover { opacity: 1; }
.strip button[aria-current="true"] { opacity: 1; outline: 2px solid var(--ink); outline-offset: -2px; }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip .play, .play-big {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .35); color: #fff; pointer-events: none;
}
.strip .play svg { width: 20px; height: 20px; fill: currentColor; }
.drawer-hero img[hidden] { display: none; }
.drawer-hero img.square { object-fit: cover; max-height: none; }
.hire-mode #d-hero, .hire-mode #d-strip, .hire-mode #d-title { display: none; }
.hire-mode #d-notes > :first-child { margin-top: 0; }
.outgoing { pointer-events: none; }
.iframe-ghost { aspect-ratio: 16 / 9; background: #000; }
.drawer-hero iframe { display: block; width: 100%; border: 0; background: #000; }
.compare { position: relative; --pos: 50%; overflow: hidden; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none;
}
.compare .knob {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: #000; box-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.compare .knob svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compare input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare input::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100vh; }
.compare:has(input:focus-visible) .knob { outline: 2px solid var(--focus); outline-offset: 2px; }
.drawer-hero[data-kind="compare"] .counter { bottom: 10px; }
.strip .ba {
  position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px;
  background: rgba(0, 0, 0, .65); color: #fff; font: 400 10px var(--mono);
}
.drawer-hero[data-kind="video"] .counter { bottom: auto; top: 10px; }
/* With no filmstrip (one image, like the About portrait), the title keeps
   the same distance from the image as on a project. */
.strip[hidden] ~ .drawer-title { margin-top: 26px; }
.drawer-title {
  margin: 0 0 14px;
  font: 500 44px/1.1 var(--sans); letter-spacing: .02em;
}

.notes { font-size: 16px; line-height: 1.65; max-width: 62ch; }
.notes h2 {
  margin: 28px 0 8px;
  font: 400 12px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2);
}
.notes p { margin: 0 0 14px; }
/* About: write-up two thirds, facts one third. Hire me: two equal columns. */
.notes-cols { display: grid; gap: 0 32px; max-width: none; }
.about-cols { grid-template-columns: 2fr 1fr; }
.hire-cols { grid-template-columns: 1fr 1fr; }
.notes-cols > div > :last-child { margin-bottom: 0; }
.notes-cols > div > h2:first-child { margin-top: 0; }
.col-side { font-size: 14px; line-height: 1.55; }
.notes:has(.notes-cols) { max-width: none; }
.hire-cols + h2 { margin-top: 28px; }
.notes.plain > p:last-of-type { margin-bottom: 0; }
@media (max-width: 600px) {
  .about-cols, .hire-cols { grid-template-columns: 1fr; }
  .col-side { margin-top: 28px; }
  .hire-cols .ncol + .ncol { margin-top: 28px; }
}
.notes ul { margin: 0 0 14px; padding-left: 20px; }
.notes li { margin-bottom: 6px; }
.notes blockquote {
  margin: 18px 0; padding: 4px 0 4px 16px;
  border-left: 3px solid var(--accent);
  font: 500 20px/1.4 var(--sans);
}

/* ---------- Narrow screens: drawer becomes a full sheet ---------- */
@media (max-width: 600px) {
  :root { --drawer-w: 100vw; --topbar-h: 64px; }
  .topbar { gap: 14px; padding: 0 var(--gutter); }
  .masthead { padding: 4px var(--gutter) 14px; }
  .search { height: 42px; padding-left: 0; }
  .avatar { width: 34px; height: 34px; }
  .corner { gap: 8px; }
  .hire { width: 34px; height: 34px; font-size: 16px; }
  .search::after { left: 0; }
  .chips-arrow svg { width: 34px; height: 34px; padding: 7px; }
  .drawer-title { font-size: 34px; }
  .chips-all { padding: 4px 0 12px var(--gutter); }
  .chips-track { padding: 4px var(--gutter) 12px 52px; }
  .group .cols { gap: 12px; }
  .group + .group { margin-top: 36px; padding-top: 36px; }
  .chip { height: 34px; font-size: 14px; }
  .results { padding: 11px var(--gutter) 48px; }
  .grid { gap: 12px; }
  .col { gap: 16px; }
  .card .caption { font-size: 12px; padding: 7px 9px; }

  .drawer {
    position: fixed; inset: 0; z-index: 50;
    width: 100vw; height: 100dvh;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2, .7, .2, 1);
    border: 0;
  }
  .drawer.open { width: 100vw; transform: none; }
  .drawer-bar { padding-left: var(--gutter); border-bottom: 1px solid var(--line); }
  .drawer-body { padding: 16px var(--gutter) 40px; }
  body.sheet-open { overflow: hidden; }
}

/* Tablets and narrow desktop windows keep the desktop layout, with a
   slightly wider drawer so the project has room. */
@media (min-width: 601px) and (max-width: 1100px) {
  :root { --drawer-w: 52vw; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Phones: Collection one across; company pages four across, tighter. */
@media (max-width: 600px) {
  .grouped .col { gap: 6px; }
  .group .cols { gap: 6px; }
}
