/* Fonts are served from the site (latin subset, the same files Google Fonts sends) so no third-party stylesheet
   blocks the first paint. Roboto Mono is one variable file covering 400 and 500. Both are SIL Open Font License. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/poppins-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Roboto Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/assets/fonts/roboto-mono-latin.woff2) format('woff2'); }
:root { --bg: #0E0D0C; --fg: #FAF9F5; --soft: #D7D5CA; --muted: #8E897F; --line: #25231D; --accent: #E56034; --accent-ink: #0E0D0C;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --head: 'Poppins', system-ui, sans-serif; --mono: 'Roboto Mono', ui-monospace, monospace;
  --margin: clamp(16px, 4vw, 48px); --width: 1400px; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--mono); font-size: 0.9375rem; line-height: 1.6; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(100% - 2 * var(--margin), var(--width)); margin-inline: auto; }
.label { margin: 0 0 12px; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.h-xl, .h-lg, .h-md { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; margin: 0; }
.h-xl { font-size: clamp(3rem, 10vw, 8.5rem); line-height: 0.9; }
.h-lg { font-size: clamp(2.25rem, 6vw, 4.75rem); line-height: 0.95; }
.h-md { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1; }
.small { font-size: 0.9375rem; line-height: 1.7; letter-spacing: 0.01em; max-width: 60ch; color: var(--soft); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 24px; font: 500 0.8125rem/1 var(--mono); letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn:hover, .btn:focus-visible { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.link { text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8125rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* header */
.top { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(calc(100% - 2 * var(--margin)), var(--width)); }
.bar { display: flex; align-items: center; gap: 20px; padding: 10px 10px 10px 20px; border-radius: 10px;
  background: rgb(14 13 12 / .42); border: 1px solid rgb(250 249 245 / .08);
  -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3); }
.solid main { padding-top: 88px; }
.logo { margin-right: auto; }
.logo img { width: 116px; height: auto; }
.nav { display: flex; gap: clamp(12px, 2.4vw, 24px); list-style: none; margin: 0; padding: 0; transition: opacity .2s var(--ease); }
.nav a { text-decoration: none; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.menu-btn { display: grid; place-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--fg); cursor: pointer; }
.menu-btn__dots { display: grid; grid-template-columns: 5px 5px; gap: 4px; transition: transform .45s var(--ease); }
.menu-btn__dots i { width: 5px; height: 5px; background: currentColor; }
.menu-btn:hover { color: var(--accent); }
.menu-open .menu-btn__dots { transform: rotate(45deg); }
.menu-open .nav { opacity: 0; pointer-events: none; }
.menu-open { overflow: hidden; }

/* full-screen menu */
.menu { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--margin) 28px; background: var(--accent); color: var(--accent-ink);
  visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease), visibility 0s .6s; }
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .6s var(--ease); }
.menu > nav { margin-block: auto; }
.menu__list { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu__list li { overflow: hidden; }
.menu__list a { display: inline-block; font-family: var(--head); font-weight: 700; text-transform: uppercase; text-decoration: none;
  font-size: clamp(2rem, min(11vw, 13vh), 8.5rem); line-height: .92; letter-spacing: -0.03em; transform: translateY(105%);
  transition: transform .6s var(--ease), color .2s var(--ease), opacity .24s var(--ease); }
.menu.is-open .menu__list a { transform: none; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .06s, 0s, 0s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .12s, 0s, 0s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .18s, 0s, 0s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .24s, 0s, 0s; }
.menu.is-open .menu__list li:nth-child(6) a { transition-delay: .30s, 0s, 0s; }
.menu__list a[aria-current] { color: var(--fg); }
@media (hover: hover) {
  .menu__list:hover a { opacity: .35; }
  .menu__list a:hover { opacity: 1; color: var(--accent-ink); }
}
.menu__list sup { font-size: .32em; vertical-align: .9em; margin-left: .08em; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.menu__foot ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.menu__foot a { text-decoration: none; }
.menu__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media, .hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media video { opacity: 0; transition: opacity .9s var(--ease); }
.hero__media video.is-playing { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(14 13 12 / .9), rgb(14 13 12 / .25) 55%, rgb(14 13 12 / .45)); }
.hero__text { position: relative; padding-block: 0 clamp(40px, 8vh, 88px); }
.hero__text .small { margin: 24px 0 32px; }
.hero__text .label { color: var(--soft); }  /* labels over photos keep the lighter grey so they stay readable */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
.section { padding-block: clamp(64px, 10vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.services li span { color: var(--muted); }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* featured carousel */
.carousel { --edge: max(var(--margin), (100vw - var(--width)) / 2); }
.carousel__track { list-style: none; margin: 0; display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--edge); scroll-padding-inline: var(--edge); scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -2px; }
.slide { flex: 0 0 clamp(280px, 64vw, 980px); scroll-snap-align: start; }
.slide a { display: block; text-decoration: none; }
.slide__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s var(--ease); }
.slide a:hover img, .slide a:focus-visible img { transform: scale(1.03); }
.slide__text { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding-top: 16px; }
.slide__n, .slide__cat { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.slide__name { font-family: var(--head); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 2rem); text-transform: uppercase; letter-spacing: -0.01em; }
.slide a:hover .slide__name { color: var(--accent); }
.carousel__nav { display: flex; align-items: center; gap: 12px; }
.carousel__count { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--muted); min-width: 4.5em; text-align: center; }
.carousel__btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--fg); background: transparent; color: var(--fg);
  font: 1.125rem/1 var(--mono); cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease), opacity .16s var(--ease); }
.carousel__btn:hover, .carousel__btn:focus-visible { background: var(--fg); color: var(--bg); }
.carousel__btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--fg); }

/* clients */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos li { display: flex; align-items: center; justify-content: center; height: clamp(84px, 9vw, 128px); padding: 0 12%; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos img { width: auto; height: auto; max-width: 100%; max-height: 44%; filter: invert(1) brightness(.92); opacity: .8; transition: opacity .2s var(--ease); }
.logos img.is-light { filter: none; }
.logos li:hover img { opacity: 1; }

/* cta */
.cta { text-align: left; }
.cta .h-lg { margin-bottom: 28px; }
.cta a.mail { font-family: var(--head); font-weight: 700; font-size: clamp(1.25rem, 3.5vw, 2.5rem); text-decoration: none; border-bottom: 2px solid var(--accent); }

/* case study */
.cs-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; }
.cs-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-hero .hero__text { padding-block: 0 48px; }
.cs-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; padding-block: 48px; }
.meta { margin: 0; display: grid; gap: 16px; align-content: start; }
.meta dt { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 4px 0 0; font-size: 0.875rem; }
.film { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; margin-bottom: 64px; }
.film[data-video] { aspect-ratio: 9 / 16; width: min(100%, 460px); margin-inline: auto; }  /* Shopify-hosted reels are vertical */
.film img, .film iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.play { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px; font: 500 0.8125rem/1 var(--mono); letter-spacing: .08em; color: var(--fg); background: rgb(14 13 12 / .55); border: 1px solid var(--fg); cursor: pointer; }
.play:hover, .play:focus-visible { background: var(--fg); color: var(--bg); }
.meta dd a { text-decoration: none; border-bottom: 1px solid currentColor; }
.meta dd a:hover { color: var(--accent); }
/* optional long-form case study parts: story beats and site screens */
.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px 48px; padding-block: 8px 72px; }
.story > div { border-top: 1px solid var(--line); padding-top: 16px; }
.story .small { margin: 0; }
.screens { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.screens figure { margin: 0; background: #000; border: 1px solid var(--line); }
.screens img { width: 100%; }
.screens figcaption { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 12px; border-top: 1px solid var(--line); }
.masonry { columns: 2; column-gap: 16px; }
.masonry > a, .masonry > img { display: block; margin-bottom: 16px; break-inside: avoid; }
.masonry img { width: 100%; }
.masonry > a { cursor: zoom-in; overflow: hidden; }
.masonry > a img { transition: transform .7s var(--ease), opacity .3s var(--ease); }
.masonry > a:hover img { transform: scale(1.02); }

/* work index with hover preview */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: idx; }
.index a { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 17rem) 1.5rem; align-items: baseline; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s var(--ease); }
.index__n, .index__name, .index__cat { transition: transform .35s var(--ease); }
.index__cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.index__n, .index__cat, .index__arrow { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.index__name { font-family: var(--head); font-weight: 700; font-size: clamp(1.5rem, 4.2vw, 3.25rem); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.index__arrow { text-align: right; transition: transform .35s var(--ease), color .2s var(--ease); }
.index a:hover, .index a:focus-visible { color: var(--accent); }
.index a:hover :is(.index__n, .index__name, .index__cat), .index a:focus-visible :is(.index__n, .index__name, .index__cat) { transform: translateX(12px); }
.index a:hover .index__arrow, .index a:focus-visible .index__arrow { transform: translate(3px, -3px); color: var(--accent); }
.index-preview { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; width: clamp(240px, 24vw, 380px); }
.index-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .24s var(--ease), transform .35s var(--ease); }
.index-preview.on img { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none), (pointer: coarse) { .index-preview { display: none; } }

/* /work: every case study fills the screen, edge to edge. Each one pins while the next slides over it,
   the caption sits on the photo, and a fixed list on the left marks the project in view (desktop). */
.work-head { padding-block: 64px 48px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.work-head .small { margin: 0; }
.reel { list-style: none; margin: 0 auto; padding: 0; width: min(calc(100% - 2 * var(--margin)), var(--width)); --pin: 84px; --pad: clamp(20px, 3vw, 40px); }
.reel__item { position: sticky; top: var(--pin); height: calc(100svh - var(--pin) - 16px); min-height: 520px; overflow: hidden; background: #000; }
.reel__link { position: absolute; inset: 0; display: block; color: var(--fg); text-decoration: none; }
.reel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.reel__link:hover .reel__media img, .reel__link:focus-visible .reel__media img { transform: scale(1); }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(14 13 12 / .82), rgb(14 13 12 / 0) 48%), linear-gradient(to bottom, rgb(14 13 12 / .45), rgb(14 13 12 / 0) 20%); }
.reel__cap { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: end; }
.reel__n { grid-column: 1 / -1; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--soft); font-variant-numeric: tabular-nums; }
.reel__name { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(2.25rem, 7vw, 6.5rem); line-height: .9; letter-spacing: -0.03em; }
.reel__what { grid-column: 1; font-size: 0.875rem; color: var(--soft); max-width: 52ch; }
.reel__go { grid-column: 2; grid-row: 2 / span 2; align-self: end; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--soft); transition: color .2s var(--ease); }
.reel__go b { font-weight: 400; display: inline-block; margin-left: 8px; transition: transform .35s var(--ease); }
.reel__link:hover .reel__go, .reel__link:focus-visible .reel__go { color: var(--accent); }
.reel__link:hover .reel__go b, .reel__link:focus-visible .reel__go b { transform: translate(3px, -3px); }
.reel__link:focus-visible { outline-offset: -6px; }
.reel-index { position: fixed; left: calc(max(var(--margin), (100vw - var(--width)) / 2) + clamp(20px, 3vw, 40px)); top: calc(50% + 34px); z-index: 40; transform: translateY(-50%);
  padding: 12px 16px; border-radius: 8px; background: rgb(14 13 12 / .6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.reel-index.is-on { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.reel-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.reel-index a { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: rgb(250 249 245 / .55); transition: color .2s var(--ease); }
.reel-index a::before { content: ""; width: 6px; height: 6px; background: var(--accent); transform: scale(0); transition: transform .2s var(--ease); }
.reel-index a:hover { color: var(--fg); }
.reel-index a[aria-current] { color: var(--fg); }
.reel-index a[aria-current]::before { transform: none; }
/* About: production steps as an accordion, one open at a time (details name="production") */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; transition: color .2s var(--ease); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
.acc summary i { position: relative; flex: none; width: 12px; height: 12px; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i::after { transform: rotate(0deg); }
.acc details .small { margin: 0 0 24px; max-width: 46ch; }
.acc details[open] .small { animation: acc-in .35s var(--ease); }
@keyframes acc-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .acc details[open] .small { animation: none; } .acc summary i::after { transition: none; } }

/* page titles: each line rises once from behind its own edge on load (after React Bits' Masked Heading) */
.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mask__line { display: block; }
.js .mask__line { transform: translateY(110%); animation: mask-rise .9s var(--ease) forwards; animation-delay: calc(.15s + var(--i, 0) * .09s); }
@keyframes mask-rise { to { transform: none; } }

/* client logos as one slow strip that pauses under the pointer (after React Bits' Logo Loop) */
.loop { overflow: hidden; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.loop__track { display: flex; width: max-content; animation: loop 70s linear infinite; }
.loop:hover .loop__track { animation-play-state: paused; }
.loop ul { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); list-style: none; margin: 0; padding: clamp(32px, 4vw, 48px) calc(clamp(48px, 6vw, 96px) / 2); }
.loop img { display: block; height: clamp(28px, 3vw, 40px); width: auto; max-width: 168px; object-fit: contain; filter: invert(1) brightness(.92); opacity: .8; transition: opacity .2s var(--ease); }
.loop img.is-light { filter: none; }
.loop li:hover img { opacity: 1; }
@keyframes loop { to { transform: translateX(-50%); } }

/* home All projects list: the hovered project's photos trail the pointer (after React Bits' Image Trail) */
.trail { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.trail img { position: absolute; width: clamp(180px, 15vw, 260px); aspect-ratio: 4 / 5; object-fit: cover; opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.trail img.on { animation: trail 1.1s var(--ease) forwards; }
@keyframes trail { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .js .mask__line { animation: none; transform: none; }
  .loop { -webkit-mask-image: none; mask-image: none; }
  .loop__track { animation: none; width: auto; flex-wrap: wrap; }
  .loop ul { flex-wrap: wrap; }
  .loop ul[aria-hidden] { display: none; }
  .trail { display: none; }
}

/* case study pages use the same frame: the cover at the top, the next project at the bottom, neither pinned */
.reel--cover .reel__item, .reel--next .reel__item { position: relative; top: auto; }
.reel--cover .reel__item { height: calc(100svh - 104px); }
.reel--cover .reel__media img { transform: none; }
.reel--next { margin-block: 32px 0; }
.reel--next .reel__item { height: min(70svh, 720px); min-height: 400px; }
.reel__cap > * { margin: 0; }
.cs-pager { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 56px 0; }
@media (max-width: 1099px) { .reel-index { display: none; } }
@media (max-width: 899px) { .work-head { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
  .reel { --pin: 72px; }
  .reel__item, .reel--cover .reel__item { height: min(calc(100svh - var(--pin) - 16px), 82svh); min-height: 440px; }
  .reel--next .reel__item { height: 60svh; }
  .reel__cap { grid-template-columns: 1fr; }
  .reel__go { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) { .reel__media img, .reel__go b { transition: none; } }

/* lightbox */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--fg); }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; place-items: center; animation: lb-in .24s var(--ease); }
.lb__img { max-width: min(92vw, 1800px); max-height: 84vh; width: auto; height: auto; object-fit: contain; user-select: none; }
.lb button { position: absolute; background: none; border: 0; color: var(--fg); font: 500 0.8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: 16px; }
.lb button:hover, .lb button:focus-visible { color: var(--accent); }
.lb__close { top: 12px; right: 12px; }
.lb .lb__prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 2rem; padding: 24px; }
.lb .lb__next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 2rem; padding: 24px; }
.lb__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 0.75rem; letter-spacing: .1em; color: var(--muted); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

/* scroll reveals: only when JS has flagged the page, so nothing stays hidden without it */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.pager { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 56px 96px; }

/* long-form website case studies: what we built, before/after, quote, outro */
.built { padding-block: 24px 40px; }
.built__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.built__row:nth-of-type(even) .built__text { order: 2; }
.built__text .h-md { margin: 0 0 16px; }
.built__text .small { margin: 0; }
.built__img { display: block; background: #000; border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; }
.built__img img { width: 100%; transition: transform .7s var(--ease); }
.built__img:hover img { transform: scale(1.015); }
.built__note { margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.compare { padding-block: 24px 56px; }
.compare__sliders { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.ba, .pair { margin: 0; }
.ba__frame { position: relative; overflow: hidden; background: #000; border: 1px solid var(--line); --pos: 50%; touch-action: pan-y; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.ba__handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font: 500 1rem/1 var(--mono); border-radius: 50%; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + .ba__handle, .ba__frame:focus-within .ba__handle { box-shadow: 0 0 0 2px var(--fg); }
.ba__tag { position: absolute; top: 12px; z-index: 2; padding: 5px 9px; font: 500 0.6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: rgb(14 13 12 / .82); color: var(--fg); pointer-events: none; }
.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; }
.ba figcaption, .pair figcaption { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 12px 0 0; }
.pair { margin-top: 32px; }
.pair__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair__imgs a { position: relative; display: block; background: #000; border: 1px solid var(--line); cursor: zoom-in; }
.pair__imgs img { width: 100%; }
.photo-note { margin: 0 0 24px; padding-top: 40px; border-top: 1px solid var(--line); }
.quote { margin: 56px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); }
.quote p { margin: 0; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.05; max-width: 28ch; }
.quote--todo p { font: 500 0.875rem/1.6 var(--mono); text-transform: none; color: var(--accent); border: 1px dashed var(--accent); padding: 16px 20px; max-width: none; }
.outro { padding-block: 40px 8px; }
.draft-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px var(--margin); background: var(--accent); color: var(--accent-ink);
  font: 500 0.75rem/1.4 var(--mono); letter-spacing: .04em; text-align: center; }
@media (max-width: 899px) {
  .built__row { grid-template-columns: 1fr; }
  .built__row:nth-of-type(even) .built__text { order: 0; }
  .compare__sliders { grid-template-columns: 1fr; }
  .ba--tall { max-width: 420px; }
}

/* about */
.portrait { aspect-ratio: 1; object-fit: cover; width: 100%; }
.bio p { margin: 0 0 1.2em; }

/* contact */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { font: 0.875rem/1.5 var(--mono); color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--muted); padding: 10px 0; border-radius: 0; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form textarea { min-height: 140px; resize: vertical; }
.facts { display: grid; gap: 24px; align-content: start; }
.facts a { text-decoration: none; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: 0.8125rem; }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .fine { grid-column: 1 / -1; color: var(--muted); font-size: 0.75rem; letter-spacing: .04em; padding-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 899px) {
  .split, .cs-body { grid-template-columns: 1fr; }
  .screens { grid-template-columns: minmax(0, 1fr) minmax(0, 120px); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
  .masonry { columns: 1; }
  .form { grid-template-columns: 1fr; }
  .top { top: 10px; }
  .bar { gap: 10px; padding: 8px 6px 8px 14px; }
  .logo img { width: 92px; }
  .nav { gap: 12px; }
  .nav a { font-size: 0.6875rem; letter-spacing: 0.06em; }
  .menu-btn { width: 32px; height: 32px; }
  .foot .wrap { grid-template-columns: 1fr; }
  .small { font-size: 0.875rem; }
}
@media (max-width: 599px) {
  .index a { grid-template-columns: 2.25rem minmax(0, 1fr) 1.25rem; }
  .index__cat { display: none; }
  /* About's Featured list keeps what each piece is, on its own line under the outlet */
  .index--press .index__cat { display: block; grid-column: 2; grid-row: 2; white-space: normal; }
  .lb .lb__prev, .lb .lb__next { display: none; }
}
@media (max-width: 599px) {
  .slide { flex-basis: 86vw; }
  .slide__text { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .slide__cat { display: none; }
  .carousel__btn { width: 42px; height: 42px; }
}
@media (max-width: 349px) { .bar > nav { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .carousel__track { scroll-behavior: auto; }
  .slide__media img, .masonry > a img, .index a, .index__n, .index__name, .index__cat, .index__arrow { transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .lb[open] { animation: none; }
  .menu, .menu.is-open, .menu__list a, .menu-btn__dots { transition: none; }
}
