/* ==========================================================================
   Real Cloud One (www.realcloudone.com) – Architectural Swiss-Tech Design System
   Distinct from dmx.realcloudone.com & www.bangieff.net:
     - Full-bleed precision architectural header bar with numbered index links
     - Asymmetric split hero with interactive SVG system schematic + 4-cell ledger
     - 5-Row Architectural Practice Ledger with sticky index numbers & spec matrices
     - 4-Stage horizontal AI Agent pipeline + live trace terminal
     - Monolith DMX Case Study showcase + 4-Column Execution Blueprint
     - Split sticky-sidebar FAQ & colossal wordmark footer
   Palette preserved:
     Dark obsidian (#08080c / #111118) + Crimson Red (#e11d48 / #be123c)
     Rose (#fb7185) & Warm Amber (#f59e0b) highlights + crisp light sections.
   ========================================================================== */

/* ---------- Self-hosted fonts (Geist & Geist Mono) ---------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Gradient color-space interpolation tokens ---------- */
:root {
  --in-oklab: ;
  --in-oklch: ;
}

@supports (background: linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

/* ---------- Tokens: light (default) ---------- */
:root,
.on-light {
  color-scheme: light;
  accent-color: var(--primary);

  --bg: #fafafa;
  --bg-2: #f2f2f5;
  --surface: #ffffff;
  --surface-2: #f4f4f6;
  --border: #e4e4e7;
  --border-strong: #d0d0d6;

  --text: #09090d;
  --text-soft: #27272a;
  --muted: #52525b;

  --primary: #be123c;
  --primary-strong: #9f1239;
  --accent: #e11d48;
  --kicker: #be123c;

  --c-crimson: #be123c;
  --c-rose: #e11d48;
  --c-amber: #b45309;
  --c-slate: #18181b;

  --ok: #10b981;
  --info: #e11d48;
  --warn: #d97706;

  --gradient: linear-gradient(100deg var(--in-oklch), #be123c 0%, #e11d48 55%, #d97706 100%);
  --gradient-text: linear-gradient(100deg var(--in-oklch), #9f1239 0%, #e11d48 55%, #b45309 100%);
  --grid-line: rgb(9 9 13 / 0.055);

  --btn-bg: linear-gradient(180deg var(--in-oklab), #e11d48 0%, #be123c 100%);
  --btn-fg: #ffffff;
  --btn-ring: rgb(225 29 72 / 0.35);

  --shadow-sm: 0 1px 2px rgb(9 9 13 / 0.05), 0 4px 12px rgb(9 9 13 / 0.04);
  --shadow: 0 4px 12px -2px rgb(9 9 13 / 0.06), 0 24px 48px -16px rgb(9 9 13 / 0.16);
}

/* ---------- Tokens: dark bands (deep obsidian + crimson / rose glow) ---------- */
.on-dark {
  color-scheme: dark;
  accent-color: var(--accent);

  --bg: #08080c;
  --bg-2: #101017;
  --surface: rgb(255 255 255 / 0.045);
  --surface-2: rgb(255 255 255 / 0.085);
  --border: rgb(255 255 255 / 0.11);
  --border-strong: rgb(255 255 255 / 0.22);

  --text: #fafafa;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;

  --primary: #fb7185;
  --primary-strong: #fda4af;
  --accent: #f43f5e;
  --kicker: #fb7185;

  --ok: #34d399;
  --info: #fb7185;
  --warn: #fbbf24;

  --gradient: linear-gradient(100deg var(--in-oklch), #f43f5e 0%, #fb7185 50%, #fbbf24 100%);
  --gradient-text: linear-gradient(100deg var(--in-oklch), #ffffff 0%, #fda4af 42%, #f43f5e 78%, #fbbf24 100%);
  --grid-line: rgb(255 255 255 / 0.055);

  --btn-bg: linear-gradient(180deg var(--in-oklab), #f43f5e 0%, #be123c 100%);
  --btn-fg: #ffffff;
  --btn-ring: rgb(244 63 94 / 0.45);

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.45);
  --shadow: 0 30px 80px -24px rgb(0 0 0 / 0.85);

  background-color: var(--bg);
  color: var(--text);
}

:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 10vw, 8.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  interpolate-size: allow-keywords;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;

  @media (prefers-reduced-motion: no-preference) {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-size-adjust: from-font;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

strong {
  font-weight: 600;
  color: var(--text);
}

::selection {
  background: rgb(225 29 72 / 0.16);
  color: var(--text);
}

.on-dark ::selection {
  background: rgb(244 63 94 / 0.32);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size-adjust: from-font;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);

  &:focus {
    top: 1rem;
  }
}

/* ---------- Buttons (Sharp Architectural Chamfer / Radius) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 500 0.94rem/1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, translate 0.2s var(--ease-out), box-shadow 0.2s, filter 0.2s;

  .icon {
    width: 1em;
    height: 1em;
    transition: translate 0.2s var(--ease-out);
  }

  &:hover .icon {
    translate: 3px 0;
  }
}

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn--lg {
  padding: 0.95rem 1.55rem;
  font-size: 0.98rem;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 10px 26px -8px var(--btn-ring);

  &:hover {
    translate: 0 -1px;
    filter: brightness(1.08);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.32), 0 14px 34px -6px var(--btn-ring);
  }
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);

  &:hover {
    background: var(--surface-2);
    border-color: var(--primary);
  }
}

.btn--dmx-solid {
  background: linear-gradient(180deg var(--in-oklab), #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 10px 28px -8px rgb(16 185 129 / 0.5);

  &:hover {
    translate: 0 -1px;
    filter: brightness(1.07);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 16px 36px -8px rgb(16 185 129 / 0.65);
  }
}

/* ---------- Luminous Obsidian & Crimson-Aurora Header Bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    radial-gradient(50% 160% at 18% 0%, rgb(225 29 72 / 0.24), transparent 70%),
    radial-gradient(45% 150% at 82% 0%, rgb(245 158 11 / 0.14), transparent 70%),
    linear-gradient(180deg, rgb(15 11 24 / 0.88) 0%, rgb(10 8 18 / 0.82) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 12px 32px -12px rgb(0 0 0 / 0.65);

  &::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgb(255 255 255 / 0.04) 0%,
        rgb(244 63 94 / 0.5) 26%,
        rgb(251 191 36 / 0.42) 52%,
        rgb(244 63 94 / 0.4) 78%,
        rgb(255 255 255 / 0.04) 100%);
  }
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand__lockup {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.05;
}

.brand__name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand__one {
  color: #f43f5e;
}

.brand__sub {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  scroll-target-group: auto;
}

.nav__sentinel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #d4d4d8;
  transition: color 0.2s, background-color 0.2s;

  &:hover,
  &:is(:target-current, .\:target-current) {
    color: #ffffff;
    background: rgb(255 255 255 / 0.08);
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-mobile {
  position: relative;
  display: none;
}

.nav-mobile__toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;

  &::-webkit-details-marker {
    display: none;
  }
}

.nav-mobile__close {
  display: none;
}

.nav-mobile[open] .nav-mobile__open {
  display: none;
}

.nav-mobile[open] .nav-mobile__close {
  display: block;
}

.nav-mobile__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  width: min(84vw, 310px);
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #12121a;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.85);

  a:not(.btn) {
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;

    small {
      color: #f43f5e;
      margin-right: 0.35rem;
    }
  }

  a:not(.btn):hover {
    background: var(--surface-2);
    color: var(--text);
  }

  .nav-mobile__external {
    color: #6ee7b7 !important;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
    padding-top: 0.75rem !important;
  }

  .btn {
    justify-content: center;
    margin-top: 0.5rem;
  }
}

@media (width < 940px) {
  .nav {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .nav-actions>.btn {
    display: none;
  }
}

/* ---------- Hero: Luminous Aurora + Topographic Waves + 5-Layer Strata ---------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(65% 58% at 18% 12% var(--in-oklab), rgb(225 29 72 / 0.34) 0%, rgb(159 18 57 / 0.12) 45%, transparent 72%),
    radial-gradient(55% 60% at 82% 38% var(--in-oklab), rgb(244 63 94 / 0.24) 0%, rgb(245 158 11 / 0.14) 48%, transparent 74%),
    radial-gradient(50% 45% at 50% 100% var(--in-oklab), rgb(225 29 72 / 0.16) 0%, transparent 70%),
    linear-gradient(180deg, #0d0b14 0%, #090910 55%, #0b0a12 100%);
  border-bottom: 1px solid rgb(244 63 94 / 0.22);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero__aurora {
  position: absolute;
  inset: -25% -10%;
  background:
    conic-gradient(from 205deg at 72% 32%, transparent 0deg, rgb(244 63 94 / 0.22) 25deg, rgb(251 113 133 / 0.12) 52deg, rgb(245 158 11 / 0.12) 78deg, transparent 115deg),
    conic-gradient(from 25deg at 22% 18%, transparent 0deg, rgb(225 29 72 / 0.18) 32deg, transparent 85deg);
  filter: blur(28px);
}

.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / 0.16) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 52% 42%, #000 20%, transparent 82%);
}

.hero__contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

/* Reversible Hero Background Animation (active only when .hero__bg--animated is present) */
.hero__bg-lights {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__bg--animated {
    .hero__aurora {
      animation: hero-aurora-drift 20s ease-in-out infinite alternate;
    }

    .hero__bg-lights {
      display: block;
    }

    .hero__wave-beam {
      stroke-dasharray: 85 915;
      stroke-dashoffset: 1000;
      opacity: 0.85;
      filter: drop-shadow(0 0 8px currentColor);
      animation: hero-wave-glide 11s linear infinite;
    }

    .hero__wave-beam--2 {
      stroke-dasharray: 65 935;
      animation-duration: 15s;
      animation-delay: -5s;
    }

    .hero__wave-beam--3 {
      stroke-dasharray: 70 930;
      animation-duration: 18s;
      animation-delay: -9s;
      animation-direction: reverse;
    }

    .hero__orbit-beam {
      stroke-dasharray: 55 945;
      stroke-dashoffset: 1000;
      opacity: 0.7;
      filter: drop-shadow(0 0 7px currentColor);
      animation: hero-wave-glide 22s linear infinite;
    }

    .hero__orbit {
      transform-box: fill-box;
      transform-origin: center;
      animation: hero-orbit-spin 85s linear infinite;
    }

    .hero__orbit--outer {
      animation-duration: 120s;
      animation-direction: reverse;
    }

    .hero__node-halo {
      transform-box: fill-box;
      transform-origin: center;
      animation: hero-node-breathe 4.5s ease-in-out infinite;
    }

    .hero__node-halo--delayed {
      animation-delay: -2.25s;
    }
  }
}

@keyframes hero-wave-glide {
  from {
    stroke-dashoffset: 1000;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-aurora-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(1.5%, 1.5%, 0) scale(1.04);
  }
}

@keyframes hero-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hero-node-breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.45);
    opacity: 0.85;
  }
}

/* Full-width headline above both columns (centered so it visibly spans the text column and the sculpture) */
.hero__head {
  text-align: center;
  padding-bottom: clamp(2rem, 3.6vw, 3rem);

  .hero__title {
    margin-inline: auto;
  }
}

.hero__split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: stretch;
  padding-bottom: clamp(2.75rem, 5vw, 4rem);
}

/* Left column: lede at the top, DMX ribbon pinned to the bottom (aligned with the sculpture tile) */
.hero__editorial {
  display: flex;
  flex-direction: column;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: #fda4af;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgb(244 63 94 / 0.35);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 12px #f43f5e;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;

    @media (prefers-reduced-motion: no-preference) {
      animation: ping 2s var(--ease-out) infinite;
    }
  }
}

@keyframes ping {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

.hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero__lede {
  margin-top: 0;
  max-width: 600px;
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  color: var(--text-soft);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* DMX Ribbon inside Hero Left Column (horizontally aligned with .iso-stage on the right) */
.hero__dmx-callout {
  margin-top: auto;
  padding-top: 2rem;
}

.dmx-ribbon {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 74px;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, #10b981 36%, transparent);
  background: linear-gradient(90deg, color-mix(in oklab, #10b981 22%, transparent), color-mix(in oklab, #10b981 5%, rgb(12 11 20 / 0.55)));
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, background-color 0.2s, translate 0.2s var(--ease-out);

  &:hover {
    translate: 0 -2px;
    border-color: color-mix(in oklab, #10b981 62%, transparent);
  }
}

.dmx-ribbon__logo {
  width: 36px;
  height: 36px;
  flex: none;
}

.dmx-ribbon__text {
  display: grid;
  gap: 0.1rem;

  strong {
    font-size: 0.92rem;
    color: #ffffff;
    line-height: 1.22;
  }
}

.dmx-ribbon__tag {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: #6ee7b7;
}

.dmx-ribbon__sub {
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.dmx-ribbon__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #a7f3d0;
  white-space: nowrap;

  .icon {
    width: 14px;
    height: 14px;
  }

  @media (width < 560px) {
    display: none;
  }
}

/* Right Column: Floating 3D Isometric Stacked Glass Architecture SVG */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.hero__iso {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.iso-viewport {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.iso-svg {
  display: block;
  width: 100%;
  max-width: 310px;
  height: auto;
  margin-inline: auto;
  overflow: visible;
  filter: drop-shadow(0 24px 48px rgb(0 0 0 / 0.75));
}

.iso-plane {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s var(--ease-out), opacity 0.4s, filter 0.4s;
}

.iso-leader {
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 8px currentColor);
  /* When hiding: stay visible while the line retracts back to the floor */
  transition: opacity 0.24s var(--ease-out) 0.14s;
}

.iso-leader__line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  /* When hiding: retract from the card back into the floor vertex */
  transition: stroke-dashoffset 0.32s cubic-bezier(0.4, 0, 0.2, 1) 0.04s;
}

.iso-leader__origin,
.iso-leader__tip {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
}

.iso-leader__origin {
  /* When hiding: pop out after the line finishes retracting */
  transition: transform 0.24s var(--ease-out) 0.16s, opacity 0.2s var(--ease-out) 0.16s;
}

.iso-leader__tip {
  /* When hiding: pop out immediately as retraction begins */
  transition: transform 0.2s var(--ease-out), opacity 0.18s var(--ease-out);
}

/* Single Stationary Callout Panel underneath the 3D Sculpture (matched twin to .dmx-ribbon) */
.iso-stage {
  --stage-c: #fb7185;
  position: relative;
  width: 100%;
  min-height: 74px;
  margin: 0.25rem auto 0;
  display: grid;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--stage-c) 36%, transparent);
  background: linear-gradient(90deg, color-mix(in oklab, var(--stage-c) 22%, transparent), color-mix(in oklab, var(--stage-c) 5%, rgb(12 11 20 / 0.55)));
  backdrop-filter: blur(12px);
  transition:
    border-color 0.42s var(--ease-out),
    background 0.42s var(--ease-out),
    translate 0.2s var(--ease-out);

  &:hover {
    translate: 0 -2px;
    border-color: color-mix(in oklab, var(--stage-c) 62%, transparent);
  }
}

.iso-floor-card {
  --fc: #f43f5e;
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  filter: blur(3px);
  pointer-events: none;
  /* When hiding: fade and blur out gently in place without moving the box */
  transition:
    opacity 0.24s var(--ease-out),
    transform 0.26s var(--ease-out),
    filter 0.24s var(--ease-out),
    visibility 0s linear 0.26s;
}

.iso-floor-card__arrow {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  color: color-mix(in oklab, var(--fc) 78%, #ffffff);
  transition: translate 0.2s var(--ease-out);

  .icon {
    width: 14px;
    height: 14px;
  }
}

.iso-floor-card:hover .iso-floor-card__arrow,
.iso-floor-card:focus-visible .iso-floor-card__arrow {
  translate: 3px 0;
}

.iso-floor-card--l4 {
  --fc: #fb7185;
}

.iso-floor-card--l3 {
  --fc: #f59e0b;
}

.iso-floor-card--l2 {
  --fc: #10b981;
}

.iso-floor-card--l1 {
  --fc: #f43f5e;
}

.iso-floor-card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: color-mix(in oklab, var(--fc) 18%, rgb(12 11 20));
  border: 1px solid color-mix(in oklab, var(--fc) 45%, transparent);
  color: color-mix(in oklab, var(--fc) 85%, #ffffff);

  .icon {
    width: 18px;
    height: 18px;
  }
}

.iso-floor-card__text {
  display: grid;
  gap: 0.1rem;

  strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.22;
  }
}

.iso-floor-card__tag {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--fc) 78%, #ffffff);
}

.iso-floor-card__sub {
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.35;
}

/* Active Floor State (driven by auto-cycling JS or direct hover):
   1. Origin node pops in on the 3D floor vertex (0.02s)
   2. Leader line draws outward from floor into the stationary panel (0.04s -> 0.44s)
   3. Text inside the stationary panel cross-fades & unblurs in place (0.12s) */
.hero__iso[data-active-floor="l4"] .iso-leader--l4,
.hero__iso[data-active-floor="l3"] .iso-leader--l3,
.hero__iso[data-active-floor="l2"] .iso-leader--l2,
.hero__iso[data-active-floor="l1"] .iso-leader--l1 {
  opacity: 1;
  transition: opacity 0.15s var(--ease-out) 0s;

  .iso-leader__origin {
    transform: scale(1);
    opacity: 1;
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) 0.02s, opacity 0.18s var(--ease-out) 0.02s;
  }

  .iso-leader__line {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
  }

  .iso-leader__tip {
    transform: scale(1);
    opacity: 1;
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s, opacity 0.18s var(--ease-out) 0.2s;
  }
}

.hero__iso[data-active-floor="l4"] .iso-floor-card--l4,
.hero__iso[data-active-floor="l3"] .iso-floor-card--l3,
.hero__iso[data-active-floor="l2"] .iso-floor-card--l2,
.hero__iso[data-active-floor="l1"] .iso-floor-card--l1 {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  filter: blur(0px);
  pointer-events: auto;
  transition:
    opacity 0.34s var(--ease-out) 0.12s,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
    filter 0.34s var(--ease-out) 0.12s,
    visibility 0s linear 0s;
}

.hero__iso[data-active-floor="l4"] {
  .iso-stage {
    --stage-c: #fb7185;
  }

  .iso-plane:not(.iso-plane--l4) {
    opacity: 0.42;
  }

  .iso-plane--l4 {
    transform: translateY(-6px);
    filter: brightness(1.22) drop-shadow(0 0 26px rgb(251 113 133 / 0.55));
  }
}

.hero__iso[data-active-floor="l3"] {
  .iso-stage {
    --stage-c: #f59e0b;
  }

  .iso-plane:not(.iso-plane--l3) {
    opacity: 0.42;
  }

  .iso-plane--l3 {
    transform: translateY(-6px);
    filter: brightness(1.22) drop-shadow(0 0 26px rgb(245 158 11 / 0.55));
  }
}

.hero__iso[data-active-floor="l2"] {
  .iso-stage {
    --stage-c: #10b981;
  }

  .iso-plane:not(.iso-plane--l2) {
    opacity: 0.42;
  }

  .iso-plane--l2 {
    transform: translateY(-6px);
    filter: brightness(1.22) drop-shadow(0 0 26px rgb(16 185 129 / 0.55));
  }
}

.hero__iso[data-active-floor="l1"] {
  .iso-stage {
    --stage-c: #f43f5e;
  }

  .iso-plane:not(.iso-plane--l1) {
    opacity: 0.42;
  }

  .iso-plane--l1 {
    transform: translateY(-6px);
    filter: brightness(1.22) drop-shadow(0 0 26px rgb(244 63 94 / 0.55));
  }
}

@media (width < 680px) {
  .iso-leader {
    display: none;
  }

  .iso-stage {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .iso-flow {
    animation: iso-dash 8s linear infinite;
  }

  .iso-pulse-line {
    animation: iso-pulse 4s linear infinite;
  }

  .iso-pulse-line--delayed {
    animation-delay: -2s;
  }
}

@keyframes iso-dash {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes iso-pulse {
  from {
    stroke-dashoffset: 134;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@media (width < 1020px) {
  .hero__split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sections & Editorial Ledger Headers ---------- */
.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--alt {
  background:
    radial-gradient(60% 50% at 50% 0%, rgb(225 29 72 / 0.045), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--border);
}

.section.on-dark {
  background:
    radial-gradient(55% 60% at 85% 15%, rgb(225 29 72 / 0.16), transparent 70%),
    radial-gradient(50% 60% at 10% 85%, rgb(245 158 11 / 0.1), transparent 70%),
    var(--bg);
}

.ledger-header {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border-strong);

  @media (width < 880px) {
    grid-template-columns: 1fr;
  }
}

.ledger-header__lede {
  font-size: 1.04rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.kicker {
  font-size: 0.76rem;
  color: var(--kicker);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-title {
  margin-top: 0.85rem;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-lede {
  margin-top: 1.15rem;
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--text-soft);
  text-wrap: pretty;
}

/* ---------- 01 — Core Capabilities & Integration Bento Grid ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;

  &.is-spotlighting .cap-card:not(.is-highlighted) {
    opacity: 0.28;
    filter: grayscale(0.45);
    scale: 0.975;
  }
}

.cap-card {
  --c: var(--c-crimson);
  scroll-margin-top: 6.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
  padding: 1.85rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(85% 50% at 0% 0%, color-mix(in oklab, var(--c) 7%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: translate 0.28s var(--ease-out), scale 0.28s var(--ease-out), opacity 0.28s var(--ease-out), filter 0.28s var(--ease-out), border-color 0.25s, box-shadow 0.25s;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c), color-mix(in oklab, var(--c) 35%, transparent));
  }

  &:hover {
    translate: 0 -4px;
    border-color: color-mix(in oklab, var(--c) 55%, var(--border-strong));
    box-shadow: var(--shadow);
  }

  &.is-highlighted,
  &:target {
    z-index: 2;
    translate: 0 -6px;
    scale: 1.015;
    border-color: var(--c);
    box-shadow:
      0 0 0 3px color-mix(in oklab, var(--c) 38%, transparent),
      0 24px 50px -12px color-mix(in oklab, var(--c) 32%, rgb(15 23 42 / 0.25));
  }
}

.cap-card--crimson {
  --c: var(--c-crimson);
}

.cap-card--rose {
  --c: var(--c-rose);
}

.cap-card--amber {
  --c: var(--c-amber);
}

.cap-card--slate {
  --c: var(--c-slate);
}

.cap-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.cap-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 13px;
  background: color-mix(in oklab, var(--c) 11%, var(--bg));
  border: 1px solid color-mix(in oklab, var(--c) 28%, transparent);
  color: var(--c);
  box-shadow: 0 8px 20px -8px color-mix(in oklab, var(--c) 40%, transparent);

  .icon {
    width: 22px;
    height: 22px;
  }
}

.cap-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
  text-align: right;
}

.cap-card__tag {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cap-card__badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--c) 10%, var(--bg));
  border: 1px solid color-mix(in oklab, var(--c) 26%, transparent);
  color: var(--c);
}

.cap-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;

  h3 {
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
  }
}

.cap-card__lead {
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.56;
}

.cap-card__list {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-soft);

  li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.42;
  }

  .icon {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--c);
    margin-top: 0.18rem;
    flex: none;
  }
}

.cap-card__foot {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border-strong);
}

.cap-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;

  span {
    font-size: 0.69rem;
    padding: 0.22rem 0.52rem;
    border-radius: 6px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text);
  }
}

.cap-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c);

  .icon {
    width: 15px;
    height: 15px;
    transition: translate 0.2s var(--ease-out);
  }

  &:hover .icon {
    translate: 4px 0;
  }
}

@media (width < 1100px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width < 700px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 02 — Autonomous AI Agents 4-Stage Pipeline & Trace Console ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pipeline__stage {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: translate 0.25s var(--ease-out), border-color 0.25s, background 0.25s, box-shadow 0.25s;

  h3 {
    font-size: 1.12rem;
    font-weight: 600;
    color: #ffffff;
  }

  p {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.5;
  }

  &:hover {
    translate: 0 -3px;
    border-color: rgb(244 63 94 / 0.5);
    background: linear-gradient(160deg, rgb(225 29 72 / 0.14), rgb(16 16 23 / 0.95));
    box-shadow: 0 18px 44px -20px rgb(244 63 94 / 0.4);
  }
}

.pipeline__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.7rem;
}

.pipeline__step {
  color: var(--muted);
}

.pipeline__badge {
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  color: var(--text-soft);
}

.pipeline__badge--crimson {
  background: rgb(244 63 94 / 0.22);
  color: #fda4af;
}

.pipeline__badge--amber {
  background: rgb(245 158 11 / 0.2);
  color: #fcd34d;
}

.pipeline__badge--ok {
  background: rgb(16 185 129 / 0.2);
  color: #6ee7b7;
}

.pipeline__code {
  margin-top: auto;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: #060609;
  border: 1px solid rgb(255 255 255 / 0.08);
  font-size: 0.72rem;
  color: #fda4af;
}

.ai-console {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: center;
}

.ai-console__terminal {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #050508;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ai-console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.03);
  font-size: 0.72rem;
  color: var(--muted);
}

.ai-console__dots {
  display: inline-flex;
  gap: 0.4rem;

  i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
  }

  i:nth-child(1) {
    background: #f43f5e;
  }

  i:nth-child(2) {
    background: #f59e0b;
  }

  i:nth-child(3) {
    background: #10b981;
  }
}

.ai-console__tag {
  color: #6ee7b7;
  font-size: 0.68rem;
}

.ai-console__body {
  padding: 1.15rem;
  display: grid;
  gap: 0.65rem;
  font-size: 0.76rem;
}

.trace-line {
  display: grid;
  grid-template-columns: auto 84px 1fr;
  align-items: baseline;
  gap: 0.65rem;
  color: var(--text-soft);

  em {
    font-style: normal;
    color: #ffffff;
  }
}

.trace-time {
  color: #71717a;
  font-size: 0.7rem;
}

.trace-tag {
  font-size: 0.66rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}

.trace-tag--in {
  background: rgb(255 255 255 / 0.1);
  color: #e4e4e7;
}

.trace-tag--rag {
  background: rgb(59 130 246 / 0.2);
  color: #93c5fd;
}

.trace-tag--tool {
  background: rgb(244 63 94 / 0.22);
  color: #fda4af;
}

.trace-tag--ux {
  background: rgb(245 158 11 / 0.22);
  color: #fcd34d;
}

.trace-tag--ok {
  background: rgb(16 185 129 / 0.22);
  color: #6ee7b7;
}

.trace-line--final {
  padding-top: 0.55rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: #ffffff;
}

.ai-console__notes {
  h3 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
}

.checklist {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.35rem;

  li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    color: var(--text-soft);
    font-size: 0.93rem;
  }

  .icon {
    color: var(--accent);
    margin-top: 0.2rem;
  }
}

@media (width < 1020px) {
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-console {
    grid-template-columns: 1fr;
  }
}

@media (width < 600px) {
  .pipeline {
    grid-template-columns: 1fr;
  }

  .trace-line {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ---------- 03 — Flagship Product: DMX Monolith Case Study ---------- */
.dmx-monolith {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgb(255 255 255 / 0.16);
  background:
    radial-gradient(95% 90% at 85% 15% var(--in-oklab), #123542 0%, #0b1928 48%, #080b12 100%);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 90px -30px rgb(8 8 12 / 0.7);
}

.dmx-monolith__glow {
  position: absolute;
  inset: auto 10% -50% 30%;
  height: 90%;
  background: linear-gradient(100deg, #1e4f8a, #10b981);
  filter: blur(95px);
  opacity: 0.35;
  z-index: -1;
}

.dmx-monolith__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.dmx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.dmx-badge__logo {
  width: 38px;
  height: 38px;
  flex: none;
}

.dmx-badge__kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #6ee7b7;
}

.dmx-badge__name {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}

.dmx-monolith__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: center;
}

.dmx-showcase__title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.dmx-gradient-text {
  background: linear-gradient(100deg var(--in-oklch), #93c5fd 0%, #6ee7b7 55%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dmx-showcase__lede {
  margin-top: 0.75rem;
  font-size: 0.96rem;
  color: var(--text-soft);
}

.dmx-arch-stack {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.dmx-arch-tier {
  display: grid;
  grid-template-columns: 92px 175px 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.09);
  font-size: 0.74rem;

  strong {
    color: #ffffff;
    font-size: 0.8rem;
  }

  span:last-child {
    color: var(--text-soft);
    font-family: var(--font-sans);
    font-size: 0.81rem;
  }

  @media (width < 640px) {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.dmx-arch-tier__num {
  color: #6ee7b7;
  font-size: 0.66rem;
}

.dmx-arch-tier--active {
  border-color: rgb(52 211 153 / 0.5);
  background: rgb(16 185 129 / 0.14);
}

.dmx-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.dmx-monolith__visual {
  display: grid;
  gap: 1rem;
}

.dmx-window {
  border-radius: var(--radius);
  border: 1px solid rgb(255 255 255 / 0.25);
  background: #ffffff;
  box-shadow: 0 30px 70px -25px rgb(0 0 0 / 0.75);
  overflow: hidden;

  img {
    width: 100%;
    height: auto;
  }
}

.dmx-window--sub {
  padding: 0.5rem;
  border-radius: var(--radius-sm);

  img {
    border-radius: 6px;
  }
}

.dmx-window__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #dee4eb;
  background: linear-gradient(180deg, #ffffff, #eef1f5);

  .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
  }

  .dot:nth-child(1) {
    background: #ff5f57;
  }

  .dot:nth-child(2) {
    background: #febc2e;
  }

  .dot:nth-child(3) {
    background: #28c840;
  }
}

.dmx-window__url {
  margin-inline: auto;
  font-size: 0.7rem;
  color: #52637a;
  padding: 0.15rem 0.65rem;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid #dee4eb;
}

@media (width < 980px) {
  .dmx-monolith__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Zoom trigger & badge ---------- */
.zoom-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: zoom-in;
}

.zoom-badge {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(8 8 12 / 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  opacity: 0;
  translate: 0 4px;
  transition: opacity 0.2s, translate 0.2s var(--ease-out);
  pointer-events: none;

  .icon {
    width: 13px;
    height: 13px;
  }
}

.zoom-trigger:hover .zoom-badge,
.zoom-trigger:focus-visible .zoom-badge {
  opacity: 1;
  translate: 0 0;
}

/* ---------- 04 — Team Bench & Execution Blueprint ---------- */
.team-bench {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.team-pillar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 1.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-sm);

  p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.58;
  }
}

.team-pillar__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;

  h3 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
}

.team-pillar__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgb(225 29 72 / 0.2);
}

.team-pillar__tag {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.team-pillar__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-strong);

  span {
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text);
  }
}

@media (width < 980px) {
  .team-bench {
    grid-template-columns: 1fr;
  }
}

.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bp-card {
  padding: 2rem 1.65rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;

  &:last-child {
    border-right: 0;
  }

  h3 {
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.55;
  }
}

.bp-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--primary);
  font-size: 0.7rem;
  color: var(--muted);
}

.bp-card__num {
  color: var(--primary);
  font-weight: 600;
}

@media (width < 980px) {
  .blueprint-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bp-card {
    border-bottom: 1px solid var(--border);
  }
}

@media (width < 600px) {
  .blueprint-grid {
    grid-template-columns: 1fr;
  }

  .bp-card {
    border-right: 0;
  }
}

/* ---------- Applied R&D & Co-Innovation Banner ---------- */
.rnd-banner {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgb(244 63 94 / 0.32);
  background:
    radial-gradient(60% 90% at 15% 20% var(--in-oklab), rgb(225 29 72 / 0.25) 0%, transparent 70%),
    radial-gradient(50% 80% at 90% 80% var(--in-oklab), rgb(245 158 11 / 0.16) 0%, transparent 70%),
    linear-gradient(135deg, #100d18 0%, #090910 100%);
  box-shadow: var(--shadow);
}

.rnd-banner__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fbbf24;

  .icon {
    width: 15px;
    height: 15px;
    color: #f43f5e;
  }
}

.rnd-banner__main {
  h3 {
    margin-top: 0.55rem;
    font-size: clamp(1.3rem, 2.3vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #ffffff;
  }

  p {
    margin-top: 0.65rem;
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.62;
  }
}

.rnd-banner__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  border-left: 1px solid rgb(255 255 255 / 0.12);
}

.rnd-banner__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;

  li {
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    background: rgb(255 255 255 / 0.05);
    border: 1px solid rgb(255 255 255 / 0.12);
    font-size: 0.72rem;
    color: #fda4af;
  }
}

@media (width < 900px) {
  .rnd-banner {
    grid-template-columns: 1fr;
  }

  .rnd-banner__side {
    padding-left: 0;
    padding-top: 1.25rem;
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 0.12);
  }
}

/* ---------- 06 — FAQ (Balanced 2-Column Ledger Accordion) ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  align-items: start;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;

  &:hover {
    border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
  }

  &[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
  }

  summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 4.5rem;
    padding: 0.85rem 1.35rem;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;

    &::-webkit-details-marker {
      display: none;
    }

    .icon {
      flex-shrink: 0;
      color: var(--muted);
      transition: rotate 0.25s var(--ease-out), color 0.2s;
    }
  }

  &[open] summary .icon {
    rotate: 45deg;
    color: var(--primary);
  }

  &::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.3s var(--ease-out), content-visibility 0.3s allow-discrete;
  }

  &[open]::details-content {
    block-size: auto;
  }

  p {
    padding: 0 1.35rem 1.35rem 3.25rem;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

.faq__q {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;

  small {
    color: var(--primary);
    font-size: 0.78rem;
    flex-shrink: 0;
  }
}

.faq-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--primary) 28%, var(--border));
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 7%, var(--surface)), var(--surface));
  box-shadow: var(--shadow-sm);
}

.faq-cta-card__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;

  strong {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
  }
}

.faq-cta-card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 600;
}

@media (width < 920px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (width < 560px) {
  .faq-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__item::details-content {
    transition: none !important;
  }
}

/* ---------- 06 — CTA & Contact Form ---------- */
#contact {
  padding-block: 1.5rem clamp(2.5rem, 4.5vw, 3.5rem);
  scroll-margin-top: -1rem;
}

.cta {
  position: relative;
  padding: clamp(1.35rem, 2.5vw, 1.85rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgb(255 255 255 / 0.15);
  background:
    radial-gradient(120% 120% at 50% 0% var(--in-oklab), #330a18 0%, #150710 45%, var(--bg) 78%);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 80px -30px rgb(8 8 12 / 0.65);
}

.cta__glow {
  position: absolute;
  inset: auto 15% -60% 15%;
  height: 100%;
  background: linear-gradient(100deg, #e11d48, #f59e0b);
  filter: blur(90px);
  opacity: 0.4;
  z-index: -1;
}

.cta__title {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.cta__lede {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--text-soft);
}

.cta__grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 500px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cta__pitch .cta__title {
  margin-top: 1rem;
}

.cta__pitch .checklist {
  margin-top: 1.75rem;
}

@media (width < 920px) {
  .cta__grid {
    grid-template-columns: 1fr;
  }
}

.demo-card {
  padding: clamp(1.15rem, 2vw, 1.45rem);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / 0.65);
}

.demo-form {
  display: grid;
  gap: 0.68rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;

  @media (width < 560px) {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 0.24rem;
}

.field label {
  font-size: 0.84rem;
  font-weight: 500;
}

.field__req {
  color: var(--c-crimson);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.78rem;
  border: 1px solid #9ca3af;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  resize: vertical;
  field-sizing: content;
  height: auto;
  min-block-size: 2.5lh;
  max-block-size: 10lh;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(225 29 72 / 0.25);
}

.field__error {
  display: none;
  margin: 0;
  font-size: 0.85rem;
  color: var(--c-crimson);
}

.field__error.is-server {
  display: block;
}

.field :is(input, textarea):user-invalid,
.field :is(input, textarea)[aria-invalid="true"] {
  border-color: var(--c-crimson);
  background: #fff1f2;
}

.field :is(input, textarea):user-invalid~.field__error.is-client {
  display: block;
}

.field :is(input, textarea)[aria-invalid="true"]~.field__error.is-client {
  display: none;
}

.demo-form__alert {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid color-mix(in oklab, var(--c-crimson) 40%, white);
  border-radius: var(--radius-sm);
  background: #fff1f2;
  color: var(--c-crimson);
  font-size: 0.9rem;
}

.demo-form__submit {
  justify-content: center;
  width: 100%;
}

.demo-form__submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.demo-form__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.demo-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.demo-success {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 1.5rem 0.5rem;
  text-align: center;

  h3 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  p {
    color: var(--text-soft);
  }
}

.demo-success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 10px 24px -8px rgb(225 29 72 / 0.6);

  .icon {
    width: 28px;
    height: 28px;
  }
}

/* ---------- Footer with Oversized Architectural Wordmark ---------- */
.site-footer {
  padding-top: 4.5rem;
  border-top: 1px solid var(--border);
  overflow: clip;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fb7185;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.6rem;

  a {
    color: var(--text-soft);
    font-size: 0.94rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;

    .icon {
      width: 14px;
      height: 14px;
      color: var(--muted);
    }
  }

  a:hover {
    color: #ffffff;
  }
}

/* Oversized wordmark sits behind the footer content as a watermark */
.site-footer>.container {
  position: relative;
  isolation: isolate;
}

.footer-wordmark {
  position: absolute;
  inset-inline: 0;
  top: 54%;
  translate: 0 -50%;
  z-index: -1;
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.13) 0%, rgb(244 63 94 / 0.08) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (width < 820px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ---------- Lightbox modal (<dialog>) ---------- */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgb(8 8 12 / 0.85);
  backdrop-filter: blur(6px);
}

.lightbox {
  max-width: min(94vw, 1360px);
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #12121a;
  color: var(--text);
  box-shadow: 0 40px 100px -20px rgb(0 0 0 / 0.85);
  overflow: auto;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #181824;
}

.lightbox__caption {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.lightbox__close {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.15s;

  &:hover {
    background: rgb(255 255 255 / 0.18);
  }

  .icon {
    width: 15px;
    height: 15px;
  }
}

.lightbox__body {
  padding: 1rem;
  background: #ffffff;

  img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(90vh - 5.5rem);
    height: auto;
    margin-inline: auto;
    border-radius: var(--radius-sm);
  }
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;

  .code {
    font-family: var(--font-mono);
    font-size: clamp(5rem, 16vw, 10rem);
    font-weight: 500;
    line-height: 1;
  }

  .section-lede {
    margin-inline: auto;
  }
}

/* ---------- Scroll reveal (decorative, progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-up {
      from {
        opacity: 0;
        translate: 0 36px;
      }
    }

    .reveal {
      animation: reveal-up auto var(--ease-out) backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
  }
}

/* ---------- Forced colors (Windows High Contrast) ---------- */
@media (forced-colors: active) {

  .gradient-text,
  .dmx-gradient-text,
  .footer-wordmark {
    color: CanvasText;
    background: none;
  }

  .site-header,
  .practice-row,
  .bp-card,
  .faq__item,
  .cta,
  .dmx-monolith,
  .schematic-card {
    border: 1px solid CanvasText;
  }

  .btn--primary,
  .btn--dmx-solid {
    border-color: ButtonText;
  }
}

/* ---------- 05 — Applied R&D section (banner promoted to its own anchor) ---------- */
.section--rnd {
  padding-top: 0;
}

.rnd-banner__main h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-wrap: balance;
}