/* ============================================================
   performa. studio — style.css
   Palette: cream / sand / off-white / ink / signal red
   ============================================================ */

:root {
  --cream:   #FAF8F0;
  --sand:    #EFE9DA;
  --gray:    #E2DFD6;
  --ink:     #0C0B09;
  --ink-soft:#1A1916;
  --red:     #D21F1F;
  --red-deep:#B01414;

  --font: "Poppins", system-ui, -apple-system, sans-serif;

  --pad: clamp(20px, 4.5vw, 72px);
  --radius: 22px;

  --ease: cubic-bezier(.62, .05, .01, .99);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: body-in .7s ease both;
}
@keyframes body-in { from { opacity: 0; } to { opacity: 1; } }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: var(--cream); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #c9c4b6; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.display-xl { font-size: clamp(2.9rem, 8.6vw, 8.6rem); }
.display-lg { font-size: clamp(2.3rem, 6.2vw, 6rem); }
.display-md { font-size: clamp(1.8rem, 4.2vw, 3.9rem); }
.display-sm { font-size: clamp(1.35rem, 2.6vw, 2.2rem); }

em.accent {
  font-style: italic;
  font-weight: 700;
  color: var(--red);
}
.t-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: clamp(.68rem, .8vw, .8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
}
.label::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.label--plain::before { display: none; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.5; font-weight: 400; }
.muted { opacity: .62; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1500px; margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(80px, 11vw, 170px); }
.section--tight { padding-block: clamp(56px, 7vw, 110px); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.4rem, 5vw, 5rem);
  flex-wrap: wrap;
}
.section-head .label { margin-bottom: 1.1rem; }

.theme-ink { background: var(--ink); color: var(--cream); }
.theme-sand { background: var(--sand); }
.theme-red { background: var(--red); color: var(--cream); }
.theme-ink ::selection, .theme-red ::selection { background: var(--cream); color: var(--ink); }

/* ---------- Noise overlay ---------- */
.noise {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise-shift 1.2s steps(4) infinite;
}
@keyframes noise-shift {
  0% { transform: translate(0,0); }
  25% { transform: translate(-2%,1%); }
  50% { transform: translate(1%,-2%); }
  75% { transform: translate(-1%,2%); }
  100% { transform: translate(2%,-1%); }
}

/* ---------- Custom cursor (crosshair “+” + signal dot) ----------
   The “+” is two thin bars (::before / ::after). It's solid black on
   light areas and flips to cream over dark sections (.is-light, toggled
   in JS) — no blend mode, so it never shifts colour and stays clean for
   screenshots. A red dot trails behind for brand motion. Native pointer
   is only hidden once JS confirms the cursor is live (.cursor-on on
   <html>), so a JS failure leaves the normal pointer intact. */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-on,
  .cursor-on a, .cursor-on button,
  .cursor-on input, .cursor-on textarea,
  .cursor-on label, .cursor-on summary,
  .cursor-on [data-magnetic] { cursor: none; }

  .cursor-on .cursor {
    display: block;
    position: fixed; top: 0; left: 0;
    width: 24px; height: 24px;
    pointer-events: none;
    z-index: 3000;
    will-change: transform;
    transition: width .4s var(--ease-out), height .4s var(--ease-out),
                background-color .35s, border-radius .35s, opacity .3s;
  }
  /* the two bars of the “+” */
  .cursor::before, .cursor::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    background: var(--ink);
    transform: translate(-50%, -50%);
    transition: width .4s var(--ease-out), height .4s var(--ease-out),
                background-color .3s, opacity .3s;
  }
  .cursor::before { width: 100%; height: 1.6px; }   /* horizontal */
  .cursor::after  { width: 1.6px; height: 100%; }    /* vertical   */
  /* Over dark sections: flip the “+” to cream so it stays visible */
  .cursor.is-light::before, .cursor.is-light::after { background: var(--cream); }

  .cursor__label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.5);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0;
    transition: opacity .25s, transform .3s var(--ease-out);
    white-space: nowrap;
  }
  .cursor-on .cursor-dot {
    display: block;
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3001;
    will-change: transform;
    transition: width .3s var(--ease-out), height .3s var(--ease-out), opacity .3s;
  }

  /* Links / buttons: the “+” grows into a bigger crosshair */
  .cursor.is-hover { width: 42px; height: 42px; }
  .cursor.is-hover ~ .cursor-dot { width: 4px; height: 4px; opacity: .5; }

  /* Work / media: solid red “View” disc (no blend, bars hidden) */
  .cursor.is-label {
    width: 96px; height: 96px;
    background: var(--red);
    border-radius: 50%;
  }
  .cursor.is-label::before, .cursor.is-label::after { opacity: 0; }
  .cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .cursor.is-label ~ .cursor-dot { opacity: 0; }

  /* Text fields: drop the horizontal bar → a slim I-beam */
  .cursor.is-text { width: 22px; height: 28px; }
  .cursor.is-text::before { opacity: 0; }
  .cursor.is-text::after { width: 2px; }
  .cursor.is-text ~ .cursor-dot { opacity: 0; }

  /* Press feedback: the “+” snaps smaller */
  .cursor.is-down { width: 16px; height: 16px; }
  .cursor.is-down ~ .cursor-dot { width: 10px; height: 10px; }

  .cursor.is-hidden { opacity: 0; }
  .cursor.is-hidden ~ .cursor-dot { opacity: 0; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  animation: preloader-timeout .5s ease 3.2s forwards; /* JS-failure fallback */
}
@keyframes preloader-timeout { to { opacity: 0; visibility: hidden; } }
.pf-skip .preloader { display: none; }

.preloader__logo {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  overflow: hidden;
  display: flex;
}
.preloader__logo span { display: inline-block; transform: translateY(120%); }
.preloader__logo .dot { color: var(--red); }
.preloader__count {
  position: absolute;
  bottom: clamp(24px, 5vw, 60px);
  right: var(--pad);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red);
}
.preloader__bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 4px; width: 0%;
  background: var(--red);
}

/* ---------- Page transition curtain ---------- */
.transition {
  position: fixed; inset: 0;
  display: flex;
  pointer-events: none;
  z-index: 4500;
}
.transition span {
  flex: 1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;
}
.transition.is-active { pointer-events: all; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(14px, 2vw, 22px) var(--pad);
  transition: transform .5s var(--ease-out), background-color .35s, box-shadow .35s, padding .35s;
}
.nav--scrolled {
  background: rgba(250,248,240,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(12,11,9,.08);
}
.nav--hidden { transform: translateY(-110%); }

.nav__logo {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  position: relative;
  z-index: 1102;
}
.nav__logo .dot { color: var(--red); }

.nav__links { display: flex; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.nav__links a {
  font-size: .86rem;
  font-weight: 500;
  position: relative;
  padding-block: .3em;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__right { display: flex; align-items: center; gap: 1rem; }

.nav__burger {
  position: relative;
  z-index: 1102;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  transition: background-color .3s, border-color .3s;
}
.nav__burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform .4s var(--ease-out), background-color .3s;
}
/* keep nav (logo + burger) clickable above the open menu */
.menu-open .nav {
  z-index: 1102;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.menu-open .nav__logo { color: var(--cream); }
.nav__cta { transition: opacity .3s; }
.menu-open .nav__cta { opacity: 0; pointer-events: none; }
.menu-open .nav__burger { border-color: var(--cream); }
.menu-open .nav__burger span { background: var(--cream); }
.menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed; inset: 0;
  background: var(--ink);
  color: var(--cream);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu__links { display: flex; flex-direction: column; padding-inline: var(--pad); }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  font-size: clamp(2.4rem, 7.5vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  width: fit-content;
  transition: color .3s;
  overflow: hidden;
}
.menu__links a .menu__txt { display: inline-block; transform: translateY(110%); }
.menu__links a sup {
  font-size: .9rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .1em;
}
.menu__links a:hover { color: var(--red); }
.menu__foot {
  position: absolute;
  bottom: clamp(20px, 4vw, 44px);
  left: var(--pad); right: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .84rem;
  opacity: 0;
}
.menu__foot a { border-bottom: 1px solid rgba(250,248,240,.3); transition: border-color .3s, color .3s; }
.menu__foot a:hover { color: var(--red); border-color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: 1em 1.9em;
  border-radius: 99px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .92rem;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--red);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--cream); }
.btn .arr { display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover .arr { transform: translate(4px, -4px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--red); }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--ink); }
.btn--red { --btn-bg: var(--red); --btn-fg: var(--cream); }
.btn--red::before { background: var(--cream); }
.btn--red:hover { color: var(--ink); }
.btn--nav { padding: .75em 1.5em; font-size: .84rem; }
.btn--big { font-size: clamp(1rem, 1.4vw, 1.25rem); padding: 1.2em 2.4em; }

/* ---------- Split / reveal primitives ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w-in { display: inline-block; will-change: transform; }
[data-reveal] { opacity: 0; transform: translateY(36px); }
html.no-anim [data-reveal] { opacity: 1; transform: none; }
[data-scrub] .sw { opacity: .14; }
html.no-anim [data-scrub] .sw { opacity: 1; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(110px, 16vh, 170px);
  padding-bottom: clamp(28px, 4vw, 56px);
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(12,11,9,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12,11,9,.045) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 120px) clamp(60px, 8vw, 120px);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, black 30%, transparent 100%);
}
.hero__inner { position: relative; }
.hero__label { margin-bottom: clamp(1.2rem, 2.5vw, 2.2rem); }
.hero h1 { max-width: 14ch; }
.hero__star {
  position: absolute;
  top: -4%;
  right: clamp(0px, 6vw, 120px);
  width: clamp(80px, 13vw, 200px);
  height: auto;
  color: var(--red);
  animation: spin 14s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(2rem, 4.5vw, 4rem);
  flex-wrap: wrap;
}
.hero__copy { max-width: 42ch; }
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .6;
}
.hero__scroll i {
  font-style: normal;
  animation: bob 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes bob { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* Page hero (inner pages) */
.page-hero {
  padding-top: clamp(140px, 22vh, 240px);
  padding-bottom: clamp(40px, 7vw, 90px);
  position: relative;
  overflow: hidden;
}
.page-hero .label { margin-bottom: 1.4rem; }
.page-hero h1 { max-width: 12ch; }
.page-hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3.4rem);
  padding-top: 1.6rem;
  border-top: 1.5px solid rgba(12,11,9,.16);
}
.theme-ink .page-hero__meta { border-color: rgba(250,248,240,.18); }
.page-hero__meta p { max-width: 48ch; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  padding-block: clamp(.9rem, 1.6vw, 1.4rem);
}
.marquee--border { border-block: 1.5px solid currentColor; }
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-right: clamp(2rem, 4vw, 4rem);
  animation: marquee var(--mq-speed, 22s) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
/* Track holds two identical copies — sliding exactly half its width
   lands copy 2 where copy 1 started, so the loop is seamless.
   (-100% scrolled the whole track away and showed a blank gap.) */
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  font-size: clamp(1.6rem, 4.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.marquee__item .star { color: var(--red); font-size: .6em; }
.marquee--sm .marquee__item { font-size: clamp(.95rem, 1.6vw, 1.3rem); font-weight: 600; text-transform: none; }
.marquee--ghost .marquee__item { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee--ghost .marquee__item .star { color: var(--red); -webkit-text-stroke: 0; }

/* ---------- Service rows (home) ---------- */
.srows { border-top: 1.5px solid rgba(12,11,9,.16); }
.srow {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr auto 3rem;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.4rem, 2.6vw, 2.4rem) 0;
  border-bottom: 1.5px solid rgba(12,11,9,.16);
  isolation: isolate;
  transition: color .35s, padding-left .45s var(--ease-out);
}
.srow::after {
  content: "";
  position: absolute;
  inset: 0 calc(var(--pad) * -1);
  background: var(--ink);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease-out);
}
.srow:hover { color: var(--cream); padding-left: clamp(.5rem, 1.5vw, 1.5rem); }
.srow:hover::after { transform: scaleY(1); }
.srow__num { font-size: .85rem; font-weight: 600; color: var(--red); }
.srow__name { font-size: clamp(1.5rem, 3.4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.srow__tags { font-size: .84rem; opacity: .6; text-align: right; }
.srow__arrow {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  transition: transform .4s var(--ease-out), color .3s;
}
.srow:hover .srow__arrow { transform: rotate(45deg); color: var(--red); }
/* Capabilities revealed on hover — what we provide for that service */
.srow__caps {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease-out), opacity .4s, margin-top .45s var(--ease-out);
}
.srow:hover .srow__caps { max-height: 180px; margin-top: 1.1rem; opacity: 1; }
.srow__caps span {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .42em 1.05em;
  border: 1px solid rgba(250,248,240,.32);
  border-radius: 99px;
  white-space: nowrap;
}
@media (hover: none) { .srow__caps { display: none; } }

/* ---------- Manifesto (home) ---------- */
.manifesto {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}
.manifesto__lead .display-md { max-width: 20ch; }
.manifesto__media {
  position: relative;
  min-height: clamp(380px, 46vw, 600px);
}
.manifesto__item {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 24px 60px rgba(12,11,9,.18);
  will-change: transform;
}
.manifesto__item::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(12,11,9,.1);
  pointer-events: none;
  z-index: 2;
}
.manifesto__item img, .manifesto__item video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease-out);
}
.manifesto__item:hover img, .manifesto__item:hover video { transform: scale(1.05); }
.manifesto__item--main { top: 0; right: 0; width: 64%; aspect-ratio: 3 / 4; z-index: 1; }
.manifesto__item--sub  { bottom: 0; left: 0; width: 52%; aspect-ratio: 4 / 3; z-index: 2; }
.manifesto__tag {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(250,248,240,.92);
  padding: .5em 1em;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.manifesto__tag::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: .65em;
}
.manifesto__accent {
  position: absolute;
  top: 7%; left: 12%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  z-index: 3;
}
@media (max-width: 860px) {
  .manifesto { grid-template-columns: 1fr; }
  /* drop the absolute overlap → a clean 2-up pair that reads as intentional */
  .manifesto__media {
    min-height: 0;
    margin-top: clamp(1.6rem, 5vw, 2.4rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(.8rem, 2.5vw, 1.2rem);
    align-items: stretch;
  }
  .manifesto__item--main, .manifesto__item--sub {
    position: static;
    width: auto;
  }
  .manifesto__item--main { aspect-ratio: 3 / 4; }
  .manifesto__item--sub  { aspect-ratio: 3 / 4; align-self: end; }
  .manifesto__accent { display: none; }
}
@media (max-width: 480px) {
  /* stack the pair on the narrowest screens so neither gets too small */
  .manifesto__media { grid-template-columns: 1fr; }
  .manifesto__item--main { aspect-ratio: 16 / 10; }
  .manifesto__item--sub  { aspect-ratio: 16 / 10; }
}

/* ---------- Covers (CSS artwork for projects) ---------- */
.cover {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
}
.cover__word {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 5.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  padding-inline: .4em;
}
.cover__meta {
  position: absolute;
  top: 1.4rem; left: 1.6rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
  z-index: 2;
}
.cover__shape { position: absolute; z-index: 1; }

.cover--nova { background: var(--ink); color: var(--cream); }
.cover--nova .cover__shape {
  width: 46%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  top: -18%; right: -10%;
}
.cover--nova::after {
  content: "";
  position: absolute;
  width: 30%; aspect-ratio: 1;
  border: 2px solid rgba(250,248,240,.35);
  border-radius: 50%;
  bottom: -12%; left: 6%;
}

.cover--brewline { background: var(--red); color: var(--cream); }
.cover--brewline .cover__shape {
  width: 64%; aspect-ratio: 2/1;
  border-radius: 999px 999px 0 0;
  background: rgba(250,248,240,.92);
  bottom: 0; left: 50%;
  transform: translateX(-50%);
}
.cover--brewline .cover__word { mix-blend-mode: difference; }

.cover--halcyon { background: var(--sand); color: var(--ink); }
.cover--halcyon .cover__shape {
  width: 52%; aspect-ratio: 1;
  border: 2.5px solid var(--ink);
  border-radius: 50% 50% 0 0;
  top: 16%; right: 8%;
  opacity: .8;
}
.cover--halcyon::after {
  content: "";
  position: absolute;
  width: 14%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  bottom: 14%; left: 10%;
}

.cover--pulse { background: var(--ink); color: var(--red); }
.cover--pulse::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(250,248,240,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250,248,240,.07) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cover--pulse .cover__shape {
  width: 70%; height: 3px;
  background: var(--red);
  bottom: 26%; left: 15%;
  box-shadow: 0 -14px 0 rgba(210,31,31,.4), 0 14px 0 rgba(210,31,31,.4);
}

.cover--verde { background: var(--gray); color: var(--ink); }
.cover--verde .cover__word { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.cover--verde .cover__shape {
  width: 38%; aspect-ratio: 1;
  background: var(--red);
  border-radius: 50% 0 50% 50%;
  top: -10%; left: -8%;
  opacity: .92;
}

.cover--atlas { background: var(--cream); color: var(--ink); }
.cover--atlas .cover__shape {
  width: 100%; height: 22%;
  background: var(--red);
  bottom: 0; left: 0;
}
.cover--atlas::after {
  content: "";
  position: absolute;
  width: 26%; aspect-ratio: 1;
  border: 2.5px solid var(--ink);
  top: 12%; right: 10%;
  transform: rotate(18deg);
}

.cover--mono { background: var(--ink); color: var(--cream); }
.cover--mono .cover__word { color: transparent; -webkit-text-stroke: 2px var(--cream); }
.cover--mono .cover__shape {
  width: 130%; height: 4px;
  background: var(--red);
  transform: rotate(-24deg);
}

.cover--kite { background: var(--red); color: var(--ink); }
.cover--kite .cover__shape {
  width: 0; height: 0;
  border-left: clamp(60px, 8vw, 130px) solid transparent;
  border-right: clamp(60px, 8vw, 130px) solid transparent;
  border-bottom: clamp(100px, 14vw, 220px) solid var(--cream);
  top: -8%; right: -4%;
  transform: rotate(32deg);
  opacity: .95;
}
.cover--kite .cover__word { color: var(--cream); }

/* Real project media (photos / videos from actual client work) */
.cover--img { background: var(--sand); }
.cover--img img, .cover--img video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.cover--img::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(12,11,9,.1);
  pointer-events: none;
  z-index: 1;
}
.cover--img .cover__meta, .plate .cover__meta {
  color: var(--ink);
  background: rgba(250,248,240,.88);
  padding: .55em 1.1em;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  z-index: 4;
}
.cover--img .cover__meta::before, .plate .cover__meta::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  margin-right: .7em;
}
.wcard:hover .cover--img img, .wcard:hover .cover--img video,
.hpanel:hover .cover--img img, .hpanel:hover .cover--img video {
  transform: scale(1.04);
}

/* ---------- Art-directed project plates ----------
   Client assets are staged inside designed compositions built from
   the site's own palette and motifs, instead of raw screenshots. */
.plate {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
}
.plate__word {
  position: absolute;
  z-index: 1;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(3rem, 9.5vw, 8.6rem);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(12,11,9,.32);
  user-select: none;
  pointer-events: none;
}
.plate__shape { position: absolute; pointer-events: none; }

/* Browser-window frame (web design work) */
.plate__frame {
  position: relative;
  z-index: 2;
  width: min(68%, 540px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 28px 70px rgba(12,11,9,.38);
  transition: transform .7s var(--ease-out);
}
.plate__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 13px;
  background: var(--cream);
  border-bottom: 1px solid rgba(12,11,9,.1);
}
.plate__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(12,11,9,.16); }
.plate__bar i:first-child { background: var(--red); }
.plate__frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top;
  display: block;
}
.hpanel:hover .plate__frame, .wcard:hover .plate__frame { transform: translateY(-8px); }

/* Arch window (product / brand photography) */
.plate__arch {
  position: relative;
  z-index: 2;
  height: 76%;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(12,11,9,.28);
  transition: transform .7s var(--ease-out);
}
.plate__arch img, .plate__arch video { width: 100%; height: 100%; object-fit: cover; }
.hpanel:hover .plate__arch, .wcard:hover .plate__arch { transform: translateY(-8px); }

/* Video-player frame (YouTube work) */
.plate__player {
  position: relative;
  z-index: 2;
  width: min(74%, 600px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(12,11,9,.32);
  transition: transform .7s var(--ease-out);
}
.plate__player img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.plate__play {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(50px, 5vw, 70px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(12,11,9,.35);
  transition: transform .45s var(--ease-out);
}
.plate__play::before {
  content: "";
  border-left: 15px solid var(--cream);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.plate__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: rgba(250,248,240,.35);
}
.plate__progress::before {
  content: "";
  position: absolute;
  inset: 0;
  right: 38%;
  background: var(--red);
}
.hpanel:hover .plate__play, .wcard:hover .plate__play { transform: translate(-50%, -50%) scale(1.14); }
.hpanel:hover .plate__player, .wcard:hover .plate__player { transform: translateY(-8px); }

/* Tilted polaroid card (fashion / lifestyle) */
.plate__card {
  position: relative;
  z-index: 2;
  height: 74%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 6px solid var(--cream);
  background: var(--cream);
  box-shadow: 0 24px 60px rgba(12,11,9,.32);
  transform: rotate(-3deg);
  transition: transform .6s var(--ease-out);
}
.plate__card img, .plate__card video { width: 100%; height: 100%; object-fit: cover; }
.hpanel:hover .plate__card, .wcard:hover .plate__card { transform: rotate(0deg) translateY(-4px); }

/* — Tera: ink canvas, blueprint grid, browser window — */
.plate--tera { background: var(--ink); padding-top: 10%; }
.plate--tera::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(250,248,240,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250,248,240,.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.plate--tera .plate__word {
  top: 6%; left: 50%;
  transform: translateX(-50%);
  -webkit-text-stroke: 1.5px rgba(250,248,240,.38);
}
.plate--tera .plate__shape {
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  bottom: -14%; right: -7%;
  opacity: .92;
}

/* — Edison: sand canvas, arch window, echo outline — */
.plate--edison { background: var(--sand); }
.plate--edison::before {
  content: "";
  position: absolute;
  top: 12%; left: 50%;
  height: 76%;
  aspect-ratio: 3 / 4;
  transform: translateX(-32%);
  border: 2px solid rgba(12,11,9,.28);
  border-radius: 999px 999px 18px 18px;
}
.plate--edison .plate__word { bottom: 5%; left: 4%; }
.plate--edison .plate__shape {
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  top: 11%; right: 9%;
}

/* — Spacelink: gray canvas, video player, play button — */
.plate--spacelink { background: var(--gray); padding-bottom: 5%; }
.plate--spacelink::before {
  content: "";
  position: absolute;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(12,11,9,.2);
  top: -16%; right: -10%;
}
.plate--spacelink .plate__word {
  bottom: 5%; left: 50%;
  transform: translateX(-50%);
}
/* — Outsized: signal-red canvas, tilted polaroid — */
.plate--outsized { background: var(--red); padding-top: 6%; }
.plate--outsized .plate__word {
  top: 6%; left: 50%;
  transform: translateX(-50%);
  -webkit-text-stroke: 1.5px rgba(250,248,240,.5);
}
.plate--outsized .plate__shape {
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(250,248,240,.4);
  bottom: -10%; left: -7%;
}

/* Plates inside the smaller home-page cards */
.wcard__media .plate__word { font-size: clamp(1.9rem, 5vw, 4.4rem); }
.wcard__media .plate__frame { width: 72%; }
.wcard__media .plate__arch, .wcard__media .plate__card { height: 70%; }
/* Plates fill their mask exactly — the parallax overscan crop would
   clip their chips and wordmarks */
.wcard__media .cover.plate { inset: 0; height: 100%; }

/* ---------- Selected work (home) ---------- */
.workteaser__layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) 1.5fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}
.workteaser__sticky { position: sticky; top: 18vh; }
.workteaser__sticky .label { margin-bottom: 1.2rem; }
.workteaser__sticky p { margin: 1.4rem 0 2rem; max-width: 36ch; }
.workteaser__list { display: flex; flex-direction: column; gap: clamp(2.4rem, 4.5vw, 4.5rem); }

.wcard { display: block; }
.wcard__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.wcard__media .cover {
  position: absolute;
  inset: -8% 0;
  height: 116%;
  border-radius: 0;
  transition: transform .8s var(--ease-out);
}
.wcard:hover .cover__word { transform: scale(1.06); }
.cover__word { transition: transform .8s var(--ease-out); }
.wcard__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1.5px solid rgba(12,11,9,.16);
}
.wcard__title { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; }
.wcard__cat { font-size: .82rem; opacity: .6; }
.wcard:nth-child(even) { transform: translateY(clamp(0px, 5vw, 70px)); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.stat { border-top: 2px solid currentColor; padding-top: 1.4rem; }
.stat__num {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red);
}
.stat__label { margin-top: .7rem; font-size: .9rem; opacity: .75; }

/* ---------- Testimonials ---------- */
.testi-strip { overflow: hidden; user-select: none; }
.testi-strip__track {
  display: flex;
  gap: clamp(1.2rem, 2vw, 2rem);
  width: max-content;
  padding-block: .5rem;
  /* trailing padding = gap so the -50% loop point is exactly seamless */
  padding-right: clamp(1.2rem, 2vw, 2rem);
  animation: marquee 55s linear infinite;
}
.testi-strip:hover .testi-strip__track { animation-play-state: paused; }
.testi {
  width: clamp(300px, 34vw, 460px);
  flex: none;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.5vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.testi__quote { font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.55; font-weight: 500; }
.testi__quote::before { content: "“"; color: var(--red); font-size: 1.6em; line-height: 0; vertical-align: -.25em; margin-right: .08em; }
.testi__who { display: flex; align-items: center; gap: .9rem; margin-top: auto; }
.testi__avatar {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}
.testi:nth-child(odd) .testi__avatar { background: var(--red); }
.testi__who strong { display: block; font-size: .9rem; line-height: 1.3; }
.testi__who span { font-size: .78rem; opacity: .6; }

/* ---------- Big CTA / Footer ---------- */
.footer { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.footer__cta {
  padding-block: clamp(90px, 13vw, 190px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 2.6rem);
}
.footer__cta .label { justify-content: center; }
.footer__title { max-width: 16ch; }
.footer__title a { transition: color .3s; }
.footer__title a:hover em.accent { color: var(--cream); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(40px, 6vw, 70px);
  border-top: 1px solid rgba(250,248,240,.14);
}
.footer__col h4 {
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: 1.2rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer__col a { opacity: .75; font-size: .92rem; transition: opacity .3s, color .3s; }
.footer__col a:hover { opacity: 1; color: var(--red); }
.footer__col p { opacity: .75; font-size: .92rem; max-width: 30ch; }
.footer__brand .nav__logo { font-size: 1.8rem; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.6rem;
  font-size: .78rem;
  opacity: .55;
  border-top: 1px solid rgba(250,248,240,.14);
}
.footer__big {
  font-size: clamp(5rem, 19.5vw, 21rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: .78;
  text-align: center;
  white-space: nowrap;
  color: var(--ink-soft);
  -webkit-text-stroke: 1px rgba(250,248,240,.16);
  user-select: none;
  pointer-events: none;
  transform: translateY(12%);
}
.footer__big .dot { color: var(--red); -webkit-text-stroke: 0; }

/* ---------- Services page: stacking cards ---------- */
.stack { display: flex; flex-direction: column; gap: clamp(1.4rem, 2.5vw, 2.4rem); }
.stack__card {
  position: sticky;
  top: clamp(86px, 12vh, 130px);
  border-radius: clamp(18px, 2.5vw, 32px);
  padding: clamp(1.8rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  min-height: clamp(380px, 58vh, 560px);
  background: var(--sand);
  will-change: transform;
  box-shadow: 0 -10px 40px rgba(12,11,9,.07);
}
.stack__card:nth-child(4n+2) { background: var(--ink); color: var(--cream); }
.stack__card:nth-child(4n+3) { background: var(--red); color: var(--cream); }
.stack__card:nth-child(4n+4) { background: var(--gray); }
.stack__num {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--red);
  margin-bottom: 1.2rem;
}
.stack__card:nth-child(4n+3) .stack__num { color: var(--cream); opacity: .8; }
.stack__card h3 { font-size: clamp(1.9rem, 4vw, 3.4rem); margin-bottom: 1.2rem; max-width: 12ch; }
.stack__card p { max-width: 52ch; opacity: .85; }
.stack__cta { margin-top: 2rem; display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .92rem; border-bottom: 2px solid var(--red); width: fit-content; padding-bottom: .25em; }
.stack__card:nth-child(4n+3) .stack__cta { border-color: var(--cream); }
.stack__chips { display: flex; flex-wrap: wrap; gap: .6rem; align-content: flex-start; }
.stack__chips li {
  font-size: .8rem;
  font-weight: 500;
  padding: .55em 1.1em;
  border: 1.5px solid currentColor;
  border-radius: 99px;
  opacity: .85;
  transition: background-color .3s, color .3s, border-color .3s;
}
.stack__chips li:hover { background: var(--red); border-color: var(--red); color: var(--cream); opacity: 1; }

/* ---------- Engagement models (services page) ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1.5px solid rgba(12,11,9,.14);
  padding: clamp(1.7rem, 2.8vw, 2.6rem);
  transition: transform .55s var(--ease-out), border-color .4s, background-color .4s, color .4s;
}
.plan:hover { transform: translateY(-10px); border-color: var(--ink); }
.plan--featured { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.plan--featured:hover { background: var(--red); border-color: var(--red); }
.plan__tag {
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--red);
}
.plan--featured .plan__tag { color: var(--cream); opacity: .8; }
.plan__name { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.plan__desc { opacity: .68; font-size: .95rem; }
.plan--featured .plan__desc { opacity: .8; }
.plan__list { display: flex; flex-direction: column; gap: .7rem; margin-top: .2rem; }
.plan__list li { display: flex; gap: .7em; align-items: baseline; font-size: .92rem; }
.plan__list li::before { content: "→"; color: var(--red); flex: none; }
.plan--featured .plan__list li::before { color: var(--cream); }
.plan .stack__cta { margin-top: auto; }
.plan--featured .stack__cta { border-color: var(--cream); }
.plan--featured:hover .stack__cta { border-color: var(--cream); }
.plan--featured:hover .plan__list li::before,
.plan--featured:hover .plan__tag { color: var(--cream); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { counter-reset: step; }
.process__item {
  display: grid;
  grid-template-columns: clamp(70px, 12vw, 160px) 1fr 1.2fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: start;
  padding-block: clamp(1.8rem, 3.5vw, 3rem);
  border-top: 1.5px solid rgba(250,248,240,.18);
}
.process__item:last-child { border-bottom: 1.5px solid rgba(250,248,240,.18); }
.process__num {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
}
.process__item h3 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
.process__item p { opacity: .75; max-width: 52ch; }

/* ---------- Work page ---------- */
.hscroll { position: relative; overflow: hidden; }
.hscroll__track {
  display: flex;
  align-items: stretch;
  gap: clamp(1.4rem, 2.5vw, 2.5rem);
  padding-inline: var(--pad);
  width: max-content;
  will-change: transform;
}
.hpanel {
  width: clamp(320px, 58vw, 860px);
  flex: none;
  display: flex;
  flex-direction: column;
}
.hpanel__media { height: clamp(320px, 62vh, 600px); border-radius: var(--radius); overflow: hidden; position: relative; }
.hpanel__media .cover { height: 100%; border-radius: 0; }
.hpanel__info {
  display: flex;
  align-items: baseline;
  gap: clamp(.9rem, 1.5vw, 1.4rem);
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1.5px solid rgba(12,11,9,.16);
}
.hpanel__num { font-size: .85rem; font-weight: 600; color: var(--red); flex: none; }
.hpanel__title { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; }
.hpanel__meta { font-size: .82rem; opacity: .6; text-align: right; margin-left: auto; }
.hpanel--intro {
  width: clamp(280px, 38vw, 560px);
  justify-content: center;
  gap: 1.5rem;
}
.hscroll__progress {
  height: 3px;
  background: rgba(12,11,9,.12);
  margin: clamp(2rem, 4vw, 3rem) var(--pad) 0;
  border-radius: 99px;
  overflow: hidden;
}
.hscroll__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

/* Work index list w/ floating preview */
.work-index { position: relative; }
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem 1.6fr 1fr auto;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.5rem, 2.8vw, 2.6rem) 0;
  border-bottom: 1.5px solid rgba(12,11,9,.16);
  transition: opacity .35s, padding-left .45s var(--ease-out);
}
.work-row:first-child { border-top: 1.5px solid rgba(12,11,9,.16); }
.work-index:hover .work-row { opacity: .3; }
.work-index .work-row:hover { opacity: 1; padding-left: clamp(.5rem, 1.5vw, 1.4rem); }
.work-row__num { font-size: .85rem; font-weight: 600; color: var(--red); }
.work-row__name {
  font-size: clamp(1.6rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.work-row__cat { font-size: .86rem; opacity: .6; }
.work-row__year { font-size: .86rem; opacity: .6; }

.work-preview {
  position: fixed;
  top: 0; left: 0;
  width: clamp(260px, 26vw, 420px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  transform: scale(.85);
  border: 5px solid var(--cream);
  background: var(--cream);
  box-shadow: 0 30px 70px rgba(12,11,9,.3);
  display: none;
}
@media (hover: hover) and (pointer: fine) { .work-preview { display: block; } }
.work-preview .cover { border-radius: 0; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.work-preview .cover.is-current { opacity: 1; }
.work-preview .cover__word { font-size: clamp(1.6rem, 2.6vw, 2.6rem); }

/* ---------- Creative reel ----------
   Full-bleed film strip: two rows of real campaign frames auto-drifting
   in opposite directions, surging with scroll velocity (JS), pausing on
   row hover, and spotlighting the frame under the cursor. Falls back to
   a manually swipeable strip when JS is off or motion is reduced. */
.reel {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: clamp(.9rem, 1.6vw, 1.5rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reel__row {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reel__row::-webkit-scrollbar { display: none; }
.reel.is-live .reel__row { overflow: hidden; }

.reel__track {
  display: flex;
  align-items: center;
  gap: var(--reel-gap, clamp(.9rem, 1.6vw, 1.5rem));
  width: max-content;
  padding-block: clamp(1.2rem, 2vw, 1.9rem);
  padding-inline: clamp(.9rem, 1.6vw, 1.5rem);
}
.reel.is-live .reel__track {
  padding-right: var(--reel-gap, clamp(.9rem, 1.6vw, 1.5rem));
  padding-left: 0;
  will-change: transform;
  animation: reel-ltr var(--reel-dur, 52s) linear infinite;
}
.reel.is-live .reel--rtl .reel__track { animation-name: reel-rtl; }
.reel.is-live .reel__row:hover .reel__track { animation-play-state: paused; }
@keyframes reel-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes reel-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.reel__tile {
  position: relative;
  flex: none;
  height: clamp(170px, 22vw, 290px);
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
  transition: opacity .4s, transform .55s var(--ease-out), box-shadow .45s;
}
.reel__tile--wide { aspect-ratio: 16 / 9; }
.reel__tile--sq   { aspect-ratio: 1 / 1; }
.reel__tile--tall { aspect-ratio: 4 / 5; }
.reel__tile img, .reel__tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease-out);
}
.reel__tile::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(12,11,9,.1);
  pointer-events: none;
  z-index: 3;
}
/* Spotlight: dim the whole row, light up the pointed frame */
.reel__row:hover .reel__tile { opacity: .4; }
.reel__row .reel__tile:hover {
  opacity: 1;
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 46px rgba(12,11,9,.32);
  z-index: 4;
}
.reel__tile:hover::after { box-shadow: inset 0 0 0 2px var(--red); }
.reel__tile:hover img, .reel__tile:hover video { transform: scale(1.07); }

.reel__tag {
  position: absolute;
  left: .85rem; bottom: .85rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(250,248,240,.92);
  padding: .5em 1em;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s var(--ease-out);
}
.reel__tag::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: .65em;
}
.reel__tile:hover .reel__tag { opacity: 1; transform: translateY(0); }
@media (hover: none) { .reel__tag { opacity: 1; transform: none; } }

/* Raw UI screenshots wear browser chrome so they read as designed shots */
.reel__tile.is-shot { background: var(--gray); padding: 1.6rem .5rem .5rem; }
.reel__tile.is-shot::before {
  content: "";
  position: absolute;
  top: .7rem; left: .8rem;
  z-index: 2;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 12px 0 0 rgba(12,11,9,.22), 24px 0 0 rgba(12,11,9,.22);
}
.reel__tile.is-shot img { border-radius: 9px; }

/* Client strip */
.clients { display: flex; flex-wrap: wrap; }
.client {
  flex: 1 1 25%;
  min-width: 200px;
  padding: clamp(1.8rem, 3.5vw, 3.2rem) 1.5rem;
  border: 1px solid rgba(12,11,9,.12);
  margin: -.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  letter-spacing: -0.02em;
  opacity: .55;
  transition: opacity .35s, background-color .35s, color .35s;
}
.client:hover { opacity: 1; background: var(--ink); color: var(--cream); }
.client .dot { color: var(--red); }

/* ---------- Case study (project subpages) ---------- */
.case-back {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
  opacity: .65;
  transition: opacity .3s, color .3s;
}
.case-back:hover { opacity: 1; color: var(--red); }
.case-back .arr { transition: transform .4s var(--ease-out); }
.case-back:hover .arr { transform: translateX(-4px); }

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  margin-top: clamp(2rem, 4vw, 3.4rem);
  padding-top: 1.6rem;
  border-top: 1.5px solid rgba(12,11,9,.16);
}
.case-meta__block h4 {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: .7rem;
}
.case-meta__block p { font-size: .98rem; opacity: .85; }

/* Big feature media */
.case-feature {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
.case-feature::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(12,11,9,.1);
  pointer-events: none;
  z-index: 2;
}
.case-feature img, .case-feature video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--ease-out);
}
.case-feature:hover img, .case-feature:hover video { transform: scale(1.03); }

/* Media gallery */
.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.6rem);
}
.case-gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.case-gallery .case-gallery__full { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.case-gallery .case-gallery__tall { aspect-ratio: 3 / 4; }
.case-gallery figure::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(12,11,9,.1);
  pointer-events: none;
  z-index: 2;
}
.case-gallery img, .case-gallery video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease-out);
}
.case-gallery figure:hover img, .case-gallery figure:hover video { transform: scale(1.05); }
.case-gallery figcaption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 3;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(250,248,240,.92);
  padding: .5em 1em;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .35s var(--ease-out);
}
.case-gallery figcaption::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: .65em;
}
.case-gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
@media (hover: none) { .case-gallery figcaption { opacity: 1; transform: none; } }

/* Next project band */
.case-next {
  display: block;
  border-top: 1.5px solid rgba(250,248,240,.16);
  padding-block: clamp(3rem, 7vw, 6rem);
  text-align: center;
}
.case-next .label { justify-content: center; margin-bottom: 1.2rem; }
.case-next__name {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-size: clamp(2.3rem, 6.2vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  transition: color .35s;
}
.case-next__name .arr { color: var(--red); transition: transform .45s var(--ease-out); }
.case-next:hover .case-next__name { color: var(--red); }
.case-next:hover .case-next__name .arr { transform: translate(8px, -8px); }

@media (max-width: 860px) {
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery .case-gallery__full { aspect-ratio: 4 / 3; }
  /* keep portrait tiles (phone/card/vertical reels) portrait on phones */
  .case-gallery .case-gallery__tall { aspect-ratio: 4 / 5; }
  .case-feature { aspect-ratio: 4 / 3; }
}

/* ---------- About page ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2vw, 2rem);
}
.value {
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  padding: clamp(1.8rem, 3vw, 3rem);
  min-height: clamp(220px, 30vh, 300px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform .5s var(--ease-out), background-color .4s, color .4s;
}
.value:hover { transform: translateY(-8px); background: var(--red); color: var(--cream); }
.value__num { font-size: .85rem; font-weight: 700; color: var(--red); transition: color .4s; }
.value:hover .value__num { color: var(--cream); }
.value h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); margin-bottom: .6rem; }
.value p { opacity: .75; font-size: .95rem; }

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2vw, 2rem);
}
.member__photo {
  aspect-ratio: 3 / 3.6;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--sand);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease-out);
}
.member:hover .member__photo { transform: translateY(-6px); }
.member:nth-child(2) .member__photo { background: var(--ink); color: var(--cream); }
.member:nth-child(3) .member__photo { background: var(--red); color: var(--cream); }
.member:nth-child(4) .member__photo { background: var(--gray); }
.member__photo::after {
  content: "";
  position: absolute;
  width: 38%; aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: .25;
  bottom: -12%; right: -8%;
}
.member__name { margin-top: 1rem; font-weight: 700; font-size: 1.05rem; }
.member__role { font-size: .84rem; opacity: .6; }

.story-figure {
  border-radius: var(--radius);
  overflow: hidden;
  height: clamp(320px, 60vh, 620px);
  position: relative;
}
.story-figure .cover { position: absolute; inset: -10% 0; height: 120%; border-radius: 0; }

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.contact-info { position: sticky; top: 16vh; display: flex; flex-direction: column; gap: 2.2rem; }
.contact-info__block h4 {
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: .7rem;
}
.contact-info__block a { font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight: 600; letter-spacing: -0.01em; border-bottom: 2px solid transparent; transition: border-color .3s, color .3s; }
.contact-info__block a:hover { color: var(--red); border-color: var(--red); }

.form { display: flex; flex-direction: column; gap: clamp(1.8rem, 3vw, 2.6rem); }
.field { position: relative; display: flex; flex-direction: column; gap: .5rem; }
.field label {
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .6;
}
.field input, .field textarea {
  font: inherit;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 500;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(12,11,9,.25);
  padding: .5em 0;
  border-radius: 0;
  color: var(--ink);
  outline: none;
  transition: border-color .3s;
  resize: vertical;
  min-height: 1em;
}
.field input:focus, .field textarea:focus { border-color: var(--red); }
.field input::placeholder, .field textarea::placeholder { color: rgba(12,11,9,.3); }
.field__line {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.field input:focus ~ .field__line, .field textarea:focus ~ .field__line { transform: scaleX(1); }

.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  font-size: .86rem;
  font-weight: 500;
  padding: .65em 1.3em;
  border: 1.5px solid rgba(12,11,9,.3);
  border-radius: 99px;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chips input:checked + label, .chips label:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chips input:checked + label { background: var(--red); border-color: var(--red); }

.form__success {
  display: none;
  flex-direction: column;
  gap: 1.2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
}
.form__success h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.form__success .dot { color: var(--red); }

/* FAQ */
.faq { border-top: 1.5px solid rgba(12,11,9,.16); }
.faq__item { border-bottom: 1.5px solid rgba(12,11,9,.16); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  padding: clamp(1.3rem, 2.4vw, 2rem) 0;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color .3s;
}
.faq__q:hover { color: var(--red); }
.faq__icon {
  flex: none;
  width: 38px; height: 38px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform .45s var(--ease-out), background-color .3s, color .3s;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: var(--cream); }
.faq__a { height: 0; overflow: hidden; }
.faq__a p { padding-bottom: clamp(1.3rem, 2.4vw, 2rem); max-width: 65ch; opacity: .75; }

/* ---------- Blog / journal ---------- */
.journal { border-top: 1.5px solid rgba(12,11,9,.16); }
.post .faq__q { align-items: flex-start; gap: 2rem; }
.post__main { display: flex; flex-direction: column; gap: .7rem; }
.post__meta {
  display: flex;
  align-items: center;
  gap: .8em;
  flex-wrap: wrap;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.post__tag { color: var(--red); }
.post__date { opacity: .55; }
.post__title {
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 24ch;
}
.post__excerpt {
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  opacity: .62;
  max-width: 62ch;
}
.post__body { padding-top: .4rem; }
.post__body p { max-width: 68ch; opacity: .8; padding-bottom: 1.3rem; }
.post__body p strong { opacity: 1; }
.post__cta {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
  border-bottom: 2px solid var(--red);
  padding-bottom: .2em;
  transition: color .3s;
}
.post__cta:hover { color: var(--red); }

/* ---------- Helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.sticky-col { position: sticky; top: 16vh; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .stack__card { grid-template-columns: 1fr; min-height: 0; gap: 2rem; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .workteaser__layout { grid-template-columns: 1fr; }
  .workteaser__sticky { position: static; }
  .wcard:nth-child(even) { transform: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: static; }
  .srow { grid-template-columns: 2.6rem 1fr 2rem; }
  .srow__tags { display: none; }
  .work-row { grid-template-columns: 2.6rem 1fr auto; }
  .work-row__cat { display: none; }
  .values { grid-template-columns: 1fr; }
  .hscroll__track { width: auto; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
  .hpanel { scroll-snap-align: center; width: 82vw; }
  .hscroll__progress { display: none; }
  .process__item { grid-template-columns: 1fr; gap: .6rem; }
}
@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__cta { display: none; }

  /* Phone type scale — the tablet-tuned minimums overflow narrow screens */
  .display-xl { font-size: clamp(2.2rem, 11.5vw, 3.2rem); letter-spacing: -0.02em; }
  .display-lg { font-size: clamp(1.95rem, 9.5vw, 2.7rem); letter-spacing: -0.02em; }
  .display-md { font-size: clamp(1.55rem, 7.2vw, 2.1rem); letter-spacing: -0.02em; }

  /* Tighter vertical rhythm so phone pages aren't endless */
  .section { padding-block: clamp(60px, 14vw, 110px); }

  /* Home hero: center the content group. It was bottom-anchored
     (justify-content:flex-end), which left a big empty grid band above
     the headline on tall phones. Centering fills the screen with
     balanced breathing room — full-height impact, no dead space. */
  .hero {
    justify-content: center;
    padding-top: clamp(84px, 12vh, 116px);
    padding-bottom: clamp(40px, 9vh, 72px);
  }
  .hero h1 { max-width: 100%; }
  .hero__copy { max-width: 100%; }
  /* star becomes an upper-corner accent floating above the centered headline */
  .hero__star { width: 54px; top: clamp(64px, 9vh, 92px); right: 0; opacity: .9; }
  .hero__scroll { margin-top: clamp(1.6rem, 5vw, 2.4rem); opacity: .55; }

  /* Inner-page heroes: 22vh top padding left a big gap under the nav on
     phones — open them tighter and more intentionally */
  .page-hero { padding-top: clamp(104px, 15vh, 140px); }

  /* Featured swipe gallery: narrower panels so the next one peeks (swipe hint) */
  .hpanel { width: 78vw; }

  /* Stats: roomier numbers in the 2-col grid */
  .stat__num { font-size: clamp(2.1rem, 11vw, 3rem); }

  /* Next-project link wraps & fits */
  .case-next__name { font-size: clamp(1.9rem, 9vw, 2.6rem); flex-wrap: wrap; justify-content: center; }

  /* Comfortable tap targets for small links */
  .footer__col a { display: inline-block; padding-block: .3rem; }
  .case-back { padding-block: .35rem; }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .display-xl { font-size: clamp(2rem, 11vw, 2.6rem); }
  .case-meta { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-scrub] .sw { opacity: 1; }
  .marquee__track, .testi-strip__track, .reel__track { animation: none; }
}
