:root {
  color-scheme: dark;
  --bg: #05080d;
  --bg-soft: #0b121c;
  --surface: rgba(15, 24, 36, .82);
  --surface-strong: #101a27;
  --line: rgba(255, 255, 255, .13);
  --text: #f4f7fb;
  --muted: #a8b4c1;
  --blue: #27a8e0;
  --blue-soft: #8bdcff;
  --gold: #f1c40f;
  --radius: 22px;
  --max: 1180px;
  --display: "Space Grotesk", sans-serif;
  --body: Inter, sans-serif;
  --mono: "JetBrains Mono", monospace;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); }
body.intro-active { overflow: hidden; }
img, video { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.brand-intro {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow: hidden;
  background: #000;
  transform: translate3d(0, 0, 0);
}

.brand-intro::before {
  content: "";
  position: absolute;
  width: min(76vw, 980px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 168, 224, .12), transparent 64%);
  opacity: 0;
  animation: intro-glow 1.1s 2.15s ease forwards;
}

.brand-intro.exit { animation: intro-curtain .9s cubic-bezier(.76, 0, .24, 1) forwards; }
.intro-logo { position: relative; z-index: 1; width: min(76vw, 900px); height: auto; aspect-ratio: 1920 / 684; border: 0; }
.intro-tagline {
  position: relative;
  z-index: 1;
  margin: -4px 0 0;
  color: var(--blue);
  font: 700 12px/1.4 var(--mono);
  letter-spacing: .36em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  animation: intro-tagline 1s 2.35s ease forwards;
}

@keyframes intro-glow { to { opacity: 1; } }
@keyframes intro-tagline { to { opacity: .95; transform: translateY(0); } }
@keyframes intro-curtain { to { transform: translate3d(0, -100%, 0); } }

body[data-theme="mission"] {
  --bg: #03070c;
  --bg-soft: #07111c;
  --surface: rgba(7, 18, 30, .90);
  --surface-strong: #071522;
  --line: rgba(76, 190, 255, .22);
  --blue: #48c7ff;
  --blue-soft: #a7e6ff;
  --gold: #ffcf24;
  --radius: 4px;
}

body[data-theme="cinematic"] {
  --bg: #07090d;
  --bg-soft: #0d1118;
  --surface: rgba(15, 18, 24, .84);
  --surface-strong: #11151c;
  --line: rgba(255, 255, 255, .14);
  --blue: #55bfe9;
  --blue-soft: #c0ebff;
  --gold: #eec55d;
  --radius: 30px;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 13, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 36px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}
.brand img {
  display: block;
  width: auto;
  height: clamp(108px, 8.3vw, 132px);
  transform: translateY(9px);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .42));
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) / 2);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn-primary { background: var(--gold); color: #171300; }
.btn-outline { border-color: var(--line); background: rgba(5, 9, 14, .42); color: var(--text); }

.journey-hero { height: 100svh; min-height: 720px; position: relative; background: #010205; }
.hero-sticky { position: relative; height: 100%; min-height: 720px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; overflow: hidden; background: #010205; }

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform-origin: 72% 54%;
  filter: brightness(.78) saturate(1.04) contrast(1.03);
  animation: orbital-breathe 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes orbital-breathe {
  from { transform: scale(1.025) translate3d(.25%, 0, 0); }
  to { transform: scale(1.025) translate3d(-.55%, -.2%, 0); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 34%, transparent 0, rgba(1, 4, 9, .08) 28%, rgba(1, 3, 8, .42) 70%),
    linear-gradient(90deg, rgba(1, 3, 8, .98) 0%, rgba(1, 4, 9, .88) 28%, rgba(1, 4, 9, .2) 56%, rgba(1, 3, 8, .08) 100%),
    linear-gradient(0deg, rgba(1, 3, 8, .74), transparent 42%);
}

.star-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .52; pointer-events: none; }
.hero-scan {
  position: absolute;
  inset: -30% -10%;
  pointer-events: none;
  opacity: .18;
  background: linear-gradient(112deg, transparent 43%, rgba(91, 205, 255, .22) 49%, transparent 55%);
  transform: translateX(-32%);
  animation: orbital-scan 11s ease-in-out infinite;
}

@keyframes orbital-scan {
  0%, 18% { transform: translateX(-36%); opacity: 0; }
  36% { opacity: .22; }
  72%, 100% { transform: translateX(38%); opacity: 0; }
}
.hero-grid { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

body[data-theme="mission"] .hero-grid {
  opacity: .22;
  background-image: linear-gradient(rgba(65, 184, 246, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(65, 184, 246, .22) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(var(--max), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy { width: min(680px, 58vw); padding-top: 92px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--blue-soft); font: 700 12px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--blue); box-shadow: 0 0 16px var(--blue); }

.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-family: var(--display);
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: .93;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.hero-copy h1 em { color: var(--blue-soft); font-style: normal; }
.hero-copy > p { max-width: 630px; margin: 26px 0 0; color: #c5d0db; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.62; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.hero-proof {
  position: absolute;
  z-index: 6;
  left: max(20px, calc((100vw - var(--max)) / 2));
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(240,247,252,.78);
  font: 700 11px/1.35 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 9px; }
.hero-proof span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px var(--blue); }

.section { position: relative; padding: clamp(76px, 9vw, 132px) 20px; background: var(--bg); }
.section.alt { background: var(--bg-soft); }
.shell { width: min(var(--max), 100%); margin: 0 auto; }
.section-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: end; margin-bottom: 46px; }
.section-kicker { margin-bottom: 14px; color: var(--blue); font: 800 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.section h2 { margin: 0; font: 650 clamp(39px, 5.4vw, 72px)/.98 var(--display); letter-spacing: -.055em; text-wrap: balance; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.68; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #070d14; }
.marquee-track { width: max-content; display: flex; gap: 42px; padding: 20px 0; color: var(--muted); font: 800 13px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; animation: marquee 30s linear infinite; }
.marquee-track span::after { content: "•"; margin-left: 42px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-card strong { display: block; color: var(--gold); font: 700 clamp(29px, 4vw, 48px)/1 var(--display); }
.stat-card span { display: block; margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.45; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.service-card { min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), rgba(5, 10, 16, .65)); }
.service-card b { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin-bottom: 34px; border: 1px solid var(--line); border-radius: 12px; color: var(--blue); font: 800 13px/1 var(--mono); }
.service-card h3 { margin: 0 0 10px; font: 650 21px/1.15 var(--display); }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); text-decoration: none; transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-5px); border-color: var(--blue); }
.project-card img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.project-copy { padding: 20px; }
.project-copy small { color: var(--blue); font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.project-copy h3 { margin: 9px 0 7px; font: 650 22px/1.1 var(--display); }
.project-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.cinema-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 40px; align-items: center; }
.cinema-copy h2 { margin: 0 0 18px; }
.cinema-copy p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.video-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.46); }
.video-frame video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }

.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.method-step { padding: 25px; border-top: 1px solid var(--line); }
.method-step strong { color: var(--blue); font: 800 12px/1 var(--mono); }
.method-step h3 { margin: 28px 0 10px; font: 650 21px/1.15 var(--display); }
.method-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.58; }

.contact-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 46px; align-items: start; }
.contact-copy p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.contact-links { display: grid; gap: 10px; margin-top: 28px; }
.contact-links a { color: var(--blue-soft); text-decoration: none; }
.diag-form { display: grid; gap: 17px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.diag-form label { display: grid; gap: 8px; color: var(--muted); font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.diag-form input, .diag-form textarea { width: 100%; border: 1px solid var(--line); border-radius: calc(var(--radius)/2); padding: 14px 15px; outline: none; background: rgba(2,7,12,.72); color: var(--text); font: 400 15px/1.4 var(--body); text-transform: none; letter-spacing: 0; }
.diag-form input:focus, .diag-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,168,224,.12); }
.form-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.diag-form .btn:disabled { cursor: wait; opacity: .7; transform: none; }
.form-status[data-state="sending"] { color: var(--blue-soft); }
.form-status[data-state="success"] { color: #7ee2a8; }
.form-status[data-state="error"] { color: #ff8f8f; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 20px; background: #04070b; }
.footer-shell { width: min(var(--max), 100%); margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.footer-shell p { margin: 0 auto 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }

body[data-theme="mission"] .section-head,
body[data-theme="mission"] .contact-grid { border-left: 2px solid var(--blue); padding-left: 24px; }
body[data-theme="mission"] .service-card,
body[data-theme="mission"] .project-card,
body[data-theme="mission"] .stat-card,
body[data-theme="mission"] .diag-form { box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
body[data-theme="mission"] .hero-copy h1,
body[data-theme="mission"] .section h2 { text-transform: uppercase; }

body[data-theme="cinematic"] .section { padding-block: clamp(92px, 11vw, 156px); }
body[data-theme="cinematic"] .hero-copy h1 { font-weight: 500; }
body[data-theme="cinematic"] .project-card:nth-child(1),
body[data-theme="cinematic"] .project-card:nth-child(4) { grid-column: span 2; }
body[data-theme="cinematic"] .project-card:nth-child(1) img,
body[data-theme="cinematic"] .project-card:nth-child(4) img { aspect-ratio: 2/1; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-intro, .brand-intro::before, .intro-tagline, .hero-image, .hero-scan, [data-reveal], .marquee-track { transition: none; animation: none; }
  .intro-tagline { opacity: 1; transform: none; }
}

@media (max-width: 940px) {
  .nav-links { display: none; }
  .hero-copy { width: min(690px, 86vw); }
  .hero-vignette { background: linear-gradient(90deg, rgba(1,3,8,.93), rgba(1,3,8,.28)), linear-gradient(0deg, rgba(1,3,8,.72), transparent 48%); }
  .section-head, .contact-grid, .cinema-grid { grid-template-columns: 1fr; }
  .stats-grid, .method-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  body[data-theme="cinematic"] .project-card:nth-child(1),
  body[data-theme="cinematic"] .project-card:nth-child(4) { grid-column: auto; }
  body[data-theme="cinematic"] .project-card:nth-child(1) img,
  body[data-theme="cinematic"] .project-card:nth-child(4) img { aspect-ratio: 16/10; }
}

@media (max-width: 620px) {
  .nav-shell { height: 78px; width: min(100% - 24px, var(--max)); }
  .brand img { height: 82px; transform: translateY(7px); }
  .intro-logo { width: min(88vw, 640px); }
  .intro-tagline { max-width: 88vw; text-align: center; font-size: 9px; letter-spacing: .22em; }
  .nav-shell > .btn { min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .journey-hero, .hero-sticky { min-height: 700px; }
  .hero-content { width: calc(100% - 28px); }
  .hero-copy { width: 100%; padding-top: 40px; }
  .hero-copy h1 { font-size: clamp(43px, 14vw, 64px); }
  .hero-copy > p { font-size: 15px; }
  .hero-image { object-position: 66% center; transform-origin: 70% 50%; }
  .hero-proof { left: 15px; right: 15px; bottom: 18px; flex-wrap: wrap; gap: 9px 18px; font-size: 9px; }
  .section { padding-inline: 15px; }
  .stats-grid, .services-grid, .portfolio-grid, .method-grid, .form-row { grid-template-columns: 1fr; }
  .diag-form { padding: 20px; }
  .footer-shell { align-items: flex-start; flex-direction: column; }
  .footer-shell p { margin: 0; }
}
