/* =========================================================
   CIRCUIT — Audio Studio
   Cologne, DE
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:           #050505;
  --bg-elev:     #0b0b0b;
  --bg-card:     #0e0e0e;
  --text:        #f5f5f5;
  --text-dim:    rgba(245,245,245,.55);
  --text-mute:   rgba(245,245,245,.38);
  --line:        rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.18);
  --accent:      #f5f5f5;

  --font-sans:   "Inter Tight", ui-sans-serif, system-ui, -apple-system,
                 "Helvetica Neue", Arial, sans-serif;
  --font-mono:   "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad-x:       clamp(20px, 4.5vw, 80px);
  --max-w:       1640px;

  --ease:        cubic-bezier(.2, .8, .2, 1);
  --ease-out:    cubic-bezier(.16, 1, .3, 1);

  --t-fast:      .25s;
  --t-base:      .55s;
  --t-slow:      .9s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
em { font-style: italic; font-weight: 400; color: var(--text-dim); }
::selection { background: #f5f5f5; color: #050505; }

.skip-link {
  position: fixed; top: -100px; left: 12px;
  background: #fff; color: #000; padding: 10px 14px;
  z-index: 999; border-radius: 2px; font-size: 13px;
}
.skip-link:focus { top: 12px; }

/* Visible focus rings (keyboard only) */
:focus { outline: none; }
:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}
.btn-primary:focus-visible,
.hero__cta:focus-visible,
.reel-tab:focus-visible {
  outline-offset: 4px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: #fff;
  box-shadow: 0 1px 0 0 #fff;
}

/* ---------- Utility ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #f5f5f5;
  vertical-align: middle; margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
  animation: pulse 2.4s infinite var(--ease);
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,.18); }
  50%     { opacity: .55; box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}
.link-arrow {
  display: inline-flex; align-items: baseline; gap: 8px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: gap var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.link-arrow:hover { gap: 14px; border-bottom-color: #fff; }

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease), padding var(--t-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5,5,5,.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__brand img { height: 32px; opacity: .95; transition: opacity var(--t-fast) var(--ease), height var(--t-base) var(--ease); }
.nav__brand:hover img { opacity: 1; }
.nav.is-scrolled .nav__brand img { height: 26px; }
@media (max-width: 760px) {
  .nav__brand img { height: 26px; }
  .nav.is-scrolled .nav__brand img { height: 22px; }
}

.nav__menu ul {
  display: flex; gap: 36px;
  font-size: 13.5px; letter-spacing: .01em;
}
.nav__menu a {
  position: relative; padding: 4px 0;
  color: var(--text);
  transition: opacity var(--t-fast) var(--ease);
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: #fff;
  transition: right var(--t-base) var(--ease);
}
.nav__menu a:hover { opacity: .85; }
.nav__menu a:hover::after { right: 0; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 1px; background: #fff;
  transition: transform var(--t-fast) var(--ease), top var(--t-fast) var(--ease);
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 24px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav__menu { display: none; }
  .nav__toggle { display: block; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 45;
  background: #050505;
  padding: 96px var(--pad-x) 32px;
  opacity: 0; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.drawer.is-open { opacity: 1; pointer-events: auto; transform: none; }
.drawer__menu ul li {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 7vw, 40px);
  letter-spacing: -.02em;
}
.drawer__menu ul li span {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute);
  letter-spacing: .14em;
}
.drawer__foot {
  margin-top: 32px; display: flex; justify-content: space-between;
  color: var(--text-dim); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--pad-x);
  overflow: hidden;
  background: radial-gradient(110% 75% at 50% 35%, #0c0c0c 0%, #050505 65%, #020202 100%);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .7;
  filter: contrast(1.02) saturate(.85) brightness(.85);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; opacity: .8; mix-blend-mode: screen;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(120% 75% at 50% 50%, transparent 55%, rgba(0,0,0,.20) 80%, rgba(0,0,0,.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 82%, transparent 78%, rgba(0,0,0,.55) 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: 3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .6;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grain 4s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-1%, 1%); }
  80%  { transform: translate(1%, 2%); }
  100% { transform: translate(0,0); }
}

.hero__inner {
  position: relative; z-index: 4;
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-top: 80px;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 36px;
}
.hero__logo {
  width: 100%; max-width: 1200px;
  margin: 0 auto;
}
.hero__logo img {
  width: 100%; height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
}
.hero__tagline {
  margin-top: 28px;
  font-size: clamp(16px, 1.9vw, 22px);
  font-weight: 400;
  letter-spacing: -.005em;
  color: var(--text-dim);
  max-width: 38ch;
}
.hero__cta {
  margin-top: 28px;
  margin-bottom: clamp(48px, 8vh, 96px);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px; letter-spacing: .04em;
  background: rgba(255,255,255,.02);
  transition: gap var(--t-fast) var(--ease), background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.hero__cta svg { width: 16px; height: 16px; }
.hero__cta:hover { gap: 22px; background: #fff; color: #000; border-color: #fff; }

.hero__meta {
  position: absolute; z-index: 4; bottom: 36px;
  left: var(--pad-x); right: var(--pad-x);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-mute);
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero__meta { display: none; }
}

/* ============ MARQUEE ============ */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: #050505;
}
.marquee__track {
  display: flex; gap: 0;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__row {
  display: inline-flex; align-items: center; gap: 48px;
  padding-right: 48px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap;
}
.marquee__row span:nth-child(odd) { color: var(--text); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ SECTION COMMON ============ */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  max-width: var(--max-w); margin: 0 auto;
}
.section__head { max-width: 1100px; margin-bottom: clamp(48px, 7vw, 96px); }
.section__head--row {
  max-width: none; display: flex; justify-content: space-between;
  align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.section__title {
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 1.02; letter-spacing: -.035em;
  font-weight: 500; margin-top: 18px;
}
.section__title em {
  font-style: italic; color: var(--text-dim);
}
.section__lede {
  margin-top: 28px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-dim);
  max-width: 50ch;
}

/* ============ WORK ============ */
.work__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2vw, 32px) clamp(16px, 2vw, 28px);
}
.work__item        { grid-column: span 6; }
.work__item--lg    { grid-column: span 12; }

@media (min-width: 980px) {
  .work__item        { grid-column: span 6; }
  .work__item--lg    { grid-column: span 12; }
}
@media (max-width: 760px) {
  .work__item, .work__item--lg { grid-column: span 12; }
}

.work__card {
  display: block;
  position: relative;
}
.work__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  isolation: isolate;
}
.work__item--lg .work__media { aspect-ratio: 21 / 9; }
.work__media video,
.work__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out), filter var(--t-base) var(--ease);
  filter: saturate(.9) contrast(1.02);
}
.work__overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55) 100%),
    radial-gradient(120% 100% at 50% 100%, transparent 50%, rgba(0,0,0,.35) 100%);
  transition: opacity var(--t-base) var(--ease);
}
.work__card:hover .work__media video,
.work__card:hover .work__media img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.05);
}
.work__card:hover .work__overlay { opacity: .65; }

.work__meta {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 4px 0;
}
.work__cat {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim);
}
.work__title {
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 500; letter-spacing: -.018em; line-height: 1.05;
}
.work__client { font-size: 14px; color: var(--text-mute); }

.work__view {
  position: absolute; right: 18px; top: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  opacity: 0; transform: translateY(-4px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.work__card:hover .work__view { opacity: 1; transform: none; }
.work__view i { font-style: normal; font-size: 12px; }

.work__more {
  margin-top: clamp(40px, 6vw, 72px);
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: .14em; font-size: 12px;
}

/* ============ SERVICES ============ */
.services__list {
  display: grid; grid-template-columns: 1fr;
}
.service {
  display: grid;
  grid-template-columns: 80px 1.2fr 1.5fr 1fr;
  align-items: start;
  gap: 32px;
  padding: clamp(32px, 4vw, 56px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--text-mute);
  margin-top: 12px;
}
.service__title {
  font-size: clamp(28px, 3.4vw, 56px);
  font-weight: 500; letter-spacing: -.028em; line-height: 1.05;
}
.service__copy {
  color: var(--text-dim); font-size: clamp(15px, 1.05vw, 17px);
  max-width: 42ch;
}
.service__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: flex-end;
}
.service__tags li {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.012), transparent);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
}
.service:hover::before { opacity: 1; }
.service:hover .service__title { transform: translateX(8px); }
.service__title { transition: transform var(--t-base) var(--ease-out); }

@media (max-width: 860px) {
  .service {
    grid-template-columns: 48px 1fr;
    gap: 14px 18px;
  }
  .service__title { grid-column: 2; }
  .service__copy  { grid-column: 2; }
  .service__tags  { grid-column: 2; justify-content: flex-start; margin-top: 8px; }
}

/* ============ ABOUT ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 72px);
  align-items: flex-start;
}
@media (max-width: 980px) { .about__grid { grid-template-columns: 1fr; } }

.about__title {
  grid-column: 1 / -1;
  font-size: clamp(32px, 4.4vw, 72px);
  font-weight: 500; letter-spacing: -.028em; line-height: 1.08;
  max-width: 22ch;
}
.about__copy { font-size: clamp(15px, 1.1vw, 18px); color: var(--text-dim); display: grid; gap: 18px; max-width: 60ch; }
.about__copy p { line-height: 1.65; }

.about__side dl { display: grid; gap: 18px; }
.about__side dl > div {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
}
.about__side dt { color: var(--text-mute); }
.about__side dd { margin: 0; color: var(--text); }

/* ============ CONTACT ============ */
.contact__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: flex-start;
}
@media (max-width: 980px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute);
}
.field label span { color: var(--text-mute); opacity: .7; text-transform: none; letter-spacing: 0; }
.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 0;
  font: inherit;
  font-size: 16px;
  border-radius: 0;
  transition: border-color var(--t-base) var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: #fff;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 22px, calc(100% - 8px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.field select option { background: #0b0b0b; color: #fff; }

.btn-primary {
  margin-top: 10px;
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px;
  border-radius: 999px;
  background: #fff; color: #050505;
  font-size: 13.5px; letter-spacing: .04em;
  transition: gap var(--t-fast) var(--ease), background var(--t-base) var(--ease);
}
.btn-primary svg { width: 16px; height: 16px; }
.btn-primary:hover { gap: 20px; background: #e8e8e8; }

.contact__status {
  grid-column: 1 / -1;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim);
  min-height: 16px;
}
.contact__status.is-ok { color: #d8ffe1; }
.contact__status.is-error { color: #ffd8d8; }

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

.contact__info {
  display: grid; gap: 36px;
  padding-left: clamp(0px, 3vw, 32px);
  border-left: 1px solid var(--line);
}
@media (max-width: 980px) { .contact__info { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 36px; } }
.contact__row { display: grid; gap: 10px; }
.contact__row .eyebrow { margin-bottom: 4px; }
.contact__big {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  transition: border-color var(--t-base) var(--ease);
}
.contact__big:hover { border-bottom-color: #fff; }
.contact__addr { color: var(--text-dim); line-height: 1.55; }
.socials {
  display: grid; gap: 6px;
}
.socials li a {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 4px 0;
  font-size: 15px;
}
.socials li a i {
  font-style: normal; color: var(--text-mute); transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.socials li a:hover i { color: #fff; transform: translate(2px, -2px); }

/* ============ FOOTER ============ */
.foot {
  border-top: 1px solid var(--line);
  padding: 56px var(--pad-x) 28px;
  max-width: var(--max-w); margin: 0 auto;
  display: grid; gap: 36px;
}
.foot__logo img { width: 100%; max-width: 1200px; opacity: .9; }
.foot__row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.foot__row a:hover { color: #fff; }
.foot__legal {
  display: flex; gap: 16px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute);
}
.foot__legal a:hover { color: #fff; }

/* ============ CASE STUDY PAGES ============ */
.case {
  padding: 0 var(--pad-x) 120px;
  max-width: var(--max-w); margin: 0 auto;
}
.case__hero {
  position: relative;
  margin-top: 96px;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border: 1px solid var(--line);
}
.case__hero video, .case__hero img { width: 100%; height: 100%; object-fit: cover; }
.case__hero .work__overlay { background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55) 100%); }

.case__back {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
  margin: 28px 0 18px;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.case__back:hover { color: #fff; border-bottom-color: #fff; }

.case__meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  padding: clamp(48px, 7vw, 96px) 0;
  align-items: start;
}
@media (max-width: 860px) { .case__meta { grid-template-columns: 1fr; } }
.case__title {
  font-size: clamp(36px, 5vw, 88px);
  letter-spacing: -.03em; line-height: 1.02;
  font-weight: 500;
}
.case__lede { margin-top: 24px; color: var(--text-dim); font-size: clamp(15px, 1.1vw, 18px); max-width: 56ch; }
.case__side dl { display: grid; gap: 14px; }
.case__side dl > div {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
}
.case__side dt { color: var(--text-mute); }
.case__side dd { margin: 0; }

.case__body {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  max-width: 64ch;
  color: var(--text-dim);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.7;
}
.case__body h3 {
  color: var(--text); font-weight: 500;
  margin-top: 24px;
  font-size: 18px; letter-spacing: -.01em;
}

.case__gallery {
  margin-top: 64px;
  display: grid; gap: 18px;
  grid-template-columns: 1fr 1fr;
}
.case__gallery > * { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #0a0a0a; border: 1px solid var(--line); }
.case__gallery > *:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .case__gallery { grid-template-columns: 1fr; } }

.case__nav {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.case__nav a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.case__nav strong { display: block; font-size: clamp(22px, 2vw, 32px); margin-top: 4px; font-family: var(--font-sans); font-weight: 500; letter-spacing: -.02em; text-transform: none; color: #fff; }

/* ============ CUSTOM CURSOR ============ */
/* Hidden by default. The script flips the body class when a fine pointer is detected. */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 0; height: 0;
  z-index: 200;
  pointer-events: none;
  display: none;
  will-change: transform;
}
.cursor__dot,
.cursor__ring {
  position: absolute; left: 0; top: 0;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    width  .28s var(--ease-out),
    height .28s var(--ease-out),
    background-color .25s var(--ease-out),
    border-color .25s var(--ease-out),
    opacity .25s var(--ease-out);
}
.cursor__dot {
  width: 10px; height: 10px;
  background: #ff2a2a;
  box-shadow: 0 0 14px rgba(255, 42, 42, .55);
}
.cursor__ring {
  width: 10px; height: 10px;
  border: 1.5px solid #ff2a2a;
  background: transparent;
  opacity: 0;
}

/* Hover state — dot becomes a hollow ring, ring expands into a halo. */
.cursor.is-hover .cursor__dot {
  width: 0; height: 0;
  background: transparent;
}
.cursor.is-hover .cursor__ring {
  width: 44px; height: 44px;
  opacity: 1;
}

/* Text-input state — vertical bar. */
.cursor.is-text .cursor__dot {
  width: 2px; height: 22px;
  border-radius: 1px;
  background: #ff2a2a;
}
.cursor.is-text .cursor__ring { opacity: 0; }

/* Press feedback. */
.cursor.is-down .cursor__ring { width: 28px; height: 28px; }
.cursor.is-down .cursor__dot  { transform: translate(-50%, -50%) scale(.6); }

/* Only show when JS enabled it on a precise pointer device. */
body.has-cursor .cursor { display: block; }
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor input,
body.has-cursor select,
body.has-cursor textarea,
body.has-cursor [role="button"],
body.has-cursor label,
body.has-cursor summary {
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body.has-cursor .cursor { display: none; }
  body.has-cursor, body.has-cursor * { cursor: auto; }
}

/* ============ VIDEO FALLBACK ============ */
/* When a video has no working source, keep its poster as the only frame.
   Hides the controls / play button glyph the browser would otherwise overlay. */
video.has-no-source {
  pointer-events: none;
}
video.has-no-source::-webkit-media-controls,
video.has-no-source::-webkit-media-controls-panel,
video.has-no-source::-webkit-media-controls-enclosure,
video.has-no-source::-webkit-media-controls-overlay-play-button {
  display: none !important;
}

/* ============ AUDIO BARS (decoration used inside posters) ============ */
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.bars span {
  display: block; width: 3px; background: #fff;
  animation: bar 1.2s var(--ease) infinite;
}
.bars span:nth-child(1){ animation-delay: 0s; }
.bars span:nth-child(2){ animation-delay: .12s; }
.bars span:nth-child(3){ animation-delay: .2s; }
.bars span:nth-child(4){ animation-delay: .28s; }
.bars span:nth-child(5){ animation-delay: .35s; }
@keyframes bar {
  0%,100% { height: 4px; }
  50%     { height: 100%; }
}
