:root {
  --bg: #090b0d;
  --surface: #101318;
  --surface-2: #141820;
  --text: #f1efe8;
  --muted: #9a9da5;
  --line: rgba(241, 239, 232, 0.14);
  --line-strong: rgba(241, 239, 232, 0.25);
  --blue: #3d7df4;
  --blue-bright: #6a9dff;
  --container: 1180px;
  --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(61, 125, 244, 0.07), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img, iframe { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section { padding: 150px 0; }
.section-rule { border-top: 1px solid var(--line); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 13, 0.86);
  backdrop-filter: blur(18px);
  transition: background 180ms ease;
}

.site-header.scrolled { background: rgba(9, 11, 13, 0.96); }

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  justify-self: start;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.8rem;
  color: #b9bbc1;
}

.desktop-nav a, .footer-right a { transition: color 160ms ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible, .footer-right a:hover { color: var(--text); }

.header-cta { justify-self: end; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0.8rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.button-small { min-height: 40px; padding: 0.65rem 1rem; background: var(--blue); color: #071025; }
.button-light { background: var(--text); color: var(--bg); }
.button-light:hover { background: #fff; }
.button-ghost { border-color: var(--line-strong); background: transparent; }
.button-ghost:hover { border-color: var(--text); }
.button-blue { min-width: 164px; background: var(--blue); color: #071025; }
.button-blue:hover { background: var(--blue-bright); }

.menu-button, .mobile-menu { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 210px;
  padding-bottom: 110px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  top: 60px;
  right: max(-190px, calc((100vw - var(--container)) / 2 - 280px));
  border: 1px solid rgba(61, 125, 244, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(61, 125, 244, 0.018), 0 0 0 140px rgba(61, 125, 244, 0.012);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--blue-bright);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 950px;
  margin-bottom: 2.2rem;
  font-size: clamp(4.2rem, 8.9vw, 8.2rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 790;
}

h3 { letter-spacing: -0.035em; }

.hero-lede {
  max-width: 590px;
  margin-bottom: 2rem;
  color: #a7a9af;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.6;
}

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.reel-shell {
  margin-top: 92px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: #0d1014;
}

.reel-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.reel-meta { color: #686c75; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #030405; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.7fr);
  align-items: end;
  gap: 4rem;
  margin-bottom: 70px;
}

.section-heading > p, .services-intro > p:last-child {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.work-card { min-width: 0; background: var(--bg); }

.work-visual {
  position: relative;
  height: 290px;
  overflow: hidden;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.work-visual::before, .work-visual::after { content: ""; position: absolute; }
.work-visual > span { position: absolute; right: 1.5rem; bottom: 1rem; z-index: 2; color: rgba(241,239,232,.08); font-size: 6rem; font-weight: 800; letter-spacing: -.08em; }

.visual-combat { background: linear-gradient(125deg, #11151c, #0c0f13 70%); }
.visual-combat::before { width: 72%; height: 2px; left: 12%; top: 48%; background: var(--blue); transform: rotate(-15deg); box-shadow: 0 0 25px var(--blue); }
.visual-combat::after { width: 180px; height: 180px; left: 30%; top: 20%; border: 1px solid rgba(106,157,255,.28); border-radius: 50%; }

.visual-creature { background: radial-gradient(circle at 60% 48%, rgba(61,125,244,.15), transparent 33%), #101318; }
.visual-creature::before { width: 240px; height: 150px; left: 22%; top: 25%; border: 1px solid rgba(241,239,232,.18); border-radius: 55% 42% 58% 35%; transform: rotate(-8deg); }
.visual-creature::after { width: 8px; height: 8px; left: 60%; top: 43%; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 18px var(--blue); }

.visual-locomotion { background: repeating-linear-gradient(90deg, transparent 0 49px, rgba(241,239,232,.035) 50px), repeating-linear-gradient(0deg, transparent 0 49px, rgba(241,239,232,.035) 50px), #101318; }
.visual-locomotion::before { width: 70%; height: 1px; left: 15%; bottom: 28%; background: rgba(241,239,232,.28); box-shadow: 85px -40px 0 rgba(61,125,244,.75), 170px -15px 0 rgba(61,125,244,.42); }
.visual-locomotion::after { width: 10px; height: 10px; left: 32%; top: 35%; border: 1px solid var(--blue-bright); border-radius: 50%; box-shadow: 70px 45px 0 -1px #101318, 70px 45px 0 0 rgba(106,157,255,.8), 145px 17px 0 -1px #101318, 145px 17px 0 0 rgba(106,157,255,.6); }

.visual-cinematic { background: linear-gradient(135deg, #121720, #0d1014); }
.visual-cinematic::before { inset: 18% 13%; border: 1px solid rgba(241,239,232,.2); box-shadow: inset 0 0 60px rgba(61,125,244,.08); }
.visual-cinematic::after { left: 13%; right: 13%; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); }

.visual-world { background: radial-gradient(ellipse at center 80%, rgba(61,125,244,.14), transparent 45%), #101318; }
.visual-world::before { width: 300px; height: 110px; left: 18%; bottom: 18%; border-top: 1px solid rgba(241,239,232,.24); border-radius: 50%; transform: rotate(-4deg); }
.visual-world::after { width: 9px; height: 9px; left: 48%; bottom: 43%; background: var(--blue-bright); border-radius: 50%; box-shadow: 0 0 20px var(--blue); }

.visual-mocap { background: repeating-radial-gradient(circle at 55% 48%, transparent 0 28px, rgba(241,239,232,.035) 29px 30px), #101318; }
.visual-mocap::before { width: 1px; height: 150px; left: 52%; top: 18%; background: rgba(241,239,232,.25); transform: rotate(8deg); box-shadow: -43px 45px 0 rgba(61,125,244,.55), 48px 42px 0 rgba(61,125,244,.45); }
.visual-mocap::after { width: 12px; height: 12px; left: calc(52% - 5px); top: 16%; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 20px rgba(61,125,244,.8), -42px 47px 0 -2px #101318, -42px 47px 0 0 var(--blue), 50px 45px 0 -2px #101318, 50px 45px 0 0 var(--blue); }

.work-card-copy { padding: 2rem; }
.card-index { margin-bottom: 1rem; color: var(--blue-bright); font-size: 0.66rem; font-weight: 750; letter-spacing: 0.13em; }
.work-card h3 { max-width: 440px; margin-bottom: 2rem; font-size: clamp(1.65rem, 3vw, 2.55rem); line-height: 1.08; }
.work-card a { display: inline-flex; gap: .5rem; align-items: center; color: var(--muted); font-size: 0.78rem; transition: color 160ms ease; }
.work-card a span { color: var(--blue-bright); }
.work-card a:hover { color: var(--text); }

.capability-band { overflow: hidden; border-block: 1px solid var(--line); background: var(--blue); color: #071025; }
.capability-track { width: max-content; display: flex; align-items: center; gap: 1.4rem; padding: 1.15rem 2rem; font-size: 0.76rem; font-weight: 900; letter-spacing: 0.12em; }
.capability-track i { width: 5px; height: 5px; background: #071025; border-radius: 50%; }

.services-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 9vw; }
.services-intro { position: sticky; top: 130px; align-self: start; }
.services-intro h2 { margin-bottom: 2rem; font-size: clamp(2.8rem, 5vw, 4.7rem); }
.service-list { border-top: 1px solid var(--line); }
.service-list > div { display: grid; grid-template-columns: 48px 1fr; gap: 1.2rem; align-items: baseline; padding: 1.65rem 0; border-bottom: 1px solid var(--line); }
.service-list span { color: var(--blue-bright); font-size: .68rem; font-weight: 750; }
.service-list h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 2.1rem); font-weight: 580; }

.process-grid { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 0; padding: 0; background: var(--line); border: 1px solid var(--line); }
.process-grid li { min-height: 310px; padding: 1.7rem; background: var(--bg); }
.process-grid span { display: block; margin-bottom: 4rem; color: var(--blue-bright); font-size: .72rem; font-weight: 800; }
.process-grid h3 { margin-bottom: 1.3rem; font-size: 1.35rem; line-height: 1.15; }
.process-grid p { margin-bottom: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }

.about { background: #0d1014; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: start; }
.about-copy > p { color: #b8bac0; font-size: clamp(1rem, 1.75vw, 1.22rem); line-height: 1.7; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 4rem; background: var(--line); border: 1px solid var(--line); }
.stats div { min-width: 0; min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem; background: #0d1014; }
.stats strong { font-size: clamp(1.5rem, 2.5vw, 2.3rem); letter-spacing: -.05em; }
.stats span { color: var(--muted); font-size: .7rem; }

.contact { padding: 145px 0 115px; border-top: 1px solid var(--line); background: linear-gradient(140deg, rgba(61,125,244,.12), transparent 45%), #0b0e12; }
.contact-inner h2 { margin-bottom: 2rem; font-size: clamp(4.5rem, 10vw, 9.2rem); line-height: .87; }
.contact-lede { max-width: 650px; color: #b8bac0; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.email-link { font-size: clamp(1rem, 2vw, 1.35rem); border-bottom: 1px solid var(--line-strong); }
.inquiry-list { margin: 3.5rem 0 0; color: #70747d; font-size: .67rem; font-weight: 750; letter-spacing: .13em; }

.site-footer { padding: 2.4rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.footer-inner p { margin: .8rem 0 0; color: #71757d; font-size: .72rem; }
.footer-right { text-align: right; font-size: .78rem; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  :root { --header-height: 70px; }
  .container { width: min(calc(100% - 36px), var(--container)); }
  .section { padding: 110px 0; }
  .desktop-nav, .header-cta { display: none; }
  .header-inner { display: flex; justify-content: space-between; }
  .menu-button { position: relative; display: grid; place-content: center; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
  .menu-button span { display: block; width: 17px; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .mobile-menu { position: fixed; inset: var(--header-height) 0 auto; z-index: 99; display: block; max-height: calc(100vh - var(--header-height)); overflow: auto; border-bottom: 1px solid var(--line); background: rgba(9,11,13,.98); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu-inner { display: flex; flex-direction: column; align-items: stretch; padding-block: 1.2rem 1.5rem; }
  .mobile-menu a:not(.button) { padding: .9rem 0; border-bottom: 1px solid var(--line); color: #b8bac0; }
  .mobile-menu .button { margin-top: 1.1rem; background: var(--blue); color: #071025; }
  .hero { padding-top: 165px; }
  .section-heading { grid-template-columns: 1fr; gap: 2rem; }
  .section-heading > p { max-width: 560px; }
  .services-layout { grid-template-columns: 1fr; gap: 4rem; }
  .services-intro { position: static; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid li { min-height: 250px; }
  .process-grid span { margin-bottom: 2.5rem; }
  .process-grid li:last-child { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 88px 0; }
  .hero { padding-top: 140px; padding-bottom: 80px; }
  .hero::before { width: 300px; height: 300px; top: 80px; right: -190px; }
  h1 { font-size: clamp(3.6rem, 17vw, 5.2rem); }
  h2 { font-size: clamp(2.75rem, 13.5vw, 4rem); }
  .hero-lede { font-size: 1rem; }
  .button-row { align-items: stretch; }
  .button-row .button { width: 100%; }
  .reel-shell { margin-top: 65px; padding: .8rem; }
  .reel-meta { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-visual { height: 220px; }
  .work-card-copy { padding: 1.5rem; }
  .work-card h3 { font-size: 2rem; }
  .capability-track { padding: 1rem 1.2rem; }
  .service-list > div { grid-template-columns: 35px 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li, .process-grid li:last-child { grid-column: auto; min-height: 230px; }
  .stats { grid-template-columns: 1fr; }
  .stats div { min-height: 110px; }
  .contact { padding: 100px 0 85px; }
  .contact-inner h2 { font-size: clamp(4rem, 20vw, 5.8rem); }
  .contact-actions { align-items: flex-start; flex-direction: column; }
  .contact-actions .button { width: 100%; }
  .inquiry-list { line-height: 1.8; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-right { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
