/* ==========================================================================
   Twin Technologies preview - presentation only.
   Layout, type scale, spacing rhythm and component shapes are reproduced from
   the Paperclip homepage reference. The palette is Twin's own.
   All copy lives in content.mjs / index.html, never here.
   ========================================================================== */

:root {
  /* Twin palette */
  --bg: #ffffff;
  --tint: #f6fbff;
  --tint-2: #edf6fc;
  --tint-3: #dce9f2;
  --ink: #111b26;
  --ink-soft: #2a3540;
  --muted: #65717d;
  --muted-2: #525d68;
  --border: #e3e6e9;
  --border-soft: #e3eaf0;
  --border-strong: #c3cbd1;
  --blue: #0875c9;
  --blue-hover: #0a63a8;
  --blue-deep: #15558d;
  --blue-mid: #2d8ccc;
  --blue-light: #5bb8e8;
  --blue-bright: #14b8f0;
  --blue-pale: #9cc7e8;
  --navy: #0b2545;

  /* Type */
  --font-display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Space */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: clamp(2rem, calc(1.5rem + 1.5vw), 3rem);
  --space-xl: clamp(3rem, calc(2rem + 3vw), 5rem);
  --space-2xl: clamp(4rem, calc(2.5rem + 4.5vw), 7rem);
  --max-width: 1280px;
  --section-pad: 50px;

  --radius: 8px;
  --radius-lg: 12px;
  --pill: 9999px;

  --ease-enter: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-card: 0 4px 16px -10px rgba(17, 27, 38, 0.14);
  --shadow-panel: 0 30px 70px -55px rgba(17, 27, 38, 0.45);
  --dither: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512' viewBox='0 0 512 512'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.95' numOctaves='5' seed='9' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--section-pad) 0;
}

/* ---------------------------------------------------------------- headings */
.h-section,
.h-how,
.h-detail,
.h-cta {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.h-section {
  font-size: clamp(32px, 4vw, 56px);
}

.h-how {
  font-size: clamp(32px, 4.5vw, 64px);
}

.h-detail {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.h-cta {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin: 0 0 var(--space-lg);
}

.section-head {
  margin-bottom: var(--space-xl);
}

.section-lede,
.detail-lede {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 620px;
  margin: var(--space-sm) 0 0;
}

.section-lede--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.detail-lede--follow {
  margin-top: .7rem;
}

.detail-category-line,
.gov-principles {
  max-width: 620px;
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.65;
  color: var(--ink);
}

.assistant-questions {
  margin-bottom: 1.25rem;
}

.assistant-question {
  margin: 0 0 .45rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* ------------------------------------------------------------------ badges */
.badge {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-bottom: var(--space-md);
  padding: 0.4rem 0.9rem;
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
}

.badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--dither);
  background-size: 256px 256px;
  background-repeat: repeat;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.badge-text {
  position: relative;
  z-index: 1;
}

/* A coordinated set of Twin blues in place of the reference's rainbow set. */
.badge--g1 { color: #fff; background: linear-gradient(90deg, #0b2545, #0875c9); }
.badge--g2 { color: var(--navy); background: linear-gradient(90deg, #dce9f2, #9cc7e8); }
.badge--g3 { color: #fff; background: linear-gradient(90deg, #15558d, #0875c9); }
.badge--g4 { color: #fff; background: linear-gradient(90deg, #0875c9, #2d8ccc); }
.badge--g5 { color: var(--navy); background: linear-gradient(90deg, #9cc7e8, #5bb8e8); }
.badge--g6 { color: #fff; background: linear-gradient(90deg, #0f63a8, #15558d); }
.badge--g7 { color: #fff; background: linear-gradient(90deg, #14b8f0, #0875c9); }
.badge--g8 { color: #fff; background: linear-gradient(90deg, #0b2545, #2d8ccc); }
.badge--g9 { color: var(--navy); background: linear-gradient(90deg, #5bb8e8, #dce9f2); }
.badge--g10 { color: #fff; background: linear-gradient(90deg, #103459, #14b8f0); }
.badge--g11 { color: var(--navy); background: linear-gradient(90deg, #dce9f2, #5bb8e8); }
.badge--g12 { color: #fff; background: linear-gradient(90deg, #0875c9, #0b2545); }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.8rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-enter), border-color 0.25s var(--ease-enter),
    color 0.25s var(--ease-enter), box-shadow 0.25s var(--ease-enter);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  background: var(--tint);
  border-color: var(--border-strong);
}

.btn-sm {
  min-height: 40px;
  padding: 0.6rem 1.35rem;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
}

.btn-arrow {
  display: inline-flex;
  transition: transform 0.2s var(--ease-enter);
}

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

/* ------------------------------------------------------------- navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.wordmark-sub {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.nav-burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dots i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.nav-mobile {
  display: block;
  border-top: 1px solid var(--border);
  background: #fff;
}

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

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
}

.nav-mobile-link {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 10rem) 0 clamp(4rem, 8vw, 8rem);
  background: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  --hero-bg-y: -310px;
  transform: translateY(var(--hero-bg-y));
}

.hero-bg-mobile {
  display: none;
}

.hero-art {
  display: block;
  width: min(1200px, 100%);
  height: auto;
  flex-shrink: 0;
  animation: artEnter 1.1s var(--ease-enter) 80ms both;
  will-change: transform, opacity;
}

.hero-cap-col {
  animation: capEnter 0.9s var(--ease-enter) both;
  animation-delay: calc(var(--k) * 0.08s + 0.16s);
  transform-origin: 50% 40%;
}

.hero-grain {
  opacity: 0.16;
  mix-blend-mode: overlay;
  animation: artEnter 0.9s ease 0.5s both;
}

@keyframes artEnter {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: none; }
}

@keyframes capEnter {
  from { opacity: 0; transform: scale(0.93) translateY(-14px); }
  to { opacity: 1; transform: none; }
}

/* Fades the capsule block into the page so navy headlines stay legible. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.9) 62%,
    #ffffff 74%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 60px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 124px 0 var(--space-md);
  text-wrap: balance;
}

.hero-lede {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
}

.hero-lede--follow {
  margin-top: -1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.hero-cta-link {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.hero-cta-link:hover {
  color: var(--ink);
}

/* ------------------------------------------------ software integration marquee */
.brands .section-head {
  margin-bottom: var(--space-lg);
}

.marquee-zone {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.marquee {
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 0.4rem;
  scrollbar-width: none;
}

.marquee::-webkit-scrollbar {
  display: none;
}

.marquee + .marquee {
  margin-top: var(--space-sm);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-set {
  display: flex;
  gap: 0.75rem;
  padding-right: 0.75rem;
}

.track-left {
  animation: scroll-left 62s linear infinite;
}

.track-right {
  animation: scroll-right 62s linear infinite;
}

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

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

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-shrink: 0;
  width: clamp(9.5rem, 12vw, 11rem);
  height: 8rem;
  padding: 0.8rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.brand-card:hover {
  border-color: var(--blue-pale);
  box-shadow: var(--shadow-card);
}

.brand-logo-wrap {
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: 96px;
  object-fit: contain;
}

.brand-logo--wide {
  width: 108px;
  height: auto;
  max-height: 34px;
}

.brand-logo--myob { width: 74px; height: 44px; }
.brand-logo--xero { height: 44px; }
.brand-logo--google-drive { height: 42px; }
.brand-logo--excel,
.brand-logo--outlook,
.brand-logo--teams,
.brand-logo--sharepoint,
.brand-logo--onedrive,
.brand-logo--microsoft-project { height: 40px; }
.brand-logo--autocad,
.brand-logo--autodesk,
.brand-logo--bluebeam,
.brand-logo--planswift { height: 42px; }
.brand-logo--procore { width: 112px; }
.brand-logo--simpro { width: 112px; }
.brand-logo--oracle-aconex { width: 114px; }
.brand-logo--docusign,
.brand-logo--buildxact,
.brand-logo--payapps { width: 104px; }
.brand-logo--gmail { height: 38px; }

.brand-name {
  max-width: 100%;
  font-family: var(--font-display);
  min-height: 2.5em;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
}

.systems-note {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.systems-note strong {
  color: var(--ink);
}

.systems-note a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.industries-section {
  background: var(--tint);
}

.industries-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--space-xl);
  align-items: start;
}

.industries-heading .badge {
  margin-bottom: 1.2rem;
}

.industries-heading .h-section {
  margin: 0;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.industry-item {
  display: flex;
  min-height: 170px;
  align-items: center;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

#industries .industry-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ink);
  overflow-wrap: normal;
  word-break: normal;
}

/* -------------------------------------------------------- console mock-up */
.tour-panel {
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.console {
  display: grid;
  grid-template-columns: 236px 1fr;
  aspect-ratio: 16 / 9;
  background: #fff;
}

.console-rail {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.1rem;
  border-right: 1px solid var(--border);
  background: var(--tint);
  overflow: hidden;
}

.console-rail-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.console-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.console-rail-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.console-rail-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.console-rail-label {
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.console-rail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.console-rail-item svg {
  flex-shrink: 0;
}

.console-rail-item.is-active {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 500;
}

.console-stage {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--tint) 0%, rgba(255, 255, 255, 0) 60%),
    #fff;
}

.console-stage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.console-stage-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.console-stage-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.console-rows {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--border);
}

.console-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: background-color 0.2s ease;
}

.console-row:first-child {
  border-top: 1px solid var(--border);
}

.console-row.is-active {
  background: var(--tint);
}

.console-row-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--tint-2);
  color: var(--blue);
}

.console-row.is-active .console-row-icon {
  background: var(--blue);
  color: #fff;
}

.console-row-name {
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.console-row-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding-top: 0.9rem;
}

.console-foot-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.console-foot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.console-foot-tag {
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Dashboard demonstration */
.tour-panel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f6f8fa;
  box-shadow: 0 24px 70px rgba(17, 27, 38, 0.08);
}

.tour-video-shell {
  position: relative;
}

.tour-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2240 / 1282;
  object-fit: contain;
  background: #fff;
}

.video-expand {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  background: rgba(17, 27, 38, 0.84);
  color: #fff;
  font: 600 0.72rem/1 var(--font-body);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.video-expand:hover {
  background: var(--ink);
}

.video-dialog {
  width: min(96vw, 1500px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 28px 90px rgba(17, 27, 38, .24);
}

.video-dialog::backdrop {
  background: rgba(17, 27, 38, .72);
  backdrop-filter: blur(4px);
}

.video-dialog-inner {
  position: relative;
}

.video-dialog-media {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  aspect-ratio: 2240 / 1282;
  object-fit: contain;
  border-radius: inherit;
  background: #fff;
}

.video-dialog-close {
  position: absolute;
  z-index: 2;
  top: -42px;
  right: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(17,27,38,.82);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.console {
  grid-template-columns: 52px 190px minmax(0, 1fr);
  min-height: 690px;
  aspect-ratio: 16 / 9;
  color: var(--ink);
}

.console-iconbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.55rem;
  border-right: 1px solid var(--border);
  background: #fff;
}

.console-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: var(--muted);
}

.console-icon.is-active {
  background: var(--tint-2);
  color: var(--blue);
}

.console-icon--bottom { margin-top: auto; }

.console-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.15rem 0.9rem;
  border-right: 1px solid var(--border);
  background: #f8fbfd;
}

.console-brand { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.console-brand strong { font-size: 0.82rem; }
.console-brand span { margin-top: 0.2rem; font-size: 0.62rem; color: var(--muted); }
.console-nav { display: flex; flex-direction: column; gap: 0.18rem; }
.console-nav-label { margin: 0.75rem 0 0.3rem; font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: 0.12em; color: #8c98a4; }
.console-nav-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.48rem 0.55rem; border: 1px solid transparent; border-radius: 6px; font-size: 0.68rem; color: var(--muted); }
.console-nav-item svg { flex: none; }
.console-nav-item b { margin-left: auto; font-family: var(--font-mono); font-size: 8px; color: var(--blue); }
.console-nav-item i { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #22a06b; }
.console-nav-item.is-active { border-color: var(--border); background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 4px 14px rgba(17, 27, 38, 0.04); }
.console-workspace { display: flex; align-items: center; gap: 0.55rem; margin-top: auto; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.console-workspace > span:last-child { display: flex; flex-direction: column; }
.console-workspace strong { font-size: 0.66rem; }
.console-workspace small { margin-top: 0.12rem; font-size: 0.55rem; color: var(--muted); }
.status-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.12); }
.status-dot.is-blue { background: var(--blue); box-shadow: 0 0 0 3px rgba(8, 117, 201, 0.12); }

.console-main { min-width: 0; padding: 1.2rem 1.35rem 1.35rem; background: #fff; }
.console-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border); }
.console-header h3 { margin: 0.22rem 0 0; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0; }
.console-kicker { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; color: var(--muted); }
.console-head-actions { display: flex; align-items: center; gap: 0.55rem; }
.preview-label { padding: 0.24rem 0.55rem; border: 1px solid #abd3ef; border-radius: var(--pill); background: #edf7fd; font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); }
.console-date { padding: 0.32rem 0.55rem; border: 1px solid var(--border); border-radius: 5px; font-size: 0.58rem; color: var(--muted); }
.console-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.58rem; font-weight: 700; }

.console-activity { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(120px, 0.8fr) auto; align-items: center; gap: 0.8rem; margin: 1rem 0 0.8rem; padding: 0.8rem 0.9rem; border: 1px solid #cde3f2; border-radius: 8px; background: #f6fbfe; }
.activity-orbit { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #9bc9e8; border-radius: 50%; color: var(--blue); }
.activity-orbit::before, .activity-orbit::after { content: ''; position: absolute; border: 1px solid rgba(8,117,201,.18); border-radius: 50%; animation: console-pulse 2.8s ease-out infinite; }
.activity-orbit::before { inset: 4px; }
.activity-orbit::after { inset: -5px; animation-delay: 1.4s; }
.activity-orbit b { font-size: 0.75rem; }
.activity-orbit i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.activity-orbit i:first-child { top: 3px; left: 18px; }
.activity-orbit i:nth-child(2) { right: 3px; bottom: 10px; }
.activity-copy { display: flex; flex-direction: column; min-width: 0; }
.activity-copy span { font-size: 0.58rem; color: var(--muted); }
.activity-copy strong { margin: 0.1rem 0; font-size: 0.83rem; }
.activity-copy small { font-size: 0.54rem; color: var(--muted); }
.activity-spark { display: flex; align-items: end; gap: 3px; height: 34px; }
.activity-spark span { flex: 1; height: 35%; border-radius: 2px 2px 0 0; background: #a8d5f0; animation: spark-rise 2.4s ease-in-out infinite alternate; }
.activity-spark span:nth-child(2), .activity-spark span:nth-child(6) { height: 65%; animation-delay: .2s; }
.activity-spark span:nth-child(3), .activity-spark span:nth-child(7) { height: 45%; animation-delay: .45s; }
.activity-spark span:nth-child(4) { height: 90%; animation-delay: .7s; background: var(--blue); }
.activity-spark span:nth-child(5), .activity-spark span:nth-child(8) { height: 72%; animation-delay: .9s; }
.activity-delta { font-family: var(--font-mono); font-size: 0.62rem; color: #17865d; }

.console-charts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
.metric-card { position: relative; min-width: 0; min-height: 124px; padding: 0.68rem; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: #fff; }
.metric-card > span { display: block; font-size: 0.57rem; color: var(--muted); }
.metric-card > strong { display: block; margin: 0.18rem 0; font-family: var(--font-display); font-size: 1rem; }
.metric-card > small { display: block; font-size: 0.5rem; color: #5e9b7f; }
.metric-card svg { position: absolute; right: 0.6rem; bottom: 0.55rem; left: 0.6rem; width: calc(100% - 1.2rem); height: 38px; overflow: visible; }
.metric-card svg path:not(.chart-fill) { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 260; animation: chart-draw 2.2s var(--ease-enter) both; }
.chart-fill { fill: rgba(8, 117, 201, 0.08); stroke: none; }
.metric-bars { position: absolute; right: .65rem; bottom: .65rem; left: .65rem; display: flex; align-items: end; gap: 4px; height: 38px; border-bottom: 1px solid var(--border); }
.metric-bars i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: #9bc9e8; animation: bars-grow 1.5s var(--ease-enter) both; transform-origin: bottom; }
.metric-bars i:nth-child(6) { background: var(--blue); }
.health-ring { position: absolute; right: 0.75rem; bottom: 0.55rem; display: grid; place-items: center; width: 43px; height: 43px; border: 5px solid #d8ecf8; border-top-color: var(--blue); border-right-color: var(--blue); border-radius: 50%; }
.health-ring span { font-family: var(--font-mono); font-size: 7px; color: var(--ink); }

.console-table { margin-top: 0.7rem; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.console-table-head { display: flex; align-items: center; justify-content: space-between; padding: 0.62rem 0.75rem; background: #f8fbfd; }
.console-table-head > div { display: flex; flex-direction: column; }
.console-table-head strong { font-size: 0.67rem; }
.console-table-head span { margin-top: 0.1rem; font-size: 0.5rem; color: var(--muted); }
.console-table-head button { padding: .28rem .5rem; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: .52rem; color: var(--muted); }
.console-table-row { display: grid; grid-template-columns: 1.1fr 1.45fr .8fr .65fr; align-items: center; min-height: 34px; padding: 0 .75rem; border-top: 1px solid var(--border); font-size: .54rem; color: var(--muted); }
.console-table-row > span { display: flex; align-items: center; gap: .34rem; min-width: 0; }
.console-table-row.is-heading { min-height: 26px; background: #fbfcfd; font-family: var(--font-mono); font-size: .46rem; text-transform: uppercase; letter-spacing: .08em; color: #8c98a4; }
.table-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--tint-2); color: var(--blue); }

@keyframes console-pulse { 0% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes spark-rise { from { transform: scaleY(.6); } to { transform: scaleY(1); } }
@keyframes chart-draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes bars-grow { from { transform: scaleY(.1); } to { transform: scaleY(1); } }

.activity-orbit::before,
.activity-orbit::after,
.activity-spark span,
.metric-card svg path:not(.chart-fill),
.metric-bars i,
.node.is-highlighted::after {
  animation-play-state: paused;
}

.tour-panel.is-visible .activity-orbit::before,
.tour-panel.is-visible .activity-orbit::after,
.tour-panel.is-visible .activity-spark span,
.tour-panel.is-visible .metric-card svg path:not(.chart-fill),
.tour-panel.is-visible .metric-bars i,
.panel--arch.is-visible .node.is-highlighted::after {
  animation-play-state: running;
}

/* ---------------------------------------------------- numbered three-step */
.how-head {
  margin-bottom: var(--space-xl);
  text-align: center;
}

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

.step-card {
  padding: 2.85rem 1.5rem;
  background: #fff;
  transition: background-color 0.25s ease;
}

.step-card:hover {
  background: var(--tint);
}

.step-number {
  display: block;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.step-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.step-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --------------------------------------------------------- capability grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  overflow: hidden;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.85rem 1.5rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.feature-card:hover {
  background: var(--tint);
}

.feature-icon {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--blue);
}

.feature-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--border-strong);
}

.feature-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.feature-card:hover .feature-title {
  color: var(--blue);
}

.feature-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------ detail cols */
.orgchart-cols {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-xl);
  align-items: center;
}

.detail-cols {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.detail-cols--graphic-first {
  grid-template-columns: 1fr 1fr;
}

.detail-cols--table-first {
  grid-template-columns: 1.3fr 0.7fr;
}

.tickets-cols {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-xl);
  align-items: stretch;
}

.heartbeat-cols {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--tint);
}

/* ------------------------------------------------------------- systems row */
.systems {
  margin-top: var(--space-lg);
}

.systems-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
}

.systems-description {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem 0.75rem;
}

.system-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.system-item:hover {
  transform: translateY(-2px);
}

.system-logo-wrap {
  display: flex;
  width: 100%;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.system-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 72px;
  max-height: 34px;
  object-fit: contain;
}

.system-logo--mark {
  width: 36px;
  height: 36px;
  max-width: 39px;
  max-height: 36px;
}

.system-logo--wide {
  width: 76px;
  height: 29px;
  max-width: 76px;
  max-height: 29px;
}

.system-name {
  margin-top: 0.42rem;
  max-width: 100%;
  color: var(--ink);
  font-size: 0.69rem;
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* -------------------------------------------------- architecture diagram */
.panel--arch {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
  min-height: 520px;
  padding: 1.1rem 1.35rem 1.5rem;
  background:
    radial-gradient(90% 70% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 65%),
    var(--tint);
}

.arch-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.arch-panel-head > span:last-child { display: flex; align-items: center; gap: 0.4rem; }
.arch-panel-head i { width: 6px; height: 6px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px rgba(34,160,107,.12); }

.tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tree-row {
  position: relative;
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.tree-row--1 {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.tree-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tree-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 67%;
}

.tree-row--3::before,
.tree-row--2::before {
  content: '';
  position: absolute;
  top: 0;
  height: 1px;
  background: var(--border-strong);
}

.tree-row--3::before {
  left: 16.667%;
  right: 16.667%;
}

.tree-row--2::before {
  left: 25%;
  right: 25%;
}

.tree-row .node {
  position: relative;
  margin-top: 30px;
  background: #fff;
}

.tree-row .node::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  width: 1px;
  height: 30px;
  background: var(--border-strong);
}

.tree-connector--root {
  width: 1px;
  height: 30px;
  background: var(--border-strong);
}

.node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #fff;
}

.node::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;
}

.node.is-highlighted::after {
  border-color: rgba(8, 117, 201, 0.5);
  animation: node-outline 2.8s ease-in-out infinite;
}

.node--hub {
  padding: 0.8rem 1.1rem;
  min-width: 210px;
  border-color: #9bc9e8;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(8, 117, 201, 0.12);
}

.node--hub .node-name {
  color: var(--ink);
}

.node--hub .node-role {
  color: var(--muted);
}

.node-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--tint-2);
  color: var(--blue);
}

.node--hub .node-icon {
  background: var(--blue);
  color: #fff;
}

.node-status {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.2rem 0.42rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #f8fbfd;
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
  color: var(--muted);
}

.node-status i { width: 5px; height: 5px; border-radius: 50%; background: #22a06b; }
.node.is-highlighted .node-status { border-color: #abd3ef; background: #edf7fd; color: var(--blue); }

.node-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.node-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.node-role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.arch-tag {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

@keyframes node-outline {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.012); }
}

/* Compact travelling-signal organisation chart */
.panel--arch {
  display: block;
  min-height: 0;
  padding: 2.25rem 1.5rem;
  background: var(--tint);
}

.org-tree {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: 420px;
  margin: 0 auto;
}

.org-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.org-connectors > path {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.org-signal {
  fill: #22a06b;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(34, 160, 107, .45));
  animation-play-state: paused;
}

.org-signal--1 { animation: org-signal-1-visible 12s linear infinite paused; }
.org-signal--2 { animation: org-signal-2-visible 12s linear infinite paused; }
.org-signal--3 { animation: org-signal-3-visible 12s linear infinite paused; }
.org-signal--4 { animation: org-signal-4-visible 12s linear infinite paused; }
.org-signal--5 { animation: org-signal-5-visible 12s linear infinite paused; }

.org-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 180px;
  height: 60px;
  padding: 0 .8rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 27, 38, .045);
  transform: translateX(-50%);
  animation: org-node-active 12s ease-in-out infinite;
  animation-delay: calc(var(--phase) * 2s);
  animation-play-state: paused;
}

.org-node--root { top: 32px; left: 50%; width: 220px; }
.org-node--middle-left { top: 166px; left: 16.84%; }
.org-node--middle-centre { top: 166px; left: 50%; width: 210px; }
.org-node--middle-right { top: 166px; left: 83.16%; }
.org-node--bottom-left { top: 300px; left: 33%; width: 220px; }
.org-node--bottom-right { top: 300px; left: 67%; width: 190px; }

.org-node-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tint-2);
  color: var(--blue);
}

.org-node-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .12rem;
  white-space: normal;
}

.org-node-copy strong,
.org-node-copy small {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.org-node-copy strong {
  font-family: var(--font-display);
  font-size: .79rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

.org-node-copy small {
  font-size: .64rem;
  line-height: 1.2;
  color: var(--muted);
}

.org-active-badge {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: .14rem .42rem;
  border: 1px solid rgba(34, 160, 107, .24);
  border-radius: var(--pill);
  background: #e9fbf2;
  color: #16744f;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transform: translateY(3px);
  animation: org-badge-active 12s ease-in-out infinite;
  animation-delay: calc(var(--phase) * 2s);
  animation-play-state: paused;
}

.panel--arch.is-animating .org-node,
.panel--arch.is-animating .org-active-badge,
.panel--arch.is-animating .org-signal {
  animation-play-state: running;
}

@keyframes org-node-active {
  0%, 13% { border-color: #22a06b; box-shadow: 0 0 0 2px rgba(34, 160, 107, .12), 0 8px 22px rgba(17, 27, 38, .05); }
  18%, 100% { border-color: var(--border); box-shadow: 0 8px 22px rgba(17, 27, 38, .045); }
}

@keyframes org-badge-active {
  0%, 3% { opacity: 0; transform: translateY(3px); }
  5%, 13% { opacity: 1; transform: translateY(0); }
  18%, 100% { opacity: 0; transform: translateY(3px); }
}

@keyframes org-signal-1-visible { 0%, 17% { opacity: 1; } 20%, 100% { opacity: 0; } }
@keyframes org-signal-2-visible { 0%, 16% { opacity: 0; } 18%, 33% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes org-signal-3-visible { 0%, 32% { opacity: 0; } 34%, 50% { opacity: 1; } 53%, 100% { opacity: 0; } }
@keyframes org-signal-4-visible { 0%, 49% { opacity: 0; } 51%, 67% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes org-signal-5-visible { 0%, 66% { opacity: 0; } 68%, 84% { opacity: 1; } 87%, 100% { opacity: 0; } }

/* ------------------------------------------------------------ cascade art */
.panel--cascade {
  padding: 2.5rem;
  background:
    radial-gradient(80% 60% at 20% 10%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    var(--tint);
}

.cascade {
  display: flex;
  flex-direction: column;
}

.cascade-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: calc((var(--level, 1) - 1) * 1.35rem);
}

.cascade-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.65rem;
  row-gap: 0.12rem;
  align-items: center;
  width: 100%;
  padding: 0.8rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.cascade-glyph {
  grid-row: span 2;
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
}

.cascade-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.cascade-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
}

.cascade-link {
  width: 1px;
  height: 22px;
  margin-left: 1.6rem;
  background: var(--border-strong);
}

/* ----------------------------------------------------- multitrack detail */
.heartbeat {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--tint-2);
}

.lane-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.lane-list-item {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.lane-list-icon {
  display: inline-flex;
  color: var(--blue);
  transform: rotate(180deg);
}

.lane-list-item strong {
  color: var(--ink);
  font-weight: 600;
}

.panel--lanes {
  padding: 1.5rem 2rem 1.25rem;
  overflow: hidden;
  background: #fff;
}

.ruler {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.ruler-tick {
  width: 1px;
  height: 9px;
  background: var(--border-strong);
}

.swim-lanes {
  display: flex;
  flex-direction: column;
}

.swim-lane {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-sm);
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.swim-lane:last-child {
  border-bottom: 0;
}

.swim-lane-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color .25s ease;
}

.swim-lane.is-active .swim-lane-name {
  color: #16875f;
}

.swim-lane-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

.swim-lane-track {
  position: relative;
  height: 38px;
}

.lane-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.lane-dot {
  position: absolute;
  top: 50%;
  left: var(--x);
  width: 10px;
  height: 16px;
  margin: -8px 0 0 -5px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: #fff;
  z-index: 1;
  opacity: .72;
}

.swim-lane.is-active .lane-dot.is-target {
  border-color: #22a06b;
  background: #22a06b;
  box-shadow: 0 0 0 4px rgba(34, 160, 107, .13);
  opacity: 1;
}

.lane-runner {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: 9px;
  height: 18px;
  margin-top: -9px;
  border-radius: 5px;
  background: #22a06b;
  box-shadow: 0 0 10px rgba(34,160,107,.5);
  opacity: 0;
  transform: translateX(-50%);
  transition: left 950ms cubic-bezier(.22,.72,.22,1), opacity .16s ease;
}

.swim-lane.is-running .lane-runner,
.swim-lane.is-active .lane-runner {
  opacity: 1;
  left: var(--runner-x, 0%);
}

.lane-action {
  position: absolute;
  z-index: 3;
  top: -8px;
  left: var(--action-x);
  max-width: 120px;
  padding: .22rem .46rem;
  border: 1px solid rgba(34,160,107,.24);
  border-radius: var(--pill);
  background: #e9fbf2;
  color: #16744f;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -5px);
  transition: opacity .22s ease, transform .22s ease;
}

.swim-lane.is-active .lane-action {
  opacity: 1;
  transform: translate(-50%, -9px);
}

/* ---------------------------------------------------------- payments table */
.panel--table {
  padding: 2.5rem;
  background: #fff;
}

.ctable {
  display: flex;
  flex-direction: column;
}

.ctable-head {
  display: grid;
  grid-template-columns: 1.35fr minmax(0, 1fr) auto;
  gap: var(--space-sm);
  padding-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.ctable-col--state {
  text-align: right;
}

.ctable-rule {
  height: 1px;
  background: var(--border);
}

.ctable-rule--total {
  margin-top: 0.35rem;
}

.ctable-row {
  display: grid;
  grid-template-columns: 1.35fr minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.ctable-row--total {
  padding-bottom: 0;
  border-bottom: 0;
}

.ctable-agent {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.ctable-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--tint-2);
  color: var(--blue);
}

.ctable-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.ctable-bar-track {
  display: block;
  height: 8px;
  border-radius: var(--pill);
  background: var(--tint-2);
  overflow: hidden;
}

.ctable-bar-fill {
  display: block;
  height: 100%;
  width: var(--fill);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  transform-origin: left center;
  animation: barGrow 1.3s var(--ease-enter) both;
}

@keyframes barGrow {
  from { transform: scaleX(0.02); }
  to { transform: scaleX(1); }
}

.ctable-state {
  min-width: 66px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.ctable-state--strong {
  color: var(--ink);
}

/* --------------------------------------------------- conversation record */
.tickets-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.ticket-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.ticket-bullet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.ticket-bullet-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue);
}

.panel--record {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: 1.5rem;
}

.record-card,
.trace {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.record-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.record-status {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--tint-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.record-meta {
  padding: 0.8rem 0 0.35rem;
}

.record-chip {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--tint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

.record-rows {
  display: flex;
  flex-direction: column;
}

.record-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
}

.record-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.record-value {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

.trace-label {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.trace-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.3rem 0;
}

.trace-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--pill);
  background: var(--border-strong);
}

.trace-dot--done,
.trace-dot--passed {
  background: #16a34a;
}

.trace-dot--running {
  background: var(--blue);
}

.trace-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.trace-state {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.trace-step--active .trace-state {
  color: var(--blue);
}

/* ----------------------------------------------------------- integrations */
.extensions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.ext-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 168px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ext-card:hover {
  border-color: var(--blue-pale);
  box-shadow: 0 16px 40px -30px rgba(8, 117, 201, 0.55);
  transform: translateY(-2px);
}

.ext-icon {
  color: var(--blue);
}

.ext-name {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}

.ext-body {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.ext-note {
  margin: var(--space-md) 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------------------------------------- governance */
.h-section--gov {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.gov-sub {
  max-width: 620px;
  margin: var(--space-xs) 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.gov-sub--follow {
  margin-top: .55rem;
}

.governance-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 920px;
}

.gov-console {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--tint);
}

.gov-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.gov-console-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.gov-console-chip {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--blue);
}

.gov-rows {
  display: flex;
  flex-direction: column;
}

.gov-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
}

.gov-row:first-child {
  border-top: 0;
}

.gov-row-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.gov-row-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.gov-console-foot {
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

.gov-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.gov-action {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
}

.gov-actions.is-visible .gov-action {
  animation: govIn 0.5s var(--ease-enter) forwards;
  animation-delay: calc(var(--d) * 0.09s + 0.1s);
}

@keyframes govIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------- faq */
.faq-list {
  max-width: 760px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1.55rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-q-text {
  min-width: 0;
}

.faq-chevron {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 0.25s var(--ease-enter), color 0.25s ease;
}

.faq-item[open] .faq-chevron {
  color: var(--blue);
  transform: rotate(-90deg);
}

.faq-answer {
  max-width: 660px;
  padding: 0 0 1.5rem;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* -------------------------------------------------------------- final cta */
.cta {
  padding: clamp(5rem, 8vw, 8.4rem) 0;
  border-top: 1px solid var(--border);
  background: var(--tint-2);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-panel {
  width: min(100%, 560px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  text-align: left;
}

.cta-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--tint);
}

.cta-dots {
  display: flex;
  gap: 0.35rem;
}

.cta-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: var(--pill);
  background: var(--border-strong);
}

.cta-tabs {
  display: flex;
  gap: 0.2rem;
  padding: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.cta-tab {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.cta-tab.is-active {
  background: var(--ink);
  color: #fff;
}

.cta-panel-body {
  padding: 0.4rem;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  border-radius: 6px;
}

.cta-row + .cta-row {
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.cta-prompt {
  width: 1.1rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.cta-addr {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cta-addr:hover {
  color: var(--blue);
  text-decoration: underline;
}

.cta-open {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--pill);
  background: var(--blue);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.cta-open:hover {
  background: var(--blue-hover);
}

.cta-sub {
  max-width: 560px;
  margin: var(--space-lg) auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.cta-sub--follow {
  margin-top: .35rem;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

/* ----------------------------------------------------------------- footer */
.footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 5fr;
  gap: clamp(1.75rem, 3.5vw, 3.5rem);
  padding-top: clamp(4rem, 7.5vh, 7rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-wordmark {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}

.footer-wordmark .wordmark-main {
  font-size: 30px;
  letter-spacing: -0.045em;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-ask-copy {
  margin: -.45rem 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-md);
}

.footer-col-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.footer-col a {
  display: block;
  padding: 0.32rem 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
}

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

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom-links a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-bottom-links a:hover {
  color: var(--ink);
}

/* ----------------------------------------------------------- page search */
.search {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: start center;
  padding: 12vh var(--space-sm) 0;
}

.search[hidden] {
  display: none;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 27, 38, 0.34);
  backdrop-filter: blur(3px);
}

.search-panel {
  position: relative;
  width: min(100%, 620px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 40px 90px -50px rgba(17, 27, 38, 0.55);
  overflow: hidden;
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.search-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.search-close {
  display: grid;
  place-items: center;
  padding: 0.3rem;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.search-close:hover {
  color: var(--ink);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.search-results {
  max-height: 52vh;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  overflow-y: auto;
}

.search-result {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.search-result:hover,
.search-result.is-active {
  background: var(--tint);
}

.search-result-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.search-result-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.search-empty {
  margin: 0;
  padding: 1rem 1.2rem 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------- reveal fx */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease-enter), transform 0.65s var(--ease-enter);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------- reduced motion rules */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .marquee-track,
  .hero-cap-col,
  .hero-grain,
  .ctable-bar-fill {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .activity-orbit::before,
  .activity-orbit::after,
  .activity-spark span,
  .metric-card svg path:not(.chart-fill),
  .metric-bars i,
  .node.is-highlighted::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }

  .org-node,
  .org-active-badge,
  .org-signal {
    animation: none !important;
  }

  .org-active-badge,
  .org-signal {
    display: none !important;
  }

  .lane-runner,
  .lane-action,
  .swim-lane-name,
  .lane-dot {
    transition: none !important;
  }

  [data-reveal],
  .gov-action {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .console {
    grid-template-columns: 46px 164px minmax(0, 1fr);
  }

  .extensions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: grid;
  }

  .nav-mobile {
    display: block;
  }

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

  .orgchart-cols,
  .tickets-cols,
  .heartbeat-cols,
  .detail-cols,
  .detail-cols--graphic-first,
  .detail-cols--table-first,
  .governance-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .orgchart-cols {
    align-items: start;
  }

  .heartbeat {
    padding: 72px 0;
  }
}

@media (max-width: 768px) {
  .brand-card {
    width: 9rem;
    height: 7.5rem;
    padding: 0.7rem 0.65rem;
  }

  .brand-logo-wrap {
    height: 34px;
  }

  .brand-logo {
    height: 30px;
    max-width: 78px;
  }

  .brand-logo--wide {
    width: 82px;
    height: auto;
    max-height: 28px;
  }

  .brand-logo--myob { width: 60px; height: 30px; }
  .brand-logo--xero { height: 32px; }
  .brand-logo--google-drive { height: 31px; }
  .brand-logo--excel,
  .brand-logo--outlook,
  .brand-logo--teams,
  .brand-logo--sharepoint,
  .brand-logo--onedrive,
  .brand-logo--microsoft-project { height: 30px; }
  .brand-logo--autocad,
  .brand-logo--autodesk,
  .brand-logo--bluebeam,
  .brand-logo--planswift { height: 32px; }
  .brand-logo--procore,
  .brand-logo--simpro,
  .brand-logo--oracle-aconex { width: 88px; }
  .brand-logo--docusign,
  .brand-logo--buildxact,
  .brand-logo--payapps { width: 80px; }
  .brand-logo--gmail { height: 29px; }

  .brand-name {
    font-size: 0.75rem;
  }

  .systems-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .industries-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .industries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .industry-item {
    min-height: 132px;
    padding: 1.1rem;
  }

  .industry-item h3 {
    font-size: 1.25rem;
  }

  .systems-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem 0.55rem;
  }

  .system-name {
    font-size: 0.66rem;
  }

  .hero {
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  }

  .hero-bg {
    --hero-bg-y: -190px;
  }

  .hero-bg-desktop {
    display: none;
  }

  .hero-bg-mobile {
    display: block;
  }

  .hero-bg-mobile .hero-art {
    width: min(1120px, 156vw);
  }

  .hero-headline {
    max-width: 350px;
    margin: 3.9rem auto 1.1rem;
    font-size: 2.45rem;
    line-height: 1.01;
    letter-spacing: -0.025em;
  }

  .hero-lede {
    max-width: 340px;
    margin-bottom: 1.6rem;
    font-size: .98rem;
    line-height: 1.52;
  }

  .hero-lede--follow {
    margin-top: -1rem;
  }

  .hero-cta-link {
    margin-top: .9rem;
  }

  .hero::after {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 26%,
      rgba(255, 255, 255, 0.6) 44%,
      rgba(255, 255, 255, 0.94) 58%,
      #ffffff 70%
    );
  }

  .steps-grid,
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-card,
  .feature-card {
    padding: 2rem 1.25rem;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console {
    grid-template-columns: 34px 74px minmax(0, 1fr);
    min-height: 520px;
    aspect-ratio: 4 / 5;
  }

  .console-iconbar { gap: .35rem; padding: .5rem .2rem; }
  .console-mark { width: 25px; height: 25px; border-radius: 6px; font-size: 11px; }
  .console-icon { width: 24px; height: 24px; }
  .console-sidebar { padding: .55rem .35rem; }
  .console-brand { margin-bottom: .6rem; }
  .console-brand strong { font-size: .52rem; }
  .console-brand span, .console-nav-label, .console-workspace small { display: none; }
  .console-nav { gap: .08rem; }
  .console-nav-item { gap: .25rem; padding: .34rem .25rem; font-size: .46rem; }
  .console-nav-item b { display: none; }
  .console-workspace { gap: .3rem; }
  .console-workspace strong { font-size: .48rem; }
  .console-main { padding: .55rem; }
  .console-header { align-items: flex-start; flex-direction: column; gap: .3rem; padding-bottom: .45rem; }
  .console-header h3 { font-size: .72rem; }
  .console-kicker, .console-date, .console-avatar { display: none; }
  .preview-label { padding: .18rem .35rem; font-size: 6px; }
  .console-activity { grid-template-columns: auto minmax(0, 1fr) auto; gap: .4rem; margin: .5rem 0; padding: .45rem; }
  .activity-orbit { width: 28px; height: 28px; }
  .activity-spark { display: none; }
  .activity-copy span, .activity-copy small { font-size: .42rem; }
  .activity-copy strong { font-size: .56rem; }
  .activity-delta { font-size: .45rem; }
  .console-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
  .metric-card { min-height: 82px; padding: .4rem; }
  .metric-card > span { font-size: .43rem; }
  .metric-card > strong { font-size: .68rem; }
  .metric-card > small { font-size: .38rem; }
  .metric-card svg, .metric-bars { height: 24px; }
  .health-ring { width: 29px; height: 29px; border-width: 3px; }
  .console-table { margin-top: .35rem; }
  .console-table-head { padding: .35rem .4rem; }
  .console-table-head strong { font-size: .48rem; }
  .console-table-head span, .console-table-head button { display: none; }
  .console-table-row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); min-height: 24px; padding: 0 .35rem; font-size: .38rem; }
  .console-table-row > span:nth-child(3),
  .console-table-row > span:last-child { display: none; }
  .table-icon { width: 15px; height: 15px; }

  .panel--arch,
  .panel--cascade,
  .panel--table,
  .panel--lanes {
    padding: 1.5rem;
  }

  .panel--lanes {
    padding: 1.1rem 1rem .9rem;
  }

  .panel--arch {
    min-height: 0;
    padding: .75rem;
  }

  .org-tree {
    height: 420px;
  }

  .org-node {
    width: 100px;
    height: 56px;
    gap: .2rem;
    padding: 0 .2rem;
    border-radius: 12px;
  }

  .org-node--root { width: 180px; }
  .org-node--middle-centre { width: 108px; }
  .org-node--bottom-left,
  .org-node--bottom-right { width: 100px; }
  .org-node--bottom-left { left: 33%; }
  .org-node--bottom-right { left: 67%; }
  .org-node-icon { flex-basis: 22px; width: 22px; height: 22px; border-radius: 6px; }
  .org-node-copy { gap: .08rem; }
  .org-node-copy strong { font-size: 8px; }
  .org-node-copy small { font-size: 6.5px; }
  .org-active-badge { top: -7px; right: 4px; padding: .12rem .3rem; font-size: 6px; }

  .arch-panel-head { font-size: 7px; }
  .tree-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; }
  .tree-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; width: 68%; }
  .tree-row .node { margin-top: 20px; padding: .38rem; gap: .25rem; border-radius: 8px; }
  .tree-row .node::before { top: -20px; height: 20px; }
  .tree-connector--root { height: 20px; }
  .node--hub { min-width: 175px; padding: .6rem .75rem; border-radius: var(--pill); }
  .node-icon { width: 22px; height: 22px; }
  .node-name { font-size: .52rem; }
  .node-role { font-size: 7px; }
  .tree-row .node-role { display: none; }
  .node-status { gap: 0; padding: .16rem; font-size: 0; }
  .node-status i { width: 4px; height: 4px; }
  .arch-tags { gap: .25rem; }
  .arch-tag { padding: .18rem .4rem; font-size: 7px; }

  .cascade-item {
    margin-left: calc((var(--level, 1) - 1) * 0.6rem);
  }

  .swim-lane {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: .65rem;
    padding: 1.15rem 0;
  }

  .swim-lane-name { font-size: .8rem; }
  .swim-lane-sub { font-size: 8px; }
  .lane-action { max-width: 96px; font-size: 7px; }

  .video-expand {
    right: .45rem;
    bottom: .45rem;
    padding: .4rem .55rem;
    font-size: .66rem;
  }

  .ctable-head,
  .ctable-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ctable-col--bar,
  .ctable-bar {
    display: none;
  }

  .ctable-state {
    min-width: 0;
  }

  .ext-card {
    min-height: 0;
    padding: 1.25rem;
  }

  .faq-question {
    padding: 1.25rem 0;
    font-size: 0.95rem;
  }

  .gov-action {
    font-size: 1.1rem;
  }

  .ruler {
    display: none;
  }

  .ruler-tick {
    height: 7px;
  }
}

@media (max-width: 480px) {
  .wordmark-main {
    font-size: 23px;
  }

  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .extensions-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-row {
    flex-wrap: wrap;
  }

  .cta-addr {
    flex-basis: 100%;
  }
}

@media (max-width: 350px) {
  .industries-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
