/* BS.Haus — site styles
   Fonts: the cred deck uses Pilat Extended Black + Studio6 (commercial).
   Archivo (expanded) and Inter stand in until licensed webfonts are added.
   The accent serif is Primo when its webfont is installed (add an @font-face
   for "Primo"), falling back to Instrument Serif from Google Fonts. */

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8c8c8c;
  --faint: #4a4a4a;
  --line: rgba(255, 255, 255, 0.18);
  --panel: #0d0d0d;
  --accent: #c9d1ff;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Primo", "Instrument Serif", Georgia, serif;

  --gutter: clamp(16px, 2.2vw, 32px);
  --radius: 14px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.02em;
  margin: 0;
}
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-variation-settings: normal;
  text-transform: none;
  letter-spacing: -0.01em;
}
.display .serif { font-size: 1.12em; line-height: 0.7; letter-spacing: -0.02em; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.lede {
  font-size: clamp(24px, 3.1vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 0;
  max-width: 24ch;
}
.lede .serif { font-size: 1.08em; }
.lede-muted { color: var(--muted); }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 168px); }
.section-tight { padding-block: clamp(48px, 6vw, 96px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.section-head h2 { font-size: clamp(40px, 7.4vw, 120px); }
.section-head .count { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(16px, 1.6vw, 22px); color: var(--muted); }

/* ---------- meta row (from the deck header) ---------- */
.meta-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
}
.meta-row > :nth-child(3) { justify-self: start; }
.meta-row > :last-child { justify-self: end; text-align: right; }
.meta-row .serif { font-size: 20px; line-height: 0.7; }
@media (max-width: 760px) {
  .meta-row { grid-template-columns: 1fr 1fr; }
  .meta-row > :nth-child(2), .meta-row > :nth-child(4) { display: none; }
  .meta-row > :nth-child(3) { justify-self: end; text-align: right; }
  .meta-row > :last-child { display: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 12px var(--gutter) auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 20px;
  letter-spacing: -0.01em;
  padding: 8px 0;
}
.nav-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav-pill a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  color: #cfcfcf;
  transition: background 0.2s, color 0.2s;
}
.nav-pill a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.08); }
.nav-pill a[aria-current="page"] { color: var(--bg); background: var(--fg); }
.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  transition: transform 0.25s var(--ease);
}
.nav-cta:hover { transform: scale(1.04); }
.nav-toggle { display: none; }
.nav-sheet { display: none; }

@media (max-width: 860px) {
  .nav-pill, .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .nav-sheet {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--bg);
    padding: calc(var(--nav-h) + 40px) var(--gutter) 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .nav-open .nav-sheet { opacity: 1; visibility: visible; }
  .nav-sheet nav { display: flex; flex-direction: column; gap: 4px; }
  .nav-sheet nav a { font-size: clamp(40px, 13vw, 72px); }
  .nav-open { overflow: hidden; }
}

/* ---------- hero reel ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #050505;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease), transform 7s linear;
}
.hero-media video.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 42%, rgba(0,0,0,0) 62%);
}
.hero-top { position: absolute; top: calc(var(--nav-h) + 12px); left: var(--gutter); right: var(--gutter); }
.hero-bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(14px, 2vw, 28px);
}
.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(12px, 2vw, 24px);
}
.hero-caption h1 {
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  max-width: 34ch;
}
.reel-index { display: flex; gap: 6px; align-items: center; }
.reel-index button {
  display: grid;
  gap: 6px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  width: clamp(76px, 9vw, 132px);
  transition: color 0.3s;
}
.reel-index button[aria-current="true"] { color: var(--fg); }
.reel-index .bar { height: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; border-radius: 2px; }
.reel-index .bar i { display: block; height: 100%; width: 0; background: var(--fg); }
.wordmark {
  font-size: 16.2vw;
  line-height: 0.78;
  white-space: nowrap;
  margin-left: -0.04em;
}
@media (max-width: 760px) {
  .hero-caption { flex-direction: column; align-items: start; }
  .reel-index button { width: 30vw; }
}


/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid:hover { background: transparent; color: var(--fg); border-color: var(--line); }
.arrow { display: inline-block; transition: transform 0.3s var(--ease); }
a:hover .arrow { transform: translateX(4px); }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease); }
.link-u:hover { background-size: 100% 1px; }

/* ---------- work cards (stacked, full-bleed) ---------- */
.work-stack { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.work-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
.work-card .media, .work-card .media > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-card .media { z-index: -2; transition: transform 1.2s var(--ease); }
.work-card:hover .media { transform: scale(1.025); }
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 46%);
}
.work-card video { opacity: 0; transition: opacity 0.6s; }
.work-card video.is-playing { opacity: 1; }
.pill {
  position: absolute;
  top: clamp(10px, 1.2vw, 18px);
  left: clamp(10px, 1.2vw, 18px);
  display: flex;
  align-items: center;
  border-radius: 10px;
  background: rgba(18, 18, 18, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pill span { padding: 9px 12px; white-space: nowrap; }
.pill span + span { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.pill .tags { color: #bdbdbd; font-weight: 500; }
.pill .view { transition: background 0.25s, color 0.25s; border-radius: 0 9px 9px 0; }
.work-card:hover .pill .view { background: var(--fg); color: var(--bg); }
.work-card .title {
  position: absolute;
  left: clamp(12px, 1.4vw, 22px);
  right: clamp(12px, 1.4vw, 22px);
  bottom: clamp(8px, 1vw, 16px);
  font-size: clamp(36px, 8.6vw, 150px);
}
.work-card .title small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-stretch: 100%;
  font-size: clamp(13px, 1.1vw, 16px);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 0.9em;
  max-width: 46ch;
  color: #e4e4e4;
}
@media (max-width: 640px) {
  .work-card { aspect-ratio: 4 / 5; }
  .pill .tags { display: none; }
}

/* index grid (work page) */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.work-grid .work-card { aspect-ratio: 4 / 3; }
.work-grid .work-card .title { font-size: clamp(30px, 4.4vw, 76px); }
.work-grid .work-card.wide { grid-column: span 2; aspect-ratio: 16 / 7; }
.work-grid .work-card.wide .title { font-size: clamp(36px, 8vw, 140px); }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-grid .work-card.wide { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* ---------- services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  padding: clamp(20px, 2vw, 32px) clamp(16px, 1.6vw, 24px) clamp(28px, 3vw, 44px) 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.service + .service { border-left: 1px solid var(--line); padding-left: clamp(16px, 1.6vw, 24px); }
.service .num { font-size: 12px; color: var(--muted); font-weight: 500; }
.service h3 { font-size: clamp(22px, 2.2vw, 34px); }
.service p { margin: 0; color: #cfcfcf; font-size: 15px; max-width: 34ch; }
.service ul { list-style: none; margin: auto 0 0; padding: 0; display: grid; font-size: 14px; }
.service li { padding: 8px 0; border-top: 1px solid var(--line); color: #cfcfcf; }
@media (max-width: 1000px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3) { border-left: 0; padding-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .service + .service { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- clients ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.client {
  display: grid;
  place-items: center;
  aspect-ratio: 2.2 / 1;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px;
}
.client img { max-height: 34px; max-width: 72%; width: auto; opacity: 0.85; transition: opacity 0.25s; }
.client:hover img { opacity: 1; }
@media (max-width: 640px) { .clients { grid-template-columns: repeat(2, 1fr); } }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); counter-reset: step; }
.step { background: var(--panel); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.step .phase { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); display: flex; justify-content: space-between; }
.step h3 { font-size: clamp(24px, 2.4vw, 38px); margin-top: auto; }
.step p { margin: 0; color: #cfcfcf; font-size: 15px; }
@media (max-width: 1000px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* ---------- page header ---------- */
.page-head { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 140px)); padding-bottom: clamp(32px, 5vw, 72px); }
.page-head h1 { font-size: clamp(52px, 13.5vw, 240px); }
.page-head .lede { margin-top: clamp(24px, 3vw, 44px); }

/* ---------- case study ---------- */
.case-hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.case-media { position: absolute; inset: 0; z-index: -2; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%), linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 20%); }
.case-head { position: absolute; left: 0; right: 0; bottom: clamp(14px, 2vw, 28px); }
.case-back { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 16px); color: var(--fg); padding: 8px 12px; border-radius: 999px; background: rgba(18,18,18,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.case-title { font-size: clamp(54px, 12.6vw, 230px); }
.case-title .client-of { display: block; font-family: var(--font-body); font-stretch: 100%; font-variation-settings: normal; font-weight: 500; font-size: clamp(14px, 1.2vw, 17px); text-transform: none; letter-spacing: 0; color: #e4e4e4; margin-bottom: 1em; max-width: 44ch; line-height: 1.3; }
.facts { display: grid; align-content: start; margin: 0; }
.fact { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; border-top: 1px solid var(--line); padding: 12px 0 16px; font-size: 14px; }
.fact dt { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.fact dd { margin: 0; }
@media (max-width: 860px) { .facts { margin-bottom: 8px; } }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(8px, 1vw, 16px); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.gallery figure.full { grid-column: span 2; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } .gallery figure.full { grid-column: auto; } }

.next-project { display: block; border-top: 1px solid var(--line); padding-top: 24px; }
.next-project .display { font-size: clamp(44px, 10vw, 180px); transition: color 0.3s; }
.next-project:hover .display { color: var(--muted); }

/* ---------- prose blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 4vw, 64px); }
.split + .split { margin-top: clamp(48px, 6vw, 96px); }
.split h2 { font-size: clamp(28px, 3.4vw, 54px); }
.prose { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: #dadada; max-width: 62ch; }
.prose p { margin: 0 0 1em; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.person { border-top: 1px solid var(--line); padding-top: 16px; }
.person h3 { font-size: clamp(22px, 2.6vw, 40px); }
.person p { color: var(--muted); margin: 8px 0 0; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-row .k { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.contact-row .v { font-size: clamp(20px, 2.4vw, 36px); letter-spacing: -0.01em; }
a.contact-row:hover .v { color: var(--muted); }
@media (max-width: 640px) { .contact-row { grid-template-columns: 1fr auto; } .contact-row .k { grid-column: 1 / -1; } }

/* ---------- footer ---------- */
.footer { padding-top: clamp(72px, 10vw, 160px); padding-bottom: 20px; }
.footer-cta { display: block; }
.footer-cta .eyebrow { display: block; margin-bottom: 18px; }
.footer-cta .display { font-size: clamp(48px, 11.6vw, 210px); transition: color 0.3s; }
.footer-cta:hover .display { color: var(--muted); }

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-top: clamp(56px, 8vw, 120px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer-cols h2 { font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-cols address { font-style: normal; color: #cfcfcf; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track { gap: 0.9em; font-size: clamp(26px, 3.2vw, 52px); align-items: baseline; }
.marquee-track span { white-space: nowrap; line-height: 1; }
.marquee-track .display { font-size: 1em; }
.marquee-track .serif { font-size: 1.18em; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-media video { transition: opacity 0.3s; transform: none !important; }
  .work-card .media { transition: none; }
}


.founders-photo { width: 100%; max-width: 560px; height: auto; aspect-ratio: 1090 / 1020; object-fit: cover; border-radius: var(--radius); }

/* ---------- intro ---------- */
.intro .lede { max-width: 22ch; font-size: clamp(30px, 4.4vw, 68px); line-height: 1.06; }
.intro-foot { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-top: clamp(40px, 6vw, 96px); padding-top: 20px; border-top: 1px solid var(--line); }
.intro-foot p { margin: 0; max-width: 46ch; color: #cfcfcf; font-size: clamp(16px, 1.3vw, 19px); }
@media (max-width: 640px) { .intro-foot { grid-template-columns: 1fr; } }

/* ---------- page transitions (View Transitions API; no-op where unsupported) ---------- */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-group(site-nav) { animation: none; }
::view-transition-old(root) { animation: vt-out 0.45s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.7s var(--ease) 0.08s both; }
::view-transition-group(*) { animation-duration: 0.75s; animation-timing-function: var(--ease); }
::view-transition-old(*):only-child, ::view-transition-new(*):only-child { animation-duration: 0.45s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-2.5vh); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(4vh); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* logos sized by proportion so each carries similar visual weight */
.client img { max-height: none; height: calc(26px * var(--s, 1)); max-width: 80%; }

/* Portrait (phone) film as a case hero — centred on a panel instead of cropped to the grid */
.gallery figure.portrait { display: flex; justify-content: center; padding: clamp(20px, 4vw, 56px) 16px; }
.gallery figure.portrait video { width: auto; height: min(78vh, 760px); max-width: 100%; border-radius: 18px; object-fit: contain; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.35); }

/* Services — founders / organisations */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 2vw, 24px); }
.mode { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; gap: 14px; }
.mode h3 { font-size: clamp(28px, 3.4vw, 44px); }
.mode p { max-width: 46ch; text-wrap: pretty; }
.mode .mode-proof { margin-top: auto; padding-top: 18px; font-size: 13px; letter-spacing: .02em; opacity: .6; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }

/* ---------- mobile hardening ---------- */
html { overflow-x: clip; }
@media (max-width: 640px) {
  .reel-index { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .reel-index::-webkit-scrollbar { display: none; }
}

/* header gets a soft backdrop once you scroll, so it never collides with headings */
.nav-scrim { position: fixed; inset: 0 0 auto; height: 86px; z-index: 49; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5) 55%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.is-scrolled .nav-scrim { opacity: 1; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .section-head .count { font-family: var(--font-body); font-weight: 400; font-stretch: normal; font-size: 15px; max-width: 34ch; }
}
