:root {
  --bg: #0d0c0a;
  --bg-2: #141210;
  --cream: #f4efe6;
  --cream-dim: #f4efe6b3;
  --cream-faint: #f4efe666;
  --sun-1: #ff8a4c;
  --sun-2: #ffb35c;
  --sun-3: #a63d2f;
  --spec-1: #ff8a4c; /* amber   — marketing */
  --spec-1b: #ffc36b;
  --spec-2: #ff5c6b; /* rose    — music videos */
  --spec-2b: #ff8a4c;
  --spec-3: #c65cff; /* magenta — branding */
  --spec-3b: #ff5c9d;
  --spec-4: #5c7aff; /* indigo  — artist development */
  --spec-4b: #9d5cff;
  --ink: #17140f;
  --ink-dim: #17140fb3;
  --ink-faint: #17140f66;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Same three colors/positions as .goo-shape s1/s2/s3, approximated as one
     CSS value so it can be used with background-attachment:fixed — every
     intro element that needs "the hero gradient" points at this SAME
     viewport-anchored value instead of carrying its own copy, which is
     what keeps the collapsing tiles/text reading as one continuous
     material instead of visibly seamed independent gradients. */
  --hero-gradient:
    radial-gradient(circle at 29% 31%, var(--sun-1) 0%, transparent 60%),
    radial-gradient(circle at 72% 62%, var(--sun-3) 0%, transparent 58%),
    radial-gradient(circle at 75% 27%, var(--sun-2) 0%, transparent 52%),
    var(--bg);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'General Sans', -apple-system, sans-serif;
  overflow-x: hidden;
}

em { font-style: italic; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- goo text reveal (see goo-text.js) ---------- */
/* [data-goo-text] elements stay at opacity:1 always — visibility is carried
   entirely by each line's SVG blur (stdDeviation animated by GSAP), never
   by opacity, so there's no double-animation with .reveal. */
[data-goo-text] {
  opacity: 1;
  /* heavier weight + tighter tracking so neighboring letters have more
     mass/overlap for the blur threshold to fuse into liquid shapes with —
     thin, widely-spaced strokes read as ordinary blur instead of goo. */
  font-weight: 600;
  letter-spacing: -0.035em;
}

.goo-line {
  display: block;
  overflow: visible;
  transform: translateZ(0);
}

/* ---------- fixed backdrop ---------- */
/* a stationary dark+grain "wall" behind the page — any light section sits as
   an opaque block on top of it; dark sections stay transparent so the same
   backdrop shows through continuously above and below, instead of scrolling with content. */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
}

/* mix-blend-mode:overlay is ~proportional to the base color underneath —
   on our near-black backgrounds that math collapses to near-zero no matter
   the noise opacity, which is why grain wasn't showing before. screen mode
   lightens based on (255-base), so it reads clearly against black. */
/* excludes the fixed header strip; only covers viewport below it, so header
   stays clean. Footer gets its own opaque background above this z-index
   instead, since it isn't viewport-fixed like the header is. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  /* real generated noise texture (assets/grain.png), not an SVG filter —
     built with numpy to match the exact mean/std/max measured directly off
     the user's reference screenshot (mean 10.4, std 4.9, max 31 out of 255),
     instead of guessing filter parameters that render unpredictably. */
  opacity: 1;
  mix-blend-mode: screen;
  background-image: url("assets/grain.png");
  background-size: 128px 128px;
}

/* ---------- intro sequence (see intro.js) ---------- */
/* The whole layer is REMOVED from the DOM at COMPLETE (not just hidden),
   and never mounted at all with ?skipIntro=1 — an invisible masked layer
   would still cost compositing, so nothing intro-related survives.

   There is only ONE hero: the real, live .hero section below, which sits
   in the normal page flow underneath this fixed, opaque overlay for the
   entire sequence — never cloned, never duplicated. The reveal punches an
   expanding transparent hole through THIS overlay (.is-revealing below)
   instead of growing a copy of the hero on top, so there is nothing for
   removing the overlay to visibly change. */
/* Set by the inline <head> script in index.html when the intro has already
   played this session, so the overlay never paints even for a frame. */
.intro-seen .intro-layer {
  display: none;
}

.intro-layer {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 900;
  background: var(--bg);
  overflow: hidden;
}

/* Reveal mask — installed only once the reveal timeline begins (never
   present beforehand, so the overlay starts fully opaque with no mask at
   all). A single radial-gradient sized to exactly 100% 100% of the
   viewport-fixed overlay, never scaled — only the four stop RADII (in px,
   via custom properties) animate, which keeps the hole a true circle at
   every frame instead of exposing a scaled gradient box's square bounds. */
.intro-layer.is-revealing {
  --hole-inner: 0px;
  --hole-mid-a: 0px;
  --hole-mid-b: 0px;
  --hole-outer: 0px;

  -webkit-mask-image: radial-gradient(
    circle at var(--reveal-x) var(--reveal-y),
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) var(--hole-inner),
    rgba(0, 0, 0, 0.25) var(--hole-mid-a),
    rgba(0, 0, 0, 0.72) var(--hole-mid-b),
    rgba(0, 0, 0, 1) var(--hole-outer)
  );
  mask-image: radial-gradient(
    circle at var(--reveal-x) var(--reveal-y),
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) var(--hole-inner),
    rgba(0, 0, 0, 0.25) var(--hole-mid-a),
    rgba(0, 0, 0, 0.72) var(--hole-mid-b),
    rgba(0, 0, 0, 1) var(--hole-outer)
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}

/* The loader is just the headline itself. Each line is its own mask
   (overflow:hidden) and every letter is an inline-block that intro.js
   lifts up out of the bottom of that mask — position/size/font are copied
   from the real hero headline so the reveal hole lands on the exact same
   glyphs. The generous padding + equal negative margin keeps ascenders and
   descenders from being clipped without moving the lines. */
.intro-title {
  position: fixed;
  text-align: center;
  white-space: nowrap;
  color: var(--cream);
  pointer-events: none;
}

.intro-line {
  display: block;
  overflow: hidden;
  padding: 0.14em 0.1em 0.26em;
  margin: -0.14em -0.1em -0.26em;
}

.intro-char {
  display: inline-block;
  will-change: transform;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  background: transparent;
  mix-blend-mode: difference;
}

.wordmark {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-btn span {
  width: 22px;
  height: 1px;
  background: var(--cream);
}

/* ---------- site menu (upper-left hamburger) ---------- */
/* Shared across every page. The button lives inside .site-header (so it
   inherits that header's mix-blend-mode:difference) but the panel itself
   sits in its own fixed layer above everything, including the header, so
   it reads correctly on both dark and white pages. */
.menu-btn {
  position: relative;
  z-index: 401;
}

.menu-btn span {
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.menu-btn.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-btn.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--ink);
  clip-path: circle(0% at 40px 36px);
  transition: clip-path 0.7s var(--ease);
  pointer-events: none;
}

.site-menu.is-open {
  clip-path: circle(150% at 40px 36px);
  pointer-events: auto;
}

.site-menu-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12vw;
}

.site-menu-links {
  list-style: none;
}

.site-menu-links li {
  overflow: hidden;
}

.site-menu-links a {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 6.5vw, 64px);
  line-height: 1.35;
  color: var(--cream);
  text-decoration: none;
  opacity: 0;
  transform: translateY(60%);
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease), color 0.3s var(--ease);
  transition-delay: var(--menu-delay, 0s);
}

.site-menu.is-open .site-menu-links a {
  opacity: 1;
  transform: translateY(0);
}

.site-menu-links a:hover {
  color: var(--sun-1);
}

.site-menu-links a.is-current {
  color: var(--sun-1);
}

.site-menu-socials {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  opacity: 0;
  transform: translateY(40%);
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease);
  transition-delay: 0s;
}

.site-menu.is-open .site-menu-socials {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--menu-social-delay, 0.4s);
}

.site-menu-socials a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-faint);
  text-decoration: none;
}

.site-menu-socials a:hover {
  color: var(--cream);
}

body.menu-open {
  overflow: hidden;
}

.contact-btn {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--cream);
  border-radius: 999px;
  padding: 10px 18px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 201;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  overflow: hidden;
}

.blob-goo {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}

.goo-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.goo-shape.s1 {
  width: 46%;
  height: 46%;
  top: 8%;
  left: 6%;
  background: var(--sun-1);
  animation: goo1 15s ease-in-out infinite alternate;
}

.goo-shape.s2 {
  width: 40%;
  height: 40%;
  top: 42%;
  left: 52%;
  background: var(--sun-3);
  animation: goo2 18s ease-in-out infinite alternate;
}

.goo-shape.s3 {
  width: 34%;
  height: 34%;
  top: 10%;
  left: 58%;
  background: var(--sun-2);
  animation: goo3 13s ease-in-out infinite alternate;
}

@keyframes goo1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(16%, 18%) scale(1.15); }
}

@keyframes goo2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-18%, -12%) scale(0.85); }
}

@keyframes goo3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-14%, 20%) scale(1.15); }
}

.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.98;
  color: var(--cream);
  /* heavier weight + tighter tracking, same reasoning as the goo text
     reveal elsewhere: more mass for the blur threshold to fuse into a
     liquid shape with during the intro's collapse-into-hero handoff. */
  font-weight: 600;
  letter-spacing: -0.035em;
}

.hero-sub {
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-dim);
  letter-spacing: 0.01em;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-cue span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--cream-faint), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---------- intro ---------- */
.intro {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 180px 24px;
  overflow: visible;
}

.intro-eyebrow, .section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 24px;
}

.intro-text {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.35;
  color: var(--cream-dim);
}

.intro-text em {
  color: var(--cream);
  font-style: italic;
}

.intro-text a {
  color: var(--cream);
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 0.3s var(--ease);
}

.intro-text a:hover {
  color: var(--sun-2);
}

/* ---------- the studio ---------- */
.studio {
  position: relative;
  padding: 120px 24px 160px;
}

.studio-inner {
  max-width: 780px;
  margin: 0 auto;
}

.studio-heading {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.04;
  margin-bottom: 28px;
}

.studio-text {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.4;
  color: var(--cream-dim);
  margin-bottom: 36px;
}

.studio-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 44px;
}

.studio-list li {
  font-size: 13px;
  color: var(--cream);
  border: 1px solid rgba(244, 239, 230, 0.28);
  border-radius: 999px;
  padding: 7px 14px;
}

.studio-cta {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 26px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.studio-cta:hover {
  background: var(--sun-1);
}

/* ---------- 3d video carousel ---------- */
.carousel {
  position: relative;
  z-index: 201;
  padding: 40px 24px 140px;
  text-align: center;
  overflow: visible;
}

.carousel-heading {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(28px, 4.4vw, 46px);
  margin-bottom: 8px;
}

.carousel-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 460px;
  overflow: hidden;
}

.carousel-track {
  position: absolute;
  inset: 0;
}

.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 250px;
  margin: -125px 0 0 -220px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  backface-visibility: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease), filter 0.7s var(--ease);
}

.ci-1 { background: linear-gradient(155deg, #ffc36b, var(--spec-1) 70%); }
.ci-2 { background: linear-gradient(155deg, var(--spec-1), var(--spec-2) 70%); }
.ci-3 { background: linear-gradient(155deg, var(--spec-2), var(--spec-3) 70%); }
.ci-4 { background: linear-gradient(155deg, var(--spec-3), var(--spec-4) 70%); }
.ci-5 { background: linear-gradient(155deg, var(--spec-4), #3a4fc9 70%); }

.carousel-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(23, 20, 15, 0.35);
  backdrop-filter: blur(4px);
  position: relative;
}

.carousel-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--cream);
}

.carousel-caption {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.carousel-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--cream);
}

.carousel-subtitle {
  font-size: 13px;
  color: rgba(244, 239, 230, 0.55);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-arrow {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--cream);
  cursor: pointer;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.carousel-arrow:hover {
  color: var(--sun-1);
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .carousel-item { width: 300px; height: 180px; margin: -90px 0 0 -150px; }
  .carousel-stage { height: 280px; }
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 201;
  overflow: hidden;
  background: var(--bg);
  padding: 140px 24px 40px;
}

.footer-blob {
  position: absolute;
  top: -15%;
  left: 50%;
  width: 560px;
  height: 320px;
  transform: translateX(-50%);
  z-index: 0;
  background: radial-gradient(ellipse 50% 55% at 50% 50%, var(--spec-1) 0%, transparent 72%);
  filter: blur(110px);
  opacity: 0.14;
}

.definition {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 90px;
}

.definition-word {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(40px, 7vw, 72px);
  color: var(--cream);
}

.definition-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--cream-faint);
  letter-spacing: 0.02em;
}

.definition-body {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream-dim);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(244, 239, 230, 0.15);
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-copy {
  font-size: 12px;
  color: var(--cream-faint);
}

@media (max-width: 640px) {
  .site-header { padding: 22px 20px; }
  .intro { padding: 120px 20px; }
  .site-footer { padding: 100px 20px 32px; }
  .site-menu { clip-path: circle(0% at 32px 30px); }
  .site-menu.is-open { clip-path: circle(150% at 32px 30px); }
  .site-menu-panel { padding: 0 8vw; }
  .studio { padding-left: 20px; padding-right: 20px; }
}


/* ---------- case studies (work.html / case.html, see work.js) ---------- */
.work,
.case {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 170px 24px 120px;
}

.work-heading {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(54px, 11vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

.work-intro {
  max-width: 520px;
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  color: var(--cream-dim);
  margin-bottom: 80px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 32px;
}

/* a lone case gets the full width instead of leaving an empty column */
.work-card:first-child:last-child { grid-column: 1 / -1; }
.work-card:first-child:last-child .work-card-cover { aspect-ratio: 21 / 9; }

.work-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.case-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #ffc36b, var(--spec-1) 70%);
}
.case-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-1 { background: linear-gradient(155deg, #ffc36b, var(--spec-1) 70%); }
.cover-2 { background: linear-gradient(155deg, var(--spec-1), var(--spec-2) 70%); }
.cover-3 { background: linear-gradient(155deg, var(--spec-2), var(--spec-3) 70%); }
.cover-4 { background: linear-gradient(155deg, var(--spec-3), var(--spec-4) 70%); }
.cover-5 { background: linear-gradient(155deg, var(--spec-4), #3a4fc9 70%); }

.work-card-cover {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transition: transform 0.7s var(--ease);
}
.work-card:hover .work-card-cover { transform: translateY(-6px); }
.work-card-cover img { transition: transform 0.9s var(--ease); }
.work-card:hover .work-card-cover img { transform: scale(1.04); }

.work-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 22px;
}

.work-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.case-chip {
  border: 1px dashed rgba(244, 239, 230, 0.4);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--sun-2);
}
.section-eyebrow .case-chip { margin-left: 12px; }

.work-card-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
}

.work-card-sum {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream-dim);
}

.case-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-tags li {
  font-size: 12px;
  border: 1px solid rgba(244, 239, 230, 0.28);
  border-radius: 999px;
  padding: 5px 12px;
}

.work-card-open {
  margin-top: 6px;
  padding-bottom: 3px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(244, 239, 230, 0.35);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work-card:hover .work-card-open { color: var(--sun-1); border-color: var(--sun-1); }

/* one case study */
.case { padding-top: 150px; }

.case-back {
  display: inline-block;
  margin-bottom: 56px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.case-back:hover { color: var(--sun-1); }

.case-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(46px, 9vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.case-summary {
  max-width: 720px;
  margin-bottom: 48px;
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--cream-dim);
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 24px;
  padding: 22px 0;
  margin-bottom: 56px;
  border-top: 1px solid rgba(244, 239, 230, 0.15);
  border-bottom: 1px solid rgba(244, 239, 230, 0.15);
}
.case-facts dt,
.case-credits li span,
.case-next span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.case-facts dd { font-size: 17px; }

.case-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.case-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-stage-cover { position: absolute; inset: 0; }

.case-story { margin: 90px 0 40px; }

.case-sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid rgba(244, 239, 230, 0.15);
}
.case-sec h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.case-sec p {
  font-family: 'Fraunces', serif;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--cream-dim);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 40px 0 90px;
  border-top: 1px solid rgba(244, 239, 230, 0.15);
}
.case-stats strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 1;
}
.case-stats span { font-size: 13px; color: var(--cream-faint); }

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 90px;
}
.case-gallery img { display: block; width: 100%; border-radius: 12px; }

.case-credits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px 24px;
  margin-bottom: 90px;
  font-size: 16px;
}

.case-next {
  display: block;
  padding: 34px 0;
  border-top: 1px solid rgba(244, 239, 230, 0.15);
  color: inherit;
  text-decoration: none;
}
.case-next strong {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.05;
  transition: color 0.3s var(--ease);
}
.case-next:hover strong { color: var(--sun-2); }

.case-cta {
  padding: 90px 0 20px;
  text-align: center;
}
.case-cta h2 {
  margin-bottom: 14px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 60px);
}
.case-cta p { margin-bottom: 30px; color: var(--cream-dim); }

.work-footer { padding: 40px 24px 32px; }

.carousel-more {
  display: inline-block;
  margin-top: 34px;
  padding-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 239, 230, 0.4);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.carousel-more:hover { color: var(--sun-1); border-color: var(--sun-1); }

@media (max-width: 760px) {
  .work, .case { padding: 130px 20px 90px; }
  .work-intro { margin-bottom: 56px; }
  .work-grid { grid-template-columns: 1fr; gap: 44px; }
  .work-card:first-child:last-child .work-card-cover { aspect-ratio: 16 / 10; }
  .case-sec { grid-template-columns: 1fr; gap: 12px; }
  .case-gallery { grid-template-columns: 1fr; }
  .work-footer { padding: 32px 20px 28px; }
}

/* ---------- page transition ---------- */
/* Every page opts in to cross-document view transitions, so following any
   same-site link wipes the new page up over the old one (which drifts up
   and dims slightly underneath) instead of hard-cutting. Browsers without
   support, and anyone who prefers reduced motion, just get a normal load. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
  animation-duration: 0.85s;
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  animation-fill-mode: both;
}

::view-transition-old(root) {
  animation-name: page-wipe-out;
}

::view-transition-new(root) {
  animation-name: page-wipe-in;
  z-index: 2;
}

@keyframes page-wipe-in {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes page-wipe-out {
  from { transform: translateY(0); filter: brightness(1); }
  to { transform: translateY(-7%); filter: brightness(0.55); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* arriving from the atlas: the dot wipe (world-transition.js) is the
   transition, so don't also play the page wipe over it */
html.wt-in::view-transition-old(root) { display: none; }
html.wt-in::view-transition-new(root) { animation: none; }
