/* Portal 9 — white + dark purple, Runway-inspired layout */

:root {
  --bg: #ffffff;
  --bg-soft: #faf9fc;
  --bg-elevated: #f5f3f8;
  --bg-card: #ffffff;
  --border: rgba(59, 45, 92, 0.12);
  --border-strong: rgba(59, 45, 92, 0.22);
  --text: #1a1528;
  --text-muted: #5c5470;
  --text-dim: #8a849c;
  --purple: #3b2d5c;
  --purple-dark: #2a2042;
  --purple-soft: rgba(59, 45, 92, 0.08);
  --purple-glow: rgba(74, 53, 104, 0.15);
  --accent: #4a3568;
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --header-h: 88px;
  --header-bg: #000000;
  --header-border: rgba(255, 255, 255, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #111111;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --purple-soft: rgba(255, 255, 255, 0.08);
  --purple-glow: rgba(255, 255, 255, 0.12);
  --purple: #d4c8e8;
  --purple-dark: #e8e0f4;
  --accent: #c4b5dc;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }

.page-main {
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* Header — black bar, full width, all pages */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.site-header--scrolled {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.nav-main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: inline-flex; flex-shrink: 0; line-height: 0; }
.logo-img--nav { height: 55px; width: auto; }

/* Nav on black header */
.site-header .nav-links > li > a,
.site-header .nav-dropdown-trigger {
  color: rgba(255, 255, 255, 0.72);
}

.site-header .nav-links a:hover,
.site-header .nav-dropdown-trigger:hover,
.site-header .nav-links a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.site-header .nav-link-quiet {
  color: rgba(255, 255, 255, 0.72);
}

.site-header .nav-link-quiet:hover {
  color: #ffffff;
}

.site-header .menu-toggle span {
  background: #ffffff;
}

.site-header .btn-primary {
  background: #ffffff;
  color: #000000;
}

.site-header .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
}

.site-header .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.site-header .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links > li > a,
.nav-dropdown-trigger {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-item--dropdown { position: static; }

.nav-submenu {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  width: 100%;
  box-sizing: border-box;
  padding: 24px clamp(20px, 4vw, 48px) 32px;
  padding-left: max(clamp(20px, 4vw, 48px), calc((100vw - 1400px) / 2 + clamp(20px, 4vw, 48px)));
  padding-right: max(clamp(20px, 4vw, 48px), calc((100vw - 1400px) / 2 + clamp(20px, 4vw, 48px)));
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transform-origin: top center;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 200;
}

.nav-item--dropdown:hover .nav-submenu,
.nav-item--dropdown.is-open .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu-link {
  display: block;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  transition: color 0.2s, box-shadow 0.2s;
}

.nav-submenu-link:hover,
.nav-submenu-link:focus-visible {
  color: #ffffff;
}

.nav-submenu-link--logo {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.nav-submenu-link--logo img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.nav-submenu .nav-submenu-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 4px 0;
}

.nav-submenu-all {
  grid-column: 1 / -1;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Purple hover glow — clickables site-wide */
a,
button,
.btn,
.pill,
.product-card,
.flow-thumb,
.flow-dot,
.video-card,
.product-ticker-item {
  transition: box-shadow 0.2s var(--ease), color 0.2s, background 0.2s, transform 0.2s;
}

a:hover,
a:focus-visible,
button:hover,
button:focus-visible,
.btn:hover,
.btn:focus-visible,
.pill:hover,
.pill:focus-visible,
.product-card:hover,
.product-card:focus-visible,
.flow-thumb:hover,
.flow-thumb:focus-visible,
.flow-dot:hover,
.flow-dot:focus-visible,
.nav-submenu-link:hover,
.nav-submenu-link:focus-visible,
.video-card:hover,
.video-card:focus-visible,
.site-footer .footer-col a:hover,
.site-footer .footer-col a:focus-visible,
.product-ticker-item:hover,
.product-ticker-item:focus-visible {
  box-shadow: 0 0 18px rgba(74, 53, 104, 0.45);
}

/* Home product ticker */
.ticker-intro {
  max-width: 1300px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 48px) 4px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.85;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.product-ticker {
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.product-ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.product-ticker-track--ready {
  animation: product-ticker-scroll 30s linear infinite;
}

.product-ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 40px;
  padding: 0 20px;
}

.product-ticker-item {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 8px;
}

.product-ticker-item:hover,
.product-ticker-item:focus-visible {
  color: var(--purple);
}

.product-ticker-item--logo {
  padding: 4px 10px;
  line-height: 0;
}

.product-ticker-item--logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: center;
}

.product-ticker-item--logo[href$="#5th-wall"] img,
.product-ticker-item--logo[href$="#project-iris"] img,
.product-ticker-item--logo[href*="products/5th-wall"] img,
.product-ticker-item--logo[href*="products/project-iris"] img {
  height: 56px;
  max-width: 210px;
}

.product-ticker-item--logo[href*="dats.agency"] img {
  width: 64px;
  height: 64px;
  max-width: 64px;
  object-fit: contain;
}

.product-ticker-item--logo[href*="scripte"] img {
  height: 40px;
  max-width: 180px;
}

.product-ticker-item--logo[href*="design-flow.io"] img {
  height: 48px;
  max-width: 180px;
}

.product-ticker-item--logo[href$="#miira-motion"] img,
.product-ticker-item--logo[href*="products/miira-motion"] img {
  height: 44px;
  max-width: 240px;
}

.product-ticker-item--logo:hover,
.product-ticker-item--logo:focus-visible {
  color: inherit;
  opacity: 0.75;
}

@keyframes product-ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--ticker-scroll-distance, 50%)), 0, 0); }
}

.footer-product-link--logo {
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}

.footer-product-link--logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.25s, opacity 0.25s;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover { background: var(--purple-soft); }

.btn-hero { margin-top: 32px; padding: 14px 28px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--purple);
  font-weight: 500;
}

.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translate(2px, -2px); }

/* Hero */
.hero {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(20px, 4vw, 48px) 32px;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
  container-name: hero-bg;
  background: #000;
}

.hero-video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1300px);
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.hero-video-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}

.hero-video-layer.is-active {
  opacity: 1;
}

.hero-video-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--hero-video-ar, 1.777);
  max-width: 100%;
  border: 0;
  pointer-events: none;
  object-fit: cover;
}

.hero-video-mobile {
  display: none;
}

.hero-video-mobile-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}

.hero-fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: block;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.1;
  z-index: 1;
  animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 50vw; max-width: 500px; aspect-ratio: 1;
  top: 5%; right: -5%;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
}

.hero-orb-2 {
  width: 35vw; max-width: 380px; aspect-ratio: 1;
  bottom: 15%; left: -5%;
  background: radial-gradient(circle, rgba(107, 78, 150, 0.12), transparent 70%);
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -20px); }
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: block;
  white-space: nowrap;
  color: rgba(255, 255, 255, 1);
}
.hero-title .line-accent { font-style: italic; color: rgba(255, 255, 255, 1); }

.page-home .hero-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.page-home.is-loaded .hero-animate--1 { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.page-home.is-loaded .hero-animate--2 { transition-delay: 120ms; opacity: 1; transform: translateY(0); }
.page-home.is-loaded .hero-animate--3 { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.page-home.is-loaded .hero-animate--4 { transition-delay: 360ms; opacity: 1; transform: translateY(0); }

.hero-sub {
  margin-top: 20px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 1);
  width: fit-content;
  white-space: nowrap;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 48px;
  position: relative;
  z-index: 2;
}

@media (min-width: 769px) {
  .page-home .hero {
    margin-top: 24px;
    margin-bottom: 32px;
    border-radius: 28px;
    min-height: unset;
    height: auto;
    aspect-ratio: 16 / 9;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0;
  }

  .page-home .hero-bg {
    border-radius: inherit;
  }

  .page-home .hero-content {
    position: absolute;
    z-index: 3;
    bottom: clamp(36px, 5vw, 56px);
    left: clamp(36px, 5vw, 64px);
    max-width: min(480px, 52%);
  }

  .page-home .hero-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.06;
  }

  .page-home .hero-sub {
    margin-top: 14px;
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    line-height: 1.45;
  }

  .page-home .btn-hero {
    margin-top: 22px;
    padding: 12px 24px;
    font-size: 13px;
  }

  .page-home .hero-video {
    inset: 0;
    left: 0;
    width: 100%;
    transform: none;
  }

  .page-home .hero-video-layer {
    align-items: stretch;
    justify-content: stretch;
  }

  .page-home .hero-video-media {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    aspect-ratio: unset;
    object-fit: cover;
  }

  .page-home .hero-video-overlay {
    background: linear-gradient(
      180deg,
      transparent 35%,
      rgba(0, 0, 0, 0.45) 100%
    );
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.pill:hover {
  color: var(--purple);
  border-color: var(--border-strong);
  background: var(--purple-soft);
}

.pill .arrow { font-size: 11px; opacity: 0.5; }

/* Page hero (inner pages) */
.page-hero {
  padding: 64px clamp(20px, 4vw, 48px) 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* Sections */
section {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.section-label, .section-kicker {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 40px;
}

/* Product grid */
/* Animated mesh gradient — reusable via .mesh-gradient or built into card/CTA classes */
@property --mesh-lx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 55%;
}

@property --mesh-ly {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 35%;
}

.mesh-gradient,
.product-card,
.feature-card,
.cta-inner {
  --mesh-dur-a: 16s;
  --mesh-dur-b: 20s;
  --mesh-dur-c: 23s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 52% 44% at var(--mesh-lx) var(--mesh-ly), rgba(196, 178, 228, 0.58) 0%, rgba(150, 132, 190, 0.28) 36%, transparent 66%),
    radial-gradient(ellipse 130% 90% at 85% 15%, rgba(59, 45, 92, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 10% 90%, rgba(42, 32, 66, 0.35) 0%, transparent 50%),
    #08060f;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f3f8;
  animation: mesh-light-drift var(--mesh-dur-c) ease-in-out infinite alternate;
}

.mesh-gradient::before,
.mesh-gradient::after,
.product-card::before,
.product-card::after,
.feature-card::before,
.feature-card::after,
.cta-inner::before,
.cta-inner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.mesh-gradient::before,
.product-card::before,
.feature-card::before,
.cta-inner::before {
  width: 75%;
  height: 75%;
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, rgba(74, 53, 104, 0.95) 0%, rgba(59, 45, 92, 0.45) 42%, transparent 72%);
  animation: mesh-drift-a var(--mesh-dur-a) ease-in-out infinite alternate;
}

.mesh-gradient::after,
.product-card::after,
.feature-card::after,
.cta-inner::after {
  width: 70%;
  height: 70%;
  bottom: -22%;
  right: -18%;
  background: radial-gradient(circle, rgba(42, 32, 66, 0.92) 0%, rgba(20, 14, 32, 0.5) 48%, transparent 74%);
  animation: mesh-drift-b var(--mesh-dur-b) ease-in-out infinite alternate;
}

.mesh-gradient > *,
.product-card > *,
.feature-card > *,
.cta-inner > * {
  position: relative;
  z-index: 1;
}

/* Unique timelines per card — durations, delays, paths, and directions */
.product-grid .product-card:nth-child(1) { --mesh-dur-a: 14s; --mesh-dur-b: 19s; --mesh-dur-c: 27s; animation-name: mesh-light-drift; animation-delay: -3s; }
.product-grid .product-card:nth-child(1)::before { animation-delay: -1s; }
.product-grid .product-card:nth-child(1)::after { animation-delay: -11s; animation-direction: alternate-reverse; }

.product-grid .product-card:nth-child(2) { --mesh-dur-a: 18s; --mesh-dur-b: 24s; --mesh-dur-c: 21s; animation-name: mesh-light-drift-2; animation-delay: -8s; }
.product-grid .product-card:nth-child(2)::before { animation-name: mesh-drift-a2; animation-delay: -6s; }
.product-grid .product-card:nth-child(2)::after { animation-name: mesh-drift-b2; animation-delay: -14s; }

.product-grid .product-card:nth-child(3) { --mesh-dur-a: 16s; --mesh-dur-b: 22s; --mesh-dur-c: 29s; animation-name: mesh-light-drift-3; animation-delay: -15s; }
.product-grid .product-card:nth-child(3)::before { animation-name: mesh-drift-a3; animation-delay: -4s; animation-direction: alternate-reverse; }
.product-grid .product-card:nth-child(3)::after { animation-delay: -9s; }

.product-grid .product-card:nth-child(4) { --mesh-dur-a: 20s; --mesh-dur-b: 17s; --mesh-dur-c: 25s; animation-name: mesh-light-drift-2; animation-delay: -5s; animation-direction: alternate-reverse; }
.product-grid .product-card:nth-child(4)::before { animation-delay: -12s; }
.product-grid .product-card:nth-child(4)::after { animation-name: mesh-drift-b3; animation-delay: -2s; animation-direction: alternate-reverse; }

.product-grid .product-card:nth-child(5) { --mesh-dur-a: 15s; --mesh-dur-b: 26s; --mesh-dur-c: 19s; animation-name: mesh-light-drift-3; animation-delay: -18s; }
.product-grid .product-card:nth-child(5)::before { animation-name: mesh-drift-a2; animation-delay: -7s; }
.product-grid .product-card:nth-child(5)::after { animation-name: mesh-drift-b2; animation-delay: -16s; animation-direction: alternate-reverse; }

.product-grid .product-card:nth-child(6) { --mesh-dur-a: 23s; --mesh-dur-b: 18s; --mesh-dur-c: 31s; animation-name: mesh-light-drift; animation-delay: -10s; }
.product-grid .product-card:nth-child(6)::before { animation-name: mesh-drift-a3; animation-delay: -13s; }
.product-grid .product-card:nth-child(6)::after { animation-delay: -5s; animation-direction: alternate-reverse; }

.product-grid .product-card:nth-child(7) { --mesh-dur-a: 17s; --mesh-dur-b: 21s; --mesh-dur-c: 24s; animation-name: mesh-light-drift-2; animation-delay: -22s; }
.product-grid .product-card:nth-child(7)::before { animation-delay: -9s; animation-direction: alternate-reverse; }
.product-grid .product-card:nth-child(7)::after { animation-name: mesh-drift-b3; animation-delay: -17s; }

.product-grid .product-card:nth-child(8) { --mesh-dur-a: 22s; --mesh-dur-b: 15s; --mesh-dur-c: 28s; animation-name: mesh-light-drift-3; animation-delay: -6s; animation-direction: alternate-reverse; }
.product-grid .product-card:nth-child(8)::before { animation-name: mesh-drift-a2; animation-delay: -15s; animation-direction: alternate-reverse; }
.product-grid .product-card:nth-child(8)::after { animation-name: mesh-drift-b2; animation-delay: -8s; }

.development-cards .product-card:nth-child(1),
.research-cards .product-card:nth-child(1) { --mesh-dur-a: 13s; --mesh-dur-b: 20s; --mesh-dur-c: 26s; animation-name: mesh-light-drift-2; animation-delay: -4s; }
.development-cards .product-card:nth-child(1)::before,
.research-cards .product-card:nth-child(1)::before { animation-name: mesh-drift-a3; animation-delay: -10s; }
.development-cards .product-card:nth-child(1)::after,
.research-cards .product-card:nth-child(1)::after { animation-delay: -6s; animation-direction: alternate-reverse; }

.development-cards .product-card:nth-child(2),
.research-cards .product-card:nth-child(2) { --mesh-dur-a: 19s; --mesh-dur-b: 16s; --mesh-dur-c: 22s; animation-name: mesh-light-drift-3; animation-delay: -14s; }
.development-cards .product-card:nth-child(2)::before,
.research-cards .product-card:nth-child(2)::before { animation-delay: -3s; animation-direction: alternate-reverse; }
.development-cards .product-card:nth-child(2)::after,
.research-cards .product-card:nth-child(2)::after { animation-name: mesh-drift-b2; animation-delay: -12s; }

.development-cards .product-card:nth-child(3),
.research-cards .product-card:nth-child(3) { --mesh-dur-a: 21s; --mesh-dur-b: 25s; --mesh-dur-c: 18s; animation-name: mesh-light-drift; animation-delay: -9s; animation-direction: alternate-reverse; }
.development-cards .product-card:nth-child(3)::before,
.research-cards .product-card:nth-child(3)::before { animation-name: mesh-drift-a2; animation-delay: -16s; }
.development-cards .product-card:nth-child(3)::after,
.research-cards .product-card:nth-child(3)::after { animation-name: mesh-drift-b3; animation-delay: -1s; animation-direction: alternate-reverse; }

.development-cards .product-card:nth-child(4),
.research-cards .product-card:nth-child(4) { --mesh-dur-a: 16s; --mesh-dur-b: 23s; --mesh-dur-c: 30s; animation-name: mesh-light-drift-2; animation-delay: -20s; }
.development-cards .product-card:nth-child(4)::before,
.research-cards .product-card:nth-child(4)::before { animation-name: mesh-drift-a3; animation-delay: -7s; animation-direction: alternate-reverse; }
.development-cards .product-card:nth-child(4)::after,
.research-cards .product-card:nth-child(4)::after { animation-delay: -13s; }

.development-cards .product-card:nth-child(5) { --mesh-dur-a: 17s; --mesh-dur-b: 21s; --mesh-dur-c: 24s; animation-name: mesh-light-drift-3; animation-delay: -11s; }
.development-cards .product-card:nth-child(5)::before { animation-name: mesh-drift-a2; animation-delay: -5s; }
.development-cards .product-card:nth-child(5)::after { animation-name: mesh-drift-b3; animation-delay: -15s; animation-direction: alternate-reverse; }

.feature-grid .feature-card:nth-child(1) { --mesh-dur-a: 15s; --mesh-dur-b: 22s; --mesh-dur-c: 20s; animation-name: mesh-light-drift-3; animation-delay: -11s; }
.feature-grid .feature-card:nth-child(1)::before { animation-name: mesh-drift-a2; animation-delay: -5s; }
.feature-grid .feature-card:nth-child(1)::after { animation-name: mesh-drift-b3; animation-delay: -18s; animation-direction: alternate-reverse; }

.feature-grid .feature-card:nth-child(2) { --mesh-dur-a: 24s; --mesh-dur-b: 17s; --mesh-dur-c: 26s; animation-name: mesh-light-drift; animation-delay: -7s; animation-direction: alternate-reverse; }
.feature-grid .feature-card:nth-child(2)::before { animation-name: mesh-drift-a3; animation-delay: -14s; animation-direction: alternate-reverse; }
.feature-grid .feature-card:nth-child(2)::after { animation-name: mesh-drift-b2; animation-delay: -3s; }

.feature-grid .feature-card:nth-child(3) { --mesh-dur-a: 18s; --mesh-dur-b: 27s; --mesh-dur-c: 23s; animation-name: mesh-light-drift-2; animation-delay: -16s; }
.feature-grid .feature-card:nth-child(3)::before { animation-delay: -8s; }
.feature-grid .feature-card:nth-child(3)::after { animation-name: mesh-drift-b3; animation-delay: -21s; animation-direction: alternate-reverse; }

.cta-inner { --mesh-dur-a: 25s; --mesh-dur-b: 19s; --mesh-dur-c: 32s; animation-name: mesh-light-drift-3; animation-delay: -12s; }
.cta-inner::before { animation-name: mesh-drift-a2; animation-delay: -6s; animation-direction: alternate-reverse; }
.cta-inner::after { animation-name: mesh-drift-b2; animation-delay: -19s; }

@keyframes mesh-drift-a {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(28%, 22%) scale(1.18); }
  100% { transform: translate(12%, 38%) scale(0.92); }
}

@keyframes mesh-drift-a2 {
  0% { transform: translate(5%, -8%) scale(1.05); }
  45% { transform: translate(-22%, 30%) scale(0.9); }
  100% { transform: translate(35%, 12%) scale(1.2); }
}

@keyframes mesh-drift-a3 {
  0% { transform: translate(-10%, 15%) scale(0.95); }
  40% { transform: translate(18%, -20%) scale(1.15); }
  100% { transform: translate(-28%, 8%) scale(1.08); }
}

@keyframes mesh-drift-b {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-32%, -28%) scale(1.22); }
  100% { transform: translate(-18%, -12%) scale(0.88); }
}

@keyframes mesh-drift-b2 {
  0% { transform: translate(8%, -12%) scale(1.1); }
  55% { transform: translate(25%, 18%) scale(0.86); }
  100% { transform: translate(-20%, -25%) scale(1.18); }
}

@keyframes mesh-drift-b3 {
  0% { transform: translate(-15%, 10%) scale(0.92); }
  35% { transform: translate(12%, 32%) scale(1.24); }
  100% { transform: translate(30%, -18%) scale(0.84); }
}

@keyframes mesh-light-drift {
  0% { --mesh-lx: 78%; --mesh-ly: 22%; }
  33% { --mesh-lx: 24%; --mesh-ly: 68%; }
  66% { --mesh-lx: 62%; --mesh-ly: 84%; }
  100% { --mesh-lx: 38%; --mesh-ly: 42%; }
}

@keyframes mesh-light-drift-2 {
  0% { --mesh-lx: 18%; --mesh-ly: 55%; }
  40% { --mesh-lx: 82%; --mesh-ly: 28%; }
  70% { --mesh-lx: 48%; --mesh-ly: 12%; }
  100% { --mesh-lx: 66%; --mesh-ly: 72%; }
}

@keyframes mesh-light-drift-3 {
  0% { --mesh-lx: 52%; --mesh-ly: 8%; }
  30% { --mesh-lx: 12%; --mesh-ly: 38%; }
  65% { --mesh-lx: 88%; --mesh-ly: 58%; }
  100% { --mesh-lx: 32%; --mesh-ly: 88%; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 48px;
}

.product-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(74, 53, 104, 0.35);
}

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.product-card p { font-size: 14px; color: rgba(255, 255, 255, 0.72); }

/* Product spotlight (home) */
.product-spotlight {
  padding-top: 48px;
  padding-bottom: 80px;
}

.product-spotlight-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
  text-align: center;
}

.product-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.product-spotlight-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-spotlight-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text);
}

.product-spotlight-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1;
}

.product-spotlight-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.product-spotlight-logo-intro {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  transition: opacity 0.4s var(--ease);
}

.product-spotlight-logo-intro img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18%;
  transition: filter 0.35s var(--ease);
}

.product-spotlight-card-media--logo-lg-intro .product-spotlight-logo-intro img {
  padding: 6%;
  transform: scale(1.75);
}

.product-spotlight-card-media:not(.is-video-ready) video {
  opacity: 0;
}

.product-spotlight-card-media.is-video-ready .product-spotlight-logo-intro {
  opacity: 0;
  pointer-events: none;
}

.product-spotlight-card-media img,
.product-spotlight-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s var(--ease), filter 0.35s var(--ease);
}

.product-spotlight-card-media--logo img {
  object-fit: contain;
  padding: 18%;
}

.product-spotlight-card-media--logo-lg img {
  padding: 6%;
  transform: scale(1.75);
}

.product-spotlight-card-media:hover img,
.product-spotlight-card-media:hover video,
.product-spotlight-card-media:hover .product-spotlight-logo-intro img,
.product-spotlight-card-media:focus-within img,
.product-spotlight-card-media:focus-within video,
.product-spotlight-card-media:focus-within .product-spotlight-logo-intro img {
  filter: blur(8px);
}

.product-spotlight-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.product-spotlight-card-media:hover .product-spotlight-media-overlay,
.product-spotlight-card-media:focus-within .product-spotlight-media-overlay {
  opacity: 1;
  pointer-events: auto;
}

.product-spotlight-media-overlay .product-spotlight-btn {
  transform: translateY(10px);
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.product-spotlight-card-media:hover .product-spotlight-media-overlay .product-spotlight-btn,
.product-spotlight-card-media:focus-within .product-spotlight-media-overlay .product-spotlight-btn {
  transform: translateY(0);
}

.product-spotlight-media-overlay .product-spotlight-btn--secondary {
  background: rgba(255, 255, 255, 0.95);
}

.product-spotlight-card-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  min-height: 42px;
  align-items: center;
  justify-content: start;
}

.product-spotlight-card-actions-spacer {
  width: 88px;
}

.product-spotlight-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.product-spotlight-btn--primary {
  background: #000;
  color: #fff;
}

.product-spotlight-btn--primary:hover {
  background: var(--purple-dark);
  color: #fff;
}

.product-spotlight-btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.product-spotlight-btn--secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 100px;
}

.feature-card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(74, 53, 104, 0.35);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #fff;
}

.feature-card p { font-size: 14px; color: rgba(255, 255, 255, 0.72); }

/* Flow strip (static fallback) */
.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 100px;
}

.flow-showcase-static {
  display: none;
}

.flow-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.flow-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.flow-item figcaption {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
  background: var(--bg-soft);
}

/* Design Flow animated showcase */
.flow-showcase {
  padding-bottom: 100px;
}

.flow-showcase-motion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flow-viewer {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.flow-viewer-slides {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

.flow-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.flow-slide.is-active {
  opacity: 1;
}

.flow-viewer-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(59, 45, 92, 0.12) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  opacity: 0;
}

.flow-viewer-shimmer.is-shimmering {
  animation: flowShimmer 0.6s var(--ease);
}

@keyframes flowShimmer {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.flow-stage-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.flow-progress {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.flow-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.flow-dot.is-active {
  background: var(--purple);
  transform: scale(1.15);
}

.flow-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.flow-thumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
  font-family: inherit;
  text-align: left;
}

.flow-thumb.is-active {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple);
}

.flow-thumb img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.flow-thumb span {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--purple);
  background: var(--bg-soft);
}

/* Development (homepage) & legacy research layout */
.development,
.research {
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.development-header {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.development-visual {
  margin: 20px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.development-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.development-header .link-arrow {
  margin-top: 0;
}

.development-header h2,
.research-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 20px;
}

.development-header p,
.research-header p { color: var(--text-muted); margin-bottom: 20px; }

.development-category {
  padding: 0 clamp(20px, 4vw, 48px) 64px;
  max-width: 1100px;
  margin: 0 auto;
  scroll-margin-top: calc(var(--header-h) + 56px);
}

.development-category-logo {
  margin-bottom: 16px;
}

.development-category-logo img {
  display: block;
  width: min(320px, 80%);
  height: auto;
}

.development-page {
  padding-bottom: 48px;
}

/* Showcase blocks */
.showcase-page { padding-bottom: 80px; }

.showcase-page--products {
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.page-projects .page-hero {
  max-width: 1100px;
}

.product-back-link {
  padding: 0 clamp(20px, 4vw, 48px);
  max-width: 1100px;
  margin: 0 auto 8px;
}

.page-product-detail .showcase-page--products {
  padding-top: 0;
}

@media (max-width: 1024px) {
  .page-projects .products-overview-grid {
    display: block;
    padding-bottom: 48px;
  }

  .page-projects .product-overview-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding: 56px 0;
    border-top: 1px solid var(--border);
  }

  .page-projects .product-overview-logo {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 438px;
  }

  .page-projects .product-overview-logo img {
    display: block;
    width: min(676px, 90%);
    max-width: 676px;
    height: auto;
    object-fit: contain;
  }

  .page-projects #miira-motion .product-overview-logo img,
  .page-projects #5th-wall .product-overview-logo img,
  .page-projects #project-iris .product-overview-logo img {
    width: min(1183px, 95%);
    max-width: 1183px;
  }

  .page-projects #product-overview-dats .product-overview-logo {
    min-height: 220px;
  }

  .page-projects #product-overview-dats .product-overview-logo img {
    width: min(211px, 28%);
    max-width: 211px;
  }

  .page-projects .product-overview-copy h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 16px;
  }

  .page-projects .product-overview-copy .showcase-tagline {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--purple);
    margin: -4px 0 16px;
  }

  .page-projects .product-overview-btn {
    justify-self: start;
  }
}

@media (min-width: 1025px) {
  .page-projects .products-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-bottom: 80px;
  }

  .page-projects .product-overview-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
  }

  .page-projects .product-overview-card:first-child {
    padding-top: 24px;
  }

  .page-projects .product-overview-logo {
    flex-shrink: 0;
    width: 112px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-projects .product-overview-logo img {
    width: 100%;
    max-width: 112px;
    max-height: 72px;
    object-fit: contain;
  }

  .page-projects #product-overview-dats .product-overview-logo img {
    width: auto;
    height: auto;
    max-width: 112px;
    max-height: 72px;
    object-fit: contain;
  }

  .page-projects .product-overview-copy {
    flex: 1;
    min-width: 0;
  }

  .page-projects .product-overview-copy h2 {
    font-size: 1.15rem;
  }

  .page-projects .product-overview-copy .showcase-tagline {
    font-size: 13px;
  }

  .page-projects .product-overview-btn {
    flex-shrink: 0;
    white-space: nowrap;
    justify-self: auto;
  }
}

.showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.showcase-block-reverse { direction: rtl; }
.showcase-block-reverse > * { direction: ltr; }

.showcase-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--purple-soft);
  min-height: 280px;
}

.showcase-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

.showcase-visual--logo {
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 438px;
}

.showcase-visual--logo img {
  width: min(676px, 90%);
  max-width: 676px;
  height: auto;
  max-height: none;
  object-fit: contain;
  min-height: unset;
}

#miira-motion .showcase-visual--logo img,
#5th-wall .showcase-visual--logo img,
#project-iris .showcase-visual--logo img {
  width: min(1183px, 95%);
  max-width: 1183px;
}

#dats .showcase-visual--logo {
  min-height: 220px;
}

#dats .showcase-visual--logo img {
  width: min(211px, 28%);
  max-width: 211px;
}

.showcase-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--purple);
  margin: -4px 0 16px;
}

.showcase-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 16px;
}

.showcase-copy p { color: var(--text-muted); margin-bottom: 20px; }

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 100px;
}

.video-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}

.video-card-media {
  position: relative;
  overflow: hidden;
  background: #000;
}

.video-card-media video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  transition: transform 0.4s var(--ease);
}

.video-card-media--embed {
  padding-top: 41.88%;
}

.video-card-media--embed-16x9 {
  padding-top: 56.25%;
}

.video-card-media--embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card:hover .video-card-media video {
  transform: scale(1.02);
}

.video-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  background: rgba(26, 21, 40, 0.25);
}

.video-play-icon::before {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(59, 45, 92, 0.35);
}

.video-play-icon::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--purple);
}

.video-card:hover .video-play-icon {
  opacity: 1;
}

.video-card h3 {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--purple);
}

/* Media grid (showcase categories) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 100px;
}

.media-card {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--purple-soft), var(--bg-soft));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
}

.media-card:not(.media-card--stl-viewer)::before {
  content: "Coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  pointer-events: none;
}

.media-card span { font-size: 14px; font-weight: 500; color: var(--text-muted); position: relative; z-index: 1; }

.media-card--stl-viewer {
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: grab;
}

.media-card--stl-viewer:active { cursor: grabbing; }

.media-card--stl-viewer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.media-card--stl-viewer .stl-viewer-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg-soft) 30%, transparent);
}

.media-card--stl-viewer .stl-viewer-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.media-card--stl-viewer.is-loaded .stl-viewer-status,
.media-card--stl-viewer.is-error .stl-viewer-status {
  opacity: 0;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding-bottom: 100px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.contact-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  margin: 28px 0 8px;
}

.contact-info h3:first-child { margin-top: 0; }
.contact-info p, .contact-info address { font-size: 14px; color: var(--text-muted); font-style: normal; }

.contact-info a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover { text-decoration: underline; }

.contact-success {
  padding: 48px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--purple-soft);
}

.contact-success h2 { color: var(--purple); margin-bottom: 8px; }

/* Login */
.login-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: 0 20px 60px var(--purple-glow);
}

.login-card h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.login-disclaimer {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 20px;
  line-height: 1.5;
}

.login-disclaimer a {
  color: var(--purple);
  text-decoration: underline;
}

.form-message {
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.form-message--error {
  color: #9b2c2c;
}

.form-message--success {
  color: #2f6b3c;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

.admin-dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 80px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.admin-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 28px;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-investor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-investor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.admin-investor-meta {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.admin-investor-empty {
  color: var(--text-muted);
  font-size: 14px;
}

.admin-password-create {
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.admin-password-create legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
}

.admin-password-create .form-group:last-child {
  margin-bottom: 0;
}

/* Investor NDA agreement */
.nda-page-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 40px);
  padding: 32px clamp(16px, 4vw, 48px) 48px;
}

.nda-modal {
  width: 100%;
  max-width: 560px;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: 0 12px 40px rgba(26, 21, 40, 0.12);
  overflow: hidden;
}

.nda-modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--purple);
  padding: 24px 28px 16px;
  margin: 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nda-modal-body {
  overflow-y: auto;
  max-height: 52vh;
  padding: 20px 28px;
  flex: 1 1 auto;
}

.nda-content {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.nda-content .nda-intro {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.nda-content h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  margin: 20px 0 8px;
}

.nda-content h3:first-child {
  margin-top: 0;
}

.nda-content p,
.nda-content li {
  margin-bottom: 10px;
}

.nda-content ul,
.nda-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.nda-modal-footer {
  flex-shrink: 0;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.nda-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 16px;
}

.nda-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--purple);
}

.nda-checkbox input:disabled + span {
  color: var(--text-dim);
}

.nda-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.admin-investor-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-status-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-status-badge--active {
  background: rgba(34, 120, 70, 0.12);
  color: #1a7a42;
}

.admin-status-badge--disabled {
  background: rgba(180, 60, 60, 0.12);
  color: #a83232;
}

.investor-portal-nav-admin {
  color: rgba(255, 220, 140, 0.95) !important;
}

.investor-portal-nav-admin:hover,
.investor-portal-nav-admin:focus-visible {
  color: #fff !important;
}

.admin-analytics-section {
  margin-top: 16px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 24px 28px;
}

.admin-stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.admin-stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--purple);
  font-family: var(--font-serif);
}

.admin-grid--analytics {
  margin-top: 0;
}

.admin-panel--wide {
  grid-column: 1 / -1;
}

.admin-panel-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 16px;
}

.admin-analytics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-analytics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 14px;
}

.admin-analytics-investor-time {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 14px;
}

/* Data room */
.data-room-banner {
  background: var(--header-bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid var(--header-border);
}

.has-confidential-banner .data-room-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
}

.has-confidential-banner .site-header {
  top: 40px;
}

.has-confidential-banner .page-main {
  padding-top: calc(var(--header-h) + 40px);
}

.investor-portal-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 24px;
}

.investor-portal-nav a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.investor-portal-nav a:hover,
.investor-portal-nav a:focus-visible {
  color: #fff;
}

.investor-portal-nav a[aria-current="page"] {
  color: #fff;
}

.investor-portal-dropdown {
  position: static;
}

.investor-portal-nav .nav-dropdown-trigger {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  padding: 0;
  border-radius: 0;
  text-decoration: none;
}

.investor-portal-nav .nav-dropdown-trigger:hover,
.investor-portal-nav .nav-dropdown-trigger:focus-visible,
.investor-portal-dropdown:hover .nav-dropdown-trigger,
.investor-portal-dropdown.is-open .nav-dropdown-trigger,
.investor-portal-nav-trigger--active {
  color: #fff;
}

.investor-showcase-submenu {
  grid-template-columns: repeat(3, 1fr);
}

.investor-data-room-submenu {
  grid-template-columns: repeat(4, 1fr);
}

.doc-card a {
  color: var(--accent);
  text-decoration: underline;
}

.doc-card a:hover {
  color: var(--purple);
}

.investor-showcase-section {
  padding: 0 clamp(20px, 4vw, 48px) 64px;
  scroll-margin-top: calc(var(--header-h) + 56px);
}

.investor-data-room-section {
  padding: 0 clamp(20px, 4vw, 48px) 64px;
  scroll-margin-top: calc(var(--header-h) + 56px);
}

.investor-showcase-section .video-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.investor-dev-section {
  padding: 0 clamp(20px, 4vw, 48px) 64px;
  max-width: 1100px;
  margin: 0 auto;
  scroll-margin-top: calc(var(--header-h) + 56px);
}

.investor-dev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.investor-dev-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.investor-dev-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.investor-dev-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.investor-dev-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.investor-dev-card a {
  color: var(--purple);
  text-decoration: underline;
}

.investor-dev-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
}

.investor-dev-status--live {
  color: var(--purple);
  border-color: rgba(59, 45, 92, 0.25);
  background: var(--purple-soft);
}

.investor-dev-status--active {
  color: #2a5a3a;
  border-color: rgba(42, 90, 58, 0.2);
  background: rgba(42, 90, 58, 0.08);
}

.investor-dev-status--pilot {
  color: #6b4f1a;
  border-color: rgba(107, 79, 26, 0.2);
  background: rgba(107, 79, 26, 0.08);
}

.investor-dev-status--rd {
  color: var(--text-dim);
}

.investor-dev-priorities {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.investor-dev-priorities li {
  display: grid;
  gap: 6px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.investor-dev-priorities li:last-child {
  border-bottom: none;
}

.investor-dev-priorities strong {
  font-size: 15px;
  color: var(--text);
}

.investor-dev-priorities span {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 64px;
}

.leader-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.leader-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.leader-photo--placeholder {
  background: var(--bg);
}

.leader-card-body {
  flex: 1;
  min-width: 0;
}

.leader-card .role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-bottom: 6px;
}

.leader-card .name { font-weight: 600; font-size: 1.05rem; }
.leader-card .bio { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.leader-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
  text-decoration: none;
}

.leader-link:hover { text-decoration: underline; }

.data-room-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 64px;
}

.data-room-links-group {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.data-room-links-group h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
}

.data-room-links-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.data-room-links-group li + li {
  margin-top: 8px;
}

.data-room-links-group a {
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
  text-decoration: none;
}

.data-room-links-group a:hover { text-decoration: underline; }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: 80px;
}

.doc-card {
  padding: 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
}

.doc-card--link {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-style: solid;
  border-color: var(--border);
  background: var(--surface-raised);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.doc-card--link:hover {
  border-color: var(--accent);
  background: var(--surface);
}

button.doc-card {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.doc-card--has-file {
  border-style: solid;
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-raised);
}

.doc-card--link[data-doc-viewer] {
  cursor: pointer;
}

.data-room-admin .doc-card[data-doc-title],
.data-room-admin .doc-card[data-doc-slot]:not([data-doc-upload="false"]) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.doc-card-label {
  flex: 1;
  min-width: 0;
}

.doc-card-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.doc-card-admin-btn {
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--purple);
  color: #fff;
  border: 1px solid var(--purple);
  border-radius: 999px;
}

.doc-card-admin-btn:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  color: #fff;
}

.doc-card-admin-btn--danger:hover {
  background: #8b3a3a;
  border-color: #8b3a3a;
  color: #fff;
}

.doc-card-upload-status {
  width: 100%;
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.doc-card-upload-status--success {
  color: var(--accent);
}

.doc-card-upload-status--error {
  color: #c44;
}

body.doc-viewer-open {
  overflow: hidden;
}

.doc-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

.doc-viewer[hidden] {
  display: none !important;
}

.doc-viewer.is-fullscreen {
  padding: 0;
}

.doc-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 18, 0.88);
  backdrop-filter: blur(4px);
}

.doc-viewer-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  max-height: min(92vh, 900px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: 0 24px 64px rgba(10, 8, 18, 0.45);
  overflow: hidden;
}

.doc-viewer.is-fullscreen .doc-viewer-shell {
  width: 100%;
  max-height: none;
  height: 100%;
  border-radius: 0;
  border: none;
}

.doc-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.doc-viewer-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: var(--purple);
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-viewer-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.doc-viewer-page {
  min-width: 4.5rem;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.doc-viewer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.doc-viewer-btn:hover:not(:disabled) {
  background: var(--purple-soft);
  border-color: var(--border-strong);
  color: var(--purple);
}

.doc-viewer-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.doc-viewer-btn--close {
  margin-left: 4px;
  border-color: var(--border-strong);
  background: var(--purple);
  color: #fff;
}

.doc-viewer-btn--close:hover:not(:disabled) {
  background: var(--purple-dark);
  color: #fff;
  border-color: var(--purple-dark);
}

.doc-viewer-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-elevated);
}

.doc-viewer.is-fullscreen .doc-viewer-stage {
  padding: 16px;
}

.doc-viewer-canvas-wrap {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: calc(92vh - 120px);
}

.doc-viewer-canvas-wrap.is-ready {
  display: flex;
}

.doc-viewer.is-fullscreen .doc-viewer-canvas-wrap {
  max-height: none;
  min-height: 0;
}

.doc-viewer-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(26, 21, 40, 0.18);
  background: #fff;
}

.doc-viewer-office-wrap {
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: calc(92vh - 120px);
  overflow: hidden;
}

.doc-viewer-office-wrap.is-ready {
  display: flex;
}

.doc-viewer.is-fullscreen .doc-viewer-office-wrap {
  max-height: none;
  min-height: 0;
}

.doc-viewer-sheet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.doc-viewer-sheet-tab {
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.doc-viewer-sheet-tab.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-raised);
}

.doc-viewer-office-content {
  flex: 1;
  overflow: auto;
  padding: 8px 4px 16px;
  background: #fff;
  border-radius: var(--radius);
  color: #1a1528;
}

.doc-viewer--office .doc-viewer-office-content .docx-wrapper {
  background: #fff;
  padding: 24px;
}

.doc-viewer-office-content .doc-viewer-sheet-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.doc-viewer-office-content .doc-viewer-sheet-table td,
.doc-viewer-office-content .doc-viewer-sheet-table th {
  border: 1px solid #d8d3e4;
  padding: 6px 10px;
  white-space: nowrap;
  text-align: left;
  vertical-align: top;
}

.doc-viewer-office-content .doc-viewer-sheet-table tr:first-child td,
.doc-viewer-office-content .doc-viewer-sheet-table tr:first-child th {
  background: #f4f1fa;
  font-weight: 600;
}

.doc-viewer-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.doc-viewer-loading.is-active {
  display: flex;
}

.doc-viewer-loading::after {
  content: "";
  width: 28px;
  height: 28px;
  margin-left: 12px;
  border: 2px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: docViewerSpin 0.8s linear infinite;
}

@keyframes docViewerSpin {
  to { transform: rotate(360deg); }
}

.doc-viewer-error {
  display: none;
  margin: 0;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.doc-viewer-error.is-active {
  display: block;
}

@media (max-width: 640px) {
  .doc-viewer-toolbar {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .doc-viewer-title {
    flex: 1 1 100%;
    white-space: normal;
  }

  .doc-viewer-controls {
    width: 100%;
    justify-content: space-between;
  }

  .doc-viewer-btn {
    width: 44px;
    height: 44px;
  }

  .doc-viewer-canvas-wrap {
    min-height: 280px;
  }
}

/* CTA */
.cta {
  margin-top: 56px;
  padding-top: 24px;
  padding-bottom: 72px;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  min-height: 140px;
  margin: 0 auto;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.cta-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: #fff;
  max-width: 32ch;
  margin: 0 auto 8px;
  line-height: 1.25;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 36ch;
}

.cta-inner .btn-primary {
  padding: 8px 18px;
  font-size: 12px;
  background: #fff;
  color: #000;
}

.cta-inner .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--header-border);
  padding: 64px clamp(20px, 4vw, 48px) 32px;
  background: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand .footer-tagline {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-brand .footer-tagline strong {
  color: rgba(255, 255, 255, 0.92);
}

.footer-grid .footer-col:nth-child(2) ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  display: block;
  padding: 4px 0;
}

.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 1400px;
  margin: 0 auto;
}

.site-footer--minimal {
  padding: 24px clamp(20px, 4vw, 48px);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  transition: color 0.2s, background 0.2s;
}

.theme-toggle-btn:hover {
  color: #ffffff;
}

.theme-toggle-btn.is-active {
  color: #000000;
  background: #ffffff;
}

html[data-showcase="true"] .theme-toggle {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .product-spotlight-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .feature-grid, .flow-strip, .flow-thumbs, .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .development, .research, .showcase-block, .contact-layout, .video-grid { grid-template-columns: 1fr; }
  .showcase-block-reverse { direction: ltr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }

  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }

  .nav-main {
    position: relative;
    padding-right: 56px;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 0;
    right: clamp(20px, 4vw, 48px);
    margin-left: 0;
    z-index: 2;
    height: var(--header-h);
    align-items: center;
    justify-content: center;
  }

  .logo-img--nav { height: 45px; }

  .hero {
    min-height: max(520px, calc(100svh - var(--header-h)));
    padding: 28px clamp(16px, 4vw, 24px) 24px;
  }

  .hero-fluid { display: none; }

  .hero-video { display: none; }

  .hero-orb { display: none; }

  .hero-video-mobile {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 1300px);
    z-index: 0;
    overflow: hidden;
    background: #000;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.85rem);
    max-width: none;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .btn-hero {
    width: auto;
    padding: 10px 20px;
    font-size: 12px;
    margin-top: 24px;
  }

  .hero-pills { padding-top: 28px; }

  .page-hero {
    padding: 40px clamp(16px, 4vw, 24px) 32px;
  }

  .showcase-page { padding-bottom: 48px; }

  .showcase-page--products {
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
  }

  .showcase-block {
    padding: 32px 0;
    gap: 24px;
  }

  .page-projects .product-overview-card {
    padding: 32px 0;
    gap: 24px;
  }

  .page-projects .product-overview-logo {
    min-height: 250px;
  }

  .page-projects .product-overview-logo img {
    width: min(406px, 85%);
    max-width: 406px;
  }

  .page-projects #miira-motion .product-overview-logo img,
  .page-projects #5th-wall .product-overview-logo img,
  .page-projects #project-iris .product-overview-logo img {
    width: min(711px, 90%);
    max-width: 711px;
  }

  .page-projects #product-overview-dats .product-overview-logo {
    min-height: 160px;
  }

  .page-projects #product-overview-dats .product-overview-logo img {
    width: min(128px, 28%);
    max-width: 128px;
  }

  .page-projects .product-overview-copy .showcase-tagline {
    font-size: 0.875rem;
    margin: 0 0 12px;
  }

  .page-projects .product-overview-copy h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 12px;
  }

  .showcase-visual { min-height: 281px; }

  .showcase-visual--logo {
    min-height: 250px;
  }

  .showcase-visual--logo img {
    width: min(406px, 85%);
    max-width: 406px;
  }

  #miira-motion .showcase-visual--logo img,
  #5th-wall .showcase-visual--logo img,
  #project-iris .showcase-visual--logo img {
    width: min(711px, 90%);
    max-width: 711px;
  }

  #dats .showcase-visual--logo {
    min-height: 160px;
  }

  #dats .showcase-visual--logo img {
    width: min(128px, 28%);
    max-width: 128px;
  }

  .showcase-tagline {
    font-size: 0.875rem;
    margin: 0 0 12px;
  }

  .showcase-copy h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 12px;
  }

  .showcase-copy p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .nav-main.nav-open .nav-item--dropdown .nav-submenu {
    grid-template-columns: 1fr;
  }

  .login-wrap { padding: 32px 16px; }

  .login-card { padding: 28px 20px; }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  .admin-dashboard { padding: 0 16px 64px; }

  .admin-panel { padding: 20px; }

  .has-confidential-banner .data-room-banner {
    font-size: 11px;
    padding: 8px 12px;
    line-height: 1.4;
  }

  body.nav-scroll-lock { overflow: hidden; }

  .site-header:has(.nav-open) {
    height: auto;
    align-items: flex-start;
  }

  .nav-main.nav-open {
    flex-wrap: wrap;
    align-content: flex-start;
    padding-bottom: 24px;
    max-height: 100vh;
    overflow-y: auto;
    width: 100%;
  }

  .nav-main.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 10;
    padding-top: 16px;
    align-items: stretch;
  }

  .nav-main.nav-open .nav-item--dropdown .nav-submenu {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-bottom: none;
    padding: 12px 12px 16px;
    display: none;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    margin-top: 4px;
    grid-template-columns: repeat(2, 1fr);
    transition: opacity 0.22s var(--ease);
  }

  .nav-main.nav-open .nav-item--dropdown.is-open .nav-submenu { display: grid; }

  .nav-main.nav-open .nav-submenu-link {
    color: rgba(255, 255, 255, 0.82);
  }

  .nav-main.nav-open .nav-submenu-link:hover,
  .nav-main.nav-open .nav-submenu-link:focus-visible {
    color: #ffffff;
  }

  .nav-main.nav-open .nav-links > li > a,
  .nav-main.nav-open .nav-dropdown-trigger {
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 0;
  }

  .nav-main.nav-open .nav-submenu-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-main.nav-open .nav-actions {
    display: flex;
    width: 100%;
    order: 11;
    margin-top: 8px;
  }

  .nav-main.nav-open .nav-actions .btn-primary,
  .nav-main.nav-open .nav-actions .btn-outline {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
  }

  .nav-main.nav-open .menu-toggle {
    position: absolute;
    top: 0;
    right: clamp(20px, 4vw, 48px);
  }

  .pill,
  .btn,
  .product-ticker-item {
    min-height: 44px;
  }

  .product-spotlight-grid,
  .product-grid, .feature-grid, .flow-strip, .leadership-grid, .doc-grid, .media-grid, .data-room-links-grid {
    grid-template-columns: 1fr;
  }

  .investor-dev-grid { grid-template-columns: 1fr; }

  .investor-portal-nav {
    margin-left: 0;
    gap: 12px;
    flex-wrap: wrap;
  }

  .investor-showcase-submenu,
  .investor-data-room-submenu {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero {
    min-height: max(480px, calc(100svh - var(--header-h)));
  }

  .hero-title { font-size: clamp(1.85rem, 9vw, 2.5rem); }

  .hero-pills { flex-direction: column; }
  .pill { width: 100%; justify-content: space-between; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-investor-item { flex-direction: column; align-items: flex-start; }
  .admin-investor-actions { width: 100%; }
  .admin-stats-grid { grid-template-columns: 1fr; }

  .nda-modal {
    max-height: 85vh;
  }

  .nda-modal-body {
    max-height: 48vh;
  }

  .nda-modal-actions {
    flex-direction: column-reverse;
  }

  .nda-modal-actions .btn {
    width: 100%;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .flow-thumbs { grid-template-columns: 1fr; }

  .nav-main.nav-open .nav-item--dropdown .nav-submenu {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mesh-gradient,
  .product-card,
  .feature-card,
  .cta-inner,
  .product-ticker-track {
    animation: none;
    --mesh-lx: 55%;
    --mesh-ly: 35%;
  }

  .mesh-gradient::before,
  .mesh-gradient::after,
  .product-card::before,
  .product-card::after,
  .feature-card::before,
  .feature-card::after,
  .cta-inner::before,
  .cta-inner::after {
    animation: none;
  }

  .hero-orb {
    animation: none;
  }

  .hero-video {
    display: none;
  }

  .hero-video-mobile {
    display: none;
  }

  .hero-video-overlay {
    display: none;
  }

  .hero-fluid {
    display: none;
  }

  .page-home .hero-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .flow-showcase-motion {
    display: none !important;
  }

  .flow-showcase-static {
    display: grid !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .flow-slide {
    transition: none;
  }

  .video-card:hover .video-card-media video {
    transform: none;
  }

  .video-play-icon {
    opacity: 0.35;
  }

  .nav-submenu {
    transition: opacity 0.15s, visibility 0.15s;
    transform: translateY(0);
  }

  .product-ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .product-ticker-group[aria-hidden="true"] {
    display: none;
  }
}

/* Investor data room — full product catalog grid */
.investor-products-showcase-wrap {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .investor-products-showcase-wrap .products-overview-grid {
    display: block;
    padding-bottom: 24px;
  }

  .investor-products-showcase-wrap .product-overview-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid var(--border);
  }

  .investor-products-showcase-wrap .product-overview-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
  }

  .investor-products-showcase-wrap .product-overview-logo img {
    width: min(320px, 80%);
    height: auto;
    object-fit: contain;
  }
}

@media (min-width: 1025px) {
  .investor-products-showcase-wrap .products-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .investor-products-showcase-wrap .product-overview-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
  }

  .investor-products-showcase-wrap .product-overview-logo {
    flex-shrink: 0;
    width: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .investor-products-showcase-wrap .product-overview-logo img {
    width: 100%;
    max-width: 112px;
    max-height: 72px;
    object-fit: contain;
  }

  .investor-products-showcase-wrap .product-overview-copy {
    flex: 1;
    min-width: 0;
  }

  .investor-products-showcase-wrap .product-overview-copy h2 {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }

  .investor-products-showcase-wrap .product-overview-copy .showcase-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .investor-products-showcase-wrap .product-overview-btn {
    flex-shrink: 0;
  }
}
