/* =========================================================
   zm-webdesign.de — Studio für digitales Design
   Cinematic 3D scroll experience · Apple-grade typography
   ========================================================= */

/* Self-hosted variable fonts (latin subset, SIL OFL) — no request to Google Fonts */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #050507;
  --bg-2: #0b0b10;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: #9b9ba4;
  --muted-2: #80808a;
  --accent: #5b8cff;
  --accent-2: #a78bfa;
  --accent-3: #7dd3fc;
  --radius: 28px;
  --radius-sm: 16px;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.83, 0, 0.17, 1);
  --gutter: clamp(20px, 5vw, 96px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(91, 140, 255, 0.35); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Utilities ---------- */
.container { width: min(1360px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.gradient-text {
  background: linear-gradient(120deg, #fff 0%, var(--accent-3) 35%, var(--accent) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
}
.section__label::before { content: ""; width: 24px; height: 1px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.section__head h2 {
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  max-width: 18ch;
}
.section__head p { color: var(--muted); max-width: 52ch; font-size: clamp(1rem, 1.25vw, 1.2rem); margin-top: 24px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
  overflow: hidden;
}
.preloader__inner { display: grid; gap: 12px; text-align: center; }
.preloader__brand { display: block; width: 176px; height: auto; margin: 0 auto; }
.preloader__count {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 12vw, 9rem); letter-spacing: -0.05em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.preloader__bar { width: 160px; height: 1px; background: var(--line-2); margin: 24px auto 0; overflow: hidden; }
.preloader__bar i { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 950; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring {
  position: absolute; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.7);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), opacity 0.3s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; opacity: 0.6; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -8%; z-index: 900; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -2%); } 75% { transform: translate(-1%, 1%); } 100% { transform: translate(0, 0); }
}
@media (max-width: 900px) { .grain { animation: none; inset: 0; opacity: 0.04; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 800;
  width: min(1320px, calc(100% - 2 * var(--gutter)));
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 10px 0 24px;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  transition: width 0.7s var(--ease), background 0.4s, border-color 0.4s, top 0.5s var(--ease);
  opacity: 0;
}
.nav.is-scrolled {
  width: min(880px, calc(100% - 2 * var(--gutter)));
  background: rgba(10, 10, 14, 0.66);
  border-color: rgba(255, 255, 255, 0.1);
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand img { display: block; width: 132px; height: auto; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color 0.3s, background 0.3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav__cta { flex-shrink: 0; }
.nav__burger {
  display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; gap: 5px;
  background: rgba(255,255,255,0.06);
}
.nav__burger span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav__burger.is-open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 790; background: rgba(5,5,7,0.92);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  display: grid; align-content: center; padding: 0 var(--gutter);
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
}
.menu.is-open { opacity: 1; pointer-events: auto; }
.menu a {
  font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 4.5rem); font-weight: 600; letter-spacing: -0.04em;
  padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text);
}
.menu small { display: block; margin-top: 32px; color: var(--muted); font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  color: var(--text); border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background 0.35s, border-color 0.35s, color 0.35s, transform 0.5s var(--ease), box-shadow 0.4s;
  will-change: transform;
}
.btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.28); }
.btn--primary { background: #f5f5f7; color: #050507; border-color: transparent; }
.btn--primary:hover { background: #fff; border-color: transparent; box-shadow: 0 10px 40px rgba(255,255,255,0.18); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--xl { padding: 22px 44px; font-size: 1.15rem; }
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* ---------- WebGL stage + hero video ---------- */
.stage {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 70% 45%, rgba(91,140,255,0.16), transparent 70%),
    radial-gradient(45% 45% at 28% 65%, rgba(167,139,250,0.14), transparent 70%);
}
.stage canvas { width: 100%; height: 100%; }
.hero-video { position: fixed; inset: 0; z-index: 0; overflow: hidden; display: none; }
.hero-video.is-ready { display: block; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; opacity: 0.5; filter: saturate(1.1) contrast(1.05); }
.hero-video::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,7,0.85) 0%, rgba(5,5,7,0.45) 35%, rgba(5,5,7,0) 62%),
    linear-gradient(180deg, rgba(5,5,7,0.3) 0%, rgba(5,5,7,0.05) 40%, rgba(5,5,7,0.9) 100%);
}
@media (max-width: 900px) {
  .hero-video video { object-position: 50% 35%; opacity: 0.4; }
  .hero-video::after { background: linear-gradient(180deg, rgba(5,5,7,0.2) 0%, rgba(5,5,7,0.55) 45%, rgba(5,5,7,0.95) 100%); }
}
.stage-fallback {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0;
}
.stage.is-fallback .stage-fallback { opacity: 0.55; }

main { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: end;
  padding: calc(var(--nav-h) + 80px) var(--gutter) clamp(48px, 8vh, 100px);
}
.hero__content { max-width: 1100px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: clamp(20px, 3vh, 36px);
}
.hero__eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.hero__title {
  font-size: clamp(3rem, 7.4vw, 7.6rem);
  line-height: 0.93; letter-spacing: -0.045em; font-weight: 600;
  margin: 0 0 clamp(24px, 4vh, 40px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__title em { font-style: normal; }
.hero__sub {
  max-width: 50ch; font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--muted); line-height: 1.5;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vh, 44px); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 110px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 56px; background: linear-gradient(180deg, transparent, #fff); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--bg); animation: scrollLine 2.2s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__meta {
  position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 56px);
  display: flex; gap: 22px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2);
}

/* ---------- Manifesto ---------- */
.manifesto { position: relative; height: 100vh; display: grid; place-items: center; padding: 0 var(--gutter); }
.manifesto__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 4.2rem); line-height: 1.12; letter-spacing: -0.03em;
  max-width: 1180px; text-align: left;
}
.manifesto__text .w { display: inline-block; opacity: 0.12; margin-right: 0.26em; will-change: opacity; }
.manifesto__text .w.hl { color: var(--accent-3); }
.manifesto__footer {
  position: absolute; bottom: 8vh; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2);
}

/* ---------- Sections base ---------- */
.section { position: relative; padding: clamp(96px, 14vh, 180px) var(--gutter); background: var(--bg); }
.section--tight { padding-top: clamp(64px, 9vh, 120px); padding-bottom: clamp(64px, 9vh, 120px); }
.section__head { margin-bottom: clamp(48px, 7vh, 88px); }
.section__head--split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end; }
.section__head--split p { margin-top: 0; }

/* ---------- Services ---------- */
.services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  perspective: 1400px;
}
.card {
  position: relative; min-height: 420px;
  padding: 36px 30px 30px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  transform-style: preserve-3d;
  overflow: hidden;
  transition: border-color 0.4s;
  --mx: 50%; --my: 50%;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(91,140,255,0.18), transparent 55%);
  opacity: 0; transition: opacity 0.5s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-2); }
.card__index {
  display: inline-block; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.12em; color: var(--muted);
  margin-bottom: 64px;
}
.card__icon {
  position: absolute; top: 30px; right: 26px; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--line);
}
.card__icon svg { width: 20px; height: 20px; stroke: var(--accent-3); }
.card h3 { font-size: clamp(1.35rem, 1.7vw, 1.7rem); margin-bottom: 14px; letter-spacing: -0.025em; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.card ul { margin-top: 22px; display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.card li { font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.card li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.card--featured { background: linear-gradient(160deg, rgba(91,140,255,0.16), rgba(167,139,250,0.06) 50%, rgba(255,255,255,0.02)); border-color: rgba(91,140,255,0.25); }

/* ---------- Work (horizontal) ---------- */
.work { position: relative; background: var(--bg); }
.work__pin { height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.work__head {
  position: absolute; top: clamp(90px, 12vh, 140px); left: var(--gutter);
  display: flex; gap: 12px; align-items: center;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.work__head::before { content: ""; width: 24px; height: 1px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.work__progress { position: absolute; bottom: 7vh; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.work__progress i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.work__track {
  display: flex; align-items: center; gap: clamp(32px, 5vw, 96px);
  width: max-content; padding: 6vh var(--gutter) 0;
  will-change: transform;
}
.work__intro { width: min(46vw, 640px); flex-shrink: 0; }
.work__intro h2 { font-size: clamp(2.4rem, 5.4vw, 5.4rem); }
.work__intro p { color: var(--muted); margin-top: 24px; max-width: 40ch; font-size: 1.1rem; }
.project {
  width: min(72vw, 980px, calc((100vh - 340px) * 1.5)); flex-shrink: 0;
  perspective: 1600px;
}
.project__media {
  position: relative; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transform-style: preserve-3d;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55);
}
.project__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.project__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,5,7,0.55));
  pointer-events: none;
}
.project__tag {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  padding: 8px 14px; border-radius: 999px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(5,5,7,0.5); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
}
.project__info {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end;
  margin-top: 24px; padding: 0 6px;
}
.project__info h3 { font-size: clamp(1.5rem, 2.4vw, 2.3rem); letter-spacing: -0.03em; }
.project__info p { color: var(--muted); margin-top: 8px; max-width: 46ch; font-size: 15px; }
.project__year { font-family: var(--font-display); color: var(--muted); font-size: 14px; letter-spacing: 0.08em; }
.work__outro { width: min(40vw, 520px); flex-shrink: 0; display: grid; gap: 24px; }
.work__outro h3 { font-size: clamp(1.8rem, 3vw, 3rem); }
.work__outro p { color: var(--muted); }

/* ---------- Process ---------- */
.process__layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.process__sticky { position: sticky; top: 18vh; }
.process__sticky h2 { font-size: clamp(2.3rem, 4.6vw, 4.6rem); }
.process__sticky p { color: var(--muted); margin-top: 24px; max-width: 40ch; }
.process__counter {
  margin-top: 56px; display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
}
.process__counter b { font-size: clamp(4rem, 8vw, 8rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.process__counter span { color: var(--muted-2); font-size: 1.2rem; }
.process__bar { margin-top: 24px; width: 220px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.process__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0.25); transform-origin: left; transition: transform 0.7s var(--ease); }
.process__steps { display: grid; }
.step {
  position: relative; padding: clamp(40px, 7vh, 72px) 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  opacity: 0.32; transition: opacity 0.6s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step.is-active { opacity: 1; }
.step__num { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.12em; color: var(--muted); padding-top: 8px; }
.step h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.step p { color: var(--muted); max-width: 50ch; }
.step__meta { display: flex; gap: 20px; margin-top: 22px; font-size: 13px; letter-spacing: 0.06em; color: var(--muted-2); text-transform: uppercase; }
.step__meta b { color: var(--text); font-weight: 500; }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 24px 0; border-left: 1px solid var(--line); padding-left: 28px; }
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 6.4vw, 6.4rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ---------- Studio ---------- */
.studio__layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.studio__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  clip-path: inset(0 0 0 0 round var(--radius));
}
.studio__media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.studio__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; z-index: 1; }
.studio__media.is-ready video { opacity: 1; }
.studio__badge {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(5,5,7,0.55); border: 1px solid var(--line-2); backdrop-filter: blur(16px);
  display: grid; gap: 4px;
}
.studio__badge b { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.03em; }
.studio__badge span { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.studio__text h2 { font-size: clamp(2.2rem, 4.4vw, 4.4rem); }
.studio__text p { color: var(--muted); margin-top: 24px; max-width: 46ch; font-size: 1.05rem; }
.studio__list { margin-top: 36px; display: grid; gap: 0; }
.studio__list li {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line);
  font-size: 15px;
}
.studio__list li:last-child { border-bottom: 1px solid var(--line); }
.studio__list li span:first-child { color: var(--accent-3); font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; padding-top: 3px; }
.studio__list li b { display: block; font-weight: 500; margin-bottom: 4px; }
.studio__list li small { color: var(--muted); font-size: 14px; }

/* ---------- Testimonials ---------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1400px; }
.quote {
  padding: 36px 32px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  display: grid; gap: 28px; align-content: space-between; min-height: 340px;
  transform-style: preserve-3d;
}
.quote__mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--accent); }
.quote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1.5vw, 1.45rem); letter-spacing: -0.02em; line-height: 1.3; }
.quote footer { display: flex; align-items: center; gap: 14px; }
.quote__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: #050507;
}
.quote footer b { display: block; font-weight: 500; font-size: 15px; }
.quote footer span { color: var(--muted); font-size: 13px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--bg); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--font-display); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA ---------- */
.cta {
  position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center;
  padding: 140px var(--gutter); overflow: hidden; background: transparent;
}
.cta__bg { position: absolute; inset: -10%; z-index: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; will-change: transform; }
.cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 50% 50%, rgba(5,5,7,0.35), rgba(5,5,7,0.7) 85%),
              linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%);
}
.cta p { color: #c4c4cc; text-shadow: 0 2px 24px rgba(5,5,7,0.9); }
.cta__bg.has-img::after {
  background: radial-gradient(70% 60% at 50% 55%, rgba(5,5,7,0.2), rgba(5,5,7,0.92) 80%),
              linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
}
.cta h2 { text-shadow: 0 10px 60px rgba(5,5,7,0.6); }
.cta__inner { position: relative; z-index: 1; display: grid; gap: 36px; justify-items: center; }
.cta h2 { font-size: clamp(3rem, 9vw, 9rem); letter-spacing: -0.05em; line-height: 0.95; }
.cta h2 .line { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.cta h2 .line > span { display: inline-block; }
.cta p { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.25rem); max-width: 48ch; }
.cta__note { display: flex; gap: 10px; align-items: center; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.cta__note i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; padding: 64px var(--gutter) 36px; border-top: 1px solid var(--line); background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand img { display: block; width: 150px; height: auto; }
.footer p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 34ch; }
.footer__title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; font-weight: 500; }
.footer address { font-style: normal; }
.footer ul { display: grid; gap: 10px; }
.footer li a { font-size: 15px; color: var(--muted); transition: color 0.3s; }
.footer li a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: fixed; left: 16px; top: -72px; z-index: 1200;
  padding: 12px 20px; border-radius: 999px; background: #fff; color: #050507;
  font-size: 14px; font-weight: 500; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: 0; }

/* ---------- Reveal helpers ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); }
.no-js [data-reveal], .no-js .hero__title .line > span { opacity: 1; transform: none; }
/* Fail-safe: without JS, or when the scroll engine never started (see inline timer in index.html), show the content instead of the preloader */
.no-js .preloader, .no-js .cursor, .js-failed .preloader, .js-failed .cursor { display: none; }
.no-js .nav, .js-failed .nav { opacity: 1; }
.js-failed [data-reveal], .js-failed .hero__title .line > span, .js-failed .cta h2 .line > span { opacity: 1; transform: none; }
.js-failed .manifesto__text .w, .js-failed .step { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 360px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .quote { min-height: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  .nav { top: 12px; padding: 0 8px 0 18px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }
  .hero { padding-bottom: 96px; }
  .hero__meta { display: none; }
  .hero__scroll { right: auto; left: var(--gutter); bottom: 32px; flex-direction: row; gap: 16px; }
  .hero__scroll i { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, #fff); }
  .hero__scroll i::after { animation: none; display: none; }
  .manifesto { height: auto; min-height: 70vh; padding: 20vh var(--gutter); }
  .manifesto__footer { display: none; }
  .section__head--split { grid-template-columns: 1fr; }
  .work__pin { height: auto; overflow: visible; padding: clamp(96px, 14vh, 180px) 0; }
  .work__head { position: static; margin: 0 var(--gutter) 40px; }
  .work__progress { display: none; }
  .work__track { flex-direction: column; align-items: stretch; width: auto; gap: 56px; }
  .work__intro, .project, .work__outro { width: auto; }
  .process__layout { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
  .process__counter { display: none; }
  .process__bar { display: none; }
  .step { grid-template-columns: 1fr; gap: 8px; opacity: 1; }
  .studio__layout { grid-template-columns: 1fr; }
  .cta { min-height: 80vh; padding: 120px var(--gutter); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .services__grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding-left: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .project__info { grid-template-columns: 1fr; }
  .btn--xl { padding: 18px 32px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll i::after, .hero__eyebrow i, .marquee__track { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .manifesto__text .w { opacity: 1; }
  .step { opacity: 1; }
}
