/* ============================================================
   3B1 — "Who we are" subpage
   Shares :root vars, reset, .container, .link-hover and the whole
   footer from css/style.css — this file is page-specific only.
   ============================================================ */

/* ============ NAV ============ */

.nav {
  /* sticky over the whole page, fully transparent */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.5vw, 32px) var(--pad);
  font-size: 0.8125rem;
  font-weight: 500;
}

.nav__logo {
  width: clamp(46px, 4.4vw, 64px);
  flex-shrink: 0;
}

.nav__menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(18px, 3vw, 40px);
}

.nav__link.is-active {
  color: rgba(17, 17, 17, 0.35);
  pointer-events: none;
}

.nav__cta {
  flex-shrink: 0;
}

.nav__cta span,
.drawer__submit span,
.menu-drawer__cta span {
  margin-left: 0.6em;
}

/* hamburger — two staggered lines: short one top-right, longer one
   below shifted left (thickness tuned to the site's hairlines) */
.nav__burger {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  padding: 12px 2px;
  flex-shrink: 0;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: width 0.35s ease, transform 0.35s ease;
}

.nav__burger span:nth-child(1) {
  width: 16px;
}

.nav__burger span:nth-child(2) {
  width: 26px;
  transform: translateX(-4px);
}

.nav__burger span:nth-child(3) {
  display: none;
}

.nav__burger:hover span:nth-child(1) {
  width: 26px;
}

.nav__burger:hover span:nth-child(2) {
  transform: translateX(0);
}

/* ============ MENU DRAWER (same skin as the Let's-talk drawer) ============ */

.menu-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 30px);
  margin-top: clamp(28px, 5vh, 48px);
}

.menu-drawer__link {
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
}

.menu-drawer__link.is-active {
  color: rgba(17, 17, 17, 0.35);
  pointer-events: none;
}

.menu-drawer__rule {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: clamp(20px, 4vh, 40px) 0 clamp(14px, 2.5vh, 24px);
}

.menu-drawer__cta {
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  padding: 4px 0;
}

/* case studies list under the main menu: compact two-column grid so the whole drawer fits the screen height */
.menu-drawer__cases-label {
  margin: 0 0 clamp(8px, 1.4vh, 16px);
}

.menu-drawer__cases {
  display: grid;
  grid-template-columns: max-content;
  justify-content: start;
  gap: clamp(4px, 0.8vh, 10px) clamp(10px, 1vw, 14px);
}

.menu-drawer__case {
  white-space: nowrap;
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.3;
  color: #111;
  text-decoration: none;
}

/* Adaptive nav (gallery + case pages): only the BURGER blends —
   difference inverts it against whatever passes underneath (black
   on the white page, white on images). The logo stays out of the
   blend, so it renders normally (black) everywhere. */
.nav--blend {
  color: #fff;
  /* the fixed header creates a stacking context which ISOLATES the
     burger's mix-blend-mode from the page behind it (it stayed plain
     white over white sections). Neutralise the header and fix the
     logo + burger individually so the blend composites against the
     actual page: black over white, inverted over images. */
  position: static;
  padding: 0;
}

.nav--blend .nav__logo {
  position: fixed;
  top: clamp(18px, 2.5vw, 32px);
  left: var(--pad);
  z-index: 10;
}

.nav--blend .nav__burger {
  position: fixed;
  /* centred on the logo, as in the old flex row (burger is 35px tall) */
  top: calc(clamp(18px, 2.5vw, 32px) + clamp(46px, 4.4vw, 64px) / 2 - 17.5px);
  right: var(--pad);
  z-index: 10;
  /* colour driven by JS (initNavContrast): white over imagery, black on
     the white page — no blend, so hues never invert */
  transition: color 0.25s ease;
}

.nav--blend .nav__burger--dark {
  color: #111;
}

.nav--blend .nav__link.is-active {
  color: rgba(255, 255, 255, 0.45);
}

.nav--blend .link-hover:hover,
.nav--blend .link-hover:focus-visible {
  color: rgba(255, 255, 255, 0.6);
}

/* ============ SERVICE PAGES (template V1, 2026-09-28 —
   service-integrated-campaigns.html; 7 planned) ============ */

.svc-hero {
  /* tightened 2026-09-28 — the case tiles must reach the first
     viewport on a laptop screen */
  padding: clamp(170px, 29vh, 280px) var(--pad) clamp(10px, 1.5vh, 20px);
}

.svc-hero__kicker {
  margin-bottom: clamp(12px, 2vh, 20px);
}

.svc-hero__heading {
  font-size: clamp(2.5rem, 6.5vw, 6.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.svc-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vh, 40px) clamp(24px, 3vw, 64px);
  padding: clamp(24px, 4vh, 48px) var(--pad);
}

/* headings dropped (client, 2026-09-28) — body copy only, full width
   (iterations same day: right column → left column → full width) */
.svc-section .svc-section__copy {
  grid-column: 1 / -1;
  max-width: none;
}

.svc-cases {
  padding: clamp(12px, 2.5vh, 28px) var(--pad) clamp(64px, 12vh, 150px);
}

.svc-cases__kicker {
  margin-bottom: clamp(12px, 2vh, 20px);
}

.svc-cases__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.2vw, 20px);
}

.svc-case {
  display: block;
}

.svc-case img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: clamp(14px, 1.6vw, 26px);
  transition: transform 0.5s ease;
}

.svc-case:hover img,
.svc-case:focus-visible img {
  transform: scale(0.985);
}

.svc-case__title {
  margin-top: clamp(12px, 1.6vh, 18px);
  font-size: clamp(1.125rem, 1.7vw, 1.625rem);
  font-weight: 500;
}

.svc-case__cat {
  margin-top: 2px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.45);
}

@media (max-width: 760px) {
  .svc-section,
  .svc-cases__grid {
    grid-template-columns: 1fr;
  }
}

/* ============ TEAM (What we do, 2026-09-28) — scanned polaroids
   scattered on a table (client ref: iStock pile of instax shots);
   overlapping, hand-rotated, hovered one rises to the front ============ */

/* a card in the parallax stack, like the .block sections: pinned for
   one viewport, the footer slides over it while the content drifts */
.team {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  background: var(--color-bg);
  padding: clamp(90px, 14vh, 150px) var(--pad) clamp(28px, 5vh, 56px);
  overflow: hidden;
}

/* heading on top, pile below — the pile takes whatever height is
   left on the pinned screen (.team > … : must outrank the generic
   .block__pin rule defined later) */
.team > .team__pin {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team__intro {
  flex: 0 0 auto;
  margin-bottom: clamp(20px, 3vh, 36px);
}

.team__kicker {
  margin-bottom: clamp(10px, 1.5vh, 16px);
}

/* deliberately small (client) — the polaroids are the hero here */
.team__heading {
  font-size: clamp(1.75rem, 3vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* the "table": a fixed-aspect stage that flexes to the remaining height
   of the pinned screen; width follows from the ratio, capped at 100% */
.team__table {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: auto;
  max-width: 100%;
  aspect-ratio: 16 / 11;
  align-self: center;
}

.team__card {
  position: absolute;
  width: 24%;
  transform: rotate(var(--tilt, 0deg));
  transform-origin: 50% 60%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.056), 0 2px 6px rgba(0, 0, 0, 0.032);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
  cursor: default;
}

/* hover → straighten a touch, lift, and jump to the front of the pile
   (extra specificity: must beat the nth-child z-index rules below) */
.team__table > .team__card:hover,
.team__table > .team__card:focus-within {
  z-index: 20;
  transform: rotate(calc(var(--tilt, 0deg) * 0.25)) scale(1.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.088), 0 6px 14px rgba(0, 0, 0, 0.04);
}

.team__card img {
  width: 100%;
  aspect-ratio: 694 / 859;
  object-fit: cover;
  display: block;
}

/* name + role "written" on the polaroid's white bottom band */
.team__name,
.team__role {
  position: absolute;
  left: 13%;
  right: 13%;
  line-height: 1.2;
}

.team__name {
  bottom: 11.5%;
  font-size: clamp(0.75rem, 1.05vw, 1.05rem);
  font-weight: 500;
}

.team__role {
  bottom: 6%;
  font-size: clamp(0.5rem, 0.6vw, 0.65rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.5);
}

/* the pile — two loose rows, overlapping neighbours, alternating tilt */
.team__card:nth-child(1) { left: 3%;  top: 6%;  --tilt: -8deg; z-index: 1; }
.team__card:nth-child(2) { left: 22%; top: 0%;  --tilt: 5deg;  z-index: 3; }
.team__card:nth-child(3) { left: 43%; top: 9%;  --tilt: -3deg; z-index: 2; }
.team__card:nth-child(4) { left: 65%; top: 2%;  --tilt: 9deg;  z-index: 4; }
.team__card:nth-child(5) { left: 10%; top: 47%; --tilt: 6deg;  z-index: 6; }
.team__card:nth-child(6) { left: 31%; top: 53%; --tilt: -6deg; z-index: 5; }
.team__card:nth-child(7) { left: 53%; top: 49%; --tilt: 4deg;  z-index: 8; }
.team__card:nth-child(8) { left: 72%; top: 44%; --tilt: -9deg; z-index: 7; }

/* Desktop: five in the first row, four centred in the second, cards close together */
@media (min-width: 761px) {
  .team__table {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: auto;
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 12px 1%;
  }

  /* beats the old absolute pile positions (nth-child left/top) */
  .team__table > .team__card {
    position: relative;
    left: auto;
    top: auto;
    width: 19%;
  }

  /* crop the white border under each photo so the name sits closer */
  .team__table > .team__card img {
    aspect-ratio: 1 / 1;
    object-position: center top;
  }

  /* name and role sit below the photo, in normal flow (no overlap) */
  .team__card .team__name,
  .team__card .team__role {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0 4%;
  }

  .team__card .team__name {
    margin-top: 12px;
  }

  .team__card .team__role {
    margin: 4px 0 18px;
  }
}

@media (max-width: 760px) {
  /* no room for a pile or a pinned screen
  /* phone team: names and roles under each photo, not on top of it */
  .team__table > .team__card img {
    aspect-ratio: 1 / 1;
    object-position: center top;
  }

  .team__table > .team__card .team__name,
  .team__table > .team__card .team__role {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0 4%;
  }

  .team__table > .team__card .team__name {
    margin-top: 10px;
  }

  .team__table > .team__card .team__role {
    margin: 2px 0 14px;
    font-size: 0.6rem;
    line-height: 1.3;
  }

  /* the 100vh spacer only exists to keep the pinned desktop sections in place */
  .scroll-hold {
    display: none;
  }

  /* team on phones: fully in flow, nothing sticky or fixed-height, so the footer waits for the whole grid */
  .team,
  .team > .team__pin,
  .team__table,
  .team__intro {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  /* "After all" must scroll away like the rest of the page, not stay pinned */
  .block--after {
    position: relative;
    top: auto;
    height: auto;
    min-height: 60vh;
  }
 — plain scrolling section,
     2-column grid, no tilt */
  .team {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .team > .team__pin {
    display: block;
  }

  .team__table {
    width: 100%;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .team__card {
    position: static;
    width: auto;
    --tilt: 0deg;
    box-shadow: none;
  }

  .team__table > .team__card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ============ TEXT BLOCKS (intro / talk / after) ============ */

.block {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-inline: var(--pad);
  background: var(--color-bg);
}

/* The drift tween targets this wrapper, NOT the section — the
   section's solid background must keep covering the cards below. */
.block__pin {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
  will-change: transform;
}

/* Every section is a card in a parallax stack: it pins under the
   page (sticky) and the next one slides over it, while JS drifts
   the frozen content away — same mechanic as the homepage. */
.block--intro {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-top: clamp(90px, 14vh, 160px);
}

/* Content sits at the bottom of the viewport, right above the rule —
   the auto margin on the heading soaks up all the slack above it. */
.block--intro .block__heading {
  margin-top: auto;
}

.block--intro .block__bottom {
  margin-top: clamp(28px, 6vh, 72px);
}

.block__heading {
  font-size: clamp(2.5rem, 7vw, 7.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.block__copy {
  margin-top: clamp(28px, 6vh, 64px);
  /* sized so the longest intro line spans nearly the full content
     width (tuned against "Like it or not, …" — don't bump without
     checking it still fits on one line) */
  font-size: clamp(1.25rem, 2.55vw, 3.5rem);
  font-weight: 400;
  line-height: 1.4;
}

.block__bottom {
  margin-top: auto;
  padding-bottom: clamp(20px, 4vh, 40px);
}

.block__rule {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin-bottom: clamp(18px, 4vh, 44px);
}

.block__arrow {
  font-size: var(--text);
  display: inline-block;
}

/* Talk section — right-aligned column */

.block--talk {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}

/* Content bottom-anchored above the rule — same distance as the
   intro section (identical .block__bottom margin). */
.block__talk-inner {
  margin-top: auto;
  text-align: right;
}

.block--talk .block__bottom {
  margin-top: clamp(28px, 6vh, 72px);
}

/* Invisible scroll distance behind a pinned section — one viewport
   of "hold" before the next card slides over it (used after the
   Talk and After-all sections). */
.scroll-hold {
  height: 100vh;
  height: 100svh;
}

.no-motion .scroll-hold {
  display: none;
}

/* Same size as .block__copy — alignment differs; line breaks are
   explicit <br>, so no max-width */
.block__copy--sub {
  margin-left: auto;
}

/* After all — centered closer */

.block--after {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  text-align: center;
}

.block--after .block__pin {
  align-items: center;
  justify-content: center;
}

/* Same size as .block__copy */
.block__kicker {
  font-size: clamp(1.25rem, 2.55vw, 3.5rem);
  font-weight: 400;
  margin-bottom: clamp(10px, 2vh, 24px);
}

/* "3B1" set in running text (Poppins). Measured at 72px: the ink gap
   3→B is 9.1px but B→1 only 5.7px (the "1" hugs the B), and the figures
   overshoot the cap height (3: 53.8px, 1: 52.3px vs B: 50px), so the B
   reads smaller. Fix: B up 6% to the figures' height, the "1" nudged
   right so both gaps match (~0.047em). Equal-width cells were tried and
   rejected (client: "dragged"). Markup: <span class="w wordmark">
   <span class="wordmark__c">3</span>…</span> — the outer .w keeps it in
   the word reveal (splitWords clones element nodes as-is). */
.wordmark__c {
  display: inline;
}

.wordmark__c:nth-child(2) {
  font-size: 1.06em;
}

.wordmark__c:nth-child(3) {
  margin-left: 0.047em;
}

/* ============ WORD REVEAL (scroll) ============ */

[data-words] .w {
  display: inline-block;
  opacity: 0.14;
}

.no-motion [data-words] .w {
  opacity: 1;
}

/* ============ SHOWREEL — fullscreen scroll-scrubbed video ============ */

.vid {
  /* short track — the clip is 4s; less scrolling to finish it */
  height: 160vh;
  /* sticky with a negative top: after its track the section freezes
     and the next card slides over it (same as the other cards) */
  position: sticky;
  top: calc(100vh - 160vh);
  top: calc(100svh - 160vh);
  background: var(--color-bg);
}

.vid__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  /* hairline inset + rounded video — same tile recipe as the flow
     gallery cards and the case-study media */
  padding: clamp(10px, 1.2vw, 20px);
  background: var(--color-bg);
}

.vid__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(14px, 1.6vw, 26px);
}

.no-motion .vid {
  position: static;
  height: auto;
}

.no-motion .vid__sticky {
  position: static;
  height: 70vh;
}

/* ============ ZOOM GALLERY (Leksa-style centre expand) ============ */

.zoom {
  height: 250vh;
  /* Sticky with a negative top (homepage-reveal trick): scrolls
     through its track, then freezes so the next card covers it. */
  position: sticky;
  top: calc(100vh - 250vh);
  top: calc(100svh - 250vh);
  background: var(--color-bg);
}

.zoom__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.zoom__row {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad);
  gap: clamp(16px, 2.5vw, 40px);
}

.zoom__row figure {
  margin: 0;
  overflow: hidden;
}

.zoom__row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoom__side {
  width: min(26vw, 44vh);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

/* The centre figure sits above the row, dead-centre, and is grown by
   the scrub from card size to the full viewport. */
.zoom__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(32vw, 54vh);
  aspect-ratio: 1 / 1;
  z-index: 2;
  will-change: width, height;
}

/* ============ PORTFOLIO ARCHIVE — obys-style centred flow:
   looped scroll gallery of equal squares, grayscale until hover,
   centre card enlarged; client list left, category + number right,
   vertical/horizontal switch bottom-left ============ */

.flow {
  position: relative;
  background: var(--color-bg);
}

/* "Infinite" scroll runway */
.flow__spacer {
  height: 50000px;
}

.flow__viewport {
  /* width of the white column on the left that holds the rail;
     the card area spans from its edge to the right screen edge */
  --flow-rail: clamp(300px, 23vw, 460px);
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--color-bg);
}

.flow__stage {
  position: absolute;
  inset: 0;
}

.flow__card {
  position: absolute;
  /* centred inside the area right of the rail column; a hairline
     inset (like the case-study tiles) keeps the rounded corners
     visible instead of clipping at the viewport edges */
  --flow-inset: clamp(10px, 1.2vw, 20px);
  left: calc(var(--flow-rail) + (100vw - var(--flow-rail)) / 2);
  top: 50%;
  width: calc(100vw - var(--flow-rail) - 2 * var(--flow-inset));
  height: calc(100vh - 2 * var(--flow-inset));
  height: calc(100svh - 2 * var(--flow-inset));
  overflow: hidden;
  display: block;
  will-change: transform;
  border-radius: clamp(14px, 1.6vw, 26px);
}

.flow__card img,
.flow__card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* left rail: category filter + client list */
.flow__rail {
  position: absolute;
  left: var(--pad);
  /* spans from just under the fixed logo to the bottom of the viewport
     and centres its content inside — it can never slide under the logo
     (was top:50% + translateY(-50%), which did on laptop screens) */
  top: calc(clamp(18px, 2.5vw, 32px) + clamp(46px, 4.4vw, 64px) + 14px);
  bottom: clamp(16px, 3vh, 32px);
  z-index: 60; /* above the cards (z <= 50) — full-bleed cards would cover it */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.5vh, 24px);
}

/* short laptop screens: the rail (8 filters + 11 projects) is centred and
   was sliding under the fixed logo — tighter type keeps it clear */
@media (max-height: 820px) {
  .flow__filter {
    font-size: 0.875rem;
  }

  .flow__list {
    font-size: 0.9375rem;
  }
}

@media (max-height: 740px) {
  .flow__filter button,
  .flow__list button {
    line-height: 1.3;
  }

  .flow__filter,
  .flow__list {
    gap: 1px;
  }
}

.flow__filter {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.flow__filter-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.4);
  margin-bottom: 6px;
}

.flow__filter button {
  text-align: left;
  padding: 1px 0;
  color: rgba(17, 17, 17, 0.3);
  transition: color 0.3s ease;
}

.flow__filter button:hover {
  color: rgba(17, 17, 17, 0.6);
}

.flow__filter button.is-active {
  color: var(--color-ink);
}

.flow__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 1.0625rem;
  font-weight: 500;
  border-top: 1px solid var(--color-line);
  padding-top: clamp(12px, 2vh, 20px);
}

.flow__list button {
  text-align: left;
  padding: 1px 0;
  color: rgba(17, 17, 17, 0.3);
  transition: color 0.3s ease;
}

.flow__list button:hover {
  color: rgba(17, 17, 17, 0.6);
}

.flow__list button.is-active {
  color: var(--color-ink);
}

/* category + number — sits ON the image: plain white text (no chip,
   per client), just a whisper of shadow so it holds on light frames */
.flow__meta {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  text-align: right;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.flow__meta-num {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}

/* "Show more" — plain white label trailing the cursor over cards */
.flow__cursor {
  position: fixed;
  left: 22px; /* offset from the pointer tip */
  top: 26px;
  z-index: 70;
  pointer-events: none;
  font-size: 2.4375rem; /* 3× the small-label size, per client */
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.flow__cursor.is-on {
  opacity: 1;
}

.no-motion .flow__spacer,
.no-motion .flow__rail,
.no-motion .flow__meta {
  display: none;
}

.no-motion .flow__viewport {
  position: static;
  height: auto;
}

.no-motion .flow__stage {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 140px var(--pad) 64px;
}

/* phones: the Cork card crops to the figure, as in the approved portrait look */
@media (max-width: 767px) {
  .flow__card[href="/cork-midsummer-festival"] img {
    object-position: 90% center;
  }
}

.no-motion .flow__card {
  position: static;
  transform: none !important;
  width: 45%;
  height: auto;
  aspect-ratio: 3 / 2;
}

/* ============ CONTACT PAGE ============ */

.block--contactinfo {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}

.block--contactinfo .block__pin {
  justify-content: center;
}

.contact__label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: clamp(32px, 7vh, 72px);
}

.contact__grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 64px);
  /* the form moved above the grid (2026-09-03) — the rule that used
     to sit on the form now separates the grid from it */
  border-top: 1px solid var(--color-line);
  padding-top: clamp(28px, 5vh, 56px);
  margin-bottom: clamp(40px, 9vh, 96px);
}

.contact__item-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.55);
  margin-bottom: 10px;
}

.contact__value {
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
}

.contact__value a {
  display: block;
}

.contact__locations {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 8vw, 160px);
  border-top: 1px solid var(--color-line);
  padding-top: clamp(28px, 5vh, 56px);
}

.contact__address {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
  font-style: normal;
}

.contact__time {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: rgba(17, 17, 17, 0.55);
  font-variant-numeric: tabular-nums;
}

/* inline contact form — same skin as the Let's-talk drawer fields;
   sits at the TOP of the card now, under its own heading */
.contact__form-heading {
  font-size: clamp(1.75rem, 3.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: clamp(24px, 5vh, 48px);
}

.contact__form {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: clamp(20px, 2.5vw, 48px);
  margin-bottom: clamp(40px, 9vh, 96px);
}

.contact__form-field {
  flex: 1 1 180px;
}

.contact__form-field--wide {
  flex: 2 1 320px;
}

.contact__form .drawer__submit {
  flex-shrink: 0;
  padding-bottom: 10px; /* baseline-aligns with the input underlines */
}

.contact__form .drawer__msg {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
}

/* ---- two-column layout (2026-09-30): form left, details right.
   Scoped to the contact page — the case-study .cs-footer reuses the
   .contact__* classes with its own row layout. ---- */
.block--contactinfo .contact__layout {
  display: grid;
  /* equal columns, equal height: the details column stretches to the
     form column and pins the addresses to its bottom edge (client) */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: stretch;
  padding-top: clamp(90px, 14vh, 150px);
}

.block--contactinfo .contact__col--details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* the form column fills the same height: heading + question on top,
   the Next / Send row pinned to the bottom edge (level with the
   addresses' "local time" line) */
.block--contactinfo .contact__col--form {
  display: flex;
  flex-direction: column;
}

.block--contactinfo .contact__form.cform {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  /* the generic .contact__form is a wrapping row aligned to flex-end —
     as a column that would shrink every child to the right edge */
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
}

.block--contactinfo .contact__form.cform .cform__nav {
  margin-top: auto;
}

.block--contactinfo .contact__form.cform.is-done {
  display: block;
}

.block--contactinfo .contact__form-heading {
  margin-bottom: clamp(24px, 4vh, 40px);
}

/* the form stacks like the Let's-talk drawer: one field per line */
.block--contactinfo .contact__form {
  display: block;
  margin-bottom: 0;
}

.block--contactinfo .contact__form .drawer__textarea {
  min-height: clamp(72px, 10vh, 110px);
}

/* Next / Send share the Back button's box exactly (the drawer submit
   carries 12px/8px top spacing that would sit it lower than Back) */
.block--contactinfo .contact__form .drawer__submit {
  padding: 4px 0;
  margin-top: 0;
  letter-spacing: 0.14em;
  line-height: 18px;
}

.block--contactinfo .contact__form .drawer__msg {
  position: static;
  margin-top: 14px;
}

/* ---- pathway form (2026-09-30): one question per step, counter +
   hairline progress bar, GSAP slide/fade between steps (subpage.js
   initPathForm). Skin = the Let's-talk drawer fields. ---- */
.cform__head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 24px);
  margin-bottom: clamp(28px, 5vh, 48px);
}

.cform__count {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cform__bar {
  flex: 1;
  height: 1px;
  background: var(--color-line);
  position: relative;
}

.cform__bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--color-ink);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cform__track {
  position: relative;
  /* sized for the tallest step (two-line question + textarea) — steps
     overlap absolutely so two can cross-fade during a transition */
  min-height: clamp(190px, 27vh, 250px);
}

.cform__step {
  position: absolute;
  inset: 0 0 auto 0;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.cform__step.is-active {
  z-index: 1;
}

/* the question — sized like the case-study description headings */
.cform__q {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: clamp(18px, 3vh, 30px);
}

.block--contactinfo .contact__form .cform__input {
  font-size: clamp(1.0625rem, 1.3vw, 1.3125rem);
  padding: 10px 0 14px;
}

.cform__input::placeholder {
  color: rgba(17, 17, 17, 0.3);
}

.block--contactinfo .contact__form .cform__input.drawer__textarea {
  min-height: clamp(84px, 12vh, 130px);
}

.block--contactinfo .contact__form .cform__msg {
  margin: 14px 0 0;
  min-height: 1.4em;
  font-size: clamp(0.9375rem, 1.1vw, 1.125rem);
  font-weight: 500;
  color: #111;
}

.cform__nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  margin-top: clamp(16px, 2.5vh, 28px);
}

/* 1024px to 1440px: lift the Next / Send row off the bottom edge so it stays on screen */
@media (min-width: 1024px) and (max-width: 1440px) {
  .block--contactinfo .contact__layout {
    padding-bottom: clamp(40px, 9vh, 90px);
  }
}

/* laptop-height screens: move the form up so the Send button and the
   "message sent" line are both visible without scrolling */
@media (min-width: 761px) and (max-height: 900px) {
  .block--contactinfo .contact__layout {
    padding-top: clamp(80px, 10vh, 100px);
  }

  .cform__track {
    min-height: clamp(150px, 20vh, 190px);
  }
}

.cform__back {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 18px;
  color: rgba(17, 17, 17, 0.55);
  padding: 4px 0;
}

.cform__back span {
  margin-right: 0.5em;
}

.cform__hint {
  margin-left: auto;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgba(17, 17, 17, 0.35);
  white-space: nowrap;
}

/* success state replaces the whole form */
.cform__done-title {
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: clamp(12px, 2vh, 18px);
}

.cform__done-copy {
  font-size: clamp(1rem, 1.2vw, 1.3125rem);
  line-height: 1.55;
  max-width: 26em;
}

.cform.is-done .cform__head,
.cform.is-done .cform__track,
.cform.is-done .cform__nav,
.cform.is-done .cform__msg {
  display: none;
}

@media (max-width: 760px) {
  .cform__hint {
    display: none;
  }
}

/* details column: everything stacked, the rule sits between the
   contact row and the two addresses only */
.block--contactinfo .contact__grid {
  flex-direction: column;
  gap: clamp(22px, 3.5vh, 36px);
  border-top: 0;
  padding-top: 0;
  margin-bottom: clamp(28px, 4.5vh, 44px);
}

.block--contactinfo .contact__locations {
  flex-wrap: nowrap;
  gap: clamp(28px, 4vw, 64px);
  padding-top: clamp(24px, 4vh, 40px);
}

.block--contactinfo .contact__location {
  flex: 1 1 0;
}

@media (max-width: 900px) {
  .block--contactinfo .contact__layout {
    grid-template-columns: 1fr;
    gap: clamp(40px, 7vh, 64px);
  }

  .block--contactinfo .contact__col--details,
  .block--contactinfo .contact__col--form,
  .block--contactinfo .contact__form.cform {
    display: block;
  }

  .block--contactinfo .contact__form.cform .cform__nav {
    margin-top: clamp(16px, 2.5vh, 28px);
  }
}

.no-motion .block--contactinfo {
  position: static;
  height: auto;
  min-height: 100svh;
}

/* ============ CASE FOOTER — clean contact strip (case studies) ============
   Reuses the contact page's .contact__* skins; the grid's border-top
   doubles as the separator under the prev/next nav. */
.cs-footer {
  /* the V1 card stack pins sticky sections under the page — the
     footer must be positioned (z-2) to slide over them, like the
     old video footer was */
  position: relative;
  z-index: 2;
  background: var(--color-bg);
  padding: clamp(40px, 8vh, 96px) var(--pad) clamp(48px, 9vh, 104px);
}

/* copyright and privacy link under the contact grid: one line, small, same as the home footer */
.cs-footer .footer__copyright {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 18px;
}
.cs-footer .footer__copyright .footer__copy,
.cs-footer .footer__copyright a {
  display: inline !important;
  width: auto !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  white-space: nowrap;
}

.cs-footer .contact__grid {
  margin-bottom: clamp(20px, 3.5vh, 40px);
}

/* email + phone stacked in one column (client, 2026-09-15); the column
   stretches to the row height, and space-between pins Call us to the
   bottom so both columns read as equal in height */
.contact__stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

/* no second rule above Office/Studio in the case footer (client),
   and the locations sit closer to the contact row */
.cs-footer .contact__locations {
  border-top: 0;
  padding-top: 0;
}

/* ============ LET'S TALK DRAWER ============ */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 0.65s;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.32);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.drawer.is-open .drawer__scrim {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 92vw);
  background: #fff;
  border-left: 1px solid var(--color-line);
  padding: clamp(28px, 4vw, 56px);
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__close {
  position: absolute;
  top: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  padding: 8px;
  transition: color 0.3s ease;
}

.drawer__close:hover {
  color: var(--color-accent);
}

.drawer__label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: clamp(20px, 3vh, 32px);
}

.drawer__about {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: clamp(32px, 5vh, 56px);
}

.drawer__field {
  display: block;
  margin-bottom: clamp(22px, 3.5vh, 34px);
}

.drawer__field-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.55);
  margin-bottom: 6px;
}

.drawer__input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  padding: 8px 0 10px;
  outline: none;
  transition: border-color 0.3s ease;
}

.drawer__input:focus {
  border-color: var(--color-ink);
}

.drawer__textarea {
  resize: vertical;
  min-height: 96px;
}

.drawer__submit {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 0;
  margin-top: 8px;
}

.drawer__msg {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-top: 14px;
  min-height: 1.2em;
}

html.drawer-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .drawer,
  .drawer__scrim,
  .drawer__panel {
    transition: none;
  }
}

/* ============ CASE STUDY (template: case-beamish.html) ============
   Every section is a [data-card] in the same parallax stack as the
   other subpages; the drift targets .card__pin / .block__pin. */

/* hero — full-bleed image with the project title on it */
.case-hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--color-bg);
}

.case-hero .card__pin,
.case-next .card__pin {
  position: relative;
  height: 100%;
  will-change: transform;
}

.case-hero__img,
.case-next__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* readability scrim behind the white title */
.case-hero__scrim,
.case-next__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 45%);
}

.case-hero__content {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(28px, 6vh, 64px);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}

.case-hero__title {
  font-size: clamp(3rem, 9vw, 9.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.case-kicker {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.case-hero__meta {
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: right;
  opacity: 0.85;
}

/* text cards — same skin as .block, nav clearance on top */
.block--case {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-top: clamp(90px, 14vh, 160px);
}

.block--case .block__heading {
  max-width: 11em;
}

/* case body copy is real paragraphs — smaller than .block__copy,
   capped for measure */
.case-copy {
  margin-top: clamp(24px, 5vh, 48px);
  font-size: clamp(1.125rem, 1.7vw, 1.75rem);
  font-weight: 400;
  line-height: 1.55;
  max-width: 36em;
}

/* alternate: content column pushed right */
.block--case-right .block__heading,
.block--case-right .case-copy {
  margin-left: auto;
}

.block--case-right .block__heading {
  text-align: right;
}

/* client / scope / year row */
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 6vw, 96px);
  margin-top: clamp(24px, 5vh, 48px);
}

.case-meta div {
  font-size: 0.9375rem;
  font-weight: 500;
}

.case-meta dt {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.45);
  margin-bottom: 6px;
}

/* headline results — bottom of the intro card */
.case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 8vw, 128px);
}

.case-stat__num {
  font-size: clamp(2.25rem, 5.5vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
}

.case-stat__label {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: rgba(17, 17, 17, 0.55);
}

/* full-bleed image card */
.case-img {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--color-bg);
}

.case-img .card__pin {
  height: 100%;
  will-change: transform;
  display: flex;
}

.case-img .card__pin > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* duo variant: two square images side by side on white */
.case-img--duo .card__pin {
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 48px);
  padding-inline: var(--pad);
}

.case-img--duo .card__pin > img {
  width: min(38vw, 72vh);
  height: auto;
  aspect-ratio: 1;
}

/* next-project card — full-bleed image, whole card is the link */
.case-next {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--color-bg);
}

.case-next__link {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(28px, 6vh, 64px);
  color: #fff;
}

.case-next__title {
  margin-top: 10px;
  font-size: clamp(2.5rem, 7vw, 7.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.case-next__title span {
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 0.35s ease;
}

.case-next__link:hover .case-next__title span,
.case-next__link:focus-visible .case-next__title span {
  transform: translate(6px, -6px);
}

/* reduced motion / no-JS: everything static */
.no-motion .case-hero,
.no-motion .block--case,
.no-motion .case-img,
.no-motion .case-next {
  position: static;
  height: auto;
  min-height: 100svh;
}

.no-motion .case-img,
.no-motion .case-next {
  min-height: 70svh;
}

/* ============ CASE STUDY V2 — portorocha-style flowing page
   (template: case-cork.html). Full-width media, no card stack:
   hero image with the tagline on it, services + copy under it,
   then a stack of full-bleed images/videos, stats, prev/next. */

.cs-hero {
  position: relative;
}

.cs-hero > img {
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  object-fit: cover;
}

/* tagline sits ON the image, starting at the page's midline —
   mirrors the reference layout (copy below starts at the same x) */
.cs-hero__text {
  position: absolute;
  left: 50%;
  right: var(--pad);
  bottom: clamp(32px, 9vh, 110px);
  color: #fff;
}

.cs-hero__heading {
  font-size: clamp(1.75rem, 3.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.cs-hero__kicker {
  margin-bottom: clamp(12px, 2vh, 20px);
}

/* description: services list left, copy right (starts at 50%) */
.cs-desc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vh, 48px) clamp(24px, 3vw, 64px);
  padding: clamp(56px, 11vh, 150px) var(--pad);
  background: var(--color-bg);
}

.cs-desc__heading {
  font-size: clamp(1.75rem, 3vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: clamp(18px, 3vh, 32px);
}

.cs-desc__services {
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.85;
  margin-bottom: clamp(36px, 6.5vh, 72px);
}

/* results moved into the description column (2026-09-03) —
   smaller numbers than the old bottom section */
.cs-desc__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 56px);
}

.cs-desc__stats .case-stat__num {
  font-size: clamp(1.75rem, 2.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.cs-desc__stats .case-stat__label {
  margin-top: 2px;
  font-size: 0.9375rem;
  color: rgba(17, 17, 17, 0.55);
}

.cs-desc__copy {
  font-size: clamp(1rem, 1.2vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.55;
  max-width: 46em;
  /* 50px narrower on the right so the text ends before the menu icon */
  margin-right: 50px;
}

.cs-desc__copy p + p {
  margin-top: 1.4em;
}

/* full-width media stack — rounded tiles with a hairline inset so
   the corners don't clip at the viewport edge */
.cs-media {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 20px);
  padding-inline: clamp(10px, 1.2vw, 20px);
  background: var(--color-bg);
}

.cs-media img,
.cs-media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 1.6vw, 26px);
}

.cs-row {
  display: grid;
  gap: clamp(10px, 1.2vw, 20px);
  align-items: stretch;
}

.cs-row--2 {
  grid-template-columns: 1fr 1fr;
}

.cs-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.cs-row--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* square tiles (Murphy's): images keep a 1:1 frame */
.cs-row--square img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.cs-row img,
.cs-row video {
  height: 100%;
  object-fit: cover;
}

/* video wrapper — carries the tap-for-sound hint */
.cs-vid {
  position: relative;
}

.cs-vid__hint {
  position: absolute;
  left: clamp(14px, 1.5vw, 24px);
  bottom: clamp(14px, 1.5vw, 24px);
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  pointer-events: none;
}

.cs-vid[data-has-sound] video {
  cursor: pointer;
}

/* social-post carousel — three 4:5 cells per view, the rest slide
   in from the right (arrows + mouse drag; native swipe on touch) */
/* the carousel pins fullscreen and vertical scroll rides the track
   horizontally (relats.com mechanic) — JS extends .cs-carousel's
   height by the track's horizontal overflow */
.cs-carousel {
  position: relative;
}

.cs-carousel__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-bg);
  overflow: hidden;
}

.cs-carousel__track {
  display: flex;
  gap: clamp(10px, 1.2vw, 20px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.no-motion .cs-carousel__sticky {
  position: static;
  height: auto;
  padding-block: 24px;
}

.cs-carousel__track::-webkit-scrollbar {
  display: none;
}

.cs-carousel__cell {
  flex: 0 0 calc((100% - 2 * clamp(10px, 1.2vw, 20px)) / 3);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: clamp(14px, 1.6vw, 26px);
}

.cs-carousel__cell img,
.cs-carousel__cell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* square cells (1:1 artwork that must not be cropped) */
.cs-carousel--sq .cs-carousel__cell {
  aspect-ratio: 1 / 1;
}

/* story cells — 9:16 graphics, four per view so they fit the pin */
.cs-carousel--story .cs-carousel__cell {
  flex-basis: calc((100% - 3 * clamp(10px, 1.2vw, 20px)) / 4);
  aspect-ratio: 9 / 16;
}

@media (max-width: 760px) {
  /* one full cell + a peek of the next on small screens */
  .cs-carousel__cell {
    flex-basis: 72%;
  }

  /* phones: plain swipeable row, portrait cards, in the page flow */
  .cs-carousel__sticky {
    position: relative;
    top: auto;
    height: auto;
    padding-block: 24px;
  }

  .cs-carousel .cs-carousel__cell {
    aspect-ratio: 4 / 5;
  }

  .cs-carousel--story .cs-carousel__cell {
    flex-basis: 60%;
  }
}

/* results moment */
.cs-stats {
  padding: clamp(64px, 14vh, 180px) var(--pad);
  background: var(--color-bg);
}

.cs-stats .block__heading {
  margin-bottom: clamp(36px, 7vh, 80px);
}

.cs-stats__closer {
  margin-top: clamp(36px, 7vh, 80px);
  /* same size as the sub-copy on the "What we do" page (.block__copy) */
  font-size: clamp(1.25rem, 2.55vw, 3.5rem);
  line-height: 1.4;
}

/* prev / next case study */
.cs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-bg);
}

.cs-nav__link {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(28px, 5vh, 56px) var(--pad);
}

.cs-nav__link--next {
  flex-direction: row-reverse;
  text-align: right;
}

.cs-nav__thumb {
  width: clamp(72px, 8vw, 120px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: clamp(8px, 0.8vw, 12px);
}

.cs-nav__label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.45);
  margin-bottom: 6px;
}

.cs-nav__title {
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.cs-nav__link:hover .cs-nav__title,
.cs-nav__link:focus-visible .cs-nav__title {
  color: var(--color-accent);
}

@media (max-width: 760px) {
  .cs-hero__text {
    left: var(--pad);
  }

  .cs-desc {
    grid-template-columns: 1fr;
  }

  .cs-row--2,
  .cs-row--3 {
    grid-template-columns: 1fr;
  }

  /* phones: four-up row becomes two per line */
  .cs-row--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* phones: previous and next side by side */
  .cs-nav {
    grid-template-columns: 1fr 1fr;
  }

  .cs-nav__link {
    padding: 24px 14px;
    gap: 10px;
  }

  .cs-nav__thumb {
    display: none;
  }

  .cs-nav__title {
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .cs-nav__label {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }


}

/* ============ Responsive ============ */

@media (max-width: 900px) {
  .nav__menu {
    position: static;
    transform: none;
  }

  .nav__cta {
    display: none;
  }
}

/* Narrow screens: no room for a side column — cards go full-bleed and
   the rail overlays the images (white + difference, like the nav) */
@media (max-width: 760px) {
  .flow__viewport {
    --flow-rail: 0px;
  }

  .flow__rail {
    mix-blend-mode: difference;
  }

  .flow__filter-label {
    color: rgba(255, 255, 255, 0.5);
  }

  .flow__filter button,
  .flow__list button {
    color: rgba(255, 255, 255, 0.45);
  }

  .flow__filter button.is-active,
  .flow__list button.is-active {
    color: #fff;
  }

  .flow__list {
    border-top-color: rgba(255, 255, 255, 0.35);
  }
}

@media (max-width: 560px) {
  .nav__menu {
    gap: 14px;
  }

  .zoom {
    height: 220vh;
    top: calc(100vh - 220vh);
    top: calc(100svh - 220vh);
  }

  .zoom__side {
    width: min(30vw, 26vh);
  }

  .zoom__center {
    width: min(44vw, 34vh);
  }

  /* duo images stack on small screens */
  .case-img--duo .card__pin {
    flex-direction: column;
  }

  .case-img--duo .card__pin > img {
    width: min(78vw, 40vh);
  }

  /* the contact grid won't fit one viewport on small screens —
     drop the pin there and let it flow */
  .block--contactinfo {
    position: static;
    height: auto;
    min-height: 100svh;
    padding-block: 0 48px;
  }

  .block--contactinfo .contact__locations {
    flex-wrap: wrap;
  }
}

/* ============ BLOG (2026-10-12) — archive (blog.html) + single post
   (post-*.html, generated by HANDOFF/tools/blog-build.py). Same bones
   as the service pages: plain nav, kicker + big heading, rounded 3:2
   tiles, cs-footer. ============ */
.blog-hero {
  padding: clamp(170px, 29vh, 280px) var(--pad) clamp(28px, 4vh, 48px);
}

.blog-hero__kicker {
  margin-bottom: clamp(12px, 2vh, 20px);
}

.blog-hero__heading {
  font-size: clamp(2.5rem, 6.5vw, 6.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

/* tag filter — same voice as the gallery rail: uppercase kickers,
   the active one in ink, the rest at 45% */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(16px, 1.8vw, 28px);
  padding: 0 var(--pad) clamp(28px, 5vh, 56px);
}

.blog-filter__btn {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.45);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.blog-filter__btn:hover,
.blog-filter__btn:focus-visible,
.blog-filter__btn.is-active {
  color: var(--color-ink);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vh, 56px) clamp(10px, 1.2vw, 20px);
  padding: 0 var(--pad) clamp(64px, 12vh, 150px);
}

.blog-card {
  display: block;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: clamp(14px, 1.6vw, 26px);
  background: #111;
  transition: transform 0.5s ease;
}

.blog-card:hover img,
.blog-card:focus-visible img {
  transform: scale(0.985);
}

.blog-card__meta {
  margin-top: clamp(12px, 1.6vh, 18px);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(17, 17, 17, 0.45);
}

.blog-card__title {
  margin-top: 6px;
  font-size: clamp(1.0625rem, 1.35vw, 1.375rem);
  font-weight: 500;
  line-height: 1.3;
}

.blog-empty {
  padding: 0 var(--pad) clamp(64px, 12vh, 150px);
  color: rgba(17, 17, 17, 0.55);
}

/* ---- single post ---- */
.post-hero {
  padding: clamp(150px, 24vh, 240px) var(--pad) clamp(28px, 4.5vh, 48px);
}

.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-bottom: clamp(16px, 2.4vh, 26px);
  color: rgba(17, 17, 17, 0.55);
}

.post-hero__meta span + span::before {
  content: "\00b7";
  margin: 0 0.7em;
}

.post-hero__meta a:hover {
  color: var(--color-accent);
}

.post-hero__heading {
  font-size: clamp(2.125rem, 4.6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 15em;
}

/* cover left (half the viewport, sticky while the copy scrolls) +
   body right — client, 2026-10-12. The image sits in the same inset as
   the case-study tiles; the copy column keeps the page inset (--pad). */
.post-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 clamp(32px, 4vw, 80px);
  align-items: start;
  padding: clamp(16px, 3vh, 40px) var(--pad) clamp(40px, 7vh, 80px) clamp(10px, 1.2vw, 20px);
}

.post-split--text {
  grid-template-columns: 1fr;
  padding-left: var(--pad);
}

.post-split__media {
  position: sticky;
  top: clamp(16px, 3vh, 40px);
}

.post-split__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - 2 * clamp(16px, 3vh, 40px));
  object-fit: cover;
  border-radius: clamp(14px, 1.6vw, 26px);
  background: #111;
}

.post-body {
  min-width: 0;
  padding-top: clamp(4px, 1vh, 12px);
}

.post-body .cs-desc__copy {
  max-width: 46em;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.post-body h2 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); margin: 1.8em 0 0.6em; }
.post-body h3 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); margin: 1.7em 0 0.55em; }
.post-body h4 { font-size: 1.1em; font-weight: 500; margin: 1.5em 0 0.5em; }

.post-body h2:first-child,
.post-body h3:first-child {
  margin-top: 0;
}

.post-body p + p,
.post-body ul + p,
.post-body ol + p,
.post-body pre + p {
  margin-top: 1.4em;
}

.post-body ul,
.post-body ol {
  margin: 1.4em 0;
  padding-left: 1.3em;
}

.post-body li + li {
  margin-top: 0.5em;
}

.post-body a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.3s ease;
}

.post-body a:hover {
  color: var(--color-accent);
}

.post-body blockquote {
  margin: 1.8em 0;
  padding-left: 1.2em;
  border-left: 2px solid var(--color-ink);
  font-weight: 500;
}

.post-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 1.6vw, 26px);
  margin: 2em 0;
}

.post-body .post__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 2em 0;
  border-radius: clamp(14px, 1.6vw, 26px);
  overflow: hidden;
  background: #111;
}

.post-body .post__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-body pre {
  margin: 1.8em 0;
  padding: clamp(16px, 2vw, 28px);
  background: #111;
  color: #fff;
  border-radius: clamp(14px, 1.6vw, 26px);
  overflow-x: auto;
  font: 0.8125rem / 1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.95em;
}

.post-body th,
.post-body td {
  text-align: left;
  padding: 0.6em 0.8em 0.6em 0;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

.post-tags {
  margin-top: clamp(32px, 5vh, 56px);
  color: rgba(17, 17, 17, 0.45);
}

.post-tags a {
  color: var(--color-ink);
}

.post-tags a:hover {
  color: var(--color-accent);
}

.post-more {
  padding: clamp(12px, 2.5vh, 28px) 0 0;
}

.post-more .svc-cases__kicker {
  padding: 0 var(--pad);
}

.post-more__all {
  padding: 0 var(--pad) clamp(64px, 12vh, 150px);
  margin-top: calc(-1 * clamp(40px, 8vh, 100px));
  font-size: clamp(1.0625rem, 1.35vw, 1.375rem);
  font-weight: 500;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* one column: cover on top (16:9, not sticky), copy below */
  .post-split {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vh, 48px) 0;
    padding-right: clamp(10px, 1.2vw, 20px);
  }

  .post-split--text { padding-left: var(--pad); }
  .post-split__media { position: static; }
  .post-split__media img { aspect-ratio: 16 / 9; max-height: none; }
  .post-body { padding-inline: calc(var(--pad) - clamp(10px, 1.2vw, 20px)); }
}

@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  /* phones: one meta item per line instead of a wrapped dotted row */
  .post-hero__meta { flex-direction: column; gap: 4px; }
  .post-hero__meta span + span::before { content: none; }
}

/* ============ CONTACT PAGE SPLIT (2026-10-02, client) ============
   The viewport is divided in two: the form half stays white, the
   right half (details) is black with white / grey copy. The black
   panel is a pseudo-element on the sticky card, so it spans the full
   100svh regardless of the content height; the two grid columns lose
   their gap and get their own inner padding so the split line sits
   exactly at 50vw and the details copy keeps the page inset (--pad)
   from that line. Scoped to body.page-contact (contact.html only —
   the .cs-footer on case studies reuses .contact__* and stays white). */
.page-contact .block--contactinfo::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: 0;
  background: #111;
}

.page-contact .block--contactinfo .block__pin {
  position: relative;
  z-index: 1;
}

.page-contact .block--contactinfo .contact__layout {
  gap: 0;
}

.page-contact .block--contactinfo .contact__col--form {
  padding-right: clamp(40px, 6vw, 120px);
}

.page-contact .block--contactinfo .contact__col--details {
  padding-left: var(--pad);
  color: #fff;
}

.page-contact .contact__col--details .contact__item-label,
.page-contact .contact__col--details .contact__time {
  color: rgba(255, 255, 255, 0.55);
}

.page-contact .block--contactinfo .contact__locations {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* the fixed burger sits over the black half on desktop */
.page-contact .nav__burger {
  color: #fff;
}

@media (max-width: 900px) {
  /* one column: the details block becomes a full-width black band
     under the form instead of a vertical split */
  .page-contact .block--contactinfo::before {
    display: none;
  }

  .page-contact .block--contactinfo .contact__col--form {
    padding-right: 0;
  }

  .page-contact .block--contactinfo .contact__col--details {
    margin-inline: calc(-1 * var(--pad));
    padding: clamp(40px, 7vh, 64px) var(--pad);
    background: #111;
  }

  .page-contact .nav__burger {
    color: #111;
  }
}

@media (max-width: 760px) {
  /* static card on phones — let the black band run to the page end */
  .page-contact .block--contactinfo {
    padding-bottom: 0;
  }
}

/* ============ Reduced motion / no-JS ============ */

.no-motion .block--intro,
.no-motion .block--talk,
.no-motion .block--after,
.no-motion .zoom {
  position: static;
  height: auto;
  min-height: 100svh;
}

.no-motion .zoom {
  min-height: 0;
}

.no-motion .zoom__sticky {
  position: static;
  height: auto;
  padding-block: clamp(48px, 10vh, 96px);
}

.no-motion .zoom__center {
  position: static;
  transform: none;
  width: 36%;
}

/* HubSpot wraps rich-text embeds (YouTube etc.) in .hs-embed-wrapper,
   which carries an inline max-width of 540px */
.post-body .hs-embed-wrapper {
  max-width: 100
/* HubSpot wraps rich-text embeds (YouTube etc.) in .hs-embed-wrapper,
   which carries an inline max-width of 540px */
.post-body .hs-embed-wrapper {
  max-width: 100% !important;
}

/* Home page: no logo or burger menu in the top bar */
.page-home .nav__logo,
.page-home .nav__burger {
  display: none;
}

/* Blog filter: hidden cards must hide even though .blog-card sets display */
.blog-card[hidden] {
  display: none;
}

/* What we've done: case study name on each image */
/* names on the images: phones only (below 767px) */
.flow__name {
  display: none;
}

@media (max-width: 767px) {
  .flow__name {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    height: fit-content;
    left: 20px;
    right: 20px;
    z-index: 9999;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
    pointer-events: none;
  }

  /* filter and case list hidden on phones */
  .flow__rail {
    mix-blend-mode: difference;
    display: none;
  }
}

/* Step 1 (mobile, 767px and below): footer services list and the menu's "Let's talk" removed */
@media (max-width: 767px) {
  .footer__services,
  .menu-drawer__cta {
    display: none !important;
  }
}

/* Step 7 (mobile, 767px and below): the "Talk to 3B1" text stays on screen for two screens of scrolling, then the next section follows */
@media (max-width: 767px) {
  .block--talk {
    position: relative;
    top: auto;
    height: 200vh;
    height: 200svh;
  }

  .block--talk > .block__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
  }
}

/* Step 8 (mobile): intro and talk text sits in the middle of the screen, not low down */
@media (max-width: 767px) {
  .block--intro .block__pin,
  .block--talk .block__pin {
    justify-content: center;
  }

  .block--intro .block__heading {
    margin-top: 0;
  }

  .block--talk .block__talk-inner {
    margin-top: 0;
  }
}

/* Step 9 (mobile): the contact form's Next button is a clear full-width button */
@media (max-width: 767px) {
  .cform__next {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 16px 20px;
    background: #111;
    color: #fff;
    border-radius: 999px;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 0.1em;
  }
}

/* Step 7 fix (mobile): the talk text is fully visible, pinned for two screens of scrolling */
@media (max-width: 767px) {
  .block--talk {
    height: auto;
    min-height: 200vh;
    min-height: 200svh;
    overflow: visible;
  }

  .block--talk > .block__pin {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
  }
}

/* Contact form (mobile): space between the Next button and the footer */
@media (max-width: 767px) {
  .cform__nav {
    margin-bottom: clamp(48px, 9vh, 80px);
  }
}

/* Point 7 (mobile): the talk text is centred vertically on the screen */
@media (max-width: 767px) {
  .block--talk > .block__pin {
    justify-content: center;
  }

  .block--talk .block__talk-inner {
    margin-top: auto;
    margin-bottom: auto;
  }

  .block--talk .block__bottom {
    margin-top: 0;
  }
}

/* Contact page (mobile): the section grows with its form, so the footer comes after the Next button */
@media (max-width: 767px) {
  .block--contactinfo {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
  }

  .block--contactinfo > .block__pin {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
  }
}