@font-face {
  font-family: "Satoshi";
  src: url("./assets/fonts/satoshi-300.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Satoshi";
  src: url("./assets/fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Satoshi";
  src: url("./assets/fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Satoshi";
  src: url("./assets/fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Satoshi";
  src: url("./assets/fonts/satoshi-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
  font-style: normal;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
:root {
  --bg: #050507;
  --bg-soft: #0b0a12;
  --surface: rgba(255,255,255,0.055);
  --surface-strong: rgba(255,255,255,0.095);
  --line: rgba(255,255,255,0.12);
  --ink: #ffffff;
  --muted: rgba(255,255,255,0.72);
  --quiet: rgba(255,255,255,0.68);
  --accent: #7c3aed;
  --accent-2: #b06cff;
  --max: 1180px;
}
html { scroll-behavior: smooth; background: var(--bg); }
html.mobile-menu-open { overflow: hidden; height: 100%; }
html.mobile-menu-open body { overflow: hidden; height: 100%; }
body {
  min-height: 100vh;
  font-family: "Satoshi", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(124,58,237,0.10), transparent 520px),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(124,58,237,0.24), transparent 24rem),
    radial-gradient(circle at 50% 58%, rgba(176,108,255,0.10), transparent 19rem),
    linear-gradient(135deg, #020204, #07050c 56%, #010102);
  transition: opacity 900ms cubic-bezier(0.16,1,0.3,1), visibility 900ms;
  touch-action: none;
}
.page-booting body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    url("./kairai-mark.png") center / 54px no-repeat,
    radial-gradient(circle at 50% 42%, rgba(124,58,237,0.30), transparent 34%),
    linear-gradient(135deg, #050507, #12091f 48%, #050507);
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  animation: bootMarkPulse 1.7s ease-in-out infinite;
  transition: opacity 520ms cubic-bezier(0.16,1,0.3,1), visibility 520ms ease;
}
.page-booting body::after {
  content: "";
  position: fixed;
  left: 50%;
  top: calc(50% + 54px);
  z-index: 201;
  width: 86px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(196,145,255,0.86), transparent);
  background-size: 220% 100%;
  transform: translateX(-50%);
  opacity: 0.72;
  pointer-events: none;
  animation: bootLineScan 1.35s ease-in-out infinite;
  transition: opacity 420ms ease;
}
.page-booting.page-booted body::before,
.page-booting.page-booted body::after {
  opacity: 0;
  visibility: hidden;
  animation: none;
}
@keyframes bootMarkPulse {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.18) saturate(1.15); }
}
@keyframes bootLineScan {
  0% { background-position: -120% 0; opacity: 0.34; }
  50% { opacity: 0.86; }
  100% { background-position: 120% 0; opacity: 0.34; }
}
.skip-unlock .preloader {
  display: none;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.subpage-loader {
  z-index: 998;
  background:
    radial-gradient(circle at 50% 42%, rgba(124,58,237,0.28), transparent 30%),
    linear-gradient(135deg, #050507, #0d0716 50%, #050507);
}
.subpage-loader .preloader-mark { width: 96px; height: 96px; }
.hero-loader {
  background:
    radial-gradient(circle at 50% 46%, rgba(124,58,237,0.26), transparent 28%),
    radial-gradient(circle at 50% 58%, rgba(176,108,255,0.12), transparent 18%),
    linear-gradient(135deg, #010102, #07050c 56%, #020204);
}
.preloader::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 32% 28%, rgba(124,58,237,0.24), transparent 40%),
    radial-gradient(circle at 68% 72%, rgba(176,108,255,0.16), transparent 38%);
  animation: preloaderDrift 15s ease-in-out infinite;
  pointer-events: none;
}
@keyframes preloaderDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -4%) scale(1.08); }
}
.unlock-panel {
  position: relative;
  z-index: 2;
  width: min(430px, calc(100vw - 38px));
  display: grid;
  justify-items: center;
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(124,58,237,0.14), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.055), transparent 50%),
    rgba(5,4,10,0.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 34px 140px rgba(0,0,0,0.48);
  backdrop-filter: blur(24px) saturate(1.35);
}
.unlock-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(176,108,255,0.42), transparent 34%, rgba(255,255,255,0.08));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}
.unlock-mark {
  position: relative;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
}
.unlock-mark::before {
  content: "";
  position: absolute;
  inset: -34px;
  background: radial-gradient(circle, rgba(124,58,237,0.42), transparent 64%);
  filter: blur(10px);
}
.unlock-mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(255,255,255,0.15);
  clip-path: polygon(18% 0, 100% 16%, 78% 100%, 0 78%);
  transform: rotate(-10deg);
}
.unlock-mark img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.unlock-outline {
  filter: grayscale(1) brightness(1.3);
  opacity: 0.26;
  animation: unlockLogoFloat 3.4s ease-in-out infinite;
}
.unlock-fill {
  filter: drop-shadow(0 22px 54px rgba(124,58,237,0.42));
  clip-path: inset(100% 0 0 0);
  animation: logoFill 1.1s cubic-bezier(0.16,1,0.3,1) 260ms forwards, unlockLogoFloat 3.4s ease-in-out 1.3s infinite;
}
.unlock-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.unlock-copy span {
  color: rgba(255,255,255,0.54);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.unlock-copy strong {
  max-width: 320px;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.unlock-slider {
  --unlock-progress: 0px;
  position: relative;
  width: 100%;
  height: 62px;
  margin-top: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  overflow: hidden;
  user-select: none;
}
.unlock-track {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.unlock-track::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--unlock-progress) + 31px);
  background: linear-gradient(90deg, rgba(124,58,237,0.42), rgba(176,108,255,0.18));
  transition: width 120ms ease;
}
.unlock-track span {
  position: relative;
  color: rgba(255,255,255,0.44);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.unlock-track i {
  position: absolute;
  right: 20px;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(255,255,255,0.52);
  border-right: 2px solid rgba(255,255,255,0.52);
  transform: rotate(45deg);
  animation: unlockChevronNudge 1.8s ease-in-out infinite;
}
.unlock-handle {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(212,198,255,0.86));
  color: #120b20;
  box-shadow: 0 16px 46px rgba(124,58,237,0.34);
  transform: translateX(var(--unlock-progress));
  cursor: grab;
  touch-action: none;
  transition: transform 320ms cubic-bezier(0.16,1,0.3,1), box-shadow 320ms ease;
}
.unlock-slider.is-dragging .unlock-handle {
  transition: box-shadow 320ms ease;
}
.unlock-handle:active { cursor: grabbing; }
@keyframes unlockChevronNudge {
  0%, 100% { transform: rotate(45deg) translateX(0); opacity: 0.7; }
  50% { transform: rotate(45deg) translateX(4px); opacity: 1; }
}
.unlock-handle span {
  width: 11px;
  height: 11px;
  border-top: 3px solid #160a28;
  border-right: 3px solid #160a28;
  transform: rotate(45deg);
}
.unlock-slider.is-complete .unlock-handle {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.unlock-slider.is-complete .unlock-track i {
  animation: none;
  opacity: 0;
}
@keyframes unlockLogoFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
}
.preloader-mark {
  position: relative;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preloader-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preloader-outline {
  filter: grayscale(1) brightness(1.2);
  opacity: 0.24;
}
.preloader-fill {
  clip-path: inset(100% 0 0 0);
  animation: logoFill 1.35s cubic-bezier(0.16,1,0.3,1) forwards;
}
.preloader-mark span {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 35%, rgba(255,255,255,0.7), rgba(124,58,237,0.9), transparent 65%);
  transform: translateX(-120%);
  mix-blend-mode: screen;
  animation: preloaderSweep 1.35s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes preloaderSweep { to { transform: translateX(120%); } }
@keyframes logoFill { to { clip-path: inset(0 0 0 0); } }
@keyframes splineIn { to { opacity: 1; } }
@keyframes heroUiIn {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes navIn {
  from { opacity: 0; top: 10px; filter: blur(8px); }
  to { opacity: 1; top: 20px; filter: blur(0); }
}
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(calc(100% - 32px), 660px);
  height: 50px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14,12,24,0.78);
  backdrop-filter: blur(24px) saturate(1.5);
  animation: navIn 900ms cubic-bezier(0.16,1,0.3,1) 3.4s both;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.nav-logo img { width: 24px; height: 24px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: center; }
.nav-links a, .mobile-menu summary {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.nav-links a:hover, .mobile-menu summary:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-panel {
  position: fixed;
  top: 78px;
  left: 16px;
  right: 16px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14,12,24,0.96);
  backdrop-filter: blur(24px);
}
.mobile-menu-panel a {
  padding: 12px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.mobile-menu-panel a:hover { background: var(--surface); color: var(--ink); }
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 128px max(28px, calc((100vw - var(--max)) / 2)) 64px;
  background:
    radial-gradient(circle at 56% 52%, rgba(124,58,237,0.42), transparent 30%),
    radial-gradient(circle at 20% 28%, rgba(255,255,255,0.10), transparent 24%),
    linear-gradient(115deg, rgba(124,58,237,0.20), transparent 22%),
    #030306;
}
.hero::before {
  content: "";
  position: absolute;
  left: 55%;
  top: -12%;
  z-index: 0;
  width: 260px;
  height: 290px;
  background: linear-gradient(135deg, rgba(124,58,237,0.95), rgba(198,42,255,0.55));
  clip-path: polygon(18% 0, 100% 0, 74% 100%, 0 100%);
  opacity: 0.72;
  filter: blur(0.2px);
  pointer-events: none;
  transition: opacity 600ms ease;
}
.hero:not(.is-spline-ready)::before {
  animation: heroLoadPulse 2.4s ease-in-out infinite;
}
@keyframes heroLoadPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.86; transform: scale(1.05); }
}
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 235px;
  height: 72px;
  background: linear-gradient(135deg, rgba(3,3,6,0.96), rgba(3,3,6,0.98));
  pointer-events: none;
}
.hero-spline {
  position: absolute;
  inset: -7% -6% -5% -6%;
  z-index: 2;
  width: 112%;
  height: 112%;
  border: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero.is-spline-ready .hero-spline {
  opacity: 1;
}
.hero.is-returning .hero-spline {
  opacity: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  opacity: 0;
  transition: opacity 1600ms ease;
}
.hero-video.is-active { opacity: 0.86; }
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-robot-fallback {
  display: none;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 42%, transparent 0%, transparent 28%, rgba(3,3,6,0.24) 52%, rgba(3,3,6,0.86) 100%),
    linear-gradient(90deg, rgba(3,3,6,0.88) 0%, rgba(3,3,6,0.12) 44%, rgba(3,3,6,0.70) 100%),
    linear-gradient(180deg, rgba(3,3,6,0.22) 0%, transparent 46%, rgba(3,3,6,0.96) 100%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 64%);
  pointer-events: none;
}
.hero-card {
  position: absolute;
  right: clamp(48px, 6vw, 112px);
  top: calc(50% - 150px);
  bottom: auto;
  z-index: 4;
  display: grid;
  gap: 12px;
  width: min(285px, calc(100vw - 56px));
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(14,10,20,0.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 26px 100px rgba(0,0,0,0.34);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transition: transform 220ms cubic-bezier(0.16,1,0.3,1), border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.hero-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255,255,255,0.22);
  background: rgba(18,12,28,0.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 34px 120px rgba(124,58,237,0.20), 0 26px 100px rgba(0,0,0,0.40);
}
.hero-card img { width: 26px; height: 26px; object-fit: contain; }
.hero-card strong { font-size: 16px; }
.hero-card span { color: rgba(255,255,255,0.66); font-size: 13px; line-height: 1.55; }
.hero-content {
  position: absolute;
  left: clamp(48px, 6vw, 112px);
  top: calc(50% - 255px);
  z-index: 4;
  max-width: 560px;
  pointer-events: none;
}
.hero-ui {
  opacity: 0;
  transform: translateY(24px);
  animation: none;
}
.hero.is-hero-live .hero-ui {
  animation: heroUiIn 900ms cubic-bezier(0.16,1,0.3,1) both;
}
.skip-unlock .hero-ui,
.hero.is-returning .hero-ui {
  opacity: 1;
  transform: none;
  animation: none;
}
.unlock-lang {
  display: inline-flex;
  gap: 6px;
  margin-top: 20px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}
.unlock-lang a {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.56);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.unlock-lang a.is-active {
  background: var(--accent);
  color: white;
}
.unlock-lang a:hover:not(.is-active) { color: rgba(255,255,255,0.85); }
.lang-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(5,5,7,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
}
.lang-fab a {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.56);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.lang-fab a.is-active { background: var(--accent); color: white; }
.lang-fab a:hover:not(.is-active) { color: rgba(255,255,255,0.85); }
@media (max-width: 640px) {
  .lang-fab { right: 14px; bottom: 14px; }
  .lang-fab a { padding: 7px 12px; font-size: 11px; }
}
.kicker, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.68);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.03em; }
h1 {
  max-width: 560px;
  margin-top: 18px;
  font-size: clamp(46px, 5.1vw, 72px);
  line-height: 0.98;
  font-weight: 900;
}
.hero-copy {
  max-width: 500px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-actions a { pointer-events: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); border-color: rgba(124,58,237,0.9); color: white; }
.btn.ghost { background: rgba(255,255,255,0.055); color: var(--ink); backdrop-filter: blur(12px); }
.hero-proof {
  position: absolute;
  right: clamp(48px, 6vw, 112px);
  top: calc(50% + 36px);
  bottom: auto;
  z-index: 4;
  display: grid;
  gap: 10px;
  width: min(285px, calc(100vw - 56px));
  pointer-events: auto;
}
.hero-proof div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 16px;
  background: rgba(14,10,20,0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 18px 70px rgba(0,0,0,0.24);
  backdrop-filter: blur(18px);
  transition: transform 180ms cubic-bezier(0.16,1,0.3,1), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.hero-proof div:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.22);
  background: rgba(18,12,28,0.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 22px 80px rgba(124,58,237,0.18);
}
.hero-proof strong { font-size: 16px; }
.hero-proof span { color: var(--quiet); font-size: 13px; text-align: right; }
.section { padding: clamp(72px, 9vw, 132px) 28px; }
.section-inner { width: min(100%, var(--max)); margin: 0 auto; }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.16,1,0.3,1), transform 900ms cubic-bezier(0.16,1,0.3,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.tilt-card { transform-style: preserve-3d; will-change: transform; }
.tilt-card:hover { border-color: rgba(124,58,237,0.56); box-shadow: 0 18px 70px rgba(0,0,0,0.34); }
.intro-band { background: #07070b; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-intro {
  display: grid;
  grid-template-columns: 0.6fr 1.45fr 0.95fr;
  gap: 44px;
  align-items: start;
}
.split-intro h2, .section-head h2, .cms-layout h2, .about-layout h2, .contact-strip h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 900;
}
.split-intro p:last-child, .cms-layout p, .about-layout p, .contact-strip p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}
.section-head {
  display: grid;
  grid-template-columns: 0.65fr 1.4fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 38px;
}
.text-link {
  align-self: end;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.42);
  padding-bottom: 4px;
  white-space: nowrap;
}
.services-preview {
  position: relative;
  overflow: hidden;
  background: #07070d;
}
.services-spline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0.45;
  pointer-events: none;
}
.services-spline[src="about:blank"] {
  opacity: 0;
}
.services-spline-cover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #050507, rgba(5,5,7,0.42) 28%, rgba(5,5,7,0.62) 70%, #050507),
    linear-gradient(90deg, rgba(5,5,7,0.96), rgba(5,5,7,0.24), rgba(5,5,7,0.96));
  pointer-events: none;
}
.services-preview .section-inner {
  position: relative;
  z-index: 2;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.service-tile {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  transition: transform 110ms ease-out, border-color 130ms ease, box-shadow 130ms ease, background 130ms ease;
}
.service-tile::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.95), rgba(190,92,255,0.72), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 150ms ease;
}
.service-tile:hover::before { transform: scaleX(1); }
.service-tile.featured { background: rgba(255,255,255,0.045); border-color: var(--line); }
.service-tile span { color: var(--quiet); font-size: 13px; font-weight: 900; }
.service-tile h3 { font-size: 25px; line-height: 1.08; }
.service-tile p { color: var(--muted); line-height: 1.65; }
.services-pricing-note {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.services-pricing-note p {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}
.work-wrap {
  position: relative;
  background: var(--bg);
  z-index: 1;
  height: 320svh;
  padding: 0;
  overflow: visible;
}
.work-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 82%, #000 100%);
}
.work-stage {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  background: #000;
}
.work-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #000 0%, rgba(0,0,0,0.42) 18%, rgba(0,0,0,0.36) 58%, #000 100%),
    radial-gradient(circle at 50% 38%, rgba(124,58,237,0.16), transparent 34%),
    url("./pozadi.png") center center / cover no-repeat;
}
.work-head {
  display: none;
}
.work-head p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.work-head h2 {
  font-size: clamp(42px, 5.4vw, 88px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.gallery-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: none;
  mask-image: none;
}
.case-rail {
  position: absolute;
  z-index: 1;
  top: 43%;
  left: 0;
  display: flex;
  align-items: center;
  gap: clamp(44px, 6vw, 110px);
  transform: translate3d(var(--gallery-shift, 0px), -50%, 0);
  transition: transform 120ms linear;
  will-change: transform;
}
.case-card {
  position: relative;
  flex: none;
  display: block;
  width: clamp(300px, 26vw, 460px);
  height: clamp(380px, 56vh, 610px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0.28;
  transform: scale(0.9);
  transition: opacity 260ms ease, transform 260ms ease, filter 260ms ease;
}
.case-card.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  box-shadow: none;
}
.case-card::after {
  content: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 20%, rgba(0,0,0,0.5) 100%);
  opacity: 0.9;
}
.case-card-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
  filter: brightness(0.58) saturate(0.86) contrast(1.04);
  transition: filter 520ms ease;
}
.case-card[data-case="1"] .case-card-photo {
  object-fit: contain;
  object-position: center center;
}
.case-card.active .case-card-photo { filter: brightness(0.82) saturate(0.96) contrast(1.05); }
.case-card:not(.active) .case-card-photo { filter: brightness(0.4) saturate(0.72); }
.work-stage[data-active="0"] .case-card[data-case="2"],
.work-stage[data-active="2"] .case-card[data-case="0"] {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
}
.gallery-frame .case-card-body {
  display: none;
}
.gallery-caption {
  position: absolute;
  z-index: 5;
  left: 50%;
  right: auto;
  top: auto;
  bottom: clamp(44px, 7vh, 82px);
  width: min(620px, calc(100% - 48px));
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 180ms ease, transform 260ms ease;
}
.work-stage[data-active="2"] .gallery-caption {
  right: auto;
  left: 50%;
}
.gallery-controls { display: none; }
.gallery-arrow, .gallery-dots { display: none; }
.case-card p { color: rgba(255,255,255,0.58); font-size: 11px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.case-card h3 { margin-top: 10px; font-size: clamp(34px, 4.2vw, 56px); line-height: 0.98; }
.case-card span { display: block; margin-top: 14px; max-width: 560px; color: rgba(255,255,255,0.68); line-height: 1.68; }
.gallery-caption p { color: rgba(255,255,255,0.58); font-size: 12px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.gallery-caption h3 { margin-top: 10px; font-size: clamp(36px, 4.4vw, 64px); line-height: 0.98; }
.gallery-caption span { display: block; margin: 14px auto 0; max-width: 560px; color: rgba(255,255,255,0.68); line-height: 1.7; }
.gallery-caption .case-stats { justify-content: center; }
.case-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; font-size: 15px; }
.case-stats strong {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
}
.case-stats-icons strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.stat-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
  color: rgba(176,108,255,0.92);
}
.stat-subs::before,
.stat-subs::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 999px;
}
.stat-subs::before {
  left: 6px;
  top: 1px;
  width: 7px;
  height: 7px;
}
.stat-subs::after {
  left: 2px;
  bottom: 1px;
  width: 14px;
  height: 8px;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}
.stat-views {
  border: 2px solid currentColor;
  border-radius: 999px 0;
  transform: rotate(45deg) scale(0.9);
}
.stat-views::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.stat-videos {
  border: 2px solid currentColor;
  border-radius: 5px;
}
.stat-videos::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  border-left: 6px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.cms-section, .process-section, .contact-strip, .footer { position: relative; z-index: 4; }
.cms-section {
  --cms-spline-scale: 0.68;
  background:
    radial-gradient(circle at 28% 48%, rgba(124,58,237,0.12), transparent 34%),
    #090810;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: clamp(48px, 6vw, 78px) 28px;
}
.cms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
  min-height: min(760px, 78svh);
}
.cms-layout h2 { margin-top: 28px; line-height: 1.08; }
.cms-copy h2 { max-width: 540px; }
.cms-layout p { margin: 28px 0 28px; max-width: 520px; }
.cms-device {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(124,58,237,0.24), rgba(176,108,255,0.08)),
    rgba(255,255,255,0.05);
  box-shadow: 0 28px 90px rgba(0,0,0,0.44);
}
.cms-phone-scene {
  min-height: min(690px, 74svh);
  border: 0;
  background:
    radial-gradient(circle at 48% 48%, rgba(124,58,237,0.34), transparent 34%),
    radial-gradient(circle at 34% 68%, rgba(176,108,255,0.12), transparent 28%);
  box-shadow: none;
  overflow: visible;
  display: grid;
  place-items: center;
  perspective: 1200px;
  align-self: center;
}
.cms-phone-scene::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: min(520px, 72%);
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(124,58,237,0.28), transparent 68%);
  filter: blur(18px);
}
.cms-orbit {
  position: absolute;
  inset: 12% 8% 8% 10%;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 44% 56% 48% 52%;
  transform: rotate(-18deg);
  box-shadow: 0 0 90px rgba(124,58,237,0.18), inset 0 0 80px rgba(176,108,255,0.06);
  animation: orbitPulse 7s ease-in-out infinite;
}
.cms-phone {
  position: relative;
  z-index: 2;
  width: min(286px, 46vw);
  aspect-ratio: 9 / 19.3;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.28), transparent 17%),
    linear-gradient(180deg, #08080b, #15121d 52%, #050507);
  box-shadow:
    inset 0 0 0 8px #07070a,
    inset 0 0 0 9px rgba(255,255,255,0.12),
    inset 0 -16px 34px rgba(255,255,255,0.045),
    0 34px 110px rgba(0,0,0,0.58),
    0 0 90px rgba(124,58,237,0.28);
  transform: rotateY(-12deg) rotateX(4deg) rotateZ(-1deg);
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.cms-phone-scene:hover .cms-phone {
  transform: rotateY(-5deg) rotateX(2deg) rotateZ(0deg) translateY(-8px);
  box-shadow:
    inset 0 0 0 8px #07070a,
    inset 0 0 0 9px rgba(255,255,255,0.13),
    inset 0 -16px 34px rgba(255,255,255,0.05),
    0 44px 120px rgba(0,0,0,0.62),
    0 0 110px rgba(124,58,237,0.38);
}
.cms-phone-glass {
  position: absolute;
  inset: 13px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 16%, rgba(124,58,237,0.32), transparent 22%),
    radial-gradient(circle at 58% 8%, rgba(190,92,255,0.28), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 28%),
    #050507;
  overflow: hidden;
}
.cms-phone-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 28%, rgba(255,255,255,0.14) 36%, transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 30%);
  opacity: 0.75;
}
.cms-island {
  position: absolute;
  left: 50%;
  top: 24px;
  z-index: 4;
  width: 86px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #020203;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.cms-screen {
  position: absolute;
  z-index: 3;
  inset: 76px 30px 38px;
  display: grid;
  align-content: start;
  gap: 11px;
  color: white;
}
.cms-screen img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin: 0 auto 4px;
}
.cms-screen span {
  color: rgba(255,255,255,0.58);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
}
.cms-screen h3 {
  margin: 0 0 10px;
  font-size: 21px;
  text-align: center;
}
.cms-screen label {
  display: grid;
  gap: 5px;
  color: rgba(255,255,255,0.46);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cms-screen input {
  width: 100%;
  height: 37px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font: inherit;
  font-size: 12px;
  padding: 0 11px;
}
.cms-screen button {
  height: 40px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9 58%, #4c1d95);
  color: white;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
}
.cms-screen small {
  margin-top: 8px;
  color: rgba(255,255,255,0.36);
  font-size: 10px;
  text-align: center;
}
.cms-floating-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  background: rgba(11,10,18,0.64);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(0,0,0,0.30);
}
.cms-floating-card strong { font-size: 24px; }
.cms-floating-card span { color: rgba(255,255,255,0.58); font-size: 12px; }
.cms-floating-card-a {
  left: 6%;
  top: 30%;
  animation: floatSoft 5s ease-in-out infinite;
}
.cms-floating-card-b {
  right: 7%;
  bottom: 23%;
  animation: floatSoft 5.8s ease-in-out 600ms infinite;
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.spline-device {
  min-height: min(760px, 78svh);
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  align-self: end;
}
.spline-device iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(var(--cms-spline-scale));
  transform-origin: center center;
  border: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 500ms ease;
}
.cms-copy {
  align-self: center;
  padding-bottom: 0;
}
.spline-device.is-loaded iframe {
  opacity: 1;
}
.spline-device-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 32px;
  background: transparent;
  pointer-events: none;
  transition: opacity 500ms ease;
}
.spline-watermark-cover {
  position: absolute;
  left: clamp(132px, 26%, 190px);
  bottom: clamp(88px, 15%, 128px);
  z-index: 3;
  width: 172px;
  height: 52px;
  border-radius: 14px;
  background: #090810;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}
.spline-device.is-loaded .spline-watermark-cover { opacity: 1; }
.spline-device.is-loaded .spline-device-fallback {
  opacity: 0;
}
.spline-device-fallback img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  opacity: 0.45;
  filter: grayscale(1) brightness(1.25);
}
.spline-device-fallback span {
  display: flex;
  justify-content: center;
  width: min(360px, 100%);
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.device-orbit {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -62px;
  top: -64px;
  border-radius: 999px;
  border: 1px solid rgba(176,108,255,0.28);
  box-shadow: 0 0 80px rgba(124,58,237,0.32);
  animation: orbitPulse 5s ease-in-out infinite;
}
@keyframes orbitPulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.95; }
}
.device-top { display: flex; gap: 7px; padding-bottom: 28px; }
.device-top span { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,0.28); }
.device-row, .device-cards span {
  display: block;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.09);
}
.device-row.wide { height: 84px; margin-bottom: 14px; background: rgba(124,58,237,0.22); }
.device-row.short { width: 58%; margin-top: 14px; }
.device-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.device-cards span { height: 140px; }
.process-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.process-line article { padding: 26px 22px 0 0; }
.process-line span { color: var(--accent); font-weight: 900; }
.process-line h3 { margin-top: 18px; font-size: 26px; }
.process-line p { margin-top: 12px; color: var(--muted); line-height: 1.65; }
.faq-list {
  max-width: 860px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  position: relative;
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  padding: 4px 26px;
  overflow: hidden;
  transition: border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}
.faq-item:hover {
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.04);
}
.faq-item[open] {
  border-color: rgba(176,108,255,0.30);
  border-left-color: var(--accent);
  background: rgba(124,58,237,0.08);
  box-shadow: 0 18px 60px rgba(76,29,149,0.16);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  color: rgba(255,255,255,0.94);
  outline-offset: 6px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-index {
  flex: none;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: color 240ms ease;
}
.faq-item[open] .faq-index { color: #c4b5fd; }
.faq-q {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  color: rgba(255,255,255,0.72);
  transition: transform 280ms cubic-bezier(0.16,1,0.3,1), background 240ms ease, border-color 240ms ease, color 240ms ease;
}
.faq-item[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
  background: rgba(176,108,255,0.16);
  border-color: rgba(176,108,255,0.34);
  color: #c4b5fd;
}
.faq-item p {
  margin: -4px 0 24px 32px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  max-width: 680px;
}
@media (max-width: 980px) {
  .faq-item { padding: 4px 18px; }
  .faq-item summary { gap: 14px; padding: 18px 0; }
  .faq-q { font-size: 15.5px; }
  .faq-item p { font-size: 14.5px; margin-left: 0; }
}
.about-tease { background: #07070b; }
.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: start;
}
.about-layout p { margin-bottom: 24px; }
.contact-strip {
  width: min(calc(100% - 56px), var(--max));
  margin: 0 auto clamp(72px, 8vw, 110px);
  padding: clamp(42px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 42px;
  align-items: center;
  border: 1px solid rgba(124,58,237,0.38);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(124,58,237,0.22), rgba(176,108,255,0.08)),
    rgba(255,255,255,0.045);
}
.brief-builder {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
}
.brief-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 18%, rgba(176,108,255,0.14), transparent 36%),
    rgba(5,5,10,0.52);
  box-shadow: 0 22px 90px rgba(0,0,0,0.32);
}
.brief-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.brief-progress span {
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}
.brief-progress span:first-child { background: var(--accent); }
.brief-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.brief-row small {
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brief-row strong { text-align: right; }
.brief-options, .brief-budget {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 4px;
}
.brief-budget { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.brief-options button, .brief-budget button {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.76);
  font-size: 12px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}
.brief-options button:hover, .brief-budget button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.28); color: white; }
.brief-options button.is-selected, .brief-budget button.is-selected {
  border-color: rgba(124,58,237,0.8);
  background: rgba(124,58,237,0.22);
  color: white;
}
.brief-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.brief-panel .contact-actions { margin-top: 6px; }
.contact-strip h2 { margin-top: 12px; max-width: 720px; }
.contact-strip p { margin-top: 18px; max-width: 520px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.footer {
  width: min(calc(100% - 56px), var(--max));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) 0 34px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: var(--quiet);
  font-size: 13px;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) 0.55fr 0.72fr minmax(230px, 0.8fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}
.footer-brand {
  display: grid;
  gap: 18px;
  max-width: 430px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.footer-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.footer-brand p {
  color: rgba(255,255,255,0.64);
  line-height: 1.75;
  text-wrap: pretty;
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  transition: transform 150ms ease, border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.footer-socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,0.58);
  background: rgba(124,58,237,0.16);
  color: white;
}
.footer-links,
.footer-contact {
  display: grid;
  gap: 12px;
}
.footer-links strong,
.footer-contact strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-links a,
.footer-contact a,
.footer-links span,
.footer-contact span {
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  line-height: 1.45;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: white;
}
.footer-cta {
  width: fit-content;
  margin-top: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(124,58,237,0.58);
  border-radius: 8px;
  background: rgba(124,58,237,0.18);
  color: white !important;
  font-weight: 900;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(38px, 5vw, 58px);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.footer-bottom a { color: inherit; text-decoration: none; opacity: 0.8; }
.footer-bottom a:hover { opacity: 1; text-decoration: underline; }
.subpage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -16%, rgba(124,58,237,0.18), transparent 34rem),
    #050507;
}
.subpage-hero {
  position: relative;
  overflow: hidden;
  min-height: 70svh;
  display: flex;
  align-items: flex-end;
  padding: 174px 28px clamp(78px, 9vw, 128px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(120deg, rgba(124,58,237,0.20), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.045), transparent 36%),
    #050507;
}
.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.042) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.042) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
  opacity: 0.22;
  pointer-events: none;
}
.sharp-beam {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(124,58,237,0.92), rgba(176,108,255,0.32));
  box-shadow: 0 0 90px rgba(124,58,237,0.22);
}
.beam-a {
  right: max(24px, calc((100vw - var(--max)) / 2));
  top: 112px;
  width: min(430px, 34vw);
  height: 340px;
  clip-path: polygon(18% 0, 100% 12%, 76% 100%, 0 82%);
  opacity: 0.62;
}
.beam-b {
  right: max(18px, calc((100vw - var(--max)) / 2 + 250px));
  bottom: 70px;
  width: min(360px, 28vw);
  height: 96px;
  clip-path: polygon(0 24%, 100% 0, 86% 100%, 10% 78%);
  background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(124,58,237,0.36), transparent);
  opacity: 0.72;
}
.about-subhero .beam-a {
  clip-path: polygon(0 12%, 74% 0, 100% 100%, 22% 78%);
}
.services-traffic-hero {
  min-height: 100svh;
  align-items: center;
  padding-top: 168px;
  padding-bottom: clamp(70px, 8vw, 118px);
  background: #050507;
}
.services-traffic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 36%, rgba(176,108,255,0.18), transparent 28%),
    radial-gradient(circle at 18% 60%, rgba(124,58,237,0.16), transparent 34%),
    linear-gradient(118deg, transparent 14%, rgba(176,108,255,0.09) 43%, transparent 64%);
  mix-blend-mode: screen;
  opacity: 0.72;
}
.services-traffic-hero::after {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(5,5,7,0.98) 0%, rgba(5,5,7,0.76) 33%, rgba(5,5,7,0.30) 63%, rgba(5,5,7,0.58) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.22), transparent 34%, rgba(5,5,7,0.70)),
    radial-gradient(circle at 100% 100%, rgba(5,5,7,0.98) 0 13%, rgba(5,5,7,0.58) 25%, transparent 44%),
    repeating-linear-gradient(90deg, rgba(196,145,255,0.026) 0 1px, transparent 1px 8px);
  background-size: auto;
  mask-image: none;
  opacity: 1;
}
.services-traffic-hero .subpage-hero-inner {
  z-index: 5;
  transform: translateY(20px);
}
.services-traffic-hero h1 {
  max-width: 820px;
  text-shadow: 0 22px 78px rgba(0,0,0,0.74);
}
.services-traffic-hero p {
  max-width: 610px;
  color: rgba(255,255,255,0.74);
  text-shadow: 0 12px 34px rgba(0,0,0,0.78);
}
.services-traffic-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #050507;
}
.services-traffic-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 28%, rgba(130,66,255,0.34), transparent 18%),
    radial-gradient(circle at 78% 50%, rgba(196,145,255,0.20), transparent 20%),
    radial-gradient(circle at 68% 72%, rgba(87,39,168,0.26), transparent 24%),
    linear-gradient(115deg, rgba(5,5,7,0.98) 0%, rgba(16,8,27,0.95) 47%, rgba(5,5,7,0.98) 100%),
    repeating-linear-gradient(90deg, rgba(196,145,255,0.035) 0 1px, transparent 1px 8px);
  opacity: 1;
  transition: opacity 900ms ease;
}
.services-traffic-scene.is-loaded::before {
  opacity: 0.22;
}
.services-video-scene::before {
  z-index: 1;
  background:
    radial-gradient(circle at 68% 38%, rgba(176,108,255,0.16), transparent 28%),
    linear-gradient(115deg, rgba(5,5,7,0.20), rgba(5,5,7,0.04) 48%, rgba(5,5,7,0.30));
  mix-blend-mode: screen;
}
.services-traffic-scene iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease;
}
.services-traffic-scene.is-loaded iframe {
  opacity: 1;
}
.services-traffic-scene video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  filter: saturate(0.92) hue-rotate(18deg) brightness(0.68) contrast(1.12);
  transform: scale(1.03);
}
.services-traffic-loader {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 6vh, 64px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(5,5,7,0.58);
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  box-shadow: 0 18px 80px rgba(0,0,0,0.38);
  backdrop-filter: blur(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.services-traffic-loader::after {
  content: "";
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(176,108,255,0.96), transparent);
  animation: loaderPulse 1.1s ease-in-out infinite;
}
.services-traffic-loader img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.services-traffic-scene.is-loaded .services-traffic-loader {
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.34; transform: scaleX(0.62); }
  50% { opacity: 1; transform: scaleX(1); }
}
.services-traffic-watermark {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 280px;
  height: 112px;
  pointer-events: none;
  background:
    radial-gradient(circle at 100% 100%, #050507 0 45%, rgba(5,5,7,0.90) 62%, rgba(5,5,7,0.34) 78%, transparent 100%),
    linear-gradient(135deg, transparent 0 34%, rgba(5,5,7,0.54) 58%, #050507 100%);
}
.about-train-hero {
  min-height: 100svh;
  align-items: center;
  padding-top: 168px;
  padding-bottom: clamp(70px, 8vw, 118px);
  background: #050507;
}
.about-train-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 28%, rgba(196,145,255,0.18), transparent 26%),
    radial-gradient(circle at 50% 74%, rgba(124,58,237,0.14), transparent 36%),
    linear-gradient(116deg, transparent 18%, rgba(176,108,255,0.10) 40%, rgba(124,58,237,0.04) 49%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0.58;
}
.about-train-hero::after {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(5,5,7,0.98) 0%, rgba(5,5,7,0.74) 31%, rgba(18,9,33,0.30) 62%, rgba(5,5,7,0.44) 100%),
    linear-gradient(180deg, rgba(13,7,23,0.06), rgba(5,5,7,0.66)),
    radial-gradient(circle at 58% 42%, transparent 0 36%, rgba(0,0,0,0.30) 78%),
    repeating-linear-gradient(90deg, rgba(196,145,255,0.030) 0 1px, transparent 1px 8px);
  background-size: auto;
  mask-image: none;
  opacity: 1;
}
.about-train-hero .subpage-hero-inner {
  z-index: 5;
  transform: translateY(24px);
}
.about-train-hero h1 {
  max-width: 780px;
  text-shadow: 0 20px 70px rgba(0,0,0,0.68);
}
.about-train-hero p {
  max-width: 590px;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 12px 34px rgba(0,0,0,0.74);
}
.about-hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #050507;
}
.about-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  filter: saturate(0.92) hue-rotate(10deg) brightness(0.82) contrast(1.12);
  transform: scale(1.03);
}
.about-hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(124,58,237,0.10), transparent 28%, rgba(176,108,255,0.08) 68%, transparent),
    linear-gradient(135deg, transparent 0 43%, rgba(176,108,255,0.08) 48%, transparent 55%);
  mix-blend-mode: color-dodge;
  opacity: 0.24;
}
.about-hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), transparent 18%),
    repeating-linear-gradient(0deg, rgba(196,145,255,0.030) 0 1px, transparent 1px 5px);
  opacity: 0.58;
}
.contact-subhero .beam-a {
  height: 310px;
  clip-path: polygon(12% 0, 100% 0, 88% 72%, 0 100%);
}
.contact-video-hero {
  min-height: 92svh;
  align-items: center;
  background: #050507;
}
.contact-video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 36%, rgba(176,108,255,0.16), transparent 30%),
    linear-gradient(116deg, transparent 16%, rgba(124,58,237,0.10) 48%, transparent 66%);
  mix-blend-mode: screen;
  opacity: 0.62;
}
.contact-video-hero::after {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(5,5,7,0.96) 0%, rgba(5,5,7,0.72) 34%, rgba(5,5,7,0.34) 68%, rgba(5,5,7,0.58) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.18), transparent 42%, rgba(5,5,7,0.76)),
    repeating-linear-gradient(90deg, rgba(196,145,255,0.026) 0 1px, transparent 1px 8px);
  background-size: auto;
  mask-image: none;
  opacity: 1;
}
.contact-video-hero .subpage-hero-inner {
  z-index: 5;
  transform: translateY(22px);
}
.contact-video-hero h1,
.contact-video-hero p {
  text-shadow: 0 20px 70px rgba(0,0,0,0.74);
}
.contact-hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #050507;
}
.contact-hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 38%, rgba(130,66,255,0.28), transparent 26%),
    radial-gradient(circle at 78% 70%, rgba(196,145,255,0.14), transparent 30%),
    linear-gradient(125deg, #050507 0%, #10091c 52%, #050507 100%);
  transition: opacity 900ms ease;
}
.contact-hero-video.is-loaded::before {
  opacity: 0.16;
}
.contact-hero-video .contact-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  filter: saturate(0.86) hue-rotate(24deg) brightness(0.58) contrast(1.16);
  transform: scale(1.04);
  opacity: 0;
  transition: opacity 1800ms ease;
}
.contact-hero-video .contact-video.is-active {
  opacity: 1;
}
.subpage-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
}
.subpage-hero h1 {
  max-width: 880px;
  margin-top: 18px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.01;
}
.subpage-hero p {
  max-width: 650px;
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.82;
  font-size: 17px;
}
.legal-hero { min-height: 42svh; }
.legal-content {
  position: relative;
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 70px 0 120px;
}
.legal-content h2 {
  margin-top: 48px;
  font-size: clamp(22px, 3vw, 28px);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
  margin-top: 14px;
}
.legal-content ul { padding-left: 20px; }
.legal-content strong { color: var(--ink); }
.legal-content a { color: var(--accent-2); }
.legal-updated {
  color: var(--quiet);
  font-size: 13px;
  margin-top: 10px;
}
.hero-signal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
  margin-top: 34px;
}
.hero-signal-stack span {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-signal-stack span::after {
  content: "";
  position: absolute;
  inset: auto 12px 8px 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176,108,255,0.85), transparent);
  transform: scaleX(0);
  animation: signalPulse 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 160ms);
}
.hero-signal-stack span:nth-child(2) { --i: 1; }
.hero-signal-stack span:nth-child(3) { --i: 2; }
.hero-signal-stack span:nth-child(4) { --i: 3; }
@keyframes signalPulse {
  0%, 52%, 100% { transform: scaleX(0); opacity: 0; }
  18%, 36% { transform: scaleX(1); opacity: 1; }
}
.service-lab-section,
.identity-section,
.contact-brief-section,
.service-package-section,
.principles-section,
.process-ribbon,
.contact-media-note {
  width: min(calc(100% - 56px), var(--max));
  margin: clamp(70px, 9vw, 118px) auto;
}
.service-lab-copy,
.identity-copy,
.contact-explain {
  max-width: 760px;
  margin-bottom: 34px;
}
.service-lab-copy h2,
.identity-copy h2,
.contact-explain h2,
.package-card h2,
.contact-media-note h2 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.06;
}
.service-lab-copy p:last-child,
.identity-copy p,
.contact-explain p,
.package-card p,
.contact-media-note p {
  margin-top: 18px;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}
.service-lab-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.78fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: stretch;
}
.service-selector {
  display: grid;
  gap: 12px;
}
.service-option {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 130px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 42%),
    rgba(255,255,255,0.04);
  cursor: pointer;
  transition: transform 130ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.service-option::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(176,108,255,0.96), transparent);
  opacity: 0;
  transform: scaleY(0.28);
  transition: opacity 160ms ease, transform 220ms cubic-bezier(.16,1,.3,1);
}
.service-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 42%, rgba(176,108,255,0.10), transparent 58% 100%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}
.service-option:hover,
.service-option:focus-visible,
.service-option.is-active {
  transform: translateY(-2px);
  border-color: rgba(176,108,255,0.52);
  background:
    linear-gradient(135deg, rgba(124,58,237,0.16), transparent 46%),
    rgba(255,255,255,0.055);
  box-shadow: 0 18px 52px rgba(0,0,0,0.22);
  outline: none;
}
.service-option:hover::before,
.service-option:focus-visible::before,
.service-option.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}
.service-option:hover::after,
.service-option:focus-visible::after,
.service-option.is-active::after {
  opacity: 1;
  animation: serviceSweep 850ms cubic-bezier(.16,1,.3,1) both;
}
.service-option span {
  color: var(--accent-2);
  font-weight: 900;
}
.service-option h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}
.service-option p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.58;
}
.service-option strong {
  color: white;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}
.service-visual {
  position: sticky;
  top: 112px;
  min-height: 564px;
  display: grid;
  align-content: space-between;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 52% 42%, rgba(124,58,237,0.18), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,0.07), transparent),
    rgba(255,255,255,0.04);
  overflow: hidden;
}
.shape-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  perspective: 900px;
}
.shape-stage::before {
  content: "";
  position: absolute;
  inset: 7% 4% 16%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(176,108,255,0.30), transparent 56%),
    conic-gradient(from 180deg, transparent, rgba(124,58,237,0.24), transparent 36%, rgba(176,108,255,0.16), transparent 72%);
  filter: blur(20px);
  animation: visualCore 8s ease-in-out infinite;
}
.shape-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 44%, black, transparent 72%);
  opacity: 0.46;
  animation: gridDrift 12s linear infinite;
}
.artifact {
  position: absolute;
  z-index: 3;
  opacity: 0;
  transform: translateY(22px) rotateX(8deg) scale(0.92);
  filter: blur(6px);
  transition: opacity 220ms ease, transform 520ms cubic-bezier(0.16,1,0.3,1), filter 360ms ease;
}
.artifact-web {
  width: 292px;
  height: 196px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent),
    rgba(8,7,14,0.78);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  box-shadow: 0 26px 80px rgba(0,0,0,0.38);
}
.artifact-web::before,
.artifact-web::after {
  content: "";
  position: absolute;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
}
.artifact-web::before {
  right: 18px;
  top: 18px;
  width: 66px;
  height: 66px;
  background: linear-gradient(135deg, rgba(176,108,255,0.38), rgba(255,255,255,0.06));
}
.artifact-web::after {
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 42px;
  background: linear-gradient(90deg, rgba(124,58,237,0.20), rgba(255,255,255,0.07), rgba(176,108,255,0.16));
}
.artifact-web span {
  display: block;
  height: 18px;
  margin-bottom: 12px;
  border-radius: 5px;
  background: rgba(255,255,255,0.12);
}
.artifact-web span:first-child {
  width: 54%;
  height: 42px;
  background: linear-gradient(90deg, rgba(124,58,237,0.68), rgba(176,108,255,0.18));
}
.artifact-web span:nth-child(2) { width: 88%; }
.artifact-web span:nth-child(3) { width: 64%; }
.artifact-video {
  width: 316px;
  min-height: 192px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 8px;
  padding: 18px 18px 34px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent),
    rgba(7,6,12,0.76);
  transform: translateY(22px) rotate(-3deg) scale(0.92);
}
.artifact-video i {
  display: block;
  height: var(--h, 134px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(176,108,255,0.34), transparent 48%),
    rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}
.artifact-video i:nth-child(2) { --h: 154px; }
.artifact-video i:nth-child(3) { --h: 112px; }
.artifact-video i:nth-child(4) { --h: 144px; }
.artifact-video b {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}
.artifact-video b::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #b06cff;
  box-shadow: 0 0 28px rgba(176,108,255,0.76);
  transform: translateY(-50%);
  animation: timelinePlay 2.8s ease-in-out infinite;
}
.artifact-brand {
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(176,108,255,0.32), transparent 56%),
    linear-gradient(135deg, rgba(124,58,237,0.34), rgba(255,255,255,0.05));
  animation: brandPrism 7s ease-in-out infinite;
}
.artifact-brand img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(124,58,237,0.42));
}
.artifact-app {
  width: 286px;
  min-height: 218px;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent),
    rgba(7,6,12,0.76);
  box-shadow: 0 26px 80px rgba(0,0,0,0.36);
}
.artifact-app span {
  position: relative;
  min-height: 70px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255,255,255,0.075);
}
.artifact-app span:first-child {
  grid-row: span 2;
  background:
    linear-gradient(180deg, rgba(124,58,237,0.34), rgba(255,255,255,0.06)),
    rgba(255,255,255,0.05);
}
.artifact-app span::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 16px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  box-shadow: 0 18px 0 rgba(255,255,255,0.09), 0 36px 0 rgba(176,108,255,0.22);
}
.artifact-app i {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b06cff;
  box-shadow: 0 0 28px rgba(176,108,255,0.86);
  animation: statusPulse 1.8s ease-in-out infinite;
}
.service-visual[data-service-visual="web"] .artifact-web,
.service-visual[data-service-visual="video"] .artifact-video,
.service-visual[data-service-visual="brand"] .artifact-brand,
.service-visual[data-service-visual="app"] .artifact-app {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) rotateX(0deg) scale(1);
}
.service-visual[data-service-visual="video"] .artifact-video {
  transform: translateY(0) rotate(-3deg) scale(1);
}
.service-visual[data-service-visual="web"] .artifact-web { animation: artifactFloat 5s ease-in-out infinite; }
.service-visual[data-service-visual="video"] .artifact-video { animation: artifactFloat 5s ease-in-out infinite, timelineTilt 3.8s ease-in-out infinite; }
.service-visual[data-service-visual="brand"] .artifact-brand { animation: artifactFloat 5s ease-in-out infinite, brandPrism 7s ease-in-out infinite; }
.service-visual[data-service-visual="app"] .artifact-app { animation: artifactFloat 5s ease-in-out infinite; }
@keyframes serviceSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes visualCore {
  0%, 100% { transform: rotate(0deg) scale(0.96); opacity: 0.62; }
  50% { transform: rotate(10deg) scale(1.04); opacity: 0.94; }
}
@keyframes gridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 38px 38px, 38px 38px; }
}
@keyframes artifactFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes timelineTilt {
  0%, 100% { rotate: 0deg; }
  50% { rotate: 1.4deg; }
}
@keyframes timelinePlay {
  0%, 100% { left: 0; }
  50% { left: calc(100% - 18px); }
}
@keyframes brandPrism {
  0%, 100% { filter: drop-shadow(0 24px 70px rgba(124,58,237,0.22)); }
  50% { filter: drop-shadow(0 34px 94px rgba(176,108,255,0.38)); }
}
@keyframes statusPulse {
  0%, 100% { transform: scale(0.78); opacity: 0.62; }
  50% { transform: scale(1.16); opacity: 1; }
}
.visual-caption {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.visual-caption span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.visual-caption strong {
  max-width: 340px;
  font-size: 28px;
  line-height: 1.12;
}
.service-package-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 16px;
}
.package-card,
.package-points div,
.principles-section article,
.contact-method-grid a,
.contact-method-grid div,
.contact-media-note,
.process-ribbon {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.065), transparent 42%),
    rgba(255,255,255,0.04);
}
.package-card { padding: clamp(30px, 5vw, 54px); }
.package-points {
  display: grid;
  gap: 12px;
}
.package-points div,
.principles-section article {
  padding: 26px;
}
.package-points span,
.principles-section span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}
.package-points strong,
.principles-section h3 {
  display: block;
  margin-top: 16px;
  font-size: 27px;
  line-height: 1.14;
}
.package-points p,
.principles-section p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.identity-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.76fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
}
.logo-scene {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.logo-scene-open {
  border: 0;
  background: transparent;
}
.logo-scene::before,
.logo-scene::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 92px;
  background: linear-gradient(90deg, transparent, rgba(176,108,255,0.28), transparent);
  transform: rotate(-22deg);
}
.logo-scene::after {
  transform: rotate(28deg);
  opacity: 0.55;
}
.logo-scene img {
  position: relative;
  z-index: 2;
  width: min(220px, 44vw);
  height: auto;
  filter: drop-shadow(0 28px 70px rgba(124,58,237,0.34));
  transform: translate3d(var(--cursor-x, 0), var(--cursor-y, 0), 0) rotateX(var(--cursor-rx, 0deg)) rotateY(var(--cursor-ry, 0deg));
  transition: transform 180ms ease;
  animation: logoHoverDrift 5.4s ease-in-out infinite;
}
.logo-prism {
  position: absolute;
  inset: 17% 14%;
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(14% 0, 100% 18%, 84% 100%, 0 72%);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 42%);
}
.logo-scene span {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@keyframes logoHoverDrift {
  0%, 100% { filter: drop-shadow(0 28px 70px rgba(124,58,237,0.34)); }
  50% { filter: drop-shadow(0 34px 88px rgba(176,108,255,0.46)); }
}
.train-cabin-scene {
  position: relative;
  min-height: clamp(520px, 58vw, 700px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 64% 34%, rgba(176,108,255,0.24), transparent 30%),
    radial-gradient(circle at 18% 72%, rgba(124,58,237,0.22), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.045), transparent 38%),
    #050408;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 36px 120px rgba(0,0,0,0.42);
  clip-path: polygon(0 7%, 100% 0, 96% 92%, 8% 100%);
}
.train-cabin-scene::before,
.train-cabin-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.train-cabin-scene::before {
  background:
    linear-gradient(90deg, rgba(5,4,8,0.92), transparent 28%, transparent 68%, rgba(5,4,8,0.84)),
    radial-gradient(circle at 50% 52%, transparent 28%, rgba(0,0,0,0.52) 74%);
  mix-blend-mode: multiply;
}
.train-cabin-scene::after {
  background:
    linear-gradient(115deg, transparent 14%, rgba(176,108,255,0.14) 35%, transparent 53%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 7px);
  opacity: 0.48;
}
.train-cabin-scene canvas {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  opacity: 0;
  transform: scale(1.06);
  filter: saturate(0.42) hue-rotate(36deg) brightness(0.55) contrast(1.16);
  transition: opacity 900ms ease, transform 1400ms cubic-bezier(.16,1,.3,1);
  z-index: 1;
}
.train-cabin-scene.is-loaded canvas {
  opacity: 0.92;
  transform: scale(1);
}
.train-cabin-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 500ms ease;
}
.train-cabin-fallback img {
  width: 92px;
  filter: drop-shadow(0 24px 70px rgba(176,108,255,0.48));
  animation: logoHoverDrift 4s ease-in-out infinite;
}
.train-cabin-scene.is-loaded .train-cabin-fallback {
  opacity: 0;
  pointer-events: none;
}
.train-cabin-logo {
  position: absolute;
  left: clamp(22px, 4vw, 44px);
  bottom: clamp(22px, 4vw, 42px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(8,7,13,0.5);
  color: rgba(255,255,255,0.66);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
}
.train-cabin-logo img {
  width: 22px;
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(176,108,255,0.44));
  transform: translate3d(var(--cursor-x, 0), var(--cursor-y, 0), 0) rotateX(var(--cursor-rx, 0deg)) rotateY(var(--cursor-ry, 0deg));
  transition: transform 180ms ease;
}
.train-cabin-scene.is-error .train-cabin-fallback span {
  color: rgba(255,255,255,0.78);
}
.train-cabin-hero {
  position: absolute;
  inset: 0;
  min-height: 100%;
  clip-path: none;
  box-shadow: none;
  background:
    radial-gradient(circle at 72% 42%, rgba(176,108,255,0.22), transparent 34%),
    radial-gradient(circle at 20% 4%, rgba(124,58,237,0.22), transparent 42%),
    #050507;
}
.train-cabin-hero::before {
  background:
    radial-gradient(circle at 70% 50%, transparent 0 36%, rgba(5,5,7,0.08) 58%, rgba(5,5,7,0.46) 92%),
    linear-gradient(90deg, rgba(5,5,7,0.92), rgba(5,5,7,0.30) 42%, rgba(5,5,7,0) 70%, rgba(5,5,7,0.22));
  mix-blend-mode: normal;
}
.train-cabin-hero::after {
  background:
    linear-gradient(118deg, transparent 12%, rgba(176,108,255,0.13) 32%, transparent 54%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.026) 0 1px, transparent 1px 5px);
  opacity: 0.34;
}
.train-cabin-hero canvas {
  inset: -10% -5% -8% -2%;
  width: 112%;
  height: 118%;
  filter: saturate(0.46) hue-rotate(38deg) brightness(0.86) contrast(1.16);
}
.train-cabin-hero .train-cabin-fallback {
  right: clamp(28px, 8vw, 150px);
  left: auto;
  place-items: center;
  width: min(420px, 40vw);
}
.train-cabin-hero .train-cabin-logo {
  left: auto;
  right: clamp(26px, 6vw, 84px);
  bottom: clamp(26px, 6vw, 80px);
}
.about-identity-mark {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.about-identity-mark::before,
.about-identity-mark::after {
  display: none;
}
.about-identity-mark::after {
  display: none;
}
.about-identity-mark img {
  position: relative;
  z-index: 2;
  width: min(230px, 48vw);
  filter: drop-shadow(0 30px 90px rgba(124,58,237,0.44));
  transform: translate3d(var(--cursor-x, 0), var(--cursor-y, 0), 0) rotateX(var(--cursor-rx, 0deg)) rotateY(var(--cursor-ry, 0deg));
  transition: transform 180ms ease;
  animation: logoHoverDrift 5.4s ease-in-out infinite;
}
.about-identity-mark span {
  position: absolute;
  bottom: 34px;
  color: rgba(255,255,255,0.54);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.principles-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.principles-section.work-projects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.process-ribbon {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
}
.process-ribbon > div {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.process-ribbon > div::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 28px;
  height: 2px;
  background: rgba(255,255,255,0.10);
}
.process-ribbon > div::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 28px;
  width: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(176,108,255,0.95), transparent);
  animation: processSignal 6s cubic-bezier(0.16,1,0.3,1) infinite;
}
.process-ribbon > div span {
  position: relative;
  min-height: 146px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 58px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}
.process-ribbon > div span::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(176,108,255,0.72);
  background: #090713;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 32px rgba(124,58,237,0.32);
}
.process-ribbon b {
  color: white;
  font-size: 20px;
  line-height: 1.1;
  text-align: center;
}
.process-ribbon small {
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}
@keyframes processSignal {
  0% { transform: translateX(0); opacity: 0; }
  12%, 82% { opacity: 1; }
  100% { transform: translateX(360%); opacity: 0; }
}
.contact-brief-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.contact-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}
.contact-method-grid a,
.contact-method-grid div {
  min-height: 132px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}
.contact-method-grid span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-method-grid strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.18;
  word-break: break-word;
}
.contact-brief {
  position: sticky;
  top: 112px;
}
.brief-field {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.brief-field span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brief-field input,
.brief-field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,0.055);
  color: white;
  font: inherit;
  line-height: 1.55;
}
.brief-field input {
  min-height: 46px;
}
.brief-field textarea {
  resize: vertical;
  min-height: 118px;
}
.brief-field input:focus,
.brief-field textarea:focus {
  outline: none;
  border-color: rgba(124,58,237,0.72);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.16);
}
.brief-field input::placeholder,
.brief-field textarea::placeholder { color: rgba(255,255,255,0.42); }
.brief-status {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 80;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(10,8,16,0.86);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 24px 90px rgba(0,0,0,0.46);
  backdrop-filter: blur(18px);
  transform: translateY(0);
  animation: briefToastIn 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.brief-status[hidden] {
  display: none !important;
}
.brief-status.is-success {
  border-color: rgba(34,197,94,0.42);
  color: #86efac;
  background:
    radial-gradient(circle at 12% 0%, rgba(34,197,94,0.18), transparent 34%),
    rgba(10,8,16,0.90);
}
.brief-status.is-error {
  border-color: rgba(239,68,68,0.42);
  color: #fca5a5;
  background:
    radial-gradient(circle at 12% 0%, rgba(239,68,68,0.18), transparent 34%),
    rgba(10,8,16,0.90);
}
@keyframes briefToastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.contact-media-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: center;
  padding: clamp(30px, 5vw, 54px);
}
.media-prism {
  min-height: 240px;
  display: grid;
  place-items: center;
  clip-path: polygon(10% 0, 100% 16%, 86% 100%, 0 78%);
  background:
    linear-gradient(135deg, rgba(124,58,237,0.42), rgba(176,108,255,0.06)),
    rgba(255,255,255,0.05);
}
.media-prism span {
  color: rgba(255,255,255,0.72);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.page-hero-work {
  background:
    linear-gradient(90deg, rgba(5,5,7,0.92), rgba(5,5,7,0.52)),
    radial-gradient(circle at 74% 36%, rgba(124,58,237,0.30), transparent 28%),
    #050507;
}
.page-hero-work::before {
  width: min(560px, 42vw);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background:
    linear-gradient(rgba(0,0,0,0.34), rgba(0,0,0,0.34)),
    url("./pozadi.webp") center / cover no-repeat;
  box-shadow: 0 28px 120px rgba(0,0,0,0.44), 0 0 90px rgba(124,58,237,0.20);
}
.page-hero-about::before {
  width: min(360px, 30vw);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.14), transparent 14%),
    url("./kairai-mark.png") center / 34% no-repeat,
    radial-gradient(circle at 50% 50%, rgba(124,58,237,0.24), transparent 54%);
}
.page-hero-contact::before {
  width: min(430px, 34vw);
  aspect-ratio: 1.25;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 42px),
    radial-gradient(circle at 78% 22%, rgba(124,58,237,0.24), transparent 38%),
    rgba(255,255,255,0.035);
}
.page-hero-app::before {
  width: min(250px, 24vw);
  aspect-ratio: 9 / 18;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.22), transparent 20%),
    radial-gradient(circle at 50% 18%, rgba(124,58,237,0.34), transparent 24%),
    #08070d;
  box-shadow: inset 0 0 0 8px #050507, inset 0 0 0 9px rgba(255,255,255,0.12), 0 30px 110px rgba(0,0,0,0.55);
  transform: rotate(-7deg);
}
@media (max-width: 980px) {
  .nav {
    top: 18px;
    left: 18px;
    right: 18px;
    width: auto;
    height: auto;
    min-height: 46px;
    padding: 0;
    transform: none;
    gap: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }
  .nav-logo {
    padding: 8px 0;
    letter-spacing: 0.24em;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.65)) drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  }
  .nav-links { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu summary {
    position: relative;
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    min-height: 46px;
    border: 0;
    background: none;
    color: transparent;
    font-size: 0;
    cursor: pointer;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.6));
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .burger-line {
    position: relative;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: white;
    transition: opacity 200ms ease;
  }
  .burger-line::before,
  .burger-line::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: white;
    transition: transform 260ms cubic-bezier(0.16,1,0.3,1);
  }
  .burger-line::before { top: -7px; }
  .burger-line::after { top: 7px; }
  .mobile-menu[open] .burger-line { opacity: 0; }
  .mobile-menu[open] .burger-line::before { transform: translateY(7px) rotate(45deg); }
  .mobile-menu[open] .burger-line::after { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu-panel {
    position: fixed;
    z-index: 500;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 100px 30px 40px;
    border: 0;
    border-radius: 0;
    background: #050507;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .mobile-menu-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 88% 8%, rgba(124,58,237,0.32), transparent 44%),
      radial-gradient(circle at -8% 92%, rgba(176,108,255,0.16), transparent 50%),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 44px);
  }
  .mobile-menu-panel > * { position: relative; z-index: 1; }
  .mobile-menu-panel a {
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 2px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    font-size: clamp(24px, 7.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.86);
    opacity: 0;
    transform: translateY(14px);
  }
  .mobile-menu[open] .mobile-menu-panel a {
    animation: mmLinkIn 480ms cubic-bezier(0.16,1,0.3,1) both;
  }
  .mobile-menu-panel a:nth-of-type(1) { animation-delay: 70ms; }
  .mobile-menu-panel a:nth-of-type(2) { animation-delay: 120ms; }
  .mobile-menu-panel a:nth-of-type(3) { animation-delay: 170ms; }
  .mobile-menu-panel a:nth-of-type(4) { animation-delay: 220ms; }
  .mobile-menu-panel a:hover, .mobile-menu-panel a:active { background: none; color: var(--ink); }
  .mm-index {
    flex: none;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    color: var(--accent-2, #b06cff);
  }
  .mobile-menu-cta.btn {
    align-self: flex-start;
    margin-top: 26px;
    border-bottom: 0;
    opacity: 0;
    transform: translateY(14px);
  }
  .mobile-menu[open] .mobile-menu-cta.btn {
    animation: mmLinkIn 480ms cubic-bezier(0.16,1,0.3,1) both;
    animation-delay: 280ms;
  }
  .mobile-menu-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.10);
    opacity: 0;
    transform: translateY(14px);
  }
  .mobile-menu[open] .mobile-menu-meta {
    animation: mmLinkIn 480ms cubic-bezier(0.16,1,0.3,1) both;
    animation-delay: 330ms;
  }
  .mobile-menu-meta .footer-socials { gap: 14px; }
  .mobile-menu-meta a { color: rgba(255,255,255,0.56); font-size: 13px; font-weight: 900; }
  .mobile-menu-email { letter-spacing: 0; text-transform: none; }
  @keyframes mmLinkIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes mobileMenuIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .nav-cta { display: none; }
  .hero {
    min-height: 100svh;
    padding: 112px 22px 46px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }
  .hero-spline {
    inset: -4% -54% 18% -54%;
    width: 208%;
    height: 82%;
  }
  .hero-card {
    display: none;
  }
  .hero-card span { display: none; }
  .hero-robot-fallback {
    display: block;
    position: absolute;
    z-index: 2;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: min(115vw, 560px);
    height: auto;
    opacity: 1;
    pointer-events: none;
  }
  .hero-content { position: relative; left: auto; top: auto; max-width: 100%; }
  h1 { font-size: clamp(44px, 14vw, 66px); }
  .hero-proof { position: relative; right: auto; top: auto; bottom: auto; margin-top: 22px; width: 100%; }
  .hero-proof div { padding: 13px 16px; }
  .hero-proof strong { font-size: 15px; }
  .hero-proof span { font-size: 12px; }
  .split-intro, .section-head, .cms-layout, .about-layout, .contact-strip, .brief-builder { grid-template-columns: 1fr; }
  .service-grid, .process-line { grid-template-columns: 1fr; }
  .subpage-hero { min-height: auto; padding-top: 138px; }
  .services-traffic-hero {
    min-height: 100svh;
    padding-top: 132px;
    align-items: flex-end;
  }
  .services-traffic-hero .subpage-hero-inner {
    transform: none;
  }
  .services-traffic-hero::after {
    background:
      linear-gradient(180deg, rgba(5,5,7,0.10), rgba(5,5,7,0.52) 58%, rgba(5,5,7,0.82)),
      linear-gradient(90deg, rgba(5,5,7,0.74), rgba(5,5,7,0.30)),
      radial-gradient(circle at 100% 100%, rgba(5,5,7,0.80) 0 16%, transparent 42%);
  }
  .services-traffic-scene video {
    object-position: 54% 50%;
    filter: saturate(0.92) hue-rotate(18deg) brightness(0.92) contrast(1.08);
  }
  .services-traffic-watermark {
    width: 174px;
    height: 66px;
  }
  .contact-video-hero {
    min-height: 92svh;
    align-items: flex-end;
    padding-top: 132px;
  }
  .contact-video-hero .subpage-hero-inner {
    transform: none;
  }
  .contact-video-hero::after {
    background:
      linear-gradient(180deg, rgba(5,5,7,0.08), rgba(5,5,7,0.54) 56%, rgba(5,5,7,0.80)),
      linear-gradient(90deg, rgba(5,5,7,0.70), rgba(5,5,7,0.28));
  }
  .contact-hero-video .contact-video {
    object-position: 82% 46%;
    transform: scale(1.0);
    filter: saturate(0.86) hue-rotate(24deg) brightness(0.88) contrast(1.1);
  }
  .about-train-hero {
    min-height: 100svh;
    padding-top: 132px;
    align-items: flex-end;
  }
  .about-train-hero .subpage-hero-inner {
    transform: none;
  }
  .about-train-hero::after {
    background:
      linear-gradient(180deg, rgba(5,5,7,0.12), rgba(5,5,7,0.56) 56%, rgba(5,5,7,0.80)),
      linear-gradient(90deg, rgba(5,5,7,0.72), rgba(5,5,7,0.30));
  }
  .about-hero-video video {
    object-position: 50% 46%;
    transform: scale(1.0);
    filter: saturate(0.92) hue-rotate(10deg) brightness(0.95) contrast(1.08);
  }
  .subpage-hero h1 { font-size: clamp(42px, 12vw, 64px); line-height: 1.04; }
  .subpage-hero p { font-size: 16px; line-height: 1.75; }
  .beam-a { width: 270px; height: 220px; right: -76px; top: 110px; opacity: 0.46; }
  .beam-b { width: 240px; right: 12px; bottom: 38px; opacity: 0.42; }
  .service-lab-section,
  .identity-section,
  .contact-brief-section,
  .service-package-section,
  .principles-section,
  .process-ribbon,
  .contact-media-note { width: calc(100% - 32px); margin: 64px auto; }
  .service-lab-shell,
  .service-package-section,
  .identity-section,
  .principles-section,
  .contact-brief-section,
  .contact-method-grid,
  .contact-media-note { grid-template-columns: 1fr; }
  .service-visual,
  .contact-brief { position: relative; top: auto; }
  .service-option { grid-template-columns: 42px minmax(0, 1fr); }
  .service-option strong { grid-column: 2; text-align: left; }
  .shape-stage { min-height: 300px; }
  .shape { width: 168px; height: 168px; }
  .artifact-web { width: min(292px, 86vw); height: 176px; }
  .artifact-video { width: min(316px, 88vw); min-height: 176px; }
  .artifact-video i { height: var(--h, 120px); }
  .artifact-brand { width: 180px; height: 180px; }
  .artifact-brand img { width: 88px; height: 88px; }
  .artifact-app { width: min(286px, 88vw); min-height: 198px; }
  .logo-scene { min-height: 360px; }
  .train-cabin-scene {
    min-height: 480px;
    clip-path: polygon(0 3%, 100% 0, 100% 96%, 4% 100%);
  }
  .train-cabin-hero {
    min-height: 100%;
    clip-path: none;
  }
  .train-cabin-hero canvas {
    inset: -4% -46% 0 -20%;
    width: 166%;
    height: 108%;
    filter: saturate(0.34) hue-rotate(40deg) brightness(0.38) contrast(1.18);
  }
  .train-cabin-hero .train-cabin-logo { display: none; }
  .train-cabin-logo {
    left: 18px;
    bottom: 18px;
  }
  .about-identity-mark { min-height: 320px; }
  .process-ribbon > div { grid-template-columns: 1fr; gap: 4px; }
  .process-ribbon > div::before {
    left: 20px;
    right: auto;
    top: 16px;
    bottom: 16px;
    width: 2px;
    height: auto;
  }
  .process-ribbon > div::after { display: none; }
  .process-ribbon > div span {
    min-height: 86px;
    align-content: center;
    padding: 14px 16px 14px 62px;
  }
  .process-ribbon > div span::before {
    left: 20px;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .process-ribbon b,
  .process-ribbon small { text-align: left; }
  .contact-media-note { padding: 26px; }
  .service-tile { min-height: 0; }
  .work-wrap {
    position: relative;
    z-index: 6;
    height: auto;
    padding: 92px 0 104px;
    background:
      radial-gradient(circle at 50% 10%, rgba(124,58,237,0.18), transparent 34%),
      #000;
    overflow: hidden;
  }
  .work-stage { position: relative; height: auto; min-height: auto; padding: 0; overflow: visible; }
  .work-head,
  .work-stage[data-active="2"] .work-head {
    display: none;
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 0 22px;
    text-align: center;
    opacity: 1;
    transform: none;
  }
  .work-head h2 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.02;
  }
  .gallery-controls { display: none; }
  .gallery-frame {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 520px;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .work-wrap::before { display: none; }
  .work-stage::before { display: none; }
  .case-rail {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0 22px 28px;
    transform: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 22px;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
  }
  .case-rail::-webkit-scrollbar { display: none; }
  .case-card,
  .case-card[data-case="2"] {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 0 0 min(82vw, 340px);
    width: auto;
    height: auto;
    min-height: 468px;
    padding: 0;
    border-top: 0;
    border-radius: 16px;
    opacity: 1;
    transform: none;
    overflow: hidden;
    scroll-snap-align: center;
    background: #0b0a12;
  }
  .work-stage[data-active="0"] .case-card[data-case="2"],
  .work-stage[data-active="2"] .case-card[data-case="0"],
  .case-card:not(.active) {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .case-card::after { content: none; }
  .case-card-photo {
    display: block;
    position: relative;
    inset: auto;
    width: 100%;
    height: 290px;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.66) saturate(0.95);
  }
  .case-card[data-case="1"] .case-card-photo {
    object-fit: cover;
    object-position: center top;
    padding: 0;
    background: transparent;
  }
  .case-card-body {
    display: block;
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 18px 16px 20px;
    background: #050507;
    opacity: 1;
  }
  .gallery-frame .case-card-body {
    display: block;
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 18px 16px 20px;
    background: #050507;
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .gallery-frame .case-card:not(.active) .case-card-body { visibility: visible; }
  .gallery-caption { display: none; }
  .case-card.active { transform: none; }
  .case-card p,
  .gallery-caption p {
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .case-card h3 {
    margin-top: 8px;
    font-size: 30px;
    line-height: 1.02;
  }
  .case-card span {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.45;
  }
  .case-stats { justify-content: space-between; gap: 10px; }
  .case-stats strong {
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
  }
  .cms-section { --cms-spline-scale: 0.74; z-index: 1; padding-bottom: 48px; }
  .cms-layout { min-height: 0; gap: 24px; }
  .cms-device { min-height: 520px; order: 1; }
  .cms-copy { order: 2; }
  .cms-phone-scene { min-height: 540px; }
  .cms-phone { width: min(268px, 62vw); transform: rotateY(-8deg) rotateX(3deg); }
  .cms-floating-card-a { left: 4%; top: 18%; }
  .cms-floating-card-b { right: 4%; bottom: 14%; }
  .spline-device { min-height: 520px; }
  .spline-device iframe {
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(var(--cms-spline-scale));
  }
  .spline-watermark-cover {
    left: clamp(118px, 28%, 190px);
    bottom: clamp(70px, 14%, 112px);
    width: 166px;
  }
  .device-cards span { height: 100px; }
  .contact-actions { align-items: stretch; }
  .brief-options, .brief-budget { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-socials { display: none; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 520px) {
  .nav-logo { letter-spacing: 0.18em; }
  .nav-logo img { width: 22px; height: 22px; }
  .nav-cta { min-height: 34px; font-size: 12px; }
  .hero { padding: 104px 18px 38px; }
  .hero-spline {
    inset: 0 -64% 34% -64%;
    width: 228%;
    height: 72%;
  }
  .hero-card {
    right: 18px;
    bottom: 224px;
    width: 174px;
    padding: 12px;
  }
  .hero-card strong { font-size: 13px; }
  .hero-copy { font-size: 15px; }
  .hero-proof { display: none; }
  .hero::after { width: 176px; height: 66px; }
  .btn { width: 100%; }
  .case-rail { padding-inline: 18px; scroll-padding-inline: 18px; }
  .case-card, .case-card[data-case="2"] { flex-basis: 84vw; min-height: 456px; }
  .case-card h3 { font-size: 29px; }
  .about-train-hero { min-height: 92svh; }
  .about-train-hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .about-hero-video video {
    object-position: 50% 46%;
    transform: scale(1.0);
    filter: saturate(0.92) hue-rotate(10deg) brightness(0.95) contrast(1.08);
  }
  .about-train-hero .hero-signal-stack span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
  }
  .train-cabin-scene { min-height: 390px; }
  .train-cabin-logo span { display: none; }
  .cms-section { --cms-spline-scale: 0.82; }
  .cms-device, .spline-device { min-height: 430px; }
  .cms-phone-scene { min-height: 450px; }
  .cms-phone { width: min(224px, 74vw); transform: rotateY(-5deg) rotateX(2deg); }
  .cms-floating-card { display: none; }
  .cms-screen { inset: 68px 26px 34px; }
  .cms-screen h3 { font-size: 18px; }
  .cms-screen input { height: 34px; }
  .contact-strip { width: calc(100% - 32px); padding: 32px 20px; }
  .service-option { padding: 20px; gap: 14px; }
  .service-option p,
  .package-points p,
  .principles-section p { line-height: 1.6; }
  .service-lab-copy h2,
  .identity-copy h2,
  .contact-explain h2,
  .package-card h2,
  .contact-media-note h2 { font-size: 34px; line-height: 1.1; }
  .package-card,
  .package-points div,
  .principles-section article,
  .contact-method-grid a,
  .contact-method-grid div { padding: 22px; }
  .brief-options,
  .brief-budget { grid-template-columns: 1fr; }
  .brief-fields-grid { grid-template-columns: 1fr; }
  .media-prism { min-height: 190px; }
  .footer { width: calc(100% - 32px); }
  .footer-main { grid-template-columns: 1fr; }
  .footer-logo { letter-spacing: 0.2em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover { transform: none; }
  .preloader { display: none; }
  .hero-ui { animation: none; opacity: 1; transform: none; filter: none; }
  .hero-spline { animation: none; transform: none; filter: none; }
  .nav { animation: none; opacity: 1; filter: none; }
  .reveal { opacity: 1; transform: none; }
  .device-orbit { animation: none; }
  .cms-orbit, .cms-floating-card { animation: none; }
}

/* Compact project showcase */
.work-wrap {
  position: relative;
  z-index: 2;
  height: auto;
  padding: clamp(72px, 8vw, 118px) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(124,58,237,0.16), transparent 30%),
    linear-gradient(180deg, #050507 0%, #090712 52%, #050507 100%);
}
.work-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(255,255,255,0.014) 1px, transparent 1px) 0 0 / 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 22%, black 76%, transparent);
}
.case-reel {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.case-reel-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(18px, 3vw, 34px);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.case-reel-head p,
.case-copy p {
  margin: 0;
  color: rgba(255,255,255,0.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.case-reel-head h2 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 0.98;
  text-wrap: balance;
}
.case-reel-head span {
  max-width: 430px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  text-wrap: pretty;
}
.case-hover-group {
  position: relative;
  z-index: 1;
}
.case-hover-group.is-live-open,
.case-hover-group:focus-within {
  z-index: 30;
}
.case-live-panel {
  position: absolute;
  top: 6%;
  left: 100%;
  height: 88%;
  width: 0;
  overflow: hidden;
  z-index: 5;
  border: 1px solid rgba(176,108,255,0.4);
  border-radius: 10px;
  background: #050507;
  box-shadow: 0 40px 110px rgba(0,0,0,0.65), 0 0 0 1px rgba(176,108,255,0.08), 0 0 60px rgba(124,58,237,0.16);
  opacity: 0;
  pointer-events: none;
  transform-origin: left center;
  transform: perspective(1200px) rotateY(-14deg) scale(0.94);
  transition: width 460ms cubic-bezier(0.16,1,0.3,1), opacity 320ms ease, transform 460ms cubic-bezier(0.16,1,0.3,1);
}
.case-hover-group.is-live-open .case-live-panel,
.case-hover-group:focus-within .case-live-panel {
  width: min(60vw, 600px);
  opacity: 1;
  pointer-events: auto;
  transform: perspective(1200px) rotateY(0deg) scale(1);
}
.case-live-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  background: linear-gradient(120deg, rgba(176,108,255,0.14), transparent 30%);
}
.case-live-panel iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: min(60vw, 600px);
  height: 100%;
  border: 0;
}
.case-hover-group:last-child .case-live-panel {
  left: auto;
  right: 100%;
  transform-origin: right center;
  transform: perspective(1200px) rotateY(14deg) scale(0.94);
}
.case-hover-group:last-child.is-live-open .case-live-panel,
.case-hover-group:last-child:focus-within .case-live-panel {
  transform: perspective(1200px) rotateY(0deg) scale(1);
}
@media (max-width: 980px) {
  .case-live-panel { display: none; }
}
.case-panel {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(8,7,13,0.78);
  box-shadow: 0 24px 80px rgba(0,0,0,0.26);
  transform: translateY(0);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.case-panel:hover {
  transform: translateY(-6px);
  border-color: rgba(168,85,247,0.42);
  background: rgba(12,9,21,0.9);
}
.case-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(168,85,247,0.18), transparent 38%),
    #050507;
  isolation: isolate;
}
.case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), transparent 24%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.46));
  opacity: 0.78;
  z-index: 2;
}
.case-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.84) saturate(0.98) contrast(1.04);
  transform: scale(1.01);
  transition: transform 420ms cubic-bezier(0.16,1,0.3,1), filter 320ms ease, opacity 260ms ease;
}
.case-panel:hover .case-media img {
  transform: scale(1.045);
  filter: brightness(0.92) saturate(1.04) contrast(1.06);
}
.case-panel-app .case-media img {
  transform: scale(1.2);
}
.case-panel-app:hover .case-media img {
  transform: scale(1.24);
}
.case-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
}
.case-copy h3 {
  margin: 10px 0 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  text-wrap: balance;
}
.case-copy span {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  text-wrap: pretty;
}
.case-copy .case-stats {
  margin-top: auto;
  padding-top: 22px;
}
@media (max-width: 980px) {
  .work-wrap {
    padding: 70px 0 78px;
  }
  .case-reel {
    width: 100%;
  }
  .case-reel-head {
    display: block;
    margin-bottom: 0;
    padding: 0 18px 26px;
  }
  .case-reel-head p { margin-bottom: 14px; }
  .case-reel-head h2 {
    font-size: clamp(34px, 9.6vw, 48px);
    max-width: 390px;
  }
  .case-reel-head span {
    display: block;
    max-width: 360px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.6;
  }
  .case-grid {
    display: flex;
    gap: 14px;
    padding: 0 18px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 18px;
    -webkit-overflow-scrolling: touch;
  }
  .case-grid::-webkit-scrollbar { display: none; }
  .case-hover-group {
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: center;
  }
  .case-panel { width: 100%; }
  .case-media {
    aspect-ratio: 16 / 10;
  }
  .case-copy {
    min-height: 245px;
    padding: 18px;
  }
  .case-copy p {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .case-copy h3 {
    font-size: clamp(29px, 8.2vw, 38px);
  }
  .case-copy span {
    font-size: 14px;
    line-height: 1.55;
  }
  .case-copy .case-stats {
    gap: 8px;
    padding-top: 18px;
  }
  .case-copy .case-stats strong {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-panel,
  .case-media img {
    transition: none;
  }
  .case-panel:hover {
    transform: none;
  }
  .case-panel:hover .case-media img {
    transform: none;
  }
}
