/* Cuvir × Stratic-style — light editorial AI agency */
@import url("colors_and_type.css");

:root {
  --bg: #FFFFFF;
  --bg-2: #F5F5F2;
  --ink: #0E0E0E;
  --ink-2: rgba(14,14,14,0.66);
  --ink-3: rgba(14,14,14,0.42);
  --line: rgba(14,14,14,0.08);
  --line-2: rgba(14,14,14,0.16);
  --accent: #C8F23C;
  --accent-ink: #1A2200;
  --card: #FAFAF7;
}
body.dark {
  --bg: #0B0B0B; --bg-2: #141414; --ink: #F1EFEC;
  --ink-2: rgba(241,239,236,0.72); --ink-3: rgba(241,239,236,0.45);
  --line: rgba(241,239,236,0.12); --line-2: rgba(241,239,236,0.22);
  --card: #161616;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

/* Terminal-style window (Cal embed etc.) */
.terminal-shimmer-wrap {
  position: relative;
  isolation: isolate;
  border-radius: 14px;
}
.terminal-shimmer-wrap::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 18px;
  background: conic-gradient(from var(--shimmer-angle, 0deg),
    transparent 0deg,
    transparent 260deg,
    rgba(200, 242, 60, 0.9) 340deg,
    rgba(200, 242, 60, 0.9) 360deg);
  filter: blur(18px);
  opacity: 0.65;
  z-index: -1;
  pointer-events: none;
  animation: priceShimmer 7s linear infinite;
}
.terminal-window {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -1px 0 rgba(14,14,14,0.04) inset,
    0 30px 60px -20px rgba(14,14,14,0.35),
    0 10px 20px -10px rgba(14,14,14,0.18);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.terminal-window:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -1px 0 rgba(14,14,14,0.04) inset,
    0 36px 70px -20px rgba(14,14,14,0.4),
    0 12px 24px -10px rgba(14,14,14,0.2);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #EAE8E2 0%, #DFDCD5 100%);
  border-bottom: 1px solid rgba(14,14,14,0.10);
  position: relative;
}
body.dark .terminal-bar { background: linear-gradient(180deg, #1F1F1F 0%, #161616 100%); border-bottom-color: rgba(241,239,236,0.10); }
.terminal-dot {
  width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.18) inset, 0 0 0 0 rgba(200,242,60,0);
  transition: box-shadow 1100ms cubic-bezier(0.4, 0, 0.2, 1), filter 900ms cubic-bezier(0.4, 0, 0.2, 1);
  filter: saturate(0.55) brightness(0.85);
}
.terminal-dot-r { background: #FF5F57; }
.terminal-dot-y { background: #FEBC2E; }
.terminal-dot-g { background: var(--accent); }
.terminal-window:hover .terminal-dot { filter: saturate(1) brightness(1); }
.terminal-window:hover .terminal-dot-r { box-shadow: 0 1px 0 rgba(0,0,0,0.18) inset, 0 0 14px 1px rgba(255,95,87,0.7); }
.terminal-window:hover .terminal-dot-y { box-shadow: 0 1px 0 rgba(0,0,0,0.18) inset, 0 0 14px 1px rgba(254,188,46,0.7); }
.terminal-window:hover .terminal-dot-g { box-shadow: 0 1px 0 rgba(0,0,0,0.18) inset, 0 0 18px 2px rgba(200,242,60,0.85); }
.terminal-url {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.02em;
  padding: 3px 14px;
  background: rgba(14,14,14,0.04); border-radius: 6px;
}
body.dark .terminal-url { background: rgba(241,239,236,0.06); }
.terminal-iframe { width: 100%; height: 620px; border: 0; display: block; background: var(--card); }
@media (max-width: 720px) { .terminal-iframe { height: 540px; } .terminal-window { transform: none; } }

/* Outline-Marquee (section anchor) */
.outline-mq {
  width: 100%; overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.outline-mq-track {
  display: flex; align-items: center; width: max-content;
  animation: outlineMq linear infinite;
}
.outline-mq.paused .outline-mq-track { animation-play-state: paused; }
.outline-mq-item {
  display: inline-flex; align-items: center; gap: 48px;
  flex: 0 0 auto; padding-right: 48px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 10vw, 140px);
  letter-spacing: -0.025em; line-height: 1;
  -webkit-text-stroke: 1.5px var(--ink);
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}
.outline-mq-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); flex: 0 0 14px;
}
@keyframes outlineMq { to { transform: translateX(-50%); } }
body.no-motion .outline-mq-track { animation: none; }

/* Spotlight hover effect (svc-card, price, stream-cell) */
.svc-card, .price, .stream-cell {
  position: relative;
  isolation: isolate;
}
.svc-card::after, .price::after, .stream-cell::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(200, 242, 60, 0.16),
    rgba(200, 242, 60, 0.04) 40%,
    transparent 65%
  );
  opacity: 0; pointer-events: none; z-index: 0;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card:hover::after, .price:hover::after, .stream-cell:hover::after { opacity: 1; }
.svc-card > *, .price > *, .stream-cell > * { position: relative; z-index: 1; }
.price.featured::after {
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(200, 242, 60, 0.22),
    rgba(200, 242, 60, 0.06) 40%,
    transparent 65%
  );
}
body.no-motion .svc-card::after, body.no-motion .price::after, body.no-motion .stream-cell::after { display: none; }

/* Subtle film-grain / noise overlay */
.noise-overlay {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
body.dark .noise-overlay { opacity: 0.35; mix-blend-mode: screen; }
@media (max-width: 720px) { .noise-overlay { opacity: 0.35; } }

/* Scroll progress bar (top, lime) */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--accent);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  z-index: 9998;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(200, 242, 60, 0.55);
  transition: transform 90ms linear;
  will-change: transform;
}
body.no-motion .scroll-progress { transition: none; }

/* Kontakt page — grid areas layout */
.kontakt-grid {
  display: grid !important;
  grid-template-columns: 1fr 1.1fr;
  grid-template-areas:
    "head cal"
    "form cal";
  gap: 64px;
  align-items: start;
}
.kontakt-head { grid-area: head; }
.kontakt-cal { grid-area: cal; align-self: start; }
.kontakt-form { grid-area: form; align-self: start; }
@media (max-width: 1024px) {
  .kontakt-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas: "head" "cal" "form" !important;
    gap: 32px !important;
  }
  .kontakt-form {
    margin-top: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }
}

/* Callback form (Kontakt) */
.callback {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px;
  max-width: 480px; margin-top: 8px;
}
.callback-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
.callback-input {
  width: 100%; padding: 16px 18px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-sans); font-size: 15px;
  color: var(--ink); outline: none;
  transition: border-color 200ms, background 200ms;
}
.callback-input:focus { border-color: var(--ink-2); background: var(--bg); }
.callback-input::placeholder { color: var(--ink-3); }
.callback-btn {
  width: 100%; padding: 16px 18px; margin-top: 8px;
  border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg);
  border-radius: 12px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  transition: filter 200ms, transform 200ms;
}
.callback-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* Floating Book-a-Call CTA */
.floating-cta {
  position: fixed; bottom: 24px; left: 24px;
  z-index: 8000;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  background: var(--accent); color: var(--ink);
  border: 0; border-radius: 999px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow:
    0 18px 40px -12px rgba(200, 242, 60, 0.5),
    0 6px 14px -6px rgba(14, 14, 14, 0.18);
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 450ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: opacity, transform;
}
.floating-cta.in {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.floating-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 24px 50px -12px rgba(200, 242, 60, 0.65),
    0 10px 18px -6px rgba(14, 14, 14, 0.22);
}
.floating-cta-arrow {
  display: inline-block;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-cta:hover .floating-cta-arrow { transform: translateX(4px); }
@media (max-width: 540px) {
  .floating-cta { bottom: 16px; left: 16px; padding: 12px 18px; font-size: 13px; }
}
body.no-motion .floating-cta { transition: opacity 200ms; }

/* Cookie banner */
.cookie-banner {
  position: fixed; right: 20px; bottom: 20px; z-index: 9000;
  max-width: 380px; padding: 22px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(14,14,14,0.35), 0 8px 16px -8px rgba(14,14,14,0.15);
  animation: cookieIn 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px;
}
.cookie-banner-body {
  margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2);
}
.cookie-banner-link {
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-banner-link:hover { text-decoration-thickness: 2px; }
.cookie-banner-actions {
  display: flex; gap: 10px; align-items: center;
}
.cookie-banner-btn {
  flex: 1 1 auto; padding: 11px 18px;
  border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: filter 200ms, transform 200ms;
}
.cookie-banner-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cookie-banner-btn-secondary {
  background: transparent; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.cookie-banner-btn-primary {
  background: var(--accent); color: var(--ink);
}
@media (max-width: 540px) {
  .cookie-banner { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}
body.no-motion .cookie-banner { animation: none; }

/* Custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9999;
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--accent); border-radius: 50%;
  transition: width 200ms cubic-bezier(0.16, 1, 0.3, 1), height 200ms cubic-bezier(0.16, 1, 0.3, 1), margin 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms;
}
.cursor-dot.on { width: 0; height: 0; margin: 0; opacity: 0; }
.cursor-ring {
  width: 32px; height: 32px; margin: -16px 0 0 -16px;
  border: 1.5px solid rgba(200, 242, 60, 0.85); border-radius: 50%;
  transition: width 240ms cubic-bezier(0.16, 1, 0.3, 1), height 240ms cubic-bezier(0.16, 1, 0.3, 1), margin 240ms cubic-bezier(0.16, 1, 0.3, 1), background 200ms, border-color 200ms;
}
.cursor-ring.on {
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  background: rgba(200, 242, 60, 0.18);
}
.cursor-dot.fade, .cursor-ring.fade { opacity: 0; transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1); }
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
  /* Magnetic transforms only make sense with a cursor — kill any inline transforms on touch */
  .magnet, .magnet-link, .brand.magnet-link { transform: none !important; transition: none !important; }
  /* Card tilt + spotlight stay active on touch (JS tracks touchmove) */
}
body.no-motion .cursor-dot, body.no-motion .cursor-ring { display: none !important; }

/* Sticky scroll headlines (split-2 left column) */
@media (min-width: 1025px) {
  .split-2 > .l { position: sticky; top: 100px; align-self: start; }
}
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Accessibility: visible focus rings for keyboard nav */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible, [role="button"]:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Skip-to-content link */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 10000;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}
img, video { max-width: 100%; display: block; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; border-top: 1px solid var(--line); position: relative; }
.section::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1300ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2; pointer-events: none;
  box-shadow: 0 0 8px rgba(200, 242, 60, 0.4);
}
.section.section-in::before { transform: scaleX(1); }
body.no-motion .section::before { transition: none; transform: scaleX(1); }

/* "// Section label" — Stratic signature */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
}
.tag::before {
  content: "//"; color: var(--accent); font-weight: 700;
}

/* Display type — editorial serif vibe */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; line-height: 0.96; margin: 0; }
.h-mega { font-size: clamp(64px, 11vw, 168px); line-height: 0.92; letter-spacing: -0.035em; }
.h-1 { font-size: clamp(48px, 8vw, 120px); }
.h-2 { font-size: clamp(36px, 5.5vw, 80px); }
.h-3 { font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.015em; }
.italic { font-style: italic; font-weight: 500; }

/* Pill button (Stratic icon-pill) */
.btn {
  display: inline-flex; align-items: center; gap: 72px;
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 999px; padding: 14px 14px 14px 22px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: filter 120ms, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}
.btn .ico {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn .ico svg { width: 12px; height: 12px; }
.btn:hover { filter: brightness(1.08); }
.btn.outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.outline .ico { background: var(--ink); color: var(--bg); }
.btn.lg { font-size: 15px; padding: 16px 16px 16px 30px; gap: 88px; }

.magnet { display: inline-block; transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
.magnet-link { display: inline-block; transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms; will-change: transform; cursor: pointer; }
.footer ul li.magnet-link { display: block; width: fit-content; }

/* Header */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 32px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 350ms cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 350ms cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-backdrop-filter 350ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 350ms cubic-bezier(0.16, 1, 0.3, 1),
              padding 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
body.scrolled .hdr {
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
  padding: 12px 32px;
}
body.dark.scrolled .hdr { background: rgba(11,11,11,0.72); }
.hdr-l { display: flex; align-items: center; gap: 18px; }
.studio-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3); white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.dark .studio-status { background: rgba(11,11,11,0.4); }
.studio-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-3);
  position: relative;
}
.studio-status.on .studio-status-dot {
  background: #6FA00C;
  box-shadow: 0 0 0 0 rgba(200, 242, 60, 0.7);
  animation: studioPulse 2.2s ease-in-out infinite;
}
@keyframes studioPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 242, 60, 0.7); }
  50%      { box-shadow: 0 0 0 6px rgba(200, 242, 60, 0); }
}
body.no-motion .studio-status-dot { animation: none !important; }
@media (max-width: 900px) { .studio-status { display: none; } }

.hdr nav { display: flex; gap: 36px; justify-content: center; }

/* Mobile burger button (hidden on desktop) */
.hdr-burger {
  display: none;
  background: rgba(14, 14, 14, 0.06); border: 1px solid var(--line); cursor: pointer;
  width: 40px; height: 40px; padding: 0; border-radius: 999px;
  position: relative;
  z-index: 200;
  transition: background 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hdr-burger:hover { background: rgba(14, 14, 14, 0.1); }
.hdr-burger.open {
  background: var(--ink);
  border-color: var(--ink);
}
body.dark .hdr-burger { background: rgba(241, 239, 236, 0.08); border-color: var(--line); }
body.dark .hdr-burger.open { background: var(--ink); border-color: var(--ink); }
.hdr-burger span {
  display: block; position: absolute; left: 11px; right: 11px; height: 1.8px;
  background: var(--ink); border-radius: 2px;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms, top 320ms cubic-bezier(0.16, 1, 0.3, 1), background 240ms;
}
.hdr-burger span:nth-child(1) { top: 14px; }
.hdr-burger span:nth-child(2) { top: 19px; }
.hdr-burger span:nth-child(3) { top: 24px; }
.hdr-burger.open span { background: var(--bg); }
.hdr-burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hdr-burger.open span:nth-child(2) { opacity: 0; }
.hdr-burger.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
/* Hide burger when menu is open (close button takes over) */
body.nav-open .hdr-burger { opacity: 0; pointer-events: none; transition: opacity 200ms; }

/* Mobile-menu close button — fixed bottom-right, well above the CTA strip */
.mobile-menu-foot { position: relative; }
.mobile-menu-close {
  position: fixed;
  right: 24px; bottom: 160px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  border: 0; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(14, 14, 14, 0.4);
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
  transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1) 120ms, transform 480ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
  pointer-events: none;
  z-index: 5;
}
.mobile-menu.open .mobile-menu-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
}
.mobile-menu-close span {
  position: absolute; left: 14px; right: 14px; height: 2px;
  background: var(--bg); border-radius: 2px;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-close span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-close span:nth-child(2) { transform: rotate(-45deg); }
.mobile-menu-close:hover span:nth-child(1) { transform: rotate(135deg); }
.mobile-menu-close:hover span:nth-child(2) { transform: rotate(-135deg); }

/* Fullscreen mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 92px 24px 32px;
  opacity: 0; pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1), transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu-nav {
  display: flex; flex-direction: column; gap: 12px;
  flex: 1 1 auto;
}
.mobile-menu-nav a,
.mobile-menu-nav .mobile-menu-item {
  font-family: var(--font-display); font-size: clamp(36px, 9vw, 56px);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ink); cursor: pointer;
  background: transparent; border: 0; padding: 8px 0;
  text-align: left;
  display: block; width: fit-content;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 460ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--mm-i, 0) * 50ms + 150ms);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 1;
}
.mobile-menu.open .mobile-menu-nav a,
.mobile-menu.open .mobile-menu-nav .mobile-menu-item {
  opacity: 1; transform: translateY(0);
}
.mobile-menu-nav a.active,
.mobile-menu-nav .mobile-menu-item.active { color: var(--ink); }
.mobile-menu-nav a.active::before,
.mobile-menu-nav .mobile-menu-item.active::before {
  content: '/ '; color: var(--accent); font-weight: 700;
}
.mobile-menu-foot {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.mobile-menu-cta {
  display: inline-flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: var(--bg);
  padding: 18px 22px;
  border-radius: 999px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.mobile-menu-meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-3); text-transform: uppercase;
}

@media (max-width: 720px) {
  .hdr-burger { display: block; }
  .hdr > nav, .hdr > .btn, .hdr > .magnet > .btn { display: none; }
  .hdr > .magnet:not(.hdr-l .magnet) { display: none; }
  /* Hide Btn wrapper (span) on mobile — burger replaces it */
  .hdr > span { display: none; }
}

/* Lock scroll when mobile menu open */
body.nav-open { overflow: hidden; }
.hdr nav a { font-size: 14px; font-weight: 500; cursor: pointer; opacity: 0.7; }
.hdr nav a.active, .hdr nav a:hover { opacity: 1; }
.hdr .brand { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; cursor: pointer; }
.hdr .brand sup { font-size: 9px; vertical-align: super; opacity: 0.6; font-family: var(--font-mono); }

/* HERO — Stratic 2-col with editorial-serif headline + media right */
.hero { padding: 112px 32px 0; position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: -10%; right: -10%; bottom: -10%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(200, 242, 60, 0.30), transparent 70%),
    radial-gradient(35% 30% at 75% 20%, rgba(200, 242, 60, 0.14), transparent 70%),
    radial-gradient(45% 40% at 60% 75%, rgba(255, 245, 200, 0.22), transparent 70%),
    radial-gradient(30% 25% at 30% 80%, rgba(200, 242, 60, 0.18), transparent 70%);
  filter: blur(60px);
  animation: auroraShift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes auroraShift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.04); }
}
body.dark .hero::before {
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(200, 242, 60, 0.22), transparent 70%),
    radial-gradient(35% 30% at 75% 20%, rgba(200, 242, 60, 0.10), transparent 70%),
    radial-gradient(45% 40% at 60% 75%, rgba(180, 220, 80, 0.12), transparent 70%),
    radial-gradient(30% 25% at 30% 80%, rgba(200, 242, 60, 0.14), transparent 70%);
}
body.no-motion .hero::before { animation: none; }

/* Cursor-following hero glow */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(
    640px circle at var(--hero-mx, 50%) var(--hero-my, 50%),
    rgba(200, 242, 60, 0.22),
    rgba(200, 242, 60, 0.06) 30%,
    transparent 55%
  );
  z-index: 0;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero:hover::after, .hero.hero-active::after { opacity: 1; }
.hero-grid, .hero > .container { position: relative; z-index: 1; }
@media (pointer: coarse) { .hero::after { display: none; } }
body.no-motion .hero::after { display: none; }
@media (pointer: coarse) { .hero::after { opacity: 0; } .hero.hero-active::after { opacity: 1; } }
.hero-grid {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 56px; padding: 32px 0 64px;
  align-items: stretch;
}
.hero-l { display: flex; flex-direction: column; gap: 28px; padding: 24px 0; }
.hero-l .sub { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 460px; }
.hero-l .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-l .cta-row .small { font-size: 13px; color: var(--ink-3); margin-left: 8px; }

/* Hero media frame */
.hero-r {
  position: relative; border-radius: 20px; overflow: hidden;
  min-height: 540px; aspect-ratio: 4 / 5;
  background: #1a1a1a; isolation: isolate;
}
.hero-r video, .hero-r img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}
.hero-r .vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
}
.hero-r .strip {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: var(--bg); border-radius: 12px;
  display: grid; grid-template-columns: 1fr 1fr; padding: 14px 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); gap: 8px;
}
.hero-r .strip > div { display: flex; align-items: center; gap: 10px; }
.hero-r .strip > div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.hero-r .strip b { font-family: var(--font-display); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; text-transform: none; }

/* KPI mini-card (left side, like Stratic "001 / 100+ / CLIENTS AUTOMATED") */
.kpi-mini {
  border-radius: 14px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line);
  display: grid; grid-template-rows: 88px auto;
}
.kpi-mini .img { background: linear-gradient(135deg, #2a1a10, #0a0606); position: relative; }
.kpi-mini .img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.kpi-mini .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.kpi-mini .num-s { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; }
.kpi-mini .num-l { font-family: var(--font-display); font-size: 56px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.kpi-mini .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* KPI row layout */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 720px) {
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-mini { grid-template-rows: 56px auto; }
  .kpi-mini .body { padding: 14px 16px 16px; gap: 8px; }
  .kpi-mini .num-l { font-size: 38px; }
  .kpi-mini .num-s, .kpi-mini .lbl { font-size: 10px; }
}

/* Logo strip */
.logos {
  display: grid; grid-template-columns: repeat(8, 1fr);
  align-items: center; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0.7;
}
.logos .lg {
  font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  text-align: center; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.logos .lg .d { width: 14px; height: 14px; border-radius: 4px; background: var(--ink); opacity: 0.6; }

/* Animated logo marquee */
.logo-marquee {
  position: relative; overflow: hidden; padding: 28px 0;
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.logo-marquee .logo-track {
  display: flex; gap: 64px; align-items: center; width: max-content;
  animation: logoMq 48s linear infinite;
}
.logo-marquee.paused .logo-track { animation-play-state: paused; }
.logo-marquee .lg {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  height: 60px; min-width: 140px;
  filter: grayscale(1) brightness(0.6) contrast(1.1);
  opacity: 0.8;
  transition: filter 200ms, opacity 200ms;
}
.logo-marquee .lg:hover { filter: none; opacity: 1; }
.logo-marquee .lg img { max-height: calc(60px * var(--logo-scale, 1)); max-width: calc(180px * var(--logo-scale, 1)); width: auto; height: auto; object-fit: contain; }
/* Mobile-only per-logo size tweaks */
@media (max-width: 720px) {
  .logo-marquee .lg[title="Zhrill"] img { max-height: calc(48px * var(--logo-scale, 1)); max-width: calc(140px * var(--logo-scale, 1)); }
  .logo-marquee .lg[title="Snipes"] img { max-height: calc(40px * var(--logo-scale, 1)); max-width: calc(120px * var(--logo-scale, 1)); }
  .logo-marquee .lg[title="Warner Music"] img { max-height: calc(46px * var(--logo-scale, 1)); max-width: calc(140px * var(--logo-scale, 1)); }
}
body.dark .logo-marquee .lg { filter: grayscale(1) brightness(2) invert(0.92); }
@keyframes logoMq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hero scroll-parallax */
.hero-parallax {
  transform: translateY(calc(var(--sy, 0) * -40px));
  opacity: calc(1 - var(--sy, 0) * 0.85);
  transition: transform 80ms linear, opacity 80ms linear;
  will-change: transform, opacity;
}
.hero-parallax .hero-l {
  transform: translateY(calc(var(--sy, 0) * -20px));
}
.hero-parallax .hero-r {
  transform: translateY(calc(var(--sy, 0) * 30px)) scale(calc(1 - var(--sy, 0) * 0.04));
}
body.no-motion .hero-parallax { transform: none; opacity: 1; }
body.no-motion .hero-parallax .hero-l, body.no-motion .hero-parallax .hero-r { transform: none; }

/* 2-col section: tag + headline left, body right */
.split-2 {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start;
}
.split-2 .l .tag { margin-bottom: 24px; }
.split-2 .l h2 { margin: 0; }
.split-2 .l p { color: var(--ink-2); margin-top: 24px; max-width: 380px; font-size: 16px; line-height: 1.5; }

/* Calculator card */
.calc {
  background: var(--card); border-radius: 18px; padding: 36px;
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: end;
}
.calc .row { display: flex; flex-direction: column; gap: 12px; }
.calc label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); }
.calc .val { font-family: var(--font-display); font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.calc .out {
  border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px;
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
}
.calc .out .it { display: flex; flex-direction: column; gap: 4px; }
.calc .out .it .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.calc .out .it .v { font-family: var(--font-display); font-size: 36px; font-weight: 500; letter-spacing: -0.02em; }
.calc .out .it.h .v { color: var(--accent); }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; perspective: 1400px; }
.svc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; display: flex; flex-direction: column; gap: 16px; min-height: 320px;
  transform: translateY(var(--lift, 0px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms;
  cursor: pointer;
  will-change: transform;
}
.svc-card:hover { --lift: -4px; border-color: var(--line-2); }
.svc-card .num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #6FA00C; letter-spacing: 0.08em; }
.svc-card h3 { margin: 0; font-family: var(--font-display); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.svc-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.svc-card .bullets { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.svc-card .bullets li::before { content: "→ "; color: var(--accent); }

/* Tech stack chips */
.tech { display: flex; flex-wrap: wrap; gap: 10px; }
.tech .chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font-size: 13px; font-weight: 500;
}
.tech .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Process — numbered timeline */
.process { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process .step {
  padding: 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  background: var(--bg);
  transform: scale(var(--dock-scale, 1));
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  will-change: transform;
  cursor: pointer;
}
.process .step:hover {
  z-index: 3;
  box-shadow: 0 24px 50px -16px rgba(14, 14, 14, 0.18);
}
body.no-motion .process .step { transform: none !important; }
@media (pointer: coarse) { .process .step { transform: none !important; } }
.process .step:last-child { border-right: 0; }
.process .step .n { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #6FA00C; letter-spacing: 0.1em; }
.process .step h4 { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.process .step p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* Vertical dock — magnification list (e.g. service deliverables) */
.dock-list { display: flex; flex-direction: column; }
.dock-row {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: baseline;
  transform: scale(var(--dock-scale, 1));
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1), color 200ms ease;
  will-change: transform;
  color: var(--ink);
}
.dock-row-name { font-size: 18px; font-weight: 500; transition: font-weight 200ms ease; }
.dock-row-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); transition: color 200ms ease; }
.dock-row:hover .dock-row-num { color: var(--ink); }
body.no-motion .dock-row { transform: none !important; }
@media (pointer: coarse) { .dock-row { transform: none !important; } }

/* Cases — 2 col */
.cases {
  display: grid; grid-template-columns: repeat(2, minmax(0, 700px));
  justify-content: center; gap: 16px;
}
.case {
  position: relative; aspect-ratio: 7 / 5; overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #2a2018, #0a0808); cursor: pointer;
  isolation: isolate;
}
.case.case-flush { border-radius: 20px; }
.cases-flush { gap: 16px; }
.case-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  color: #fff; z-index: 2;
}
.case-overlay-name {
  font-family: var(--font-display); font-size: 32px; font-weight: 500; letter-spacing: -0.02em;
}
.case-overlay-year {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.85;
}
.case .mark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500; font-size: 96px; color: rgba(255,255,255,0.85);
  letter-spacing: -0.02em;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.case:hover .mark { transform: scale(1.04); }

/* Photographic case variant */
.case-photo .case-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100% !important; height: 100% !important;
  min-width: 100%; min-height: 100%;
  max-width: none; max-height: none;
  display: block;
  object-fit: cover; object-position: center;
  aspect-ratio: auto !important;
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
}
.case-photo:hover .case-bg { transform: scale(1.06); filter: blur(14px); }
.case-photo .case-tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.35) 100%);
}
.case-photo .case-photo-mark {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: calc(40% * var(--logo-scale, 1));
  height: calc(40% * var(--logo-scale, 1));
  max-width: calc(240px * var(--logo-scale, 1));
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.45));
  pointer-events: none;
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.case-photo:hover .case-photo-mark { transform: scale(1.04); }
.case-photo .case-logo, .project-cover-logo { display: none !important;
  z-index: 1;
}

/* Detailed case grid (Cases page) */
.cases-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px 32px;
}
.case-detail { display: flex; flex-direction: column; gap: 20px; }
.case-meta-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.case-meta-name {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  letter-spacing: -0.02em;
}
.case-meta-year {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em;
}
.case-meta-desc {
  color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; max-width: 56ch;
}
.case-meta-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tag {
  display: inline-flex; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.case-read-cta {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start; margin-top: 8px;
  background: var(--accent); color: var(--ink);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 0 0 rgba(200, 242, 60, 0);
}
.case-read-arrow {
  display: inline-block;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.case-detail:hover .case-read-cta {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(200, 242, 60, 0.6);
}
.case-detail:hover .case-read-arrow { transform: translateX(4px); }
.case .row {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: var(--bg); border-radius: 10px; padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.case .row .t { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.case .row .y { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; }
.case .row .res { font-size: 12px; color: var(--accent); font-weight: 500; }

/* ───────── Project deep-dive ───────── */
.project-page { padding-top: 0; }
.project-cover {
  position: relative; height: 78vh; min-height: 560px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.project-cover-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.project-cover-logo {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  max-width: 180px; max-height: 90px; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.45));
  z-index: 1; pointer-events: none;
}
.project-cover-tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.78) 100%);
}
.project-cover-inner { position: relative; padding-bottom: 56px; color: #fff; width: 100%; }
.project-back {
  display: inline-block; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: 20px;
}
.project-back:hover { color: #fff; }
h1.project-title, .project-title {
  color: #fff; margin: 0 0 28px;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
  -webkit-text-wrap: balance;
  max-width: 14ch;
}
@media (max-width: 720px) {
  h1.project-title, .project-title {
    font-size: clamp(34px, 10vw, 56px);
    line-height: 1.02;
    max-width: 12ch;
    margin: 0 0 20px;
  }
}

/* Service detail hero title — handle long names cleanly */
h1.service-title, .service-title {
  font-size: clamp(40px, 7vw, 88px);
  letter-spacing: -0.025em;
  line-height: 1;
  max-width: 16ch;
  text-wrap: balance;
  -webkit-text-wrap: balance;
}
@media (max-width: 720px) {
  h1.service-title, .service-title {
    font-size: clamp(36px, 11vw, 56px);
    max-width: 14ch;
  }
}
.project-cover-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
}

.project-bar { border-bottom: 1px solid var(--line); padding: 28px 0; }
.project-bar-grid {
  display: grid; grid-template-columns: auto auto auto 1fr; gap: 56px; align-items: baseline;
}
.project-bar-k {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
.project-bar-v { font-size: 15px; font-weight: 500; }

.project-prose .split-2 { gap: 80px; }
.project-lead { font-family: var(--font-display); font-size: 24px; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); font-weight: 400; margin: 0; max-width: 56ch; }
.project-body { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 18px; max-width: 60ch; }
.project-body:last-child { margin-bottom: 0; }

.project-gallery-sec { padding: 24px 0 64px; }
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}
.project-shot { grid-column: span 2; }
.project-shot[data-orientation="portrait"] { grid-column: span 1; }
@media (max-width: 720px) {
  .project-gallery { gap: 12px; }
}
.project-shot {
  margin: 0; overflow: hidden; background: var(--card);
  border-radius: 0;
}
.project-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-next {
  border-top: 1px solid var(--line); padding: 64px 0 96px;
}
.project-next-link { cursor: pointer; display: block; }
.project-next-k {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
}
.project-next-name { transition: color 200ms; }
.project-next-link:hover .project-next-name { color: var(--accent); }

.service-next-section { padding: 32px 32px 96px; }
.service-next-link { border-top: 1px solid var(--accent); padding-top: 24px; }
@media (max-width: 720px) {
  .service-next-section { padding: 24px 0 72px; }
  .service-next-section .container { padding-left: 18px; padding-right: 18px; }
  .service-next-link { padding-top: 20px; }
}

@media (max-width: 1024px) {
  .project-cover { height: auto; min-height: 0; padding-top: 88px; }
  .project-cover-inner { padding-bottom: 48px; }
  .project-bar-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .project-prose .split-2 { gap: 32px; }
}
@media (max-width: 720px) {
  .project-cover { padding-top: 80px; min-height: 420px; }
  .project-cover[data-slug="matthias-aumann"] { min-height: 640px; }
  .project-cover[data-slug="matthias-aumann"] .project-cover-bg {
    object-position: 60% 12%;
    object-fit: cover;
  }
  .project-bar-grid { grid-template-columns: 1fr; }
  .project-lead { font-size: 19px; }
  .case-overlay-name { font-size: 22px; }
  .case-overlay { padding: 16px 18px; }
}

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; isolation: isolate; position: relative; perspective: 1400px; }
.pricing::before {
  content: '';
  position: absolute;
  inset: -60px -40px;
  background: radial-gradient(
    ellipse 70% 60% at center,
    rgba(200, 242, 60, 0.28) 0%,
    rgba(200, 242, 60, 0.12) 35%,
    rgba(200, 242, 60, 0.02) 60%,
    transparent 75%
  );
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
  border-radius: 60px;
}
.price {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; display: flex; flex-direction: column; gap: 18px;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
@property --shimmer-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes priceShimmer { to { --shimmer-angle: 360deg; } }
.price.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.price .price-tag { font-family: var(--font-display); font-size: 56px; font-weight: 500; letter-spacing: -0.025em; line-height: 1; }
.price .price-tag small { font-size: 13px; opacity: 0.6; font-weight: 400; letter-spacing: 0; font-family: var(--font-sans); }
.price ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.price ul li { padding-left: 18px; position: relative; }
.price ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.price.featured ul li::before { color: var(--bg); }

/* Team section (About page) */
.team-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: stretch; }
.team-l { display: flex; flex-direction: column; gap: 28px; }
.team-l > .tag { align-self: flex-start; }
.team-l > .tag { margin-bottom: 4px; }
.team-cta { margin-top: 32px; max-width: 380px; }
.team-cta-title { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.team-cta p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0 0 22px; }

.team-bts {
  margin: 0; padding: 0;
  margin-top: auto;
  border-radius: 20px; overflow: hidden; position: relative;
  height: 340px; min-height: 240px;
  background: #1a1a1a;
}
.team-bts img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.team-bts:hover img { transform: scale(1.04); }
.team-bts figcaption {
  position: absolute; left: 20px; bottom: 18px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 999px;
}
.team-r { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.team-card {
  position: relative; aspect-ratio: 3 / 5;
  border-radius: 24px; overflow: hidden;
  background: #1a1a1a; isolation: isolate;
  cursor: pointer;
}
.team-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: filter 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.team-card:hover img { filter: blur(14px) brightness(0.6); transform: scale(1.06); }
.team-card-tint {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.75) 100%);
  transition: background 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover .team-card-tint {
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.7) 100%);
}
.team-card-top {
  position: absolute; top: 18px; left: 18px; right: 20px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  color: #fff;
}
.team-card-plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff; font-size: 18px; font-weight: 500; line-height: 1;
  font-family: var(--font-sans);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), background 300ms;
}
.team-card:hover .team-card-plus { transform: rotate(45deg); background: rgba(200, 242, 60, 0.95); color: var(--ink); }
.team-card-role { text-align: right; padding-top: 4px; }
.team-card-role-l { font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }
.team-card-role-s { font-family: var(--font-sans); font-size: 13px; opacity: 0.78; letter-spacing: 0; margin-top: 2px; }
.team-card-bottom {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2;
  color: #fff;
}
.team-card-name {
  font-family: var(--font-sans); font-size: 26px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.05;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover .team-card-name { transform: translateY(-2px); }
.team-card-bio {
  margin: 0;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
  max-height: 0; opacity: 0; overflow: hidden;
  transform: translateY(8px);
  transition: max-height 600ms cubic-bezier(0.16, 1, 0.3, 1), opacity 350ms cubic-bezier(0.16, 1, 0.3, 1) 150ms, transform 500ms cubic-bezier(0.16, 1, 0.3, 1) 100ms, margin-top 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover .team-card-bio { max-height: 220px; opacity: 1; transform: translateY(0); margin-top: 14px; }
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 540px) {
  .team-r { grid-template-columns: 1fr; }
}

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.review .stars { color: var(--accent); letter-spacing: 0.1em; }
.review .q { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .who .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#7a5a3a,#2a1a0a); }
.review .who b { display: block; font-size: 14px; font-weight: 500; }
.review .who span { font-size: 12px; color: var(--ink-3); }

/* Auto-rotating testimonial */
.testimonial-rotator {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 48px 56px;
  max-width: 980px;
  margin: 0 auto;
}
.testimonial-stack { position: relative; min-height: 220px; }
.testimonial-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.testimonial-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.testimonial-stars { color: var(--accent); letter-spacing: 0.15em; font-size: 18px; }
.testimonial-q {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500; letter-spacing: -0.015em; line-height: 1.35;
  margin: 0; color: var(--ink);
  max-width: 56ch;
}
.testimonial-who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial-av { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 48px; }
.testimonial-who b { display: block; font-size: 15px; font-weight: 500; }
.testimonial-who span { font-size: 13px; color: var(--ink-3); }
.testimonial-dots {
  display: flex; gap: 8px; justify-content: center; margin-top: 36px;
}
.testimonial-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2); border: 0; cursor: pointer; padding: 0;
  transition: background 320ms cubic-bezier(0.16, 1, 0.3, 1), width 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-dot.active { width: 28px; border-radius: 999px; background: var(--accent); }
.testimonial-dot:hover { background: var(--ink-2); }
.testimonial-dot.active:hover { background: var(--accent); }
@media (max-width: 720px) {
  .testimonial-rotator { padding: 32px 24px; }
  .testimonial-stack { min-height: 280px; }
}

/* Compare table */
.compare {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--card); font-size: 14px;
}
.compare .h { background: var(--bg-2); padding: 18px 22px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.compare .h:nth-child(n+2) { display: flex; justify-content: center; align-items: center; text-align: center; }
.compare .h.us { background: var(--accent); color: var(--ink); font-weight: 700; }
.compare .r { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.compare .r:not(.lbl) { justify-content: center; }
.compare .r:nth-last-child(-n+4) { border-bottom: 0; }
.compare > .r:nth-child(4n) { background: rgba(200, 242, 60, 0.08); }
.compare .lbl { font-weight: 500; }
@media (max-width: 720px) {
  .compare .r.lbl { white-space: pre-line; }
}
.compare .y, .compare .n { font-family: var(--font-mono); font-size: 12px; }
.compare .y::before { content: "✓"; color: #6FA00C; margin-right: 6px; font-weight: 700; }
.compare .n::before { content: "✗"; color: var(--ink-3); margin-right: 6px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 500; font-size: 22px; list-style: none; gap: 24px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; transition: transform 240ms; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 24px; margin: 0; max-width: 700px; color: var(--ink-2); }

/* ─────── Stream Studies ─────── */
.stream-section { border-top: 1px solid var(--line); }
.stream-head { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
.stream-sub { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0; max-width: 56ch; }

.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  justify-content: start;
  gap: 10px;
  perspective: 1400px;
}
.stream-cell {
  width: 300px; height: 300px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px 22px;
  display: grid; grid-template-rows: auto 1fr;
  gap: 18px; overflow: hidden;
  position: relative;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms;
  will-change: transform;
}
.stream-cell:hover { border-color: var(--line-2); }

.sc-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.sc-num { color: #6FA00C; font-weight: 700; }
.sc-name { color: var(--ink-3); }

.sc-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: 0; }

.sc-q-wrap { display: flex; justify-content: flex-end; }
.sc-q {
  max-width: 80%;
  background: var(--ink); color: var(--bg);
  padding: 8px 13px;
  border-radius: 14px 14px 4px 14px;
  font-size: 12.5px; line-height: 1.35; font-weight: 500;
  letter-spacing: -0.005em;
}
.sc-a {
  font-family: var(--font-display);
  font-size: 19px; line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink); font-weight: 500;
  min-height: 78px; max-height: 130px;
  overflow: hidden; word-break: break-word;
}
.sc-mono { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.02em; line-height: 1.4; }

/* Caret */
.sc-caret {
  display: inline-block;
  margin-left: 2px;
  animation: sc-blink 900ms steps(2, end) infinite;
  font-weight: 400; opacity: 0.85;
}
@keyframes sc-blink { 50% { opacity: 0; } }

/* Char/word inline blocks */
.sc-cascade > span,
.sc-drop > span,
.sc-blur > span,
.sc-words > span { display: inline-block; white-space: pre; }

/* Cascade */
.sc-cascade > span { opacity: 0; transform: translateY(3px); animation: scCascade 360ms cubic-bezier(0.16,1,0.3,1) both; }
@keyframes scCascade { to { opacity: 1; transform: none; } }

/* Drop in */
.sc-drop > span { opacity: 0; transform: translateY(-14px); animation: scDrop 480ms cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes scDrop { to { opacity: 1; transform: none; } }

/* Blur word reveal */
.sc-blur > span { opacity: 0; filter: blur(6px); animation: scBlur 580ms cubic-bezier(0.16,1,0.3,1) both; }
@keyframes scBlur { to { opacity: 1; filter: blur(0); } }

/* Word fade */
.sc-words > span { opacity: 0; animation: scWord 280ms ease-out both; }
@keyframes scWord { to { opacity: 1; } }

/* Line slide */
.sc-line { opacity: 0; transform: translateY(10px); animation: scLine 520ms cubic-bezier(0.16,1,0.3,1) both; }
@keyframes scLine { to { opacity: 1; transform: none; } }

/* Mask wipe — ghost gray underneath, ink masked from left to right */
.sc-wipe-wrap { position: relative; display: inline-block; }
.sc-wipe-ghost { color: var(--ink-3); }
.sc-wipe {
  position: absolute; left: 0; top: 0; right: 0;
  color: var(--ink);
  -webkit-mask-image: linear-gradient(90deg, #000 49.5%, transparent 50.5%);
          mask-image: linear-gradient(90deg, #000 49.5%, transparent 50.5%);
  -webkit-mask-size: 200% 100%;
          mask-size: 200% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
          mask-position: 100% 0;
  animation: scWipe 1700ms cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes scWipe {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
}

/* Mobile */
@media (max-width: 720px) {
  .stream-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stream-cell {
    width: 100%; height: auto;
    aspect-ratio: 1 / 1;
    padding: 12px 14px 14px;
    gap: 10px;
    border-radius: 10px;
  }
  .stream-cell:nth-child(n+5) { display: none; }
  .sc-top { font-size: 9px; letter-spacing: 0.08em; }
  .sc-q { font-size: 12px; }
  .sc-a { font-size: 13px; }
}
@media (max-width: 380px) {
  .stream-grid { grid-template-columns: 1fr; gap: 10px; }
  .stream-cell { aspect-ratio: 16 / 9; }
}

/* ─────── Legal pages ─────── */
.legal-page .hero { padding-bottom: 0; }
.legal-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
  background: var(--card); border: 1px solid var(--line);
  padding: 6px; border-radius: 999px; margin-top: 8px;
}
.legal-tab {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  letter-spacing: -0.005em; transition: background 160ms, color 160ms;
}
.legal-tab:hover { color: var(--ink); }
.legal-tab.active { background: var(--ink); color: var(--bg); }

.legal-body-section { border-top: 1px solid var(--line); }
.legal-grid {
  display: grid; grid-template-columns: 260px 1fr; gap: 80px;
  align-items: start;
}
.legal-toc {
  position: sticky; top: 92px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3);
  border-top: 1px solid var(--line); padding-top: 24px;
}
.legal-toc-h { color: var(--ink); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.1em; }
.legal-toc ol { list-style: none; counter-reset: lt; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.legal-toc-indicator {
  position: absolute; left: 0; top: 0;
  width: 3px; border-radius: 2px;
  background: var(--accent);
  pointer-events: none;
  will-change: transform, height;
  transition:
    transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1),
    height 380ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 220ms ease;
}
.legal-toc ol li {
  counter-increment: lt; line-height: 1.4; position: relative;
  padding: 6px 0 6px 14px;
  transition: padding-left 280ms cubic-bezier(0.22, 0.61, 0.36, 1), color 220ms ease;
}
.legal-toc ol li::before {
  content: counter(lt, decimal-leading-zero) ".  "; color: var(--ink-3);
  transition: color 220ms ease;
}
.legal-toc ol li a { color: var(--ink-2); cursor: pointer; transition: color 200ms ease; }
.legal-toc ol li:hover a, .legal-toc ol li.active a, .legal-toc ol li.hover a { color: var(--ink); }
.legal-toc ol li.active, .legal-toc ol li.hover { padding-left: 18px; }
.legal-toc ol li.active::before, .legal-toc ol li.hover::before { color: var(--ink); }
.legal-toc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; color: var(--ink-3); padding-top: 16px; border-top: 1px solid var(--line); }
.legal-toc-meta > div:nth-child(2) { color: var(--ink); }

.legal-body {
  max-width: 720px;
  font-size: 16px; line-height: 1.65; color: var(--ink-2);
}
.legal-section { padding: 36px 0; border-top: 1px solid var(--line); }
.legal-section:first-child { border-top: 0; padding-top: 0; }
.legal-section-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px;
}
.legal-section h2 {
  font-size: 28px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15;
  margin: 0 0 20px; color: var(--ink);
}
.legal-section p { margin: 0 0 14px; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-foot {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
}

@media (max-width: 1024px) {
  .legal-grid { grid-template-columns: 1fr; gap: 36px; }
  .legal-toc { position: static; }
}

/* Marquee */
.marquee { display: flex; overflow: hidden; user-select: none; padding: 32px 0; }
.marquee-track { display: flex; gap: 2vw; flex-shrink: 0; animation: mq 40s linear infinite; }
.marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes mq { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.mq-item {
  flex-shrink: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(64px, 11vw, 160px); padding: 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 2vw; letter-spacing: -0.025em;
}
.mq-item .d { width: 0.35em; height: 0.35em; border-radius: 50%; background: var(--accent); }
.mq-out { color: transparent; -webkit-text-stroke: 1.5px currentColor; }

/* Footer */
.footer { background: var(--ink); color: var(--bg); padding: 80px 32px 32px; }
.footer .grid { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto auto; gap: 80px; align-items: start; }
.footer .big { font-family: var(--font-display); font-size: clamp(48px, 8vw, 120px); font-weight: 500; letter-spacing: -0.025em; line-height: 0.96; }
.footer .big-reveal {
  opacity: 0; transform: scale(0.92);
  transform-origin: 0 50%;
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  position: relative;
  isolation: isolate;
  display: inline-block;
}
.footer .big-reveal.in { opacity: 1; transform: scale(1); }
.footer .big-reveal::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--big-mx, 50%) var(--big-my, 50%),
    rgba(200, 242, 60, 1),
    rgba(200, 242, 60, 0.6) 30%,
    rgba(200, 242, 60, 0.15) 50%,
    transparent 65%
  );
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.footer .big-reveal:hover::after, .footer .big-reveal.big-active::after { opacity: 1; }
body.no-motion .footer .big-reveal { opacity: 1; transform: none; }
body.no-motion .footer .big-reveal::after { display: none; }
@media (pointer: coarse) { .footer .big-reveal.big-active::after { opacity: 1; } }
.footer h5 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(241,239,236,0.5); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; font-size: 14px; }
.footer ul li { cursor: pointer; opacity: 0.85; }
.footer ul li:hover { opacity: 1; }
.footer .legal { max-width: 1360px; margin: 64px auto 0; padding-top: 24px; border-top: 1px solid rgba(241,239,236,0.12); display: flex; justify-content: space-between; font-size: 12px; opacity: 0.6; font-family: var(--font-mono); }

/* Hide ↗ arrows on social links on mobile only */
@media (max-width: 720px) {
  .footer ul li .arrow { display: none; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms cubic-bezier(0.16,1,0.3,1), transform 700ms cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
body.no-motion *, body.no-motion *::before, body.no-motion *::after { animation: none !important; transition: none !important; }
body.no-motion .reveal { opacity: 1; transform: none; }

/* page enter */
.page-enter { animation: fadeup 600ms cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Word-by-word headline reveal */
.word-reveal { display: inline-block; }
.word-reveal-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
}
.reveal.in .word-reveal-inner {
  animation: wordRevealIn 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes wordRevealIn {
  0%   { opacity: 0; transform: translateY(0.4em); }
  100% { opacity: 1; transform: translateY(0); }
}
body.no-motion .word-reveal-inner { opacity: 1; transform: none; animation: none !important; }

/* Page transitions */
.route-wrap {
  transition: opacity 220ms cubic-bezier(0.4, 0, 0.2, 1), transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.route-wrap.route-exit {
  opacity: 0;
  transform: translateY(-8px);
}
body.no-motion .route-wrap { transition: none; }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ───────── Tablet ───────── */
@media (max-width: 1024px) {
  .container, .hero, .footer { padding-left: 24px; padding-right: 24px; }
  /* Force single column on mobile/tablet even when JSX uses inline grid-template-columns */
  .hero-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  /* Reduce heavy filters for perf on smaller devices */
  .hero::before { filter: blur(36px); }
  .pricing::before { filter: blur(30px); inset: -30px -10px; }
  .team-grid { grid-template-columns: 1fr !important; gap: 48px; }
  .terminal-window { transform: none; }
  .callback { max-width: 100%; }
  .hero-r { aspect-ratio: 16 / 11; min-height: 0; }
  .hdr nav { gap: 20px; }
  .logos { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .split-2 { grid-template-columns: 1fr; gap: 32px; }
  .calc { grid-template-columns: 1fr; padding: 24px; }
  .calc .out { grid-template-columns: 1fr 1fr 1fr; }
  .svc-grid, .cases, .reviews, .pricing { grid-template-columns: 1fr 1fr; }
  .cases-detail { grid-template-columns: 1fr; gap: 48px; }
  .process { grid-template-columns: 1fr 1fr; }
  .process .step:nth-child(2) { border-right: 0; }
  .process .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .compare { grid-template-columns: 1.2fr 1fr 1fr 1fr; font-size: 13px; }
  .footer .grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ───────── Mobile ───────── */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .container, .hero, .footer { padding-left: 18px; padding-right: 18px; }
  .section { padding: 64px 0; }
  .hdr { grid-template-columns: 1fr auto; padding: 12px 18px; }
  .hdr nav { display: none; }
  .hdr > span { display: none; }
  .hdr-burger { display: block; }
  .hdr-l { gap: 12px; }
  .h-mega { font-size: clamp(48px, 16vw, 96px); }
  .h-1 { font-size: clamp(40px, 13vw, 72px); }
  .h-2 { font-size: clamp(32px, 10vw, 56px); }
  .hero { padding: 92px 18px 0; }
  .hero-l .sub { font-size: 16px; }
  .hero-l .cta-row { flex-direction: column; align-items: stretch; }
  .hero-l .cta-row .btn { justify-content: space-between; }
  .hero-l .cta-row .small { margin-left: 0; text-align: center; }
  .hero-r { aspect-ratio: 4 / 5; }
  .hero-r .strip { grid-template-columns: 1fr; }
  .hero-r .strip > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  .logos { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 0; }
  .logos .lg { font-size: 14px; }
  .svc-grid, .cases, .reviews, .pricing { grid-template-columns: 1fr; }
  .svc-card { padding: 24px; min-height: 0; }
  .process { grid-template-columns: 1fr; }
  .process .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .process .step:last-child { border-bottom: 0; }
  .compare { grid-template-columns: 1fr 1fr 1fr 1fr; font-size: 11px; }
  .compare .h, .compare .r { padding: 10px 8px; }
  .calc .out { grid-template-columns: 1fr; }
  .footer .grid { grid-template-columns: 1fr; gap: 28px; }
  .footer .legal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 16px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .footer .legal > span:nth-child(2) { gap: 10px !important; }
  .footer .legal > span:first-child { flex: 0 0 auto; }
  .footer .legal > span:last-child { flex: 0 0 auto; text-align: right; }
  input, textarea, select { font-size: 16px; }
  .review .q { font-size: 18px; }
  .case .mark { font-size: 64px; }
}

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
