/* ============================================================
   SUMMIT HOUSE
   A venture studio of founder-led, specialized agencies.
   ------------------------------------------------------------
   Aesthetic: dark editorial. IvyPresto display, Inter body.
   The work supplies the colour; the chrome stays restrained.
   ============================================================ */

/* ───────────── Fonts ───────────── */
@font-face {
  font-family: "IvyPresto";
  src: url("../assets/fonts/IvyprestoHeadline-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IvyPresto";
  src: url("../assets/fonts/IvyprestoHeadline-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IvyPresto";
  src: url("../assets/fonts/IvyprestoHeadline-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IvyPresto";
  src: url("../assets/fonts/IvyprestoHeadline-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IvyPresto";
  src: url("../assets/fonts/IvyprestoHeadline-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterVar";
  src: url("../assets/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ───────────── Tokens ───────────── */
:root {
  /* Brand palette (exact) */
  --c-ink: #000000;
  --c-archive: #ffffff;
  --c-blueprint: #7aa0ac;
  --c-midnight: #375058;
  --c-carmine: #86241d;
  --c-grain: #e7e7e7;
  --c-graphite: #4c4c4c;

  /* Theme — derived dark surface with a teal whisper */
  --bg: #0a0c0d;
  --bg-2: #0f1314;
  --surface: #141a1b;
  --line: rgba(231, 231, 231, 0.12);
  --line-strong: rgba(231, 231, 231, 0.22);

  --text: var(--c-archive);
  --text-soft: rgba(231, 231, 231, 0.74);
  --text-dim: rgba(231, 231, 231, 0.52);

  --accent: #b8463c;          /* carmine, lifted for legibility on dark */
  --accent-deep: var(--c-carmine);
  --cool: var(--c-blueprint);

  /* Type */
  --font-display: "IvyPresto", Georgia, "Times New Roman", serif;
  --font-body: "InterVar", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(5rem, 12vh, 11rem);
  --radius: 4px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ───────────── Preloader ───────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__mark {
  width: 56px;
  height: auto;
  filter: invert(1);
  opacity: 0.6;
  animation: preloaderPulse 1.4s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50% { opacity: 0.7; transform: scale(1); }
}
.preloader__bar {
  width: 120px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.preloader__fill {
  height: 100%;
  width: 0%;
  background: var(--text-soft);
  border-radius: 2px;
  transition: width 0.3s var(--ease-soft);
}

/* ───────────── Hero entrance (after preloader → .is-loaded) ───────────── */
.js .hero__title,
.js .hero__cue {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.js .hero__cue { transition-delay: 0.42s; }
.js.is-loaded .hero__title,
.js.is-loaded .hero__cue {
  opacity: 1;
  transform: none;
}
/* Slow scrim settle for a cinematic open */
.js .hero__scrim {
  opacity: 0;
  transition: opacity 1.6s var(--ease-soft) 0.2s;
}
.js.is-loaded .hero__scrim { opacity: 1; }

/* ───────────── Client grid stagger ───────────── */
.js .clients__cell {
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.js .clients__cell.is-revealed {
  opacity: 1;
  transform: none;
}

/* ───────────── Agency card entrance ───────────── */
.js .agencies__card[data-reveal] {
  transform: translateY(20px);
}

/* ───────────── Section heading line-draw ───────────── */
.js .partners__group-title {
  background-image: linear-gradient(var(--line), var(--line));
  background-size: 0% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  border-bottom-color: transparent;
  transition: background-size 0.8s var(--ease);
}
.js .partners__group-title.is-revealed {
  background-size: 100% 1px;
}

/* ───────────── Reset / base ───────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  letter-spacing: -0.011em;            /* Inter, tightened toward "Tight" */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  text-wrap: pretty;
}

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

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

h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }

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

:focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.page__skip {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -130%);
  z-index: 200;
  background: var(--c-archive);
  color: var(--bg);
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 0.25s var(--ease);
}
.page__skip:focus { transform: translate(-50%, 0); }

/* Shared display helpers */
.eyebrow,
.intro__eyebrow,
.work__eyebrow,
.eco__eyebrow,
.companies__eyebrow,
.partners__eyebrow,
.site-footer__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cool);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: clamp(1rem, 2.4vh, 1.6rem) 0;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.site-header__inner {
  width: 100%;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.site-header__cat {
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
  flex: none;
}
.site-header__cat img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.92; }
.site-header__logotype {
  height: 22px;
  width: auto;
  display: block;
}
.site-header.is-scrolled .site-header__logotype { height: 20px; }
.site-header__nav {
  display: flex;
  gap: clamp(1.2rem, 2.4vw, 2.6rem);
}
.site-header__link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s var(--ease);
}
.site-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cool);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-header__link:hover { color: var(--text); }
.site-header__link:hover::after { transform: scaleX(1); }
.site-header__link.is-active { color: var(--text); }
.site-header__link.is-active::after { transform: scaleX(1); }

.site-header__cta {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.site-header__cta:hover {
  background: var(--c-archive);
  border-color: var(--c-archive);
  color: var(--bg);
}

/* ============================================================
   HERO  — cinematic fixed background
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
}
/* The background stays fixed to the viewport while the hero scrolls away. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden; /* clip the oversized Unicorn cover layer */
  background-image: url("../assets/img/hero-bg.webp");
  background-size: cover;
  background-position: center;
  transform-origin: center;
  will-change: transform;
}
/* Unicorn Studio scene, layered over the CSS image fallback. The scene's
   image layer is a FIXED 1446px element on a 1440×900 artboard, and the runtime
   sets the internal resolution to the container's offsetWidth — so if the
   container is wider than the artboard, the fixed image can't cover it and
   black bars appear. We therefore keep the element at its 1440×900 design size
   (where the image covers exactly, as in the editor) and let a small JS cover()
   routine scale it up to fill the hero; overflow is clipped on .hero__bg.
   The runtime tracks the mouse on `window`, so pointer-events:none keeps it
   from intercepting clicks while the effect still reacts to the cursor. */
.hero__unicorn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1440px;
  height: 900px;
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: none;
}
.hero__unicorn canvas { display: block; width: 100% !important; height: 100% !important; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(125% 95% at 50% 42%, transparent 0%, rgba(10, 12, 13, 0.32) 66%, rgba(10, 12, 13, 0.66) 100%),
    linear-gradient(180deg, rgba(10, 12, 13, 0.5) 0%, transparent 24%, transparent 58%, rgba(10, 12, 13, 0.9) 100%);
}
.hero__stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 100; /* Thin */
  font-size: clamp(2.5rem, 8vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--c-archive);
  margin: 0;
}

.hero__cue {
  position: absolute;
  bottom: clamp(1.4rem, 4vh, 2.6rem);
  /* full-width + centred content — avoids the entrance transform clobbering
     a translateX(-50%) and knocking the cue off-centre (notably on mobile) */
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero__cue-label { color: var(--text-soft); }
.hero__cue-label {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__cue-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--text-dim), transparent);
  animation: cue 2.4s var(--ease-soft) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(46px); opacity: 0; }
}

/* ============================================================
   INTRO  — who we are
   ============================================================ */
.intro {
  padding: var(--section-y) var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}
.intro__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}
.intro__eyebrow { grid-column: 1; }
.intro__lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 1rem + 4.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.intro__body {
  display: grid;
  gap: 1.4rem;
  max-width: 56ch;
  margin-left: auto;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
}
.intro__body em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 300;
  font-size: 1.15em;
  color: var(--text);
}

/* ============================================================
   CLIENTS  — light section, logo grid (deck slide 16)
   ============================================================ */
.clients {
  background: var(--c-grain);
  color: var(--c-ink);
  padding: var(--section-y) var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
}
.clients__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-graphite);
}
.clients__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 1rem + 6vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0.8rem 0 clamp(1.6rem, 4vw, 2.6rem);
}
.clients__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.4rem;
  max-width: 560px;
}
.clients__list li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.84rem;
  color: var(--c-graphite);
}
.clients__list span { color: #b3b3b3; font-variant-numeric: tabular-nums; }

.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: clamp(0.5rem, 1vw, 0.9rem);
}
.clients__cell {
  position: relative;
  background: #ededed;
  border-radius: 8px;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.clients__cell img {
  max-width: 58%;
  max-height: 42%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.clients__no {
  position: absolute;
  left: 0.6rem;
  bottom: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #b9b9b9;
  font-variant-numeric: tabular-nums;
}
.clients ::selection { background: var(--c-ink); color: var(--c-grain); }

/* ============================================================
   WORK  — effect 065, triple marquee parallax
   ============================================================ */
.work {
  position: relative;
}
.work__intro {
  padding: var(--section-y) var(--gutter) clamp(2rem, 5vh, 3.5rem);
  display: grid;
  gap: 1rem;
}
.work__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 1rem + 5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.work__pin { position: relative; }
.work__stage {
  height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1vw, 16px);
  overflow: hidden;
}
.work__row {
  display: flex;
  gap: clamp(8px, 1vw, 16px);
  width: max-content;
  height: calc((100svh - 2 * clamp(8px, 1vw, 16px)) / 3);
  padding-inline: clamp(8px, 1vw, 16px);
  will-change: transform;
}
.work__media {
  height: 100%;
  width: auto;
  border-radius: var(--radius);
  object-fit: cover;
  flex: none;
  background: var(--surface);
}

/* ── Work in motion (reel) ── */
.reel {
  padding: clamp(3rem, 8vh, 6rem) var(--gutter) clamp(3rem, 8vh, 6rem);
  display: grid;
  gap: clamp(0.6rem, 1.4vw, 1rem);
}
.reel__main {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.reel__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.reel__meta {
  position: absolute;
  left: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 0.8rem + 1vw, 2rem);
  color: var(--c-archive);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.reel__by {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cool);
}
.reel__sound {
  position: absolute;
  right: clamp(0.8rem, 1.8vw, 1.4rem);
  bottom: clamp(0.8rem, 1.8vw, 1.4rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-archive);
  background: rgba(10, 12, 13, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(231, 231, 231, 0.28);
  border-radius: 100px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.reel__sound:hover { background: rgba(10, 12, 13, 0.66); border-color: var(--c-archive); }
.reel__sound-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.reel__sound[aria-pressed="true"] { border-color: var(--c-archive); background: rgba(10, 12, 13, 0.72); }
.reel__sound[aria-pressed="true"] .reel__sound-icon { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.reel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.4vw, 1rem);
}
.reel__tile { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.reel__tile video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.reel__tile figcaption {
  position: absolute;
  left: clamp(0.8rem, 1.6vw, 1.2rem);
  bottom: clamp(0.8rem, 1.6vw, 1.2rem);
  max-width: 60%;
  font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.92rem);
  color: var(--c-archive);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

/* ============================================================
   ECOSYSTEM / CAPABILITIES — vertical cycle (deck slides 9–15)
   A pinned stage; scrolling cycles through the six studios.
   Active studio crossfades in; the neighbouring studio titles
   sit ghosted above and below — echoing the deck layout.
   ============================================================ */
.eco { position: relative; background: var(--bg-2); }
.eco__intro {
  padding: var(--section-y) var(--gutter) 0;
  display: grid;
  gap: 1.1rem;
}
.eco__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 1rem + 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.eco__note { color: var(--text-soft); max-width: 54ch; }

.eco__pin { position: relative; }
.eco__stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

/* Ghost neighbour titles */
.eco__ghost {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 1rem + 3vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0.13;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.eco__ghost--prev { top: clamp(7vh, 11vh, 13vh); }
.eco__ghost--next { bottom: clamp(7vh, 11vh, 13vh); }
.eco__ghost:empty { opacity: 0; }

.eco__list { position: absolute; inset: 0; z-index: 2; }
.eco__item {
  position: absolute;
  inset: 0;
  padding: clamp(9vh, 15vh, 17vh) var(--gutter) clamp(5vh, 9vh, 10vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.6rem, 4vh, 3.2rem);
  opacity: 0;
  transform: translateY(42px);
  pointer-events: none;
  /* Exit is quick and undelayed so the outgoing slide clears the screen
     before the incoming one rises — two slides never share the same band,
     which is what caused stacked text on shorter viewports. */
  transition: opacity 0.32s var(--ease), transform 0.45s var(--ease);
}
.eco__item.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  /* Enter waits for the previous slide to fade, then rises in. */
  transition: opacity 0.55s var(--ease) 0.22s, transform 0.7s var(--ease) 0.12s;
}
.eco__item.is-exit { opacity: 0; transform: translateY(-42px); }

.eco__rowhead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.6rem 1.4rem;
}
.eco__num {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  padding-top: 1.1em;
}
.eco__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 1rem + 5.2vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.eco__pill {
  justify-self: end;
  align-self: start;
  margin-top: 0.6em;
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 0.6rem + 0.4vw, 1rem);
  font-weight: 500;
  padding: 0.5rem 1.2rem 0.55rem;
  border-radius: 100px;
  background: var(--c-archive);
  color: var(--bg);
  white-space: nowrap;
}
.eco__detail {
  display: grid;
  grid-template-columns: clamp(140px, 15vw, 210px) minmax(0, 1.5fr) auto;
  gap: clamp(1.4rem, 3vw, 3.2rem);
  align-items: start;
  max-width: 1500px;
}
.eco__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}
.eco__copy {
  display: grid;
  gap: 1rem;
  color: var(--text-soft);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.08rem);
  line-height: 1.55;
  max-width: 48ch;
}
.eco__subs {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  border-left: 1px solid var(--line);
  padding-left: clamp(1rem, 2vw, 1.8rem);
}
.eco__subs li { font-size: 0.9rem; color: var(--text-dim); white-space: nowrap; }

.eco__progress {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.4rem, 6vh, 4rem);
  z-index: 3;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.eco__progress [data-eco-current] { color: var(--text); }
.eco__progress-sep { margin: 0 0.4em; }

/* ============================================================
   AGENCY CARDS  — logo grid before partners
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.agencies {
  border-top: 1px solid var(--line);
}
.agencies__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.agencies__card {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.agencies__card:nth-child(3n) { border-right: none; }
.agencies__card a {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1.6rem, 4vw, 3rem) var(--gutter);
  height: 100%;
  align-content: start;
  transition: background 0.3s var(--ease);
}
.agencies__card a:hover { background: var(--surface); }
.agencies__logo {
  height: clamp(22px, 3.2vw, 36px);
  width: auto;
  max-width: clamp(100px, 16vw, 180px);
  object-fit: contain;
  object-position: left;
  filter: brightness(0) invert(1);
  margin-bottom: 0.4rem;
}
.agencies__logo--tall {
  height: clamp(28px, 4vw, 46px);
}
.agencies__logo--type {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  height: auto;
  filter: none;
}
.agencies__desc { color: var(--text-soft); font-size: 0.98rem; }
.agencies__url {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--cool);
}

/* ============================================================
   PARTNERS / PEOPLE
   ============================================================ */
.partners {
  padding: var(--section-y) var(--gutter);
  display: grid;
  gap: clamp(2.6rem, 6vh, 5rem);
  max-width: 1500px;
  margin: 0 auto;
}
.partners__intro { display: grid; gap: 1.2rem; max-width: 60ch; }
.partners__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 1rem + 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.partners__note { color: var(--text-soft); max-width: 48ch; }

.partners__group { display: grid; gap: 1.6rem; }
.partners__group-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.partners__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
  max-width: 640px;
}
.partners__grid--wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: none;
}
.partners__photo {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 1rem;
}
.partners__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}
.partners__card:hover .partners__photo img {
  filter: grayscale(0);
  transform: scale(1.03);
}
.partners__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
}
.partners__role { color: var(--text-dim); font-size: 0.9rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: var(--section-y) var(--gutter) clamp(2rem, 5vh, 3rem);
  display: grid;
  gap: clamp(3rem, 8vh, 6rem);
  background: url("../assets/img/pattern-black.png") repeat center / 400px auto;
  background-blend-mode: overlay;
}
.site-footer__cta { display: grid; gap: 1.4rem; }
.site-footer__big {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 1rem + 5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  width: fit-content;
  position: relative;
  transition: color 0.3s var(--ease);
}
.site-footer__big::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.site-footer__big:hover { color: var(--cool); }
.site-footer__big:hover::after { transform: scaleX(1); opacity: 1; }

.site-footer__meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.6rem, 4vh, 2.4rem);
}
.site-footer__cat {
  display: inline-flex;
  align-items: center;
  width: clamp(84px, 9vw, 120px);
}
.site-footer__cat img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.8rem;
  justify-content: center;
}
.site-footer__nav a {
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: color 0.25s var(--ease);
}
.site-footer__nav a:hover { color: var(--text); }
.site-footer__legal {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: right;
  max-width: 32ch;
  justify-self: end;
}

/* ============================================================
   SCROLL REVEALS
   ============================================================ */
/* Hidden start-state is gated behind .js: if scripting never runs, every
   element renders fully visible — content is never trapped at opacity 0. */
.js [data-reveal],
.js [data-reveal-words] .word {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-revealed,
.js [data-reveal-words] .word.is-revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE — 4 breakpoints
   ============================================================ */

/* ≥ 1025px : enrich the intro into two columns */
@media (min-width: 1025px) {
  .intro__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
  .intro__eyebrow { grid-column: 1 / -1; }
}

/* Large screens ≥ 1601px : let the display type breathe */
@media (min-width: 1601px) {
  body { font-size: 1.18rem; }
  .intro, .partners { max-width: 1640px; }
}

/* ≥ 1025px : clients becomes head | grid two-up */
@media (min-width: 1025px) {
  .clients {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
  }
}

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .partners__grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eco__subs {
    border-left: 0;
    padding-left: 0;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    column-gap: 1.6rem;
  }
  .eco__detail { grid-template-columns: clamp(120px, 14vw, 170px) minmax(0, 1fr); }
}

/* Mobile ≤ 600px — interactive moments stay, just sized down */
@media (max-width: 600px) {
  .site-header__nav { display: none; }
  .site-header__cta { display: none; }
  /* only the logo remains — centre it */
  .site-header__inner { justify-content: center; }

  .hero__title { font-size: clamp(2.6rem, 15vw, 5rem); }
  .intro__body { margin-left: 0; }

  /* Clients: drop the numbered name list, keep the logo grid (flow 3-up) */
  .clients__list { display: none; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .clients__cell { grid-column: auto !important; grid-row: auto !important; }

  /* Ecosystem cycle — fit the active studio within any viewport height.
     Ghost neighbour titles are hidden on mobile (they overlapped the active
     content on shorter screens); content is centred and compacted. */
  .eco__ghost { display: none; }
  .eco__item {
    padding: 11vh var(--gutter) 6vh;
    gap: clamp(0.6rem, 1.7vh, 1.3rem);
    justify-content: center;
  }
  .eco__rowhead { grid-template-columns: auto 1fr; column-gap: 0.9rem; }
  .eco__num { padding-top: 0.5em; }
  .eco__title { font-size: clamp(1.7rem, 6.6vw, 2.5rem); line-height: 1; max-width: none; }
  .eco__pill { grid-column: 1 / -1; justify-self: start; margin-top: 0.2rem; }
  .eco__detail { grid-template-columns: 1fr; gap: clamp(0.7rem, 2vh, 1.1rem); }
  .eco__thumb { width: clamp(92px, 28vw, 144px); }
  .eco__copy { max-width: none; font-size: 0.9rem; line-height: 1.46; gap: 0.6rem; }
  .eco__subs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.85rem;
    border-left: 0;
    padding-left: 0;
  }
  .eco__subs li { font-size: 0.78rem; }

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

  .agencies__grid { grid-template-columns: 1fr; }
  .agencies__card,
  .agencies__card:nth-child(3n) { border-right: none; }

  .site-footer__big {
    font-size: clamp(1.2rem, 5vw, 2.4rem);
    word-break: break-all;
  }

  .partners__grid,
  .partners__grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-footer__meta {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
    gap: 1.6rem;
  }
  .site-footer__nav { justify-content: flex-start; }
  .site-footer__legal { text-align: left; justify-self: start; }
}

/* ============================================================
   REDUCED MOTION — collapse scroll-jacking into static layouts.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__cue-line { animation: none; }
  .preloader { display: none; }
  .js [data-reveal],
  .js [data-reveal-words] .word,
  .js .hero__tag, .js .hero__title, .js .hero__cue,
  .js .clients__cell,
  .js .hero__bg img { opacity: 1 !important; transform: none !important; }
}

/* Static-layout fallbacks — applied via .is-static (reduced motion / no GSAP) */
.is-static .hero__stage { height: auto; min-height: 90svh; padding-block: 18vh; }
.is-static .hero__cue { display: none; }

.is-static .work__stage { height: auto; }
.is-static .work__row { flex-wrap: wrap; width: 100%; height: auto; justify-content: center; }
.is-static .work__media { height: clamp(120px, 18vw, 220px); }

/* Ecosystem → vertical stack of all six */
.is-static .eco__stage { height: auto; overflow: visible; }
.is-static .eco__ghost,
.is-static .eco__progress { display: none; }
.is-static .eco__list { position: static; }
.is-static .eco__item {
  position: static;
  opacity: 1;
  transform: none;
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  border-top: 1px solid var(--line);
}


/* ============================================================
   FILM GRAIN — fixed overlay for the premium, tactile feel
   (SVG fractal noise; sits above everything, ignores pointers)
   ============================================================ */
.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
@media (prefers-reduced-motion: reduce) { .page::after { display: none; } }

/* ============================================================
   PRELOADER — walking cat (no progress bar)
   ============================================================ */
body.is-loading { overflow: hidden; }
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__cat { width: clamp(120px, 16vw, 180px); }
.preloader__cat img { width: 100%; height: auto; display: block; filter: brightness(0) invert(1); opacity: 0.92; }
@media (prefers-reduced-motion: reduce) { .preloader { display: none; } body.is-loading { overflow: auto; } }

/* ============================================================
   IvyPresto THIN for headings (overrides the Light default)
   ============================================================ */
.hero__title,
.intro__lead,
.clients__title,
.work__title,
.eco__heading,
.eco__ghost,
.eco__title,
.partners__title,
.partners__intro .partners__title,
.site-footer__big { font-weight: 100; }
