/* ============================================================
   XCODITS — Design System v2.0 (Soft Structuralism & Precision UI)
   Self-hosted Geist + Geist Mono · Double-Bezel Hardware Surfaces
   Calibrated Teal-Slate Palette · Light & Dark Mode
   ============================================================ */

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/geist-mono-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root,
[data-theme="light"] {
  color-scheme: light;

  /* Surfaces & Canvas */
  --paper:       #f4f6fa;
  --paper-2:     #ebf0f7;
  --white:       #ffffff;
  --faint:       #edf2f9;
  --sand:        #f0f4fa;
  --shell:       rgba(15, 23, 42, 0.035);
  --shell-hover: rgba(63, 85, 214, 0.06);

  /* Typography Ink */
  --ink:         #0d1527;
  --body:        #475569;
  --mid:         #64748b;

  /* Hairlines & Borders */
  --line:        rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);
  --inner-shine: inset 0 1px 0 rgba(255, 255, 255, 0.85);

  /* Brand Accent (Hero Section Blue) */
  --accent:      #3f55d6;
  --accent-dark: #2c3eb3;
  --accent-soft: rgba(63, 85, 214, 0.08);
  --accent-line: rgba(63, 85, 214, 0.26);
  --accent-glow: rgba(63, 85, 214, 0.24);

  /* Interactive Controls (Hero Blue Buttons) */
  --btn:         #3f55d6;
  --btn-hover:   #3144b8;
  --btn-text:    #ffffff;
  --bar-bg:      rgba(244, 246, 250, 0.82);

  /* Ambient Lighting & Notices */
  --glow-a:      rgba(63, 85, 214, 0.08);
  --glow-b:      rgba(46, 203, 233, 0.05);
  --note-bg:     #f5f7fe;
  --note-line:   rgba(63, 85, 214, 0.20);
  --note-edge:   #3f55d6;
  --note-text:   #334155;
  --note-label:  #2c3eb3;
  --warn:        #c3324b;

  /* Tinted Elevation Shadows */
  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 30, 60, 0.05);
  --shadow:      0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 44px -16px rgba(15, 35, 75, 0.12);
  --shadow-lg:   0 2px 4px rgba(15, 23, 42, 0.05), 0 32px 72px -24px rgba(15, 40, 90, 0.20);

  /* Geometry & Rhythm */
  --radius-xl:   28px;
  --radius-lg:   22px;
  --radius:      18px;
  --radius-sm:   12px;
  --maxw:        1200px;
  --readw:       64ch;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.32, 0.72, 0, 1);
  --font-sans:   'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root[data-theme="dark"],
[data-theme="dark"] {
  color-scheme: dark;

  --paper:       #080a0f;
  --paper-2:     #0c1017;
  --white:       #101520;
  --faint:       #141b29;
  --sand:        #121824;
  --shell:       rgba(243, 245, 248, 0.035);
  --shell-hover: rgba(100, 124, 242, 0.08);

  --ink:         #f3f5f8;
  --body:        #94a3b8;
  --mid:         #64748b;

  --line:        rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.16);
  --inner-shine: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Brand Accent (Hero Section Blue) */
  --accent:      #647cf2;
  --accent-dark: #8da2fb;
  --accent-soft: rgba(100, 124, 242, 0.12);
  --accent-line: rgba(100, 124, 242, 0.32);
  --accent-glow: rgba(100, 124, 242, 0.38);

  /* Interactive Controls (Hero Blue Buttons) */
  --btn:         #647cf2;
  --btn-hover:   #788ff8;
  --btn-text:    #ffffff;
  --bar-bg:      rgba(8, 10, 15, 0.82);

  --glow-a:      rgba(100, 124, 242, 0.12);
  --glow-b:      rgba(74, 116, 232, 0.08);
  --note-bg:     #0c101d;
  --note-line:   rgba(100, 124, 242, 0.25);
  --note-edge:   #647cf2;
  --note-text:   #94a3b8;
  --note-label:  #8da2fb;
  --warn:        #ff7d92;

  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 16px -4px rgba(0, 0, 0, 0.45);
  --shadow:      0 2px 4px rgba(0, 0, 0, 0.40), 0 24px 56px -20px rgba(0, 0, 0, 0.70);
  --shadow-lg:   0 4px 8px rgba(0, 0, 0, 0.50), 0 36px 84px -28px rgba(0, 0, 0, 0.85);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--paper);
  background-image:
    radial-gradient(960px 520px at 88% -80px, var(--glow-a), transparent 70%),
    radial-gradient(760px 440px at -8% 28%, var(--glow-b), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.3s var(--ease);
}

/* Subtle architectural grid texture on fixed layer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(110% 80% at 50% 0%, rgba(0, 0, 0, 0.38) 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(110% 80% at 50% 0%, rgba(0, 0, 0, 0.38) 10%, transparent 75%);
  pointer-events: none;
}

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

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

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

a:hover {
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--btn-text);
}

/* ---------- Skip Link ---------- */
.skip {
  position: fixed;
  left: 50%;
  top: 12px;
  transform: translate(-50%, -150%);
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease);
}

.skip:focus {
  transform: translate(-50%, 0);
}

/* ============================================================
   Floating Architectural Header (.topbar)
   ============================================================ */
.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 32px, 1280px);
  height: 62px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 14px 0 22px;
  background: var(--bar-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm), var(--inner-shine);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.logo-box {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 0;
}

.logo-box img {
  height: 28px;
  width: auto;
  display: block;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--shell);
  border: 1px solid var(--line);
}

.nav a {
  font-size: 13.5px;
  font-weight: 520;
  letter-spacing: -0.005em;
  color: var(--body);
  text-decoration: none;
  padding: 6px 15px;
  border-radius: 999px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(128, 128, 128, 0.08);
}

.nav a.on {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), var(--inner-shine);
}

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text) !important;
  font-size: 13px;
  font-weight: 580;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px var(--accent-glow);
}

.nav-cta:active {
  transform: scale(0.98);
}

.theme-toggle {
  position: relative;
  overflow: hidden;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--inner-shine);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: scale(0.96);
}

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

.theme-toggle svg {
  width: 17px;
  height: 17px;
  position: absolute;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle .i-moon,
[data-theme="light"] .theme-toggle .i-moon {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.theme-toggle .i-sun,
[data-theme="light"] .theme-toggle .i-sun {
  opacity: 0;
  transform: translate(14px, -14px) scale(0.75);
}

[data-theme="dark"] .theme-toggle .i-sun {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

[data-theme="dark"] .theme-toggle .i-moon {
  opacity: 0;
  transform: translate(-14px, 14px) scale(0.75);
}

@media (min-width: 901px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .topbar .logo-box { justify-self: start; }
  .topbar .nav { justify-self: center; margin: 0; }
  .topbar .tools { justify-self: end; }
}

/* ============================================================
   Layout Panels & Section Rhythm
   ============================================================ */
.anno { display: none !important; }

.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 108px) clamp(20px, 4vw, 48px);
  position: relative;
}

.panel.flow {
  justify-content: flex-start;
  padding: clamp(44px, 6vw, 76px) clamp(20px, 4vw, 48px);
}

.panel.first {
  padding-top: clamp(128px, 14vh, 164px);
}

.panel.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.panel.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .panel.reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Typography Scale & Tokens
   ============================================================ */
h1, h2, h3, h4 {
  text-wrap: balance;
  font-weight: 620;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.kicker {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 16px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.kicker::before {
  content: '';
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 36px;
  height: 2px;
  border-radius: 0;
  background: var(--accent);
}

:root[data-theme="dark"] .kicker {
  color: var(--accent);
}

.q-box .kicker,
.story-progress-bar + .kicker {
  width: auto;
  display: inline-flex;
  padding-top: 0;
  padding-left: 11px;
  border-top: 0;
  border-left: 2px solid var(--accent);
  margin-bottom: 14px;
}

.q-box .kicker::before,
.story-progress-bar + .kicker::before {
  display: none;
}

.big {
  font-size: clamp(2.25rem, 4.2vw, 3.85rem);
  line-height: 1.04;
  margin-bottom: 24px;
  letter-spacing: -0.042em;
  font-weight: 620;
  max-width: 18ch;
}

.med {
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.032em;
  font-weight: 600;
  max-width: 24ch;
}

.small {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.24;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.body {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  color: var(--body);
  max-width: var(--readw);
  line-height: 1.68;
  text-wrap: pretty;
}

.body + .body {
  margin-top: 16px;
}

.body a {
  color: var(--accent-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
}

.body a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.lead {
  font-size: clamp(1.08rem, 1.3vw, 1.24rem);
  font-weight: 520;
  color: var(--ink);
  line-height: 1.58;
}

.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line) 60%, transparent);
  margin: 0 0 40px;
}

/* ============================================================
   Double-Bezel (Doppelrand) Architectural Containers
   ============================================================ */
.db-shell {
  padding: 7px;
  border-radius: var(--radius-xl);
  background: var(--shell);
  border: 1px solid var(--line);
}

.db-core {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--inner-shine);
  overflow: hidden;
  position: relative;
}

/* Refined media/illustration frame (replaces legacy .ph boxes) */
.ph {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 90% at 50% 0%, var(--accent-soft), transparent 72%),
    var(--white);
  box-shadow: var(--shadow-sm), var(--inner-shine);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.ph > span {
  background: var(--bar-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* ============================================================
   Scroll Cue
   ============================================================ */
.scroll-cue {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 520;
  color: var(--mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--shell);
  border: 1px solid var(--line);
  align-self: flex-start;
}

.scroll-cue .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  animation: bob 2.2s var(--ease) infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ============================================================
   Story Chooser Cards (Double-Bezel Interactive Modules)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 44px auto 0;
}

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: 8px;
  border-radius: var(--radius-xl);
  background: var(--shell);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.45s var(--ease);
}

.card-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  box-shadow: var(--shadow-sm), var(--inner-shine);
  transition: border-color 0.3s var(--ease), box-shadow 0.45s var(--ease);
}

/* Support both direct children and .card-inner structure */
.card:not(:has(.card-inner)) {
  background: var(--white);
  padding: 24px;
  gap: 14px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), var(--inner-shine);
  outline: 6px solid var(--shell);
  outline-offset: 0;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  background: var(--shell-hover);
  box-shadow: var(--shadow-lg);
}

.card:active {
  transform: translateY(-2px) scale(0.99);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 550;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--accent-line);
}

.card-thumb {
  width: 100%;
  height: 156px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

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

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

.card .card-title {
  font-size: 22px;
  font-weight: 630;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 2px;
}

.card .card-sub {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.58;
}

.card .pull {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 560;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.25s var(--ease);
}

.card .pull-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--shell);
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  transition: transform 0.35s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.card:hover .pull,
.card.active .pull {
  color: var(--accent-dark);
}

.card:hover .pull-icon,
.card.active .pull-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--btn-text);
  transform: translateY(2px);
}

/* ============================================================
   Story Figure & Double-Bezel Browser Frame
   ============================================================ */
.story-figure {
  margin: 36px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-screen-frame {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--shell);
  box-shadow: var(--shadow);
  transition: border-color 0.3s var(--ease), box-shadow 0.35s var(--ease);
}

.story-screen-frame:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-lg);
}

.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-size: 12px;
  color: var(--mid);
  gap: 12px;
  box-shadow: var(--inner-shine);
}

.frame-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.frame-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.frame-dots span:nth-child(1) { background: #ff5f56; }
.frame-dots span:nth-child(2) { background: #ffbd2e; }
.frame-dots span:nth-child(3) { background: #27c93f; }

.frame-title {
  font-family: var(--font-mono);
  font-weight: 520;
  font-size: 11.5px;
  color: var(--body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: center;
}

.frame-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 560;
  color: var(--accent-dark);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  white-space: nowrap;
  flex: none;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27c93f;
  box-shadow: 0 0 0 2px rgba(39, 201, 63, 0.25);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.2); }
}

.frame-viewport {
  position: relative;
  width: 100%;
  background: var(--paper-2);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.frame-viewport--video {
  display: block;
  aspect-ratio: 16 / 9;
  background: #0a1415;
  line-height: 0;
}

.frame-viewport img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

.frame-viewport video,
.frame-viewport video.promo-video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  background: #0a1415;
  margin: 0;
  border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
}

.video-sound-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #f3f5f8;
  background: rgba(10, 14, 28, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 124, 242, 0.38);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.video-sound-btn:hover {
  background: rgba(16, 24, 48, 0.92);
  border-color: rgba(100, 124, 242, 0.72);
  transform: translateY(-1px);
}

.video-sound-btn.is-unmuted {
  background: rgba(43, 62, 179, 0.88);
  border-color: rgba(141, 162, 251, 0.75);
  color: #ffffff;
}

.video-sound-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: none;
}

.flow-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(10, 14, 28, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #8da2fb;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(100, 124, 242, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 2;
  white-space: nowrap;
}

.story-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mid);
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-caption::before {
  content: '';
  width: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ============================================================
   Turn Graphic / Telemetry Comparison Card
   ============================================================ */
.turn-graphic {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  margin-top: 36px;
  padding: 8px;
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.turn-col {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm), var(--inner-shine);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.turn-col.new {
  border-color: var(--accent-line);
  background:
    radial-gradient(90% 90% at 100% 0%, var(--accent-soft), transparent 70%),
    var(--white);
}

.turn-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.turn-col.old .turn-tag { color: var(--mid); }
.turn-col.new .turn-tag { color: var(--accent); }

.turn-num {
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 660;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.turn-col.old .turn-num { color: var(--body); }
.turn-col.new .turn-num { color: var(--ink); }

.turn-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.turn-divider {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 680px) {
  .turn-graphic {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .turn-divider {
    justify-self: center;
  }
  .frame-title {
    display: none;
  }
}

/* ============================================================
   Connector & Interactive Story Progress Bar
   ============================================================ */
.connector {
  display: none;
  height: 76px;
  margin: 0 auto;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  position: relative;
}

.connector.show {
  display: block;
}

.story-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm), var(--inner-shine);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mid);
}

.story-progress-bar strong {
  color: var(--ink);
  font-weight: 600;
}

.story-steps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.story-step-dot.on {
  background: var(--accent);
  transform: scale(1.3);
}

/* ============================================================
   Interactive Question & Branch Modules (.q-box / .branch-box)
   ============================================================ */
.q-box {
  padding: 8px;
  border-radius: var(--radius-xl);
  background: var(--shell);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.q-box-inner,
.q-box:not(:has(.q-box-inner)) {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 70% at 50% 0%, var(--accent-soft), transparent 65%),
    var(--white);
  border: 1px solid var(--line);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--inner-shine);
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.choice {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.choice:hover {
  border-color: var(--accent);
  background: var(--white);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.choice:active {
  transform: translateX(2px) scale(0.995);
}

.choice:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choice .tick {
  width: 22px;
  height: 22px;
  flex: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  background: var(--white);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.choice.picked {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--accent-line);
}

.choice.picked .tick {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--btn-text);
}

.choice.picked .tick::after {
  content: '✓';
  font-weight: 700;
}

.q-hint {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mid);
}

.branch-box {
  position: relative;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background:
    radial-gradient(80% 100% at 0% 0%, var(--accent-soft), transparent 65%),
    var(--white);
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-lg) var(--radius-sm);
  box-shadow: var(--shadow), var(--inner-shine);
  padding: clamp(26px, 3.8vw, 38px);
}

.branch-box .branch-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

/* ============================================================
   Bento Feature Grids (.features / .feat)
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

@media (max-width: 680px) {
  .features { grid-template-columns: 1fr; }
}

.feat {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow-sm), var(--inner-shine);
  outline: 5px solid var(--shell);
  margin: 3px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s var(--ease);
}

.feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-line);
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  margin-bottom: 6px;
}

.feat-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat .ph {
  height: 54px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  justify-content: flex-start;
  padding: 0 14px;
}

.feat .f-title {
  font-weight: 630;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feat .f-sub {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.58;
}

/* ============================================================
   Tactile Pill Buttons (.btn & .cta-row)
   ============================================================ */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 32px;
}

.btn {
  border: 1px solid var(--btn);
  border-radius: 999px;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 580;
  letter-spacing: -0.005em;
  cursor: pointer;
  background: var(--btn);
  color: var(--btn-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 26px -10px var(--accent-glow);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: var(--btn-text);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px var(--accent-glow);
}

.btn:active {
  transform: scale(0.98);
}

.btn.ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm), var(--inner-shine);
}

.btn.ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   Navigation & Filter Chips (.chips / .chip)
   ============================================================ */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  box-shadow: var(--shadow-sm), var(--inner-shine);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.other-stories {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   Bento Grids, Values & Tabular Stats (.g2, .g3, .value, .stat)
   ============================================================ */
.g2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.g3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

@media (max-width: 820px) {
  .g3 { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .g2 { grid-template-columns: 1fr; }
}

.value {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm), var(--inner-shine);
  outline: 5px solid var(--shell);
  margin: 3px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.value:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.value::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.value h3 {
  font-size: 18px;
  font-weight: 630;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.value p {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.6;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm), var(--inner-shine);
  outline: 5px solid var(--shell);
  margin: 3px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.stat:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
}

.stat .n {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 660;
  line-height: 1.08;
  color: var(--accent-dark);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.stat .l {
  font-size: 14px;
  color: var(--body);
  margin-top: 8px;
  line-height: 1.45;
}

/* ============================================================
   Registry Fact Table (.facts / .fact)
   ============================================================ */
.facts {
  margin-top: 28px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--shell);
}

.fact {
  display: flex;
  gap: 24px;
  padding: 16px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  align-items: baseline;
}

.fact:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.fact:last-child {
  border-bottom: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.fact dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 560;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 210px;
  flex: none;
}

.fact dd {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fact dd a {
  color: var(--accent-dark);
  font-weight: 520;
}

@media (max-width: 640px) {
  .fact {
    flex-direction: column;
    gap: 4px;
  }
  .fact dt {
    width: auto;
  }
}

/* ============================================================
   Architectural Vertical Timeline (.tl)
   ============================================================ */
.tl {
  margin-top: 36px;
  border-left: 1.5px solid var(--line-strong);
  padding-left: 32px;
  margin-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tl-item {
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -39px;
  top: 5px;
  width: 13px;
  height: 13px;
  background: var(--white);
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tl-when {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.tl-what {
  font-size: 18.5px;
  font-weight: 620;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tl-item p {
  font-size: 15px;
  color: var(--body);
  max-width: 60ch;
}

/* ============================================================
   Team & Leadership Cards (.people / .person)
   ============================================================ */
.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.people.founders-people,
.people.team-people {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
}

@media (max-width: 860px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .people,
  .people.founders-people,
  .people.team-people {
    grid-template-columns: 1fr;
  }
}

.person {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm), var(--inner-shine);
  outline: 6px solid var(--shell);
  margin: 3px;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.35s var(--ease);
}

.person:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.person .ph,
.person-avatar {
  height: 220px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(80% 80% at 50% 20%, var(--accent-soft), transparent 70%),
    var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.avatar-monogram {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--accent-line);
  box-shadow: var(--shadow-sm), var(--inner-shine);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 660;
  letter-spacing: -0.03em;
  color: var(--accent-dark);
}

.person-photo {
  height: 260px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--faint);
  border: 1px solid var(--line);
}

.person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  transition: transform 0.55s var(--ease);
}

.person:hover .person-photo img {
  transform: scale(1.03);
}

.person-photo.rhea-portrait img { object-position: center 18%; }
.person-photo.rahul-portrait img { object-position: center 27%; }

.p-name {
  font-size: 20px;
  font-weight: 630;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.p-role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 560;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 6px 0 12px;
}

.p-bio {
  font-size: 14.5px;
  color: var(--body);
  margin-bottom: 16px;
  line-height: 1.6;
}

.p-links {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 560;
}

.p-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  text-decoration: none;
}

.p-links a:hover {
  color: var(--accent);
}

/* ============================================================
   Callout Notes (.note)
   ============================================================ */
.note {
  border: 1px solid var(--note-line);
  border-left: 3px solid var(--note-edge);
  border-radius: var(--radius-sm);
  background: var(--note-bg);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--note-text);
  line-height: 1.6;
}

.note .note-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--note-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* ============================================================
   Forms & Double-Bezel Input Containers (.form-box / .field)
   ============================================================ */
.form-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: clamp(24px, 3.5vw, 38px);
  box-shadow: var(--shadow), var(--inner-shine);
  outline: 7px solid var(--shell);
  margin: 4px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field label {
  font-size: 13.5px;
  font-weight: 580;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--mid);
}

.field textarea {
  min-height: 136px;
  resize: vertical;
  line-height: 1.6;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field input[type="file"] {
  padding: 10px 14px;
  background: var(--white);
  border-style: dashed;
  cursor: pointer;
}

.field [aria-invalid="true"] {
  border-color: var(--warn);
  box-shadow: 0 0 0 3px rgba(195, 50, 75, 0.12);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--body);
  margin: 6px 0 22px;
  cursor: pointer;
  line-height: 1.55;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--accent);
}

.check a {
  color: var(--accent-dark);
  font-weight: 520;
  text-decoration: underline;
}

.form-status {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mid);
}

.form-status.live {
  color: var(--accent-dark);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  margin-bottom: 20px;
}

/* ============================================================
   Legal Content (.legal)
   ============================================================ */
.legal h3 {
  font-size: 20px;
  font-weight: 620;
  margin: 34px 0 10px;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  font-size: 16px;
  color: var(--body);
  max-width: var(--readw);
}

.legal ul,
.legal ol {
  margin: 12px 0 0 22px;
}

.legal li {
  margin-bottom: 8px;
}

/* ============================================================
   Architectural Footer (.site-footer)
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 64px clamp(20px, 4vw, 48px) 48px;
  background: var(--white);
  position: relative;
}

.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

@media (max-width: 760px) {
  .foot-inner {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 500px) {
  .foot-inner {
    grid-template-columns: 1fr;
  }
}

.foot h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.foot,
.foot-brand {
  min-width: 0;
  overflow-wrap: anywhere;
}

.foot a {
  display: block;
  color: var(--body);
  text-decoration: none;
  font-size: 14.5px;
  padding: 5px 0;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.foot a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.foot p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.foot-logo img {
  height: 40px;
  width: auto;
}

.foot-brand h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 620;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.01em;
}

.foot-brand p {
  font-size: 14.5px;
  color: var(--body);
  margin-top: 10px;
  max-width: 40ch;
}

.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--shell);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--body);
}

.foot-note {
  max-width: var(--maxw);
  margin: 44px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mid);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   Careers & Job Postings (.jobs / .job / .checklist)
   ============================================================ */
.back {
  margin-bottom: 20px;
  font-size: 14px;
}

.back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 550;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.back a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateX(-2px);
}

.jobs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.job {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm), var(--inner-shine);
  outline: 6px solid var(--shell);
  margin: 3px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.job:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent-line);
}

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.job h3 {
  font-size: 21px;
  font-weight: 630;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.job-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--body);
}

.job-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--paper);
}

.job-meta .job-open {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-dark);
  font-weight: 600;
}

.job-summary {
  margin-top: 16px;
  color: var(--body);
  font-size: 15.5px;
  max-width: 64ch;
}

h3.sub {
  font-size: 19px;
  font-weight: 620;
  margin: 36px 0 8px;
  letter-spacing: -0.02em;
}

.checklist {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 68ch;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-50%);
}

/* ============================================================
   A to Z Services Matrix (.az)
   ============================================================ */
.az {
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--shell);
  border: 1px solid var(--line);
}

.az-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--body);
}

.az-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 550;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
}

.az-key i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stage);
}

.az-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 960px) {
  .az-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .az-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
  .az-grid { grid-template-columns: 1fr; }
}

.az-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm), var(--inner-shine);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.az-tile::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3.5px;
  background: var(--stage);
}

.az-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--stage);
}

.az-tile b {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: var(--stage);
}

.az-tile span {
  font-size: 13.5px;
  line-height: 1.38;
  color: var(--ink);
  font-weight: 520;
}

.az-make  { --stage: #1b6a67; }
.az-move  { --stage: #2d63b8; }
.az-store { --stage: #6b4ec7; }
.az-sell  { --stage: #b87914; }
.az-use   { --stage: #bf3650; }

:root[data-theme="dark"] .az-make  { --stage: #5cc4ba; }
:root[data-theme="dark"] .az-move  { --stage: #7fa8ff; }
:root[data-theme="dark"] .az-store { --stage: #a590f0; }
:root[data-theme="dark"] .az-sell  { --stage: #f0b450; }
:root[data-theme="dark"] .az-use   { --stage: #ff7a90; }

/* ============================================================
   Mobile Navigation & Responsive Collapse
   ============================================================ */
.nav-toggle,
.nav-close,
.nav-scrim,
.nav-brand,
.nav-drawer-cta {
  display: none;
}

@media (max-width: 900px) {
  .topbar {
    top: 10px;
    width: calc(100% - 24px);
    height: 56px;
    padding: 0 12px;
    gap: 10px;
  }

  .logo-box {
    margin-right: auto;
  }

  .logo-box img {
    height: 25px;
  }

  .tools {
    margin-left: auto;
    gap: 8px;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    order: -1;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle svg,
  .nav-close svg {
    width: 19px;
    height: 19px;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 110;
    width: min(310px, 84vw);
    margin: 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 20px 18px 28px;
    background: var(--white);
    border: 0;
    border-right: 1px solid var(--line);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.28);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
    overflow-y: auto;
  }

  .nav-brand {
    display: flex;
    align-items: center;
    height: 42px;
    margin: 0 0 16px 8px;
    line-height: 0;
  }

  .nav-brand img {
    height: 26px;
    width: auto;
  }

  .nav a {
    padding: 13px 16px;
    font-size: 16px;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .nav a.on {
    background: var(--accent-soft);
    color: var(--accent-dark);
    box-shadow: none;
  }

  .nav-close {
    display: inline-flex;
    position: absolute;
    top: 18px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(6, 16, 18, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav {
    transform: none;
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s;
  }

  body.nav-open .nav-scrim {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s var(--ease), visibility 0s;
  }

  .nav a:not(.nav-brand) {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), background-color 0.2s, color 0.2s;
  }

  body.nav-open .nav a:not(.nav-brand) {
    opacity: 1;
    transform: none;
  }

  body.nav-open .nav a:nth-of-type(2) { transition-delay: 0.06s; }
  body.nav-open .nav a:nth-of-type(3) { transition-delay: 0.10s; }
  body.nav-open .nav a:nth-of-type(4) { transition-delay: 0.14s; }
  body.nav-open .nav a:nth-of-type(5) { transition-delay: 0.18s; }
  body.nav-open .nav a:nth-of-type(6) { transition-delay: 0.22s; }
  body.nav-open .nav a:nth-of-type(7) { transition-delay: 0.26s; }
  body.nav-open .nav a:nth-of-type(8) { transition-delay: 0.30s; }
  body.nav-open .nav a:nth-of-type(9) { transition-delay: 0.34s; }

  .panel.first {
    padding-top: 104px;
  }

  /* Talk to us at the foot of the drawer (desktop keeps it in the bar) */
  .nav-drawer-cta {
    display: grid;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .nav .nav-drawer-btn {
    justify-content: center;
    display: flex;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--btn);
    color: var(--btn-text);
    font-size: 15.5px;
    font-weight: 600;
  }

  .nav .nav-drawer-btn:hover {
    background: var(--btn);
    color: var(--btn-text);
    filter: brightness(1.08);
  }

  .nav .nav-drawer-call {
    text-align: center;
    font-size: 14px;
    color: var(--mid);
  }
}

@media (max-width: 560px) {
  .big { font-size: clamp(2rem, 8.8vw, 2.65rem); }
  .med { font-size: clamp(1.45rem, 6.4vw, 2rem); }
  .cta-row .btn { flex: 1 1 auto; }
}

/* ============================================================
   Home Hero Variant 1 (.hv, .hv-v1) — Editorial Minimalism & Sculptural X
   ============================================================ */
.hv,
.hv-v1 {
  /* Dedicated deep graphite architectural palette */
  --hv-bg: #080a0f;
  --hv-bg-elev: #0c1017;
  --hv-ink: #f3f5f8;
  --hv-ink-soft: #d5dce6;
  --hv-muted: #8b95a7;
  --hv-dim: #596375;
  --hv-rule: rgba(255, 255, 255, 0.075);
  --hv-rule-strong: rgba(255, 255, 255, 0.16);

  /* Four Team Canonical Colors */
  --team-cyan: #2ecbe9;
  --team-blue: #647cf2;
  --team-yellow: #f2c138;
  --team-red: #f6586e;

  --hv-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100dvh;
  padding-top: 88px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--hv-bg);
  background-image:
    linear-gradient(180deg, rgba(16, 22, 33, 0.55) 0%, rgba(8, 10, 15, 0) 42%, rgba(5, 7, 11, 0.85) 100%),
    linear-gradient(115deg, rgba(18, 27, 40, 0.38) 0%, transparent 58%);
  color: var(--hv-ink);
  font-family: var(--font-sans);
  border-bottom: 1px solid var(--hv-rule);
}

/* Subtle architectural grain & cool graphite undertone (no neon radial blobs) */
.hv::before,
.hv-v1::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

/* Architectural Datum Hairlines */
.hv-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  max-width: var(--maxw);
  margin: 0 auto;
  pointer-events: none;
}

.hv-gl-v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.04);
}
.hv-gl-v.v1 { left: clamp(20px, 4vw, 48px); }
.hv-gl-v.v2 { right: clamp(20px, 4vw, 48px); }

.hv-gl-h.h1 {
  position: absolute;
  left: 0;
  right: 0;
  top: 144px;
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
}

/* Main Architectural Frame */
.hv-frame {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(22px, 3.5vh, 40px) clamp(20px, 4vw, 48px) 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 4vh, 48px);
}

/* Top Datum Bar (Eyebrow + System Classification) */
.hv-datum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hv-rule);
}

.hv-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 520;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hv-ink-soft);
}

.hv-eyebrow-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--team-cyan);
  box-shadow: 0 0 8px rgba(46, 203, 233, 0.6);
}

.hv-sep {
  color: var(--hv-dim);
}

.hv-datum-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--hv-dim);
  text-transform: uppercase;
}

/* ============================================================
   Asymmetric Main Stage: Editorial Left + Sculptural X Right
   ============================================================ */
.hv-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(8px, 2vh, 24px) 0;
}

.hv-editorial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hv-title {
  margin: 0;
  font-size: clamp(2.65rem, 4.8vw, 4.55rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
  font-weight: 610;
  color: var(--hv-ink);
  text-wrap: balance;
}

.hv-title-accent {
  background: linear-gradient(135deg, #5ce8f7 0%, #29b9d8 52%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hv-support {
  margin: clamp(22px, 3vh, 32px) 0 0;
  font-size: clamp(1.12rem, 1.45vw, 1.38rem);
  line-height: 1.52;
  letter-spacing: -0.015em;
  font-weight: 430;
  color: var(--hv-muted);
  max-width: 38ch;
}

.hv-support-strong {
  color: var(--hv-ink-soft);
  font-weight: 500;
}

/* Primary & Secondary CTAs */
.hv-actions {
  margin-top: clamp(28px, 4vh, 42px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hv-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--team-blue, #647cf2);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 590;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 28px -8px rgba(100, 124, 242, 0.45);
  transition: transform 0.35s var(--hv-ease), background-color 0.25s var(--hv-ease), box-shadow 0.35s var(--hv-ease), border-color 0.25s var(--hv-ease);
}

.hv-cta-primary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--hv-ease);
}

.hv-cta-primary:hover {
  background: #788ff8;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -8px rgba(100, 124, 242, 0.65);
}

.hv-cta-primary:hover svg {
  transform: translateX(3px);
}

.hv-cta-primary:active {
  transform: scale(0.98);
}

.hv-cta-primary:focus-visible,
.hv-cta-secondary:focus-visible {
  outline: 2px solid var(--team-cyan);
  outline-offset: 4px;
}

.hv-cta-secondary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--hv-rule-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--hv-ink-soft);
  font-size: 14px;
  font-weight: 520;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: border-color 0.25s var(--hv-ease), color 0.25s var(--hv-ease), background-color 0.25s var(--hv-ease);
}

.hv-cta-secondary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   The Sculptural X — Precision 4-Part Brand Monument
   ============================================================ */
.hv-sculpture-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hv-sculpture {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.hv-x-structure,
.hv-x-monument {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Subtle Structural Datum Ring & Convergence Lines */
.hv-x-structure {
  pointer-events: none;
}

.hv-x-structure .xs-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
}

.hv-x-structure .xs-ring-inner {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.hv-x-structure .xs-axis {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  transition: stroke 0.45s var(--hv-ease), stroke-width 0.45s var(--hv-ease), opacity 0.45s var(--hv-ease);
}

.hv-x-structure .xs-ticks {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.hv-x-structure .xs-reticle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}

/* Highlight corresponding axis when a team is hovered/focused */
.hv[data-focus-team="cyan"]   .hv-x-structure .ax-cyan,
.hv-v1[data-focus-team="cyan"]   .hv-x-structure .ax-cyan   { stroke: var(--team-cyan);   stroke-width: 1.5; stroke-dasharray: none; }
.hv[data-focus-team="yellow"] .hv-x-structure .ax-yellow,
.hv-v1[data-focus-team="yellow"] .hv-x-structure .ax-yellow { stroke: var(--team-yellow); stroke-width: 1.5; stroke-dasharray: none; }
.hv[data-focus-team="blue"]   .hv-x-structure .ax-blue,
.hv-v1[data-focus-team="blue"]   .hv-x-structure .ax-blue   { stroke: var(--team-blue);   stroke-width: 1.5; stroke-dasharray: none; }
.hv[data-focus-team="red"]    .hv-x-structure .ax-red,
.hv-v1[data-focus-team="red"]    .hv-x-structure .ax-red    { stroke: var(--team-red);    stroke-width: 1.5; stroke-dasharray: none; }

/* The Four Sculptural Segments of the X */
.hv-x-monument .xm-segment {
  cursor: pointer;
  transition: transform 0.55s var(--hv-ease), opacity 0.45s var(--hv-ease), filter 0.55s var(--hv-ease);
}

.hv-x-monument .xm-tm {
  fill: rgba(255, 255, 255, 0.42);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Interactive Team Emphasis States on the Sculptural X */
.hv[data-focus-team] .hv-x-monument .xm-segment,
.hv-v1[data-focus-team] .hv-x-monument .xm-segment {
  opacity: 0.28;
}

.hv[data-focus-team="cyan"] .hv-x-monument .seg-cyan,
.hv-v1[data-focus-team="cyan"] .hv-x-monument .seg-cyan {
  opacity: 1;
  transform: translate(-6px, -8px) scale(1.03);
}

.hv[data-focus-team="yellow"] .hv-x-monument .seg-yellow,
.hv-v1[data-focus-team="yellow"] .hv-x-monument .seg-yellow {
  opacity: 1;
  transform: translate(6px, -8px) scale(1.03);
}

.hv[data-focus-team="blue"] .hv-x-monument .seg-blue,
.hv-v1[data-focus-team="blue"] .hv-x-monument .seg-blue {
  opacity: 1;
  transform: translate(-6px, 8px) scale(1.03);
}

.hv[data-focus-team="red"] .hv-x-monument .seg-red,
.hv-v1[data-focus-team="red"] .hv-x-monument .seg-red {
  opacity: 1;
  transform: translate(6px, 8px) scale(1.03);
}

/* ============================================================
   Bottom Four-Discipline Editorial Ledger (Swiss System Index)
   ============================================================ */
.hv-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hv-rule);
}

.hv-ledger-item {
  --t-accent: var(--team-cyan);
  position: relative;
  padding: 24px 26px 30px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.35s var(--hv-ease);
}

.hv-ledger-item:first-child {
  padding-left: 0;
}

.hv-ledger-item:last-child {
  padding-right: 0;
}

.hv-ledger-item + .hv-ledger-item {
  border-left: 1px solid var(--hv-rule);
}

.hv-ledger-item[data-team="cyan"]   { --t-accent: var(--team-cyan); }
.hv-ledger-item[data-team="blue"]   { --t-accent: var(--team-blue); }
.hv-ledger-item[data-team="yellow"] { --t-accent: var(--team-yellow); }
.hv-ledger-item[data-team="red"]    { --t-accent: var(--team-red); }

/* Precision Top Color Bar per Discipline */
.hv-ledger-bar {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--t-accent);
  opacity: 0.42;
  transform-origin: left center;
  transition: opacity 0.35s var(--hv-ease), height 0.35s var(--hv-ease);
}

.hv-ledger-item:hover .hv-ledger-bar,
.hv-ledger-item:focus-visible .hv-ledger-bar,
.hv-ledger-item.is-focused .hv-ledger-bar {
  opacity: 1;
  height: 2.5px;
}

.hv-ledger-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hv-ledger-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--hv-dim);
  letter-spacing: 0.08em;
}

.hv-ledger-team {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-accent);
}

.hv-ledger-role {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 590;
  letter-spacing: -0.02em;
  color: var(--hv-ink);
  transition: color 0.25s var(--hv-ease);
}

.hv-ledger-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--hv-muted);
  max-width: 32ch;
  transition: color 0.3s var(--hv-ease);
}

.hv-ledger-item:hover .hv-ledger-desc,
.hv-ledger-item:focus-visible .hv-ledger-desc,
.hv-ledger-item.is-focused .hv-ledger-desc {
  color: var(--hv-ink-soft);
}

/* ============================================================
   Restrained Initial Entrance Motion (Respects Reduced Motion)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hv-datum {
    animation: hvEnterFade 0.8s var(--hv-ease) backwards;
  }
  .hv-title {
    animation: hvEnterUp 0.9s var(--hv-ease) 0.08s backwards;
  }
  .hv-support {
    animation: hvEnterUp 0.9s var(--hv-ease) 0.16s backwards;
  }
  .hv-actions {
    animation: hvEnterUp 0.9s var(--hv-ease) 0.24s backwards;
  }
  .hv-x-structure {
    animation: hvEnterFade 1.2s var(--hv-ease) 0.2s backwards;
  }
  .hv-x-monument .seg-cyan {
    animation: xmInCyan 1.05s var(--hv-ease) 0.12s backwards;
  }
  .hv-x-monument .seg-yellow {
    animation: xmInYellow 1.05s var(--hv-ease) 0.18s backwards;
  }
  .hv-x-monument .seg-blue {
    animation: xmInBlue 1.05s var(--hv-ease) 0.24s backwards;
  }
  .hv-x-monument .seg-red {
    animation: xmInRed 1.05s var(--hv-ease) 0.30s backwards;
  }
  .hv-ledger-item {
    animation: hvEnterUp 0.85s var(--hv-ease) backwards;
  }
  .hv-ledger-item:nth-child(1) { animation-delay: 0.28s; }
  .hv-ledger-item:nth-child(2) { animation-delay: 0.34s; }
  .hv-ledger-item:nth-child(3) { animation-delay: 0.40s; }
  .hv-ledger-item:nth-child(4) { animation-delay: 0.46s; }
}

@keyframes hvEnterUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hvEnterFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes xmInCyan {
  from { opacity: 0; transform: translate(-22px, -26px) scale(0.96); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes xmInYellow {
  from { opacity: 0; transform: translate(22px, -26px) scale(0.96); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes xmInBlue {
  from { opacity: 0; transform: translate(-22px, 26px) scale(0.96); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes xmInRed {
  from { opacity: 0; transform: translate(22px, 26px) scale(0.96); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

/* ============================================================
   Responsive Recomposition (Tablet & Mobile — Variant 1)
   ============================================================ */
@media (max-width: 1024px) {
  .hv-datum-meta {
    display: none;
  }
  .hv-stage {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
  }
  .hv-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hv-ledger-item {
    padding: 22px 20px;
  }
  .hv-ledger-item:first-child,
  .hv-ledger-item:nth-child(3) {
    padding-left: 0;
  }
  .hv-ledger-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--hv-rule);
  }
  .hv-ledger-item:nth-child(4) {
    border-top: 1px solid var(--hv-rule);
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .hv,
  .hv-v1 {
    min-height: 0;
    padding-top: 84px;
  }
  .hv-frame {
    gap: 24px;
  }
  .hv-stage {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hv-sculpture-wrap {
    justify-content: center;
    order: -1;
  }
  .hv-sculpture {
    width: min(72vw, 270px);
  }
  .hv-title {
    font-size: clamp(2.15rem, 8.8vw, 2.95rem);
  }
  .hv-support {
    font-size: 1.05rem;
  }
  .hv-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hv-cta-primary,
  .hv-cta-secondary {
    justify-content: center;
    width: 100%;
  }
  .hv-ledger {
    grid-template-columns: 1fr;
  }
  .hv-ledger-item,
  .hv-ledger-item:first-child,
  .hv-ledger-item:nth-child(3),
  .hv-ledger-item:nth-child(4),
  .hv-ledger-item:last-child {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--hv-rule);
  }
  .hv-ledger-desc {
    max-width: none;
  }
}

/* ==========================================================================
   Home Hero Variant 2 (.hv2) — Architectural Masthead & Split-Aperture X Console
   ========================================================================== */
.hv2 {
  --c2-bg: #07090e;
  --c2-surface: #0b0f17;
  --c2-surface-hi: #101622;
  --c2-ink: #f4f6f9;
  --c2-ink-soft: #d7dee8;
  --c2-muted: #8b95a7;
  --c2-dim: #545f73;
  --c2-border: rgba(255, 255, 255, 0.085);
  --c2-border-hi: rgba(255, 255, 255, 0.18);

  --t-cyan: #22b8cf;
  --t-blue: #6875f5;
  --t-yellow: #eab308;
  --t-red: #f43f5e;

  --c2-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100dvh;
  padding: 96px 0 clamp(36px, 5vh, 64px);
  display: flex;
  align-items: center;
  background-color: var(--c2-bg);
  background-image:
    linear-gradient(180deg, rgba(16, 23, 36, 0.65) 0%, rgba(7, 9, 14, 0) 38%, rgba(5, 7, 11, 0.92) 100%),
    linear-gradient(125deg, rgba(20, 31, 48, 0.36) 0%, transparent 55%);
  color: var(--c2-ink);
  font-family: var(--font-sans);
  border-bottom: 1px solid var(--c2-border);
}

/* Fine architectural grid & micro-grain atmosphere */
.hv2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 85%, transparent 100%);
}

.hv2-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.8vh, 44px);
}

/* ============================================================
   1. Top Architectural Masthead (12-Col Asymmetric Split)
   ============================================================ */
.hv2-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: end;
}

.hv2-masthead-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hv2-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 540;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c2-ink-soft);
}

.hv2-eyebrow-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.hv2-eyebrow-bars i {
  display: block;
  width: 3px;
  height: 12px;
  border-radius: 1px;
}
.hv2-eyebrow-bars .b-cyan   { background: var(--t-cyan); }
.hv2-eyebrow-bars .b-blue   { background: var(--t-blue); }
.hv2-eyebrow-bars .b-yellow { background: var(--t-yellow); }
.hv2-eyebrow-bars .b-red    { background: var(--t-red); }

.hv2-dot {
  color: var(--c2-dim);
}

.hv2-title {
  margin: 0;
  font-size: clamp(2.55rem, 4.55vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.042em;
  font-weight: 610;
  color: var(--c2-ink);
  text-wrap: balance;
}

.hv2-title-accent {
  background: linear-gradient(135deg, #67e8f9 0%, #22b8cf 52%, #6875f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hv2-masthead-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 22px;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 1px solid var(--c2-border);
}

.hv2-support {
  margin: 0;
  font-size: clamp(1.08rem, 1.32vw, 1.26rem);
  line-height: 1.54;
  letter-spacing: -0.014em;
  color: var(--c2-muted);
}

.hv2-support strong {
  color: var(--c2-ink);
  font-weight: 540;
}

.hv2-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hv2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--c2-ink);
  color: #07090e;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.92);
  transition: transform 0.3s var(--c2-ease), background-color 0.25s var(--c2-ease), box-shadow 0.3s var(--c2-ease);
}

.hv2-btn-primary svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--c2-ease);
}

.hv2-btn-primary:hover {
  background: #ffffff;
  color: #07090e;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(34, 184, 207, 0.38);
}

.hv2-btn-primary:hover svg {
  transform: translateX(3px);
}

.hv2-btn-secondary {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--c2-border-hi);
  background: rgba(255, 255, 255, 0.025);
  color: var(--c2-ink-soft);
  font-size: 13.8px;
  font-weight: 520;
  text-decoration: none;
  transition: border-color 0.25s var(--c2-ease), background-color 0.25s var(--c2-ease), color 0.25s var(--c2-ease);
}

.hv2-btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.hv2-btn-primary:focus-visible,
.hv2-btn-secondary:focus-visible {
  outline: 2px solid var(--t-cyan);
  outline-offset: 4px;
}

/* ============================================================
   2. The Architectural X-Chamber & Four-Discipline Spec Console
   ============================================================ */
.hv2-chamber {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  border: 1px solid var(--c2-border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(14, 19, 29, 0.86) 0%, rgba(9, 12, 19, 0.95) 100%);
  box-shadow:
    0 28px 64px -24px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

/* Precision Corner Registration Ticks */
.hv2-reg {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 3;
}
.hv2-reg.reg-tl { top: 10px; left: 10px; border-top: 1.5px solid rgba(255,255,255,0.22); border-left: 1.5px solid rgba(255,255,255,0.22); }
.hv2-reg.reg-tr { top: 10px; right: 10px; border-top: 1.5px solid rgba(255,255,255,0.22); border-right: 1.5px solid rgba(255,255,255,0.22); }
.hv2-reg.reg-bl { bottom: 10px; left: 10px; border-bottom: 1.5px solid rgba(255,255,255,0.22); border-left: 1.5px solid rgba(255,255,255,0.22); }
.hv2-reg.reg-br { bottom: 10px; right: 10px; border-bottom: 1.5px solid rgba(255,255,255,0.22); border-right: 1.5px solid rgba(255,255,255,0.22); }

/* Left Viewport: Oversized Faceted X Stage */
.hv2-x-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 26px;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(34, 184, 207, 0.045), transparent 72%);
}

.hv2-x-meta-top,
.hv2-x-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c2-dim);
  z-index: 2;
}

#hv2-state-readout {
  color: var(--c2-ink-soft);
  transition: color 0.3s var(--c2-ease);
}

.hv2[data-focus-team="cyan"]   #hv2-state-readout { color: var(--t-cyan); }
.hv2[data-focus-team="blue"]   #hv2-state-readout { color: var(--t-blue); }
.hv2[data-focus-team="yellow"] #hv2-state-readout { color: var(--t-yellow); }
.hv2[data-focus-team="red"]    #hv2-state-readout { color: var(--t-red); }

.hv2-x-canvas {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.hv2-x-svg {
  width: 100%;
  max-width: 540px;
  height: auto;
  overflow: visible;
}

/* CAD Structural Lines & Horizontal Bridges to the 4 Discipline Rows */
.hv2-cad-lines .cad-diag {
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  transition: stroke 0.4s var(--c2-ease), stroke-width 0.4s var(--c2-ease);
}

.hv2-cad-lines .cad-bridge {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  transition: stroke 0.4s var(--c2-ease), stroke-width 0.4s var(--c2-ease), opacity 0.4s var(--c2-ease);
}

.hv2-cad-lines .cad-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

.hv2-cad-lines .cad-diamond {
  fill: rgba(255, 255, 255, 0.015);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.1;
  transition: stroke 0.4s var(--c2-ease), fill 0.4s var(--c2-ease), transform 0.45s var(--c2-ease);
  transform-origin: 300px 240px;
}

.hv2-cad-lines .cad-center-dot {
  fill: rgba(255, 255, 255, 0.45);
}

/* Active CAD Bridge & Diamond Highlights on Team Focus */
.hv2[data-focus-team="cyan"]   .hv2-cad-lines .d-cyan,
.hv2[data-focus-team="cyan"]   .hv2-cad-lines .br-cyan   { stroke: var(--t-cyan);   stroke-width: 1.65; stroke-dasharray: none; }
.hv2[data-focus-team="blue"]   .hv2-cad-lines .d-blue,
.hv2[data-focus-team="blue"]   .hv2-cad-lines .br-blue   { stroke: var(--t-blue);   stroke-width: 1.65; stroke-dasharray: none; }
.hv2[data-focus-team="yellow"] .hv2-cad-lines .d-yellow,
.hv2[data-focus-team="yellow"] .hv2-cad-lines .br-yellow { stroke: var(--t-yellow); stroke-width: 1.65; stroke-dasharray: none; }
.hv2[data-focus-team="red"]    .hv2-cad-lines .d-red,
.hv2[data-focus-team="red"]    .hv2-cad-lines .br-red    { stroke: var(--t-red);    stroke-width: 1.65; stroke-dasharray: none; }

.hv2[data-focus-team="cyan"]   .hv2-cad-lines .cad-diamond { stroke: var(--t-cyan);   fill: rgba(34, 184, 207, 0.08); transform: scale(1.08); }
.hv2[data-focus-team="blue"]   .hv2-cad-lines .cad-diamond { stroke: var(--t-blue);   fill: rgba(104, 117, 245, 0.08); transform: scale(1.08); }
.hv2[data-focus-team="yellow"] .hv2-cad-lines .cad-diamond { stroke: var(--t-yellow); fill: rgba(234, 179, 8, 0.08); transform: scale(1.08); }
.hv2[data-focus-team="red"]    .hv2-cad-lines .cad-diamond { stroke: var(--t-red);    fill: rgba(244, 63, 94, 0.08); transform: scale(1.08); }

/* The Four Sculptural Blades of the X */
.hv2-blade {
  cursor: pointer;
  transition: transform 0.5s var(--c2-ease), opacity 0.4s var(--c2-ease);
}

.hv2-tm {
  fill: rgba(255, 255, 255, 0.38);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hv2[data-focus-team] .hv2-blade {
  opacity: 0.24;
}

.hv2[data-focus-team="cyan"] .bl-cyan {
  opacity: 1;
  transform: translate(-6px, -8px) scale(1.03);
}

.hv2[data-focus-team="yellow"] .bl-yellow {
  opacity: 1;
  transform: translate(6px, -8px) scale(1.03);
}

.hv2[data-focus-team="blue"] .bl-blue {
  opacity: 1;
  transform: translate(-6px, 8px) scale(1.03);
}

.hv2[data-focus-team="red"] .bl-red {
  opacity: 1;
  transform: translate(6px, 8px) scale(1.03);
}

/* ============================================================
   Right Zone: Interactive Four-Team Architectural Spec Stack
   ============================================================ */
.hv2-stack {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--c2-border);
  background: rgba(7, 10, 16, 0.45);
}

.hv2-row {
  --row-accent: var(--t-cyan);
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s var(--c2-ease);
}

.hv2-row + .hv2-row {
  border-top: 1px solid var(--c2-border);
}

.hv2-row[data-team="cyan"]   { --row-accent: var(--t-cyan); }
.hv2-row[data-team="blue"]   { --row-accent: var(--t-blue); }
.hv2-row[data-team="yellow"] { --row-accent: var(--t-yellow); }
.hv2-row[data-team="red"]    { --row-accent: var(--t-red); }

/* Precision Left Color Indicator Bar */
.hv2-row-bar {
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--row-accent);
  opacity: 0.28;
  transition: opacity 0.3s var(--c2-ease), width 0.3s var(--c2-ease), box-shadow 0.3s var(--c2-ease);
}

.hv2-row:hover,
.hv2-row:focus-visible,
.hv2-row.is-focused {
  background: rgba(255, 255, 255, 0.032);
}

.hv2-row:hover .hv2-row-bar,
.hv2-row:focus-visible .hv2-row-bar,
.hv2-row.is-focused .hv2-row-bar {
  opacity: 1;
  width: 3.5px;
  box-shadow: 0 0 14px var(--row-accent);
}

.hv2-row-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 540;
  letter-spacing: 0.08em;
  color: var(--c2-dim);
  align-self: flex-start;
  padding-top: 3px;
  transition: color 0.3s var(--c2-ease);
}

.hv2-row:hover .hv2-row-num,
.hv2-row:focus-visible .hv2-row-num,
.hv2-row.is-focused .hv2-row-num {
  color: var(--row-accent);
}

.hv2-row-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hv2-row-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.hv2-row-team {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--row-accent);
}

.hv2-row-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 590;
  letter-spacing: -0.02em;
  color: var(--c2-ink);
}

.hv2-row-desc {
  margin: 0;
  font-size: 13.3px;
  line-height: 1.5;
  color: var(--c2-muted);
  max-width: 46ch;
  transition: color 0.3s var(--c2-ease);
}

.hv2-row:hover .hv2-row-desc,
.hv2-row:focus-visible .hv2-row-desc,
.hv2-row.is-focused .hv2-row-desc {
  color: var(--c2-ink-soft);
}

.hv2-row-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--c2-dim);
  background: rgba(255, 255, 255, 0.015);
  white-space: nowrap;
  transition: border-color 0.3s var(--c2-ease), color 0.3s var(--c2-ease), background-color 0.3s var(--c2-ease);
}

.hv2-row:hover .hv2-row-tag,
.hv2-row:focus-visible .hv2-row-tag,
.hv2-row.is-focused .hv2-row-tag {
  color: var(--row-accent);
  border-color: var(--row-accent);
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================================
   Restrained Entrance Motion (Variant 2 — Reduced-Motion Safe)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hv2-eyebrow {
    animation: hvEnterFade 0.75s var(--c2-ease) backwards;
  }
  .hv2-title {
    animation: hvEnterUp 0.85s var(--c2-ease) 0.06s backwards;
  }
  .hv2-masthead-right {
    animation: hvEnterUp 0.85s var(--c2-ease) 0.14s backwards;
  }
  .hv2-chamber {
    animation: hvEnterUp 0.95s var(--c2-ease) 0.2s backwards;
  }
  .hv2-blade.bl-cyan   { animation: xmInCyan   1.05s var(--c2-ease) 0.22s backwards; }
  .hv2-blade.bl-yellow { animation: xmInYellow 1.05s var(--c2-ease) 0.28s backwards; }
  .hv2-blade.bl-blue   { animation: xmInBlue   1.05s var(--c2-ease) 0.34s backwards; }
  .hv2-blade.bl-red    { animation: xmInRed    1.05s var(--c2-ease) 0.40s backwards; }
}

/* ============================================================
   Responsive Recomposition (Tablet & Mobile — Variant 2)
   ============================================================ */
@media (max-width: 1080px) {
  .hv2-masthead {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hv2-masthead-right {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--c2-border);
    padding-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .hv2-chamber {
    grid-template-columns: 1fr;
  }
  .hv2-cad-lines .cad-bridge {
    display: none;
  }
  .hv2-stack {
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid var(--c2-border);
  }
  .hv2-row + .hv2-row {
    border-top: 0;
  }
  .hv2-row:nth-child(2),
  .hv2-row:nth-child(4) {
    border-left: 1px solid var(--c2-border);
  }
  .hv2-row:nth-child(3),
  .hv2-row:nth-child(4) {
    border-top: 1px solid var(--c2-border);
  }
}

@media (max-width: 720px) {
  .hv2 {
    min-height: 0;
    padding: 88px 0 36px;
  }
  .hv2-title {
    font-size: clamp(2.1rem, 8.6vw, 2.85rem);
  }
  .hv2-masthead-right {
    flex-direction: column;
    align-items: stretch;
  }
  .hv2-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hv2-btn-primary,
  .hv2-btn-secondary {
    justify-content: center;
    width: 100%;
  }
  .hv2-x-stage {
    padding: 16px 16px 12px;
  }
  .hv2-x-canvas {
    min-height: 250px;
  }
  .hv2-x-meta-top span:last-child,
  .hv2-x-meta-bottom span:last-child {
    display: none;
  }
  .hv2-stack {
    grid-template-columns: 1fr;
  }
  .hv2-row {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 18px 18px;
  }
  .hv2-row:nth-child(2),
  .hv2-row:nth-child(4) {
    border-left: 0;
  }
  .hv2-row + .hv2-row {
    border-top: 1px solid var(--c2-border);
  }
  .hv2-row-tag {
    display: none;
  }
}


/* ============================================================
   Asymmetric Split Layouts & Telemetry Visuals for Inner Pages
   ============================================================ */
.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

@media (max-width: 920px) {
  .split-hero {
    grid-template-columns: 1fr;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  margin-top: 36px;
}

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

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.incident-card {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(195, 50, 75, 0.28);
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(195, 50, 75, 0.08), transparent 70%),
    var(--white);
  box-shadow: var(--shadow-sm), var(--inner-shine);
  outline: 6px solid var(--shell);
}

.incident-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(195, 50, 75, 0.10);
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.incident-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
  animation: pulse-dot 1.6s infinite ease-in-out;
}

/* ==========================================================================
   Light Mode Calibration for Home Hero (.hv2)
   ========================================================================== */
:root:not([data-theme="dark"]) .hv2 {
  --c2-bg: #f2f7f7;
  --c2-surface: #ffffff;
  --c2-surface-hi: #eaf1f1;
  --c2-ink: #0f191a;
  --c2-ink-soft: #223537;
  --c2-muted: #46585a;
  --c2-dim: #6e8082;
  --c2-border: rgba(16, 26, 27, 0.10);
  --c2-border-hi: rgba(16, 26, 27, 0.22);

  --t-cyan: #0b8a9e;
  --t-blue: #3f55d6;
  --t-yellow: #b47d04;
  --t-red: #d11f48;

  background-color: var(--c2-bg);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(242, 247, 247, 0) 42%, rgba(228, 238, 238, 0.88) 100%),
    linear-gradient(125deg, rgba(27, 106, 103, 0.08) 0%, transparent 55%);
}

:root:not([data-theme="dark"]) .hv2::before {
  background-image:
    linear-gradient(to right, rgba(16, 26, 27, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 26, 27, 0.045) 1px, transparent 1px);
}

:root:not([data-theme="dark"]) .hv2-title-accent {
  background: linear-gradient(135deg, #0e879c 0%, #1b6a67 52%, #3f55d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root:not([data-theme="dark"]) .hv2-btn-primary {
  background: #0f191a;
  color: #ffffff;
  border-color: #0f191a;
}

:root:not([data-theme="dark"]) .hv2-btn-primary:hover {
  background: #1b6a67;
  border-color: #1b6a67;
  color: #ffffff;
}

:root:not([data-theme="dark"]) .hv2-btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--c2-ink-soft);
  border-color: var(--c2-border-hi);
}

:root:not([data-theme="dark"]) .hv2-btn-secondary:hover {
  background: #ffffff;
  color: var(--c2-ink);
  border-color: var(--t-cyan);
}

:root:not([data-theme="dark"]) .hv2-chamber {
  background: linear-gradient(180deg, #ffffff 0%, #f4f9f9 100%);
  box-shadow:
    0 24px 56px -22px rgba(15, 45, 45, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

:root:not([data-theme="dark"]) .hv2-reg.reg-tl,
:root:not([data-theme="dark"]) .hv2-reg.reg-tr,
:root:not([data-theme="dark"]) .hv2-reg.reg-bl,
:root:not([data-theme="dark"]) .hv2-reg.reg-br {
  border-color: rgba(16, 26, 27, 0.26);
}

:root:not([data-theme="dark"]) .hv2-x-stage {
  background: radial-gradient(60% 60% at 50% 50%, rgba(14, 135, 156, 0.08), transparent 72%);
}

:root:not([data-theme="dark"]) .hv2-cad-lines .cad-diag {
  stroke: rgba(16, 26, 27, 0.11);
}

:root:not([data-theme="dark"]) .hv2-cad-lines .cad-bridge {
  stroke: rgba(16, 26, 27, 0.12);
}

:root:not([data-theme="dark"]) .hv2-cad-lines .cad-circle {
  stroke: rgba(16, 26, 27, 0.09);
}

:root:not([data-theme="dark"]) .hv2-cad-lines .cad-diamond {
  fill: rgba(14, 135, 156, 0.04);
  stroke: rgba(16, 26, 27, 0.28);
}

:root:not([data-theme="dark"]) .hv2-cad-lines .cad-center-dot {
  fill: rgba(16, 26, 27, 0.48);
}

:root:not([data-theme="dark"]) .hv2-tm {
  fill: rgba(16, 26, 27, 0.42);
}

:root:not([data-theme="dark"]) .hv2-stack {
  background: rgba(238, 245, 245, 0.58);
}

:root:not([data-theme="dark"]) .hv2-row:hover,
:root:not([data-theme="dark"]) .hv2-row:focus-visible,
:root:not([data-theme="dark"]) .hv2-row.is-focused {
  background: rgba(255, 255, 255, 0.85);
}

:root:not([data-theme="dark"]) .hv2-row-tag {
  border-color: rgba(16, 26, 27, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Fast Diagonal Right-to-Left Theme Switch Animation
   ========================================================================== */
html.xc-theme-swiping,
html.xc-theme-swiping *,
html.xc-theme-swiping *::before,
html.xc-theme-swiping *::after {
  transition: none !important;
}

::view-transition-group(root) {
  animation-duration: 0.44s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(135deg, #22b8cf 0%, #5cc4ba 50%, #6875f5 100%);
}

::view-transition-image-pair(root) {
  isolation: isolate;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
  display: block;
}

/* Old theme is wiped away diagonally from right to left */
::view-transition-old(root) {
  z-index: 1;
  animation: xc-diagonal-swipe-old 0.44s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* New theme slides in with one fast diagonal swipe from right to left */
::view-transition-new(root) {
  z-index: 2;
  animation: xc-diagonal-swipe-new 0.44s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes xc-diagonal-swipe-new {
  0% {
    clip-path: polygon(100.35% 0%, 142% 0%, 142% 100%, 138.35% 100%);
  }
  100% {
    clip-path: polygon(-38% 0%, 142% 0%, 142% 100%, 0% 100%);
  }
}

@keyframes xc-diagonal-swipe-old {
  0% {
    clip-path: polygon(-42% 0%, 100% 0%, 138% 100%, -42% 100%);
  }
  100% {
    clip-path: polygon(-42% 0%, -38.35% 0%, -0.35% 100%, -42% 100%);
  }
}

/* Fallback diagonal swipe curtain for browsers without View Transitions API */
.xc-theme-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: #f4f6fa;
  box-shadow: -3px 0 0 #3f55d6;
  animation: xc-curtain-swipe-rtl 0.44s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.xc-theme-curtain[data-target-theme="dark"] {
  background: #080a0f;
  box-shadow: -3px 0 0 #647cf2;
}

@keyframes xc-curtain-swipe-rtl {
  0% {
    clip-path: polygon(100% 0%, 142% 0%, 142% 100%, 138% 100%);
  }
  45% {
    clip-path: polygon(-38% 0%, 142% 0%, 142% 100%, 0% 100%);
  }
  100% {
    clip-path: polygon(-38% 0%, -38% 0%, 0% 100%, 0% 100%);
  }
}

/* ==========================================================================
   Home Hero Variant 3 (.hx) — The Dihedral Convergence Monolith
   ========================================================================== */
.hx {
  --hx-bg: #05070b;
  --hx-bg-2: #0a0e16;
  --hx-ink: #f5f7fa;
  --hx-ink-soft: #d5dde8;
  --hx-muted: #8a95a8;
  --hx-dim: #525d72;
  --hx-rule: rgba(255, 255, 255, 0.075);
  --hx-rule-strong: rgba(255, 255, 255, 0.17);

  --hx-cyan: #22d3ee;
  --hx-blue: #6366f1;
  --hx-yellow: #facc15;
  --hx-red: #f43f5e;

  --hx-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100dvh;
  padding-top: 84px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--hx-bg);
  background-image:
    linear-gradient(180deg, rgba(13, 20, 32, 0.72) 0%, rgba(5, 7, 11, 0.1) 48%, rgba(4, 6, 10, 0.95) 100%),
    linear-gradient(118deg, rgba(16, 26, 42, 0.45) 0%, transparent 56%);
  color: var(--hx-ink);
  font-family: var(--font-sans);
  border-bottom: 1px solid var(--hx-rule);
}

/* Fine architectural draft matrix across the dark graphite environment */
.hx::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.036) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 85%, transparent 100%);
}

/* Full-Viewport Architectural Datum Hairlines */
.hx-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  max-width: var(--maxw);
  margin: 0 auto;
  pointer-events: none;
}

.hx-datum-v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.038);
}
.hx-datum-v.dv-left  { left: clamp(20px, 4vw, 48px); }
.hx-datum-v.dv-mid   { left: 46%; }
.hx-datum-v.dv-right { right: clamp(20px, 4vw, 48px); }

.hx-datum-h {
  position: absolute;
  left: -20vw;
  right: -20vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.038);
}
.hx-datum-h.dh-top  { top: 136px; }
.hx-datum-h.dh-core { top: 52%; }

.hx-shell {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(18px, 2.8vh, 34px) clamp(20px, 4vw, 48px) 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 3vh, 36px);
}

/* ============================================================
   Top Architectural Datum Bar
   ============================================================ */
.hx-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hx-rule);
}

.hx-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 540;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hx-ink-soft);
}

.hx-prism-pip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.hx-prism-pip i {
  display: block;
  width: 3.5px;
  height: 12px;
  transform: skewX(-18deg);
  border-radius: 0.5px;
}
.hx-prism-pip .p-c { background: var(--hx-cyan); }
.hx-prism-pip .p-b { background: var(--hx-blue); }
.hx-prism-pip .p-y { background: var(--hx-yellow); }
.hx-prism-pip .p-r { background: var(--hx-red); }

.hx-sep {
  color: var(--hx-dim);
}

.hx-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hx-dim);
}

.hx-tel-divider {
  opacity: 0.45;
}

.hx-tel-live {
  color: var(--hx-ink-soft);
  transition: color 0.3s var(--hx-ease);
}

.hx[data-focus-team="cyan"]   .hx-tel-live { color: var(--hx-cyan); }
.hx[data-focus-team="blue"]   .hx-tel-live { color: var(--hx-blue); }
.hx[data-focus-team="yellow"] .hx-tel-live { color: var(--hx-yellow); }
.hx[data-focus-team="red"]    .hx-tel-live { color: var(--hx-red); }

/* ============================================================
   Asymmetric Spatial Stage: Editorial Spine + 3D Faceted X
   ============================================================ */
.hx-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(24px, 3.5vw, 52px);
  align-items: center;
  padding: clamp(4px, 1vh, 14px) 0;
}

.hx-editorial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hx-coord-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hx-dim);
  margin-bottom: 14px;
}

.hx-title {
  margin: 0;
  font-size: clamp(2.65rem, 4.75vw, 4.55rem);
  line-height: 1.03;
  letter-spacing: -0.044em;
  font-weight: 610;
  color: var(--hx-ink);
  text-wrap: balance;
}

.hx-title-em {
  background: linear-gradient(135deg, #a5f3fc 0%, #22d3ee 48%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hx-support-block {
  margin-top: clamp(20px, 2.8vh, 30px);
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.hx-support-rule {
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--hx-cyan) 0%, rgba(99, 102, 241, 0.2) 100%);
  flex-shrink: 0;
}

.hx-support {
  margin: 0;
  font-size: clamp(1.1rem, 1.38vw, 1.32rem);
  line-height: 1.52;
  letter-spacing: -0.015em;
  font-weight: 430;
  color: var(--hx-muted);
}

.hx-support strong {
  color: var(--hx-ink);
  font-weight: 540;
}

/* Primary & Secondary CTAs */
.hx-ctas {
  margin-top: clamp(26px, 3.6vh, 38px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hx-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 50px;
  padding: 0 8px 0 24px;
  border-radius: 999px;
  background: var(--hx-ink);
  color: #05070b;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.92);
  transition: transform 0.35s var(--hx-ease), background-color 0.25s var(--hx-ease), box-shadow 0.35s var(--hx-ease);
}

.hx-btn-disc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #05070b;
  color: var(--hx-ink);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--hx-ease), background-color 0.3s var(--hx-ease);
}

.hx-btn-disc svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hx-btn-primary:hover {
  background: #ffffff;
  color: #05070b;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -12px rgba(34, 211, 238, 0.36);
}

.hx-btn-primary:hover .hx-btn-disc {
  transform: translateX(2px);
  background: #0891b2;
  color: #ffffff;
}

.hx-btn-secondary {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--hx-rule-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--hx-ink-soft);
  font-size: 14px;
  font-weight: 520;
  text-decoration: none;
  transition: border-color 0.25s var(--hx-ease), background-color 0.25s var(--hx-ease), color 0.25s var(--hx-ease);
}

.hx-btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.055);
}

.hx-btn-primary:focus-visible,
.hx-btn-secondary:focus-visible {
  outline: 2px solid var(--hx-cyan);
  outline-offset: 4px;
}

/* Live Active Vector Spotlight Readout */
.hx-spotlight {
  margin-top: clamp(24px, 3.2vh, 34px);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--hx-rule);
  background: rgba(11, 15, 24, 0.72);
  max-width: 52ch;
  transition: border-color 0.35s var(--hx-ease);
}

.hx-spot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hx-cyan);
  box-shadow: 0 0 10px var(--hx-cyan);
  transition: background-color 0.3s var(--hx-ease), box-shadow 0.3s var(--hx-ease);
}

.hx-spot-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--hx-ink);
}

.hx-spot-text {
  font-size: 12.5px;
  color: var(--hx-muted);
}

.hx[data-focus-team="cyan"]   .hx-spotlight { border-color: rgba(34, 211, 238, 0.42); }
.hx[data-focus-team="blue"]   .hx-spotlight { border-color: rgba(99, 102, 241, 0.42); }
.hx[data-focus-team="yellow"] .hx-spotlight { border-color: rgba(250, 204, 21, 0.42); }
.hx[data-focus-team="red"]    .hx-spotlight { border-color: rgba(244, 63, 94, 0.42); }

.hx[data-focus-team="cyan"]   .hx-spot-dot { background: var(--hx-cyan);   box-shadow: 0 0 10px var(--hx-cyan); }
.hx[data-focus-team="blue"]   .hx-spot-dot { background: var(--hx-blue);   box-shadow: 0 0 10px var(--hx-blue); }
.hx[data-focus-team="yellow"] .hx-spot-dot { background: var(--hx-yellow); box-shadow: 0 0 10px var(--hx-yellow); }
.hx[data-focus-team="red"]    .hx-spot-dot { background: var(--hx-red);    box-shadow: 0 0 10px var(--hx-red); }

/* ============================================================
   Right Stage: True 3D Multi-Plane (`preserve-3d`) X Monolith
   ============================================================ */
.hx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hx-monolith-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}

.hx-monolith-tilt {
  position: relative;
  width: 100%;
  max-width: 680px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.hx-plane {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

.hx-plane-back {
  transform: translateZ(-52px) scale(1.03);
  pointer-events: none;
}

.hx-plane-mid {
  transform: translateZ(0px);
}

.hx-plane-front {
  transform: translateZ(48px);
  pointer-events: none;
}

.hx-plane-front .hx-callout {
  pointer-events: auto;
}

/* Architectural Caliper Field & Convergence Vectors */
.hx-cad-ring-outer {
  fill: none;
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 1;
}

.hx-cad-ring-mid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
  stroke-dasharray: 3 7;
}

.hx-cad-ring-inner {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.hx-cad-cross {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 1;
}

.hx-cad-vec {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  transition: stroke 0.4s var(--hx-ease), stroke-width 0.4s var(--hx-ease);
}

.hx-cad-frame {
  fill: none;
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 1;
}

.hx[data-focus-team="cyan"]   .hx-cad-vec.vec-cyan   { stroke: var(--hx-cyan);   stroke-width: 1.8; stroke-dasharray: none; }
.hx[data-focus-team="blue"]   .hx-cad-vec.vec-blue   { stroke: var(--hx-blue);   stroke-width: 1.8; stroke-dasharray: none; }
.hx[data-focus-team="yellow"] .hx-cad-vec.vec-yellow { stroke: var(--hx-yellow); stroke-width: 1.8; stroke-dasharray: none; }
.hx[data-focus-team="red"]    .hx-cad-vec.vec-red    { stroke: var(--hx-red);    stroke-width: 1.8; stroke-dasharray: none; }

/* The Four Multi-Faceted 3D Wings of the X */
.hx-wing {
  cursor: pointer;
}

.hx-wing-inner {
  transition: transform 0.52s var(--hx-ease), opacity 0.42s var(--hx-ease);
}

/* When a team is focused, non-focused wings recede while the active wing
   slides inward along its local 38° convergence axis toward the center */
.hx[data-focus-team] .hx-wing-inner {
  opacity: 0.24;
}

.hx[data-focus-team="cyan"]   .wing-cyan   .hx-wing-inner,
.hx[data-focus-team="blue"]   .wing-blue   .hx-wing-inner,
.hx[data-focus-team="yellow"] .wing-yellow .hx-wing-inner,
.hx[data-focus-team="red"]    .wing-red    .hx-wing-inner {
  opacity: 1;
  transform: translateY(14px) scale(1.035);
}

/* Central Negative-Space Diamond Aperture (440, 390) */
.hx-aperture {
  pointer-events: none;
}

.hx-ap-outer {
  fill: rgba(255, 255, 255, 0.015);
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.25;
  transform-origin: 440px 390px;
  transition: stroke 0.4s var(--hx-ease), fill 0.4s var(--hx-ease), transform 0.45s var(--hx-ease);
}

.hx-ap-inner {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  transform-origin: 440px 390px;
  transition: stroke 0.4s var(--hx-ease), transform 0.45s var(--hx-ease);
}

.hx-ap-node {
  fill: #ffffff;
  transition: fill 0.35s var(--hx-ease), r 0.35s var(--hx-ease);
}

.hx[data-focus-team="cyan"]   .hx-ap-outer { stroke: var(--hx-cyan);   fill: rgba(34, 211, 238, 0.10); transform: scale(1.1); }
.hx[data-focus-team="blue"]   .hx-ap-outer { stroke: var(--hx-blue);   fill: rgba(99, 102, 241, 0.10); transform: scale(1.1); }
.hx[data-focus-team="yellow"] .hx-ap-outer { stroke: var(--hx-yellow); fill: rgba(250, 204, 21, 0.10); transform: scale(1.1); }
.hx[data-focus-team="red"]    .hx-ap-outer { stroke: var(--hx-red);    fill: rgba(244, 63, 94, 0.10);  transform: scale(1.1); }

.hx[data-focus-team="cyan"]   .hx-ap-node { fill: var(--hx-cyan); }
.hx[data-focus-team="blue"]   .hx-ap-node { fill: var(--hx-blue); }
.hx[data-focus-team="yellow"] .hx-ap-node { fill: var(--hx-yellow); }
.hx[data-focus-team="red"]    .hx-ap-node { fill: var(--hx-red); }

/* Architectural Callout Leaders on the X Sculpture */
.hx-callout {
  cursor: pointer;
  transition: opacity 0.35s var(--hx-ease);
}

.hx-co-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.17);
  stroke-width: 1;
  transition: stroke 0.35s var(--hx-ease), stroke-width 0.35s var(--hx-ease);
}

.hx-co-dot {
  transition: r 0.35s var(--hx-ease);
}
.co-cyan   .hx-co-dot { fill: var(--hx-cyan); }
.co-yellow .hx-co-dot { fill: var(--hx-yellow); }
.co-blue   .hx-co-dot { fill: var(--hx-blue); }
.co-red    .hx-co-dot { fill: var(--hx-red); }

.hx-co-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
}
.co-cyan   .hx-co-code { fill: var(--hx-cyan); }
.co-yellow .hx-co-code { fill: var(--hx-yellow); }
.co-blue   .hx-co-code { fill: var(--hx-blue); }
.co-red    .hx-co-code { fill: var(--hx-red); }

.hx-co-role {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.01em;
  fill: rgba(245, 247, 250, 0.86);
}

.hx[data-focus-team] .hx-callout {
  opacity: 0.32;
}

.hx[data-focus-team="cyan"]   .co-cyan,
.hx[data-focus-team="yellow"] .co-yellow,
.hx[data-focus-team="blue"]   .co-blue,
.hx[data-focus-team="red"]    .co-red {
  opacity: 1;
}

.hx[data-focus-team="cyan"]   .co-cyan   .hx-co-line { stroke: var(--hx-cyan);   stroke-width: 1.5; }
.hx[data-focus-team="yellow"] .co-yellow .hx-co-line { stroke: var(--hx-yellow); stroke-width: 1.5; }
.hx[data-focus-team="blue"]   .co-blue   .hx-co-line { stroke: var(--hx-blue);   stroke-width: 1.5; }
.hx[data-focus-team="red"]    .co-red    .hx-co-line { stroke: var(--hx-red);    stroke-width: 1.5; }

.hx-tm {
  fill: rgba(255, 255, 255, 0.36);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ============================================================
   Bottom Architectural Four-Vector Convergence Dock
   ============================================================ */
.hx-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hx-rule);
}

.hx-vec-item {
  --v-color: var(--hx-cyan);
  position: relative;
  padding: 20px 24px 26px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s var(--hx-ease);
}

.hx-vec-item:first-child { padding-left: 0; }
.hx-vec-item:last-child  { padding-right: 0; }

.hx-vec-item + .hx-vec-item {
  border-left: 1px solid var(--hx-rule);
}

.hx-vec-item[data-team="cyan"]   { --v-color: var(--hx-cyan); }
.hx-vec-item[data-team="blue"]   { --v-color: var(--hx-blue); }
.hx-vec-item[data-team="yellow"] { --v-color: var(--hx-yellow); }
.hx-vec-item[data-team="red"]    { --v-color: var(--hx-red); }

.hx-vec-topline {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  overflow: hidden;
}

.hx-vec-beam {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--v-color);
  opacity: 0.38;
  transform-origin: left center;
  transition: opacity 0.35s var(--hx-ease), transform 0.35s var(--hx-ease);
}

.hx-vec-item:hover .hx-vec-beam,
.hx-vec-item:focus-visible .hx-vec-beam,
.hx-vec-item.is-active .hx-vec-beam {
  opacity: 1;
}

.hx-vec-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.hx-vec-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 520;
  letter-spacing: 0.08em;
  color: var(--hx-dim);
}

.hx-vec-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--v-color);
}

.hx-vec-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 590;
  letter-spacing: -0.02em;
  color: var(--hx-ink);
}

.hx-vec-desc {
  margin: 0;
  font-size: 13.2px;
  line-height: 1.5;
  color: var(--hx-muted);
  transition: color 0.3s var(--hx-ease);
}

.hx-vec-item:hover .hx-vec-desc,
.hx-vec-item:focus-visible .hx-vec-desc,
.hx-vec-item.is-active .hx-vec-desc {
  color: var(--hx-ink-soft);
}

/* ============================================================
   Restrained Purposeful Entrance Motion (Reduced-Motion Safe)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hx-topbar {
    animation: hvEnterFade 0.8s var(--hx-ease) backwards;
  }
  .hx-editorial {
    animation: hvEnterUp 0.9s var(--hx-ease) 0.08s backwards;
  }
  /* Each of the 4 faceted wings glides inward along its local 38° axis into alignment */
  .wing-cyan   .hx-wing-inner { animation: hxWingConverge 1.1s var(--hx-ease) 0.12s backwards; }
  .wing-yellow .hx-wing-inner { animation: hxWingConverge 1.1s var(--hx-ease) 0.18s backwards; }
  .wing-blue   .hx-wing-inner { animation: hxWingConverge 1.1s var(--hx-ease) 0.24s backwards; }
  .wing-red    .hx-wing-inner { animation: hxWingConverge 1.1s var(--hx-ease) 0.30s backwards; }
  .hx-callout {
    animation: hvEnterFade 0.95s var(--hx-ease) 0.42s backwards;
  }
  .hx-dock {
    animation: hvEnterUp 0.9s var(--hx-ease) 0.32s backwards;
  }
}

@keyframes hxWingConverge {
  from {
    opacity: 0;
    transform: translateY(-44px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   Light Mode Calibration for Concept 3 (.hx)
   ============================================================ */
:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *),
[data-theme="light"] .hx {
  --hx-bg: #f3f7f8;
  --hx-bg-2: #e6eff0;
  --hx-ink: #0c1517;
  --hx-ink-soft: #1e2f32;
  --hx-muted: #475a5e;
  --hx-dim: #6c8084;
  --hx-rule: rgba(12, 21, 23, 0.10);
  --hx-rule-strong: rgba(12, 21, 23, 0.22);

  --hx-cyan: #0891b2;
  --hx-blue: #4338ca;
  --hx-yellow: #b45309;
  --hx-red: #be123c;

  background-color: var(--hx-bg);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(243, 247, 248, 0.2) 50%, rgba(228, 238, 240, 0.9) 100%);
}

:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-title-em,
[data-theme="light"] .hx-title-em {
  background: linear-gradient(135deg, #0891b2 0%, #1b6a67 50%, #4338ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-btn-primary,
[data-theme="light"] .hx-btn-primary {
  background: #0c1517;
  color: #ffffff;
  border-color: #0c1517;
}

:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-btn-disc,
[data-theme="light"] .hx-btn-disc {
  background: #ffffff;
  color: #0c1517;
}

:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-spotlight,
[data-theme="light"] .hx-spotlight {
  background: rgba(255, 255, 255, 0.82);
}

:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-co-role,
[data-theme="light"] .hx-co-role {
  fill: #0c1517;
}

:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-co-line,
:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-cad-ring-outer,
:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-cad-ring-mid,
:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-cad-ring-inner,
:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-cad-cross,
:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-cad-vec,
:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-cad-frame,
[data-theme="light"] .hx-co-line,
[data-theme="light"] .hx-cad-ring-outer,
[data-theme="light"] .hx-cad-ring-mid,
[data-theme="light"] .hx-cad-ring-inner,
[data-theme="light"] .hx-cad-cross,
[data-theme="light"] .hx-cad-vec,
[data-theme="light"] .hx-cad-frame {
  stroke: rgba(12, 21, 23, 0.14);
}

:root:not([data-theme="dark"]) .hx:not([data-theme="dark"] *) .hx-ap-outer,
[data-theme="light"] .hx-ap-outer {
  stroke: rgba(12, 21, 23, 0.35);
}

/* ============================================================
   Responsive Recomposition (Tablet & Mobile — Concept 3)
   ============================================================ */
@media (max-width: 1080px) {
  .hx-telemetry .hx-tel-tag,
  .hx-telemetry .hx-tel-divider {
    display: none;
  }
  .hx-stage {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hx-monolith-stage {
    order: -1;
  }
  .hx-monolith-tilt {
    max-width: 540px;
  }
  .hx-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hx-vec-item {
    padding: 20px;
  }
  .hx-vec-item:first-child,
  .hx-vec-item:nth-child(3) {
    padding-left: 0;
  }
  .hx-vec-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--hx-rule);
  }
  .hx-vec-item:nth-child(4) {
    border-top: 1px solid var(--hx-rule);
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .hx {
    min-height: 0;
    padding-top: 82px;
  }
  .hx-telemetry {
    display: none;
  }
  .hx-monolith-tilt {
    max-width: 340px;
  }
  .hx-callout {
    display: none;
  }
  .hx-title {
    font-size: clamp(2.15rem, 8.8vw, 2.9rem);
  }
  .hx-ctas {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .hx-btn-primary,
  .hx-btn-secondary {
    justify-content: center;
    width: 100%;
  }
  .hx-dock {
    grid-template-columns: 1fr;
  }
  .hx-vec-item,
  .hx-vec-item:first-child,
  .hx-vec-item:nth-child(3),
  .hx-vec-item:nth-child(4),
  .hx-vec-item:last-child {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--hx-rule);
  }
}

/* ============================================================
   Hardware-Accelerated Diagonal Right-to-Left Theme Swipe Layer
   ============================================================ */
.xc-theme-wipe-snapshot {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(960px 520px at 88% -80px, var(--glow-a), transparent 70%),
    radial-gradient(760px 440px at -8% 28%, var(--glow-b), transparent 70%);
  color: var(--ink);
  will-change: clip-path;
}

.xc-theme-wipe-snapshot,
.xc-theme-wipe-snapshot *,
.xc-theme-wipe-snapshot *::before,
.xc-theme-wipe-snapshot *::after {
  animation: none !important;
  transition: none !important;
}

.xc-theme-wipe-scroll {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
}

.xc-theme-wipe-blade {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
  will-change: clip-path;
}

/* ============================================================
   Light Mode Calibration for Home Hero (.hv, .hv-v1)
   ============================================================ */
:root:not([data-theme="dark"]) .hv,
:root:not([data-theme="dark"]) .hv-v1 {
  --hv-bg: #f3f7f8;
  --hv-bg-elev: #ffffff;
  --hv-ink: #0d1618;
  --hv-ink-soft: #1f3134;
  --hv-muted: #495d60;
  --hv-dim: #6e8286;
  --hv-rule: rgba(13, 22, 24, 0.10);
  --hv-rule-strong: rgba(13, 22, 24, 0.22);

  --team-cyan: #0b8a9e;
  --team-blue: #3f55d6;
  --team-yellow: #b47d04;
  --team-red: #d11f48;

  background-color: var(--hv-bg);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(243, 247, 248, 0.15) 48%, rgba(228, 238, 240, 0.9) 100%);
}

:root:not([data-theme="dark"]) .hv::before,
:root:not([data-theme="dark"]) .hv-v1::before {
  background-image: radial-gradient(rgba(13, 22, 24, 0.05) 1px, transparent 0);
}

:root:not([data-theme="dark"]) .hv-gl-v,
:root:not([data-theme="dark"]) .hv-gl-h.h1 {
  background: rgba(13, 22, 24, 0.06);
}

:root:not([data-theme="dark"]) .hv-title-accent {
  background: linear-gradient(135deg, #0b8a9e 0%, #3f55d6 52%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root:not([data-theme="dark"]) .hv-cta-primary {
  background: #3f55d6;
  color: #ffffff;
  border-color: #3f55d6;
  box-shadow: 0 10px 24px -8px rgba(63, 85, 214, 0.35);
}

:root:not([data-theme="dark"]) .hv-cta-primary:hover {
  background: #3144b8;
  border-color: #3144b8;
  color: #ffffff;
  box-shadow: 0 14px 28px -6px rgba(63, 85, 214, 0.5);
}

:root:not([data-theme="dark"]) .hv-cta-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--hv-ink-soft);
  border-color: var(--hv-rule-strong);
}

:root:not([data-theme="dark"]) .hv-cta-secondary:hover {
  background: #ffffff;
  color: var(--hv-ink);
  border-color: var(--team-blue);
}

:root:not([data-theme="dark"]) .hv-x-structure .xs-ring,
:root:not([data-theme="dark"]) .hv-x-structure .xs-ring-inner,
:root:not([data-theme="dark"]) .hv-x-structure .xs-axis {
  stroke: rgba(13, 22, 24, 0.12);
}

:root:not([data-theme="dark"]) .hv-x-structure .xs-ticks,
:root:not([data-theme="dark"]) .hv-x-structure .xs-reticle {
  stroke: rgba(13, 22, 24, 0.26);
}

:root:not([data-theme="dark"]) .hv-x-monument .xm-tm {
  fill: rgba(13, 22, 24, 0.45);
}

/* ============================================================
   Launch essentials: contact page, form states, consent banner,
   sticky mobile CTA, thank-you page
   ============================================================ */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.req{color:var(--warn);font-weight:600}

/* ---------- contact page */
.ct-wrap{max-width:var(--maxw);margin:0 auto;padding:0 clamp(20px,4vw,40px)}
.ct-head{padding:clamp(120px,14vh,150px) 0 clamp(32px,5vw,48px)}
.ct-title{margin:14px 0 0;max-width:20ch;font-size:clamp(2.1rem,4.4vw,3.6rem);line-height:1.06;letter-spacing:-.035em;font-weight:650;color:var(--ink);text-wrap:balance}
.ct-lead{margin:18px 0 0;max-width:58ch;font-size:clamp(1rem,1.3vw,1.15rem);line-height:1.6;color:var(--body)}
.ct-quick{list-style:none;margin:36px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ct-quick li{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto auto;column-gap:14px;row-gap:4px;align-content:start;
  padding:20px 22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow-sm)}
.ct-quick-icon{grid-row:1/4;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}
.ct-quick-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ct-quick-label{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mid)}
.ct-quick-value{font-size:16px;font-weight:600;color:var(--ink);text-decoration:none;font-style:normal;line-height:1.45;word-break:break-word}
a.ct-quick-value:hover{color:var(--accent)}
.ct-address{font-size:14.5px;font-weight:500}
.ct-quick-note{font-size:13px;color:var(--body);line-height:1.45}
a.ct-map{color:var(--accent-dark);text-decoration:none;font-weight:500}
a.ct-map:hover{text-decoration:underline}

.ct-body{padding:0 0 clamp(56px,8vw,96px)}
.ct-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:24px;align-items:start}
.ct-form-card{padding:clamp(22px,3vw,36px);border:1px solid var(--line);border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow)}
.ct-h2{margin:0;font-size:clamp(1.25rem,1.8vw,1.5rem);font-weight:640;letter-spacing:-.02em;color:var(--ink)}
.ct-sub{margin:6px 0 22px;font-size:13.5px;color:var(--mid)}
.ct-carried{margin:0 0 18px;padding:10px 14px;border-radius:var(--radius-sm);background:var(--accent-soft);color:var(--accent-dark);font-size:13.5px}
.ct-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
.ct-fields .field{margin-bottom:18px}
.ct-full{grid-column:1/-1}
.ct-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:4px}
.ct-actions .form-status{margin:0;flex:1;min-width:200px}
.ct-privacy{margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line);font-size:13px;line-height:1.6;color:var(--mid)}
.ct-privacy a{color:var(--accent-dark)}
.ct-side{display:grid;gap:16px;position:sticky;top:96px}
.ct-incident{margin:0}
.ct-incident p{margin:8px 0 16px;font-size:14px;line-height:1.6;color:var(--body)}
.ct-h3{margin:10px 0 0;font-size:17px;font-weight:640;letter-spacing:-.015em;color:var(--ink)}
.ct-panel{padding:22px 24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white)}
.ct-panel .ct-h3{margin:0 0 14px}
.ct-steps{list-style:none;margin:0;padding:0;counter-reset:s;display:grid;gap:14px}
.ct-steps li{counter-increment:s;display:grid;grid-template-columns:28px 1fr;column-gap:12px;row-gap:2px}
.ct-steps li::before{content:counter(s);grid-row:1/3;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  font-size:12.5px;font-weight:650;color:var(--accent-dark);background:var(--accent-soft)}
.ct-steps b{font-size:14.5px;font-weight:600;color:var(--ink)}
.ct-steps span{font-size:13.5px;color:var(--body);line-height:1.5}
.ct-routes{margin:0;display:grid;gap:12px}
.ct-routes div{display:grid;gap:2px}
.ct-routes dt{font-size:12.5px;font-weight:600;color:var(--mid)}
.ct-routes dd{margin:0;font-size:14.5px;color:var(--body);word-break:break-word}
.ct-routes a{color:var(--accent-dark);text-decoration:none;font-weight:500}
.ct-routes a:hover{text-decoration:underline}
@media (max-width:1024px){
  .ct-grid{grid-template-columns:1fr}
  .ct-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
  .ct-incident{grid-column:1/-1}
}
@media (max-width:820px){.ct-quick{grid-template-columns:1fr}}
@media (max-width:600px){
  .ct-head{padding-top:104px}
  .ct-fields{grid-template-columns:1fr}
  .ct-side{grid-template-columns:1fr}
  .ct-actions .btn{width:100%}
}

/* ---------- form states: inline errors and loading */
.field-error{margin:6px 0 0;font-size:13px;line-height:1.4;color:var(--warn);display:flex;gap:6px;align-items:flex-start}
.field-error::before{content:"!";flex:none;width:16px;height:16px;margin-top:1px;border-radius:50%;display:grid;place-items:center;
  font-size:11px;font-weight:700;color:#fff;background:var(--warn)}
.has-error label{color:var(--warn)}
.check.has-error{outline:1px solid var(--warn);outline-offset:6px;border-radius:6px}
.form-status{min-height:1.4em;font-size:14px}
.form-status.is-error{color:var(--warn);font-weight:550}
.btn.is-loading{position:relative;cursor:progress;opacity:.92}
.btn.is-loading::after{content:"";width:16px;height:16px;margin-left:4px;border-radius:50%;
  border:2px solid currentColor;border-right-color:transparent;animation:xcSpin .7s linear infinite}
@keyframes xcSpin{to{transform:rotate(360deg)}}
select[aria-busy="true"]{background-image:linear-gradient(90deg,transparent,var(--accent-soft),transparent);background-size:200% 100%;animation:xcShimmer 1.2s linear infinite}
@keyframes xcShimmer{to{background-position:-200% 0}}
.skeleton{display:block;border-radius:10px;background:linear-gradient(90deg,var(--line) 25%,var(--accent-soft) 37%,var(--line) 63%);background-size:400% 100%;animation:xcSkel 1.4s ease infinite}
@keyframes xcSkel{0%{background-position:100% 50%}100%{background-position:0 50%}}

/* ---------- consent banner */
.consent{position:fixed;z-index:90;left:16px;right:16px;bottom:16px;max-width:560px;margin-left:auto;
  display:grid;gap:14px;padding:18px 20px;border:1px solid var(--line-strong);border-radius:var(--radius);
  background:var(--white);box-shadow:var(--shadow);color:var(--body);font-size:14px;line-height:1.55;
  transform:translateY(calc(100% + 24px));opacity:0;transition:transform .5s var(--ease),opacity .4s var(--ease)}
.consent.show{transform:none;opacity:1}
.consent p{margin:0}
.consent b{color:var(--ink)}
.consent a{color:var(--accent-dark)}
.consent-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.consent-actions .btn{padding:10px 18px;font-size:14px;min-height:0;height:auto}
.foot-prefs{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}
.foot-prefs:hover{color:var(--accent)}
@media (max-width:600px){.consent{left:10px;right:10px;bottom:10px}.consent-actions .btn{flex:1}}

/* ---------- sticky mobile CTA */
.sticky-cta{display:none}
@media (max-width:900px){
  .sticky-cta{position:fixed;z-index:70;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));
    display:flex;gap:10px;padding:8px;border:1px solid var(--line-strong);border-radius:999px;
    background:color-mix(in srgb,var(--white) 92%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:var(--shadow);
    transform:translateY(calc(100% + 30px));transition:transform .45s var(--ease)}
  .sticky-cta.show{transform:none}
  .sticky-cta-main{flex:1;border-radius:999px;justify-content:center}
  .sticky-cta-call{flex:none;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
    border:1px solid var(--line-strong);color:var(--ink);background:var(--paper)}
  .sticky-cta-call svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  body.has-sticky-cta .site-footer{padding-bottom:110px}
  body.nav-open .sticky-cta,body.has-consent-banner .sticky-cta{transform:translateY(calc(100% + 30px))}
}

/* ---------- thank-you page */
.ty{min-height:100dvh;display:grid;place-items:center;padding:120px 20px 80px}
.ty-card{width:100%;max-width:640px;padding:clamp(28px,5vw,48px);border:1px solid var(--line);border-radius:calc(var(--radius) + 6px);background:var(--white);box-shadow:var(--shadow);text-align:left}
.ty-check{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);margin-bottom:22px}
.ty-check svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:24;animation:tyDraw .7s var(--ease) .2s forwards}
@keyframes tyDraw{to{stroke-dashoffset:0}}
.ty-eyebrow{margin:0;font-size:12.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-dark)}
.ty-title{margin:8px 0 0;font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.1;letter-spacing:-.03em;font-weight:650;color:var(--ink)}
.ty-lead{margin:14px 0 0;font-size:16px;line-height:1.6;color:var(--body)}
.ty-steps{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:12px;counter-reset:s}
.ty-steps li{counter-increment:s;display:grid;grid-template-columns:28px 1fr;column-gap:12px;row-gap:2px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--paper)}
.ty-steps li::before{content:counter(s);grid-row:1/3;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:650;color:var(--accent-dark);background:var(--accent-soft)}
.ty-steps b{font-size:14.5px;color:var(--ink)}
.ty-steps span{font-size:13.5px;color:var(--body)}
.ty-ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.ty-note{margin:20px 0 0;font-size:13.5px;color:var(--mid)}
.ty-note a{color:var(--accent-dark)}
@media (max-width:600px){.ty-ctas .btn{flex:1}}
@media (prefers-reduced-motion:reduce){
  .consent,.sticky-cta{transition:none}
  .btn.is-loading::after,.skeleton,select[aria-busy="true"]{animation:none}
  .ty-check svg{animation:none;stroke-dashoffset:0}
}
.form-status:empty{display:none}

/* ---------- home hero on phones: headline and primary CTA inside the first screen */
@media (max-width: 760px) {
  .hv-frame { gap: 16px; }
  .hv-stage { gap: 18px; }
  .hv-sculpture { width: min(44vw, 170px); }
  .hv-title { font-size: clamp(2rem, 8.4vw, 2.7rem); }
}
@media (max-width: 380px) {
  .hv-sculpture { width: min(38vw, 140px); }
}

/* ==========================================================================
   POLISHED BRAND SHOWCASE HERO (.hero-ss) — Match User Screenshot Exactly
   ========================================================================== */
.hero-ss {
  --hss-bg: #06090e;
  --hss-ink: #ffffff;
  --hss-muted: #94a3b8;
  --hss-cyan: #22d3ee;
  --hss-yellow: #fdbf06;
  --hss-blue: #60a5fa;
  --hss-red: #f43f5e;
  --hss-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100dvh;
  padding: 108px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--hss-bg);
  background-image:
    radial-gradient(circle at 50% 32%, rgba(34, 211, 238, 0.08) 0%, rgba(99, 102, 241, 0.04) 36%, transparent 70%),
    linear-gradient(180deg, #070b12 0%, #05080d 50%, #04060a 100%);
  color: var(--hss-ink);
  font-family: var(--font-sans);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Atmospheric subtle micro-texture */
.hero-ss::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 38%, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 38%, black 35%, transparent 80%);
}

.hero-ss-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 1. Top Eyebrow Pill */
.hero-ss-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(46, 203, 233, 0.35);
  color: #2ecbe9;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 0 18px rgba(46, 203, 233, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 30px;
  transition: all 0.3s var(--hss-ease);
}

.hero-ss-pill:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(46, 203, 233, 0.6);
  box-shadow: 0 0 24px rgba(46, 203, 233, 0.22);
}

/* 2. Center 4-Quadrant Stage (The X + 4 Teams) */
.hero-ss-stage {
  display: grid;
  grid-template-columns: minmax(180px, 240px) auto minmax(180px, 240px);
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: center;
  gap: 16px clamp(28px, 4vw, 68px);
  width: 100%;
  max-width: 940px;
  margin: 0 auto 34px;
  position: relative;
}

/* The Favicon Brand Centerpiece */
.hero-ss-x-wrap {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Atmospheric multi-color back-glow behind the favicon */
.hero-ss-x-wrap::before {
  content: "";
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.09) 0%, rgba(99, 102, 241, 0.06) 42%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.5s var(--hss-ease), opacity 0.5s var(--hss-ease);
}


.hero-ss-x-svg {
  width: min(72vw, 290px);
  height: auto;
  overflow: visible;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55));
  transition: transform 0.5s var(--hss-ease);
}

/* Individual capsules on the Favicon */
.x-arm {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center center;
  outline: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.arm-cyan   { transform-origin: 158px 131px; }
.arm-yellow { transform-origin: 362px 130px; }
.arm-blue   { transform-origin: 155px 371px; }
.arm-red    { transform-origin: 364px 372px; }

/* Team Annotations */
.hero-ss-team {
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--hss-ease), background-color 0.25s var(--hss-ease), border-color 0.25s var(--hss-ease), box-shadow 0.25s var(--hss-ease), opacity 0.25s var(--hss-ease);
  outline: none;
}

.hero-ss-team:hover,
.hero-ss-team:focus-visible,
.hero-ss-team.is-focused {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.hero-ss[data-focus-team] .hero-ss-team:not(.is-focused) {
  opacity: 0.42;
}

.hero-ss-team.cyan {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.hero-ss-team.yellow {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.hero-ss-team.blue {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
}

.hero-ss-team.red {
  grid-column: 3;
  grid-row: 2;
  justify-self: start;
}

.team-title {
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  transition: filter 0.3s ease, color 0.3s ease;
}

.team-desc {
  font-size: clamp(13px, 1.05vw, 14.5px);
  font-weight: 400;
  color: var(--hss-muted);
  line-height: 1.35;
  transition: color 0.25s ease;
}

.hero-ss-team:hover .team-desc,
.hero-ss-team:focus-visible .team-desc,
.hero-ss-team.is-focused .team-desc {
  color: #e2e8f0;
}

/* Team Color Definitions Matching Screenshot */
.hero-ss-team.cyan   .team-title { color: #2ecbe9; }
.hero-ss-team.yellow .team-title { color: #fdbf06; }
.hero-ss-team.blue   .team-title { color: #60a5fa; }
.hero-ss-team.red    .team-title { color: #f43f5e; }

/* Interactive Hover Linkage Between Text and Favicon Capsules */
.hero-ss[data-focus-team] .x-arm {
  opacity: 0.26;
  filter: saturate(0.7) brightness(0.75);
}

.hero-ss[data-focus-team="cyan"]   .arm-cyan,
.x-arm.arm-cyan:hover,
.x-arm.arm-cyan:focus-visible {
  opacity: 1 !important;
  transform: translate(-3px, -3px) scale(1.06);
  filter: none !important;
}

.hero-ss[data-focus-team="yellow"] .arm-yellow,
.x-arm.arm-yellow:hover,
.x-arm.arm-yellow:focus-visible {
  opacity: 1 !important;
  transform: translate(3px, -3px) scale(1.06);
  filter: none !important;
}

.hero-ss[data-focus-team="blue"]   .arm-blue,
.x-arm.arm-blue:hover,
.x-arm.arm-blue:focus-visible {
  opacity: 1 !important;
  transform: translate(-3px, 3px) scale(1.06);
  filter: none !important;
}

.hero-ss[data-focus-team="red"]    .arm-red,
.x-arm.arm-red:hover,
.x-arm.arm-red:focus-visible {
  opacity: 1 !important;
  transform: translate(3px, 3px) scale(1.06);
  filter: none !important;
}

/* 3. Main Headline */
.hero-ss-title {
  margin: 0 0 20px;
  font-size: clamp(2.65rem, 5.8vw, 4.85rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 650;
  color: #ffffff;
  text-wrap: balance;
  text-align: center;
}

.hero-ss-accent {
  color: #259df7;
  background: linear-gradient(135deg, #38bdf8 0%, #259df7 50%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* 4. Supporting Statement */
.hero-ss-support {
  margin: 0 0 34px;
  font-size: clamp(1.12rem, 1.55vw, 1.38rem);
  line-height: 1.55;
  letter-spacing: -0.012em;
  font-weight: 400;
  color: var(--hss-muted);
  text-align: center;
  max-width: 44ch;
}

/* 5. Clean Action CTAs */
.hero-ss-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-ss-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #06090e;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.3s var(--hss-ease), background-color 0.25s var(--hss-ease), box-shadow 0.3s var(--hss-ease);
}

.hero-ss-btn-primary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--hss-ease);
}

.hero-ss-btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(34, 211, 238, 0.38);
}

.hero-ss-btn-primary:hover svg {
  transform: translateX(3px);
}

.hero-ss-btn-secondary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.25s var(--hss-ease), background-color 0.25s var(--hss-ease), color 0.25s var(--hss-ease);
}

.hero-ss-btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.hero-ss-btn-primary:focus-visible,
.hero-ss-btn-secondary:focus-visible {
  outline: 2px solid var(--hss-cyan);
  outline-offset: 4px;
}

/* ============================================================
   Responsive Design for Hero Showcase
   ============================================================ */
@media (max-width: 840px) {
  .hero-ss {
    padding: 96px 20px 48px;
    min-height: auto;
  }
  .hero-ss-stage {
    grid-template-columns: 1fr auto 1fr;
    gap: 12px 20px;
    margin-bottom: 28px;
  }
  .hero-ss-x-svg {
    width: min(58vw, 240px);
  }
  .team-title {
    font-size: 16px;
  }
  .team-desc {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .hero-ss-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px 14px;
  }
  .hero-ss-x-wrap {
    grid-column: 1 / 3;
    grid-row: 1;
    margin-bottom: 10px;
  }
  .hero-ss-x-svg {
    width: 210px;
  }
  .hero-ss-team.cyan {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    text-align: left;
  }
  .hero-ss-team.yellow {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
    text-align: left;
  }
  .hero-ss-team.blue {
    grid-column: 1;
    grid-row: 3;
    justify-self: stretch;
    text-align: left;
  }
  .hero-ss-team.red {
    grid-column: 2;
    grid-row: 3;
    justify-self: stretch;
    text-align: left;
  }
  .hero-ss-title {
    font-size: clamp(2.15rem, 8.5vw, 2.85rem);
    margin-bottom: 16px;
  }
  .hero-ss-support {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }
  .hero-ss-ctas {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ss-btn-primary,
  .hero-ss-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Light mode calibration */
:root:not([data-theme="dark"]) .hero-ss,
:root[data-theme="light"] .hero-ss {
  --hss-bg: #f8fafc;
  --hss-ink: #0f172a;
  --hss-muted: #475569;
  background-color: var(--hss-bg);
  background-image:
    radial-gradient(circle at 50% 36%, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.05) 38%, transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 60%, #eef2f6 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

:root:not([data-theme="dark"]) .hero-ss-title,
:root[data-theme="light"] .hero-ss-title {
  color: #0f172a;
}

:root:not([data-theme="dark"]) .hero-ss-support,
:root[data-theme="light"] .hero-ss-support {
  color: #334155;
  font-weight: 420;
}

:root:not([data-theme="dark"]) .hero-ss-pill,
:root[data-theme="light"] .hero-ss-pill {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.35);
  color: #0284c7;
}

:root:not([data-theme="dark"]) .hero-ss-btn-primary,
:root[data-theme="light"] .hero-ss-btn-primary {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

:root:not([data-theme="dark"]) .hero-ss-btn-secondary,
:root[data-theme="light"] .hero-ss-btn-secondary {
  background: #ffffff;
  color: #1e293b;
  border-color: rgba(15, 23, 42, 0.16);
}

:root:not([data-theme="dark"]) .hero-ss-x-svg,
:root[data-theme="light"] .hero-ss-x-svg {
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.12));
}

/* Light Mode Team Cards & Hover Visibility */
:root:not([data-theme="dark"]) .hero-ss-team,
:root[data-theme="light"] .hero-ss-team {
  border: 1px solid transparent;
  border-radius: 10px;
  transition: transform 0.3s var(--hss-ease), background-color 0.25s var(--hss-ease), border-color 0.25s var(--hss-ease), box-shadow 0.25s var(--hss-ease), opacity 0.3s var(--hss-ease);
}

:root:not([data-theme="dark"]) .hero-ss-team .team-desc,
:root[data-theme="light"] .hero-ss-team .team-desc {
  color: #475569;
}

/* Base Team Title colors in light mode (high contrast against white) */
:root:not([data-theme="dark"]) .hero-ss-team.cyan   .team-title,
:root[data-theme="light"] .hero-ss-team.cyan   .team-title { color: #0284c7; }

:root:not([data-theme="dark"]) .hero-ss-team.yellow .team-title,
:root[data-theme="light"] .hero-ss-team.yellow .team-title {
  color: #fdbf06;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

:root:not([data-theme="dark"]) .hero-ss-team.blue   .team-title,
:root[data-theme="light"] .hero-ss-team.blue   .team-title { color: #2563eb; }

:root:not([data-theme="dark"]) .hero-ss-team.red    .team-title,
:root[data-theme="light"] .hero-ss-team.red    .team-title { color: #e11d48; }

/* When any arm of the X is hovered/focused in light mode */
:root:not([data-theme="dark"]) .hero-ss-team:hover,
:root:not([data-theme="dark"]) .hero-ss-team:focus-visible,
:root:not([data-theme="dark"]) .hero-ss-team.is-focused,
:root[data-theme="light"] .hero-ss-team:hover,
:root[data-theme="light"] .hero-ss-team:focus-visible,
:root[data-theme="light"] .hero-ss-team.is-focused {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  transform: translateY(-2px);
}

:root:not([data-theme="dark"]) .hero-ss-team.yellow:hover,
:root:not([data-theme="dark"]) .hero-ss-team.yellow.is-focused,
:root[data-theme="light"] .hero-ss-team.yellow:hover,
:root[data-theme="light"] .hero-ss-team.yellow.is-focused {
  border-color: rgba(253, 191, 6, 0.35);
  box-shadow: 0 10px 25px -4px rgba(253, 191, 6, 0.18), 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* When active/focused, description is deep charcoal (#0f172a) for crystal-clear readability */
:root:not([data-theme="dark"]) .hero-ss-team:hover .team-desc,
:root:not([data-theme="dark"]) .hero-ss-team:focus-visible .team-desc,
:root:not([data-theme="dark"]) .hero-ss-team.is-focused .team-desc,
:root[data-theme="light"] .hero-ss-team:hover .team-desc,
:root[data-theme="light"] .hero-ss-team:focus-visible .team-desc,
:root[data-theme="light"] .hero-ss-team.is-focused .team-desc {
  color: #0f172a !important;
  font-weight: 500;
}

/* Deepened title colors when focused in light mode */
:root:not([data-theme="dark"]) .hero-ss-team.cyan:hover .team-title,
:root:not([data-theme="dark"]) .hero-ss-team.cyan.is-focused .team-title,
:root[data-theme="light"] .hero-ss-team.cyan:hover .team-title,
:root[data-theme="light"] .hero-ss-team.cyan.is-focused .team-title {
  color: #0369a1;
}

:root:not([data-theme="dark"]) .hero-ss-team.yellow:hover .team-title,
:root:not([data-theme="dark"]) .hero-ss-team.yellow.is-focused .team-title,
:root[data-theme="light"] .hero-ss-team.yellow:hover .team-title,
:root[data-theme="light"] .hero-ss-team.yellow.is-focused .team-title {
  color: #fdbf06;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.28);
}

:root:not([data-theme="dark"]) .hero-ss-team.blue:hover .team-title,
:root:not([data-theme="dark"]) .hero-ss-team.blue.is-focused .team-title,
:root[data-theme="light"] .hero-ss-team.blue:hover .team-title,
:root[data-theme="light"] .hero-ss-team.blue.is-focused .team-title {
  color: #1d4ed8;
}

:root:not([data-theme="dark"]) .hero-ss-team.red:hover .team-title,
:root:not([data-theme="dark"]) .hero-ss-team.red.is-focused .team-title,
:root[data-theme="light"] .hero-ss-team.red:hover .team-title,
:root[data-theme="light"] .hero-ss-team.red.is-focused .team-title {
  color: #be123c;
}

/* Unfocused team cards remain readable but gently subdued */
:root:not([data-theme="dark"]) .hero-ss[data-focus-team] .hero-ss-team:not(.is-focused),
:root[data-theme="light"] .hero-ss[data-focus-team] .hero-ss-team:not(.is-focused) {
  opacity: 0.48;
}

/* Light mode aura behind favicon */
:root:not([data-theme="dark"]) .hero-ss-x-wrap::before,
:root[data-theme="light"] .hero-ss-x-wrap::before {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.08) 42%, transparent 72%);
}


/* ============================================================
   Blog: post list, single post and the security-news column
   ============================================================ */
.bl-wrap{max-width:var(--maxw);margin:0 auto;padding:0 clamp(20px,4vw,40px)}
.bl-head{padding:clamp(120px,14vh,150px) 0 clamp(24px,4vw,36px)}
.bl-h1{margin:14px 0 0;max-width:22ch;font-size:clamp(2rem,4.2vw,3.4rem);line-height:1.06;letter-spacing:-.035em;font-weight:650;color:var(--ink);text-wrap:balance}
.bl-intro{margin:16px 0 0;max-width:60ch;font-size:clamp(1rem,1.3vw,1.12rem);line-height:1.6;color:var(--body)}
.bl-main{padding:0 0 clamp(56px,8vw,96px)}
.bl-main-post{padding-top:clamp(112px,13vh,140px)}
.bl-grid{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:clamp(24px,3vw,40px);align-items:start}

/* post list */
.bl-posts{display:grid;border-top:1px solid var(--line)}
.bl-card{border-bottom:1px solid var(--line)}
.bl-skel{padding:28px 0;display:grid}
.bl-card-link{display:block;padding:28px 0;color:inherit;text-decoration:none}
.bl-card-link:hover .bl-card-title{color:var(--accent-dark)}
.bl-card-title{transition:color .2s var(--ease)}
.bl-src{font-weight:600;color:var(--accent-dark)}
.bl-ext{margin:24px 0 0}
.bl-card-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:var(--radius)}
.bl-meta{margin:0;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--mid)}
.bl-meta > * + *::before{content:"";display:inline-block;width:3px;height:3px;border-radius:50%;background:currentColor;vertical-align:middle;margin-right:14px;opacity:.6}
.bl-card-title{margin:10px 0 0;font-size:clamp(1.2rem,1.9vw,1.5rem);line-height:1.25;letter-spacing:-.02em;font-weight:640;color:var(--ink)}
.bl-card-lead .bl-card-title{font-size:clamp(1.4rem,2.5vw,1.95rem)}
.bl-card-excerpt{margin:10px 0 0;font-size:15.5px;line-height:1.6;color:var(--body);max-width:62ch}
.bl-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.bl-tag{padding:3px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent-dark);font-size:12px;font-weight:550}
.bl-read{display:inline-block;margin-top:16px;font-size:14px;font-weight:600;color:var(--accent-dark)}
.bl-card-link:hover .bl-read{text-decoration:underline}
.bl-empty{margin:0;padding:28px;border:1px dashed var(--line-strong);border-radius:var(--radius);color:var(--body)}

/* single post */
.bl-back{margin:0 0 18px}
.bl-article{padding:0;display:grid}
.bl-article > .skeleton{display:block}
.bl-title{margin:12px 0 0;font-size:clamp(1.9rem,4vw,3rem);line-height:1.08;letter-spacing:-.035em;font-weight:650;color:var(--ink);text-wrap:balance}
.bl-lead{margin:16px 0 0;font-size:clamp(1.05rem,1.4vw,1.2rem);line-height:1.6;color:var(--body)}
.bl-body{margin-top:28px;padding-top:24px;border-top:1px solid var(--line);max-width:68ch;font-size:17px;line-height:1.75;color:var(--body)}
.bl-body p{margin:0 0 18px}
.bl-body h2{margin:30px 0 10px;font-size:1.3rem;letter-spacing:-.02em;font-weight:640;color:var(--ink)}
.bl-body ul{margin:0 0 18px;padding-left:22px}
.bl-body li{margin-bottom:8px}
.bl-body a{color:var(--accent-dark);text-underline-offset:3px}
.bl-end{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}
.bl-end p{margin:0 auto 0 0;font-weight:550;color:var(--ink)}

/* news column */
.bl-side{position:sticky;top:96px;padding:24px 26px 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow-sm)}
.bl-news-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.bl-news-head h2{margin:0;font-size:17px;font-weight:650;letter-spacing:-.015em;color:var(--ink)}
.bl-live{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;border:1px solid var(--line-strong);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--body)}
.bl-live::before{content:"";width:7px;height:7px;border-radius:50%;background:#e0415a;box-shadow:0 0 0 0 rgba(224,65,90,.5);animation:blPulse 2s ease-out infinite}
@keyframes blPulse{0%{box-shadow:0 0 0 0 rgba(224,65,90,.45)}70%{box-shadow:0 0 0 7px rgba(224,65,90,0)}100%{box-shadow:0 0 0 0 rgba(224,65,90,0)}}
.bl-news-sub{margin:8px 0 12px;font-size:13px;line-height:1.5;color:var(--mid)}
.bl-news-list{list-style:none;margin:0;padding:0;max-height:calc(100vh - 290px);overflow-y:auto;scrollbar-width:thin}
.bl-news-item{border-top:1px solid var(--line);display:grid}
.bl-news-item > .skeleton{display:block;margin:0}
.bl-news-item:has(.skeleton){padding:14px 0}
.bl-news-link{display:grid;gap:6px;padding:13px 2px;color:inherit;text-decoration:none}
.bl-news-title{font-size:15px;line-height:1.4;font-weight:560;color:var(--ink)}
.bl-news-link:hover .bl-news-title{color:var(--accent-dark);text-decoration:underline;text-underline-offset:3px}
.bl-news-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.bl-news-meta{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;color:var(--mid)}
.bl-news-source{font-weight:600;color:var(--body)}
.bl-news-empty{padding:14px 0;border-top:1px solid var(--line);font-size:14px;color:var(--body)}
.bl-news-foot{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:11.5px;line-height:1.5;color:var(--mid)}

@media (max-width:1240px){
  .bl-grid{grid-template-columns:minmax(0,1fr) 380px}
}
@media (max-width:1024px){
  .bl-grid{grid-template-columns:minmax(0,1fr) 330px}
}
@media (max-width:900px){
  .bl-grid{grid-template-columns:1fr}
  .bl-side{position:static}
  .bl-news-list{max-height:none}
}
@media (max-width:600px){
  .bl-head{padding-top:104px}
  .bl-main-post{padding-top:100px}
  .bl-card-link,.bl-skel{padding:22px 0}
  .bl-body{font-size:16px}
  .bl-end .btn{flex:1}
}
@media (prefers-reduced-motion:reduce){.bl-live::before{animation:none}.bl-card{transition:none}}

/* Hero X shadow: soft tinted lift in light mode, deep shadow only in dark */
.ss-shadow{flood-color:#2a3f66;flood-opacity:.16}
:root[data-theme="dark"] .ss-shadow{flood-color:#000;flood-opacity:.75}
/* light mode: bevels are deeper shades of each arm, not near-black */
:root:not([data-theme="dark"]) .ss-bv-cyan1{stop-color:#0e8fb0}
:root:not([data-theme="dark"]) .ss-bv-cyan2{stop-color:#0b6f8a}
:root:not([data-theme="dark"]) .ss-bv-yellow1{stop-color:#d98a06}
:root:not([data-theme="dark"]) .ss-bv-yellow2{stop-color:#b26608}
:root:not([data-theme="dark"]) .ss-bv-blue1{stop-color:#4f46d8}
:root:not([data-theme="dark"]) .ss-bv-blue2{stop-color:#3b32b0}
:root:not([data-theme="dark"]) .ss-bv-red1{stop-color:#d0284f}
:root:not([data-theme="dark"]) .ss-bv-red2{stop-color:#a51a3f}
/* hero that ends with its chip row (products) needs less space below */
.panel.first:has(> .chips:last-child){padding-bottom:clamp(24px,3vw,40px)}
.hero-ss-x-svg{filter:drop-shadow(0 18px 30px rgba(42,63,102,.14))}
:root[data-theme="dark"] .hero-ss-x-svg{filter:drop-shadow(0 20px 36px rgba(0,0,0,.75))}

/* "Talk to us" chooser: email or call */
.talk-pop{position:fixed;z-index:200;display:grid;gap:4px;min-width:250px;padding:8px;border:1px solid var(--line);border-radius:16px;background:var(--white);box-shadow:var(--shadow);animation:talkIn .18s var(--ease)}
.talk-pop a{display:grid;gap:2px;padding:10px 14px;border-radius:11px;color:var(--ink);text-decoration:none}
.talk-pop a:hover,.talk-pop a:focus-visible{background:var(--accent-soft);outline:none}
.talk-k{font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mid)}
.talk-v{font-size:15px;font-weight:560}
@keyframes talkIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.talk-pop{animation:none}}

/* ============================================================
   About page
   ============================================================ */
.ab .ab-sec{padding-top:clamp(48px,6vw,84px);padding-bottom:clamp(48px,6vw,84px)}
.ab .ab-sec.first{padding-top:clamp(128px,14vh,160px)}
.ab-h1{max-width:20ch}
.ab-intro{max-width:62ch}
.ab-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:36px 0 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ab-facts > div{padding:18px 20px 18px 0}
.ab-facts > div + div{padding-left:20px;border-left:1px solid var(--line)}
.ab-facts dt{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mid)}
.ab-facts dd{margin:6px 0 0;font-size:1.05rem;font-weight:600;color:var(--ink)}
.ab-figure{margin-top:40px}
.ab-split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,5vw,72px);align-items:start}
.ab-split .med{margin-bottom:0}
.ab-split .body{max-width:62ch}
.ab-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,40px);margin-top:44px}
.ab-point{padding-top:18px;border-top:2px solid var(--line-strong)}
.ab-point h3{margin:0 0 8px;font-size:1.1rem;font-weight:620;letter-spacing:-.015em;color:var(--ink)}
.ab-point p{margin:0;font-size:15.5px;line-height:1.6;color:var(--body)}
.ab-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.ab-card{display:flex;flex-direction:column;color:inherit;text-decoration:none}
.ab-card .f-sub{flex:1}
.ab-more{margin-top:18px;font-size:14px;font-weight:600;color:var(--accent-dark)}
.ab-card:hover .ab-more{text-decoration:underline;text-underline-offset:3px}
.ab-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ab .turn-graphic{margin-top:40px}
@media (max-width:900px){
  .ab-split{grid-template-columns:1fr;gap:16px}
  .ab-three{grid-template-columns:1fr}
  .ab-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ab-facts > div:nth-child(3){padding-left:0;border-left:0}
  .ab-facts > div:nth-child(n+3){border-top:1px solid var(--line)}
}
@media (max-width:640px){
  .ab-points{grid-template-columns:1fr;gap:24px}
}
.ab-split .med{font-size:clamp(1.55rem,2.4vw,2.2rem)}

/* Products page (shares the .ab layout from the About page) */
.pr-pick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:36px}
.pr-pick-card{display:flex;flex-direction:column;gap:8px;padding:26px 28px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--white);box-shadow:var(--shadow-sm);color:inherit;text-decoration:none;transition:border-color .25s var(--ease),box-shadow .3s var(--ease),transform .3s var(--ease)}
.pr-pick-card:hover{border-color:var(--line-strong);box-shadow:var(--shadow);transform:translateY(-2px)}
.pr-pick-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.pr-pick-k{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-dark)}
.pr-pick-name{font-size:clamp(1.5rem,2.4vw,1.9rem);font-weight:640;letter-spacing:-.03em;color:var(--ink)}
.pr-pick-what{font-size:15.5px;line-height:1.6;color:var(--body)}
.pr-pick-for{flex:1;font-size:14px;color:var(--mid)}
.pr-pick-card .ab-more{margin-top:8px}
.pr-pick-card:hover .ab-more{text-decoration:underline;text-underline-offset:3px}
.pr-sub{margin:48px 0 0;font-size:1.2rem;font-weight:620;letter-spacing:-.015em;color:var(--ink)}
.ab .pr-sub + .features,.ab .pr-sub + .ab-points{margin-top:18px}
.pr-steps{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,40px)}
.pr-steps li{display:flex;gap:14px;align-items:flex-start;padding-top:18px;border-top:2px solid var(--line-strong)}
.pr-step-n{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--accent-soft);color:var(--accent-dark);font-size:14px;font-weight:650}
.pr-steps h4{margin:3px 0 6px;font-size:1.02rem;font-weight:620;color:var(--ink)}
.pr-steps p{margin:0;font-size:15px;line-height:1.6;color:var(--body)}
.ab .cta-row{margin-top:40px}
@media (max-width:900px){
  .pr-pick{grid-template-columns:1fr}
  .pr-steps{grid-template-columns:1fr;gap:20px}
}

/* Products overview cards and product pages */
.pr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:40px}
.pr-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--white);box-shadow:var(--shadow-sm);color:inherit;text-decoration:none;transition:border-color .25s var(--ease),box-shadow .3s var(--ease),transform .3s var(--ease)}
a.pr-card:hover{border-color:var(--line-strong);box-shadow:var(--shadow);transform:translateY(-2px)}
a.pr-card:hover .ab-more{text-decoration:underline;text-underline-offset:3px}
a.pr-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* research: linked overview cards keep the plain card look */
a.value{display:block;color:var(--ink)}
a.value:hover{color:var(--ink)}
a.value:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.pr-card-media{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--paper);border-bottom:1px solid var(--line)}
.pr-card-media img{width:100%;height:100%;object-fit:cover;object-position:top left;display:block}
.pr-card-body{flex:1;display:flex;flex-direction:column;gap:8px;padding:22px 24px 24px}
.pr-soon-media{display:grid;place-items:center;background:linear-gradient(135deg,var(--accent-soft),var(--paper))}
.pr-soon-media span{font-size:clamp(1.8rem,3vw,2.4rem);font-weight:650;letter-spacing:-.04em;color:var(--accent-dark);opacity:.55}
.pr-card-soon{border-style:dashed;box-shadow:none}
.pr-back{margin:0 0 22px}
.pr-back a{font-size:14px;font-weight:600;color:var(--body);text-decoration:none}
.pr-back a:hover{color:var(--ink)}
.pr-h1{font-size:clamp(1.9rem,3.4vw,2.9rem);line-height:1.08}
.ab-split .cta-row{margin-top:24px}
.pr-others{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:6px}
.pr-other{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);color:inherit;text-decoration:none;transition:border-color .25s var(--ease)}
.pr-other:hover{border-color:var(--line-strong)}
.pr-other-name{font-weight:640;font-size:1.05rem;color:var(--ink)}
.pr-other-what{font-size:14px;color:var(--mid)}
/* click-to-play film: nothing downloads until the visitor presses play */
.vid-play{position:relative;display:block;width:100%;padding:0;border:0;background:#000;cursor:pointer}
.vid-play img{display:block;width:100%;height:auto}
.vid-play-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:10px;padding:13px 22px 13px 16px;border-radius:999px;background:rgba(255,255,255,.94);color:#0d1618;font-size:15px;font-weight:600;box-shadow:0 10px 30px rgba(0,0,0,.35);transition:transform .25s var(--ease)}
.vid-play-btn svg{width:22px;height:22px;fill:currentColor}
.vid-play:hover .vid-play-btn{transform:translate(-50%,-50%) scale(1.04)}
.vid-play:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.vid-player{display:block;width:100%;height:auto;background:#000}
@media (max-width:1024px){ .pr-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:700px){ .pr-grid,.pr-others{grid-template-columns:1fr} }
.vid-play{height:100%}
.vid-play img{height:100%;object-fit:cover}
.vid-play-btn{left:24px;top:auto;bottom:24px;transform:none}
.vid-play:hover .vid-play-btn{transform:scale(1.04)}
@media (max-width:600px){.vid-play-btn{left:12px;bottom:12px;padding:10px 16px 10px 12px;font-size:13.5px}}
.frame-viewport .vid-play img{max-height:none;width:100%;height:100%;object-fit:cover}
@media (max-width:900px){.ab-split{grid-template-columns:minmax(0,1fr)}}
.pr-h1,.ab-h1{overflow-wrap:break-word}
.ab .cta-row .btn{max-width:100%;white-space:normal;text-align:center}
.pr-cover-navy{background:#012668;display:grid;place-items:center}
.pr-cover-navy img{width:auto;height:100%;object-fit:contain}
.pr-cover-navy{position:relative}
.pr-card-media.pr-cover-navy img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center}
/* single post: one reading column, no news aside */
.bl-solo{max-width:calc(820px + 2 * clamp(20px,4vw,40px))}
.pr-doyle-media{display:grid;place-items:center;background:linear-gradient(135deg,#0b1f4d,#1d3f9e)}
.pr-doyle-media span{font-size:clamp(1.8rem,3vw,2.4rem);font-weight:650;letter-spacing:-.04em;color:#fff}

/* ============================================================
   Hero team view: picked capsule flies to the header, content fills the hero
   ============================================================ */
.hero-ss.team-open .hero-ss-pill,
.hero-ss.team-open .hero-ss-stage,
.hero-ss.team-open .hero-ss-title,
.hero-ss.team-open .hero-ss-support,
.hero-ss.team-open .hero-ss-ctas { display: none; }
.hero-ss.team-open .hero-ss-container { flex: 1; justify-content: center; max-width: 1120px; }
.x-arm.fly-hidden { opacity: 0 !important; }
.hss-flyer { position: fixed; z-index: 1000; margin: 0; pointer-events: none; transform-origin: 0 0; will-change: transform; }

.hero-ss-detail { width: 100%; max-width: 1120px; margin: 0 auto; }
.hero-ss-detail[hidden] { display: none; }
.hss-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 26px; }
.hss-tabs button { font: inherit; font-size: 13px; font-weight: 500; padding: 6px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--hss-muted); border: 1px solid rgba(255, 255, 255, 0.12); transition: all 0.25s var(--hss-ease); }
.hss-tabs button:hover { color: #fff; }
.hss-tabs button.blue.is-on   { color: #60a5fa; border-color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.hss-tabs button.red.is-on    { color: #f43f5e; border-color: #f43f5e; background: rgba(244, 63, 94, 0.1); }
.hss-tabs button.yellow.is-on { color: #fdbf06; border-color: #fdbf06; background: rgba(253, 191, 6, 0.1); }
.hss-tabs button.cyan.is-on   { color: #22d3ee; border-color: #22d3ee; background: rgba(34, 211, 238, 0.1); }

.hss-card { display: none; text-align: left; padding: 0; }
.hss-card.is-active { display: block; }
.hss-card.blue   { --tc: #60a5fa; }
.hss-card.red    { --tc: #f43f5e; }
.hss-card.yellow { --tc: #fdbf06; }
.hss-card.cyan   { --tc: #22d3ee; }
.hss-head { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.hss-badge { height: clamp(64px, 9vw, 92px); width: auto; flex: none; }
.hss-head-text { flex: 1; min-width: 0; }
.hss-card-title { margin: 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; font-weight: 650; letter-spacing: -0.03em; color: var(--tc); }
.hss-card-sub { margin: 4px 0 0; font-size: 16px; font-weight: 500; color: #fff; }
.hss-close { font: inherit; font-size: 13px; cursor: pointer; align-self: flex-start; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); color: var(--hss-muted); border: 1px solid rgba(255, 255, 255, 0.14); transition: all 0.25s var(--hss-ease); }
.hss-close:hover, .hss-close:focus-visible { color: #fff; border-color: var(--tc); outline: none; }
.hss-card-lead { margin: 0 0 26px; max-width: 720px; font-size: 16px; line-height: 1.6; color: var(--hss-muted); }
.hss-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hss-col { padding: 22px 24px; border-radius: 14px; background: rgba(15, 23, 32, 0.72);
  border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent); }
.hss-group { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: #fff; }
.hss-card ul { list-style: none; margin: 0; padding: 0; }
.hss-card li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.95; color: #b4bdcb; }
.hss-card li::before { content: ""; position: absolute; left: 3px; top: 0.95em; width: 5px; height: 5px; border-radius: 50%; background: var(--tc); }
.hss-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.hss-links a { font-size: 14px; font-weight: 500; color: var(--tc); text-decoration: none; }
.hss-links a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .hss-cols { grid-template-columns: 1fr; }
  .hss-head { flex-wrap: wrap; }
  .hss-tabs { flex-wrap: wrap; }
}
:root:not([data-theme="dark"]) .hss-col,
:root[data-theme="light"] .hss-col {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.06);
}
:root:not([data-theme="dark"]) .hss-card-sub,
:root[data-theme="light"] .hss-card-sub,
:root:not([data-theme="dark"]) .hss-group,
:root[data-theme="light"] .hss-group {
  color: #0f172a;
}
:root:not([data-theme="dark"]) .hss-card li,
:root[data-theme="light"] .hss-card li {
  color: #475569;
}
:root:not([data-theme="dark"]) .hss-card-lead,
:root[data-theme="light"] .hss-card-lead {
  color: #334155;
}
:root:not([data-theme="dark"]) .hss-tabs button,
:root[data-theme="light"] .hss-tabs button {
  border-color: rgba(15, 23, 42, 0.16);
  color: #475569;
}
:root:not([data-theme="dark"]) .hss-tabs button:hover,
:root[data-theme="light"] .hss-tabs button:hover {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.32);
}
:root:not([data-theme="dark"]) .hss-close,
:root[data-theme="light"] .hss-close {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
  color: #475569;
}
:root:not([data-theme="dark"]) .hss-close:hover,
:root[data-theme="light"] .hss-close:hover {
  color: #0f172a;
  border-color: var(--tc);
}
:root:not([data-theme="dark"]) .hss-card.cyan,
:root[data-theme="light"] .hss-card.cyan { --tc: #0284c7; }
:root:not([data-theme="dark"]) .hss-card.yellow,
:root[data-theme="light"] .hss-card.yellow { --tc: #fdbf06; }
:root:not([data-theme="dark"]) .hss-card.blue,
:root[data-theme="light"] .hss-card.blue { --tc: #2563eb; }
:root:not([data-theme="dark"]) .hss-card.red,
:root[data-theme="light"] .hss-card.red { --tc: #e11d48; }

:root:not([data-theme="dark"]) .hss-tabs button.cyan.is-on,
:root[data-theme="light"] .hss-tabs button.cyan.is-on { color: #0284c7; border-color: #0284c7; background: rgba(2, 132, 199, 0.08); }
:root:not([data-theme="dark"]) .hss-tabs button.yellow.is-on,
:root[data-theme="light"] .hss-tabs button.yellow.is-on { color: #fdbf06; border-color: #fdbf06; background: rgba(253, 191, 6, 0.08); }
:root:not([data-theme="dark"]) .hss-tabs button.blue.is-on,
:root[data-theme="light"] .hss-tabs button.blue.is-on { color: #2563eb; border-color: #2563eb; background: rgba(37, 99, 235, 0.08); }
:root:not([data-theme="dark"]) .hss-tabs button.red.is-on,
:root[data-theme="light"] .hss-tabs button.red.is-on { color: #e11d48; border-color: #e11d48; background: rgba(225, 29, 72, 0.08); }


/* Horizontal founder cards: avatar on the left, text on the right */
.people.founders-people {
  grid-template-columns: 1fr;
  max-width: 1040px;
}
.founders-people .person {
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(22px, 3.2vw, 36px);
}
.founders-people .person-avatar {
  flex: 0 0 210px;
  width: 210px;
  max-width: 210px;
  aspect-ratio: 720 / 888;
  height: auto;
  min-height: 0;
  margin-bottom: 0;
  align-self: flex-start;
}
.founders-people .person-photo {
  flex: 0 0 210px;
  width: 210px;
  max-width: 210px;
  aspect-ratio: 720 / 888;
  height: auto;
  min-height: 0;
  margin-bottom: 0;
  align-self: flex-start;
  overflow: hidden;
}
.founders-people .person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.founders-people .person-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* CEO message card */
.person.ceo-note {
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(24px, 3.5vw, 38px);
}
.person.ceo-note:hover {
  transform: none;
}
.ceo-note .person-photo {
  flex: 0 0 clamp(320px, 36vw, 390px);
  width: clamp(320px, 36vw, 390px);
  max-width: 390px;
  aspect-ratio: 720 / 888;
  height: auto;
  min-height: 0;
  margin-bottom: 0;
  align-self: flex-start;
  position: static;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.ceo-note .person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: none;
}
.person.ceo-note:hover .person-photo img {
  transform: none;
}
.ceo-note .ceo-body {
  flex: 1;
  min-width: 0;
}
.ceo-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 14px;
}
.ceo-list {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
}
.ceo-list li {
  margin-bottom: 6px;
}
.ceo-list strong {
  color: var(--ink);
  font-weight: 600;
}
.ceo-sub {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 630;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ceo-note .p-name {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 650;
}
.ceo-note .p-role {
  margin-bottom: 0;
  font-size: 13.5px;
  color: var(--accent-dark);
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .founders-people .person,
  .person.ceo-note {
    flex-direction: column;
    align-items: stretch;
  }
  .founders-people .person-avatar,
  .founders-people .person-photo {
    flex: 0 0 auto;
    position: static;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 18px;
    aspect-ratio: 720 / 888;
    height: auto;
    min-height: 0;
  }
  .ceo-note .person-photo {
    flex: 0 0 auto;
    position: static;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 20px;
    aspect-ratio: 720 / 888;
    height: auto;
    min-height: 0;
  }
}


.people.founders-people.ceo-people { max-width: none; }
.ceo-people .person-photo { flex-basis: 280px; }
.ceo-people .ceo-body { max-width: none; }
@media (max-width: 620px) { .ceo-people .person-photo { flex-basis: auto; } }

.ceo-side { flex: 0 0 280px; display: flex; flex-direction: column; }
.ceo-side .person-photo { flex: none; height: auto; min-height: 0; aspect-ratio: 3 / 4; margin-bottom: 16px; }
.ceo-side .p-role { margin-bottom: 0; }
@media (max-width: 620px) { .ceo-side { flex-basis: auto; } }

/* Mobile: photo on top, name and title after the message (as before) */
@media (max-width: 620px) {
  .ceo-side { display: contents; }
  .ceo-note .person-photo { order: 0; width: 100%; height: 300px; aspect-ratio: auto; margin-bottom: 0; }
  .ceo-note .ceo-body { order: 1; }
  .ceo-side .p-name { order: 2; margin-top: -8px; }
  .ceo-side .p-role { order: 3; margin-top: 6px; }
}

/* Name and title sit in the bottom-right corner of the CEO card */
.ceo-sign { margin-top: 22px; text-align: right; }
.ceo-sign .p-name { margin-top: 0; }
.ceo-sign .p-role { margin: 4px 0 0; }
@media (max-width: 620px) { .ceo-sign { text-align: left; } }

/* Founders cards (vertical): matching media height, face-centred crop */
.team-people .person-avatar,
.team-people .person-photo { height: 260px; }
.team-people .person-photo.vyshak-portrait img { object-position: center center; }

/* About: Why XCODITS icon row */
.wx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 34px; text-align: center; }
.wx-item { display: flex; flex-direction: column; align-items: center; }
.wx-ico { width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #1aa3a8 0%, #0f4a6e 100%); box-shadow: 0 10px 28px rgba(26, 163, 168, 0.28); margin-bottom: 20px; }
.wx-ico svg { width: 34px; height: 34px; }
.wx-item h3 { margin: 0 0 8px; font-size: 18px; font-weight: 630; letter-spacing: -0.015em; color: var(--ink); }
.wx-item p { margin: 0; max-width: 24ch; font-size: 14.5px; line-height: 1.6; color: var(--body); }
@media (max-width: 860px) { .wx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 480px) { .wx-grid { grid-template-columns: 1fr; } }

/* Services: Who we protect */
.wp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: 30px; text-align: center; }
.wp-item { display: flex; flex-direction: column; align-items: center; }
.wp-ico { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; color: #12807f; margin-bottom: 16px;
  background: #dcf1f2; box-shadow: 0 0 0 9px rgba(26, 163, 168, 0.1); }
.wp-ico svg { width: 38px; height: 38px; }
.wp-item h3 { margin: 6px 0 0; max-width: 14ch; font-size: 16px; font-weight: 630; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
@media (max-width: 960px) { .wp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; } }
@media (max-width: 520px) { .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wp-ico { width: 78px; height: 78px; } }

/* Match the site's accent in both themes */
.wx-ico {
  background: linear-gradient(145deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, #0b1230) 100%);
  box-shadow: 0 10px 28px var(--accent-glow);
}
.wp-ico {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 7%, transparent);
}

/* About: four cards sit 2 x 2 */
.ab-three.ab-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .ab-three.ab-four { grid-template-columns: 1fr; } }

/* Services: one-team hub diagram */
.sv-wrap { --sv-gap: clamp(28px, 5vw, 64px); --sv-inset: 48px; display: grid; grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
  column-gap: var(--sv-gap); align-items: center; margin-top: 40px; }
.sv-col { display: flex; flex-direction: column; gap: 22px; }
.sv-left .sv-card:nth-child(odd) { margin-right: var(--sv-inset); }
.sv-right .sv-card:nth-child(odd) { margin-left: var(--sv-inset); }
.sv-card { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sv-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.sv-ico svg { width: 24px; height: 24px; }
.sv-prod .sv-ico { background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #0b1230)); }
.sv-prac .sv-ico { background: linear-gradient(145deg, #f2a516, #b86a08); }
.sv-text h3 { margin: 0 0 4px; font-size: 17px; font-weight: 630; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); }
.sv-text p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--body); }
.sv-tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-decoration: none; }
.sv-prod .sv-tag { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--accent-line); }
.sv-prod a.sv-tag:hover { background: var(--accent); color: #fff; }
.sv-prac .sv-tag { background: rgba(242, 165, 22, 0.16); color: #a35f05; border: 1px solid rgba(242, 165, 22, 0.4); }
[data-theme="dark"] .sv-prac .sv-tag { color: #f6c25b; }
/* dashed connectors with an end dot */
.sv-card::after { content: ""; position: absolute; top: 50%; width: calc(var(--sv-gap) - 6px); border-top: 2px dashed var(--accent-line); }
.sv-card::before { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--accent); z-index: 1; }
.sv-prac::after { border-top-color: rgba(242, 165, 22, 0.55); }
.sv-prac::before { background: #f2a516; }
.sv-left .sv-card::after { left: 100%; }
.sv-left .sv-card::before { left: calc(100% + var(--sv-gap) - 10px); }
.sv-right .sv-card::after { right: 100%; }
.sv-right .sv-card::before { right: calc(100% + var(--sv-gap) - 10px); }
.sv-left .sv-card:nth-child(odd)::after, .sv-right .sv-card:nth-child(odd)::after { width: calc(var(--sv-gap) + var(--sv-inset) - 6px); }
.sv-left .sv-card:nth-child(odd)::before { left: calc(100% + var(--sv-gap) + var(--sv-inset) - 10px); }
.sv-right .sv-card:nth-child(odd)::before { right: calc(100% + var(--sv-gap) + var(--sv-inset) - 10px); }
/* hub */
.sv-hub { position: relative; width: 280px; height: 280px; display: grid; place-items: center; }
.sv-rings i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid var(--accent-line); transform: translate(-50%, -50%); opacity: 0.7; }
.sv-rings i:nth-child(1) { width: 330px; height: 330px; }
.sv-rings i:nth-child(2) { width: 400px; height: 400px; opacity: 0.45; }
.sv-rings i:nth-child(3) { width: 470px; height: 470px; opacity: 0.25; }
.sv-core { position: relative; width: 230px; height: 230px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(circle at 50% 40%, var(--accent-soft), var(--white) 72%); border: 2px solid var(--accent-line); box-shadow: 0 0 0 10px var(--accent-soft), 0 20px 50px var(--accent-glow); }
.sv-x { display: block; width: 112px; height: auto; }
.sv-core-label { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-dark); }
@media (max-width: 1060px) {
  .sv-wrap { grid-template-columns: 1fr; row-gap: 28px; }
  .sv-hub { order: -1; margin: 0 auto 6px; width: 230px; height: 230px; }
  .sv-rings { display: none; }
  .sv-core { width: 200px; height: 200px; }
  .sv-col { gap: 14px; }
  .sv-left .sv-card:nth-child(odd), .sv-right .sv-card:nth-child(odd) { margin: 0; }
  .sv-card::before, .sv-card::after { display: none; }
}

/* Services: true orbital rotation of cards surrounding X + final "ONE TEAM" X entrance */
.panel.reveal .sv-card {
  opacity: 0;
  will-change: transform, opacity;
}

.panel.reveal .sv-card::before,
.panel.reveal .sv-card::after {
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.sv-wrap.sv-links-in .sv-card::before,
.sv-wrap.sv-links-in .sv-card::after {
  opacity: 1;
}

.panel.reveal .sv-rings i {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.65);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.sv-rings i:nth-child(2) { border-style: dashed; }

.panel.reveal.in .sv-rings i:nth-child(1) {
  opacity: 0.7;
  animation: sv-ring-cw 28s linear infinite;
}
.panel.reveal.in .sv-rings i:nth-child(2) {
  opacity: 0.45;
  animation: sv-ring-ccw 36s linear infinite;
}
.panel.reveal.in .sv-rings i:nth-child(3) {
  opacity: 0.25;
  animation: sv-ring-cw 48s linear infinite;
}

/* Lastly: ONE TEAM X hub rotates and scales in after the cards finish orbiting */
.panel.reveal .sv-core {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}
.panel.reveal .sv-x {
  opacity: 0;
  transform: scale(0.6) rotate(-135deg);
}
.panel.reveal .sv-core-label {
  opacity: 0;
  transform: translateY(8px);
}

.sv-wrap.sv-core-in .sv-core {
  animation: sv-core-enter 1.05s var(--ease) forwards;
}
.sv-wrap.sv-core-in .sv-x {
  animation: sv-x-enter 1.1s var(--ease) 0.12s forwards;
}
.sv-wrap.sv-core-in .sv-core-label {
  animation: sv-label-enter 0.65s var(--ease) 0.45s forwards;
}

@keyframes sv-ring-cw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes sv-ring-ccw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes sv-core-enter {
  0%   { opacity: 0; transform: scale(0.5) rotate(-90deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes sv-x-enter {
  0%   { opacity: 0; transform: scale(0.6) rotate(-135deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes sv-label-enter {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .panel.reveal .sv-card,
  .panel.reveal .sv-card::before,
  .panel.reveal .sv-card::after,
  .panel.reveal .sv-rings i,
  .panel.reveal .sv-core,
  .panel.reveal .sv-x,
  .panel.reveal .sv-core-label {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .panel.reveal .sv-rings i { transform: translate(-50%, -50%) !important; }
}

/* Doyle cover */
.pr-card-media.pr-cover-doyle { background: #0a1233; }
.pr-card-media.pr-cover-doyle img { object-fit: cover; object-position: center; }
.pr-cover { margin: clamp(28px, 4vw, 44px) 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #0a1233; }
.pr-cover img { display: block; width: 100%; height: auto; }

/* Services: 2-column client websites grid & miniature browser previews */
.pr-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .pr-grid--2 { grid-template-columns: 1fr; } }

.sv-site-shot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 16px 20px 18px;
  color: #f3f5f8;
  overflow: hidden;
  transition: transform 0.45s var(--ease);
}

a.pr-card:hover .sv-site-shot {
  transform: scale(1.02);
}

.sv-site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sv-site-dots {
  display: inline-flex;
  gap: 5px;
}

.sv-site-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.sv-site-url {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sv-site-stage {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}

.sv-site-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.sv-site-mark {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #ffffff;
}

.sv-site-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.4;
}

.sv-site-ekvarna {
  background:
    radial-gradient(240px 160px at 88% 18%, rgba(217, 155, 38, 0.28), transparent 70%),
    linear-gradient(135deg, #101d15 0%, #192b1e 55%, #0b140e 100%);
}
.sv-site-ekvarna .sv-site-badge { color: #f6ca6b; border-color: rgba(246, 202, 107, 0.35); background: rgba(217, 155, 38, 0.14); }

.sv-site-sivus {
  background:
    radial-gradient(240px 160px at 88% 18%, rgba(46, 203, 233, 0.28), transparent 70%),
    linear-gradient(135deg, #09172b 0%, #0f2744 55%, #07101f 100%);
}
.sv-site-sivus .sv-site-badge { color: #7ce8fa; border-color: rgba(46, 203, 233, 0.35); background: rgba(46, 203, 233, 0.14); }

.sv-site-cms {
  background:
    radial-gradient(240px 160px at 88% 18%, rgba(100, 124, 242, 0.32), transparent 70%),
    linear-gradient(135deg, #10152b 0%, #192247 55%, #0b0e1e 100%);
}
.sv-site-cms .sv-site-badge { color: #a8b7ff; border-color: rgba(100, 124, 242, 0.38); background: rgba(100, 124, 242, 0.16); }

.sv-site-hmw {
  background:
    radial-gradient(240px 160px at 88% 18%, rgba(232, 184, 109, 0.28), transparent 70%),
    linear-gradient(135deg, #1d1122 0%, #2e1a36 55%, #120b16 100%);
}
.sv-site-hmw .sv-site-badge { color: #f4d08f; border-color: rgba(232, 184, 109, 0.36); background: rgba(232, 184, 109, 0.14); }


/* ============================================================
   Research Page — Interactive 4-Pillar & Switchable Workbench (.rx-*)
   ============================================================ */

/* --- 4 Interactive Pillars (Think · Fly · Drive · Sail) --- */
.rx-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
  margin-top: 40px;
}

.rx-pillar {
  --rx-c: var(--accent);
  --rx-soft: var(--accent-soft);
  --rx-line: var(--accent-line);
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm), var(--inner-shine);
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.25s var(--ease), box-shadow 0.3s var(--ease), background-color 0.25s var(--ease);
}

.rx-pillar[data-rx-color="cyan"] {
  --rx-c: #0ea5e9;
  --rx-soft: rgba(14, 165, 233, 0.12);
  --rx-line: rgba(14, 165, 233, 0.42);
}

.rx-pillar[data-rx-color="yellow"] {
  --rx-c: #d97706;
  --rx-soft: rgba(245, 158, 11, 0.14);
  --rx-line: rgba(245, 158, 11, 0.45);
}

.rx-pillar[data-rx-color="blue"] {
  --rx-c: #4f46e5;
  --rx-soft: rgba(79, 70, 229, 0.12);
  --rx-line: rgba(79, 70, 229, 0.42);
}

.rx-pillar[data-rx-color="red"] {
  --rx-c: #e11d48;
  --rx-soft: rgba(225, 29, 72, 0.12);
  --rx-line: rgba(225, 29, 72, 0.42);
}

[data-theme="dark"] .rx-pillar[data-rx-color="cyan"] { --rx-c: #38bdf8; }
[data-theme="dark"] .rx-pillar[data-rx-color="yellow"] { --rx-c: #fbbf24; }
[data-theme="dark"] .rx-pillar[data-rx-color="blue"] { --rx-c: #818cf8; }
[data-theme="dark"] .rx-pillar[data-rx-color="red"] { --rx-c: #fb7185; }

.rx-pillar:hover {
  transform: translateY(-4px);
  border-color: var(--rx-line);
  box-shadow: var(--shadow);
}

.rx-pillar.is-active {
  border-color: var(--rx-c);
  box-shadow: 0 0 0 1px var(--rx-c), var(--shadow);
  background: linear-gradient(180deg, var(--rx-soft) 0%, var(--white) 62%);
}

.rx-pillar-ico {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--rx-soft);
  color: var(--rx-c);
  border: 1px solid var(--rx-line);
  margin-bottom: 18px;
  transition: transform 0.3s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.rx-pillar.is-active .rx-pillar-ico,
.rx-pillar:hover .rx-pillar-ico {
  background: var(--rx-c);
  color: #ffffff;
  border-color: var(--rx-c);
}

.rx-pillar-ico svg {
  width: 27px;
  height: 27px;
}

.rx-pillar-verb {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rx-c);
  margin-bottom: 4px;
}

.rx-pillar-name {
  font-size: 19px;
  font-weight: 640;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.rx-pillar-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
}

/* --- Interactive Workbench Stage --- */
.rx-workbench-sec {
  padding-top: 12px;
}

.rx-stage-shell {
  padding: 8px;
  border-radius: var(--radius-xl);
  background: var(--shell);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.rx-console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 14px;
  flex-wrap: wrap;
}

.rx-console-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rx-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--body);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 560;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.rx-tab:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.rx-tab.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-weight: 620;
}

.rx-tab-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  opacity: 0.75;
}

.rx-view-toggle {
  appearance: none;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--body);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.rx-view-toggle:hover,
.rx-view-toggle[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: var(--accent-line);
}

/* --- Individual Domain Panel --- */
.rx-panel {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm), var(--inner-shine);
  overflow: hidden;
  animation: rx-fade-in 0.35s var(--ease);
}

.rx-stage-shell.is-all-open .rx-panel + .rx-panel {
  margin-top: 16px;
}

@keyframes rx-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rx-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  min-height: 440px;
}

/* Left atmospheric showcase column */
.rx-showcase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3.5vw, 36px);
  color: #f3f5f8;
  position: relative;
  overflow: hidden;
}

.rx-showcase--cyan {
  background:
    radial-gradient(320px 220px at 85% 15%, rgba(46, 203, 233, 0.28), transparent 72%),
    linear-gradient(145deg, #071929 0%, #0d2a42 55%, #06121e 100%);
}

.rx-showcase--yellow {
  background:
    radial-gradient(320px 220px at 85% 15%, rgba(253, 191, 6, 0.26), transparent 72%),
    linear-gradient(145deg, #1b1507 0%, #2b200a 55%, #120e05 100%);
}

.rx-showcase--blue {
  background:
    radial-gradient(320px 220px at 85% 15%, rgba(100, 124, 242, 0.32), transparent 72%),
    linear-gradient(145deg, #0d132b 0%, #17214a 55%, #090d1f 100%);
}

.rx-showcase--red {
  background:
    radial-gradient(320px 220px at 85% 15%, rgba(244, 63, 94, 0.28), transparent 72%),
    linear-gradient(145deg, #210b14 0%, #361222 55%, #14070d 100%);
}

.rx-showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.rx-showcase-dots {
  display: inline-flex;
  gap: 5px;
}

.rx-showcase-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.rx-showcase-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.rx-diagram {
  margin: 22px 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.rx-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.rx-showcase-copy h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 640;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
}

.rx-showcase-copy p {
  font-size: 15px;
  line-height: 1.62;
  color: rgba(243, 245, 248, 0.80);
}

.rx-showcase-cta {
  margin-top: 20px;
}

/* Right 4-Vector List */
.rx-vectors {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--line);
  gap: 1px;
}

.rx-vector {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 28px;
  background: var(--white);
  transition: background-color 0.25s var(--ease);
}

.rx-vector:hover {
  background: var(--paper);
}

.rx-vector-ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  margin-top: 2px;
}

.rx-vector-ico svg {
  width: 20px;
  height: 20px;
}

.rx-vector h3 {
  font-size: 17.5px;
  font-weight: 630;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 4px;
}

.rx-vector p {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--body);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1020px) {
  .rx-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rx-panel-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .rx-pillars {
    grid-template-columns: 1fr;
  }

  .rx-console-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .rx-console-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rx-tab {
    justify-content: center;
  }

  .rx-vector {
    padding: 18px 20px;
  }
}
