:root {
  color-scheme: dark;
  --bg: #050a16;
  --ink: #f5f8ff;
  --navy: #0f2d6f;
  --navy-soft: #9ab3e8;
  --muted: #a9b2c5;
  --line: rgba(142, 177, 238, 0.18);
  --panel: rgba(9, 18, 38, 0.82);
  --accent: #2f63d6;
  --accent-2: #9abdf6;
  --surface: #08142b;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(47, 99, 214, 0.2), transparent 28%),
    linear-gradient(180deg, #030712 0%, #061634 48%, #030712 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

body.is-loaded .page-loader {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
}

svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #030712;
  color: var(--ink);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-loader span {
  position: relative;
  font-size: clamp(28px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.page-loader span::after {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform-origin: left;
  animation: load-line 1000ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(142, 177, 238, 0.14);
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(18px);
  transform: translateY(-100%);
  animation: nav-drop 900ms 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.brand,
.nav-links,
.hero-actions,
.tools,
.segments,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: clamp(168px, 18vw, 250px);
  height: 36px;
  overflow: hidden;
  align-items: center;
  filter: brightness(0) invert(1);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  gap: clamp(18px, 3vw, 38px);
  color: rgba(245, 248, 255, 0.7);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a:hover {
  color: white;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.icon-button,
.primary-action,
.secondary-action,
.segments button {
  border: 0;
  cursor: pointer;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(142, 177, 238, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.hero {
  position: relative;
  min-height: 85svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #030712;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.5s ease-in-out;
  opacity: 0;
}

.hero-bg img.active {
  opacity: 1;
}


.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.72) 58%, rgba(3, 7, 18, 0.5) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(3, 7, 18, 0) 22%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: min(700px, 100%);
  min-height: 85svh;
  padding: 120px clamp(20px, 5vw, 72px) 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateY(20px);
  animation: rise-in 780ms 540ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.eyebrow span {
  display: inline-grid;
  min-height: 22px;
  margin-left: 8px;
  place-items: center;
  border: 1px solid rgba(154, 189, 246, 0.36);
  border-radius: 999px;
  padding: 0 8px;
  color: white;
  font-size: 10px;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 660px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.95;
  letter-spacing: 0;
  transform: translateY(34px);
  animation: rise-in 900ms 650ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.hero-content > p:not(.eyebrow) {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(245, 248, 255, 0.72);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  transform: translateY(26px);
  animation: rise-in 840ms 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  transform: translateY(22px);
  animation: rise-in 840ms 880ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.primary-action,
.secondary-action {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 34px rgba(47, 99, 214, 0.26);
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.primary-action svg path,
.play-icon svg path {
  fill: currentColor;
  stroke: none;
}

.secondary-action {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(142, 177, 238, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: white;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.primary-action:hover {
  box-shadow: 0 20px 52px rgba(47, 99, 214, 0.36);
}

.secondary-action:hover {
  border-color: rgba(154, 189, 246, 0.54);
  background: rgba(255, 255, 255, 0.12);
}

.hero-ticker {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.64);
  backdrop-filter: blur(16px);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: clamp(26px, 5vw, 72px);
  padding: 14px 0;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  color: rgba(245, 248, 255, 0.68);
  font-size: clamp(14px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.about-section,
.toolbar,
.studio-band {
  display: flex;
  gap: 22px;
  align-items: end;
  justify-content: space-between;
  padding: 34px clamp(18px, 4vw, 54px) 22px;
}

.about-section {
  align-items: stretch;
  gap: clamp(24px, 5vw, 72px);
  padding-top: 78px;
  padding-bottom: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(47, 99, 214, 0.12), transparent 32%),
    #06142f;
}

.about-copy {
  max-width: 520px;
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.about-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(245, 248, 255, 0.72);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.72;
}

.about-details {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: min(100%, 560px);
}

.about-details article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    transform 240ms ease;
}

.about-details article:hover {
  border-color: rgba(154, 189, 246, 0.38);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}

.about-details h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.about-details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.toolbar h2,
.studio-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
}

.toolbar {
  position: sticky;
  z-index: 12;
  top: 72px;
  background: rgba(5, 10, 22, 0.86);
  backdrop-filter: blur(18px);
}

.tools {
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.search-box {
  display: flex;
  align-items: center;
  width: min(280px, 100%);
  min-height: 42px;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 248, 255, 0.62);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}

.segments {
  min-height: 42px;
  padding: 4px;
  border: 1px solid rgba(142, 177, 238, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  overflow-x: auto;
  scrollbar-width: none;
}

.segments::-webkit-scrollbar {
  display: none;
}

.segments button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 17px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 900;
  transition:
    background 200ms ease,
    color 200ms ease,
    outline-color 200ms ease,
    transform 200ms ease;
}

.segments button.active {
  outline: 3px solid rgba(154, 189, 246, 0.86);
  background: var(--accent);
  color: white;
}

.segments button:hover {
  transform: translateY(-1px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 18px;
  padding: 0 clamp(18px, 4vw, 54px) 72px;
  perspective: 1200px;
}

.video-card {
  min-width: 0;
  transform: translateY(42px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  will-change: transform;
}

.video-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.video-card.hidden {
  display: none;
}

.poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #091226;
  color: white;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transform: translate3d(0, 0, 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition:
    box-shadow 260ms ease,
    transform 260ms ease;
}

.poster img,
.poster video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 260ms ease,
    opacity 260ms ease;
}

.poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.48));
  transition: opacity 240ms ease;
}

.poster:hover img,
.poster:hover video {
  transform: scale(1.045);
  opacity: 0.86;
}

.poster:hover {
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.poster:hover::after {
  opacity: 0.72;
}

.duration {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  border-radius: 5px;
  padding: 4px 7px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.play-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #070909;
  transform: translate(-50%, -50%);
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.poster:hover .play-icon {
  background: var(--accent);
  color: white;
  transform: translate(-50%, -50%) scale(1.08);
}

.card-copy {
  padding-top: 13px;
  transform: translateY(0);
  transition: transform 220ms ease;
}

.video-card:hover .card-copy {
  transform: translateY(4px);
}

.card-copy p,
.modal-copy p {
  margin: 0 0 5px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
}

/* VDO-AI: no text under the video — grid of posters only */
.video-card[data-category="vdo-ai"] .card-copy {
  display: none;
}

.studio-band {
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #081326;
  color: white;
  overflow: hidden;
}

.studio-band > div {
  max-width: 740px;
}

.studio-band dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 14px;
  margin: 0;
}

.studio-band dt {
  color: var(--accent);
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
  transform: translateY(0);
  transition: transform 240ms ease;
}

.studio-band dl > div:hover dt {
  transform: translateY(-4px);
}

.studio-band dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 54px);
  background: #030712;
  color: rgba(255, 255, 255, 0.68);
}

.footer p {
  margin: 0;
  color: white;
  font-weight: 850;
}

.modal {
  width: min(1080px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  background: transparent;
  color: white;
}

.reveal {
  transform: translateY(42px);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes load-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes nav-drop {
  to {
    transform: translateY(0);
  }
}

@keyframes rise-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes ticker {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes grid-drift {
  to {
    background-position: 54px 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .ticker-track {
    animation: none;
  }
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #081b3f;
}

.close-modal {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.58);
}

.modal video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.modal-copy {
  padding: 18px;
}

.modal-copy h2 {
  margin: 0;
}

@media (max-width: 940px) {
  .about-section,
  .toolbar,
  .studio-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .tools {
    width: 100%;
    justify-content: flex-start;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-details {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 64px;
    padding-inline: 14px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 58svh;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 7, 18, 0.96) 0%, rgba(6, 22, 52, 0.86) 60%, rgba(7, 26, 61, 0.58) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(3, 7, 18, 0) 18%);
  }

  .hero-content {
    padding: 96px 18px 70px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .toolbar {
    padding-top: 28px;
  }

  .about-section {
    padding-top: 50px;
  }

  .search-box,
  .segments {
    width: 100%;
    justify-content: flex-start;
  }

  .segments button {
    padding-inline: 12px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .studio-band dl {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== Sub-pages: About & Contact ===== */
.page-head {
  position: relative;
  min-height: 44svh;
  display: grid;
  align-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 120px clamp(20px, 5vw, 72px) 44px;
  background:
    radial-gradient(circle at 82% 8%, rgba(47, 99, 214, 0.22), transparent 30%),
    linear-gradient(180deg, #04102a 0%, #05122e 100%);
}

.page-head h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 70px);
  line-height: 0.98;
  transform: translateY(30px);
  opacity: 0;
  animation: rise-in 820ms 640ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-head p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(245, 248, 255, 0.72);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
  transform: translateY(24px);
  opacity: 0;
  animation: rise-in 800ms 740ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-section {
  display: flex;
  gap: clamp(24px, 5vw, 72px);
  align-items: stretch;
  justify-content: space-between;
  padding: 78px clamp(18px, 4vw, 54px) 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(315deg, rgba(47, 99, 214, 0.12), transparent 32%),
    #06142f;
}

.about-details a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}

.about-details a:hover {
  color: white;
}

@media (max-width: 940px) {
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .page-head {
    min-height: auto;
    padding: 96px 18px 40px;
  }

  .contact-section {
    padding: 50px 18px 64px;
  }
}
