/* ===========================================================
   NAMEPLATE — Minimalist Luxury Editorial
   Color Schema: Black (#000000), White (#FFFFFF), Red (#c51f2d).
   Aesthetic: Bold oversized typography & hardware artifacts,
   architectural schematics, and responsive industrial design.
   =========================================================== */

:root {
  --bg: #000000;
  --bg-subtle: #030304;
  --bg-elevated: #0a0a0c;
  --bg-card: #050506;
  --border-subtle: rgba(255, 255, 255, 0.14);
  
  --white: #FFFFFF;
  --white-90: rgba(255, 255, 255, 0.90);
  --white-70: rgba(255, 255, 255, 0.70);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-08: rgba(255, 255, 255, 0.08);

  --red: #c51f2d;
  --red-hover: #ac1926;
  --red-deep: #bd1f1f;
  --red-glow: none;
  --red-subtle: rgba(197, 31, 45, 0.08);
  --red-border: rgba(197, 31, 45, 0.35);

  --gray-900: #121212;
  --gray-800: #1F1F1F;
  --gray-700: #2E2E2E;
  --gray-500: #6B6B6B;
  --gray-400: #A3A3A3;
  --gray-300: #D4D4D4;

  --line: rgba(255, 255, 255, 0.10);
  --line-light: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.20);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-nav: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Rigid industrial corner. The only exceptions are 50% dots and the
     device bezels in the screens gallery, which depict physical hardware. */
  --radius: 2px;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-subtle: #f7f7f7;
  --bg-elevated: #eeeeee;
  --bg-card: #fafafa;

  --white: #111111;
  --white-90: rgba(17, 17, 17, 0.90);
  --white-70: rgba(17, 17, 17, 0.70);
  --white-40: rgba(17, 17, 17, 0.40);
  --white-15: rgba(17, 17, 17, 0.15);
  --white-08: rgba(17, 17, 17, 0.08);

  --gray-900: #f3f3f3;
  --gray-800: #e9e9e9;
  --gray-700: #d4d4d4;
  --gray-500: #6b6b6b;
  --gray-400: #555555;
  --gray-300: #333333;

  --line: rgba(0, 0, 0, 0.12);
  --line-light: rgba(0, 0, 0, 0.06);
  --line-strong: rgba(0, 0, 0, 0.24);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--white);
  color-scheme: dark;
}

html[data-theme="light"] { color-scheme: light; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Subtle Texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

html[data-theme="light"] body::after {
  background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 0);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.mono {
  font-family: var(--font-mono);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .wrap { padding: 0 48px; }
}

/* ================= Header (Delayed Sticky Reveal) ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-light);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled,
.site-header.nav-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  border-bottom-color: var(--line);
  background: rgba(0, 0, 0, 0.96);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .site-header.is-scrolled,
html[data-theme="light"] .site-header.nav-open {
  background: rgba(255, 255, 255, 0.96);
}

.header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--white);
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s var(--ease);
}

.theme-logo--light { display: none; }
:root[data-theme="light"] .theme-logo--dark { display: none; }
:root[data-theme="light"] .theme-logo--light { display: block; }

.brand:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-name {
  line-height: 1;
}

.language-toggle { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; color: var(--white-40); font: 700 0.68rem/1 var(--font-mono); }
.language-toggle button { border: 0; background: transparent; color: inherit; padding: 9px 3px; cursor: pointer; font: inherit; }
.language-toggle button.active { color: var(--red); }
.mobile-nav-lang-row { display: none; }
@media (max-width: 820px) {
  .mobile-nav-lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
    font: 700 0.72rem/1 var(--font-mono);
    color: var(--white-70);
  }
  .mobile-nav-lang-row .language-toggle {
    margin-right: 0;
  }
}

.tag-brand-logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 28px;
  padding: 0;
  border: none;
  background: transparent;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-nav);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.18s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--white);
  background: transparent;
}

.site-nav a:hover::after {
  width: 100%;
}

.mobile-nav-app-link {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.nav-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-family: var(--font-nav);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #ffffff;
  background: var(--red);
  border: 1px solid var(--red);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  box-sizing: border-box;
}

.nav-contact-btn:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(197, 31, 45, 0.45);
}

.nav-contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(197, 31, 45, 0.2);
}

.nav-contact-btn .btn-arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.nav-contact-btn:hover .btn-arrow {
  transform: translateX(3px);
}

:root[data-theme="light"] .nav-contact-btn {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

:root[data-theme="light"] .nav-contact-btn:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

/* Alternating Sun / Moon Theme Button (Footer) */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius);
  color: var(--gray-500);
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  box-sizing: border-box;
  flex-shrink: 0;
}

.theme-btn:hover {
  color: var(--white);
  border-color: var(--white-40);
  background: var(--white-08);
}

:root[data-theme="light"] .theme-btn {
  color: #666666;
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.03);
}

:root[data-theme="light"] .theme-btn:hover {
  color: #111111;
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.06);
}

.theme-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.theme-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: none;
}

/* In Dark mode: show Sun icon */
:root:not([data-theme="light"]) .theme-icon--sun,
:root[data-theme="dark"] .theme-icon--sun {
  display: block;
}

/* In Light mode: show Moon icon */
:root[data-theme="light"] .theme-icon--moon {
  display: block;
}

:root[data-theme="light"] .theme-icon--sun {
  display: none;
}

.nav-ghost {
  color: var(--gray-400);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-ghost:hover {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  color: var(--white-90);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--bg-elevated);
  border-color: var(--white-40);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-weight: 750;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 0.78rem;
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red,
.btn-red-deck,
.mobile-nav-primary {
  color: #fff;
}

:root[data-theme="light"] .btn-primary:hover,
:root[data-theme="light"] .schematic-tab-btn.is-active {
  color: #fff;
}
.btn-red:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

html[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* The physical tag and embedded product views remain dark in either mode. */
:root[data-theme="light"] :is(
  .oversized-tag-card,
  .screen-browser-frame,
  .browser-frame,
  .blueprint-container,
  .deck-main-viewport
) {
  --bg: #000000;
  --bg-subtle: #080808;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.90);
  --white-70: rgba(255, 255, 255, 0.70);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-08: rgba(255, 255, 255, 0.08);
  --gray-900: #121212;
  --gray-800: #1f1f1f;
  --gray-700: #2e2e2e;
  --gray-500: #6b6b6b;
  --gray-400: #a3a3a3;
  --gray-300: #d4d4d4;
  --line: rgba(255, 255, 255, 0.10);
  --line-light: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.20);
  color-scheme: dark;
}

:root[data-theme="light"] .studio-large-input {
  background: var(--bg-subtle);
  border-color: var(--line-strong);
  color: var(--white);
}

:root[data-theme="light"] .studio-large-input:focus {
  background: var(--bg-card);
}

/* Light-mode surfaces: keep only the actual device/schematic canvases dark. */
:root[data-theme="light"] .screen-card {
  background: var(--bg-card);
  border-color: var(--line);
}

:root[data-theme="light"] .screen-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .screen-card-caption {
  margin: 16px -20px -20px;
  padding: 16px 20px 20px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: #111111;
}

:root[data-theme="light"] .caption-title {
  color: #111111;
}

:root[data-theme="light"] .caption-desc {
  color: #4f4f4f;
}

:root[data-theme="light"] .caption-tag,
:root[data-theme="light"] .feat-tag {
  color: #3f3f3f;
  background: #f4f4f4;
  border-color: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .caption-feature-tags {
  border-top-color: rgba(0, 0, 0, 0.10);
}

:root[data-theme="light"] .device-mockup-wrap {
  background: #f4f4f4;
  border-color: var(--line);
}

:root[data-theme="light"] .app-simulator-container,
:root[data-theme="light"] .sim-chrome-header,
:root[data-theme="light"] .sim-sidebar,
:root[data-theme="light"] .sim-content-area,
:root[data-theme="light"] .sim-stat-box,
:root[data-theme="light"] .sim-critical-points-wrap,
:root[data-theme="light"] .sim-lineage-table-wrap,
:root[data-theme="light"] .sim-lineage-table th,
:root[data-theme="light"] .sim-act-btn.secondary {
  background: var(--bg-card);
  border-color: var(--line);
}

:root[data-theme="light"] .sim-chrome-header,
:root[data-theme="light"] .sim-sidebar,
:root[data-theme="light"] .sim-section-header-row,
:root[data-theme="light"] .sim-meta-stack,
:root[data-theme="light"] .sim-lineage-table td {
  border-color: var(--line);
}

:root[data-theme="light"] .app-simulator-container {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .sim-critical-heading,
:root[data-theme="light"] .sim-act-btn.primary,
:root[data-theme="light"] .audio-play-btn,
:root[data-theme="light"] .btn-red-deck {
  color: #fff;
}

:root[data-theme="light"] .sim-hq-btn {
  background: var(--bg-elevated);
  border-color: var(--line);
  color: var(--white);
}

:root[data-theme="light"] .sim-hq-btn:hover,
:root[data-theme="light"] .sim-act-btn.secondary:hover {
  background: var(--gray-800);
  border-color: var(--line-strong);
  color: var(--white);
}

:root[data-theme="light"] .sim-part-badge.standard-service {
  background: var(--bg-elevated);
  border-color: var(--line);
}

:root[data-theme="light"] .chapter-item:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--line);
}

/* ================= Sections ================= */
.section {
  padding: 130px 0;
  border-top: 1px solid var(--line-light);
  position: relative;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.section-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--white);
}

.section-sub {
  font-size: 1.22rem;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 720px;
}

/* ================= Hero Section (Clean, Bold, No Master Image) ================= */
.hero {
  padding: 190px 0 84px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: block;
}

.hero-h1 {
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.96;
  color: var(--white);
  margin-bottom: 36px;
}

.hero-h1 span.red-accent {
  color: var(--red);
}

.hero-lead {
  font-size: clamp(1.22rem, 2.3vw, 1.5rem);
  color: var(--gray-400);
  line-height: 1.55;
  max-width: 820px;
  margin-bottom: 52px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-actions .btn {
  height: 46px;
  padding: 0 24px;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  white-space: nowrap;
  box-sizing: border-box;
}

/* ================= Hero — Video Banner Marquee ================= */
.hero--video {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 80px 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 36px 0;
  background: var(--bg);
  overflow: hidden;
  pointer-events: none;
}

.hero-video__marquee {
  overflow: hidden;
  width: 100%;
}

.hero-video__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  will-change: transform;
  animation: hero-marquee 38s linear infinite;
}

.hero-video__track--reverse {
  animation: hero-marquee-reverse 42s linear infinite;
}

.hero-video__track img {
  flex: 0 0 auto;
  width: 184px;
  height: 184px;
  object-fit: contain;
  opacity: 0.38;
  filter: grayscale(0.12);
}

:root[data-theme="light"] .hero-video__track img {
  opacity: 0.28;
  filter: invert(1) hue-rotate(180deg) grayscale(0.08);
}

.hero-video__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1100px 600px at 50% 48%, color-mix(in srgb, var(--bg) 80%, transparent) 0%, color-mix(in srgb, var(--bg) 45%, transparent) 48%, transparent 88%),
    linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%);
  pointer-events: none;
}

/* ================= Section Anchoring ================= */
.hero,
.section,
.cta-banner,
.site-footer,
.splash-cta {
  scroll-margin-top: 76px;
}

@media (min-width: 992px) {
  .hero--video {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
  }

  .section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0;
  }
}

/* ================= Dramatic Hero Banner (Inspired by notsquat.org) ================= */
.hero-dramatic-wrap {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-dramatic-ticker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-wrap: wrap;
  justify-content: center;
}

:root[data-theme="light"] .hero-dramatic-ticker {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.12);
  color: #555555;
}

.hero-dramatic-ticker .ticker-badge {
  color: var(--red);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-dramatic-ticker .ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  display: inline-block;
}

.hero-dramatic-ticker .ticker-sep {
  color: var(--gray-700);
}

:root[data-theme="light"] .hero-dramatic-ticker .ticker-sep {
  color: var(--gray-400);
}

.hero-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(20px, 3vw, 32px);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-brand-mark:hover {
  transform: translateY(-2px) scale(1.05);
}

.hero-brand-mark:active {
  transform: scale(0.98);
}

.hero-logo-img {
  width: clamp(96px, 10vw, 128px);
  height: clamp(96px, 10vw, 128px);
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.50));
  transition: filter 0.28s var(--ease);
}

:root[data-theme="light"] .hero-logo-img {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}

.hero-dramatic-banner {
  margin-bottom: 32px;
}

.hero-banner-kicker {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-dramatic-h1 {
  font-size: clamp(3.2rem, 7.5vw, 6.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.94;
  color: var(--white);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-dramatic-h1 .h1-line.red-accent {
  color: var(--red);
}

.hero-dramatic-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  color: var(--gray-400);
  line-height: 1.55;
  max-width: 820px;
  margin: 0 auto;
}

:root[data-theme="light"] .hero-dramatic-lead {
  color: #444444;
}

/* Splash Triptych / Dual Pillar (Field App vs HQ Console) */
.hero-splash-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 36px;
  text-align: left;
}

@media (max-width: 768px) {
  .hero-splash-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.hero-splash-pillar {
  background: rgba(12, 12, 12, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 22px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-splash-pillar:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

:root[data-theme="light"] .hero-splash-pillar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .hero-splash-pillar:hover {
  border-color: rgba(0, 0, 0, 0.25);
}

.splash-pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.splash-pillar-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--red);
}

.splash-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.splash-status-dot.green {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.splash-status-dot.red {
  background: var(--red);
  box-shadow: 0 0 8px rgba(197, 31, 45, 0.6);
}

.splash-pillar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

:root[data-theme="light"] .splash-pillar-title {
  color: #111111;
}

.splash-pillar-desc {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.5;
  margin-bottom: 16px;
}

:root[data-theme="light"] .splash-pillar-desc {
  color: #555555;
}

.splash-pillar-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.splash-pillar-badges span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--gray-300);
}

:root[data-theme="light"] .splash-pillar-badges span {
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.1);
  color: #444444;
}

/* Actions in Dramatic Hero */
.hero-dramatic-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-cta {
  height: 50px;
  padding: 0 28px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  box-sizing: border-box;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn-hero-cta:hover {
  transform: translateY(-2px);
}

.hero-dramatic-subaction {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}


.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-sizing: border-box;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hero-scroll-cue:hover {
  color: var(--white);
}

:root[data-theme="light"] .hero-scroll-cue:hover {
  color: #000000;
}

.hero-scroll-cue .cue-arrow {
  color: var(--red);
  display: inline-block;
  animation: cue-bounce 2s infinite ease-in-out;
}

@keyframes cue-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(4px); }
  60% { transform: translateY(2px); }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .hero-video__track,
  .hero-video__track--reverse { animation: none; }
}

@media (max-width: 900px) {
  .hero--video { padding: 64px 0; min-height: 100vh; min-height: 100svh; }
  .hero-video { gap: 12px; padding: 28px 0; }
  .hero-video__track { gap: 24px; }
  .hero-video__track img { width: 132px; height: 132px; }
}

@media (max-width: 640px) {
  .hero--video { padding: 48px 0; }
  .hero-video__track { gap: 18px; }
  .hero-video__track img { width: 104px; height: 104px; }
}

/* Legacy grid retained for other pages if needed */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 480px;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
  }
  .hero-iso-stage { max-width: 380px; padding: 22px; }
  .hero-iso-stage img { width: 190px; height: 190px; }
}

@media (max-width: 900px) {
  .hero {
    padding: 150px 0 64px;
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-iso-carousel {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-iso-stage { padding: 18px; }
  .hero-iso-stage img { width: 160px; height: 160px; }
}

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-index {
  font-size: 0.68rem;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
  font-weight: 700;
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-top: 8px;
  line-height: 1.45;
}

/* ================= Precision Registration Corner Ticks ================= */
.has-corner-ticks {
  position: relative;
}

.has-corner-ticks::before,
.has-corner-ticks::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white-40);
  line-height: 1;
  pointer-events: none;
  z-index: 8;
}

.has-corner-ticks::before {
  top: 6px;
  left: 6px;
}

.has-corner-ticks::after {
  bottom: 6px;
  right: 6px;
}

/* ================= DRAMATIC OVERSIZED QR CODE & TAG ANATOMY SCHEMATIC (CONTAINERLESS) ================= */
.tag-anatomy-stage {
  display: grid;
  grid-template-columns: 240px minmax(480px, 1fr) 240px;
  gap: 32px;
  align-items: center;
  max-width: 1240px;
  margin: 36px auto 0;
  position: relative;
  padding: 12px 0 0;
  background: transparent;
  border: none;
}

:root[data-theme="light"] .tag-anatomy-stage {
  background: transparent;
  border: none;
}

.anatomy-callout-col {
  display: flex;
  flex-direction: column;
  gap: 34px;
  z-index: 5;
}

.anatomy-callout-chip {
  background: transparent;
  border: none;
  border-left: 2px solid var(--line);
  border-radius: 0;
  padding: 4px 0 4px 18px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

:root[data-theme="light"] .anatomy-callout-chip {
  background: transparent;
  border-left-color: rgba(0, 0, 0, 0.12);
}

.anatomy-callout-chip:hover,
.anatomy-callout-chip.is-active {
  border-left-color: var(--red);
  transform: translateX(4px);
}

:root[data-theme="light"] .anatomy-callout-chip:hover,
:root[data-theme="light"] .anatomy-callout-chip.is-active {
  border-left-color: var(--red);
}

.chip-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.chip-num {
  color: var(--red);
  font-weight: 800;
  flex-shrink: 0;
}

.chip-title {
  color: var(--white-90);
  transition: color 0.2s ease;
}

:root[data-theme="light"] .chip-title {
  color: #111111;
}

.anatomy-callout-chip:hover .chip-title,
.anatomy-callout-chip.is-active .chip-title {
  color: var(--white);
}

:root[data-theme="light"] .anatomy-callout-chip:hover .chip-title,
:root[data-theme="light"] .anatomy-callout-chip.is-active .chip-title {
  color: #000000;
}

.chip-body {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.5;
  margin: 0;
  transition: color 0.2s ease;
}

:root[data-theme="light"] .chip-body {
  color: #555555;
}

.anatomy-callout-chip:hover .chip-body,
.anatomy-callout-chip.is-active .chip-body {
  color: var(--white-90);
}

:root[data-theme="light"] .anatomy-callout-chip:hover .chip-body,
:root[data-theme="light"] .anatomy-callout-chip.is-active .chip-body {
  color: #1f2937;
}

.anatomy-center-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 2;
  position: relative;
  width: 100%;
}

/* Massive Oversized Hardware Nameplate Tag — isometric, layered shadows & edging */
.oversized-tag-card {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, #0F0F0F 0%, #080808 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: 26px 22px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 22px;
  user-select: none;
  transition: transform 0.30s var(--ease), border-color 0.30s var(--ease), box-shadow 0.30s var(--ease);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 18px 42px -12px rgba(0, 0, 0, 0.92),
    0 32px 70px -18px rgba(0, 0, 0, 0.75);
}

.oversized-tag-card::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -10px;
  height: 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.55) 0%, transparent 72%);
  pointer-events: none;
  z-index: -1;
  filter: blur(2px);
}

.oversized-tag-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

:root[data-theme="light"] .oversized-tag-card {
  background: linear-gradient(180deg, #0E0E0E 0%, #0a0a0a 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.07) inset,
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 24px 50px -12px rgba(0, 0, 0, 0.32),
    0 10px 24px -6px rgba(0, 0, 0, 0.18);
}

.oversized-tag-card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 22px 52px -12px rgba(0, 0, 0, 0.95),
    0 38px 80px -20px rgba(0, 0, 0, 0.80);
}

.oversized-tag-card.is-highlighted {
  border-color: var(--red);
  box-shadow:
    0 0 0 1px var(--red),
    0 0 16px rgba(197, 31, 45, 0.22),
    0 22px 52px -12px rgba(0, 0, 0, 0.95);
}

/* Corner Fiducial Benchmarks */
.oversized-tag-card .hex-rivet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px #181818, 0 0 0 3px rgba(197, 31, 45, 0.4);
  transition: all 0.25s var(--ease);
  z-index: 7;
}

.hex-rivet.tl { top: 12px; left: 12px; }
.hex-rivet.tr { top: 12px; right: 12px; }
.hex-rivet.bl { bottom: 12px; left: 12px; }
.hex-rivet.br { bottom: 12px; right: 12px; }

.hex-rivet.is-highlighted {
  transform: scale(1.4);
  box-shadow: 0 0 0 2px #181818, 0 0 10px var(--red), 0 0 16px var(--red);
}

/* Tamper slits removed — no hash marks (kept selector for legacy JS no-op) */
.tamper-slit { display: none !important; }

/* Giant QR Container with Laser Scan Beam */
.tag-qr-large-box {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 10px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.25s var(--ease);
}

.tag-qr-large-box.is-highlighted {
  box-shadow: 0 0 0 3px var(--red), 0 0 20px rgba(197, 31, 45, 0.4);
}

.tag-qr-large-box svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Laser Scanline Beam */
.laser-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 50%, transparent 100%);
  box-shadow: 0 0 8px var(--red), 0 0 16px var(--red);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.laser-scanline.is-active {
  animation: scanLaser 2.2s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Tag Information Column */
.tag-large-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
}

.tag-large-brand {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-brand-logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tag-large-npid-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tag-npid-label {
  font-size: 0.68rem;
  color: var(--gray-400);
  letter-spacing: 0.08em;
}

.tag-large-npid {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 900;
  color: var(--red);
  letter-spacing: 0.06em;
  line-height: 1.1;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.tag-large-npid.is-highlighted {
  text-shadow: 0 0 16px rgba(197, 31, 45, 0.85);
  transform: scale(1.02);
}

.tag-large-fineprint {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--gray-400);
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.tag-large-fineprint.is-highlighted {
  color: #ffffff;
}

/* Integrated Precision Mint Dock */
.tag-studio-controls-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
}

.studio-input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 4px;
  gap: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="light"] .studio-input-wrapper {
  background: #f7f7f7;
  border-color: rgba(0, 0, 0, 0.12);
}

.studio-input-wrapper:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.studio-input-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  user-select: none;
  white-space: nowrap;
}

:root[data-theme="light"] .studio-input-prefix {
  color: #555555;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  animation: pulseLiveDot 1.8s ease-in-out infinite;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.studio-large-input {
  flex: 1;
  height: 38px;
  background: transparent;
  border: none;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 750;
  color: var(--white);
  letter-spacing: 0.06em;
  outline: none;
  box-sizing: border-box;
}

:root[data-theme="light"] .studio-large-input {
  color: #111111;
}

.studio-input-wrapper #btnRandomizeOversized {
  height: 38px;
  padding: 0 18px;
  white-space: nowrap;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--red);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-input-wrapper #btnRandomizeOversized:hover {
  background: var(--red-hover);
  box-shadow: 0 4px 14px rgba(197, 31, 45, 0.4);
  transform: translateY(-1px);
}

.studio-input-wrapper #btnRandomizeOversized:active {
  transform: translateY(1px);
}

.studio-subtext {
  font-size: 0.70rem;
  color: var(--gray-500);
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.02em;
  margin: 0;
}

:root[data-theme="light"] .studio-subtext {
  color: #6b7280;
}

@keyframes mintFlash {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.8) drop-shadow(0 0 12px var(--red)); }
  100% { filter: brightness(1); }
}

.mint-flash {
  animation: mintFlash 0.4s ease-out;
}

/* ================= 3D Rotating Example Plate ================= */
.tag-stage-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 16px;
}

.tag-stage-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 3px;
  gap: 3px;
}

.tag-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  color: var(--gray-400);
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.tag-toggle-btn:hover {
  color: var(--white);
}

.tag-toggle-btn.is-active {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(197, 31, 45, 0.4);
}

.tag-toggle-btn .toggle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* 3D Scene & Perspective Container */
.tag-flipper-scene {
  perspective: 1600px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.tag-flipper-card {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  outline: none;
}

.tag-flipper-card:focus-visible {
  box-shadow: 0 0 0 2px var(--red);
}

.tag-flipper-card.is-flipped {
  transform: rotateY(180deg);
}

.tag-face {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tag-face--front {
  position: relative;
  transform: rotateY(0deg);
}

.tag-face--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
}

/* Back Face Physical Tag Styling */
.oversized-tag-card.oversized-tag-card--physical,
.marketing-page .oversized-tag-card.oversized-tag-card--physical {
  display: block !important;
  padding: 0 !important;
  grid-template-columns: none !important;
  overflow: hidden !important;
  position: relative;
  width: 100%;
  height: 100%;
  background: #060606;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 22px 52px -12px rgba(0, 0, 0, 0.95),
    0 38px 80px -20px rgba(0, 0, 0, 0.85);
}

:root[data-theme="light"] .oversized-tag-card.oversized-tag-card--physical {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 24px 50px -12px rgba(0, 0, 0, 0.38),
    0 10px 24px -6px rgba(0, 0, 0, 0.22);
}

.tag-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 4px;
  filter: contrast(1.05) brightness(1.02);
  transition: transform 0.4s var(--ease);
}

.oversized-tag-card--physical:hover .tag-photo-img {
  transform: scale(1.02);
}

/* Light reflection sheen on physical photo */
.tag-photo-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.09) 35%, transparent 50%);
  mix-blend-mode: overlay;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.oversized-tag-card--physical:hover .tag-photo-sheen {
  opacity: 1;
}

@media (max-width: 600px) {
  .tag-stage-header {
    width: 100%;
    margin-bottom: 12px;
  }
  .tag-stage-toggle {
    width: 100%;
    display: flex;
    justify-content: stretch;
  }
  .tag-toggle-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.64rem;
    padding: 7px 10px;
  }
  .oversized-tag-card.oversized-tag-card--physical,
  .marketing-page .oversized-tag-card.oversized-tag-card--physical {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #040404;
  }
  .tag-photo-img {
    object-fit: contain;
    max-height: 100%;
  }
}

@media (max-width: 1180px) {
  .site-nav {
    gap: 16px;
  }
  .site-nav a {
    font-size: 0.70rem;
    letter-spacing: 0.08em;
  }

  .tag-anatomy-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
    max-width: 800px;
    margin: 32px auto 0;
    padding: 12px 0 0;
  }

  .anatomy-center-frame {
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .pointer-line {
    display: none;
  }

  .anatomy-callout-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .tag-anatomy-stage {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
  }

  .oversized-tag-card {
    grid-template-columns: 1fr;
    padding: 22px 16px;
    gap: 18px;
  }

  .tag-qr-large-box {
    max-width: 180px;
    margin: 0 auto;
  }

  .tag-large-info {
    text-align: center;
    align-items: center;
  }

  .anatomy-callout-col {
    gap: 16px;
  }

  .studio-input-wrapper {
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
  }

  .studio-large-input {
    width: 100%;
    text-align: center;
  }

  .studio-input-wrapper #btnRandomizeOversized {
    width: 100%;
  }
}
/* ================= Schematics Section ================= */
.schematic-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.schematic-tab-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 4px;
  flex-wrap: wrap;
  margin-top: 0;
}

.schematic-tab-btn {
  padding: 8px 18px;
  height: 38px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--gray-400);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.schematic-tab-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.schematic-tab-btn.is-active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(197, 31, 45, 0.35);
}

.schematic-featured-frame {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.schematic-image-wrap {
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.schematic-image-wrap img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  filter: contrast(1.08) brightness(1.02);
  transition: transform 0.3s var(--ease);
}
.schematic-image-wrap:hover img {
  transform: scale(1.02);
}

.schematic-intel-panel {
  display: flex;
  flex-direction: column;
}

.schematic-intel-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.schematic-intel-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 16px;
}

.schematic-intel-desc {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 24px;
}

.critical-parts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.part-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
}

.part-dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 6px;
  flex-shrink: 0;
}

.part-dot-white {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  margin-top: 6px;
  flex-shrink: 0;
}

.schematic-grid-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.schematic-card-mini {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.schematic-card-mini:hover {
  border-color: var(--red-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.schematic-card-mini img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #000000;
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 16px;
}

.schematic-card-mini h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.schematic-card-mini p {
  font-size: 0.84rem;
  color: var(--gray-500);
}

/* ================= Problem Narrative ================= */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.problem-sidebar h3 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.problem-sidebar p {
  color: var(--gray-400);
  font-size: 1.05rem;
  line-height: 1.6;
}

.problem-items-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.problem-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: all 0.2s var(--ease);
  align-items: center;
}
.problem-row:hover {
  background: rgba(197, 31, 45, 0.02);
}
.problem-row:hover .problem-icon {
  border-color: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.problem-icon {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white-70);
  padding: 0;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.problem-icon svg {
  width: 100%;
  height: 100%;
}
.problem-icon .icon-accent {
  stroke: var(--red);
}

.problem-idx {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
}

.problem-row h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.problem-row p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ================= Problem Washer Graphic (Containerless) ================= */
.problem-washer-stage {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}

.problem-washer-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s var(--ease);
}

.problem-washer-img:hover {
  transform: scale(1.04);
}

/* Theme Switching for ISO SVGs */
:root[data-theme="light"] .theme-iso--dark { display: none !important; }
:root[data-theme="light"] .theme-iso--light { display: block !important; }
:root:not([data-theme="light"]) .theme-iso--dark { display: block !important; }
:root:not([data-theme="light"]) .theme-iso--light { display: none !important; }

:root[data-theme="light"] .problem-washer-img {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.1));
}

/* ================= Comparison Table ================= */
.comparison-table-wrap {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.comparison-table th {
  background: var(--gray-900);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  font-weight: 600;
}

.comparison-table th.nameplate-col,
.comparison-table td.nameplate-col {
  background: rgba(197, 31, 45, 0.04);
  border-left: 1px solid var(--red-border);
  border-right: 1px solid var(--red-border);
}

.comparison-table th.nameplate-col {
  color: var(--red);
}

.tag-badge-good {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 600;
}
.tag-badge-good::before {
  content: "✓";
  color: var(--red);
  font-weight: 800;
}

.tag-badge-bad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
}
.tag-badge-bad::before {
  content: "✕";
  color: var(--gray-700);
}

/* ================= Blueprint & Spatial Telemetry ================= */
.blueprint-container {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 950px) {
  .blueprint-container {
    grid-template-columns: 1fr;
  }
}

.blueprint-stage-box {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.blueprint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.blueprint-title-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

.cad-floorplan-svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.cad-zone {
  transition: stroke 0.2s ease, fill 0.2s ease;
}

.cad-zone.is-active-zone {
  stroke: rgba(255, 255, 255, 0.45) !important;
  stroke-width: 1.5px !important;
  fill: rgba(255, 255, 255, 0.04) !important;
}

.asset-pin {
  cursor: pointer;
}

.asset-pin .pin-box {
  fill: #000000;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.2px;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.asset-pin .pin-dot {
  fill: #888888;
  transition: fill 0.15s ease;
}

.asset-pin .pin-text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  fill: #aaaaaa;
  text-anchor: middle;
  letter-spacing: 0.04em;
  transition: fill 0.15s ease;
}

.asset-pin:hover .pin-box {
  fill: #16161a;
  stroke: rgba(255, 255, 255, 0.4);
}

.asset-pin:hover .pin-dot,
.asset-pin:hover .pin-text {
  fill: #ffffff;
}

.asset-pin.is-active .pin-box {
  fill: #1a0404;
  stroke: var(--red);
  stroke-width: 1.5px;
}

.asset-pin.is-active .pin-dot {
  fill: var(--red);
}

.asset-pin.is-active .pin-text {
  fill: #ffffff;
  font-weight: 800;
}

/* Spatial Telemetry HUD Card */
.asset-telemetry-hud {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 20px;
  background: #000000;
}

.hud-schematic-wrap {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 12px;
  position: relative;
}

.hud-schematic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: #888;
}

.hud-schematic-thumb {
  width: 100%;
  height: 120px;
  object-fit: contain;
  filter: contrast(1.08);
  display: block;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.hud-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin: 4px 0 14px;
}

.hud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-cell {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.hud-cell-label {
  font-size: 0.64rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 2px;
}

.hud-cell-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
}

.hud-timeline-box {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.hud-timeline-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: #ddd;
}

.hud-timeline-item:last-child {
  margin-bottom: 0;
}

.hud-dot {
  color: var(--red);
  font-size: 0.68rem;
  margin-top: 2px;
}

.hud-timeline-sub {
  font-size: 0.72rem;
  color: #777;
  font-family: var(--font-mono);
  margin-top: 1px;
}

/* ================= Architecture ================= */
.architecture-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.arch-node {
  padding: 40px 24px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.2s var(--ease);
}
.arch-node:last-child {
  border-right: none;
}
.arch-node:hover {
  background: rgba(197, 31, 45, 0.02);
}

.arch-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 6px;
}

.arch-step-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  display: block;
}

.arch-spec-tag {
  font-size: 0.62rem;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 1px;
}

.arch-node h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.arch-node p {
  font-size: 0.92rem;
  color: var(--gray-400);
  line-height: 1.55;
}

/* ================= Canonical App Screens & Device Gallery ================= */
.screens-section {
  padding: 100px 0;
  position: relative;
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.screens-header-wrap {
  margin-bottom: 3rem;
}

.screens-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.screens-subheading {
  max-width: 680px;
  color: var(--gray-400);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-top: 8px;
}

.screens-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.filter-pill {
  padding: 9px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  color: var(--gray-400);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-pill:hover {
  background: var(--bg-elevated);
  border-color: var(--white-40);
  color: var(--white);
}

.filter-pill.active {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

/* Section Header with Split Action Buttons */
.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-header-split .section-header {
  margin-bottom: 0;
  max-width: 660px;
}

.field-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.field-actions-row .btn {
  height: 46px;
  padding: 0 22px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  font-weight: 750;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* 3-Card Triptych Grid — ALWAYS three side-by-side, NEVER stack */
.ios-montage-container {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.ios-montage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.ios-montage-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
  background: #000000;
  aspect-ratio: 9 / 16;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ios-montage-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.95), 0 0 20px rgba(197, 31, 45, 0.18);
}

.ios-montage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

:root[data-theme="light"] .ios-montage-card {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

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

  .ios-montage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px;
    max-width: 100%;
    margin: 0 auto;
  }

  .ios-montage-card {
    border-radius: 14px;
  }
}

@media (max-width: 600px) {
  .ios-montage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .ios-montage-card {
    border-radius: 10px;
  }

  .ios-montage-card:hover {
    transform: translateY(-2px);
  }

  .ios-montage-card.has-corner-ticks::before {
    top: 4px;
    left: 4px;
    font-size: 8px;
  }

  .ios-montage-card.has-corner-ticks::after {
    bottom: 4px;
    right: 4px;
    font-size: 8px;
  }
}

@media (max-width: 380px) {
  .ios-montage-grid {
    gap: 5px;
  }

  .ios-montage-card {
    border-radius: 7px;
  }

  .ios-montage-card.has-corner-ticks::before {
    top: 3px;
    left: 3px;
    font-size: 7px;
  }

  .ios-montage-card.has-corner-ticks::after {
    bottom: 3px;
    right: 3px;
    font-size: 7px;
  }
}

.screen-badge-pill {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 14, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 12;
}

:root[data-theme="light"] .screen-badge-pill {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.18);
  color: #111111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

@media (max-width: 960px) {
  .hq-showcase-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ================= Early Access / Section 7 ================= */
.splash-cta {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(60px, 12vh, 120px) 0;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  scroll-margin-top: 76px;
}

.splash-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 25%, transparent 80%);
  pointer-events: none;
}

:root[data-theme="light"] .splash-cta::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 25%, transparent 80%);
}

.splash-cta .wrap {
  width: 100%;
  position: relative;
  z-index: 1;
}

.cta-box-inner {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-box-inner .section-tag {
  margin-bottom: 24px;
}

.cta-box-inner h2 {
  font-size: clamp(2.8rem, 6.2vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  text-wrap: balance;
}

:root[data-theme="light"] .cta-box-inner h2 {
  color: #111;
}

.cta-box-inner p {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--gray-400);
  margin-bottom: 40px;
  line-height: 1.65;
  max-width: 680px;
  margin-inline: auto;
  text-wrap: balance;
}

:root[data-theme="light"] .cta-box-inner p {
  color: #555;
}

.cta-box-inner :is(.btn-red, .btn-ghost) {
  min-height: 52px;
  padding: 14px 32px;
  font-size: 1rem;
}

/* ================= Polished Industrial Footer ================= */
.site-footer {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(3.5rem, 8vh, 6rem) 0 clamp(2rem, 4vh, 3rem);
  box-sizing: border-box;
  font-size: 0.85rem;
  color: var(--gray-500);
  overflow: hidden;
  scroll-margin-top: 76px;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 30%, transparent 85%);
  pointer-events: none;
}

.site-footer > .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

/* Brand Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
}

.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

.footer-brand-emblem {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.footer-brand-lockup:hover .footer-brand-emblem {
  border-color: rgba(197, 31, 45, 0.5);
  box-shadow: 0 0 16px rgba(197, 31, 45, 0.2);
}

.footer-brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-name {
  font-family: var(--font-nav);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.1;
}

.footer-brand-sub {
  font-family: var(--font-nav);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  font-weight: 700;
}

.footer-tagline {
  font-family: var(--font-nav);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--gray-400);
  margin: 0;
}

/* Nav Columns */
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-title {
  font-family: var(--font-nav);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  margin: 0;
  text-transform: uppercase;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a,
.footer-action-link {
  font-family: var(--font-nav);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.footer-nav-list a:hover,
.footer-action-link:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer-action-link {
  color: var(--red);
  font-weight: 600;
}

.footer-action-link:hover {
  color: #ff4a5a;
}

/* Bottom Bar */
.footer-bottom-bar {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-nav);
  font-size: 0.76rem;
  color: var(--gray-500);
}

.footer-sep {
  color: var(--gray-600);
  user-select: none;
}

.footer-legal-tag {
  color: var(--gray-500);
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Flat Box Theme Toggle (Just the Symbol) */
.footer-theme-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--gray-400);
  transition: all 0.18s var(--ease);
  box-sizing: border-box;
  flex-shrink: 0;
}

.footer-theme-box:hover {
  border-color: var(--red);
  color: var(--white);
  background: rgba(197, 31, 45, 0.08);
}

/* Back to Top */
.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-nav);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 7px 12px;
  border-radius: var(--radius);
  transition: all 0.18s var(--ease);
}

.footer-back-top:hover {
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-2px);
}

/* Light Mode Overrides */
:root[data-theme="light"] .site-footer {
  background: var(--bg);
  border-top-color: var(--border-subtle);
  color: #666;
}

:root[data-theme="light"] .site-footer::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 30%, transparent 85%);
}

:root[data-theme="light"] .footer-brand-name {
  color: #111;
}

:root[data-theme="light"] .footer-tagline {
  color: #555;
}

:root[data-theme="light"] .footer-brand-emblem {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .footer-col-title {
  color: #222;
}

:root[data-theme="light"] .footer-nav-list a {
  color: #555;
}

:root[data-theme="light"] .footer-nav-list a:hover {
  color: #111;
}

:root[data-theme="light"] .footer-bottom-bar {
  border-top-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .footer-legal {
  color: #666;
}

:root[data-theme="light"] .footer-theme-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.16);
  color: #444;
}

:root[data-theme="light"] .footer-theme-box:hover {
  border-color: var(--red);
  color: #111;
  background: rgba(197, 31, 45, 0.04);
}

:root[data-theme="light"] .footer-back-top {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.16);
  color: #555;
}

:root[data-theme="light"] .footer-back-top:hover {
  color: #000;
  border-color: var(--red);
}

/* Footer Responsive */
@media (max-width: 800px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* ================= Contact Us / Information Modal ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(197, 31, 45, 0.12);
  padding: 32px 34px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s var(--ease), background 0.2s var(--ease);
  overflow: hidden;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.modal-backdrop.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.modal-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.modal-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
}

.modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--gray-400);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  transform: translateY(-1px);
}

.modal-desc {
  margin: 0 0 22px;
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.55;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.form-control {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
  outline: none;
}

.form-control::placeholder {
  color: var(--gray-500);
}

.form-control:focus {
  border-color: var(--red);
  background: var(--bg);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 84px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.modal-submit-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: var(--radius);
  cursor: pointer;
}

.modal-submit-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

.modal-note {
  font-size: 0.72rem;
  color: var(--gray-500);
}

/* Success State in Modal */
.modal-success-state {
  text-align: center;
  padding: 24px 12px 12px;
  animation: modalFadeIn 0.25s ease;
}

.success-icon-box {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  border-radius: 50%;
  color: var(--red);
}

.success-glyph {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.success-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.success-desc {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 440px;
  margin: 0 auto 20px;
}

.success-roster-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.72rem;
}

.success-roster-badge span {
  color: var(--red);
  font-weight: 800;
}

.success-roster-badge strong {
  color: var(--white);
  letter-spacing: 0.04em;
}

/* Light Theme Overrides for Modal */
:root[data-theme="light"] .modal-backdrop {
  background: rgba(0, 0, 0, 0.65);
}

:root[data-theme="light"] .modal-dialog {
  background: #ffffff;
  color: #111111;
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2), 0 0 40px rgba(197, 31, 45, 0.08);
}

:root[data-theme="light"] .modal-title {
  color: #111111;
}

:root[data-theme="light"] .modal-close-btn {
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.15);
  color: #555555;
}

:root[data-theme="light"] .modal-close-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

:root[data-theme="light"] .modal-desc {
  color: #555555;
}

:root[data-theme="light"] .form-label {
  color: #555555;
}

:root[data-theme="light"] .form-control {
  background: #f7f7f7;
  border-color: rgba(0, 0, 0, 0.16);
  color: #111111;
}

:root[data-theme="light"] .form-control:focus {
  background: #ffffff;
  border-color: var(--red);
}

:root[data-theme="light"] .success-title {
  color: #111111;
}

:root[data-theme="light"] .success-desc {
  color: #555555;
}

:root[data-theme="light"] .success-roster-badge {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .success-roster-badge strong {
  color: #111111;
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .nav-ghost { display: none; }
  .hero-metrics-strip { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .qr-hero-studio { 
    grid-template-columns: 1fr; 
    max-width: 680px; 
    margin: 36px auto 0; 
    gap: 28px; 
  }
  .oversized-tag-card { 
    max-width: 680px; 
    margin: 0 auto; 
  }
  .schematic-featured-frame { grid-template-columns: 1fr; }
  .schematic-grid-trio { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr; max-width: 720px; margin: 32px auto 0; }
  .blueprint-container { grid-template-columns: 1fr; max-width: 780px; margin: 32px auto 0; }
  .architecture-track { grid-template-columns: 1fr 1fr; }
  .arch-node:nth-child(2) { border-right: none; }
  .arch-node:nth-child(3) { border-top: 1px solid var(--line); }
  .arch-node:nth-child(4) { border-top: 1px solid var(--line); border-right: none; }
}

@media (max-width: 820px) {
  .header-row {
    grid-template-columns: 1fr auto auto;
  }
  .nav-actions { display: flex; gap: 10px; }
  .nav-actions > a { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 28px;
    right: 28px;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px;
    background: rgba(8, 8, 8, 0.98);
    border-color: var(--line-strong);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  }
  html[data-theme="light"] .site-nav {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 14px;
  }
  .mobile-nav-app-link {
    display: flex !important;
    border-top: 1px solid var(--line);
    margin-top: 4px;
    padding-top: 4px !important;
  }
  .mobile-nav-app-link + .mobile-nav-app-link {
    margin-top: 0;
    border-top: 0;
  }
  .mobile-nav-primary {
    color: var(--white) !important;
    background: var(--bg-elevated) !important;
    border: 1px solid var(--line-strong) !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 680px) {
  .hero { padding: 140px 0 80px; }
  .hero-h1 { font-size: clamp(2.2rem, 9.5vw, 3.4rem); }
  .hero-ornament-strip {
    margin-top: 36px;
    padding-top: 18px;
  }
  .hero-ornament-list {
    gap: 8px 10px;
  }
  .oversized-tag-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
  .tag-qr-large-box {
    max-width: 220px;
    margin: 0 auto;
  }
  .tag-large-info {
    text-align: center;
    gap: 12px;
  }
  .tag-large-brand {
    justify-content: center;
  }
  .tag-specs-pills {
    justify-content: center;
  }
  .schematic-grid-trio { grid-template-columns: 1fr; }
  .hero-metrics-strip { grid-template-columns: 1fr; }
  .architecture-track { grid-template-columns: 1fr; }
  .arch-node { border-right: none; border-bottom: 1px solid var(--line); }
  .arch-node:last-child { border-bottom: none; }
  .comparison-table-wrap { overflow-x: auto; }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
  .site-nav {
    left: 20px;
    right: 20px;
  }
}

/* ================= LIVING ASSET RECORD CARD ================= */
/* ===========================================================
   04 / PORTFOLIO HQ LIVING INTELLIGENCE & AUDIT DOSSIERS
   Executive printable reports and live dashboard telemetry
   =========================================================== */
.hq-yield-section {
  position: relative;
}

.hq-yield-header {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.hq-yield-header-text .section-title {
  margin-bottom: 16px;
}

.hq-yield-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hq-filter-pill {
  height: 38px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--gray-400);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.hq-filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.hq-filter-pill.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

:root[data-theme="light"] .hq-filter-pill {
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.12);
  color: #555555;
}

:root[data-theme="light"] .hq-filter-pill:hover {
  background: #e6e6e6;
  border-color: rgba(0, 0, 0, 0.25);
  color: #111111;
}

:root[data-theme="light"] .hq-filter-pill.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

/* ================= Featured Dossier Interactive Stage ================= */
.hq-featured-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
  margin-bottom: 40px;
  position: relative;
}

@media (max-width: 980px) {
  .hq-featured-stage {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="light"] .hq-featured-stage {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

/* Left Visual Pane */
.featured-stage-visual {
  background: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
}

:root[data-theme="light"] .featured-stage-visual {
  background: var(--bg-card);
  border-right-color: var(--border-subtle);
}

@media (max-width: 980px) {
  .featured-stage-visual {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

.stage-img-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 380px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 80%), #040404;
  cursor: pointer;
  overflow: hidden;
}

:root[data-theme="light"] .stage-img-wrapper {
  background: #ebebeb;
}

.stage-featured-img {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.stage-img-wrapper:hover .stage-featured-img {
  transform: scale(1.02);
}

.stage-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--gray-400);
  pointer-events: none;
  opacity: 0.8;
}

:root[data-theme="light"] .stage-zoom-hint {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.12);
  color: #555555;
}

/* Right Details Pane */
.featured-stage-details {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  background: #000000;
}

:root[data-theme="light"] .featured-stage-details {
  background: #ffffff;
}

.stage-doc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stage-doc-id {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.08em;
}

.stage-doc-scope {
  font-size: 0.72rem;
  color: var(--gray-400);
  letter-spacing: 0.04em;
}

:root[data-theme="light"] .stage-doc-scope {
  color: #666666;
}

.stage-doc-title {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
  margin: 0;
}

:root[data-theme="light"] .stage-doc-title {
  color: #111111;
}

.stage-doc-desc {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin: 0;
}

:root[data-theme="light"] .stage-doc-desc {
  color: #555555;
}

/* Metrics 3-Col Grid */
.stage-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .stage-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.stage-metric-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

:root[data-theme="light"] .stage-metric-tile {
  background: #f8f8f8;
  border-color: rgba(0, 0, 0, 0.1);
}

.stage-metric-tile.stage-metric-alert {
  background: rgba(197, 31, 45, 0.06);
  border-color: rgba(197, 31, 45, 0.4);
}

.stage-metric-tile .metric-val {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.stage-metric-tile.stage-metric-alert .metric-val {
  color: var(--red);
}

:root[data-theme="light"] .stage-metric-tile .metric-val {
  color: #111111;
}

:root[data-theme="light"] .stage-metric-tile.stage-metric-alert .metric-val {
  color: var(--red);
}

.stage-metric-tile .metric-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  line-height: 1.3;
}

:root[data-theme="light"] .stage-metric-tile .metric-lbl {
  color: #666666;
}

/* Capability Tags */
.stage-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--gray-300);
}

:root[data-theme="light"] .stage-tag {
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.1);
  color: #555555;
}

/* Actions Row */
.stage-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.stage-actions-row .btn {
  height: 44px;
  padding: 0 20px;
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  white-space: nowrap;
}

/* ================= Yield Gallery Grid ================= */
.hq-gallery-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  gap: 16px;
  flex-wrap: wrap;
}

.hq-gallery-bar-title {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

.hq-gallery-bar-count {
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hq-yield-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

@media (min-width: 1200px) {
  .hq-yield-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hq-yield-card {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  position: relative;
}

.hq-yield-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.hq-yield-card.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 12px 36px rgba(197, 31, 45, 0.18);
}

:root[data-theme="light"] .hq-yield-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .hq-yield-card:hover {
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .hq-yield-card.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 8px 24px rgba(197, 31, 45, 0.12);
}

.yield-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #0a0a0a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .yield-card-thumb {
  background: #f0f0f0;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.yield-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.25s var(--ease);
}

.hq-yield-card:hover .yield-card-thumb img {
  transform: scale(1.04);
}

.yield-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(197, 31, 45, 0.4);
  color: var(--red);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.yield-card-badge.badge-console {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.yield-card-info {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.yield-card-doc {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.06em;
}

.yield-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}

:root[data-theme="light"] .yield-card-title {
  color: #111111;
}

.yield-card-stat {
  font-size: 0.74rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.yield-card-stat .stat-highlight {
  font-weight: 800;
  color: var(--white);
}

.yield-card-stat .stat-highlight.red {
  color: var(--red);
}

.yield-card-stat .stat-highlight.green {
  color: #22c55e;
}

:root[data-theme="light"] .yield-card-stat .stat-highlight {
  color: #111111;
}

:root[data-theme="light"] .yield-card-stat .stat-highlight.red {
  color: var(--red);
}

:root[data-theme="light"] .yield-card-stat .stat-highlight.green {
  color: #16a34a;
}

.yield-card-action {
  padding: 10px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] .yield-card-action {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.inspect-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  text-transform: uppercase;
  transition: transform 0.15s ease;
}

.hq-yield-card:hover .inspect-text {
  transform: translateX(3px);
}

/* Filter Hide Animation */
.hq-yield-card.is-filtered-out {
  display: none !important;
}

/* ================= Lightbox Modal ================= */
.hq-lightbox-backdrop {
  z-index: 1000;
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hq-lightbox-backdrop.is-active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hq-lightbox-dialog {
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  width: 100%;
  max-width: 1120px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.95);
  animation: lbModalFadeIn 0.25s var(--ease);
}

:root[data-theme="light"] .hq-lightbox-dialog {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

@keyframes lbModalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.hq-lightbox-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #000000;
}

:root[data-theme="light"] .hq-lightbox-header {
  background: #f7f7f7;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.hq-lightbox-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hq-lightbox-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--red);
}

.hq-lightbox-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:root[data-theme="light"] .hq-lightbox-title {
  color: #111111;
}

.hq-lightbox-sub {
  font-size: 0.68rem;
  color: var(--gray-400);
}

.hq-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hq-lightbox-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040404;
}

:root[data-theme="light"] .hq-lightbox-body {
  background: #e8e8e8;
}

.hq-lightbox-img-scroll {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hq-lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* ===========================================================
   07 / INVESTOR BRIEFING & CUSTOM AUDIO PLAYER
   Minimalist brutalist styling matching black/white/red system
   =========================================================== */
.investor-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  margin-top: 40px;
  align-items: stretch;
}

.investor-thesis-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.thesis-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.thesis-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 6px;
}

.thesis-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.thesis-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-light);
  padding: 18px;
  border-left: 3px solid var(--red);
}

.thesis-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--red);
}

.thesis-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.thesis-body p {
  font-size: 0.84rem;
  color: var(--white-70);
  line-height: 1.45;
}

.thesis-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: auto;
}

.thesis-metric {
  background: transparent;
  border: 0;
  padding: 0;
}

.thesis-metric .t-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
}

.thesis-metric .t-lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--white-70);
  margin-top: 4px;
  line-height: 1.3;
}

/* Audio Player Panel */
.investor-audio-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.audio-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 20px;
}

.podcast-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.podcast-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
}

.podcast-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: audioPulse 1.8s infinite;
}

@keyframes audioPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.podcast-time-badge {
  font-size: 0.72rem;
  color: var(--gray-400);
  letter-spacing: 0.06em;
}

.podcast-series {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

.podcast-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 8px;
}

.podcast-desc {
  font-size: 0.84rem;
  color: var(--white-70);
  line-height: 1.45;
}

.podcast-episode-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.podcast-episode-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  min-width: 0;
  padding: 12px;
  color: var(--white-70);
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.podcast-episode-option:hover {
  color: var(--white);
  border-color: var(--line-strong);
}

.podcast-episode-option.is-active {
  color: var(--white);
  background: rgba(197, 31, 45, 0.08);
  border-color: var(--red);
}

.episode-option-number,
.episode-option-duration {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.episode-option-number {
  color: var(--red);
}

.episode-option-duration {
  color: var(--gray-400);
}

.episode-option-title {
  grid-column: 1 / -1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Custom Audio Card */
.custom-audio-card {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.audio-loading-status {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.custom-audio-card[aria-busy="true"] .audio-loading-status {
  display: flex;
}

.audio-controls-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.audio-play-btn:hover {
  background: var(--red-hover);
  transform: scale(1.05);
}

.audio-icon {
  width: 20px;
  height: 20px;
}

.audio-icon.hidden {
  display: none;
}

.audio-track-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.audio-now-playing {
  font-size: 0.68rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.audio-track-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-speed-toggle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-300);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.audio-speed-toggle:hover {
  border-color: var(--red);
  color: var(--white);
}

/* Audio Scrubber */
.audio-scrubber-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audio-scrubber {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--gray-800);
  border-radius: var(--radius);
  outline: none;
  cursor: pointer;
}

.audio-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.audio-scrubber::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.audio-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--gray-400);
}

/* Audio Waveform Bars */
.audio-waveform-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
  padding-top: 4px;
  border-top: 1px solid var(--line-light);
}

.audio-waveform-bars span {
  flex: 1;
  background: var(--gray-700);
  border-radius: 1px;
  transition: height 0.15s ease, background 0.15s ease;
}

.audio-waveform-bars.is-playing span {
  background: var(--red);
  animation: barBounce 1.2s infinite ease-in-out alternate;
}

.audio-waveform-bars.is-playing span:nth-child(2n) {
  animation-delay: 0.2s;
}
.audio-waveform-bars.is-playing span:nth-child(3n) {
  animation-delay: 0.4s;
}
.audio-waveform-bars.is-playing span:nth-child(4n) {
  animation-delay: 0.1s;
}

@keyframes barBounce {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

/* Takeaways */
.podcast-takeaways {
  background: var(--bg-elevated);
  border: 1px solid var(--line-light);
  padding: 16px;
  border-radius: var(--radius);
}

.takeaway-head {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}

.takeaway-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.takeaway-list[hidden] {
  display: none;
}

.chapter-item {
  font-size: 0.8rem;
  color: var(--white-70);
  line-height: 1.35;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.chapter-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.chapter-item.is-active-chapter {
  background: rgba(197, 31, 45, 0.08);
  border-color: rgba(197, 31, 45, 0.3);
  color: var(--white);
}

.chapter-time {
  margin-right: 6px;
  font-weight: 700;
}

.takeaway-list strong {
  color: var(--white);
}

.investor-direct-cta {
  margin-top: auto;
  padding-top: 8px;
}

/* ================= Presentation Deck Block & Slide Viewer ================= */
.investor-deck-block {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.investor-deck-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.deck-download-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-outline-deck {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
  height: 38px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 750;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-outline-deck:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(197, 31, 45, 0.05);
}

.btn-red-deck {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  height: 38px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 750;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-red-deck:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

/* Viewer Container */
.deck-viewer-container {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deck-main-viewport {
  position: relative;
  width: 100%;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.deck-nav-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 14px;
  z-index: 5;
}

.deck-nav-arrow {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.deck-nav-arrow:hover {
  color: var(--red);
}

.deck-slide-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white-70);
  letter-spacing: 0.08em;
}

/* Thumbnails Track */
.deck-thumbs-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.deck-thumbs-track::-webkit-scrollbar {
  height: 4px;
}

.deck-thumbs-track::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: var(--radius);
}

.deck-thumb {
  position: relative;
  flex: 0 0 120px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.15s ease;
}

.deck-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.deck-thumb .thumb-idx {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: var(--radius);
  color: #fff;
}

.deck-thumb:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.4);
}

.deck-thumb.is-active {
  opacity: 1;
  border-color: var(--red);
}

@media (max-width: 980px) {
  .investor-grid {
    grid-template-columns: 1fr;
  }
  .investor-deck-block {
    padding: 20px;
  }
}

/* ================= Marketing presentation system =================
   Scoped to the landing page: product and report pages share this file.
   Keep artwork dark; UI surfaces and text follow the selected theme. */
.marketing-page {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --section-space: 128px;
  --wrap: 1280px;
  --radius: 8px;
  --bg-subtle: #030304;
  --bg-card: #050506;
  --bg-elevated: #0a0a0c;
  --gray-500: #92949c;
  --gray-400: #b0b2ba;
  --red: #c51f2d;
  --red-hover: #ac1926;
  --red-subtle: rgba(197, 31, 45, .08);
  --card-shadow: 0 16px 40px -24px rgba(0, 0, 0, .8);
  --title-size: clamp(2rem, 4.2vw, 3.5rem);
  --sub-size: clamp(1rem, 1.4vw, 1.125rem);
  --heading-size: clamp(1.25rem, 2.2vw, 1.75rem);
}
:root[data-theme="light"] .marketing-page {
  --bg-subtle: #f6f7f8;
  --bg-card: #fff;
  --bg-elevated: #f3f4f6;
  --border-subtle: #d9dce1;
  --gray-400: #525660;
  --gray-500: #60646d;
  --red: #c51f2d;
  --red-hover: #ac1926;
  --red-subtle: rgba(197, 31, 45, .06);
  --card-shadow: 0 16px 40px -24px rgba(25, 30, 40, .22);
}
.marketing-page .wrap {
  max-width: var(--wrap);
  padding-inline: 48px;
  width: 100%;
  box-sizing: border-box;
}
.marketing-page .section {
  padding-block: clamp(4.5rem, 8.5vh, 6.5rem);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  scroll-margin-top: 68px;
}
.marketing-page .site-footer {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(3.5rem, 8vh, 6rem) 0 clamp(2rem, 4vh, 3rem);
  box-sizing: border-box;
  scroll-margin-top: 76px;
}
.marketing-page .site-footer > .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}
.marketing-page .site-footer .footer-main-grid {
  margin-block: auto;
}
.marketing-page .section-header { margin-bottom: var(--space-6); text-align: left; }
.marketing-page .section-tag { margin-bottom: var(--space-3); font-size: .75rem; line-height: 1.6; letter-spacing: .1em; }
.marketing-page .section-tag::before { flex-shrink: 0; }
.marketing-page .section-title { font-size: var(--title-size); line-height: 1.08; letter-spacing: -.04em; margin-bottom: var(--space-3); max-width: 1000px; text-wrap: balance; }
.marketing-page .section-sub { font-size: var(--sub-size); line-height: 1.7; max-width: 800px; }
.marketing-page :is(.btn, .hq-filter-pill, .btn-stage-enlarge) { min-height: 48px; height: auto; padding: 12px 24px; line-height: 1.4; }
.marketing-page .nav-contact-btn { min-height: 34px; height: 34px; padding: 0 14px; line-height: 1; font-size: 0.72rem; letter-spacing: 0.08em; border-radius: 6px; }
.marketing-page .btn { font-size: .875rem; gap: 8px; text-align: center; white-space: normal; }
.marketing-page .btn svg { flex-shrink: 0; }
.marketing-page :is(.btn-red, .btn-red-deck) { background: #c51f2d; border-color: #c51f2d; color: #fff; }
.marketing-page :is(.btn-red, .btn-red-deck):hover { background: #ac1926; border-color: #ac1926; }
.marketing-page :is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.marketing-page :is(.brand-logo-img, .hero-logo-img, .footer-brand-logo, .tag-brand-logo-icon) { object-fit: contain; }

/* Hero: two clear lines, with a quiet center behind the typography. */
.marketing-page .hero--video { min-height: 100vh; min-height: 100svh; padding: 80px 0; justify-content: center; }
.marketing-page .hero-dramatic-wrap { gap: 0; }
.marketing-page .hero-brand-mark { margin-bottom: 40px; }
.marketing-page .hero-dramatic-h1 { font-size: clamp(2rem, 7.1vw, 6.25rem); line-height: 1.02; gap: 0; margin-bottom: 0; letter-spacing: -.05em; }
.marketing-page .hero-dramatic-banner { margin: 0; }
.marketing-page .hero-dramatic-actions { gap: 16px; margin-top: 40px; }
.marketing-page .btn-hero-cta { min-height: 56px; min-width: 240px; padding: 16px 24px; }
.marketing-page .hero-dramatic-actions .btn-ghost { background: var(--bg-card); border-color: var(--border-subtle); }
.marketing-page .hero-dramatic-subaction { margin-top: 24px; }
.marketing-page .hero-scroll-cue { min-height: 44px; color: var(--gray-400); }
.marketing-page .hero-video__veil { background: radial-gradient(ellipse 1100px 600px at 50% 48%, color-mix(in srgb, var(--bg) 80%, transparent) 0%, color-mix(in srgb, var(--bg) 45%, transparent) 48%, transparent 88%), linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%); }

/* 01: a shared header column, followed by a compact editorial split. */
.marketing-page .problem-grid { max-width: none; margin: 0; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; }
.marketing-page .problem-sidebar { border-top: 1px solid var(--border-subtle); padding-top: 24px; }
.marketing-page .problem-sidebar p { font-size: 1.125rem; line-height: 1.7; }
.marketing-page .problem-items-list, .marketing-page .problem-row { border-color: var(--border-subtle); }
.marketing-page .problem-row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 24px; padding-block: 24px; align-items: center; }
.marketing-page .problem-icon {
  width: clamp(88px, 10vw, 120px);
  height: clamp(88px, 10vw, 120px);
  border: 0;
  background: transparent;
  box-shadow: none;
}
.marketing-page .problem-idx { line-height: 1.75; font-size: .875rem; }
.marketing-page .problem-row h4 { font-size: 1.125rem; line-height: 1.5; }
.marketing-page .problem-row p { font-size: 1rem; line-height: 1.65; }

/* 02: symmetric callouts around a centered hardware specimen. */
.marketing-page .tag-anatomy-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 2.7fr) minmax(0, 1fr); gap: 32px; max-width: none; margin: 0; padding: 32px 0; }
.marketing-page .anatomy-center-frame { grid-column: auto; order: 0; max-width: 560px; justify-self: center; gap: 32px; }
.marketing-page .anatomy-callout-col { gap: 32px; }
.marketing-page .anatomy-callout-chip { padding: 0 0 0 16px; }
.marketing-page .chip-header { flex-wrap: wrap; font-size: .6875rem; gap: 8px; line-height: 1.5; }
.marketing-page .chip-body { font-size: .875rem; line-height: 1.6; }
.marketing-page .oversized-tag-card { --red: #ff6268; padding: 32px 24px; gap: 24px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.marketing-page .tag-qr-large-box { width: 100%; min-width: 0; }
.marketing-page .tag-large-npid { font-size: clamp(1rem, 1.8vw, 1.5rem); }
.marketing-page .studio-input-wrapper { gap: 8px; padding: 8px; }
.marketing-page .studio-large-input { min-width: 0; width: 100%; font-size: .9375rem; height: 48px; }
.marketing-page .studio-input-wrapper #btnRandomizeOversized { height: 48px; padding-inline: 16px; }
.marketing-page .studio-subtext { color: var(--gray-500); line-height: 1.6; }

/* 03: full-column montage and evenly spaced architecture cards. */
.marketing-page .ios-montage-container { max-width: none; }
.marketing-page .ios-montage-grid { gap: 24px; }
.marketing-page .ios-montage-card { border-radius: var(--radius); border-color: var(--border-subtle); box-shadow: var(--card-shadow); }
.marketing-page .field-actions-row { justify-content: flex-start; margin: 24px 0 0; gap: 16px; }
.marketing-page .field-architecture-block { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--border-subtle); }
.marketing-page .field-architecture-block h3.section-title { font-size: var(--heading-size); }
.marketing-page .architecture-track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border: 0; margin-top: 0; }
.marketing-page .arch-node { padding: 32px 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius); background: var(--bg-card); transition: background 0.2s var(--ease), border-color 0.2s var(--ease); }
.marketing-page .arch-node:hover { background: var(--bg-elevated); border-color: rgba(255, 255, 255, 0.24); }
.marketing-page .arch-node h4 { font-size: 1.125rem; line-height: 1.4; margin-bottom: 16px; color: var(--white); }
.marketing-page .arch-node p { font-size: .9375rem; line-height: 1.65; color: var(--gray-400); }

/* 04: the complete report remains readable; thumbnails use consistent crops. */
.marketing-page .hq-yield-header { gap: 32px; margin-bottom: 32px; }
.marketing-page .hq-yield-filter-row { gap: 8px; }
.marketing-page .hq-filter-pill { padding: 12px 16px; white-space: normal; }
.marketing-page .hq-featured-stage { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-bottom: 48px; border-color: var(--border-subtle); box-shadow: var(--card-shadow); background: var(--bg-card); }
.marketing-page .featured-stage-details { padding: 40px; gap: 24px; background: var(--bg-card); }
.marketing-page .stage-doc-title { font-size: var(--heading-size); line-height: 1.2; }
.marketing-page .stage-doc-desc { font-size: 1rem; line-height: 1.7; }
.marketing-page .stage-img-wrapper { flex: none; aspect-ratio: 4 / 3; min-height: 0; padding: 24px; }
.marketing-page .stage-featured-img { width: 100%; height: 100%; max-height: none; object-fit: contain; box-shadow: none; }
.marketing-page .stage-actions-row { gap: 16px; }
.marketing-page .hq-yield-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.marketing-page .hq-yield-card { border-color: var(--border-subtle); background: var(--bg-card); transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.marketing-page .hq-yield-card:hover { background: var(--bg-elevated); border-color: rgba(255, 255, 255, 0.24); }
.marketing-page .hq-yield-card.is-active { border-color: var(--red); }
.marketing-page .yield-card-thumb { aspect-ratio: 16 / 10; }
.marketing-page .yield-card-thumb img { display: block; }
.marketing-page .yield-card-info { padding: 24px 16px 16px; }
.marketing-page .yield-card-title { font-size: .9375rem; line-height: 1.5; }
.marketing-page .yield-card-action { margin-top: auto; padding: 16px; }

/* 05: horizontal scrolling is contained to the comparison region. */
.marketing-page .comparison-table-wrap { margin-top: 0; overflow-x: auto; border-color: var(--border-subtle); scrollbar-color: var(--gray-500) var(--bg-subtle); }
.marketing-page .comparison-table { min-width: 880px; table-layout: fixed; }
.marketing-page .comparison-table :is(th, td) { padding: 24px; vertical-align: top; border-color: var(--border-subtle); line-height: 1.6; }
.marketing-page .comparison-table th { position: static; background: var(--bg-elevated); color: var(--white); font-size: .75rem; letter-spacing: .04em; }
.marketing-page .comparison-table tbody tr:nth-child(even) { background: var(--bg-elevated); }
.marketing-page .comparison-table .nameplate-col { background: var(--red-subtle); }
.marketing-page .tag-badge-bad { color: var(--gray-400); }
.marketing-page :is(.tag-badge-bad, .tag-badge-good) { align-items: baseline; gap: 8px; }
.marketing-page :is(.tag-badge-bad, .tag-badge-good)::before { flex-shrink: 0; }
.marketing-page .tag-badge-bad::before { color: var(--gray-500); }
.marketing-page .comparison-table tr:last-child td { border-bottom: 0; }

/* 06: equal panels and a slide stage with controls below the artwork. */
.marketing-page .investor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 0; }
.marketing-page :is(.investor-thesis-panel, .investor-audio-panel, .investor-deck-block) { padding: 32px; border: 1px solid var(--border-subtle); border-radius: var(--radius); box-shadow: var(--card-shadow); background: var(--bg-card); }
.marketing-page :is(.investor-thesis-panel, .audio-panel-inner) { gap: 24px; }
.marketing-page :is(.thesis-header h3, .podcast-title) { font-size: var(--heading-size); line-height: 1.25; }
.marketing-page .thesis-card { grid-template-columns: 24px minmax(0, 1fr); gap: 16px; padding: 24px 16px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); }
.marketing-page :is(.thesis-body p, .podcast-desc) { font-size: .9375rem; line-height: 1.65; }
.marketing-page .podcast-badge-row { gap: 16px; flex-wrap: wrap; padding-bottom: 24px; }
.marketing-page .custom-audio-card { padding: 24px; border-radius: var(--radius); border-color: var(--border-subtle); }
.marketing-page .podcast-takeaways { background: var(--bg-elevated); border: 1px solid var(--border-subtle); }
.marketing-page .thesis-metrics-row { gap: 16px; padding-top: 24px; }
.marketing-page .t-val { font-size: clamp(1.125rem, 1.7vw, 1.5rem); white-space: nowrap; }
.marketing-page .investor-deck-block { margin-top: 48px; }
.marketing-page .investor-deck-header { gap: 24px; }
.marketing-page .deck-download-buttons { gap: 16px; }
.marketing-page .deck-viewer-container { min-width: 0; gap: 16px; }
.marketing-page .deck-main-viewport { aspect-ratio: 16 / 9; min-height: 0; }
.marketing-page .deck-main-img { position: absolute; inset: 0; object-fit: contain; }
.marketing-page .deck-nav-overlay { position: static; transform: none; align-self: center; padding: 0 8px; gap: 24px; background: var(--bg-elevated); border-color: var(--border-subtle); }
.marketing-page .deck-nav-arrow { width: 48px; height: 48px; color: var(--white); }
.marketing-page .deck-slide-counter { color: var(--white-90); }
.marketing-page .deck-thumbs-track { gap: 16px; max-width: 100%; padding: 4px 4px 16px; }
.marketing-page .deck-thumb { flex-basis: 144px; padding: 0; background: #000; opacity: .75; }
.marketing-page .deck-thumb.is-active { opacity: 1; }
.marketing-page .has-corner-ticks::before, .marketing-page .has-corner-ticks::after { pointer-events: none; }

@media (max-width: 1100px) {
  .marketing-page .wrap { padding-inline: 32px; }
  .marketing-page .tag-anatomy-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; padding: 0; }
  .marketing-page .anatomy-center-frame { grid-column: 1 / -1; order: -1; margin-inline: auto; }
  .marketing-page .chip-header { flex-wrap: nowrap; }
  .marketing-page .architecture-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketing-page .hq-yield-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .marketing-page .featured-stage-details { padding: 32px; }
  .marketing-page .investor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .marketing-page { --section-space: 64px; }
  .marketing-page .problem-grid { gap: 32px; grid-template-columns: 1fr; }
  .marketing-page .hq-featured-stage { grid-template-columns: 1fr; }
  .marketing-page .featured-stage-visual { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .marketing-page .hq-yield-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketing-page .ios-montage-grid { gap: 16px; }
  .marketing-page .hero--video { min-height: 100vh; min-height: 100svh; padding-block: 64px; }
}
@media (max-width: 600px) {
  .marketing-page .wrap { padding-inline: 24px; }
  .marketing-page .section-header { margin-bottom: 32px; }
  .marketing-page .hero--video { min-height: 100svh; padding-block: 48px; }
  .marketing-page .hero-dramatic-h1 { font-size: clamp(1.75rem, 8.1vw, 3rem); letter-spacing: -.045em; }
  .marketing-page .hero-brand-mark { margin-bottom: 32px; }
  .marketing-page .hero-dramatic-actions { flex-direction: column; width: 100%; gap: 16px; margin-top: 32px; }
  .marketing-page .btn-hero-cta { width: 100%; min-width: 0; }
  .marketing-page .tag-anatomy-stage { grid-template-columns: 1fr; gap: 32px; }
  .marketing-page .anatomy-callout-col { gap: 24px; }
  .marketing-page .oversized-tag-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .marketing-page .tag-large-npid { font-size: 1.5rem; }
  .marketing-page .studio-input-wrapper { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .marketing-page .studio-input-wrapper #btnRandomizeOversized { grid-column: 1 / -1; }
  .marketing-page .studio-input-prefix { padding-left: 8px; }
  .marketing-page .ios-montage-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .marketing-page .field-actions-row .btn { width: 100%; }
  .marketing-page .architecture-track { grid-template-columns: 1fr; }
  .marketing-page .field-architecture-block { margin-top: 48px; padding-top: 48px; }
  .marketing-page .hq-yield-grid { grid-template-columns: 1fr; }
  .marketing-page :is(.featured-stage-details, .investor-thesis-panel, .investor-audio-panel, .investor-deck-block) { padding: 24px; }
  .marketing-page .stage-img-wrapper { padding: 16px; }
  .marketing-page .stage-zoom-hint { font-size: .5rem; }
  .marketing-page .hq-filter-pill { font-size: .6875rem; padding-inline: 12px; }
  .marketing-page .custom-audio-card { padding: 16px; }
  .marketing-page .podcast-episode-selector { grid-template-columns: 1fr; }
  .marketing-page .audio-controls-top { flex-wrap: wrap; }
  .marketing-page .audio-track-meta { min-width: 0; }
  .marketing-page .thesis-metrics-row { grid-template-columns: 1fr; }
  .marketing-page .thesis-metric { padding-bottom: 16px; }
  .marketing-page .deck-download-buttons, .marketing-page .deck-download-buttons .btn { width: 100%; }
  .marketing-page .deck-thumb { flex-basis: 120px; }
  .marketing-page .footer-brand { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-page *, .marketing-page *::before, .marketing-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Core Leak icons: keep large on desktop, compact on small screens. */
@media (max-width: 600px) {
  .problem-row,
  .marketing-page .problem-row { grid-template-columns: 28px minmax(0, 1fr); }
  .problem-icon,
  .marketing-page .problem-icon {
    grid-column: 2;
    width: 84px;
    height: 84px;
    padding: 0;
    margin-top: 4px;
  }
}
