/* =========================================================
   PABLO PAVÍA — PORTFOLIO 2026
   Brand & Digital Designer · Black / Red dark editorial system
   ========================================================= */

/* ----------  TOKENS — BLACK / RED DARK EDITORIAL  ---------- */
:root {
  /* Brand red accent */
  --red:        #EF2B2D;
  --red-deep:   #B91D1E;
  --red-soft:   #FF5A5C;
  --red-pill:   #EF2B2D;   /* highlight pill fill */
  --red-rgb:    239, 43, 45;  /* channels, so rgba() tints follow a per-page accent */

  /* Semantic dark base */
  --bg:         #070707;   /* page background */
  --surface:    #111111;   /* cards / panels */
  --surface-2:  #161616;   /* raised surface */
  --text:       #F5F5F5;   /* primary text */
  --text-2:     #9A9A9A;   /* secondary text */

  /* Legacy names remapped onto the dark system
     (kept so every existing token-driven rule flips automatically) */
  --cream:      #070707;   /* former page bg */
  --rose:       #101010;   /* former peach zones -> dark band */
  --rose-deep:  #161616;   /* deeper gradient stop */
  --ink:        #F5F5F5;   /* former dark text -> light */
  --ink-soft:   #9A9A9A;   /* secondary text */
  --gray:       #6E6E6E;   /* big muted display headings */
  --gray-2:     #2A2A2A;   /* dark decorative */
  --line:       rgba(255,255,255,0.10);

  /* Neutral decorative (replaces former cool/blue) */
  --slate:      #1A1A1A;

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --maxw: 1480px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 18px;

  /* Motion */
  --ease: cubic-bezier(0.625, 0.05, 0, 1);

  --nav-color: var(--ink);
}

/* ----------  PER-PAGE ACCENT  ----------
   A case study can re-point the whole red system at its own colour with
   data-accent on <body>. Every red in this sheet routes through four tokens,
   so nothing is left behind.

     <body data-accent="wavewear">                             whole page
     <body data-accent="wavewear" data-accent-scope="content">  case study only;
                                                nav / footer / cursor stay red
*/
body[data-accent="adcompas"]      { --acc:#4E7BFF; --acc-deep:#2F58C7; --acc-soft:#84A3FF; --acc-rgb:78,123,255; }
body[data-accent="hardcore-crew"] { --acc:#D4AF37; --acc-deep:#A08428; --acc-soft:#E6C863; --acc-rgb:212,175,55; }
body[data-accent="senior-market"] { --acc:#A8C3A2; --acc-deep:#7E9A78; --acc-soft:#C4D8BF; --acc-rgb:168,195,162; }
body[data-accent="wavewear"]      { --acc:#5BD1DD; --acc-deep:#2E9BA8; --acc-soft:#8FE2EA; --acc-rgb:91,209,221; }
body[data-accent="havenn"]        { --acc:#C9A183; --acc-deep:#9C7A5E; --acc-soft:#DFBFA4; --acc-rgb:201,161,131; }
body[data-accent="uve-group"]     { --acc:#F5F5F5; --acc-deep:#C4C4C4; --acc-soft:#FFFFFF; --acc-rgb:245,245,245; }

body[data-accent]:not([data-accent-scope="content"]),
body[data-accent][data-accent-scope="content"] main {
  --red:      var(--acc);
  --red-deep: var(--acc-deep);
  --red-soft: var(--acc-soft);
  --red-pill: var(--acc);
  --red-rgb:  var(--acc-rgb);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100dvh;
  cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--red-soft); color: #fff; }

/* ----------  CUSTOM CURSOR  ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease);
}
.cursor__label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  letter-spacing: .01em;
}
.cursor.is-active {
  width: 110px; height: 110px;
  background: var(--red);
}
.cursor.is-active .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ----------  INTRO LOADER  ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 9000;
  display: grid; place-items: center;
  background: var(--cream);
  pointer-events: none;
}
.loader__panel {
  position: absolute; inset: 0;
  background: var(--red);
  transform-origin: bottom;
}
.loader__name {
  position: relative;
  display: flex; align-items: center; gap: .55rem;
  color: #fff;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.loader__dot { width: .5em; height: .5em; border-radius: 50%; background: #fff; }
.loader__bar {
  position: absolute; left: 0; bottom: 0;
  height: 3px; width: 0%;
  background: #fff;
}

/* ----------  NAV  ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  mix-blend-mode: normal;
}
.nav__name {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 500; font-size: .9rem;
  letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
  color: var(--nav-color);
  transition: color .4s var(--ease);
}
/* the words are bare text nodes; the negative left margin trims the trailing
   letter-spacing after "Pablo" so the red dot reads visually centred */
.nav__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex: none; margin-left: -.2em; }

.nav__center {
  display: flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  padding: .35rem .4rem;
  border-radius: 100px;
}
.nav__link {
  font-size: .9rem; font-weight: 500;
  padding: .45rem .95rem;
  border-radius: 100px;
  color: var(--nav-color);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__link:hover { background: rgba(var(--red-rgb), 0.16); }
.nav__link.is-current { background: var(--red); color: #fff; }
.nav__logo {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  transition: transform .35s var(--ease);
}
.nav__logo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.nav__logo .ring { stroke: var(--red); transition: stroke .3s var(--ease); }
.nav__logo .p { fill: var(--nav-color); transition: fill .3s var(--ease); }
.nav__logo:hover { transform: scale(1.07); }
.nav__logo:hover .p { fill: var(--red); }
.nav__social { display: flex; gap: .15rem; align-items: center; }
.nav__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--nav-color); opacity: .85;
  transition: color .3s var(--ease), opacity .3s, background .3s;
}
.nav__social a svg { width: 18px; height: 18px; display: block; }
.nav__social a:hover { opacity: 1; color: var(--red); background: rgba(var(--red-rgb), 0.1); }

@media (max-width: 767px) {
  .nav__social { display: none; }
  .nav { padding: 1rem var(--gutter); }
}

/* ----------  MOBILE BOTTOM PILL NAV  ---------- */
.mobile-nav {
  display: none;
  position: fixed; left: 50%; z-index: 9999;
  /* static so it never moves on scroll. 18px keeps it off the edge;
     env() clears the home indicator on notched phones. */
  bottom: calc(14px + env(safe-area-inset-bottom));
  /* --vv-lift is set from JS (VisualViewport) so the pill stays above the
     mobile browser's bottom toolbar instead of hiding behind it. */
  transform: translateX(-50%) translateY(calc(-1 * var(--vv-lift, 0px)));
  width: auto;
  max-width: calc(100vw - 32px);
  pointer-events: auto;
  align-items: center; gap: .3rem;
  padding: .4rem .5rem;
  background: rgba(17,17,17,0.72);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.55);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
/* hidden while the intro loader is on screen */
body.is-loading .mobile-nav {
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(16px);
}
.mobile-nav__link {
  min-width: 44px; min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 1.3rem; border-radius: 100px;
  font-size: .95rem; font-weight: 600; color: var(--text);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.mobile-nav__link:active { background: rgba(var(--red-rgb), 0.18); }
.mobile-nav__link.is-current { background: var(--red); color: #fff; }
.mobile-nav__mark {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red);
}
.mobile-nav__mark svg { width: 58%; height: 58%; display: block; }
.mobile-nav__mark .p { fill: #fff; }

/* ----------  LAYOUT HELPERS  ---------- */
.section { position: relative; padding: clamp(5rem, 12vh, 11rem) var(--gutter); }
.container { max-width: var(--maxw); margin: 0 auto; }
.tag {
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--red);
}

/* ----------  HERO  ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: 6rem var(--gutter) clamp(1.1rem, 3vh, 2rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(70% 60% at 78% 8%, rgba(var(--red-rgb), 0.15), transparent 58%),
    radial-gradient(120% 90% at 50% 120%, rgba(var(--red-rgb), 0.06), transparent 60%),
    #070707;
}
/* to use a photo: background: url(../assets/hero.jpg) center/cover, #070707; */
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 95% at 50% 35%, transparent 38%, rgba(0,0,0,0.55) 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: 1; opacity: .35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
/* ---- centered editorial composition ---- */
.hero__inner {
  position: relative; z-index: 3;
  flex: 1;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.hero__aura {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(360px, 48vw, 760px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
      rgba(var(--red-rgb), 0.26) 0%, rgba(var(--red-rgb), 0.13) 44%, transparent 70%);
  filter: blur(10px);
  animation: auraPulse 7s ease-in-out infinite;
}
@keyframes auraPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: .82; }
  50%      { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}
.hero__copy { position: relative; z-index: 3; max-width: 820px; }
.hero__eyebrow {
  display: block; font-size: .8rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red);
  margin-bottom: 1.4rem;
}
.hero__headline {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  color: var(--text);
}
.hero__headline .hl { color: var(--red); }
.hero__para {
  margin: 1.7rem auto 0; max-width: 54ch;
  color: var(--text-2); font-size: clamp(1rem, 1.2vw, 1.16rem); line-height: 1.6;
}
.hero__para-2 {
  margin: 1.1rem auto 0; max-width: 50ch;
  color: var(--text); opacity: .82; font-weight: 500;
  font-size: clamp(.95rem, 1.05vw, 1.05rem); line-height: 1.5;
}

/* bottom — subtle stats / descriptor (centered) */
.hero__meta {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: .85rem;
  border-top: 1px solid var(--line); padding-top: 1.2rem; text-align: center;
}
.hero__role {
  color: var(--text-2); font-size: clamp(.78rem, 1vw, .92rem);
  font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-align: center;
}

/* ---------- TABLET (768–1199px) ---------- */
@media (max-width: 1199px) {
  .hero__aura { width: clamp(320px, 58vw, 560px); }
}

/* MOBILE HERO overrides live near the end of this file (after the hero base
   rules) so their source order wins — see "MOBILE HERO (≤767px)". */

/* ----------  CLICK / SCROLL SECTION  ---------- */
.clickscroll {
  background:
    radial-gradient(120% 100% at 50% 120%, var(--rose) 0%, transparent 55%),
    var(--cream);
  text-align: center;
  overflow: hidden;
}
.clickscroll__text {
  font-size: clamp(2.4rem, 8.5vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .98;
  color: var(--gray);
  max-width: 16ch;
  margin: 0 auto;
}
.pill {
  display: inline-block;
  background: var(--red-pill);
  color: #fff;
  border-radius: 100px;
  padding: 0 .35em;
  position: relative;
  cursor: pointer;
}
.word-scroll { color: var(--red); position: relative; }

/* ----------  SERVICES  ---------- */
.services__head {
  margin-bottom: clamp(3rem, 8vh, 7rem);
}
.services__head h2 {
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .98;
  color: var(--gray);
  max-width: 18ch;
  margin-top: 1rem;
}
.service {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.4fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 6vh, 5rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.service__title { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.service__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); flex: none; }
.service__title h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
}
.service__copy { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; max-width: 38ch; }
.service__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.6rem, 1.2vw, 1rem);
}
.service__media {
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(150deg, #161616, #0c0c0c);
  border: 1px solid var(--line);
  position: relative;
}
.service__media:nth-child(2n) { background: linear-gradient(150deg, #1a1a1a, #101010); }
.service__media:nth-child(3n) { background: linear-gradient(150deg, rgba(var(--red-rgb), 0.22), #120607); }
.service__media::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.service__media.hide { display: none; }

@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; }
  .service__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 540px) {
  .service__grid { grid-template-columns: repeat(2, 1fr); }
  .service__media.hide { display: block; }
}

/* ----------  WORK CTA (blobs)  ---------- */
.workcta {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #070707, #0d0d0d 60%, #070707);
}
.workcta__bigtext {
  font-size: clamp(6rem, 30vw, 28rem);
  font-weight: 800; letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,245,245,0.16);
  position: relative; z-index: 2;
  user-select: none;
}
.workcta__bigtext span { color: var(--red); -webkit-text-stroke: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(.5px);
  z-index: 1;
  will-change: transform;
}
.blob--1 { width: 22vw; height: 22vw; top: 10%; left: 8%;
  background: radial-gradient(circle at 35% 30%, #2c2c2c, #0d0d0d 72%); }
.blob--2 { width: 30vw; height: 30vw; top: 30%; left: 38%;
  background: radial-gradient(circle at 35% 30%, var(--red-soft), var(--red) 42%, #2a0708 112%); }
.blob--3 { width: 14vw; height: 14vw; bottom: 14%; right: 22%;
  background: radial-gradient(circle at 35% 30%, #2c2c2c, #0d0d0d 74%);
  display: grid; place-items: center; color: rgba(245,245,245,.55); font-size: 3vw; font-weight: 300; }
.blob--pill { width: 16vw; height: 9vw; top: 16%; right: 12%; border-radius: 100px;
  background: radial-gradient(circle at 35% 30%, #3a1011, var(--red-deep) 120%); }
.blob--square { width: 10vw; height: 10vw; bottom: 18%; left: 16%; border-radius: 22px;
  background: linear-gradient(150deg, #1d1d1d, #0d0d0d); border: 1px solid var(--line);
  display: grid; place-items: center; }
.blob--square svg { width: 38%; stroke: var(--red); }
.blob--dot { width: 18px; height: 18px; background: var(--red); }
.blob--dot.d1 { top: 28%; left: 22%; }
.blob--dot.d2 { bottom: 30%; right: 36%; }
.workcta__hint {
  position: absolute; z-index: 3; bottom: 8%; left: 50%; transform: translateX(-50%);
  text-align: center; color: var(--ink-soft); font-size: .95rem;
}
.workcta__hint a { color: var(--red); font-weight: 700; }

/* ----------  APPROACH / HOW I WORK  ---------- */
.approach { background: var(--rose); border-top: 1px solid var(--line); }
.approach .eyebrow { margin-bottom: clamp(1.1rem, 2.6vh, 1.7rem); }
.approach__big {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.04;
  color: var(--text); max-width: 15ch;
}
.approach__big em {
  position: relative; display: inline-block;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400; color: var(--red);
  padding: 0 .02em; letter-spacing: 0;
  opacity: 0; transform: translateY(.18em);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.approach__big.in em { opacity: 1; transform: none; }
.approach__big.in em:nth-of-type(1) { transition-delay: .26s; }
.approach__big.in em:nth-of-type(2) { transition-delay: .38s; }
.approach__big.in em:nth-of-type(3) { transition-delay: .46s; }
.approach__big.in em:nth-of-type(4) { transition-delay: .54s; }
.approach__big .u {
  position: absolute; left: 0; bottom: -.1em; width: 100%; height: .34em; overflow: visible;
  color: var(--red); pointer-events: none;
}
.approach__big .u path {
  stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.approach__big.in .u path { animation: heroDraw 1s var(--ease) forwards; animation-delay: .78s; }

.approach__grid {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  margin-top: clamp(1.4rem, 4vh, 2.6rem);
  align-items: start;
}
.approach__lead { display: flex; flex-direction: column; align-items: flex-start; }
.approach__para {
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.55; color: var(--text);
  max-width: 46ch;
}
.approach__statement {
  margin-top: clamp(1.1rem, 2.6vh, 1.7rem); max-width: 46ch;
  font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.5; color: var(--text-2); font-weight: 500;
}
.approach__statement em { font-style: normal; color: var(--text); font-weight: 700; }
.approach__cta { margin-top: clamp(1.8rem, 4vh, 2.8rem); }

/* process steps — bracket index + title + description over expanding hairlines */
.approach__steps { display: flex; flex-direction: column; }
.step {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 2.2vw, 1.8rem);
  align-items: start;
  padding: clamp(1.2rem, 3vh, 1.9rem) 0;
}
.step::before {
  content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
  background: var(--line); transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease), background .4s var(--ease);
}
.step.in::before { transform: scaleX(1); transition-delay: var(--d, 0s); }
.step:first-child { box-shadow: inset 0 1px 0 var(--line); }
.step:hover::before { background: rgba(var(--red-rgb), 0.5); }
.step__tag {
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--red);
  font-variant-numeric: tabular-nums; padding-top: .34em;
}
.step__title { font-size: clamp(1.2rem, 1.9vw, 1.65rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.step__desc {
  margin-top: .5rem; max-width: 42ch;
  color: var(--text-2); font-size: clamp(.96rem, 1.1vw, 1.05rem); line-height: 1.5;
}

@media (max-width: 860px) {
  .approach__grid { grid-template-columns: 1fr; gap: clamp(2.2rem, 6vh, 3rem); margin-top: clamp(1.2rem, 3vh, 2rem); }
  .approach__big { max-width: 18ch; }
  .approach__para, .approach__statement, .step__desc { max-width: none; }
  .approach__cta { width: 100%; max-width: 23rem; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .approach__big em { opacity: 1; transform: none; }
  .step::before { transform: scaleX(1); }
}

/* ----------  CONTACT CTA  ---------- */
/* shared red-card style — still used by the case-study / work / about pages */
.cta {
  background: var(--cream);
  text-align: center;
}
.cta__inner {
  border-radius: 28px;
  background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  padding: clamp(3rem, 9vh, 7rem) var(--gutter);
  position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% -10%, rgba(255,255,255,0.25), transparent 60%);
}
.cta h2 {
  position: relative;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  color: #fff; max-width: 18ch; margin: 0 auto;
}
.cta p { position: relative; color: rgba(255,255,255,0.85); margin-top: 1.2rem; font-size: 1.1rem; }
.cta__btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .8rem;
  margin-top: 2.5rem; padding: 1.1rem 2.2rem;
  background: #fff; color: var(--red); border-radius: 100px;
  font-weight: 700; font-size: 1.15rem;
  transition: transform .4s var(--ease);
}
.cta__btn:hover { transform: scale(1.04); }
.cta__btn svg { width: 18px; stroke: var(--red); }
/* secondary CTA on the red panel — outlined, so it reads under the primary pill */
.cta__btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.55); margin-left: .7rem; }
.cta__btn--ghost:hover { background: rgba(255,255,255,0.12); }
.cta__btn--ghost svg { stroke: #fff; }

/* ----------  HOMEPAGE CLOSING CTA  — dark editorial card (cta--contact)  ---------- */
.cta--contact {
  text-align: center;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.cta--contact .cta__inner {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(130% 150% at 50% 0%, rgba(var(--red-rgb), 0.10), transparent 55%),
    linear-gradient(180deg, var(--rose) 0%, var(--cream) 100%);
  padding: clamp(3rem, 9vh, 6.5rem) clamp(1.6rem, 5vw, 4.5rem);
  display: flex; flex-direction: column; align-items: center;
}
.cta--contact .cta__inner::before { content: none; }
/* subtle red glow pooled behind the CTA */
.cta__glow {
  position: absolute; left: 50%; bottom: -34%;
  width: min(62%, 560px); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--red-rgb), 0.16), transparent 64%);
  filter: blur(24px); pointer-events: none;
}
/* thin red corner marker */
.cta__corner {
  position: absolute; top: 16px; right: 16px; width: 22px; height: 22px;
  border-top: 1px solid var(--red); border-right: 1px solid var(--red);
  opacity: .55; pointer-events: none;
}
.cta__title {
  position: relative;
  margin: clamp(1rem, 2.6vh, 1.7rem) 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.04;
  color: var(--text); max-width: 18ch;
}
.cta__title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400; color: var(--red); letter-spacing: 0;
}
.cta__sub {
  position: relative;
  margin: clamp(1rem, 2.4vh, 1.5rem) 0 0; max-width: 54ch;
  color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.6;
}
.cta__actions {
  position: relative;
  display: flex; flex-wrap: wrap; gap: .9rem;
  margin-top: clamp(1.8rem, 4vh, 2.6rem);
}
.cta__detail {
  position: relative;
  display: inline-flex; align-items: center; gap: .85rem;
  margin: clamp(1.7rem, 4vh, 2.4rem) 0 0;
  color: var(--text-2); font-size: .9rem; letter-spacing: .02em;
}
.cta__detail a { color: inherit; transition: color .3s var(--ease); }
.cta__detail a:hover { color: var(--red); }
/* thin red accent line that expands subtly on reveal (step 5) */
.cta__line {
  display: inline-block; width: 0; height: 1px; background: var(--red); flex: none;
  transition: width 1s var(--ease) .5s;
}
.cta__detail.in .cta__line { width: 42px; }

/* ----------  FOOTER  ---------- */
.footer {
  position: relative; background: var(--rose); border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vh, 5.5rem) var(--gutter) clamp(1.8rem, 4vh, 2.6rem);
  overflow: hidden;
}
.footer__inner { display: flex; flex-direction: column; gap: clamp(2.2rem, 5vh, 3.6rem); }
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem clamp(2rem, 6vw, 5rem); flex-wrap: wrap;
}
.footer__lead { max-width: 38ch; }
.footer__status {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text);
}
.footer__statusdot {
  width: 8px; height: 8px; border-radius: 50%; background: #2fd07a; flex: none;
  box-shadow: 0 0 0 0 rgba(47,208,122,.5); animation: btnPulse 2.4s ease-out infinite;
}
.footer__pitch { margin-top: 1rem; color: var(--text-2); font-size: 1.02rem; line-height: 1.55; }
.footer__links { display: flex; gap: clamp(1.8rem, 5vw, 4rem); flex-wrap: wrap; }
.footer__nav { display: flex; flex-direction: column; gap: .55rem; }
.footer__nav a {
  width: fit-content; font-size: 1.05rem; font-weight: 600; color: var(--text);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.footer__nav a:hover { color: var(--red); padding-left: .35rem; }
.footer__social { display: flex; align-items: flex-start; gap: .55rem; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text-2);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.footer__social a:hover { color: #fff; background: var(--red); border-color: var(--red); transform: translateY(-3px); }
.footer__social svg { width: 17px; height: 17px; }

.footer__name {
  display: flex; align-items: flex-end; justify-content: center; gap: .16em;
  font-size: clamp(2.8rem, 15vw, 16rem); font-weight: 800; letter-spacing: -0.045em; line-height: .82;
  color: var(--red); text-align: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(1.2rem, 3.2vh, 2.4rem) 0;
}
.footer__name span { transition: opacity .4s var(--ease); }
.footer__name:hover span { opacity: .82; }
.footer__sep { width: .13em; height: .13em; border-radius: 50%; background: var(--text); flex: none; margin-bottom: .14em; }

.footer__meta {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: .7rem 1.5rem; color: var(--text-2); font-weight: 500; font-size: .9rem;
}
.footer__back {
  display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-weight: 600; color: var(--text); background: none; border: 0; cursor: none;
  transition: color .3s var(--ease);
}
.footer__back svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.footer__back:hover { color: var(--red); }
.footer__back:hover svg { transform: translateY(-4px); }
@media (hover:none){ .footer__back { cursor: pointer; } }

@media (max-width: 560px) {
  .footer__name {
    flex-direction: column; align-items: center; gap: 0; line-height: .9;
    font-size: clamp(3.6rem, 27vw, 8rem);
  }
  .footer__sep { display: none; }
  .footer__meta { flex-direction: column; align-items: flex-start; }
}

/* ----------  WORK PAGE  ---------- */
.page-head { padding: clamp(7rem, 15vh, 10rem) var(--gutter) clamp(1.4rem, 4vh, 2.4rem); }
.page-head h1 {
  font-size: clamp(2.8rem, 9vw, 7.5rem); font-weight: 800; letter-spacing: -0.05em;
  line-height: .92; color: var(--text);
}
.page-head h1 em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--red); }
.page-head p { margin-top: 1.4rem; max-width: 48ch; font-size: clamp(1rem, 1.3vw, 1.18rem); color: var(--text-2); line-height: 1.6; }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; padding: 1rem var(--gutter) 2rem; }
.filter {
  padding: .6rem 1.3rem; border-radius: 100px; border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  background: transparent; cursor: none; transition: all .3s var(--ease);
}
.filter:hover { border-color: var(--red); color: var(--red); }
.filter.is-active { background: var(--red); color: #fff; border-color: var(--red); }
@media (hover:none){ .filter { cursor: pointer; } }

.projects { padding: 1rem var(--gutter) 6rem; }
.project {
  display: grid; grid-template-columns: 60px 1.4fr 1fr auto;
  gap: 1.5rem; align-items: center;
  padding: clamp(1.4rem, 3vh, 2.2rem) 0;
  border-top: 1px solid var(--line);
  transition: padding-left .4s var(--ease);
  position: relative;
}
.project:last-child { border-bottom: 1px solid var(--line); }
.project:hover { padding-left: 1rem; }
.project__num { font-size: .9rem; font-weight: 700; color: var(--red); }
.project__title { font-size: clamp(1.6rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); display: flex; align-items: center; gap: 1rem; }
.project__accent { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.project__desc { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.project__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; text-align: right; }
.project__year { font-weight: 700; color: var(--ink); }
.project__cat { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.project__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all .3s var(--ease); }
.project:hover .project__arrow { background: var(--red); border-color: var(--red); }
.project:hover .project__arrow svg { stroke: #fff; transform: rotate(-45deg); }
.project__arrow svg { width: 16px; stroke: var(--ink); transition: all .3s var(--ease); }
.project.is-hidden { display: none; }
@media (max-width: 820px) {
  .project { grid-template-columns: 30px 1fr auto; }
  .project__desc { display: none; }
}

/* ----------  ABOUT PAGE  ---------- */
.about-intro { padding: 9rem var(--gutter) 4rem; }
.about-intro p {
  font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.25; color: var(--ink); max-width: 22ch;
}
.about-intro p b { color: var(--red); }
.about-body { display: grid; grid-template-columns: clamp(240px, 28vw, 400px) minmax(0, 1fr); gap: clamp(2rem,5vw,5rem); padding: 0 var(--gutter) 5rem; align-items: start; }
.about-portrait { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(165deg, var(--red) 0%, var(--red-deep) 52%, #6E1112 100%); position: relative; overflow: hidden; margin: 0; }
.about-portrait::after { content:""; position:absolute; inset:0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E"); }
.about-portrait__img {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 97%; width: auto; max-width: none; z-index: 1;
  filter: drop-shadow(0 26px 60px rgba(0,0,0,.45));
}
.about-text { max-width: 64ch; }
.about-text p { font-size: 1.15rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 1.2rem; }
.about-text p b { color: var(--ink); }
@media (max-width: 820px){ .about-body { grid-template-columns: 1fr; } .about-portrait { max-width: 340px; } }

.experience { padding: 0 var(--gutter) 6rem; }
.experience h2 { font-size: clamp(2rem,5vw,4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--gray); margin-bottom: 2.5rem; }
.exp-item {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.5rem;
  padding: 2rem 0; border-top: 1px solid var(--line); align-items: baseline;
}
.exp-item h3 { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.exp-item .role { color: var(--red); font-weight: 600; }
.exp-item .date { color: var(--ink-soft); font-weight: 500; }
.exp-item p { grid-column: 1 / -1; color: var(--ink-soft); line-height: 1.6; max-width: 70ch; margin-top: .4rem; }
@media (max-width: 700px){ .exp-item { grid-template-columns: 1fr; gap: .3rem; } }

/* ----------  CONTACT PAGE  ---------- */
.contact-hero { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding: 8rem var(--gutter) 4rem; }
.contact-hero h1 { font-size: clamp(2.6rem, 8vw, 7rem); font-weight: 800; letter-spacing: -0.04em; line-height: .98; color: var(--ink); max-width: 16ch; }
.contact-hero h1 em { font-style: normal; color: var(--red); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: clamp(.9rem, 1.4vw, 1.2rem); margin-top: clamp(2.5rem, 6vh, 4rem); }
/* contact cards reuse the discipline-card (.svc) hover language */
.contact-card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  background: rgba(9,9,9,0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.contact-card:hover { transform: translateY(-5px); border-color: rgba(var(--red-rgb), 0.35); background: rgba(13,9,9,0.7); }
/* glowing line that traces around the card on hover (same as .svc) */
.contact-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1.5px;
  background: conic-gradient(from var(--svc-angle),
    transparent 0deg, transparent 235deg,
    rgba(var(--red-rgb), 0.85) 305deg, var(--red-soft) 332deg, rgba(var(--red-rgb), 0.85) 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
  filter: drop-shadow(0 0 5px rgba(var(--red-rgb), 0.55));
  pointer-events: none; z-index: 3;
}
.contact-card:hover::after { opacity: 1; animation: svc-trace 4.2s linear infinite; }
.contact-card__icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; border: 1px solid rgba(var(--red-rgb), 0.4); color: var(--red);
  margin-bottom: clamp(1.8rem, 5vh, 3rem); transition: background .4s var(--ease);
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card:hover .contact-card__icon { background: rgba(var(--red-rgb), 0.1); }
.contact-card__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); }
.contact-card__value {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 700; color: var(--text);
  margin-top: .45rem; line-height: 1.3; word-break: break-word; transition: color .3s var(--ease);
}
.contact-card:hover .contact-card__value { color: #fff; }
@media (prefers-reduced-motion: reduce) { .contact-card:hover::after { animation: none; opacity: .9; } }

/* ----------  CASE STUDY  ---------- */
.case-hero { padding: 9rem var(--gutter) 3rem; }
.case-hero .tag { display: inline-block; margin-bottom: 1rem; }
.case-hero h1 { font-size: clamp(3rem, 11vw, 10rem); font-weight: 800; letter-spacing: -0.05em; line-height: .88; color: var(--ink); }
.case-hero .accent { color: #D4AF37; }
.case-cover { margin: 2rem var(--gutter); aspect-ratio: 16/8; border-radius: var(--radius); background: linear-gradient(150deg, #161616, #0a0a0a); border: 1px solid var(--line); position: relative; overflow: hidden; display:grid; place-items:center; }
.case-cover b { color: #D4AF37; font-size: clamp(2rem,6vw,5rem); font-weight: 800; letter-spacing: -.03em; }
.case-meta { display: flex; gap: 3rem; flex-wrap: wrap; padding: 1rem var(--gutter) 3rem; border-bottom: 1px solid var(--line); }
.case-meta div span { display:block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); opacity:.7; margin-bottom:.3rem;}
.case-meta div b { font-size: 1.1rem; color: var(--ink); }
.case-overview { padding: 4rem var(--gutter); }
.case-overview p { font-size: clamp(1.4rem, 3.2vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; color: var(--ink); max-width: 26ch; }
.case-step { display: grid; grid-template-columns: 0.4fr 1fr; gap: 2rem; padding: 3rem var(--gutter); border-top: 1px solid var(--line); align-items: start; }
.case-step .idx { font-size: 1rem; font-weight: 700; color: #D4AF37; }
.case-step h3 { font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 1rem; }
.case-step p { font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft); max-width: 50ch; }
.case-step__media { grid-column: 2; aspect-ratio: 16/9; border-radius: 12px; margin-top: 1.5rem; background: linear-gradient(150deg, #161616, #0c0c0c); border: 1px solid var(--line); }
@media (max-width: 700px){ .case-step { grid-template-columns: 1fr; } .case-step__media { grid-column: 1; } }

/* ----------  REVEAL ANIM  ---------- */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }

/* ----------  MARQUEE  ---------- */
.marquee { overflow: hidden; padding: 1.5rem 0; background: var(--red); white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 3rem; animation: marquee 28s linear infinite; }
.marquee__track span { font-size: clamp(1.4rem,3vw,2.4rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; display:inline-flex; align-items:center; gap:3rem; }
.marquee__track span::after { content: "✦"; color: rgba(255,255,255,0.55); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* base */
html { background: #070707; }
body { background: var(--bg); }

/* ====================================================================
   HERO — animated editorial headline + actions + stats
   ==================================================================== */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: stretch;
  padding: 7rem var(--gutter) clamp(2rem, 5vh, 3.5rem); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 82% 12%, rgba(var(--red-rgb), 0.20), transparent 60%),
    radial-gradient(80% 70% at 0% 100%, rgba(var(--red-rgb), 0.10), transparent 60%),
    #070707;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 30%, transparent 45%, rgba(0,0,0,0.55));
}
.hero__content {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(1.5rem, 3.6vh, 2.8rem);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow__bar { width: 26px; height: 1px; background: var(--red); }
.eyebrow__tag { color: var(--red); font-weight: 700; }

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 7rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.0;
  color: var(--text); max-width: 16ch;
}
.hero__title .w { display: inline-block; opacity: 0; transform: translateY(.5em); }
.hero__title em {
  position: relative; font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400; color: var(--red);
  padding: 0 .03em; letter-spacing: 0;
}
.hero__title .u {
  position: absolute; left: 0; bottom: -.14em; width: 100%; height: .34em; overflow: visible;
  color: var(--red); pointer-events: none;
}
.hero__title .u path {
  stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}

.hero__sub {
  margin: 0; max-width: 52ch;
  color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.6;
  opacity: 0;
}

/* actions — extra space above so the headline & buttons breathe */
.hero__actions {
  display: flex; flex-wrap: wrap; gap: .9rem; margin-top: clamp(.6rem, 2.5vh, 1.8rem);
  opacity: 0;
}

/* ENTRANCE — only plays once the intro loader clears (body loses .is-loading),
   so the words rise and the underlines draw where you can actually see them. */
@keyframes heroWord { to { opacity: 1; transform: none; } }
@keyframes heroDraw { to { stroke-dashoffset: 0; } }
body:not(.is-loading) .hero__title .w   { animation: heroWord .7s var(--ease) forwards; animation-delay: calc(var(--i) * .07s); }
body:not(.is-loading) .hero__sub        { animation: heroWord .7s var(--ease) forwards; animation-delay: .55s; }
body:not(.is-loading) .hero__actions    { animation: heroWord .7s var(--ease) forwards; animation-delay: .7s; }
body:not(.is-loading) .hero__stats      { animation: heroWord .7s var(--ease) forwards; animation-delay: .85s; }
body:not(.is-loading) .hero__title .u path { animation: heroDraw 1s var(--ease) forwards; animation-delay: .9s; }
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .95rem 1.5rem; border-radius: 100px;
  font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn__arrow { transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }
.btn--ghost:hover .btn__arrow { transform: translateY(3px); }
/* primary = Selected work (dynamic) */
.btn--primary {
  position: relative; overflow: hidden;
  background: var(--red); color: #fff;
  box-shadow: 0 14px 38px rgba(var(--red-rgb), 0.32);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--red-deep); }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); animation: btnShine 3.4s ease-in-out infinite;
}
@keyframes btnShine { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.btn__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: btnPulse 2s ease-out infinite; }
@keyframes btnPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 100% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
/* ghost = Download CV */
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* stats — left-aligned row, icon boxes + diamond separators, pushed lower */
.hero__stats {
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap;
  gap: clamp(.85rem, 2vw, 1.5rem);
  margin-top: clamp(1.75rem, 7vh, 4.5rem);
  opacity: 0;
}
.stat { display: flex; align-items: center; gap: .6rem; }
.stat__icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex: none; line-height: 0; padding: 0;
  border: 1px solid var(--line); border-radius: 7px;
  background: rgba(255,255,255,0.035); color: var(--red);
}
.stat__icon svg { width: 15px; height: 15px; display: block; margin: 0; flex: none; }
.stat__num {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem); font-weight: 800; letter-spacing: -.02em;
  color: var(--text); font-variant-numeric: tabular-nums; min-width: 1.4ch;
}
.stat__label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.stat__sep { width: 5px; height: 5px; background: #3a3a3a; transform: rotate(45deg); flex: none; }

@media (max-width: 600px) {
  .hero__stats { gap: .8rem 1rem; }
  .stat__sep { display: none; }
}

/* ---------- MOBILE HERO (≤767px) ----------
   Placed after the hero base rules above so these overrides win on source
   order (they target the real markup classes used in the current hero). */
@media (max-width: 767px) {
  .hero {
    min-height: 100dvh;
    padding: 5.5rem var(--gutter) calc(6.5rem + env(safe-area-inset-bottom));
  }
  /* even vertical rhythm — drive ALL spacing from one gap, not stacked margins */
  .hero__content { gap: clamp(1.4rem, 2.8vh, 2.1rem); justify-content: center; }
  .hero__title { font-size: clamp(2.4rem, 10vw, 3.7rem); max-width: 13ch; }
  .hero__sub { font-size: 1rem; max-width: 42ch; }
  .hero__actions {
    flex-direction: column; align-items: stretch; width: 100%; max-width: 23rem;
    gap: .7rem; margin-top: clamp(.2rem, 1vh, .8rem);
  }
  .hero__actions .btn { justify-content: center; }
  /* stack stats vertically as a divided list so they fill the lower hero evenly */
  .hero__stats {
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    flex-wrap: nowrap; gap: 0; width: 100%; max-width: 23rem;
    margin-top: clamp(1rem, 2.6vh, 2.1rem);
  }
  .stat { align-self: stretch; gap: .9rem; padding: .9rem .1rem; border-top: 1px solid var(--line); }
  .stat:last-child { border-bottom: 1px solid var(--line); }
  .stat__sep { display: none; }
  .stat__icon { width: 36px; height: 36px; border-radius: 9px; }
  .stat__icon svg { width: 18px; height: 18px; }
  .stat__num { font-size: 1.3rem; min-width: 2.6ch; }
  .stat__label { font-size: .76rem; }
  .nav__center { display: none; }
  .mobile-nav { display: flex; }
  /* CONTACT CTA — stack vertically, full-width tappable buttons */
  .cta--contact .cta__inner { padding: clamp(2rem, 6vh, 3rem) clamp(1.3rem, 6vw, 2rem); border-radius: 14px; }
  .cta__title { font-size: clamp(1.9rem, 9vw, 2.6rem); max-width: 16ch; }
  .cta__sub { font-size: 1rem; max-width: none; }
  .cta__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 23rem; gap: .7rem; }
  .cta__actions .btn { justify-content: center; }
  .cta__detail { font-size: .82rem; }
  /* clear fixed bottom pill nav so it never covers the last content */
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ====================================================================
   SELECTED WORK — list with letter-roll + cursor preview
   ==================================================================== */
.works { position: relative; padding: clamp(5rem, 10vh, 9rem) var(--gutter); }
.works__head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.works__title {
  margin-top: 1rem; font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800;
  letter-spacing: -0.04em; color: var(--text);
}
.works__title em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--red); }
.works__list { border-top: 1px solid var(--line); }
.work { border-bottom: 1px solid var(--line); }
.work.is-hidden { display: none; }
/* the Work page reuses this list (no section heading), so trim the top padding */
.works--page { padding-top: clamp(.5rem, 2vh, 1.5rem); padding-bottom: clamp(3rem, 8vh, 6.5rem); }
.work__link {
  display: grid; grid-template-columns: 52px 1fr auto auto 40px;
  align-items: center; gap: 1.5rem;
  padding: clamp(1.2rem, 3vh, 2rem) .25rem;
  transition: padding-left .4s var(--ease);
}
.work__link:hover { padding-left: 1.1rem; }
.work__num { font-size: .85rem; font-weight: 700; color: var(--text-2); }
.work__name { font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1; display: inline-flex; }
.work__name .roll { position: relative; display: inline-block; overflow: hidden; height: 1em; vertical-align: top; }
.work__name .roll span { display: block; transition: transform .42s var(--ease); transition-delay: calc(var(--i) * 16ms); }
.work__name .roll span:nth-child(2) { position: absolute; top: 100%; left: 0; color: var(--accent); }
.work__link:hover .work__name .roll span { transform: translateY(-100%); }
.work__tag { font-size: .9rem; color: var(--text-2); text-align: right; }
.work__year { font-size: .9rem; font-weight: 600; color: var(--text); text-align: right; }
.work__arrow {
  justify-self: end; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 1rem; color: var(--text-2);
  transition: all .35s var(--ease);
}
.work__link:hover .work__arrow { background: var(--accent); border-color: var(--accent); color: #0a0a0a; transform: rotate(0deg) scale(1.05); }
@media (max-width: 720px) {
  .work__link { grid-template-columns: 36px 1fr 34px; gap: .9rem; }
  .work__tag, .work__year { display: none; }
}
/* ----------  WORK THUMBNAILS  ----------
   The cursor-follow preview is hover-only, and main.js bails on coarse pointers,
   so on touch this list was pure text — no work visible until you opened a case
   study. These static thumbs appear exactly where the hover preview cannot.
   Desktop is deliberately unchanged. */
.work__thumb { display: none; }
@media (hover: none) {
  .work__link {
    grid-template-areas: "num name tag year arrow" "thumb thumb thumb thumb thumb";
    row-gap: clamp(.9rem, 2.2vw, 1.25rem);
  }
  .work__num   { grid-area: num; }
  .work__name  { grid-area: name; }
  .work__tag   { grid-area: tag; }
  .work__year  { grid-area: year; }
  .work__arrow { grid-area: arrow; }
  .work__thumb {
    grid-area: thumb;
    display: block; width: 100%; height: auto;
    aspect-ratio: 4 / 3; object-fit: cover;
    /* full-bleed on phones; capped on tablets so a 4:3 frame does not
       render ~670px tall and bury the list */
    max-width: 560px;
    border-radius: 14px; border: 1px solid var(--line);
    background: var(--bg);
  }
}
@media (hover: none) and (max-width: 720px) {
  .work__link { grid-template-areas: "num name arrow" "thumb thumb thumb"; }
}
/* cursor preview card */
.work-preview { position: fixed; top: 0; left: 0; z-index: 500; pointer-events: none; will-change: transform; }
.work-preview span {
  --accent: var(--red);
  display: grid; place-items: center; width: 230px; height: 145px; border-radius: 14px;
  background: linear-gradient(150deg, var(--accent), #0c0c0c 130%);
  color: #0a0a0a; font-weight: 800; font-size: 1rem; letter-spacing: -.01em; text-align: center; padding: 0 1rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.12);
  opacity: 0; transform: scale(.55) rotate(-4deg); transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.work-preview.is-on span { opacity: 1; transform: scale(1) rotate(-4deg); }
.work-preview__vid {
  position: absolute; top: 0; left: 0; width: 230px; height: 145px; border-radius: 14px;
  object-fit: cover; background: #0c0c0c;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.12);
  opacity: 0; transform: scale(.55) rotate(-4deg); transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.work-preview.has-video.is-on span { opacity: 0; }
.work-preview.has-video.is-on .work-preview__vid { opacity: 1; transform: scale(1) rotate(-4deg); }
/* looping GIF preview (used where there is no mp4, e.g. Wavewear) */
.work-preview__gif {
  position: absolute; top: 0; left: 0; width: 230px; height: 145px; border-radius: 14px;
  object-fit: cover; background: #0c0c0c;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.12);
  opacity: 0; transform: scale(.55) rotate(-4deg); transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.work-preview.has-gif.is-on span { opacity: 0; }
.work-preview.has-gif.is-on .work-preview__gif { opacity: 1; transform: scale(1) rotate(-4deg); }

/* ====================================================================
   SERVICES — 2x2 card grid over a red animated (smoke) background
   ==================================================================== */
.services { position: relative; overflow: hidden; background: #070707; padding: clamp(5rem, 11vh, 9rem) var(--gutter); }
.services__smoke { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.services__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 42%, rgba(7,7,7,0.04) 38%, rgba(7,7,7,0.5) 100%),
    linear-gradient(180deg, rgba(7,7,7,0.72), transparent 22%, transparent 80%, rgba(7,7,7,0.82));
}
.services .container { position: relative; z-index: 2; }
.services__head { margin-bottom: clamp(2.2rem, 5vh, 3.5rem); }
.services__title { margin-top: 1rem; font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
.services__title em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--red); }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.9rem, 1.4vw, 1.2rem); }
.svc {
  position: relative;
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.5rem, 2.6vw, 2.3rem);
  background: rgba(9,9,9,0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.svc:hover { transform: translateY(-5px); border-color: rgba(var(--red-rgb), 0.35); background: rgba(13,9,9,0.7); }

/* glowing line that traces around the card on hover */
@property --svc-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.svc::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1.5px;
  background: conic-gradient(from var(--svc-angle),
    transparent 0deg, transparent 235deg,
    rgba(var(--red-rgb), 0.85) 305deg, var(--red-soft) 332deg, rgba(var(--red-rgb), 0.85) 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
  filter: drop-shadow(0 0 5px rgba(var(--red-rgb), 0.55));
  pointer-events: none; z-index: 3;
}
.svc:hover::after { opacity: 1; animation: svc-trace 4.2s linear infinite; }
@keyframes svc-trace { to { --svc-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .svc:hover::after { animation: none; opacity: .9; }
}
.svc__num { position: absolute; top: .8rem; right: 1.2rem; font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -.04em; color: rgba(255,255,255,0.05); }
.svc__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(var(--red-rgb), 0.4); color: var(--red); margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.svc__icon svg { width: 24px; height: 24px; }
.svc__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1.3; }
/* word-roll to red on card hover (no popup) */
.svc__title .roll { position: relative; display: inline-block; overflow: hidden; height: 1.3em; vertical-align: top; }
.svc__title .roll span { display: block; line-height: 1.3; transition: transform .42s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.svc__title .roll span:nth-child(2) { position: absolute; top: 100%; left: 0; color: var(--red); }
.svc:hover .svc__title .roll span { transform: translateY(-100%); }
.svc__desc { margin-top: .9rem; max-width: 36ch; color: var(--text-2); font-size: 1rem; line-height: 1.55; }
.svc__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.svc__chips li { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .65rem; }
@media (max-width: 760px) { .services__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ====================================================================
   CASE STUDY — individual project pages
   ==================================================================== */
.cs-hero { padding: 8rem var(--gutter) clamp(2.5rem, 6vh, 4rem); }
.cs-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: clamp(1.8rem, 5vh, 3.2rem); transition: color .3s var(--ease);
}
.cs-back:hover { color: var(--red); }
.cs-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.cs-year { margin-left: .5rem; color: var(--text-2); }
.cs-title { margin: 1.1rem 0 0; font-size: clamp(2.6rem, 6.5vw, 5.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--text); }
.cs-lede { margin-top: 1.5rem; max-width: 46ch; color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.65; }
.cs-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.cs-shot {
  aspect-ratio: 16/10; border-radius: 16px; border: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent, var(--red)) 32%, #121212), #0b0b0b 125%);
}
.cs-shot span { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.1rem, 2vw, 1.6rem); color: #fff; opacity: .9; }
.cs-shot-video {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block;
  border-radius: 16px; border: 1px solid var(--line); background: #0b0b0b;
}
/* 16:9 source shown whole, never cover-cropped (brandbook slides) */
.cs-shot-video--fit { aspect-ratio: 16/9; object-fit: contain; }
.cs-meta { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; margin-top: clamp(2.5rem, 6vh, 4rem); border-top: 1px solid var(--line); padding-top: 1.6rem; }
.cs-meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); margin-bottom: .4rem; }
.cs-meta dd { font-size: .92rem; color: var(--text); font-weight: 600; }
.cs-section { padding: clamp(3rem, 8vh, 6rem) var(--gutter); }
.cs-block-head { margin-bottom: 2.2rem; }
.cs-h2 { margin-top: .8rem; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; color: var(--text); }
.cs-h2 em, .cs-step h3 em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--red); }
.cs-overview { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.cs-big-para { font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; color: var(--text); }
.cs-para { color: var(--text-2); line-height: 1.7; font-size: 1.05rem; }
.cs-para + .cs-para { margin-top: 1.1rem; }
.cs-figure { aspect-ratio: 16/9; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(150deg, #161616, #0b0b0b); max-width: var(--maxw); margin: clamp(1.5rem, 4vh, 2.5rem) auto; }
.cs-steps { display: flex; flex-direction: column; gap: clamp(2.5rem, 7vh, 5rem); }
.cs-step-num { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; }
.cs-step h3 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.cs-step p { margin-top: .9rem; max-width: 62ch; color: var(--text-2); line-height: 1.7; font-size: 1.05rem; }
@media (max-width: 820px) {
  .cs-hero-grid { grid-template-columns: 1fr; }
  .cs-overview { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
}

/* ---- case study: real image figures ---- */
.cs-shotfig { max-width: var(--maxw); margin: clamp(1.5rem, 4vh, 2.5rem) auto; padding: 0 var(--gutter); }
.cs-shotfig img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  border-radius: 16px; border: 1px solid var(--line); background: #0b0b0b;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}
.cs-shotfig--lead { margin-top: clamp(1rem, 3vh, 2rem); }

/* ---- case study: uncropped product screenshots (framed, never cover-cropped) ---- */
.cs-screens { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: clamp(2.2rem, 6vh, 3.5rem); }
.cs-screens--single { grid-template-columns: 1fr; }
.cs-screens--3 { grid-template-columns: repeat(3, 1fr); align-items: start; }
/* mixed-ratio specimen row: one fixed window per tile, artwork contained inside it,
   so portrait and landscape sources still produce an even row */
.cs-screens--3 .cs-screenfig__frame {
  aspect-ratio: 4 / 3; display: grid;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  place-items: center; overflow: hidden;
}
.cs-screens--3 .cs-screenfig img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.cs-screenfig { margin: 0; }
.cs-screenfig__frame { border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(150deg, #161616, #0b0b0b); padding: clamp(.7rem, 1.8vw, 1.2rem); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.8); }
.cs-screenfig img { width: 100%; height: auto; display: block; border-radius: 10px; }
/* light panel for dark-on-white marks (client logos) */
.cs-screenfig__frame.is-light { background: #F4F4F2; }
.cs-screenfig__frame.is-light img { max-width: 420px; margin-inline: auto; padding: clamp(1rem,3vw,2.4rem) 0; }
.cs-screenfig figcaption { margin-top: .85rem; font-size: .85rem; color: var(--text-2); line-height: 1.6; max-width: 62ch; }

/* ---- case study: numbered flow strip (real product screens, in sequence) ---- */
.cs-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.6vw, 1.8rem); margin-top: clamp(2.2rem, 6vh, 3.5rem); }
.cs-flow__step { display: flex; flex-direction: column; }
.cs-flow__head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .8rem; }
.cs-flow__no { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--accent, var(--red)); flex: none; }
.cs-flow__title { font-size: .92rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.cs-flow__frame {
  border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(150deg, #161616, #0b0b0b);
  padding: .5rem; box-shadow: 0 20px 44px -28px rgba(0,0,0,0.8);
  /* one fixed window for every step, so a portrait shot next to a wide one
     cannot blow the row out; definite tracks make max-height:100% resolve */
  aspect-ratio: 16 / 10; display: grid;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  place-items: center; overflow: hidden;
}
.cs-flow__frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; border-radius: 8px; }
.cs-flow__text { margin-top: .75rem; color: var(--text-2); font-size: .86rem; line-height: 1.55; }

/* ---- visual bridge ---- */
.cs-section--tight { padding-top: clamp(1.5rem, 4vh, 2.5rem); padding-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.cs-bridge { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.6vw, 1.2rem); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, #131313, #0b0b0b); padding: clamp(1.2rem, 2.4vw, 1.8rem); }
.cs-bridge__item { display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1rem, 1.8vw, 1.4rem); border-radius: 12px; }
.cs-bridge__item + .cs-bridge__item { box-shadow: inset 1px 0 0 var(--line); }
.cs-bridge__no { font-size: .68rem; font-weight: 700; letter-spacing: .14em; color: var(--red); }
.cs-bridge__label { font-size: clamp(.95rem, 1.5vw, 1.15rem); font-weight: 700; letter-spacing: -.01em; color: var(--text); line-height: 1.3; }

/* ---- identity system board ---- */
.cs-board { margin-top: clamp(2.2rem, 6vh, 3.5rem); display: flex; flex-direction: column; gap: clamp(1rem, 2.4vw, 1.8rem); }
.cs-board__top { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(1rem, 2.4vw, 1.8rem); align-items: stretch; }
.cs-board__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); }
.cs-idcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: clamp(1.4rem, 2.6vw, 2.2rem); }
.cs-idcard__head { display: flex; align-items: baseline; gap: .7rem; }
.cs-idcard__no { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--red); flex: none; }
.cs-idcard__title { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.cs-idcard__text { margin-top: 1.1rem; color: var(--text-2); line-height: 1.65; font-size: .96rem; max-width: 52ch; }
.cs-idcard__media { margin-top: 1.2rem; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(150deg, #161616, #0b0b0b); flex: 1; min-height: 150px; display: grid; place-items: center; padding: 1.4rem; }
.cs-idcard__media--label span { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--text-2); text-align: center; line-height: 1.6; }
.cs-idcard__media--type { gap: .45rem; }
.cs-type-display { font-size: clamp(2.8rem, 6vw, 4.2rem); font-weight: 900; letter-spacing: -.04em; color: var(--text); line-height: 1; }
.cs-type-row { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.cs-type-row--body { font-weight: 400; }
/* logo card */
.cs-idcard__media--logo { flex-direction: column; gap: .45rem; place-items: center; }
.cs-logo-mark { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.04em; color: var(--text); line-height: 1; }
.cs-logo-mark sup { font-size: .4em; font-weight: 700; vertical-align: super; color: var(--text-2); }
.cs-logo-sub { font-size: .66rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--text-2); }
.cs-logo-labels { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.cs-logo-labels li { font-size: .68rem; font-weight: 600; letter-spacing: .04em; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: .38rem .7rem; }
/* tag-group media */
.cs-idcard__media--brandmark { background: #F4ECDC; padding: clamp(1.6rem, 4vw, 3rem); }
.cs-idcard__media--brandmark img { width: 100%; max-width: 320px; height: auto; object-fit: contain; display: block; }
.cs-idcard__media--tags { display: flex; flex-wrap: wrap; gap: .55rem; align-content: center; justify-content: center; }
.cs-idcard__media--tags span { font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .42rem .8rem; background: rgba(255,255,255,0.02); }
/* mood-board media: fixed 16/9 so the image is never cropped and never relies on
   a percentage height resolving against an auto grid row */
.cs-idcard__media--mood { flex: none; display: block; padding: 0; min-height: 0; overflow: hidden; aspect-ratio: 16 / 9; }
.cs-idcard__media--mood img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* colour swatches */
.cs-swatches { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
.cs-swatch { display: flex; flex-direction: column; }
.cs-swatch__chip { height: clamp(80px, 9vw, 124px); border-radius: 12px; border: 1px solid var(--line); margin-bottom: .6rem; }
.cs-swatch b { font-size: .78rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.cs-swatch code { font-size: .72rem; color: var(--text-2); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; margin-top: .15rem; }
.cs-swatch small { font-size: .68rem; color: var(--text-2); line-height: 1.4; margin-top: .35rem; }

/* ---- UVE Group: typographic client roster (stands in for assets that stayed with the agency) ---- */
.cs-roster {
  aspect-ratio: 16/10; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(150deg, #161616, #0b0b0b);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; gap: clamp(.9rem, 2vw, 1.4rem);
  box-shadow: 0 28px 60px -34px rgba(0,0,0,0.85);
}
.cs-roster__label { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.cs-roster__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; }
.cs-roster__list li {
  display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: baseline; gap: .8rem;
  flex: 1; border-top: 1px solid var(--line); padding-top: .55rem;
}
.cs-roster__list li:first-child { border-top: 0; padding-top: 0; }
.cs-roster__no { font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--accent, var(--red)); }
.cs-roster__list b { font-size: clamp(1.05rem, 2.1vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.cs-roster__list i { font-style: normal; font-size: clamp(.68rem, 1.1vw, .82rem); font-weight: 600; letter-spacing: .04em; color: var(--text-2); text-align: right; }
@media (max-width: 520px) {
  .cs-roster { aspect-ratio: auto; }
  .cs-roster__list li { grid-template-columns: 2rem 1fr; }
  .cs-roster__list i { grid-column: 2; text-align: left; }
}

/* ---- hardcore crew: logo lockups inside the logo card ---- */
.cs-logo-imgs { display: grid; grid-template-columns: 1fr; gap: 1rem; width: 100%; }
.cs-logo-imgs figure { margin: 0; border-radius: 12px; border: 1px solid var(--line); padding: 1.3rem 1.1rem; display: grid; place-items: center; min-height: 78px; }
.cs-logo-imgs figure.is-dark { background: linear-gradient(150deg, #131313, #050505); }
.cs-logo-imgs figure.is-light { background: #f5f5f5; }
.cs-logo-imgs img { width: 100%; max-width: 220px; height: auto; display: block; object-fit: contain; }
.cs-logo-imgs figcaption { margin-top: .7rem; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }

/* ---- hardcore crew: compact statement cards (brand attitude + drop rollout) ---- */
.cs-cards { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); margin-top: clamp(2rem, 5vh, 3rem); }
.cs-cards--3 { grid-template-columns: repeat(3, 1fr); }
.cs-cards--4 { grid-template-columns: repeat(4, 1fr); }
.cs-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: clamp(1.4rem, 2.4vw, 2rem); transition: border-color .4s var(--ease), transform .4s var(--ease); }
.cs-card:hover { border-color: color-mix(in srgb, var(--accent, var(--red)) 45%, var(--line)); transform: translateY(-3px); }
.cs-card__no { font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--accent, var(--red)); }
.cs-card__title { margin-top: .55rem; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.cs-card__text { margin-top: .8rem; color: var(--text-2); line-height: 1.6; font-size: .95rem; }
.cs-swatches--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- hardcore crew: DROP RAIL (custom interaction) ---- */
.cs-rail__layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.1rem, 2.6vw, 2rem); margin-top: clamp(2.2rem, 6vh, 3.5rem); align-items: start; }
.cs-rail__preview { display: flex; flex-direction: column; }
.cs-rail__stage { position: relative; aspect-ratio: 4/3; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, #f6f6f6, #e8e8e8); display: grid; /* definite track, so the image's max-height:100% actually resolves and portrait art cannot overflow */
  grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: clamp(1.2rem, 3.5vw, 2.6rem); overflow: hidden; }
.cs-rail__stage::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(0,0,0,0.07); border-radius: 12px; pointer-events: none; }
.cs-rail__img { position: relative; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; transition: opacity .3s var(--ease); }
.cs-rail__stage.is-swapping .cs-rail__img { opacity: 0; }
.cs-rail__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.cs-rail__tab { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .52rem .95rem; cursor: pointer; font-family: inherit; transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.cs-rail__tab:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cs-rail__tab[aria-selected="true"] { color: #0a0a0a; background: var(--accent); border-color: var(--accent); }
.cs-rail__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-rail__caption { margin-top: 1.1rem; color: var(--text-2); font-size: .95rem; line-height: 1.65; min-height: 3.2em; max-width: 54ch; }
.cs-rail__meta { display: inline-flex; align-items: center; gap: .5rem; margin-top: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.cs-rail__meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.cs-rail__cards { display: flex; flex-direction: column; gap: .8rem; }
.cs-rail__card { position: relative; display: grid; grid-template-columns: 66px 1fr; gap: .9rem; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .7rem; cursor: pointer; font-family: inherit; transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.cs-rail__card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 0 26px -10px color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-2px); }
.cs-rail__card[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 28px -8px color-mix(in srgb, var(--accent) 55%, transparent); }
.cs-rail__card[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.cs-rail__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-rail__thumb { width: 66px; height: 66px; border-radius: 10px; overflow: hidden; background: #0a0a0a; border: 1px solid var(--line); display: grid; place-items: center; }
.cs-rail__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-rail__info { display: flex; flex-direction: column; gap: .25rem; }
.cs-rail__name { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; color: var(--text); }
.cs-rail__type { font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }

/* ---- hardcore crew: identity type specimen (built, not a stray Aa) ---- */
.cs-typespec { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.cs-typespec__word { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -.04em; line-height: .9; color: var(--text); text-transform: uppercase; font-style: italic; }
.cs-typespec__scale { margin-top: .7rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.cs-typespec__scale span { font-weight: 800; letter-spacing: -.02em; color: var(--text-2); }
.cs-typespec__set { margin-top: .9rem; font-size: .82rem; letter-spacing: .14em; color: var(--text-2); font-weight: 600; }

/* ---- hardcore crew: DIGITAL ROLLOUT ---- */
.cs-roll { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: clamp(2.2rem, 6vh, 3.5rem); }
.cs-rollcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; transition: border-color .4s var(--ease), transform .4s var(--ease); }
.cs-rollcard:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-3px); }
.cs-rollcard__media { aspect-ratio: 4/5; background: #0a0a0a; overflow: hidden; }
.cs-rollcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-rollcard__body { padding: clamp(1.2rem, 2vw, 1.6rem); display: flex; flex-direction: column; }
.cs-rollcard__no { font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.cs-rollcard__title { margin-top: .5rem; font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.cs-rollcard__text { margin-top: .6rem; color: var(--text-2); font-size: .9rem; line-height: 1.6; }
.cs-rollcard__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.cs-rollcard__grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* three-up product row + graphic-elements media (identity) */
.cs-pgrid__row--3 { grid-template-columns: repeat(3, 1fr); }
.cs-idcard__media--graphics { padding: clamp(1rem, 2.2vw, 1.6rem); }
.cs-idcard__media--graphics img { width: 100%; height: auto; max-height: 150px; object-fit: contain; display: block; }

/* ---- product world placeholders ---- */
.cs-prod { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: clamp(2.2rem, 6vh, 3.5rem); }
.cs-prodcard { display: flex; flex-direction: column; }
.cs-prodcard__media { aspect-ratio: 4/3; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(150deg, #161616, #0b0b0b); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; position: relative; overflow: hidden; }
.cs-prodcard__media::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); border-radius: 10px; pointer-events: none; }
.cs-prodcard__no { position: relative; font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--red); }
.cs-prodcard__name { position: relative; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.cs-prodcard__hint { position: relative; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.cs-prodcard__desc { margin-top: 1.1rem; color: var(--text-2); font-size: .96rem; line-height: 1.65; max-width: 46ch; }

/* ---- papeleria grid ---- */
.cs-papeleria { display: flex; flex-direction: column; gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: clamp(2.2rem, 6vh, 3.5rem); }
.cs-prow { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); }
.cs-pfig { margin: 0; }
.cs-pfig img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; border-radius: 16px; border: 1px solid var(--line); background: #0b0b0b; box-shadow: 0 24px 50px -30px rgba(0,0,0,0.8); }
.cs-pfig--wide img { aspect-ratio: 2/1; }
.cs-pfig figcaption { margin-top: .85rem; font-size: .85rem; color: var(--text-2); line-height: 1.6; max-width: 62ch; }

/* ---- art direction gallery ---- */
.cs-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: clamp(2.2rem, 6vh, 3.5rem); }
.cs-gfig { margin: 0; }
.cs-gfig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; border-radius: 16px; border: 1px solid var(--line); background: #0b0b0b; box-shadow: 0 24px 50px -30px rgba(0,0,0,0.8); }
.cs-gfig--wide { grid-column: 1 / -1; }
.cs-gfig--wide img { aspect-ratio: 16/9; }
.cs-gfig figcaption { margin-top: .85rem; font-size: .85rem; color: var(--text-2); line-height: 1.6; max-width: 62ch; }

/* ---- outcome list ---- */
.cs-outcome { list-style: none; margin-top: clamp(2rem, 5vh, 3rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2.6rem; }
.cs-outcome li { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding-top: 1.2rem; }
.cs-outcome li::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); transition-delay: calc(var(--i, 0) * .1s); }
.cs-outcome.in li::before { transform: scaleX(1); }
.cs-outcome li:nth-child(2) { --i: 1; }
.cs-outcome li:nth-child(3) { --i: 2; }
.cs-outcome li:nth-child(4) { --i: 3; }
.cs-outcome__no { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--red); flex: none; padding-top: .2rem; }
.cs-outcome p { color: var(--text); font-weight: 600; letter-spacing: -.01em; line-height: 1.5; font-size: 1.02rem; }

/* ---- next project ---- */
.cs-next { padding: clamp(3.5rem, 9vh, 7rem) var(--gutter) clamp(3rem, 8vh, 6rem); border-top: 1px solid var(--line); }
.cs-next__head { max-width: var(--maxw); margin: 0 auto; }
.cs-next__title { margin-top: .7rem; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; color: var(--text); line-height: 1.05; }
.cs-next__title em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--red); }
.cs-next__sub { margin-top: 1.1rem; max-width: 52ch; color: var(--text-2); font-size: 1.05rem; line-height: 1.65; }
.cs-next__card {
  --accent: var(--red);
  max-width: var(--maxw); margin: clamp(1.8rem, 5vh, 2.8rem) auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: clamp(1.8rem, 3.8vw, 3rem); border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface);
  transition: border-color .45s var(--ease), background .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.cs-next__card:hover {
  border-color: var(--accent);
  background: radial-gradient(120% 150% at 88% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%), var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 26px 60px -34px color-mix(in srgb, var(--accent) 55%, transparent);
}
.cs-next__info { display: flex; flex-direction: column; gap: .4rem; }
.cs-next__name { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1; transition: color .45s var(--ease); }
.cs-next__card:hover .cs-next__name { color: var(--accent); }
.cs-next__tag { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.cs-next__desc { margin-top: .55rem; max-width: 46ch; color: var(--text-2); font-size: .98rem; line-height: 1.6; }
.cs-next__cta { display: inline-flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 700; letter-spacing: .02em; color: var(--text); white-space: nowrap; padding: .85rem 1.3rem; border: 1px solid var(--line); border-radius: 999px; transition: border-color .45s var(--ease); }
.cs-next__card:hover .cs-next__cta { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.cs-next__arrow { display: inline-block; color: var(--red); transition: transform .45s var(--ease), color .45s var(--ease); }
.cs-next__card:hover .cs-next__arrow { color: var(--accent); transform: translate(4px, -4px); }
.cs-next__back { display: inline-block; margin: clamp(1.4rem, 3.5vh, 2rem) auto 0; max-width: var(--maxw); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); transition: color .3s var(--ease); }
.cs-next__back:hover { color: var(--red); }

/* next project: small accent marker (red default -> next-project accent on hover/focus) */
.cs-next__card { position: relative; }
.cs-next__marker {
  position: absolute; top: clamp(1.4rem, 3vw, 2.1rem); left: clamp(1.8rem, 3.8vw, 3rem);
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 transparent;
  transition: background .45s var(--ease), box-shadow .45s var(--ease);
}
.cs-next__card:hover .cs-next__marker,
.cs-next__card:focus-visible .cs-next__marker {
  background: var(--accent);
  box-shadow: 0 0 18px 2px color-mix(in srgb, var(--accent) 55%, transparent);
}
/* keyboard focus mirrors the hover treatment and shows a clear outline */
.cs-next__card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-color: var(--accent);
  background: radial-gradient(120% 150% at 88% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%), var(--surface-2);
  box-shadow: 0 26px 60px -34px color-mix(in srgb, var(--accent) 55%, transparent);
}
.cs-next__card:focus-visible .cs-next__name { color: var(--accent); }
.cs-next__card:focus-visible .cs-next__cta { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.cs-next__card:focus-visible .cs-next__arrow { color: var(--accent); transform: translate(4px, -4px); }

/* case study cards: project-accent markers + restrained accent on hover
   (falls back to the global red when a page sets no --accent, e.g. WaveWear) */
.cs-pshot__no, .cs-prodcard__no { color: var(--accent, var(--red)); }
.cs-pshot img, .cs-pshot__ph, .cs-gfig img, .cs-pfig img, .cs-prodcard__media, .cs-idcard {
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.cs-pshot:hover img, .cs-pshot:hover .cs-pshot__ph,
.cs-gfig:hover img, .cs-pfig:hover img {
  border-color: color-mix(in srgb, var(--accent, var(--red)) 55%, var(--line));
}
.cs-prodcard:hover .cs-prodcard__media,
.cs-idcard:hover { border-color: color-mix(in srgb, var(--accent, var(--red)) 45%, var(--line)); }

/* ---- product world grid ---- */
.cs-pgrid { display: flex; flex-direction: column; gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: clamp(2.2rem, 6vh, 3.5rem); }
.cs-pgrid__top { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); }
.cs-pgrid__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); }
.cs-pshot { margin: 0; display: flex; flex-direction: column; }
.cs-pshot img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; border-radius: 16px; border: 1px solid var(--line); background: #0b0b0b; box-shadow: 0 24px 50px -30px rgba(0,0,0,0.8); }
.cs-pshot--tall img { aspect-ratio: 3/4; }
.cs-pshot figcaption { margin-top: .85rem; font-size: .85rem; color: var(--text-2); line-height: 1.6; }
.cs-pshot__ph { aspect-ratio: 4/5; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(150deg, #161616, #0b0b0b); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; position: relative; overflow: hidden; }
.cs-pshot__ph::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); border-radius: 10px; pointer-events: none; }
.cs-pshot__ph--fabric { background: linear-gradient(150deg, #161616, #0b0b0b), repeating-linear-gradient(90deg, transparent 0 7px, rgba(255,255,255,0.03) 7px 8px); background-blend-mode: normal; }
.cs-pshot__no { position: relative; font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--red); }
.cs-pshot__name { position: relative; font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); text-align: center; padding: 0 1rem; }
.cs-pshot__hint { position: relative; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }

/* ---- material behaviour (interactive slider) ---- */
.cs-note { font-size: .9rem; color: var(--text-2); border-left: 2px solid var(--red); padding-left: 1rem; }
.cs-matter { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.cs-matter__text { display: flex; flex-direction: column; gap: clamp(1.4rem, 3vh, 2.2rem); }
.cs-matter__state { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.cs-matter__eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.cs-matter__eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2A9D8F; }
.cs-matter__list { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-top: 1rem; }
.cs-matter__list li { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; color: var(--text); padding-left: 1.2rem; position: relative; }
.cs-matter__list li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 1px; background: #2A9D8F; }

/* image viewer */
.cs-matter__viewer { display: flex; flex-direction: column; }
.cs-frames { position: relative; aspect-ratio: 4/3; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(150deg, #15201f, #0b0b0b); box-shadow: 0 28px 60px -34px rgba(0,0,0,0.85); }
.cs-frames__ph { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; padding: 2rem; text-align: center; background: repeating-linear-gradient(115deg, transparent 0 9px, rgba(172,226,225,0.05) 9px 10px); }
.cs-frames__ph span { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--text-2); max-width: 30ch; line-height: 1.6; }
.cs-frames.has-frames .cs-frames__ph { opacity: 0; visibility: hidden; }
.cs-frames__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }

/* slider row: the track itself reads as a cold -> hot temperature scale */
.cs-slider { display: flex; align-items: center; gap: .9rem; margin-top: 1.4rem; }
.cs-slider__end { display: inline-flex; align-items: center; gap: .45rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); flex: none; }
.cs-slider__end::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.cs-slider__end--cold::before { background: rgb(62,130,170); }
.cs-slider__end--hot::before { background: rgb(222,96,58); }
.cs-range { --thumb: #2A9D8F; flex: 1; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgb(62,130,170) 0%, #2A9D8F 50%, rgb(222,96,58) 100%); outline: none; cursor: pointer; }
.cs-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--thumb); box-shadow: 0 2px 12px rgba(0,0,0,0.5); cursor: pointer; transition: transform .18s var(--ease), border-color .18s linear; }
.cs-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--thumb); box-shadow: 0 2px 12px rgba(0,0,0,0.5); cursor: pointer; transition: border-color .18s linear; }
.cs-range:hover::-webkit-slider-thumb, .cs-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.cs-range:focus-visible { box-shadow: 0 0 0 3px rgba(42,157,143,0.45); }

/* ---- packaging system ---- */
.cs-pack { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: clamp(2.2rem, 6vh, 3.5rem); align-items: start; }
.cs-pack__main, .cs-pack__side { margin: 0; display: flex; flex-direction: column; }
.cs-pack__main .cs-prodcard__media { aspect-ratio: 16/11; }
.cs-pack__side .cs-prodcard__media { aspect-ratio: 4/5; }
.cs-pack figcaption { margin-top: .85rem; font-size: .85rem; color: var(--text-2); line-height: 1.6; }

/* ---- case study responsive ---- */
@media (max-width: 900px) {
  .cs-board__top { grid-template-columns: 1fr; }
  .cs-board__row { grid-template-columns: repeat(2, 1fr); }
  .cs-matter { grid-template-columns: 1fr; gap: clamp(1.6rem, 5vh, 2.6rem); }
}
@media (max-width: 820px) {
  .cs-prod { grid-template-columns: 1fr; }
  .cs-pgrid__row { grid-template-columns: repeat(2, 1fr); }
  .cs-gallery { grid-template-columns: 1fr; }
  .cs-gfig img { aspect-ratio: 4/5; }
  .cs-screens { grid-template-columns: 1fr; }
  .cs-screens--3 { grid-template-columns: 1fr; }
  .cs-flow { grid-template-columns: repeat(2, 1fr); }
  .cs-swatches { grid-template-columns: repeat(5, 1fr); gap: .5rem; }
  .cs-swatches--4 { grid-template-columns: repeat(4, 1fr); }
  .cs-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cs-roll { grid-template-columns: repeat(3, 1fr); }
  .cs-pack { grid-template-columns: 1fr; }
  .cs-pack__main .cs-prodcard__media, .cs-pack__side .cs-prodcard__media { aspect-ratio: 16/11; }
  .cs-next__card { flex-direction: column; align-items: flex-start; }
  /* drop rail: preview on top, garment cards become a swipeable horizontal rail */
  .cs-rail__layout { grid-template-columns: 1fr; gap: clamp(1.4rem, 4vw, 2rem); }
  .cs-rail__cards { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; -webkit-overflow-scrolling: touch; }
  .cs-rail__card { flex: 0 0 220px; scroll-snap-align: start; }
}
@media (max-width: 620px) {
  .cs-bridge { grid-template-columns: 1fr; gap: 0; }
  .cs-bridge__item + .cs-bridge__item { box-shadow: inset 0 1px 0 var(--line); }
  .cs-board__row { grid-template-columns: 1fr; }
  .cs-cards--3, .cs-cards--4 { grid-template-columns: 1fr; }
  .cs-pgrid__row--3 { grid-template-columns: 1fr; }
  .cs-screens--3 { grid-template-columns: 1fr; }
  .cs-roll { grid-template-columns: 1fr; }
  .cs-rollcard { flex-direction: row; align-items: stretch; }
  .cs-rollcard__media { flex: 0 0 40%; aspect-ratio: auto; }
  .cs-swatches, .cs-swatches--4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .cs-pgrid__top { grid-template-columns: 1fr; }
  .cs-pgrid__row { grid-template-columns: 1fr; }
  .cs-flow { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cs-shotfig img, .cs-gfig--wide img { aspect-ratio: 4/3; }
}

/* ==========================================================================
   Mobile UX pass — audited at 390px, 24 Aug 2026
   Fixes: filled-accent contrast, tap-target sizing, sub-12px type,
   body line-height, and the card overflow on hardcore-crew.
   ========================================================================== */

/* --- 1. Contrast on filled accent surfaces -------------------------------
   The six project accents were validated as TEXT on #070707 (4.85–18.5:1),
   but the nav pill, mobile nav pill and primary button paint white ON the
   accent — the inverse, which measures 1.09–3.75:1 and fails AA on every
   one. uve-group was white on #F5F5F5 (1.09:1), effectively invisible.
   Near-black on the same accents scores 4.85–18.5:1, so flip the foreground.
   The default red keeps white text; --on-accent only changes where a
   per-page accent is active. */
body[data-accent] { --on-accent: #070707; }
body[data-accent] .nav__link.is-current,
body[data-accent] .mobile-nav__link.is-current,
body[data-accent] .btn--primary { color: var(--on-accent); }
body[data-accent] .btn--primary .btn__arrow { color: var(--on-accent); }

/* --- 2. Tap targets ------------------------------------------------------
   WCAG / Apple HIG want >=44x44. These are inline links whose box collapses
   to the text height (16–20px). Padding is added without moving the visual
   text, so layout is unchanged. */
@media (hover: none), (max-width: 900px) {
  .footer__nav a,
  .footer__back,
  .cs-back,
  .cs-next__back,
  .nav__name {
    display: inline-flex; align-items: center;
    min-height: 44px;
  }
  .footer__nav a { padding-block: .35rem; }
  .cs-rail__tab { min-height: 44px; padding-block: .7rem; }
  /* keep the enlarged boxes from adding vertical drift to tight stacks */
  .footer__nav { margin-block: -.35rem; }
}

/* --- 3. Type below the 12px floor ---------------------------------------
   .cs-logo-imgs figcaption rendered at 10.2px (.64rem) with 2.58:1 contrast
   on the client-logo panels. */
.cs-logo-imgs figcaption { font-size: .75rem; }
/* these captions sit ON the light logo panel (#f5f5f5), so they need dark ink,
   not the dark-theme text token */
.cs-logo-imgs figure.is-light figcaption { color: #33332F; }

/* --- 4. Body line-height -------------------------------------------------
   1.35 is below the 1.5 readability floor for multi-line body copy. */
.cs-big-para { line-height: 1.45; }
@media (max-width: 900px) { .cs-big-para { line-height: 1.5; } }

/* --- 5. Card overflow on narrow screens ----------------------------------
   .cs-idcard is a grid item with the default min-width:auto, so the type
   specimen's alphabet row (min-content 285px, breakable only at its single
   space) forced the column to 378px inside a 335px container and pushed the
   page 23px wide. */
@media (max-width: 900px) {
  .cs-idcard, .cs-idcard__media { min-width: 0; }
  .cs-typespec, .cs-typespec__set { min-width: 0; overflow-wrap: anywhere; }
}

/* --- 6. Remove the 300ms tap delay on interactive elements --------------- */
a, button, [role="button"], .cs-rail__card, .cs-rail__tab { touch-action: manipulation; }

/* --- 7. 12px floor for real text on phones -------------------------------
   These render 10.6–11.5px at 390px. Ordinal chips ("01") are decorative,
   but the meta terms, swatch values and service chips are content a reader
   is meant to read. Raised on small screens only; desktop sizing is intact. */
@media (max-width: 900px) {
  .cs-meta dt { font-size: .75rem; }
  .svc__chips li { font-size: .75rem; }
  .cs-swatch code, .cs-swatch small { font-size: .75rem; }
  .cs-rail__type { font-size: .75rem; }
  .cs-idcard__no, .cs-bridge__no, .cs-card__no,
  .cs-flow__no, .cs-rollcard__no { font-size: .75rem; }
}

/* --- 8. Remaining touch targets -----------------------------------------
   Social icon links measured 42x42 and the footer "Work" link 43 wide, just
   under the 44 minimum. The WaveWear temperature slider is an 8px-tall track,
   which is far too thin to grab on a phone; the visual track stays 8px while
   the draggable box grows. */
@media (hover: none), (max-width: 900px) {
  .nav__social a, .footer__social a { min-width: 44px; min-height: 44px; }
  .footer__nav a { min-width: 44px; }
  .cs-range { height: 44px; background: none; }
  .cs-range::-webkit-slider-runnable-track {
    height: 8px; border-radius: 999px;
    background: linear-gradient(90deg, rgb(62,130,170) 0%, #2A9D8F 50%, rgb(222,96,58) 100%);
  }
  .cs-range::-moz-range-track {
    height: 8px; border-radius: 999px;
    background: linear-gradient(90deg, rgb(62,130,170) 0%, #2A9D8F 50%, rgb(222,96,58) 100%);
  }
}

/* --- 9. Last touch/type items -------------------------------------------- */
@media (hover: none), (max-width: 900px) {
  .filter { min-height: 44px; }
  .cs-logo-sub, .cs-logo-labels li,
  .cs-matter__eyebrow, .cs-slider__end { font-size: .75rem; }
  .cs-idcard__media--label span, .cs-idcard__media--tags span { font-size: .75rem; }
}
