/* ==========================================================================
   TIGROWTH — static front-end
   Dark editorial system: oversized display type, generous whitespace,
   one accent color. All design tokens live in :root so the WordPress
   conversion (and any rebrand) is a token swap, not a rewrite.
   ========================================================================== */

/* ---------- Tokens ---------- */

/* Francy — brand display face, single Regular weight (self-hosted) */
@font-face {
  font-family: "Francy";
  src: url("../fonts/Francy.otf") format("opentype"),
       url("../fonts/Francy.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color — monochrome brand palette */
  --c-bg: #101116;          /* primary: blue-black */
  --c-bg-raised: #16171d;   /* cards, alternate bands */
  --c-ink: #b1b1b1;         /* primary: silver-grey type */
  --c-bright: #ededef;      /* emphasis tint — headlines' accents, hovers, CTA */
  --c-muted: #75767e;       /* secondary text */
  --c-line: #26272e;        /* hairlines */
  --c-accent: var(--c-bright);

  /* Type — Francy carries the display voice; body stays on a neutral stack */
  --font-display: "Francy", "Arial Narrow", system-ui, sans-serif;
  --font-sans: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* Fluid type scale (min → max across 360–1440px viewports) */
  --fs-display: clamp(3rem, 11.5vw, 9.5rem);   /* hero */
  --fs-h2: clamp(2rem, 5vw, 4.25rem);          /* section titles */
  --fs-h3: clamp(1.6rem, 3.2vw, 2.75rem);      /* service titles */
  --fs-stat: clamp(2.75rem, 7vw, 6rem);        /* big numbers */
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --fs-small: 0.8125rem;

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-section: clamp(5rem, 12vw, 11rem);      /* vertical rhythm between sections */
  --gutter: clamp(1.25rem, 4vw, 4rem);         /* page side padding */

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-duration: 0.9s;

  --header-h: 4.5rem;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--c-accent);
  color: var(--c-bg);
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75em 1.25em;
  background: var(--c-accent);
  color: var(--c-bg);
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Shared section label — small mono eyebrow with a tick */
.section-head {
  padding: 0 var(--gutter);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  max-width: 60rem;
}

.section-head__label,
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-2);
}

.section-head__label::before,
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.6em;
  background: var(--c-accent);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

/* ==========================================================================
   Loader & page transitions
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--c-bg);
  /* Sequence on .is-ready: wordmark double-spins out (0.9s), then the panel
     wipes up (starts at 0.6s, done by 1.4s) */
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.6s,
    visibility 0s 1.4s;
}

html.is-ready .loader {
  transform: translateY(-101%);
  visibility: hidden;
}

html.is-ready .loader__word {
  animation: loader-spin 0.9s cubic-bezier(0.76, 0, 0.24, 1) both;
}

/* Two full rotations, shrinking and fading as it goes */
@keyframes loader-spin {
  to {
    transform: rotate(720deg) scale(0.7);
    opacity: 0;
  }
}

/* Without JS nothing would ever remove the loader — never show it */
html:not(.js) .loader {
  display: none;
}

/* Repeat page-loads this session (html.is-repeat is set by a synchronous
   inline <head> script) skip the loader entirely — the page wipe is enough */
html.is-repeat .loader {
  display: none;
}

/* …and the hero reveals no longer need to wait for a loader wipe */
html.is-repeat .hero__line-inner {
  transition-delay: calc(0.15s + var(--i, 0) * 0.1s);
}

html.is-repeat [data-load-reveal] {
  transition-delay: calc(0.35s + var(--i, 0) * 0.1s);
}

html.is-repeat .hero__video {
  transition-delay: 0.2s;
}

.loader__word {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  letter-spacing: 0;
  color: var(--c-bright);
  animation: loader-in 0.6s var(--ease-out) both;
}

.loader__word sup {
  font-size: 0.4em;
  color: var(--c-muted);
}

@keyframes loader-in {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
}

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-bg-raised);
  transform: translateY(101%);
  pointer-events: none;
}

html.is-leaving .page-wipe {
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Lenis compatibility — native smooth scroll must yield to the JS scroller */
html.lenis {
  height: auto;
  scroll-behavior: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease,
    transform 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}

/* JS hides the bar while scrolling down, restores it on the way up */
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* JS toggles .is-scrolled once the page moves — glass background appears */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--c-bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-color: var(--c-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  height: var(--header-h);
  padding: 0 var(--gutter);
}

.site-header__logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.site-header__logo sup {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--c-muted);
}

.site-header__logo-accent {
  color: var(--c-accent);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.site-nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35em;
  width: 100%;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav__link--cta {
  padding: 0.55em 1.2em;
  border: 1px solid var(--c-ink);
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.site-nav__link--cta:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-bg);
}

.site-nav__link--cta::after {
  display: none;
}

/* Menu button — label + two-line burger */
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.95rem;
  font-weight: 500;
}

.menu-toggle__icon {
  display: grid;
  gap: 5px;
  width: 22px;
}

.menu-toggle__icon i {
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Full-screen overlay menu */
/* While the menu is open, the header's logo and inline nav fade out so
   overlay items can't collide with them (only the Close button remains) */
body.menu-open .site-header__logo,
body.menu-open .site-nav {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.site-header__logo,
.site-nav {
  transition: opacity 0.25s ease;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  padding: var(--gutter);
  background: var(--c-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

.menu-overlay__list a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  transition: color 0.25s ease;
}

.menu-overlay__list a:hover {
  color: var(--c-accent);
}

.menu-overlay__list li {
  opacity: 0;
  transform: translateY(1.2em);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.menu-overlay.is-open .menu-overlay__list li {
  opacity: 1;
  transform: none;
}

.menu-overlay__meta {
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--c-muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-4);
  padding: calc(var(--header-h) + var(--sp-4)) var(--gutter) var(--sp-5);
  position: relative;
}

/* Page heroes are compact — content sits just below the header rather than
   anchored to the bottom of a tall viewport */
.hero--page {
  min-height: 40svh;
  justify-content: flex-start;
  padding-top: calc(var(--header-h) + var(--sp-3));
  padding-bottom: var(--sp-4);
}

/* Background video: grayscale + scrim keep the monochrome palette and the
   type legible; sits behind the hero content, above the body background */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: clip;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.4) contrast(1.05);
  opacity: 0;
  transition: opacity 1.2s ease 0.9s;
}

html.is-ready .hero__video {
  opacity: 1;
}

/* Scrim: constant dark veil + heavier fade toward the bottom, where the
   intro copy and chips sit */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(16 17 22 / 0.35), rgb(16 17 22 / 0.2) 45%, var(--c-bg) 96%),
    rgb(16 17 22 / 0.3);
}

.hero__heading {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--c-bright);
}

.hero__heading em {
  font-style: italic; /* synthesized — Francy ships Regular only */
  color: var(--c-ink);
}

/* Masked line reveal: each line is a clip window, its inner span slides up */
.hero__line {
  display: block;
  overflow: clip;
}

.hero__line-inner {
  display: inline-block;
  will-change: transform;
}

html.js .hero__line-inner {
  transform: translateY(115%);
  transition: transform 1.1s var(--ease-out);
  /* starts as the loader panel clears the headline */
  transition-delay: calc(0.9s + var(--i, 0) * 0.12s);
}

html.is-ready .hero__line-inner {
  transform: none;
}

/* Load-sequenced fades for the rest of the hero (fires after the loader) */
html.js [data-load-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(1.2s + var(--i, 0) * 0.12s);
}

html.is-ready [data-load-reveal] {
  opacity: 1;
  transform: none;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
}

.hero__intro {
  max-width: 34rem;
  color: var(--c-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.chip {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  color: var(--c-muted);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.chip:hover {
  border-color: var(--c-accent);
  color: var(--c-ink);
}

.hero__scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--c-muted);
  animation: hint-bob 2.4s ease-in-out infinite;
}

@keyframes hint-bob {
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   Marquee mechanics — a track holding two identical halves; sliding one
   half-width loops seamlessly. The CSS animation is the no-JS fallback;
   with JS the track is driven per frame, reacting to scroll velocity and
   pausing on hover. Used by the client logo carousel.
   ========================================================================== */
.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 32s linear infinite;
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

html.js .marquee__track {
  animation: none;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  margin-bottom: var(--sp-section);
}

.service {
  display: grid;
  grid-template-columns: minmax(5rem, 14rem) 1fr;
  gap: var(--sp-3) var(--sp-4);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
  border-top: 1px solid var(--c-line);
  transition: background 0.4s ease;
}

.service:last-child {
  border-bottom: 1px solid var(--c-line);
}

.service:hover {
  background: var(--c-bg-raised);
}

.service__num {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  color: var(--c-accent);
  padding-top: 0.5em;
}

.service__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  color: var(--c-bright);
  margin-bottom: var(--sp-2);
}

.service__desc {
  max-width: 40rem;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}

/* Collapsed accordion rows: number + title collapsed; everything else
   opens via the grid-rows 0fr -> 1fr trick (no JS height measurement) */
.services__list--compact .service {
  padding-block: clamp(1.4rem, 2.6vw, 2.25rem);
}

.service__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.service__toggle-icon {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--c-muted);
  transition: rotate 0.4s var(--ease-out), color 0.25s ease;
}

.service.is-open .service__toggle-icon {
  rotate: 45deg;
  color: var(--c-accent);
}

.service__head:hover .service__toggle-icon {
  color: var(--c-bright);
}

.service__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}

.service.is-open .service__more {
  grid-template-rows: 1fr;
}

.service__more-inner {
  overflow: hidden;
}

.service__more-inner > :first-child {
  margin-top: var(--sp-3);
}

.service__detail {
  max-width: 40rem;
  color: var(--c-muted);
  padding-top: var(--sp-1);
  margin-bottom: var(--sp-3);
}

.service__proof {
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

.service__proof a {
  color: var(--c-bright);
  transition: color 0.25s ease;
}

.service__proof a:hover {
  color: var(--c-muted);
}

.service__proof strong {
  color: var(--c-bright);
  font-weight: 600;
}

.service__caps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  max-width: 44rem;
}

.service__caps li {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--c-ink);
}

.service__caps li::before {
  content: "→ ";
  color: var(--c-accent);
}

/* ==========================================================================
   Work grid
   ========================================================================== */
.work {
  margin-bottom: var(--sp-section);
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4) var(--sp-3);
  padding: 0 var(--gutter);
}

.work-card {
  display: block;
  position: relative;
}

/* Alternating vertical offset gives the grid an editorial stagger */
.work-card:nth-child(even) {
  transform: translateY(clamp(0px, 4vw, 3.5rem));
}

.work-card__media {
  aspect-ratio: 4 / 3;
  overflow: clip;
  border-radius: 4px;
  position: relative;
  transition: transform 0.8s var(--ease-out);
}

/* Placeholder art — monochrome gradients, replaced by real thumbnails in Phase 2.
   Vertical bleed (inset -12%) gives the parallax translate room to move
   without exposing edges; JS writes --parallax every frame. */
.work-card__media::before {
  content: "";
  position: absolute;
  inset: -12% 0;
  transform: translateY(var(--parallax, 0px));
  will-change: transform;
  transition: filter 0.7s ease;
  filter: brightness(0.92);
}

/* Grayscale placeholder photography (Picsum); gradient behind as fallback
   while the image loads or if it 404s */
.work-card__media--a::before {
  background: url("../img/feed-hera-1.jpg") center / cover no-repeat,
    linear-gradient(135deg, #1a1b22, #43444d 55%, #8b8c95);
}

.work-card__media--b::before {
  background: url("../img/feed-progress-1.jpg") center / cover no-repeat,
    linear-gradient(160deg, #22232b, #56575f 60%, #b1b1b1);
}

.work-card__media--c::before {
  background: url("../img/feed-redrun-1.jpg") center 18% / cover no-repeat,
    linear-gradient(145deg, #16171d, #33343c 50%, #6e6f78);
}

.work-card__media--d::before {
  background: url("../img/feed-reigningchamp-1.jpg") center 18% / cover no-repeat,
    linear-gradient(150deg, #26272e, #4c4d56 55%, #9d9ea6);
}

/* Hover video loop: fades in over the still, plays only while hovered */
.work-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.85);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.work-card:hover .work-card__video,
.work-card:focus-visible .work-card__video {
  opacity: 1;
}

/* Hover zoom lives on the clip box so it can't fight the parallax layer */
.work-card:hover .work-card__media,
.work-card:focus-visible .work-card__media {
  transform: scale(1.03);
}

.work-card:hover .work-card__media::before,
.work-card:focus-visible .work-card__media::before {
  filter: brightness(1.05);
}

.work-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-top: var(--sp-2);
}

.work-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--c-bright);
}

.work-card__tags {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--c-muted);
  text-align: right;
}

.work-card__arrow {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(0.5rem) rotate(-45deg);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

.work-card:hover .work-card__arrow,
.work-card:focus-visible .work-card__arrow {
  opacity: 1;
  transform: translateY(0) rotate(-45deg);
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  margin-bottom: var(--sp-section);
  border-block: 1px solid var(--c-line);
  background: var(--c-bg-raised);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--gutter);
}

.stat {
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--sp-3);
}

.stat + .stat {
  border-left: 1px solid var(--c-line);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-2);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--c-bright);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-section);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__heading {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--c-bright);
  margin-bottom: var(--sp-3);
}

.cta__heading em {
  font-style: italic; /* synthesized — Francy ships Regular only */
  color: var(--c-ink);
}

.cta__sub {
  max-width: 32rem;
  color: var(--c-muted);
  margin-bottom: var(--sp-4);
}

.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-bg);
  transition: transform 0.35s var(--ease-out), background 0.3s ease;
}

.cta__button:hover {
  transform: scale(1.04);
  background: var(--c-ink);
}

.cta__button span {
  transition: transform 0.35s var(--ease-out);
}

.cta__button:hover span {
  transform: translateX(0.35em);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--c-line);
  padding: var(--sp-5) var(--gutter) var(--sp-3);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.site-footer__logo {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0;
}

.site-footer__logo sup {
  font-size: 0.45em;
  font-weight: 400;
  color: var(--c-muted);
}

.site-footer__nav a,
.site-footer__social a {
  display: inline-block;
  padding: 0.2em 0;
  color: var(--c-muted);
  transition: color 0.25s ease;
}

.site-footer__nav a:hover,
.site-footer__social a:hover {
  color: var(--c-accent);
}

.site-footer__legal {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--c-muted);
}

/* Trading-name / registered-office small print */
.site-footer__fineprint {
  display: block;
  font-size: 0.85em;
  opacity: 0.65;
  margin-top: 0.4em;
  max-width: 60rem;
}

/* Contact block with live studio clock */
.site-footer__contact {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.site-footer__contact a {
  color: var(--c-ink);
  transition: color 0.25s ease;
}

.site-footer__contact a:hover {
  color: var(--c-accent);
}

.site-footer__contact p {
  margin: 0;
}

/* ==========================================================================
   Magnetic hover — JS writes an inline translate; this eases it
   ========================================================================== */
[data-magnetic] {
  display: inline-block;
  will-change: transform;
  transition: transform 0.4s var(--ease-out);
}

.menu-toggle[data-magnetic] {
  display: flex;
}

/* ==========================================================================
   Scroll-reveal
   Elements start hidden only when JS adds .js to <html>, so content is
   never invisible without JavaScript. --i staggers siblings.
   ========================================================================== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* keep only the vertical divider that still makes sense in a 2×2 grid */
  .stat + .stat {
    border-left: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--c-line);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--c-line);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none; /* overlay menu takes over */
  }

  .service {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .work__grid {
    grid-template-columns: 1fr;
  }

  .work-card:nth-child(even) {
    transform: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
}

/* ==========================================================================
   Ethos — manifesto statement with word-stagger reveal
   ========================================================================== */
.ethos {
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-section);
}

.ethos__text {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-bright);
  max-width: 62rem;
  text-wrap: balance;
}

/* JS splits [data-words] into .word spans; --w staggers them in when the
   shared reveal observer marks the element visible */
html.js [data-words] .word {
  opacity: 0.1;
  transition: opacity 0.6s ease;
  transition-delay: calc(var(--w, 0) * 45ms);
}

html.js [data-words].is-visible .word,
html.js [data-reveal].is-visible [data-words] .word {
  opacity: 1;
}

/* ==========================================================================
   Client stories — center-stage 9:16 video carousel
   ========================================================================== */
.client-stories {
  margin-bottom: var(--sp-section);
}

/* Centered heading, tight to the cards (the strip is full-bleed below it) */
.client-stories .section-head {
  max-width: none;
  text-align: center;
  margin-bottom: var(--sp-4);
}

.cs-carousel__viewport {
  overflow: clip;
  touch-action: pan-y; /* let the page scroll vertically; we handle horizontal swipes */
}

.cs-carousel__track {
  display: flex;
  align-items: center;
  gap: 0.625rem; /* 10px — tight, Reels-style spacing between stories */
  width: max-content;
  padding-block: var(--sp-2);
  transition: transform 0.8s var(--ease-out);
  will-change: transform;
}

.cs-card {
  position: relative;
  flex: 0 0 auto;
  width: min(340px, 62vw);
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  overflow: clip;
  background: var(--c-bg-raised);
  cursor: pointer;
  transform: scale(0.86);
  opacity: 0.4;
  transition: transform 0.8s var(--ease-out), opacity 0.8s ease;
}

/* Shrink toward the active card: the freed space lands on the outer edge,
   so the gutter beside the active card stays at the true 14px track gap */
.cs-card.is-prev {
  transform-origin: right center;
}

.cs-card.is-next {
  transform-origin: left center;
}

.cs-card.is-active {
  transform: none;
  opacity: 1;
  cursor: auto;
}

.cs-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.85);
}

/* Play button: glass circle over the active card, opens the lightbox */
.cs-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgb(16 17 22 / 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgb(237 237 239 / 0.35);
  color: var(--c-bright);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease 0.25s, transform 0.3s var(--ease-out),
    border-color 0.3s ease;
}

.cs-card.is-active .cs-card__play {
  opacity: 1;
  pointer-events: auto;
}

.cs-card__play:hover {
  transform: scale(1.08);
  border-color: var(--c-accent);
}

.cs-card__play svg {
  width: 1.05rem;
  margin-left: 3px; /* optically center the triangle */
  fill: currentColor;
}

/* While the card is playing with sound, the play button steps aside… */
.cs-card.is-sounding .cs-card__play {
  opacity: 0;
  pointer-events: none;
}

/* …and the speaker toggle appears top-right (Cadence-style) */
.cs-card__sound {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgb(16 17 22 / 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgb(237 237 239 / 0.35);
  color: var(--c-bright);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.cs-card.is-active.is-sounding .cs-card__sound {
  opacity: 1;
  pointer-events: auto;
}

.cs-card__sound:hover {
  border-color: var(--c-accent);
}

.cs-card__sound svg {
  width: 1rem;
  fill: currentColor;
}

/* Speaker shows a wave when audible, a cross when muted */
.cs-card__sound .sound-x {
  display: none;
}

.cs-card__sound.is-muted .sound-wave {
  display: none;
}

.cs-card__sound.is-muted .sound-x {
  display: block;
}

/* Meta panel: only readable/clickable on the active card */
.cs-card__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-3);
  background: linear-gradient(to top, rgb(16 17 22 / 0.9), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease 0.25s;
}

.cs-card.is-active .cs-card__meta {
  opacity: 1;
  pointer-events: auto;
}

.cs-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--c-bright);
}

.cs-card__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--c-ink);
  margin-bottom: var(--sp-1);
}

.cs-card__link {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color 0.25s ease;
}

.cs-card__link:hover {
  color: var(--c-bright);
}

.cs-carousel__nav {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) var(--gutter) 0;
}

.cs-carousel__btn {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  font-size: 1.15rem;
  color: var(--c-ink);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.cs-carousel__btn:hover {
  border-color: var(--c-accent);
  color: var(--c-bright);
}

/* ==========================================================================
   Client logo strip — linked wordmarks (swap in logo files any time:
   an <img> inside the link renders white automatically)
   ========================================================================== */
.clients {
  margin-bottom: var(--sp-section);
}

.clients .section-head {
  margin-bottom: var(--sp-4);
}

/* Full-bleed scrolling strip; pauses on hover so logos stay clickable */
.clients__marquee {
  overflow: clip;
}

.clients__set {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-right: clamp(2.5rem, 6vw, 5rem);
  flex: none;
}

.clients__set a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  color: var(--c-muted);
  transition: color 0.25s ease;
}

.clients__set a:hover {
  color: var(--c-bright);
}

/* Logo files render as uniform white marks regardless of source color */
.clients__set img {
  height: clamp(1.7rem, 2.8vw, 2.5rem);
  width: auto;
  max-width: clamp(6rem, 12vw, 9.5rem);
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity 0.25s ease;
}

.clients__set a:hover img {
  opacity: 1;
}

/* ==========================================================================
   Testimonials — LinkedIn-style recommendation cards
   ========================================================================== */
.testimonials {
  margin-bottom: var(--sp-section);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  padding: 0 var(--gutter);
}

.testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-3);
  background: var(--c-bg-raised);
  border: 1px solid var(--c-line);
  border-radius: 6px;
}

.testimonial blockquote {
  margin: 0;
  color: var(--c-ink);
  font-size: 1.02rem;
}

.testimonial blockquote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 0.6;
  color: var(--c-muted);
  margin-bottom: 0.4em;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line);
}

.testimonial__avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: clip;
  background: var(--c-line);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--c-bright);
}

/* Optional profile photo sits over the initials (which remain the
   fallback if the image is missing or fails to load) */
.testimonial__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.95);
}

.testimonial__name {
  display: block;
  color: var(--c-bright);
  font-weight: 600;
}

.testimonial__role,
.testimonial__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  margin-top: 0.2em;
}

@media (max-width: 900px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ — native <details> accordion
   ========================================================================== */
.faq {
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-section);
}

.faq .section-head {
  padding: 0;
}

.faq__list {
  max-width: 52rem;
  border-top: 1px solid var(--c-line);
}

.faq__item {
  border-bottom: 1px solid var(--c-line);
}

.faq__item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--c-bright);
  transition: color 0.25s ease;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2em;
  color: var(--c-muted);
  transition: rotate 0.3s var(--ease-out);
}

.faq__item[open] summary::after {
  rotate: 45deg;
}

.faq__item p {
  max-width: 44rem;
  color: var(--c-muted);
  padding-bottom: var(--sp-3);
}

/* ==========================================================================
   Custom cursor — dot + trailing ring (native cursor stays)
   ========================================================================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring {
  opacity: 1;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--c-bright);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgb(237 237 239 / 0.35);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
    margin 0.3s var(--ease-out), border-color 0.3s ease, opacity 0.3s ease;
}

body.cursor-hover .cursor-ring {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: var(--c-accent);
}

/* ==========================================================================
   Work index — filter chips
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-4);
}

.filter-chip {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5em 1.1em;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  color: var(--c-muted);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.filter-chip:hover {
  color: var(--c-ink);
}

.filter-chip.is-selected {
  border-color: var(--c-accent);
  color: var(--c-bright);
}

.work-card.is-filtered-out {
  display: none;
}

/* Archive grid: no editorial stagger — filtering reflows the columns */
.work--archive .work-card:nth-child(even) {
  transform: none;
}

/* ==========================================================================
   Holding / password page
   ========================================================================== */
body.holding {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.holding__inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  max-width: 26rem;
}

.holding__word {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--c-bright);
}

.holding__word sup {
  font-size: 0.4em;
  color: var(--c-muted);
}

.holding__note {
  color: var(--c-muted);
}

.holding__form {
  display: flex;
  gap: var(--sp-1);
  width: 100%;
}

.holding__form input {
  flex: 1;
  font: inherit;
  color: var(--c-ink);
  background: var(--c-bg-raised);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 0.75em 1.2em;
  transition: border-color 0.25s ease;
}

.holding__form input:focus-visible {
  outline: none;
  border-color: var(--c-accent);
}

.holding__form input.is-wrong {
  border-color: #b14b4b;
}

.holding__form button {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-bg);
  transition: transform 0.3s var(--ease-out);
}

.holding__form button:hover {
  transform: scale(1.04);
}

.holding__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--c-muted);
  display: grid;
  gap: 0.4rem;
}

.holding__meta a {
  color: var(--c-ink);
}

.holding__meta a:hover {
  color: var(--c-bright);
}

/* ==========================================================================
   Generic content pages (privacy etc.)
   ========================================================================== */
.prose {
  max-width: 44rem;
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-section);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 400;
  color: var(--c-bright);
  margin: var(--sp-4) 0 var(--sp-2);
}

.prose p,
.prose li {
  color: var(--c-muted);
  margin-bottom: var(--sp-2);
}

.prose a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ==========================================================================
   404
   ========================================================================== */
.error-page {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + var(--sp-4)) var(--gutter) var(--sp-5);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 18rem);
  line-height: 0.9;
  color: var(--c-bright);
}

.error-page__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-3);
}

/* ==========================================================================
   Project / case-study pages
   ========================================================================== */
.project-hero {
  min-height: auto;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: 0;
}

.project-meta dt {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-1);
}

.project-meta dd {
  margin: 0;
  color: var(--c-ink);
}

.project-thumb {
  margin: 0 var(--gutter) var(--sp-5);
  overflow: clip;
  border-radius: 4px;
}

.project-thumb__img {
  width: 100%;
  filter: grayscale(1) brightness(0.92);
}

.project-content {
  max-width: 44rem;
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-5);
}

.project-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 400;
  color: var(--c-bright);
  margin: var(--sp-4) 0 var(--sp-2);
}

.project-content p {
  color: var(--c-muted);
  margin-bottom: var(--sp-2);
}

.project-content strong {
  color: var(--c-ink);
  font-weight: 600;
}

/* Single testimonial on a case-study page */
.project-testimonial {
  margin: 0 var(--gutter) var(--sp-5);
  max-width: 46rem;
}

.project-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-section);
}

.project-nav__back {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color 0.25s ease;
}

.project-nav__back:hover {
  color: var(--c-bright);
}

.project-nav__next {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--c-bright);
  transition: color 0.25s ease;
}

.project-nav__next:hover {
  color: var(--c-muted);
}

/* Per-project results row (inside .project-content, after "The Result") */
.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  width: 100%;
  margin: var(--sp-5) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
}

.project-stats .stat {
  padding: 0;
  border-left: 0;
}

.project-stats .stat__label {
  margin-bottom: var(--sp-1);
}

.project-stats .stat__value {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

@media (max-width: 600px) {
  .project-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   VSL video player — full-bleed, homepage story-card treatment: grayscale
   muted preview + glass play button; playing lifts the filter
   ========================================================================== */
.vsl-player {
  position: relative;
  overflow: clip;
  margin-bottom: var(--sp-section);
  cursor: pointer;
}

.vsl-player__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  filter: grayscale(1) brightness(0.85);
  transition: filter 0.5s ease;
}

.vsl-player.is-playing .vsl-player__video {
  filter: none;
}

.vsl-player.is-playing {
  cursor: auto;
}

/* Buttons share the story-card glass styling via their cs-card classes;
   these rules only govern visibility and scale on the big player */
.vsl-player__play {
  opacity: 1;
  pointer-events: auto;
  width: 5rem;
  height: 5rem;
}

.vsl-player__play svg {
  width: 1.4rem;
}

.vsl-player.is-playing .vsl-player__play {
  opacity: 0;
  pointer-events: none;
}

.vsl-player__sound {
  top: var(--sp-3);
  right: var(--gutter);
}

.vsl-player.is-playing .vsl-player__sound {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Enquiry / contact forms
   ========================================================================== */
.form-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--sp-5);
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-section);
}

.form-section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--c-bright);
  line-height: 1.05;
  margin-bottom: var(--sp-3);
}

.form-section__list {
  display: grid;
  gap: var(--sp-2);
  color: var(--c-muted);
}

.form-section__list li::before {
  content: "→ ";
  color: var(--c-accent);
}

.form-section__contact {
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

.form-section__contact a {
  color: var(--c-ink);
  transition: color 0.25s ease;
}

.form-section__contact a:hover {
  color: var(--c-bright);
}

.enquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  align-content: start;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--c-ink);
  background: var(--c-bg-raised);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 0.85em 1em;
  transition: border-color 0.25s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--c-accent);
}

.enquiry-form .cta__button {
  border: 0;
  cursor: pointer;
  justify-self: start;
  font-size: 1.05rem;
}

.form-note {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--c-muted);
}

@media (max-width: 900px) {
  .form-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .enquiry-form {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Reduced motion — kill animation, keep content
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee__track,
  .hero__scroll-hint {
    animation: none;
  }

  html.js [data-reveal],
  html.js [data-load-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.js .hero__line-inner {
    transform: none;
    transition: none;
  }

  .loader,
  .page-wipe,
  .hero__media,
  .work-card__video {
    display: none;
  }

  .work-card__media::before {
    inset: 0;
    transform: none;
  }

  .cs-carousel__track,
  .cs-card {
    transition: none;
  }

  html.js [data-words] .word {
    opacity: 1;
    transition: none;
  }
}

/* ==========================================================================
   About — founder section + studio image strip (Spacemade founder shoot).
   Monochrome by default, colour on hover, matching the work-card treatment.
   ========================================================================== */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: var(--sp-4);
  align-items: center;
  margin: var(--sp-section) 0;
  padding: 0 var(--gutter);
}

.founder__portrait {
  margin: 0;
  border-radius: 6px;
  overflow: clip;
  background: var(--c-bg-raised);
  aspect-ratio: 4 / 5;
}

.founder__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.9);
  transition: filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.founder__portrait:hover img {
  filter: none;
  transform: scale(1.03);
}

.founder__portrait--video {
  background: #000;
}

.founder__portrait video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0.5rem 0 1.25rem;
  color: var(--c-bright);
}

.founder__note p {
  color: var(--c-ink);
  max-width: 46ch;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.founder__sign {
  color: var(--c-bright);
  font-style: italic;
  margin-top: 1.25rem;
}

.about-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin: 0 0 var(--sp-section);
  padding: 0 var(--gutter);
}

.about-strip figure {
  margin: 0;
  border-radius: 6px;
  overflow: clip;
  aspect-ratio: 4 / 5;
  background: var(--c-bg-raised);
}

.about-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.9);
  transition: filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.about-strip figure:hover img {
  filter: none;
  transform: scale(1.03);
}

@media (max-width: 760px) {
  .founder {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .about-strip {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Case study — Instagram-style image feed (hero) + longer-form film slot.
   ========================================================================== */
.case-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0 var(--gutter) var(--sp-3);
}

.case-feed__tile {
  margin: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: clip;
  border-radius: 4px;
  background: var(--c-bg-raised);
}

.case-feed__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.9);
  transition: filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.case-feed__tile:hover img {
  filter: none;
  transform: scale(1.04);
}

/* Bias the square crop toward the top so faces aren't cut off */
.case-feed--faces .case-feed__tile img {
  object-position: center 18%;
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--sp-2);
  z-index: 180;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  max-width: 46rem;
  margin-inline: auto;
  padding: 0.9rem 1.1rem;
  background: var(--c-bg-raised);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  box-shadow: 0 12px 44px rgb(0 0 0 / 0.4);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.cookie-banner.is-in {
  opacity: 1;
  transform: none;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 16rem;
  color: var(--c-ink);
  font-size: 0.85rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--c-bright);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-banner__btn {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.cookie-banner__btn:hover {
  color: var(--c-bright);
  border-color: var(--c-bright);
}

.cookie-banner__btn--accept {
  background: var(--c-bright);
  color: var(--c-bg);
  border-color: var(--c-bright);
}

.cookie-banner__btn--accept:hover {
  background: #fff;
  border-color: #fff;
}

@media (max-width: 560px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__text {
    /* reset the row flex-basis so it isn't read as a 16rem HEIGHT in column mode */
    flex: 0 0 auto;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

/* Empty placeholder state (until the Instagram images are dropped in) */
.case-feed__tile--empty::after {
  content: "Feed image";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--c-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.case-film {
  position: relative;
  margin: 0 var(--gutter) var(--sp-5);
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: clip;
  background: var(--c-bg-raised);
  border: 1px solid var(--c-line);
  display: grid;
  place-items: center;
}

.case-film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vertical (9:16) reel for a portrait testimonial, centred, phone-sized */
.case-film--portrait {
  aspect-ratio: 9 / 16;
  max-width: 340px;
  margin-inline: auto;
}

.case-film--portrait video {
  object-fit: contain;
}

/* Case study, mosaic: feed images with the film set into the middle column */
.case-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "a v b"
    "a v c"
    "d e f";
  gap: 0.5rem;
  margin: 0 var(--gutter) var(--sp-4);
}

.case-mosaic figure,
.case-mosaic__film {
  margin: 0;
  overflow: clip;
  border-radius: 4px;
  background: var(--c-bg-raised);
  aspect-ratio: 1 / 1;
}

.case-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) brightness(0.9);
  transition: filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.case-mosaic figure:hover img {
  filter: none;
  transform: scale(1.04);
}

.case-mosaic__film {
  grid-area: v;
  aspect-ratio: auto;
  background: #000;
}

.case-mosaic__film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-mosaic .m-a {
  grid-area: a;
  aspect-ratio: auto;
}
.case-mosaic .m-b { grid-area: b; }
.case-mosaic .m-c { grid-area: c; }
.case-mosaic .m-d { grid-area: d; }
.case-mosaic .m-e { grid-area: e; }
.case-mosaic .m-f { grid-area: f; }

/* About brands showcase wrapper */
.about-brands {
  margin: var(--sp-section) 0;
}

/* When the brands section follows the hero, close the gap */
.hero--page + .about-brands {
  margin-top: 0;
}

.about-brands .section-head {
  padding-inline: var(--gutter);
  margin-bottom: var(--sp-4);
}

/* Logo strip under the brands mosaic */
.about-brands__logos {
  margin: var(--sp-4) var(--gutter) 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
}

/* Founder image mosaic (replaces single portrait video) */
.founder__mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 0.5rem;
  aspect-ratio: 4 / 5;
}

.founder__mosaic figure {
  margin: 0;
  overflow: clip;
  border-radius: 6px;
  background: var(--c-bg-raised);
}

.founder__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) brightness(0.9);
  transition: filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.founder__mosaic figure:hover img {
  filter: none;
  transform: scale(1.04);
}

/* What You Get, feature cards (not testimonials) */
.get {
  margin: var(--sp-section) 0;
}

.get .section-head {
  padding-inline: var(--gutter);
  margin-bottom: var(--sp-4);
}

.get__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  padding: 0 var(--gutter);
}

.get-card {
  padding: var(--sp-4) var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-bg-raised);
}

.get-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}

.get-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.1;
  color: var(--c-bright);
  margin: 0 0 0.75rem;
}

.get-card__desc {
  color: var(--c-ink);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1000px) {
  .get__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .get__grid {
    grid-template-columns: 1fr;
  }
}

.case-film__placeholder {
  text-align: center;
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.case-film__placeholder svg {
  width: 38px;
  height: 38px;
  opacity: 0.45;
  margin-bottom: 0.6rem;
}

@media (max-width: 640px) {
  .case-feed {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-film {
    aspect-ratio: 4 / 3;
  }
}
