/* Altitude Host marketing site — brand tokens from style guide v1.0 */

:root {
  /* Palette */
  --midnight: #08111c;
  --mountain: #1b3a52;
  --sky: #0f7abf;
  --ice: #e3f2fb;
  --cloud: #f4f7f9;
  --snow: #ffffff;
  --slate-body: #3d5060;
  --slate-muted: #6b8fa8;
  --line-light: #dde8ef;

  --bg-deep: var(--midnight);
  /* Slightly deeper than Midnight for the sticky bar (same hue family as #08111C) */
  --header-bar: #050b12;
  --bg-panel: #0e1c2a;
  --bg-elevated: #132536;
  --border: rgba(255, 255, 255, 0.1);
  --border-mount: rgba(27, 58, 82, 0.55);
  --text: var(--cloud);
  --text-muted: #9bb5c8;
  --accent: var(--sky);
  --accent-dim: rgba(15, 122, 191, 0.18);
  --accent-hover: #2d93d4;
  --accent-soft: rgba(15, 122, 191, 0.12);
  --link-hover: #7ec8ef;
  /* Pulse / status copy: diagram labels, “Connected”, Scale … “footprint” */
  --status-positive: rgba(120, 220, 160, 0.95);

  --radius: 10px;
  --radius-lg: 12px;
  --radius-pill: 5px;
  --radius-nav-cta: 4px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --header-h: 72px;
  --max: 1380px;
  --page-pad: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--snow);
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bar);
  border-bottom: 1px solid var(--border-mount);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.logo__img {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(58vw, 276px);
}

.logo:hover .logo__img {
  opacity: 0.9;
}

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

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.75rem;
}

.site-nav__list a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  padding: 0.5rem 0.35rem;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--snow);
  font-weight: 600;
}

.site-nav__cta {
  background: var(--accent);
  color: var(--snow) !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
}

.site-nav__cta:hover {
  background: var(--accent-hover);
  color: var(--snow) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
  position: relative;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s var(--ease);
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-mount);
    padding: 1rem var(--page-pad) 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .site-nav__list a {
    padding: 0.65rem 0;
  }
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 3rem var(--page-pad);
  border-top: 1px solid var(--border-mount);
  background: #0a1522;
}

/* Home ends on What else band — default footer margin + section padding read as double gap */
.page-home .site-footer {
  margin-top: 1.5rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.site-footer__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  max-width: 52rem;
  text-align: center;
}

.site-footer__entity {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.site-footer__pipe {
  color: var(--text-muted);
  font-weight: 400;
}

.site-footer__address {
  color: var(--text-muted);
  font-weight: 400;
}

.site-footer__tag {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Desktop/tablet: keep address on one line; <br> before Boulder only on small screens */
@media (min-width: 768px) {
  br.site-footer__addr-break {
    display: none;
  }
}

@media (max-width: 767px) {
  .site-footer__legal {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: clamp(0.62rem, 2.65vw, 0.78rem);
    letter-spacing: -0.02em;
    line-height: 1.45;
    padding-inline: 0.125rem;
    white-space: normal;
    overflow-wrap: break-word;
    text-wrap: balance;
  }
}

/* Sections */
.section {
  padding: 4.5rem var(--page-pad);
}

.section--tight {
  padding-top: 2.5rem;
}

.section--about {
  padding-bottom: 3.25rem;
}

/* Why Us: less padding under redundancy viz before What else */
.section--why-us {
  padding-bottom: 2rem;
}

/* What else: tighter join + band read (cool panel vs page midnight) */
.section--what-else {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  background-color: var(--bg-panel);
  background-image: radial-gradient(
    ellipse 115% 70% at 50% 0%,
    rgba(15, 122, 191, 0.14),
    transparent 58%
  );
  border-top: 1px solid rgba(15, 122, 191, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section__lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: min(72ch, 100%);
  margin: 0 0 2rem;
}

/* Two leads as one typographic block (line break, not double section spacing) */
.section__lead-stack {
  max-width: min(72ch, 100%);
  margin: 0 0 2rem;
}

.section__lead-stack .section__lead {
  margin: 0;
}

.section__lead-stack .section__lead + .section__lead {
  margin-top: 0.35rem;
}

/* About: room for the second lead to stay one line on typical viewports */
.about-hero {
  max-width: min(38rem, 100%);
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

/* One line when the column fits the sentence; wrap only when narrower than intrinsic width */
.about-hero__lead-inner {
  display: inline-block;
  width: max-content;
  max-width: 100%;
}

.about-hero .section__title {
  line-height: 1.14;
  letter-spacing: -0.025em;
}

/* No extra wrapper box; spacing after block comes from last lead */
.section__lead-stack--about {
  max-width: 100%;
  display: contents;
}

.section__lead-stack--about .section__lead {
  max-width: 100%;
  font-size: 1.02rem;
  line-height: 1.45;
  text-wrap: pretty;
}

/* Second lead: one line at normal widths; wrap only when the viewport is narrow */
.section__lead-stack--about .about-hero__lead-one-line {
  text-wrap: nowrap;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .section__lead-stack--about .about-hero__lead-one-line {
    white-space: normal;
    text-wrap: pretty;
  }
}

.about-hero p.section__lead:last-of-type {
  margin-bottom: 2rem;
}

/* Home: How we work (broadcast compound background) */
.section--how-we-work {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section--how-we-work__bg {
  position: absolute;
  top: -22%;
  bottom: -22%;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: 0;
  background-image: url("/assets/img/how-we-work.jpg");
  background-size: cover;
  background-position: center 42%;
  filter: saturate(0.76) brightness(0.56);
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, -20px, 0) scale(1.1);
  transform-origin: center center;
}

.section--how-we-work__scrim {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
      120deg,
      rgba(8, 17, 28, 0.88) 0%,
      rgba(27, 58, 82, 0.72) 45%,
      rgba(8, 17, 28, 0.78) 100%
    ),
    linear-gradient(
      180deg,
      rgba(15, 122, 191, 0.1) 0%,
      transparent 40%,
      rgba(8, 17, 28, 0.55) 100%
    );
}

.section--how-we-work__inner {
  position: relative;
  z-index: 2;
}

.section--how-we-work .section__title {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.section--how-we-work .section__lead {
  color: rgba(232, 234, 239, 0.78);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

/* How we work: icon cards */
.how-work-layout {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.how-work-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

  .how-work-grid--pair {
    grid-template-columns: 1fr;
  }
}

.how-work-card {
  display: flex;
  flex-direction: column;
  padding: 1.45rem 1.45rem 1.55rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 17, 28, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.how-work-card:hover {
  border-color: rgba(15, 122, 191, 0.35);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(15, 122, 191, 0.08);
  transform: translateY(-3px);
}

.how-work-card--accent {
  border-color: rgba(15, 122, 191, 0.22);
  background: rgba(27, 58, 82, 0.35);
}

.how-work-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  margin: 0 0 1rem;
  border-radius: 11px;
  color: var(--accent);
  background: rgba(15, 122, 191, 0.14);
  border: 1px solid rgba(15, 122, 191, 0.22);
}

.how-work-card__icon svg {
  flex-shrink: 0;
}

.how-work-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.28;
  margin: 0 0 0.65rem;
  color: var(--cloud);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.how-work-card__body {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(244, 247, 249, 0.85);
}

.how-work-card__body p {
  margin: 0 0 0.75rem;
}

.how-work-card__body p:last-child {
  margin-bottom: 0;
}

.how-work-card__body strong {
  color: var(--snow);
  font-weight: 700;
}

.how-work-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--link-hover);
  text-decoration: none;
  transition: color 0.15s var(--ease), gap 0.15s var(--ease);
}

.how-work-card__cta:hover {
  color: #b8e0fb;
  gap: 0.5rem;
}

.how-work-card__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Inline jump to redundancy diagram — same size/line as card body copy */
.how-work-card__how-nowrap {
  white-space: nowrap;
}

.how-work-card__how-btn {
  display: inline;
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  line-height: inherit;
  color: var(--link-hover);
  background: none;
  border: none;
  border-radius: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  vertical-align: baseline;
  transition: color 0.15s var(--ease);
}

.how-work-card__how-btn:hover {
  color: #b8e0fb;
  background: none;
  box-shadow: none;
}

.how-work-card__how-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

#engineered-redundancy {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  .how-work-card,
  .how-work-card:hover {
    transition: none;
    transform: none;
  }

  .how-work-card__cta,
  .how-work-card__cta:hover {
    transition: none;
  }

  .how-work-card__how-btn,
  .how-work-card__how-btn:hover {
    transition: none;
  }
}

.section--how-we-work .how-work-layout {
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}

.why-us__cards {
  margin-top: 0;
}

/* Why Us pair: hover keeps default border/shadow (no blue ring / border shift) */
.why-us__cards
  .how-work-card--on-page:not(.how-work-card--rack-photo):not(
    .how-work-card--events-photo
  ):hover {
  border-color: var(--border);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
}

.why-us__cards .how-work-card--rack-photo:hover,
.why-us__cards .how-work-card--events-photo:hover {
  border-color: rgba(6, 14, 24, 0.85);
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Engineered redundancy diagram (Why Us): interactive paths; auto = primary fail, backup fail (never both wired) */
@property --rv-pkt-ltr {
  syntax: "<time>";
  inherits: true;
  initial-value: 2.1s;
}

@property --rv-pkt-rtl {
  syntax: "<time>";
  inherits: true;
  initial-value: 5.25s;
}

@property --rv-flow-dur {
  syntax: "<time>";
  inherits: true;
  initial-value: 2.08s;
}

.redundancy-viz-scroll {
  margin-top: 2.75rem;
  max-width: min(52rem, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 1.65rem clamp(1rem, 3vw, 1.5rem) 1.2rem;
  background: linear-gradient(
    168deg,
    rgba(14, 24, 38, 0.52) 0%,
    rgba(7, 14, 24, 0.68) 55%,
    rgba(6, 12, 20, 0.78) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.redundancy-viz-scroll--reduced .redundancy-viz__intro {
  display: none;
}

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

.redundancy-viz__eyebrow {
  margin-bottom: 0.5rem;
}

.redundancy-viz-scroll .redundancy-viz__eyebrow.section__label {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 0.55rem;
}

.redundancy-viz__intro {
  margin: 0 auto 0.55rem;
  max-width: 44rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.redundancy-viz__intro + .redundancy-viz__intro {
  margin-bottom: 1.25rem;
}

.redundancy-viz__frame {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) minmax(0, 7.5rem);
  align-items: center;
  gap: 0.85rem 1rem;
  /* Override parent align-items:center so 1fr column keeps width for pipes */
  align-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 1.65rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-mount);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
}

.redundancy-viz__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  z-index: 1;
}

.redundancy-viz__node-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(15, 122, 191, 0.28);
}

.redundancy-viz__node-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.25;
  max-width: 9rem;
}

.redundancy-viz__node-icon-stack {
  position: relative;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.redundancy-viz__node-icon-stack .redundancy-viz__node-glyph {
  position: relative;
  z-index: 1;
}

.redundancy-viz__node--internet {
  gap: 0.18rem;
}

.redundancy-viz__node--internet .redundancy-viz__node-label,
.redundancy-viz__node--dst .redundancy-viz__node-label {
  line-height: 1.1;
  margin: 0;
}

.redundancy-viz__node-label--status {
  color: var(--status-positive);
}

.redundancy-viz__node--internet .redundancy-viz__pulse-label,
.redundancy-viz__node--dst .redundancy-viz__pulse-label {
  margin-top: 0;
  line-height: 1.15;
}

.redundancy-viz__node--dst {
  gap: 0.18rem;
}

.redundancy-viz__dst-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-width: 0;
}

.redundancy-viz__node--internet .redundancy-viz__node-glyph--internet {
  color: rgba(120, 190, 255, 0.98);
  background: rgba(15, 122, 191, 0.12);
  border-color: rgba(120, 190, 255, 0.35);
}

.redundancy-viz__node-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.75rem;
  height: 3.75rem;
  margin: -1.875rem 0 0 -1.875rem;
  border-radius: 50%;
  border: 2px solid rgba(46, 200, 120, 0.45);
  animation: redundancy-viz-ring 2.4s ease-out infinite;
  pointer-events: none;
}

/* Internet pulse leads streaming by ½ s */
.redundancy-viz__node--dst .redundancy-viz__node-ring {
  animation-delay: 0.5s;
}

.redundancy-viz__pulse-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--status-positive);
  margin-top: 0.15rem;
}

.redundancy-viz__node--src .redundancy-viz__pulse-label {
  margin-top: 0.1rem;
}

.redundancy-viz__paths {
  --rv-paths-hint-fg: rgba(160, 178, 198, 0.55);
  --rv-paths-hint-caret-dim: rgba(58, 72, 88, 0.78);
  display: grid;
  grid-template-columns: minmax(7.75rem, 11.5rem) 1fr;
  column-gap: 0.65rem;
  row-gap: 0.75rem;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.redundancy-viz__paths-hint-wrap {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  gap: 0.15rem;
}

.redundancy-viz__paths-hint {
  margin: 0;
  padding: 0 0 0.05rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--rv-paths-hint-fg);
  text-align: center;
}

.redundancy-viz__paths-hint-caret {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--rv-paths-hint-caret-dim);
  animation: redundancy-viz-paths-hint-caret 2.35s ease-in-out infinite;
}

@keyframes redundancy-viz-paths-hint-caret {
  0%,
  100% {
    color: var(--rv-paths-hint-caret-dim);
  }
  50% {
    color: var(--rv-paths-hint-fg);
  }
}

.redundancy-viz__path {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  column-gap: 0.65rem;
  align-items: center;
  width: auto;
  min-width: 0;
  /* Do not transition --rv-* timing vars: interpolating animation-duration causes jank/restarts in browsers. */
  transition: opacity 0.5s var(--ease), filter 0.5s var(--ease);
  opacity: 1;
  filter: saturate(1);
}

.redundancy-viz__path--primary {
  --rv-pkt-ltr: 2.1s;
  --rv-pkt-rtl: 5.25s;
  --rv-flow-dur: 2.08s;
}

.redundancy-viz__path--backup {
  --rv-pkt-ltr: 2.1s;
  --rv-pkt-rtl: 5.25s;
  --rv-flow-dur: 2.31s;
}

.redundancy-viz__path--cellular {
  --rv-pkt-ltr: 2.35s;
  --rv-pkt-rtl: 5.875s;
  --rv-flow-dur: 2.19s;
}

@media (prefers-reduced-motion: reduce) {
  .redundancy-viz__path {
    transition: none;
  }

  .redundancy-viz__pipe {
    transition: none;
  }

  .redundancy-viz__path .redundancy-viz__flow,
  .redundancy-viz__path .redundancy-viz__flow::after,
  .redundancy-viz__path .redundancy-viz__packet {
    transition: none;
  }
}

@supports not (grid-template-columns: subgrid) {
  .redundancy-viz__paths {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .redundancy-viz__paths-hint-wrap {
    align-self: start;
    width: min(11.5rem, 100%);
    max-width: 11.5rem;
  }

  .redundancy-viz__path {
    grid-column: auto;
    grid-template-columns: minmax(7.75rem, 11.5rem) 1fr;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
  }
}

.redundancy-viz__path-label-col {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-self: center;
  width: 100%;
  min-width: 0;
}

.redundancy-viz__path-toggle-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.redundancy-viz__path-toggle-heading {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
}

/* Bonded cellular label often wraps in narrow columns; top-align LED with first line */
.redundancy-viz__path--cellular .redundancy-viz__path-toggle-heading {
  align-items: flex-start;
  gap: 0.28rem;
}

.redundancy-viz__path--cellular .redundancy-viz__path-led {
  margin-top: 0.14rem;
}

.redundancy-viz__path-tech-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  margin-top: 0.1rem;
  padding-left: 0;
}

.redundancy-viz__path-tech-tags--pair {
  gap: 0.22rem;
}

.redundancy-viz__path-tech-tag {
  display: inline-block;
  padding: 0.14rem 0.38rem;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.redundancy-viz__path-tech-tag--fiber {
  color: rgba(255, 232, 210, 0.98);
  background: rgba(200, 95, 35, 0.38);
  border: 1px solid rgba(255, 155, 85, 0.55);
}

.redundancy-viz__path-tech-tag--satellite {
  color: rgba(210, 214, 222, 0.95);
  background: rgba(48, 54, 64, 0.55);
  border: 1px solid rgba(110, 118, 132, 0.55);
}

.redundancy-viz__path-tech-tag--fiveg {
  color: rgba(255, 228, 200, 0.98);
  background: rgba(185, 88, 28, 0.4);
  border: 1px solid rgba(255, 145, 70, 0.52);
}

.redundancy-viz__path-tech-tag--lte {
  color: rgba(200, 230, 255, 0.98);
  background: rgba(20, 85, 145, 0.42);
  border: 1px solid rgba(90, 170, 240, 0.55);
}

.redundancy-viz__path-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0.2rem 0.4rem;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  transition:
    transform 0.22s var(--ease),
    padding 0.22s var(--ease),
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.redundancy-viz__path-toggle:hover,
.redundancy-viz__path-toggle:focus-visible {
  transform: scale(1.07);
  padding: 0.5rem 0.85rem;
  background: rgba(15, 122, 191, 0.16);
  border-color: rgba(15, 122, 191, 0.48);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
}

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

.redundancy-viz__path-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  padding: 0.2rem 0.4rem;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.redundancy-viz__path-led {
  flex-shrink: 0;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: rgba(90, 220, 140, 0.95);
  box-shadow: 0 0 0 2px rgba(90, 220, 140, 0.22);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.redundancy-viz__path .redundancy-viz__path-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.25;
  color: rgba(244, 247, 249, 0.88);
  transition: color 0.35s var(--ease);
}

.redundancy-viz__pipe {
  position: relative;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(8, 17, 28, 0.65);
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  box-shadow: 0 0 16px rgba(15, 122, 191, 0.24);
  border: 1px solid rgba(15, 122, 191, 0.52);
  isolation: isolate;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.redundancy-viz-scroll--reduced .redundancy-viz__pipe {
  cursor: not-allowed;
  pointer-events: none;
}

.redundancy-viz__pipe-hot-standby {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 210, 165, 0.92);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 0 12px rgba(240, 140, 60, 0.35);
  pointer-events: none;
}

/* Sheen: transform on a layer (GPU) instead of background-position (jumpy when sped up) */
.redundancy-viz__path .redundancy-viz__flow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  opacity: 0.72;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.redundancy-viz__path .redundancy-viz__flow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  border-radius: inherit;
  opacity: 1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15, 122, 191, 0.06) 28%,
    rgba(227, 242, 251, 0.14) 48%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(227, 242, 251, 0.14) 52%,
    rgba(15, 122, 191, 0.06) 72%,
    transparent 100%
  );
  transform: translate3d(-105%, 0, 0);
  animation-name: redundancy-viz-flow-sweep;
  animation-duration: var(--rv-flow-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
  backface-visibility: hidden;
  transition: opacity 0.5s ease;
}

/* Phase offsets per path (durations ramp via --rv-flow-dur on .redundancy-viz__path) */
.redundancy-viz__path--primary .redundancy-viz__flow::after {
  animation-delay: 0s;
}

.redundancy-viz__path--backup .redundancy-viz__flow::after {
  animation-delay: -0.62s;
}

.redundancy-viz__path--cellular .redundancy-viz__flow::after {
  animation-delay: -1.07s;
}

.redundancy-viz__path .redundancy-viz__packet {
  position: absolute;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.225rem;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px rgba(15, 122, 191, 0.65);
  animation-name: redundancy-viz-packet-ltr;
  animation-duration: var(--rv-pkt-ltr);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: 0s;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.redundancy-viz__path--primary .redundancy-viz__packet--delay {
  animation-delay: -1.05s;
}

.redundancy-viz__path--backup .redundancy-viz__packet--delay {
  animation-delay: -1.28s;
}

.redundancy-viz__path--cellular .redundancy-viz__packet--delay {
  animation-delay: -1.18s;
}

/* Download (right → left): same crossing speed as LTR; ~⅖ as often (2.5× LTR cycle) */
.redundancy-viz__path .redundancy-viz__packet--rtl {
  animation-name: redundancy-viz-packet-rtl;
  animation-duration: var(--rv-pkt-rtl);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: -0.7s;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.5),
    0 0 10px rgba(15, 122, 191, 0.35);
  visibility: visible;
}

.redundancy-viz__path--backup .redundancy-viz__packet--rtl {
  animation-delay: -2.125s;
}

.redundancy-viz__path--cellular .redundancy-viz__packet--rtl {
  animation-delay: -3.55s;
}

/* Dual wired links healthy: cellular on standby (no flow / packets after warm-up) */
.redundancy-viz-scroll[data-rv-cellular-idle="true"]
  .redundancy-viz__path--cellular:not([data-rv-link-active="false"]) {
  opacity: 0.62;
  filter: saturate(0.55);
}

.redundancy-viz-scroll[data-rv-cellular-idle="true"]
  .redundancy-viz__path--cellular:not([data-rv-link-active="false"])
  .redundancy-viz__path-led {
  background: rgba(200, 165, 75, 0.88);
  box-shadow: 0 0 0 2px rgba(200, 165, 75, 0.24);
}

.redundancy-viz-scroll[data-rv-cellular-idle="true"]
  .redundancy-viz__path--cellular:not([data-rv-link-active="false"])
  .redundancy-viz__path-tag {
  color: rgba(200, 208, 218, 0.62);
}

.redundancy-viz-scroll[data-rv-cellular-idle="true"]
  .redundancy-viz__path--cellular:not([data-rv-link-active="false"])
  .redundancy-viz__pipe {
  box-shadow:
    0 0 14px rgba(240, 130, 50, 0.14),
    inset 0 1px 0 rgba(255, 200, 140, 0.08);
  border-color: rgba(200, 120, 55, 0.42);
}

.redundancy-viz-scroll[data-rv-cellular-idle="true"]
  .redundancy-viz__path--cellular:not([data-rv-link-active="false"])
  .redundancy-viz__pipe::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(160, 85, 28, 0.12) 0%,
    rgba(240, 145, 58, 0.16) 42%,
    rgba(255, 175, 95, 0.13) 50%,
    rgba(220, 115, 40, 0.15) 58%,
    rgba(140, 72, 28, 0.1) 100%
  );
}

.redundancy-viz-scroll[data-rv-cellular-idle="true"]
  .redundancy-viz__path--cellular:not([data-rv-link-active="false"])
  .redundancy-viz__pipe-hot-standby {
  display: flex;
}

.redundancy-viz-scroll[data-rv-cellular-idle="true"]
  .redundancy-viz__path--cellular:not([data-rv-link-active="false"])
  .redundancy-viz__flow {
  opacity: 0;
  z-index: 0;
}

/* Keep flow/packet keyframes running; parent .flow opacity:0 hides — avoids restart jank when idle clears */

.redundancy-viz-scroll[data-rv-cellular-idle="true"]
  .redundancy-viz__path--cellular:not([data-rv-link-active="false"])
  .redundancy-viz__packet {
  visibility: hidden;
  opacity: 0;
  z-index: 0;
}

/* Manual control: per-path on/off (at least one must stay on — enforced in JS) */
.redundancy-viz-scroll[data-rv-manual="true"] .redundancy-viz__path[data-rv-link-active="false"] {
  opacity: 0.52;
  filter: saturate(0.72);
}

.redundancy-viz-scroll[data-rv-manual="true"]
  .redundancy-viz__path[data-rv-link-active="false"]
  .redundancy-viz__path-led {
  background: rgba(232, 106, 106, 0.95);
  box-shadow: 0 0 0 2px rgba(232, 106, 106, 0.28);
}

.redundancy-viz-scroll[data-rv-manual="true"]
  .redundancy-viz__path[data-rv-link-active="false"]
  .redundancy-viz__path-tag {
  color: rgba(200, 208, 218, 0.62);
}

.redundancy-viz-scroll[data-rv-manual="true"]
  .redundancy-viz__path[data-rv-link-active="false"]
  .redundancy-viz__path-tech-tags {
  opacity: 0.5;
}

.redundancy-viz-scroll[data-rv-manual="true"]
  .redundancy-viz__path[data-rv-link-active="false"]
  .redundancy-viz__pipe {
  box-shadow: none;
  border-color: rgba(232, 106, 106, 0.42);
}

.redundancy-viz-scroll[data-rv-manual="true"]
  .redundancy-viz__path[data-rv-link-active="false"]
  .redundancy-viz__flow {
  opacity: 0.08;
}

.redundancy-viz-scroll[data-rv-manual="true"]
  .redundancy-viz__path[data-rv-link-active="false"]
  .redundancy-viz__flow::after {
  opacity: 0;
}

.redundancy-viz-scroll[data-rv-manual="true"]
  .redundancy-viz__path[data-rv-link-active="false"]
  .redundancy-viz__packet {
  visibility: hidden;
  opacity: 0;
}

/* 2 paths up: each path’s flow/packet runs at 2× (half period) vs its 3-path baseline */
.redundancy-viz-scroll[data-rv-manual="true"][data-rv-active-count="2"]
  .redundancy-viz__path--primary[data-rv-link-active="true"] {
  --rv-pkt-ltr: 1.05s;
  --rv-pkt-rtl: 2.625s;
  --rv-flow-dur: 1.04s;
}

.redundancy-viz-scroll[data-rv-manual="true"][data-rv-active-count="2"]
  .redundancy-viz__path--backup[data-rv-link-active="true"] {
  --rv-pkt-ltr: 1.05s;
  --rv-pkt-rtl: 2.625s;
  --rv-flow-dur: 1.155s;
}

.redundancy-viz-scroll[data-rv-manual="true"][data-rv-active-count="2"]
  .redundancy-viz__path--cellular[data-rv-link-active="true"] {
  --rv-pkt-ltr: 1.175s;
  --rv-pkt-rtl: 2.9375s;
  --rv-flow-dur: 1.095s;
}

/* 1 path up: 3× vs that path’s baseline (period ÷ 3) */
.redundancy-viz-scroll[data-rv-manual="true"][data-rv-active-count="1"]
  .redundancy-viz__path--primary[data-rv-link-active="true"] {
  --rv-pkt-ltr: 0.7s;
  --rv-pkt-rtl: 1.75s;
  --rv-flow-dur: 0.693s;
}

.redundancy-viz-scroll[data-rv-manual="true"][data-rv-active-count="1"]
  .redundancy-viz__path--backup[data-rv-link-active="true"] {
  --rv-pkt-ltr: 0.7s;
  --rv-pkt-rtl: 1.75s;
  --rv-flow-dur: 0.77s;
}

.redundancy-viz-scroll[data-rv-manual="true"][data-rv-active-count="1"]
  .redundancy-viz__path--cellular[data-rv-link-active="true"] {
  --rv-pkt-ltr: 0.783s;
  --rv-pkt-rtl: 1.958333s;
  --rv-flow-dur: 0.73s;
}

/* Primary ISP failed; backup + cellular still run (2× traffic speed on surviving links) */
.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="primary-down"] .redundancy-viz__path--primary {
  opacity: 0.52;
  filter: saturate(0.72);
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="primary-down"] .redundancy-viz__path--primary .redundancy-viz__path-led {
  background: rgba(232, 106, 106, 0.95);
  box-shadow: 0 0 0 2px rgba(232, 106, 106, 0.28);
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="primary-down"] .redundancy-viz__path--backup {
  --rv-pkt-ltr: 1.05s;
  --rv-pkt-rtl: 2.625s;
  --rv-flow-dur: 1.155s;
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="primary-down"] .redundancy-viz__path--cellular {
  --rv-pkt-ltr: 1.175s;
  --rv-pkt-rtl: 2.9375s;
  --rv-flow-dur: 1.095s;
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="primary-down"] .redundancy-viz__path--primary .redundancy-viz__pipe {
  box-shadow: none;
  border-color: rgba(232, 106, 106, 0.42);
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="primary-down"] .redundancy-viz__path--primary .redundancy-viz__flow {
  opacity: 0.08;
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="primary-down"] .redundancy-viz__path--primary .redundancy-viz__flow::after {
  opacity: 0;
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="primary-down"] .redundancy-viz__path--primary .redundancy-viz__packet {
  visibility: hidden;
  opacity: 0;
}

/* Backup ISP failed; primary + cellular still run (2× on each survivor vs its own baseline) */
.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="backup-down"] .redundancy-viz__path--backup {
  opacity: 0.52;
  filter: saturate(0.72);
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="backup-down"] .redundancy-viz__path--backup .redundancy-viz__path-led {
  background: rgba(232, 106, 106, 0.95);
  box-shadow: 0 0 0 2px rgba(232, 106, 106, 0.28);
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="backup-down"] .redundancy-viz__path--primary {
  --rv-pkt-ltr: 1.05s;
  --rv-pkt-rtl: 2.625s;
  --rv-flow-dur: 1.04s;
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="backup-down"] .redundancy-viz__path--cellular {
  --rv-pkt-ltr: 1.175s;
  --rv-pkt-rtl: 2.9375s;
  --rv-flow-dur: 1.095s;
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="backup-down"] .redundancy-viz__path--backup .redundancy-viz__pipe {
  box-shadow: none;
  border-color: rgba(232, 106, 106, 0.42);
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="backup-down"] .redundancy-viz__path--backup .redundancy-viz__flow {
  opacity: 0.08;
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="backup-down"] .redundancy-viz__path--backup .redundancy-viz__flow::after {
  opacity: 0;
}

.redundancy-viz-scroll:not([data-rv-manual="true"])[data-rv-scenario="backup-down"] .redundancy-viz__path--backup .redundancy-viz__packet {
  visibility: hidden;
  opacity: 0;
}

@keyframes redundancy-viz-flow-sweep {
  0% {
    transform: translate3d(-105%, 0, 0);
  }
  100% {
    transform: translate3d(195%, 0, 0);
  }
}

/* One-way pass: left → right only; fade out at end, invisible reset at start (no return leg) */
@keyframes redundancy-viz-packet-ltr {
  0% {
    left: 0.5rem;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  88% {
    left: calc(100% - 0.85rem);
    opacity: 1;
  }
  97% {
    opacity: 0;
  }
  100% {
    left: calc(100% - 0.85rem);
    opacity: 0;
  }
}

/* Streaming / venue side (download): motion uses 40% of a 2.5×-long cycle = same wall-clock speed as LTR, ~⅖ as often */
@keyframes redundancy-viz-packet-rtl {
  0%,
  60% {
    left: calc(100% - 0.85rem);
    opacity: 0;
  }
  62% {
    left: calc(100% - 0.85rem);
    opacity: 1;
  }
  95.2% {
    left: 0.5rem;
    opacity: 1;
  }
  98.8% {
    left: 0.5rem;
    opacity: 0;
  }
  100% {
    left: 0.5rem;
    opacity: 0;
  }
}

/* Narrow / stacked frame: venue above pipes and destinations below — vertical pipes + TTB/BTT motion */
@keyframes redundancy-viz-flow-sweep-v {
  0% {
    transform: translate3d(0, -105%, 0);
  }
  100% {
    transform: translate3d(0, 195%, 0);
  }
}

@keyframes redundancy-viz-packet-ttb {
  0% {
    top: 0.5rem;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  88% {
    top: calc(100% - 0.85rem);
    opacity: 1;
  }
  97% {
    opacity: 0;
  }
  100% {
    top: calc(100% - 0.85rem);
    opacity: 0;
  }
}

@keyframes redundancy-viz-packet-btt {
  0%,
  60% {
    top: calc(100% - 0.85rem);
    opacity: 0;
  }
  62% {
    top: calc(100% - 0.85rem);
    opacity: 1;
  }
  95.2% {
    top: 0.5rem;
    opacity: 1;
  }
  98.8% {
    top: 0.5rem;
    opacity: 0;
  }
  100% {
    top: 0.5rem;
    opacity: 0;
  }
}

@keyframes redundancy-viz-ring {
  0% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.redundancy-viz__status {
  --rv-status-line: 1.4;
  --rv-status-pad-y: 1rem; /* matches vertical padding sum; keep in sync below */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto 1.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(27, 58, 82, 0.35);
  border: 1px solid rgba(15, 122, 191, 0.2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: var(--rv-status-line);
  color: var(--cloud);
  max-width: 36rem;
  /* Fixed min height ≥ tallest normal message so copy swaps don’t move the diagram */
  min-height: calc(
    0.8125rem * var(--rv-status-line) * 2.5 + var(--rv-status-pad-y)
  );
  box-sizing: border-box;
}

.redundancy-viz__status-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(90, 220, 140, 0.95);
  box-shadow: 0 0 0 3px rgba(90, 220, 140, 0.2);
  animation: redundancy-viz-blink 1.6s ease-in-out infinite;
}

/* Bonded cellular idle / hot standby: warm status + bar treatment */
.redundancy-viz-scroll[data-rv-cellular-idle="true"]
  .redundancy-viz__status:not(.redundancy-viz__status--engineering, .redundancy-viz__status--nope, .redundancy-viz__status--sabotage) {
  border-color: rgba(220, 140, 72, 0.38);
  background: linear-gradient(
    135deg,
    rgba(42, 32, 22, 0.42) 0%,
    rgba(27, 58, 82, 0.32) 100%
  );
}

.redundancy-viz-scroll[data-rv-cellular-idle="true"]
  .redundancy-viz__status:not(.redundancy-viz__status--engineering, .redundancy-viz__status--nope, .redundancy-viz__status--sabotage)
  .redundancy-viz__status-dot {
  background: rgba(240, 155, 72, 0.96);
  box-shadow:
    0 0 0 3px rgba(240, 155, 72, 0.26),
    0 0 14px rgba(240, 140, 60, 0.22);
  animation: redundancy-viz-blink-warm 2s ease-in-out infinite;
}

@keyframes redundancy-viz-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

@keyframes redundancy-viz-blink-warm {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.72;
    transform: scale(0.94);
  }
}

.redundancy-viz__status-text {
  text-align: center;
  line-height: var(--rv-status-line, 1.4);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Narrow only: JS splits scenario copy at “: ” into lead + detail lines */
@media (max-width: 640px) {
  .redundancy-viz__status-text .redundancy-viz__status-line {
    display: block;
  }

  .redundancy-viz__status-text .redundancy-viz__status-line--detail {
    margin-top: 0.12rem;
    line-height: var(--rv-status-line, 1.4);
  }
}

.redundancy-viz__status--engineering,
.redundancy-viz__status--nope,
.redundancy-viz__status--sabotage {
  justify-content: center;
  min-height: unset;
}

.redundancy-viz__status--engineering .redundancy-viz__status-dot,
.redundancy-viz__status--nope .redundancy-viz__status-dot,
.redundancy-viz__status--sabotage .redundancy-viz__status-dot {
  display: none;
}

.redundancy-viz__status-text--engineering,
.redundancy-viz__status-text--nope,
.redundancy-viz__status-text--sabotage {
  flex: 1;
  width: 100%;
}

.redundancy-viz__status-text--engineering {
  /* Same size as normal scenario copy; --nope / --sabotage scale up */
  font-size: inherit;
  font-weight: inherit;
  color: #f0a040;
  text-shadow: 0 0 24px rgba(240, 160, 64, 0.38);
}

.redundancy-viz__status-text--nope {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e84848;
  text-shadow: 0 0 24px rgba(232, 72, 72, 0.35);
}

.redundancy-viz__status-text--sabotage {
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  color: #e84848;
  text-shadow: 0 0 24px rgba(232, 72, 72, 0.35);
}

@media (max-width: 640px) {
  .redundancy-viz__status {
    flex-direction: column;
    align-items: center;
    gap: 0.42rem;
    min-height: calc(
      0.8125rem * var(--rv-status-line) * 4 + var(--rv-status-pad-y)
    );
    scroll-margin-top: calc(var(--header-h) + 0.75rem);
    scroll-margin-bottom: 1rem;
  }

  /* Easter messages: same reserved height as scenario copy; center in column (not top) */
  .redundancy-viz__status.redundancy-viz__status--engineering,
  .redundancy-viz__status.redundancy-viz__status--nope,
  .redundancy-viz__status.redundancy-viz__status--sabotage {
    justify-content: center;
    min-height: calc(
      0.8125rem * var(--rv-status-line) * 4 + var(--rv-status-pad-y)
    );
  }

  .redundancy-viz__status.redundancy-viz__status--engineering
    .redundancy-viz__status-text--engineering,
  .redundancy-viz__status.redundancy-viz__status--nope
    .redundancy-viz__status-text--nope,
  .redundancy-viz__status.redundancy-viz__status--sabotage
    .redundancy-viz__status-text--sabotage {
    flex: 0 0 auto;
  }

  .redundancy-viz__frame {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.35rem 1rem;
  }

  .redundancy-viz__node--src {
    order: 1;
  }

  .redundancy-viz__paths {
    order: 2;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0.35rem;
    row-gap: 0.6rem;
    align-items: start;
  }

  .redundancy-viz__paths-hint-wrap {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }

  .redundancy-viz__path {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
  }

  .redundancy-viz__path-label-col {
    align-self: stretch;
  }

  .redundancy-viz__path .redundancy-viz__path-toggle {
    padding: 0.15rem 0.2rem;
    max-width: 100%;
  }

  .redundancy-viz__path .redundancy-viz__path-tag {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .redundancy-viz__path .redundancy-viz__path-tech-tags {
    gap: 0.2rem;
  }

  .redundancy-viz__path .redundancy-viz__path-tech-tag {
    font-size: 0.48rem;
    padding: 0.1rem 0.28rem;
  }

  /* Tighter LED ↔ “Bonded Cellular” in narrow three-column row */
  .redundancy-viz__path--cellular .redundancy-viz__path-toggle-heading {
    gap: 0.08rem;
  }

  .redundancy-viz__path--cellular .redundancy-viz__path-led {
    margin-top: 0.05rem;
  }

  .redundancy-viz__pipe {
    width: min(2.15rem, 100%);
    height: clamp(3.85rem, 24vw, 5.85rem);
    flex-shrink: 0;
    align-self: center;
  }

  .redundancy-viz__path .redundancy-viz__flow::after {
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    transform: translate3d(0, -105%, 0);
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(15, 122, 191, 0.06) 28%,
      rgba(227, 242, 251, 0.14) 48%,
      rgba(255, 255, 255, 0.16) 50%,
      rgba(227, 242, 251, 0.14) 52%,
      rgba(15, 122, 191, 0.06) 72%,
      transparent 100%
    );
    animation-name: redundancy-viz-flow-sweep-v;
  }

  .redundancy-viz__path .redundancy-viz__packet {
    top: 0.5rem;
    left: 50%;
    margin-top: 0;
    margin-left: -0.225rem;
    animation-name: redundancy-viz-packet-ttb;
  }

  .redundancy-viz__path .redundancy-viz__packet--rtl {
    animation-name: redundancy-viz-packet-btt;
  }

  .redundancy-viz-scroll[data-rv-cellular-idle="true"]
    .redundancy-viz__path--cellular:not([data-rv-link-active="false"])
    .redundancy-viz__pipe::before {
    background: linear-gradient(
      180deg,
      rgba(160, 85, 28, 0.12) 0%,
      rgba(240, 145, 58, 0.16) 42%,
      rgba(255, 175, 95, 0.13) 50%,
      rgba(220, 115, 40, 0.15) 58%,
      rgba(140, 72, 28, 0.1) 100%
    );
  }

  .redundancy-viz__dst-column {
    order: 3;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0.45rem;
    width: 100%;
  }

  .redundancy-viz__dst-column > .redundancy-viz__node {
    flex: 1 1 0;
    min-width: 0;
  }

  .redundancy-viz__dst-column .redundancy-viz__node--internet .redundancy-viz__node-label--status {
    display: block;
    margin-top: 0.14rem;
    line-height: 1.2;
  }

  /* Vertical cellular pipe: run “Hot standby” along the pipe, not across its width */
  .redundancy-viz-scroll[data-rv-cellular-idle="true"]
    .redundancy-viz__path--cellular:not([data-rv-link-active="false"])
    .redundancy-viz__pipe-hot-standby {
    display: block;
    inset: unset;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: max-content;
    max-width: none;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    font-size: 0.42rem;
    letter-spacing: 0.1em;
    line-height: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .redundancy-viz__intro {
    display: none;
  }

  .redundancy-viz__paths-hint-caret {
    animation: none;
    color: var(--rv-paths-hint-fg);
    opacity: 1;
  }

  .redundancy-viz__flow::after,
  .redundancy-viz__packet,
  .redundancy-viz__node-ring,
  .redundancy-viz__status-dot {
    animation: none !important;
  }

  .redundancy-viz__flow::after {
    transform: translate3d(0, 0, 0);
    opacity: 0;
    will-change: auto;
  }

  .redundancy-viz__node-ring {
    opacity: 0.35;
    transform: scale(1);
  }

  .redundancy-viz__path {
    opacity: 0.88;
    filter: none;
  }

  .redundancy-viz__path .redundancy-viz__packet {
    opacity: 0;
  }

  .redundancy-viz__path .redundancy-viz__path-tag {
    color: rgba(200, 208, 218, 0.88);
  }

  .redundancy-viz__path-led {
    background: rgba(130, 185, 150, 0.85);
    box-shadow: 0 0 0 2px rgba(130, 185, 150, 0.2);
  }

  .redundancy-viz-scroll[data-rv-cellular-idle="true"]
    .redundancy-viz__path--cellular:not([data-rv-link-active="false"])
    .redundancy-viz__path-led {
    background: rgba(200, 165, 75, 0.88);
    box-shadow: 0 0 0 2px rgba(200, 165, 75, 0.24);
  }

  .redundancy-viz-scroll[data-rv-cellular-idle="true"]
    .redundancy-viz__status:not(.redundancy-viz__status--engineering, .redundancy-viz__status--nope, .redundancy-viz__status--sabotage)
    .redundancy-viz__status-dot {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.how-work-card--on-page {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
}

.how-work-card--on-page:hover {
  border-color: rgba(15, 122, 191, 0.25);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(15, 122, 191, 0.06);
}

.how-work-card--on-page.how-work-card--accent {
  border-color: rgba(15, 122, 191, 0.26);
  background: var(--bg-elevated);
}

.how-work-card--on-page .how-work-card__title {
  text-shadow: none;
}

/* Why Us: photo cards — ::before image (cover + scale) + ::after scrim; --photo-parallax-* from JS */
.how-work-card--on-page.how-work-card--accent.how-work-card--rack-photo,
.how-work-card--on-page.how-work-card--accent.how-work-card--events-photo {
  --photo-parallax-y: 0px;
  --photo-parallax-x: 0px;
  position: relative;
  overflow: hidden;
  background-color: #040d16;
  border: 1px solid rgba(6, 14, 24, 0.85);
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.how-work-card--on-page.how-work-card--accent.how-work-card--rack-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("/assets/img/rack-patch-field.png");
  background-size: cover;
  background-position: calc(18% + var(--photo-parallax-x))
    calc(36% + var(--photo-parallax-y));
  background-repeat: no-repeat;
  transform: scale(1.2);
  transform-origin: 18% 36%;
}

.how-work-card--on-page.how-work-card--accent.how-work-card--rack-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgba(2, 8, 16, 0.96) 0%,
    rgba(2, 8, 16, 0.78) 42%,
    rgba(2, 8, 16, 0.94) 100%
  );
}

.how-work-card--on-page.how-work-card--accent.how-work-card--events-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("/assets/img/why-us-events-venue.jpg");
  background-size: cover;
  /* Top-anchored: open / ceiling area at top of card, crowd toward bottom */
  background-position: calc(48% + var(--photo-parallax-x))
    calc(0% + var(--photo-parallax-y));
  background-repeat: no-repeat;
  transform: scale(1.2);
  transform-origin: 48% 0%;
}

.how-work-card--on-page.how-work-card--accent.how-work-card--events-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Lighter scrim so the venue photo reads clearly; still darker toward bottom for type contrast */
  background: linear-gradient(
    180deg,
    rgba(8, 10, 20, 0.5) 0%,
    rgba(5, 8, 18, 0.62) 38%,
    rgba(2, 8, 18, 0.78) 72%,
    rgba(2, 6, 14, 0.86) 100%
  );
}

.how-work-card--on-page.how-work-card--rack-photo > *,
.how-work-card--on-page.how-work-card--events-photo > * {
  position: relative;
  z-index: 2;
}

.how-work-card--on-page.how-work-card--rack-photo .how-work-card__title,
.how-work-card--on-page.how-work-card--events-photo .how-work-card__title {
  font-size: 1.25rem;
  line-height: 1.3;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.78), 0 0 1px rgba(0, 0, 0, 0.85);
}

.how-work-card--on-page.how-work-card--rack-photo .how-work-card__body,
.how-work-card--on-page.how-work-card--events-photo .how-work-card__body {
  font-size: 0.875rem;
  line-height: 1.68;
  color: rgba(244, 247, 249, 0.92);
}

.how-work-card--on-page.how-work-card--rack-photo .how-work-card__icon,
.how-work-card--on-page.how-work-card--events-photo .how-work-card__icon {
  background: rgba(4, 12, 22, 0.55);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.how-work-card--on-page.how-work-card--rack-photo .how-work-card__cta,
.how-work-card--on-page.how-work-card--events-photo .how-work-card__cta {
  font-size: 0.9375rem;
}

.how-work-card__title-accent {
  color: var(--status-positive);
}

/* Hero (home only): keep min-height modest — large vh + flex-start leaves a dead zone below CTAs */
.hero {
  position: relative;
  min-height: clamp(248px, 30vh, 360px);
  display: flex;
  align-items: flex-start;
  padding: 1.75rem var(--page-pad) 1.1rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.45);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 17, 28, 0.94) 0%,
    rgba(8, 17, 28, 0.62) 42%,
    rgba(27, 58, 82, 0.45) 100%
  );
  z-index: 1;
}

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

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 5vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
  max-width: min(34ch, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
}

.hero__title-line {
  display: block;
}

.hero__title-line--sub {
  font-weight: 700;
  font-size: 0.78em;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: rgba(244, 247, 249, 0.72);
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: min(52ch, 100%);
  margin: 0 0 1.1rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Logo marquee (home + services onsite band — data: vendorStrip.json, template: _includes/logo-marquee.njk) */
.logo-marquee {
  border-top: 1px solid var(--border-mount);
  border-bottom: 1px solid var(--border-mount);
  background: var(--bg-panel);
  padding: 0.65rem 0 0.85rem;
}

.logo-marquee--services-band {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 0.5rem;
}

.logo-marquee__label {
  margin: 0 auto 0.5rem;
  padding: 0 var(--page-pad);
  max-width: var(--max);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-muted);
  text-align: center;
}

.logo-marquee__viewport {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: logo-marquee-slide 50s linear infinite;
}

.logo-marquee__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0.35rem 1rem;
}

.logo-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 4.25rem;
}

/* Unified gray strip: ~ --text-muted; per-source tuning */
.logo-marquee__img {
  display: block;
  height: 26px;
  width: auto;
  max-width: min(118px, 28vw);
  max-height: 26px;
  object-fit: contain;
  object-position: center;
}

.logo-marquee__img--svg {
  filter: grayscale(100%) brightness(1.12);
  opacity: 0.78;
}

.logo-marquee__img--raster {
  filter: grayscale(100%) brightness(1.08) contrast(1.05);
  opacity: 0.74;
}

.logo-marquee__img--dark {
  filter: grayscale(100%) invert(1) brightness(0.92);
  opacity: 0.76;
}

.logo-marquee__img--light {
  filter: grayscale(100%);
  opacity: 0.52;
}

/* Wordmarks / glyphs with extra viewBox padding (Sony, Juniper) or light marks that read small (Ross) */
.logo-marquee__img--boost {
  height: 32px;
  max-height: 32px;
  max-width: min(132px, 30vw);
}

.logo-marquee__img--boost.logo-marquee__img--light {
  opacity: 0.6;
}

@keyframes logo-marquee-slide {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track {
    animation: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .logo-marquee__list--duplicate {
    display: none;
  }

  .logo-marquee__list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.35rem var(--page-pad);
    max-width: var(--max);
  }

  .logo-marquee__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Buttons — web sizing (readable); not the 12px style-guide specimen size */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

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

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

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--snow);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--snow);
}

/* Feature grid */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.65rem;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  border-color: rgba(15, 122, 191, 0.25);
  transform: translateY(-2px);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}

/* Image band */
.media-split {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .media-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
}

/* Services / On-Site band: single-column view — photo above heading (desktop keeps text | image columns) */
@media (max-width: 899px) {
  #onsite .media-split {
    display: flex;
    flex-direction: column;
  }

  #onsite .media-split .media-split__img {
    order: -1;
  }
}

/* Streaming band: narrow view — encoder diagram + caption visuals above copy (desktop keeps staggered grid) */
@media (max-width: 899px) {
  #streaming .services-stream-row {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: stretch;
  }

  #streaming .services-stream-row__figure {
    order: -1;
  }

  #streaming .services-stream-row__figure--offset-down {
    transform: none;
  }
}

.media-split__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.media-split__img img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.media-split__img-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 2vw, 1rem);
}

/* Services list */
.service-block {
  margin-bottom: 3rem;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

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

/* Home: What else (icon rows) */
.what-else-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.what-else-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.what-else-item:first-child {
  padding-top: 0;
}

.what-else-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.what-else-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  flex-shrink: 0;
  border-radius: 11px;
  color: var(--accent);
  background: rgba(15, 122, 191, 0.12);
  border: 1px solid rgba(15, 122, 191, 0.22);
}

.what-else-item__icon svg {
  flex-shrink: 0;
}

/* Slightly under .section__lead (1.1rem); aligns with hero subtitle (1rem) tier */
.what-else-item__body {
  font-size: 0.9375rem;
  line-height: 1.62;
  padding-top: 0.2rem;
}

.what-else-item__body strong {
  color: var(--text);
  font-weight: 600;
}

.what-else-cta {
  margin: 1.5rem 0 0;
  text-align: center;
}

/* Services page (scannable layout) */
.section--flush-top {
  padding-top: 0.25rem;
}

.section--services-pillars {
  padding-bottom: 1.75rem;
}

/* Protocols sits right after pillar grid — trim default section top air */
.section--services-protocols {
  padding-top: 1.65rem;
}

/* “What we deliver” + protocols → “How we work”: distinct band + tighter join */
.services-how-it-works {
  background-color: var(--bg-panel);
  background-image: radial-gradient(
    ellipse 120% 60% at 50% 0%,
    rgba(15, 122, 191, 0.14),
    transparent 58%
  );
  border-top: 1px solid rgba(15, 122, 191, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding-top: 1.35rem;
  padding-bottom: 2.25rem;
}

.services-how-it-works__head {
  padding: 0 var(--page-pad);
  margin-bottom: 0.5rem;
}

.services-how-it-works__title {
  margin-bottom: 0;
}

.services-how-it-works .services-band {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.services-how-it-works .services-band:first-of-type {
  border-top: none;
  padding-top: 0.85rem;
}

/* Logo marquee sits between onsite and venue — skip extra band divider + tighter join */
.services-how-it-works #venue.services-band {
  border-top: none;
  padding-top: 0.85rem;
}

.services-how-it-works .media-split {
  margin-top: 1.15rem;
}

.services-how-it-works .services-stream-split {
  margin-top: 1.15rem;
}

@media (min-width: 900px) {
  .services-how-it-works .media-split {
    align-items: center;
  }

  .services-how-it-works .services-stream-row {
    align-items: center;
  }

  /* Encoder diagram row: stay vertically centered with copy (no nudge) */
  .services-stream-row--figure-end .services-stream-row__figure--vcenter {
    align-self: center;
  }
}

/* Streaming band: two staggered image rows (opposite sides) */
.services-stream-split {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.services-stream-cta {
  margin-top: clamp(0.25rem, 1.5vw, 0.75rem);
  margin-bottom: 0;
}

.services-stream-cta .btn--cta-contact {
  min-height: 3rem;
  padding: 0.95rem 2rem;
  font-size: 1.0625rem;
}

.services-stream-row {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

@media (min-width: 900px) {
  .services-stream-row {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 4vw, 4rem);
  }

  .services-stream-row--figure-start .services-stream-row__text {
    grid-column: 2;
    grid-row: 1;
  }

  .services-stream-row--figure-start .services-stream-row__figure {
    grid-column: 1;
    grid-row: 1;
  }

  .services-stream-row__figure--offset-down {
    transform: translateY(clamp(0.75rem, 2.2vw, 1.5rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-stream-row__figure--offset-down {
    transform: none;
  }
}

/* Streaming diagram: thumb control */
.services-stream-lightbox-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  font: inherit;
  cursor: zoom-in;
  text-align: left;
  background: transparent;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.services-stream-lightbox-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.services-stream-lightbox-trigger img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Full-screen image viewer */
body.has-image-lightbox {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  animation: image-lightbox-in 0.2s ease both;
}

@keyframes image-lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(5, 12, 20, 0.9);
  cursor: zoom-out;
}

.image-lightbox__backdrop:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.image-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1120px);
  max-height: 90vh;
  margin: 0;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

.image-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

@media (prefers-reduced-motion: reduce) {
  .image-lightbox {
    animation: none;
  }

  .protocols-highlight-wrap.protocols-highlight--active {
    animation: none;
  }
}

#protocols {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.protocols-highlight-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-sizing: border-box;
}

.protocols-highlight-wrap .section__title {
  margin-top: 0;
  max-width: 100%;
}

.protocols-highlight-wrap .services-pills {
  margin-bottom: 0;
}

.protocols-highlight-wrap.protocols-highlight--active {
  animation: protocols-highlight-pulse 0.5s ease-in-out forwards;
}

@keyframes protocols-highlight-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(15, 122, 191, 0),
      0 0 0 0 rgba(15, 122, 191, 0);
  }
  15% {
    box-shadow:
      0 0 0 2px rgba(45, 147, 212, 0.95),
      0 0 32px rgba(15, 122, 191, 0.42);
  }
  25% {
    box-shadow:
      0 0 0 0 rgba(15, 122, 191, 0),
      0 0 0 0 rgba(15, 122, 191, 0);
  }
  40% {
    box-shadow:
      0 0 0 2px rgba(45, 147, 212, 0.95),
      0 0 32px rgba(15, 122, 191, 0.42);
  }
  50%,
  100% {
    box-shadow:
      0 0 0 0 rgba(15, 122, 191, 0),
      0 0 0 0 rgba(15, 122, 191, 0);
  }
}

/* Hero lead: full width on small screens; wider measure on desktop to avoid orphan words */
.services-hero__lead {
  max-width: 100%;
  margin-bottom: 1.2rem;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .services-hero__lead {
    max-width: min(92ch, 100%);
  }
}

.services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-chips li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.section__title--services-sub {
  font-size: clamp(1.32rem, 3vw, 1.72rem);
  margin-bottom: 0.55rem;
}

.services-pillars__intro {
  margin-bottom: 1.65rem;
  max-width: min(72ch, 100%);
  text-wrap: pretty;
}

/*
 * Services pillars: flex fallback (no JS / no ResizeObserver).
 * With JS, .services-pillar-grid--masonry uses shortest-column packing so shorter cards
 * sit higher; column widths stay even for straight vertical gutters.
 */
.services-pillar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.service-pillar {
  flex: 1 1 280px;
  min-width: min(100%, 240px);
  max-width: min(400px, 100%);
  box-sizing: border-box;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem 1.35rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.services-pillar-grid.services-pillar-grid--masonry {
  display: block;
  position: relative;
}

.services-pillar-grid.services-pillar-grid--masonry .service-pillar {
  flex: none;
  min-width: 0;
  max-width: none;
}

.service-pillar:hover {
  border-color: rgba(15, 122, 191, 0.22);
  transform: translateY(-2px);
}

.service-pillar__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.service-pillar__icon svg {
  display: block;
}

.service-pillar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.service-pillar__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.service-pillar .service-pillar__text + .service-pillar__text {
  margin-top: 0.65rem;
}

.service-pillar__text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.service-pillar__text a:hover {
  color: var(--text);
}

.services-band {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.services-band__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.18rem, 2.4vw, 1.42rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.services-band__lede {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.services-band__lede--tight {
  margin-bottom: 0.75rem;
}

.services-band__subhead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  margin: 1.35rem 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.services-checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-checks li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.services-checks li:last-child {
  margin-bottom: 0;
}

.services-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

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

.services-panel-icon {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
}

.services-panel-icon__glyph {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-panel-icon .services-band__title {
  margin-top: 0;
}

.services-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-pill {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.32rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
}

/* Services page: subtle midnight band before footer */
.services-page-tail {
  min-height: clamp(1.35rem, 3vw, 2rem);
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.services-cta {
  margin: 2rem 0 0;
  text-align: center;
}

@media (max-width: 599px) {
  .services-chips {
    flex-direction: column;
    align-items: stretch;
  }

  .services-chips li {
    text-align: center;
  }
}

/* Team */
.team-intro {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.35rem 0 0;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.team-intro p {
  margin: 0;
}

.team-intro__kicker {
  color: var(--accent-hover);
  font-weight: 700;
}

.team-intro p + p {
  margin-top: 0.85rem;
}

/* About: experience stat + grid + languages + CTA in one distinct panel */
.about-team-panel {
  margin-top: 1.5rem;
  padding: clamp(1.35rem, 3.2vw, 2.15rem);
  background: var(--bg-panel);
  background-image: radial-gradient(
    ellipse 95% 55% at 50% 0%,
    rgba(15, 122, 191, 0.1),
    transparent 58%
  );
  border: 1px solid rgba(15, 122, 191, 0.14);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 1px 0 rgba(0, 0, 0, 0.2);
}

.about-team-panel .team-stat {
  margin: 0 auto 1.5rem;
}

.about-team-panel .about-cta {
  margin-top: 1.35rem;
  padding-top: 0;
}

.about-team-panel .team-card:not(.team-card--beyond) {
  background: rgba(10, 22, 34, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
}

.team-stat {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  text-align: center;
}

.team-stat__primary {
  display: block;
  font-weight: 700;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.team-stat__secondary {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  gap: 0.85rem 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

.team-grid > .team-card {
  position: relative;
  z-index: 1;
}

.team-grid > .team-card:hover {
  z-index: 50;
}

/* Column span set by JS to sit beside last staff card and fill the row */
.team-grid > .team-card--beyond {
  grid-column: auto / span 1;
  min-width: 0;
  min-height: clamp(11.5rem, 32vw, 17rem);
  justify-content: center;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(5, 10, 18, 0.42) 0%,
      rgba(5, 10, 18, 0.72) 100%
    ),
    var(--midnight) url("/assets/img/about-team-beyond-bg.png") center 25% / cover no-repeat;
  border-color: rgba(255, 255, 255, 0.14);
}

.team-card {
  container-type: inline-size;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.team-card__photo {
  position: relative;
  z-index: 2;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, var(--bg-elevated), var(--mountain));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Clips image/initials only so language tooltips can extend past the square */
.team-card__photo-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.team-card__langs {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.22rem;
  max-width: calc(100% - 0.6rem);
  pointer-events: none;
}

.team-card__lang {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25em;
  padding: 0.14em 0.38em;
  margin: 0;
  font: inherit;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: clamp(0.58rem, 4.25cqi, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: #aeb6c4;
  background: rgba(18, 20, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 4px;
  box-shadow: none;
  appearance: none;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

.team-card__lang::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: calc(100% + 0.3rem);
  z-index: 100;
  min-width: max-content;
  max-width: min(13.5rem, calc(100vw - 2 * var(--page-pad)));
  padding: 0.4rem 0.55rem;
  font-family: var(--font-sans);
  font-size: clamp(0.62rem, 3.4cqi, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.team-card__lang:hover::after {
  opacity: 1;
  transition: opacity 0.18s ease 0.48s;
}

.team-card__lang.team-card__lang--tip-open::after,
.team-card__lang:focus-visible::after {
  opacity: 1;
  transition: opacity 0.18s ease 0s;
}

@media (prefers-reduced-motion: reduce) {
  .team-card__lang:hover::after {
    transition-delay: 0s;
  }
}

.team-card__photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__initials {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.team-card__body {
  position: relative;
  z-index: 1;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0.75rem 0.85rem 0.9rem;
}

.team-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0 0 0.15rem;
}

.team-card__title {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Person cards: hide job title for now (still in markup + team.json for later) */
.team-grid > .team-card:not(.team-card--beyond) .team-card__title {
  display: none;
}

.team-grid > .team-card:not(.team-card--beyond) .team-card__name {
  margin-bottom: 0.5rem;
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.team-card .tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: rgba(227, 242, 251, 0.12);
  color: var(--ice);
  border: 1px solid rgba(15, 122, 191, 0.25);
}

.team-card__beyond {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.38;
  color: var(--text-muted);
}

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

.team-card--beyond .team-card__body {
  width: fit-content;
  max-width: 100%;
  padding: 1rem 1.15rem 1.1rem;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.team-card--beyond .team-card__name {
  font-size: 1.05rem;
  line-height: 1.22;
  color: var(--cloud);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.team-card--beyond .team-card__title {
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  color: var(--accent);
  text-shadow:
    0 1px 10px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(8, 17, 28, 0.9);
}

.team-card--beyond .team-card__beyond {
  font-size: 0.875rem;
  line-height: 1.48;
  color: rgba(236, 241, 246, 0.94);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.about-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

.team-lang {
  margin: 0.85rem 0 0;
  padding: 0;
  border-radius: 0;
  border: none;
  text-align: left;
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--slate-muted) 82%, transparent);
}

@supports not (color: color-mix(in srgb, black 50%, white)) {
  .team-lang {
    color: rgba(107, 143, 168, 0.82);
  }
}

.team-lang p {
  margin: 0;
}

.team-lang em {
  font-style: italic;
  font-weight: inherit;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: stretch;
  }
}

.contact-layout__intro .section__label {
  margin-bottom: 0.65rem;
}

.contact-layout__intro .section__title {
  margin-bottom: 0.85rem;
}

.contact-layout__intro .section__lead {
  margin-bottom: 0;
}

.contact-layout__form {
  min-width: 0;
}

/* Contact form */
.form-panel {
  max-width: none;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 2.25rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease);
}

.form-row input:focus-visible,
.form-row textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-row textarea {
  min-height: 160px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status--ok {
  background: rgba(46, 160, 67, 0.15);
  color: #7ddea0;
  border: 1px solid rgba(46, 160, 67, 0.35);
}

.form-status--err {
  background: rgba(248, 81, 73, 0.12);
  color: #ff9b94;
  border: 1px solid rgba(248, 81, 73, 0.35);
}

/* Prose */
.prose-muted {
  color: var(--text-muted);
  max-width: min(85ch, 100%);
}

.prose-muted p {
  margin: 0 0 1rem;
}

.prose-muted p:last-child {
  margin-bottom: 0;
}
