/* ==========================================================================
   PANGEA — Applied AI Lab for Geotechnical Engineering
   Design System: Crisp archival canvas + architectural 1px rails +
   mineral-prism spectrum + pure-CSS motion choreography.
   ========================================================================== */

:root {
  /* Crisp Archival Canvas & Architectural Neutrals */
  --bg: #ffffff;
  --bg-subtle: #f8f9fb;
  --surface: #ffffff;
  --surface-stage: #f2f4f8;
  --surface-tint: #eef1f6;

  --border-subtle: #e6e9f0;
  --border-rail: #d5d9e2;
  --border-strong: #bcc3d1;

  --ink: #090a0f;
  --ink-2: #3d4352;
  --ink-3: #687082;
  --ink-4: #9aa2b3;

  /* Pangea Mineral-Prism Spectrum (Applied AI Lab, distinct from construction-tech clichés) */
  --cobalt: #2563eb;
  --cobalt-deep: #1d4ed8;
  --cobalt-soft: #eff6ff;
  --cobalt-line: #bfdbfe;

  --violet: #7c3aed;
  --violet-deep: #6d28d9;
  --violet-soft: #f5f3ff;
  --violet-line: #ddd6fe;

  --cyan: #06b6d4;
  --cyan-deep: #0891b2;
  --cyan-soft: #ecfeff;
  --cyan-line: #a5f3fc;

  --emerald: #10b981;
  --emerald-deep: #059669;
  --emerald-soft: #ecfdf5;
  --emerald-line: #a7f3d0;

  /* Uncertainty / Engineer-Decides accent (used sparingly and semantically) */
  --amber: #d97706;
  --amber-deep: #b45309;
  --amber-soft: #fffbeb;
  --amber-line: #fde68a;

  /* Signature 4-Stop Mineral Prism Ramp */
  --prism: linear-gradient(90deg, #2563eb 0%, #7c3aed 36%, #06b6d4 70%, #10b981 100%);
  --prism-v: linear-gradient(180deg, #2563eb 0%, #7c3aed 36%, #06b6d4 70%, #10b981 100%);

  /* Pastel Section Washes (Luminous & Cool) */
  --wash-hero: #93c5fd;
  --wash-lab: #c4b5fd;
  --wash-pipe: #67e8f9;
  --wash-products: #a5b4fc;
  --wash-gov: #a7f3d0;
  --wash-cta: #93c5fd;

  /* Typography */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hand: "Reenie Beanie", cursive;

  /* Fluid Type Scale */
  --fs-h1: clamp(40px, 4.4vw, 64px);
  --fs-h2: clamp(30px, 3vw, 44px);
  --fs-h3: clamp(21px, 1.8vw, 26px);
  --fs-lead: clamp(17px, 1.3vw, 19.5px);
  --fs-body: 15.5px;
  --fs-small: 13.5px;
  --fs-ui: 12.5px;
  --fs-label: 11px;

  /* Layout Frame & Drafting Grid */
  --frame: min(1360px, calc(100vw - 48px));
  --gutter: clamp(20px, 3vw, 44px);
  --section: clamp(80px, 8.5vw, 136px);
  --grid-w: 56px;
  --grid-h: 28px;

  /* Motion Tokens (Architectural Deceleration + Soft Editorial Settle) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.35, 0, 0.15, 1);
  --ease-flow: cubic-bezier(0.65, 0, 0.35, 1);

  /* Procedural Paper Grain + Drafting Grid Data URIs */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  --grid-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28'%3E%3Cpath d='M56 0H0V28' fill='none' stroke='%23090a0f' stroke-opacity='0.055' stroke-width='1'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Reset & Architectural Page Rails
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
}

/* Fixed architectural vertical frame rails (left & right bounds) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--frame);
  transform: translateX(-50%);
  border-left: 1px solid var(--border-rail);
  border-right: 1px solid var(--border-rail);
  pointer-events: none;
  z-index: 40;
}

@media (max-width: 720px) {
  :root { --frame: 100vw; }
  body::before { display: none; }
}

.frame {
  width: var(--frame);
  margin-inline: auto;
  position: relative;
}

.pad {
  padding-inline: var(--gutter);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ==========================================================================
   Typography & Square-Dot Mono Eyebrows
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ink);
  flex-shrink: 0;
}

.eyebrow--prism::before {
  background: var(--cobalt);
}

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  font-optical-sizing: auto;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.03;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.18;
  letter-spacing: -0.012em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.48;
  color: var(--ink-2);
  margin: 0;
  text-wrap: balance;
}

.body {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

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

/* Per-character editorial reveal (.hdrv) */
.hdrv .hdrv__w {
  display: inline-block;
  white-space: nowrap;
}

.hdrv .hdrv__c {
  display: inline-block;
  opacity: 0;
  filter: blur(2.5px);
  color: var(--c, var(--cobalt-deep));
  transform: translateY(4px);
  will-change: opacity, filter, transform, color;
}

.hdrv.is-in .hdrv__c {
  animation: hd-reveal 0.52s var(--ease-soft) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes hd-reveal {
  0% {
    opacity: 0;
    filter: blur(2.5px);
    color: var(--c, var(--cobalt-deep));
    transform: translateY(4px);
  }
  50% {
    opacity: 1;
    filter: blur(0px);
    color: var(--c, var(--cobalt-deep));
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    color: var(--ink);
    transform: translateY(0);
  }
}

/* ==========================================================================
   Buttons & Underlined Action Links (Signature Sheen & Gradient Sweeps)
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 22px;
  font-family: var(--mono);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  border-radius: 0;
  overflow: hidden;
  transition: opacity 0.32s var(--ease-soft), background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 15%, rgba(37, 99, 235, 0.45) 35%, rgba(124, 58, 237, 0.45) 50%, rgba(6, 182, 212, 0.45) 65%, rgba(16, 185, 129, 0.38) 80%, transparent 92%);
  transform: translateX(-115%);
  pointer-events: none;
}

.btn--primary:hover {
  opacity: 0.88;
}

.btn--primary:hover::before {
  animation: btn-sweep 0.58s var(--ease-flow) forwards;
}

.btn--ghost {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-rail);
}

.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(37, 99, 235, 0.12) 45%, rgba(6, 182, 212, 0.14) 65%, transparent 88%);
  transform: translateX(-115%);
  pointer-events: none;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--bg-subtle);
}

.btn--ghost:hover::before {
  animation: btn-sweep 0.58s var(--ease-flow) forwards;
}

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

.btn__arrow {
  display: inline-block;
  transition: transform 0.28s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

@keyframes btn-sweep {
  from { transform: translateX(-115%); }
  to   { transform: translateX(115%); }
}

/* Underlined uppercase action link */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  padding-bottom: 5px;
  color: var(--ink);
  transition: opacity 0.28s var(--ease-soft);
}

.link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background-image: linear-gradient(90deg, #2563eb 0%, #7c3aed 22%, #06b6d4 44%, #10b981 66%, #090a0f 66.1%, #090a0f 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  transition: background-position 0.52s var(--ease);
}

.link:hover {
  opacity: 0.82;
}

.link:hover::before {
  background-position: 0 0;
}

.link:hover .btn__arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Announcement Bar & Sticky Architectural Navigation
   ========================================================================== */
.ann {
  background: var(--ink);
  color: #ffffff;
  border-bottom: 1px solid #1d2029;
  position: relative;
  z-index: 60;
}

.ann__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px var(--gutter);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  text-align: center;
}

.ann__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #93c5fd;
}

.ann__dot {
  width: 5px;
  height: 5px;
  background: var(--cyan);
  animation: pulse-dot 2.2s var(--ease-flow) infinite;
}

.ann__link {
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(103, 232, 249, 0.45);
  transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}

.ann__link:hover {
  color: #ffffff;
  text-decoration-color: transparent;
}

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

.ann__text-mobile {
  display: none;
}

@media (max-width: 640px) {
  .ann__inner {
    font-size: 11px;
    gap: 8px;
    padding: 7px 14px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .ann__text-desktop { display: none; }
  .ann__text-mobile { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ann__badge { white-space: nowrap; flex-shrink: 0; }
  .ann__link { white-space: nowrap; flex-shrink: 0; }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-rail);
  transition: transform 0.85s var(--ease);
}

body.is-booting .nav {
  transform: translateY(-100%);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.nav__mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--border-rail);
  color: var(--ink-3);
  background: var(--bg-subtle);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.nav__item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 450;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav__link:hover,
.nav__item:hover .nav__link {
  color: var(--ink);
}

.nav__chev {
  width: 11px;
  height: 11px;
  transition: transform 0.22s var(--ease);
  opacity: 0.65;
}

.nav__item:hover .nav__chev,
.nav__item[data-open="true"] .nav__chev {
  transform: rotate(180deg);
  opacity: 1;
}

/* Mega-dropdown with clip-path curtain reveal + dual hover bar/fill */
.dd {
  position: absolute;
  top: 100%;
  left: 0;
  width: 318px;
  background: #ffffff;
  border: 1px solid var(--border-rail);
  box-shadow: 0 24px 52px rgba(9, 10, 15, 0.12), 0 4px 12px rgba(9, 10, 15, 0.05);
  clip-path: inset(0 -24px 100% -24px);
  opacity: 0;
  pointer-events: none;
  transition: clip-path 0.3s var(--ease), opacity 0.18s var(--ease);
  z-index: 70;
}

.nav__item:hover .dd,
.nav__item:focus-within .dd {
  clip-path: inset(0 -24px -60px -24px);
  opacity: 1;
  pointer-events: auto;
}

.dd__item {
  position: relative;
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.dd__item:last-child {
  border-bottom: 0;
}

.dd__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface-stage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: 0;
}

.dd__item::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2.5px;
  background: var(--prism-v);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
  z-index: 1;
}

.dd__item:hover::before {
  transform: scaleX(1);
}

.dd__item:hover::after {
  transform: scaleY(1);
}

.dd__title, .dd__desc {
  position: relative;
  z-index: 2;
  display: block;
}

.dd__title {
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dd__pill {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 1px 5px;
  border: 1px solid var(--border-rail);
  color: var(--ink-3);
  background: var(--bg);
}

.dd__desc {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-3);
}

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

.nav__burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-rail);
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__tag { display: none; }
  .nav__burger { display: inline-flex; }
}

/* Mobile drawer — full-viewport overlay above sticky header & announcement bar */
.drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 90;
  padding: 20px 24px 32px;
  overflow-y: auto;
}

.drawer.is-open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-rail);
}

.drawer a {
  padding: 13px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 16px;
  color: var(--ink);
}

/* ==========================================================================
   Hero Section & Boot Choreography
   ========================================================================== */
.hero {
  padding-top: clamp(32px, 3.6vw, 52px);
  border-bottom: 1px solid var(--border-rail);
  position: relative;
}

.hero__head {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: clamp(26px, 3vw, 40px);
}

.hero__eyebrow,
.hero__title,
.hero__lead,
.hero__cta,
.hero__stage {
  transition: opacity 0.65s var(--ease-soft), transform 1.05s var(--ease);
}

body.is-booting .hero__eyebrow { opacity: 0; transform: translateY(22px); }
body.is-booting .hero__title   { opacity: 0; transform: translateY(38px); }
body.is-booting .hero__lead    { opacity: 0; transform: translateY(56px); }
body.is-booting .hero__cta     { opacity: 0; transform: translateY(72px); }
body.is-booting .hero__stage   { opacity: 0; transform: translateY(96px); }

body.is-booted .hero__eyebrow  { transition-delay: 40ms; }
body.is-booted .hero__title    { transition-delay: 110ms; }
body.is-booted .hero__lead     { transition-delay: 190ms; }
body.is-booted .hero__cta      { transition-delay: 260ms; }
body.is-booted .hero__stage    { transition-delay: 340ms; }

.hero__title {
  margin-top: 14px;
  margin-bottom: 14px;
}

.hero__title em {
  font-style: italic;
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 2px;
}

.hero__lead {
  max-width: 650px;
  margin: 0 auto 22px;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Atmospheric Field Stage (Canvas + Paper Grain + Drafting Grid + Spotlight)
   ========================================================================== */
.field {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-rail);
  background: color-mix(in srgb, var(--sec-c, var(--wash-hero)) 26%, var(--bg-subtle));
}

.field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grid-tex);
  background-size: var(--grid-w) var(--grid-h);
  pointer-events: none;
  z-index: 1;
}

.field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

.field__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

/* Cursor-tracked luminous spotlight */
.field__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s var(--ease-soft);
  background: radial-gradient(
    420px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.55),
    rgba(37, 99, 235, 0.08) 45%,
    transparent 72%
  );
}

.field:hover .field__glow {
  opacity: 1;
}

.field__content {
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   Interactive Scan-to-AGS Workbench (Hero Centerpiece — Live DOM, Zero Video)
   ========================================================================== */
.wb-wrap {
  padding: clamp(16px, 2.1vw, 28px) var(--gutter) clamp(24px, 3vw, 40px);
}

.wb {
  background: var(--bg);
  border: 1px solid var(--border-rail);
  box-shadow: 0 26px 70px rgba(9, 10, 15, 0.08), 0 4px 16px rgba(9, 10, 15, 0.04);
}

/* Top document tabs with animated progress underline */
.wb__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border-rail);
  background: var(--bg-subtle);
}

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

.wb__tab {
  position: relative;
  text-align: left;
  padding: 13px 16px;
  border-right: 1px solid var(--border-subtle);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  overflow: hidden;
}

.wb__tab:last-child {
  border-right: 0;
}

.wb__tab:hover {
  background: var(--bg);
}

.wb__tab[aria-selected="true"] {
  background: var(--bg);
}

.wb__tab-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}

.wb__tab[aria-selected="true"] .wb__tab-kicker {
  color: var(--cobalt);
}

.wb__tab-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb__tab[aria-selected="true"] .wb__tab-label {
  color: var(--ink);
}

.wb__tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--prism);
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

/* Workbench Chrome Bar */
.wb__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
}

.wb__chrome-left,
.wb__chrome-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wb__badge {
  background: var(--ink);
  color: #ffffff;
  padding: 3px 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 500;
}

.wb__file {
  color: var(--ink-2);
}

.wb__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald-deep);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-line);
  padding: 2px 8px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease);
}

.wb__status.is-scanning {
  color: var(--cobalt-deep);
  background: var(--cobalt-soft);
  border-color: var(--cobalt-line);
}

.wb__rescan {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--border-rail);
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.wb__rescan:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-subtle);
}

/* Output View Switcher (AGS 4.1.1 / Records / Drawn Log) */
.wb__views {
  display: inline-flex;
  border: 1px solid var(--border-rail);
  background: var(--bg-subtle);
}

.wb__view-btn {
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-right: 1px solid var(--border-subtle);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.wb__view-btn:last-child { border-right: 0; }

.wb__view-btn:hover { color: var(--ink); }

.wb__view-btn[aria-selected="true"] {
  background: var(--ink);
  color: #ffffff;
}

/* Split Pane: Synthetic Archival Document (Left) + Traceable Output (Right) */
.wb__body {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  min-height: 496px;
}

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

.wb__doc-pane {
  position: relative;
  background: var(--surface-stage);
  border-right: 1px solid var(--border-rail);
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 960px) {
  .wb__doc-pane {
    border-right: 0;
    border-bottom: 1px solid var(--border-rail);
  }
}

/* Houdini registered property for split-corner perimeter border draw */
@property --bd {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

/* Synthetic Archival Sheet Container */
.sheet {
  position: relative;
  background: #fdfcf9;
  border: 1px solid #d7d3c8;
  box-shadow: 0 8px 24px rgba(15, 18, 28, 0.06);
  padding: 18px 18px 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: #1f2228;
  overflow: hidden;
  transition: transform 0.6s var(--ease-soft);
  --s: -5;
  --f: calc(var(--s) * 100%);
}

/* Subtle paper grain over sheet */
.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
}

/* Layer 1: Diagonal mineral-prism perimeter beam around the archival sheet */
.sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  pointer-events: none;
  z-index: 14;
  background: linear-gradient(
    to bottom right,
    transparent calc(var(--f) - 42%),
    #2563eb calc(var(--f) - 22%),
    #7c3aed calc(var(--f) - 7%),
    #06b6d4 calc(var(--f) + 8%),
    #10b981 calc(var(--f) + 22%),
    transparent calc(var(--f) + 42%)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.sheet__head {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid #2c2f36;
}

.sheet__stamp {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6860;
  border: 1px solid #c9c3b6;
  padding: 2px 6px;
}

.sheet__title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: #14161a;
  letter-spacing: 0.01em;
}

.sheet__meta {
  font-size: 10px;
  color: #555963;
  margin-top: 2px;
}

/* Layer 2: Diagonal drafting-grid scanner mesh driven by parent --s */
.isweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 12;
  transition: opacity 0.45s var(--ease-soft);
  --gl: rgba(37, 99, 235, 0.16);
  background:
    linear-gradient(var(--gl) 1px, transparent 1px) 0 -1px / 28px 18px,
    linear-gradient(90deg, var(--gl) 1px, transparent 1px) -1px 0 / 28px 18px,
    linear-gradient(
      to bottom right,
      transparent calc(var(--f) - 24%),
      rgba(37, 99, 235, 0.09) calc(var(--f) - 6%),
      rgba(6, 182, 212, 0.12) calc(var(--f) + 6%),
      transparent calc(var(--f) + 24%)
    );
  -webkit-mask: linear-gradient(
    to bottom right,
    transparent calc(var(--f) - 38%),
    #000 calc(var(--f) - 9%),
    #000 calc(var(--f) + 9%),
    transparent calc(var(--f) + 38%)
  );
  mask: linear-gradient(
    to bottom right,
    transparent calc(var(--f) - 38%),
    #000 calc(var(--f) - 9%),
    #000 calc(var(--f) + 9%),
    transparent calc(var(--f) + 38%)
  );
}

.isweep.is-on {
  opacity: 1;
}

/* Smooth tab crossfade on workbench body */
.wb__body {
  transition: opacity 0.24s var(--ease-soft);
}

.wb__body.is-swap {
  opacity: 0;
}

/* Stepping 3-dot indicator inside PARSING status */
.wb__dots {
  display: inline-flex;
  gap: 2.5px;
  margin-left: 2px;
  vertical-align: middle;
}

.wb__dots i {
  width: 3px;
  height: 3px;
  background: currentColor;
  display: inline-block;
  opacity: 0.25;
  animation: wb-dot 0.96s step-end infinite;
}

.wb__dots i:nth-child(2) { animation-delay: 0.32s; }
.wb__dots i:nth-child(3) { animation-delay: 0.64s; }

@keyframes wb-dot {
  0%, 100% { opacity: 0.25; }
  33% { opacity: 1; }
}

/* Layer 3: Interactive Source Bounding Regions with Split-Corner Border Draw (--bd) */
.reg {
  position: relative;
  padding: 8px 10px;
  margin-bottom: 10px;
  background: transparent;
  cursor: pointer;
  z-index: 4;
  --rc: var(--cobalt);
  transition: background-color 0.35s var(--ease-soft), box-shadow 0.28s var(--ease);
}

.reg:last-child { margin-bottom: 0; }

.reg::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  --bd: 0;
  --bw: 1.5px;
  --oc: color-mix(in srgb, var(--rc) 68%, transparent);
  --a: calc(clamp(0, var(--bd), 1) * 100%);
  --b: calc(clamp(0, var(--bd) - 1, 1) * 100%);
  background:
    linear-gradient(
      to bottom right,
      transparent calc(var(--f) - 42%),
      #2563eb calc(var(--f) - 22%),
      #7c3aed calc(var(--f) - 7%),
      #06b6d4 calc(var(--f) + 8%),
      #10b981 calc(var(--f) + 22%),
      transparent calc(var(--f) + 42%)
    ) calc(-1 * var(--dx, 0px)) calc(-1 * var(--dy, 0px)) / var(--dw, 1px) var(--dh, 1px) no-repeat,
    var(--oc);
  -webkit-mask:
    linear-gradient(#000 0 0) left top / var(--a) var(--bw) no-repeat,
    linear-gradient(#000 0 0) left top / var(--bw) var(--a) no-repeat,
    linear-gradient(#000 0 0) right top / var(--bw) var(--b) no-repeat,
    linear-gradient(#000 0 0) left bottom / var(--b) var(--bw) no-repeat;
  mask:
    linear-gradient(#000 0 0) left top / var(--a) var(--bw) no-repeat,
    linear-gradient(#000 0 0) left top / var(--bw) var(--a) no-repeat,
    linear-gradient(#000 0 0) right top / var(--bw) var(--b) no-repeat,
    linear-gradient(#000 0 0) left bottom / var(--b) var(--bw) no-repeat;
  transition: --bd 0.25s var(--ease-soft);
}

.reg.is-on::after {
  --bd: 2;
  transition: --bd 0.72s cubic-bezier(0.45, 0, 0.25, 1);
}

.reg.is-on {
  background: color-mix(in srgb, var(--rc) 5%, transparent);
}

.reg.is-on.is-just {
  background: color-mix(in srgb, var(--rc) 14%, transparent);
  transition-duration: 0.08s;
}

.reg.is-on:hover,
.reg.is-on.is-active {
  background: color-mix(in srgb, var(--rc) 12%, transparent);
  box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--rc) 16%, transparent);
}

.reg--cobalt  { --rc: var(--cobalt); }
.reg--violet  { --rc: var(--violet); }
.reg--cyan    { --rc: var(--cyan-deep); }
.reg--amber   { --rc: var(--amber); }
.reg--emerald { --rc: var(--emerald-deep); }

.reg__tag {
  position: absolute;
  top: -10px;
  right: 6px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 1px 6px;
  background: var(--rc);
  color: #ffffff;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.4s var(--ease-soft), transform 0.45s var(--ease-soft);
}

.reg.is-on .reg__tag {
  opacity: 1;
  transform: translateY(0);
}

/* Synthetic archival tables & handwriting inside .sheet */
.sheet__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
  font-size: 10px;
}

.sheet__kv span {
  display: block;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #707480;
}

.sheet__kv strong {
  font-weight: 600;
  color: #16181f;
}

.sheet__tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.sheet__tbl th {
  text-align: left;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #696d78;
  border-bottom: 1px solid #c9c4b8;
  padding: 3px 4px;
}

.sheet__tbl td {
  padding: 4px 5px;
  border-bottom: 1px dotted #d7d2c6;
  vertical-align: top;
  line-height: 1.35;
}

.sheet__tbl td:nth-child(1),
.sheet__tbl td:nth-child(2) {
  white-space: nowrap;
}

.sheet__tbl tr:last-child td { border-bottom: 0; }

.hand {
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1.05;
  color: #213763;
  letter-spacing: 0.01em;
}

.sheet__foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
}

.sheet__foot > span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .sheet__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
}

/* Output Pane (Right) */
.wb__out-pane {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.wb__out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
}

.wb__out-scroll {
  flex: 1;
  padding: 14px 16px;
  overflow: auto;
  max-height: 416px;
}

/* Synchronized AGS / Code Lines — hidden until matching region is scanned */
.code-line {
  display: grid;
  grid-template-columns: 24px 22px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 3.5px 6px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  border-left: 2px solid transparent;
  cursor: pointer;
  --rc: var(--cobalt);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.34s var(--ease-soft), transform 0.42s var(--ease-soft), background-color 0.8s var(--ease-soft), border-color 0.35s var(--ease-soft);
}

.code-line[data-tone="cobalt"]  { --rc: var(--cobalt); }
.code-line[data-tone="violet"]  { --rc: var(--violet); }
.code-line[data-tone="cyan"]    { --rc: var(--cyan-deep); }
.code-line[data-tone="amber"]   { --rc: var(--amber); }
.code-line[data-tone="emerald"] { --rc: var(--emerald-deep); }

.code-line.is-on {
  opacity: 1;
  transform: translateY(0);
}

/* Instant semantic color flash as the region parses into output, then 800ms dissolve */
.code-line.is-new {
  background: color-mix(in srgb, var(--rc) 16%, transparent);
  border-left-color: var(--rc);
  transition-duration: 0.34s, 0.42s, 0s, 0s;
}

@media (max-width: 640px) {
  .code-line {
    min-width: max-content;
  }
  .code-txt {
    white-space: pre;
    word-break: normal;
  }
}

.code-line.is-on:hover,
.code-line.is-on.is-active {
  background: color-mix(in srgb, var(--rc) 11%, transparent);
  border-left-color: var(--rc);
  transition-duration: 0.18s;
}

.code-ln {
  color: var(--ink-4);
  text-align: right;
  user-select: none;
  font-size: 10px;
}

.chip {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  font-size: 9.5px;
  font-weight: 600;
  color: #ffffff;
}

.chip--cobalt  { background: var(--cobalt); }
.chip--violet  { background: var(--violet); }
.chip--cyan    { background: var(--cyan-deep); }
.chip--amber   { background: var(--amber); }
.chip--emerald { background: var(--emerald-deep); }
.chip--ghost   { background: transparent; color: var(--ink-4); }

.code-txt {
  color: var(--ink);
  word-break: break-word;
}

.code-txt .k { color: var(--cobalt-deep); font-weight: 500; }
.code-txt .g { color: var(--violet-deep); font-weight: 600; }
.code-txt .v { color: var(--ink-2); }
.code-txt .ok { color: var(--emerald-deep); }
.code-txt .warn { color: var(--amber-deep); font-weight: 600; }

/* Records View Cards — progressive reveal synced to scan */
.rec-list {
  display: grid;
  gap: 8px;
}

.rec-card {
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--border-rail);
  padding: 10px 12px;
  cursor: pointer;
  --rc: var(--cobalt);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.36s var(--ease-soft), transform 0.44s var(--ease-soft), border-color 0.25s var(--ease), background-color 0.8s var(--ease-soft);
}

.rec-card[data-tone="cobalt"]  { border-left-color: var(--cobalt); --rc: var(--cobalt); }
.rec-card[data-tone="violet"]  { border-left-color: var(--violet); --rc: var(--violet); }
.rec-card[data-tone="cyan"]    { border-left-color: var(--cyan-deep); --rc: var(--cyan-deep); }
.rec-card[data-tone="amber"]   { border-left-color: var(--amber); --rc: var(--amber); background: rgba(255, 251, 235, 0.5); }
.rec-card[data-tone="emerald"] { border-left-color: var(--emerald-deep); --rc: var(--emerald-deep); }

.rec-card.is-on {
  opacity: 1;
  transform: translateY(0);
}

.rec-card.is-new {
  background: color-mix(in srgb, var(--rc) 14%, transparent);
  transition-duration: 0.36s, 0.44s, 0.25s, 0s;
}

.rec-card.is-on:hover,
.rec-card.is-on.is-active {
  background: color-mix(in srgb, var(--rc) 9%, transparent);
  border-color: var(--border-strong);
  transition-duration: 0.2s;
}

.rec-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.rec-card__kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rec-card__badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 6px;
  border: 1px solid var(--emerald-line);
  background: var(--emerald-soft);
  color: var(--emerald-deep);
}

.rec-card__badge--warn {
  border-color: var(--amber-line);
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.rec-card__val {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}

.rec-card__sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* Drawn BS 5930 Log View */
.log-view {
  border: 1px solid var(--border-rail);
  background: var(--bg);
}

.log-row {
  display: grid;
  grid-template-columns: 62px 46px minmax(0, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.36s var(--ease-soft), transform 0.44s var(--ease-soft), background-color 0.8s var(--ease-soft);
}

.log-row.is-on {
  opacity: 1;
  transform: translateY(0);
}

.log-row.is-new {
  background: rgba(37, 99, 235, 0.14);
  transition-duration: 0.36s, 0.44s, 0s;
}

.log-row:last-child { border-bottom: 0; }
.log-row.is-on:hover, .log-row.is-on.is-active {
  background: var(--cobalt-soft);
  transition-duration: 0.18s;
}

.log-depth {
  padding: 7px 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.log-hatch {
  border-right: 1px solid var(--border-subtle);
  height: 64px;
  overflow: hidden;
}

.log-hatch svg {
  display: block;
  width: 100%;
  height: 100%;
}

.log-desc {
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.log-desc strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 1px;
}

.log-desc span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
}

/* Engineer Sign-Off Bar at Bottom of Output Pane */
.wb__prov {
  border-top: 1px solid var(--border-rail);
  padding: 10px 14px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  font-family: var(--mono);
  font-size: 10.5px;
}

@media (max-width: 640px) {
  .wb__prov { flex-wrap: wrap; }
}

.wb__prov-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  min-width: 0;
  flex: 1;
}

.wb__prov-info > span:last-child {
  min-width: 0;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.wb__confirm-btn {
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--amber-soft);
  color: var(--amber-deep);
  border: 1px solid var(--amber-line);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.wb__confirm-btn:hover {
  background: var(--amber);
  color: #ffffff;
  border-color: var(--amber);
}

.wb__confirm-btn.is-settled {
  background: var(--emerald-soft);
  color: var(--emerald-deep);
  border-color: var(--emerald-line);
}

/* ==========================================================================
   Sector / Ecosystem Strip (Anonymised Credibility Band)
   ========================================================================== */
.strip {
  border-bottom: 1px solid var(--border-rail);
}

.strip__head {
  padding: 28px var(--gutter) 18px;
  text-align: center;
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-rail);
  border-top: 1px solid var(--border-rail);
}

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

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

.strip__cell {
  background: var(--bg);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  transition: background-color 0.25s var(--ease);
}

.strip__cell:hover {
  background: var(--bg-subtle);
}

.strip__name {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.strip__sub {
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ==========================================================================
   Section Base & Scroll Reveal
   ========================================================================== */
.sec {
  border-bottom: 1px solid var(--border-rail);
  position: relative;
  scroll-margin-top: 76px;
}

.hero,
#gate-preview {
  scroll-margin-top: 84px;
}

.sec__pad {
  padding-block: var(--section);
}

.sec__head {
  max-width: 720px;
  margin-bottom: clamp(38px, 4.5vw, 60px);
}

.sec__head--center {
  margin-inline: auto;
  text-align: center;
}

.sec__head h2 {
  margin-top: 16px;
  margin-bottom: 14px;
}

.rise {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-soft), transform 0.85s var(--ease);
}

.rise.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Outcome / Business Case Economics Band (TfL Thesis + Odometer Stats)
   ========================================================================== */
.econ-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-rail);
  border: 1px solid var(--border-rail);
}

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

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

.econ-card {
  background: var(--bg);
  padding: 28px 24px;
  position: relative;
  transition: background-color 0.28s var(--ease);
}

.econ-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--prism);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.econ-card:hover {
  background: var(--bg-subtle);
}

.econ-card:hover::after {
  transform: scaleX(1);
}

.econ-card__num {
  font-family: var(--serif);
  font-size: clamp(36px, 3.6vw, 50px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 10px;
}

.econ-card__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.econ-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

.econ-quote {
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid var(--border-rail);
  background: linear-gradient(90deg, var(--bg-subtle) 0%, rgba(239, 246, 255, 0.55) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.econ-quote__text {
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 760px;
}

/* ==========================================================================
   Applied AI Lab Split Section + Interactive 3D Pointer-Tilt Flip Cards
   ========================================================================== */
.lab-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1px;
  background: var(--border-rail);
}

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

.lab-copy {
  background: var(--bg);
  padding: clamp(40px, 5vw, 72px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.lab-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 560px) {
  .lab-kpis { grid-template-columns: 1fr; }
}

.lab-kpi__val {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
  color: var(--ink);
}

.lab-kpi__lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 5px;
  line-height: 1.4;
}

.lab-stage {
  padding: clamp(34px, 4vw, 56px) clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.cards-3d {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 540px;
  perspective: 1100px;
}

@media (max-width: 560px) {
  .cards-3d { grid-template-columns: 1fr; max-width: 300px; }
}

.card3d {
  position: relative;
  height: 316px;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-soft);
  cursor: pointer;
  --rx: 0deg;
  --ry: 0deg;
  --sc: 1;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--sc));
}

.card3d:hover {
  --sc: 1.032;
}

.card3d[aria-pressed="true"] {
  transform: rotateX(0deg) rotateY(180deg) scale(1.01);
}

.card3d__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-rail);
  box-shadow: 0 18px 40px rgba(9, 10, 15, 0.09);
  overflow: hidden;
}

.card3d__face--dark {
  background: #0d1018;
  color: #ffffff;
  border-color: #23293a;
}

.card3d__face--light {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border-rail);
}

.card3d__back {
  transform: rotateY(180deg);
}

.card3d__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card3d__face--dark .card3d__top { color: #93c5fd; }
.card3d__face--light .card3d__top { color: var(--violet-deep); }

.card3d__art {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 10px 0;
}

.card3d__name {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 5px;
}

.card3d__sub {
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0.78;
}

.card3d__spec {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
}

.card3d__spec li {
  padding-left: 12px;
  position: relative;
}

.card3d__spec li::before {
  content: "■";
  position: absolute;
  left: 0;
  font-size: 7px;
  top: 3px;
  color: var(--cyan);
}

.card3d__hint {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-rail);
  padding: 5px 11px;
}

/* ==========================================================================
   3-Stage Architecture Pipeline (Wired SVG Diagrams + Routing + Pass Bars)
   ========================================================================== */
.pipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-rail);
  border: 1px solid var(--border-rail);
}

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

.pipe-step {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.pipe-fig {
  height: 254px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pipe-copy {
  padding: 24px 24px 28px;
  flex: 1;
}

.pipe-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--cobalt);
  margin-bottom: 8px;
  display: block;
}

.pipe-copy h3 {
  margin-bottom: 9px;
}

/* Stage 1 wired diagram */
.s1-diag {
  display: grid;
  grid-template-columns: 1fr 34px 1.08fr;
  align-items: center;
}

.s1-doc {
  background: #ffffff;
  border: 1px solid var(--border-rail);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.s1-blk {
  height: 24px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-2);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.s1-blk i {
  width: 12px;
  height: 12px;
  font-style: normal;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 8.5px;
  font-weight: 600;
}

.s1-pills {
  display: grid;
  gap: 7px;
}

.s1-pill {
  background: #ffffff;
  border: 1px solid var(--border-rail);
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.pipe-step:hover .s1-pill {
  border-color: var(--cobalt);
  transform: translateX(3px);
}

/* Stage 2 routing & pass refinement */
.s2-wrap {
  display: grid;
  gap: 12px;
}

.s2-routes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.s2-chip {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 9px;
  border: 1px solid var(--border-rail);
  background: #ffffff;
  color: var(--ink-3);
  transition: all 0.25s var(--ease);
}

.s2-chip.is-on {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.s2-passes {
  background: #ffffff;
  border: 1px solid var(--border-rail);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.pass-row {
  display: grid;
  gap: 5px;
}

.pass-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
}

.pass-track {
  height: 6px;
  background: var(--surface-tint);
  overflow: hidden;
}

.pass-fill {
  height: 100%;
  width: 0;
  transition: width 1s var(--ease);
}

.pipe-step.is-in .pass-fill--1 { width: 85%; background: var(--cobalt); }
.pipe-step.is-in .pass-fill--2 { width: 100%; background: var(--prism); transition-delay: 260ms; }

.s2-eq {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 7px 10px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-line);
  color: var(--emerald-deep);
}

/* Stage 3 traceable card */
.s3-card {
  background: #ffffff;
  border: 1px solid var(--border-rail);
  padding: 13px;
  display: grid;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
}

.s3-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg-subtle);
  border-left: 2.5px solid var(--cobalt);
}

.s3-row--warn {
  border-left-color: var(--amber);
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.s3-row--ok {
  border-left-color: var(--emerald);
  background: var(--emerald-soft);
  color: var(--emerald-deep);
}

/* ==========================================================================
   Product Architecture Bento (Sibling Dimming via CSS :has())
   ========================================================================== */
.prod-tabs {
  display: inline-flex;
  border: 1px solid var(--border-rail);
  background: var(--bg-subtle);
  margin-bottom: 28px;
}

.prod-tab {
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-right: 1px solid var(--border-subtle);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.prod-tab:last-child { border-right: 0; }
.prod-tab:hover { color: var(--ink); }
.prod-tab[aria-selected="true"] {
  background: var(--ink);
  color: #ffffff;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-rail);
  border: 1px solid var(--border-rail);
}

.bento[data-cols="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bento[data-cols="1"] {
  grid-template-columns: 1fr;
}

.bento[data-cols="1"] .bento__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 18px 32px;
}

.bento[data-cols="1"] .bento__intro {
  grid-column: 1;
}

.bento[data-cols="1"] .bento__sublist {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  border-left: 1px solid var(--border-subtle);
  padding-left: 26px;
}

.bento[data-cols="1"] .bento__cta {
  grid-column: 1;
  width: fit-content;
}

@media (max-width: 960px) {
  .bento,
  .bento[data-cols="2"],
  .bento[data-cols="1"],
  .bento[data-cols="1"] .bento__card {
    grid-template-columns: 1fr;
  }
  .bento[data-cols="1"] .bento__sublist {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
  }
}

.bento__card {
  background: var(--bg);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  transition: opacity 0.3s var(--ease-soft), background-color 0.28s var(--ease);
}

/* LlamaIndex sibling dimming with :has() */
.bento:has(.bento__card:hover) .bento__card:not(:hover) {
  opacity: 0.62;
}

.bento__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--card-accent, var(--cobalt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.bento__card:hover {
  background: var(--bg-subtle);
}

.bento__card:hover::before {
  transform: scaleX(1);
}

.bento__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border-rail);
  background: var(--bg-subtle);
  color: var(--ink-2);
  margin-bottom: 14px;
}

.bento__status--live {
  border-color: var(--cobalt-line);
  background: var(--cobalt-soft);
  color: var(--cobalt-deep);
}

.bento__status--next {
  border-color: var(--violet-line);
  background: var(--violet-soft);
  color: var(--violet-deep);
}

.bento__sublist {
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border-subtle);
  list-style: none;
  display: grid;
  gap: 10px;
}

.bento__sublist li {
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--ink-2);
  padding-left: 14px;
  position: relative;
}

.bento__sublist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--card-accent, var(--cobalt));
}

.bento__sublist strong {
  color: var(--ink);
  font-weight: 600;
}

/* Interactive Submission Readiness Mini-Widget inside Product Section */
.gate-demo {
  margin-top: 28px;
  border: 1px solid var(--border-rail);
  background: var(--bg);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

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

.gate-demo__copy {
  padding: 32px;
  border-right: 1px solid var(--border-rail);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 920px) {
  .gate-demo__copy {
    border-right: 0;
    border-bottom: 1px solid var(--border-rail);
  }
}

.gate-demo__ui {
  padding: 24px;
  background: var(--surface-stage);
  display: grid;
  gap: 10px;
}

.gate-item {
  background: var(--bg);
  border: 1px solid var(--border-rail);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.gate-item:hover {
  border-color: var(--cobalt);
  transform: translateX(3px);
}

.gate-item__title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.gate-item__cap {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

.gate-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  white-space: nowrap;
}

.gate-pill--block { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.gate-pill--warn  { background: var(--amber-soft); color: var(--amber-deep); border: 1px solid var(--amber-line); }
.gate-pill--ok    { background: var(--emerald-soft); color: var(--emerald-deep); border: 1px solid var(--emerald-line); }

/* ==========================================================================
   Governance & Interoperability Matrix (Enterprise Band)
   ========================================================================== */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-rail);
  border: 1px solid var(--border-rail);
}

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

.gov-panel {
  background: var(--bg);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.matrix__cell {
  background: var(--bg-subtle);
  padding: 16px 14px;
  transition: background-color 0.22s var(--ease);
}

.matrix__cell:hover {
  background: var(--cobalt-soft);
}

.matrix__k {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.matrix__v {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-3);
}

.gov-note {
  margin-top: auto;
  padding: 13px 15px;
  border: 1px solid var(--cobalt-line);
  background: var(--cobalt-soft);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--cobalt-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gov-note > span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}

.trust-list {
  display: grid;
  gap: 10px;
}

.trust-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.trust-row:hover {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.trust-ico {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--emerald-deep);
  font-weight: 600;
  margin-top: 1px;
}

.trust-row strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 2px;
}

.trust-row span {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ==========================================================================
   Founders / Lab Credibility Band
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-rail);
  border: 1px solid var(--border-rail);
}

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

.team-card {
  background: var(--bg);
  padding: 32px;
  transition: background-color 0.25s var(--ease);
}

.team-card:hover {
  background: var(--bg-subtle);
}

.team-role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 10px;
  display: block;
}

.team-card h3 {
  margin-bottom: 10px;
}

/* ==========================================================================
   Final CTA & Giant Watermarked Architectural Footer
   ========================================================================== */
.cta-band {
  padding: clamp(68px, 7.5vw, 112px) var(--gutter);
  text-align: center;
}

.cta-band h2 {
  max-width: 680px;
  margin: 16px auto 16px;
}

.cta-band .lead {
  max-width: 560px;
  margin: 0 auto 28px;
}

.foot {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.foot__wordmark {
  padding: 36px var(--gutter) 28px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  user-select: none;
}

.foot__giant {
  font-family: var(--serif);
  font-size: clamp(72px, 14vw, 198px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--surface-tint);
  transition: color 0.6s var(--ease);
}

.foot:hover .foot__giant {
  color: #e4e9f5;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border-bottom: 1px solid var(--border-rail);
}

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

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

.foot__col {
  background: var(--bg);
  padding: 28px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot__h {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.foot__a {
  font-size: 13.5px;
  color: var(--ink-2);
  width: fit-content;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.foot__a:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.foot__bottom {
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* ==========================================================================
   Get In Touch Modal (Interactive CTA Target)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 10, 15, 0.45);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

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

.modal {
  width: min(520px, 100%);
  background: var(--bg);
  border: 1px solid var(--border-rail);
  box-shadow: 0 32px 80px rgba(9, 10, 15, 0.2);
  padding: 28px;
  transform: translateY(16px);
  transition: transform 0.34s var(--ease);
  position: relative;
}

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

.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--prism);
}

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

.modal__close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-rail);
  font-family: var(--mono);
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.modal__close:hover {
  border-color: var(--ink);
  background: var(--bg-subtle);
}

.form-grid {
  display: grid;
  gap: 13px;
}

.field-lbl {
  display: grid;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border-rail);
  background: var(--bg);
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.modal__error {
  display: none;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
}

.modal__error.is-show { display: block; }

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
  pointer-events: none;
}

.modal__sent {
  padding: 18px;
  border: 1px solid var(--emerald-line);
  background: var(--emerald-soft);
  color: var(--emerald-deep);
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.modal__sent.is-show { display: block; }

/* ==========================================================================
   Reduced Motion Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hdrv .hdrv__c {
    opacity: 1;
    filter: none;
    color: var(--ink);
    transform: none;
  }
  .rise {
    opacity: 1;
    transform: none;
  }
  .code-line, .rec-card, .log-row {
    opacity: 1;
    transform: none;
  }
  .reg::after {
    --bd: 2;
  }
  .reg .reg__tag {
    opacity: 1;
    transform: none;
  }
}
