/* TalosDesk landing — hand-written, no framework. Visual language follows the new login screen. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #d80214;
  --red-600: #b90012;
  --red-bright: #ef2b3c;
  --red-text-dark: #ff5a66;
  --red-soft: #fdecee;
  --ink-950: #0c0f13;
  --ink-900: #12161b;
  --ink-850: #161b21;
  --ink-800: #1b2128;
  --ink-700: #262d36;
  --ink-600: #343c46;
  --on-dark: #eef1f4;
  --on-dark-muted: #a9b2bc;
  --on-dark-faint: #7e8893;
  --line-dark: rgba(255, 255, 255, 0.08);
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --text: #171c22;
  --text-muted: #56606b;
  --line: #e3e6ea;
  --ok: #1f9d63;
  --ok-dark: #34c27f;
  --warn: #e0a100;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}
.dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--red-text-dark);
}
main:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.ic {
  width: 24px;
  height: 24px;
  flex: none;
}
.ic-s {
  width: 18px;
  height: 18px;
}
.ic-xs {
  width: 14px;
  height: 14px;
}
.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.accent-text {
  color: var(--red);
}
.dark .accent-text {
  color: var(--red-text-dark);
}

/* ------------------------------------------------------------ skip link */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: #fff;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(216, 2, 20, 0.32);
}
.btn-primary:hover {
  background: var(--red-600);
}
.btn-ghost {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(13, 16, 20, 0.95);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}
.header-in {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}
.brand {
  display: inline-flex;
  flex: none;
}
.brand img {
  width: 158px;
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 24px;
}
.nav-list {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background-color 0.15s;
}
.nav-list a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.nav-list + .nav-tools {
  margin-left: 8px;
}
.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--on-dark-faint);
}
.lang-link {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 8px;
  margin: -8px -6px;
  color: var(--on-dark-faint);
}
.lang-link:hover {
  color: #fff;
}
.lang-link[aria-current] {
  color: #fff;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
}
.nav-toggle .i-close {
  display: none;
}
.nav-toggle[aria-expanded='true'] .i-close {
  display: block;
}
.nav-toggle[aria-expanded='true'] .i-open {
  display: none;
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex;
  }
  .js .home .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px var(--gutter) 20px;
    background: #0e1216;
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
    display: none;
  }
  .js .home .site-header.nav-open .nav {
    display: flex;
  }
  .home .nav-list {
    flex-direction: column;
    margin: 0;
  }
  .home .nav-list a {
    padding: 12px 8px;
    font-size: 16px;
  }
  .home .nav-tools {
    margin: 8px 0 0;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--line-dark);
  }
  /* Without JS the menu toggle does nothing: keep tools visible, hide section links. */
  html:not(.js) .home .nav-list,
  html:not(.js) .nav-toggle {
    display: none;
  }
}

/* ------------------------------------------------------------ shared section bits */
.section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
}
.light {
  background: var(--bg-soft);
}
.dark {
  background: var(--ink-900);
  color: var(--on-dark);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.dark .eyebrow {
  color: var(--on-dark-faint);
}
.eyebrow-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(216, 2, 20, 0.14);
}
.sec-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.038em;
}
.sec-lead {
  margin-top: 20px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 40em;
}
.dark .sec-lead {
  color: var(--on-dark-muted);
}
.center .sec-lead {
  margin-left: auto;
  margin-right: auto;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
@media (max-width: 960px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-dark {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: #fff4dc;
  color: #7a4b00;
  border: 1px solid #f3dca6;
  white-space: nowrap;
  vertical-align: middle;
}
.badge-dark {
  background: rgba(242, 197, 92, 0.1);
  color: #f2c55c;
  border-color: rgba(242, 197, 92, 0.25);
}
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}
.glow {
  position: absolute;
  pointer-events: none;
  width: 900px;
  height: 900px;
  right: -260px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(216, 2, 20, 0.22), rgba(216, 2, 20, 0.06) 40%, transparent 68%);
  filter: blur(10px);
}
.mark-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #eef0f3);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  position: relative;
}
.mark-tile img {
  width: 34px;
}
.mark-tile::after {
  content: '';
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--ink-850);
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
  min-height: min(calc(100svh - var(--header-h)), 920px);
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 104px);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-still,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-still {
  opacity: 0.4;
  object-position: 70% center;
  filter: saturate(0.8) contrast(1.05);
  transition: opacity 1.6s var(--ease);
}
.hero-video {
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-bg.loop-on .hero-video {
  opacity: 0.62;
}
.hero-bg.loop-on .hero-still {
  opacity: 0.12;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 15, 19, 0.96) 0%, rgba(12, 15, 19, 0.82) 45%, rgba(12, 15, 19, 0.55) 100%),
    linear-gradient(180deg, transparent 60%, var(--ink-950) 100%);
}
.hero .glow {
  right: -200px;
  top: 55%;
}
.hero-in {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.hero-copy .eyebrow {
  margin-bottom: 40px;
  color: var(--on-dark-muted);
}
.kicker {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.052em;
}
.hero h1 span {
  display: block;
}
.hero h1 .accent {
  color: var(--red-bright);
}
.hero .lead {
  margin-top: 28px;
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.65;
  color: var(--on-dark-muted);
  max-width: 34em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.cta-row.center {
  justify-content: center;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: var(--on-dark-muted);
}
.pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pills .ic {
  color: var(--on-dark-faint);
}

.hero-visual {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circuit {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.circuit svg {
  width: 100%;
  height: 100%;
}
.trace {
  stroke: rgba(216, 2, 20, 0.55);
  stroke-width: 1.4;
  stroke-dasharray: 6 10;
  animation: dash 3.5s linear infinite;
}
.node {
  fill: var(--red-bright);
}
@keyframes dash {
  to {
    stroke-dashoffset: -64;
  }
}
.float {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  animation: bob 6s ease-in-out infinite;
}
.float .ic {
  width: 22px;
  height: 22px;
}
.f1 {
  left: 2%;
  top: 0;
}
.f2 {
  right: -10px;
  top: 12%;
  color: var(--red-text-dark);
  animation-delay: -2s;
}
.f3 {
  left: -14px;
  bottom: 12%;
  animation-delay: -4s;
}
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}
.hero-card {
  position: relative;
  width: min(100%, 440px);
  padding: 20px;
  border-radius: 20px;
  background: rgba(22, 27, 33, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
}
.hc-head .eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  letter-spacing: 0.22em;
}
.hc-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red-text-dark);
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
.hc-list {
  display: grid;
  gap: 8px;
  padding: 16px 0;
}
.hc-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.hc-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-700);
  color: var(--on-dark-muted);
}
.hc-txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.hc-txt strong {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.hc-txt span {
  font-size: 12px;
  color: var(--on-dark-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hc-state {
  position: relative;
  width: 118px;
  height: 26px;
}
.st {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  opacity: 0;
}
.st-diag {
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark-muted);
  animation: st1 10s infinite;
}
.st-fix {
  background: rgba(216, 2, 20, 0.16);
  color: #ff8a92;
  animation: st2 10s infinite;
}
.st-ok {
  background: rgba(52, 194, 127, 0.14);
  color: #6be0a6;
  animation: st3 10s infinite;
}
.hc-row:nth-child(2) .st {
  animation-delay: -1.4s;
}
.hc-row:nth-child(3) .st {
  animation-delay: -3.1s;
}
.hc-row:nth-child(4) .st {
  animation-delay: -0.6s;
}
@keyframes st1 {
  0%, 22% { opacity: 1; }
  25%, 96% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes st2 {
  0%, 22% { opacity: 0; }
  25%, 45% { opacity: 1; }
  48%, 100% { opacity: 0; }
}
@keyframes st3 {
  0%, 45% { opacity: 0; }
  48%, 96% { opacity: 1; }
  100% { opacity: 0; }
}
.hc-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: var(--on-dark-faint);
}

@media (max-width: 960px) {
  .hero-in {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 0;
    padding: 24px 0 0;
  }
  .circuit,
  .float {
    display: none;
  }
  .hero-card {
    width: 100%;
    max-width: 520px;
  }
  .hero-in {
    gap: 8px;
  }
}
@media (max-width: 420px) {
  .hc-row {
    grid-template-columns: 1fr auto;
  }
  .hc-ic {
    display: none;
  }
  .hc-state {
    width: 104px;
  }
}

/* ------------------------------------------------------------ film */
.film {
  background: var(--bg);
}
.film-frame {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink-900);
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.22), 0 0 0 1px rgba(16, 24, 40, 0.06);
  aspect-ratio: 16 / 9;
}
.film-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink-900);
}

/* ------------------------------------------------------------ problem */
.problem-visual {
  position: relative;
}
.problem-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22);
  filter: saturate(0.85);
}
.has-photo .chart {
  position: relative;
  margin: -96px 0 0 clamp(16px, 6%, 56px);
}
@media (max-width: 960px) {
  .has-photo .chart {
    margin: -48px 12px 0;
  }
}
.points {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}
.points li {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  border-left: 2px solid var(--line);
}
.points strong {
  font-size: 16px;
  font-weight: 700;
}
.points span {
  color: var(--text-muted);
  font-size: 15px;
}
.chart {
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.chart-title {
  font-weight: 700;
  font-size: 15px;
}
.lane + .lane {
  margin-top: 28px;
}
.lane-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.lane-label strong {
  font-size: 22px;
  color: var(--text);
  white-space: nowrap;
}
.lane-label strong.accent-text {
  color: var(--red);
}
.lane-track {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%), var(--bg-soft);
}
.lane-row {
  position: relative;
  height: 28px;
}
.bar {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  border-radius: 7px;
  overflow: hidden;
  transform-origin: left center;
}
.bar-label {
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-seq {
  background: #c5ccd4;
  color: #1f262e;
  border-right: 2px solid var(--bg-soft);
}
.bar-seq:nth-child(even) {
  background: #aab3bd;
}
.bar-par {
  background: linear-gradient(90deg, var(--red), #f0434f);
  color: #fff;
  box-shadow: 0 4px 12px rgba(216, 2, 20, 0.25);
}
.tick {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 0;
  border-left: 2px dashed var(--red);
  margin-left: 10px;
}
.axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.footnote {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.js [data-animate] .bar {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease);
}
.js [data-animate].in-view .bar {
  transform: scaleX(1);
}
.js [data-animate].in-view .bar-seq:nth-child(2) { transition-delay: 0.45s; }
.js [data-animate].in-view .bar-seq:nth-child(3) { transition-delay: 0.9s; }
.js [data-animate].in-view .bar-seq:nth-child(4) { transition-delay: 1.35s; }
.js [data-animate].in-view .bar-seq:nth-child(5) { transition-delay: 1.8s; }
.js [data-animate].in-view .bar-seq:nth-child(6) { transition-delay: 2.25s; }
.js [data-animate].in-view .bar-par { transition-delay: 0.2s; transition-duration: 1.1s; }

/* ------------------------------------------------------------ how */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  counter-reset: s;
}
.steps::before {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--line), var(--red) 50%, var(--line));
  opacity: 0.6;
}
.step {
  position: relative;
}
.step-ic {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--ink-850);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.18);
}
.step-policy .step-ic {
  background: var(--red);
  box-shadow: 0 8px 22px rgba(216, 2, 20, 0.35);
}
.step-n {
  display: block;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
}
.step h3 {
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
.js .steps[data-animate] .step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .steps[data-animate].in-view .step {
  opacity: 1;
  transform: none;
}
.js .steps.in-view .step:nth-child(2) { transition-delay: 0.08s; }
.js .steps.in-view .step:nth-child(3) { transition-delay: 0.16s; }
.js .steps.in-view .step:nth-child(4) { transition-delay: 0.24s; }
.js .steps.in-view .step:nth-child(5) { transition-delay: 0.32s; }
.js .steps.in-view .step:nth-child(6) { transition-delay: 0.4s; }
.js .steps.in-view .step:nth-child(7) { transition-delay: 0.48s; }
.human {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(40px, 5vw, 56px);
  padding: 20px 24px;
}
.human-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
}
.human strong {
  font-size: 16px;
}
.human p {
  color: var(--text-muted);
  font-size: 15px;
}
.human-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.human-actions li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text-muted);
}
@media (max-width: 1180px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 40px;
  }
  .steps::before {
    display: none;
  }
}
@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .step {
    display: grid;
    grid-template-columns: 50px 1fr;
    column-gap: 18px;
    padding-bottom: 28px;
  }
  .step::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    bottom: 0;
    width: 2px;
    background: var(--line);
  }
  .step:last-child::before {
    display: none;
  }
  .step-ic {
    grid-row: span 3;
  }
  .step-n {
    margin-top: 2px;
  }
  .human {
    flex-wrap: wrap;
  }
  .human-actions {
    display: none;
  }
}

/* ------------------------------------------------------------ campaigns */
.campaigns {
  overflow: hidden;
  background: var(--ink-900);
}
.feat {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}
.feat li {
  display: flex;
  gap: 14px;
}
.feat-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(216, 2, 20, 0.12);
  color: var(--red-text-dark);
  border: 1px solid rgba(216, 2, 20, 0.25);
}
.feat strong {
  font-size: 16px;
}
.feat p {
  font-size: 14.5px;
  color: var(--on-dark-muted);
  margin-top: 2px;
}
.fleet {
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
}
.fleet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark-muted);
}
.waves {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 18px 0 14px;
}
.wv {
  min-width: 0;
  padding: 6px 4px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: normal;
  hyphens: manual;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--on-dark-faint);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
}
.wv {
  letter-spacing: 0;
}
.wv1 { grid-column: span 1; animation: wave 14s infinite; }
.wv2 { grid-column: span 2; animation: wave 14s infinite 2.4s; }
.wv3 { grid-column: span 3; animation: wave 14s infinite 4.8s; }
@keyframes wave {
  0%, 2% { color: var(--on-dark-faint); border-color: var(--line-dark); }
  6%, 30% { color: #fff; border-color: rgba(96, 165, 250, 0.6); background: rgba(96, 165, 250, 0.1); }
  40%, 100% { color: var(--on-dark-muted); border-color: rgba(52, 194, 127, 0.35); background: rgba(52, 194, 127, 0.06); }
}
.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.tile {
  position: relative;
  aspect-ratio: 1.4;
  border-radius: 9px;
  background: var(--ink-700);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: tile 14s infinite both;
}
.tile::before {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 26%;
  height: 34%;
  border-radius: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.tile::after {
  content: '';
  position: absolute;
  left: 40%;
  right: 40%;
  bottom: 22%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.2);
}
@keyframes tile {
  0%, 4% { background: var(--ink-700); box-shadow: none; }
  7% { background: #1d2c40; box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35); }
  12% { background: #1d2c40; box-shadow: 0 0 0 1.5px rgba(96, 165, 250, 0.9); }
  17% { background: #1d2c40; box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35); }
  22% { background: #1d2c40; box-shadow: 0 0 0 1.5px rgba(96, 165, 250, 0.9); }
  27%, 92% { background: #134a33; box-shadow: 0 0 0 1px rgba(52, 194, 127, 0.45); }
  100% { background: var(--ink-700); box-shadow: none; }
}
@keyframes tile-attn {
  0%, 4% { background: var(--ink-700); box-shadow: none; }
  7%, 24% { background: #1d2c40; box-shadow: 0 0 0 1.5px rgba(96, 165, 250, 0.8); }
  30%, 92% { background: #4d3b0a; box-shadow: 0 0 0 1px rgba(224, 161, 0, 0.7); }
  100% { background: var(--ink-700); box-shadow: none; }
}
/* per-tile delays (.td0-.td35) are generated into scenario.css by src/build.mjs */
.tile.t-attn { animation-name: tile-attn; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--on-dark-muted);
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lg {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.lg-q { background: var(--ink-600); }
.lg-w { background: #1d2c40; box-shadow: 0 0 0 1.5px #60a5fa; }
.lg-ok { background: var(--ok-dark); }
.lg-a { background: var(--warn); }
.shots-wrap {
  margin-top: clamp(56px, 8vw, 96px);
}
.shots-title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 20px;
}
.shots {
  display: grid;
  /* the two lower crops are 2.66:1 and 1.26:1, so 2.1fr / 1fr gives them equal heights */
  grid-template-columns: 2.1fr 1fr;
  gap: 28px 24px;
  align-items: start;
}
.shot {
  margin: 0;
  min-width: 0;
}
.shot-wide {
  grid-column: 1 / -1;
}
@media (max-width: 760px) {
  .shots {
    grid-template-columns: 1fr;
  }
}
.browser {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 34px;
  padding: 0 14px;
  border-radius: 12px 12px 0 0;
  background: var(--ink-700);
  border: 1px solid var(--line-dark);
  border-bottom: 0;
}
.dots {
  display: flex;
  gap: 6px;
}
.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.url {
  font-size: 11px;
  color: #8a949f;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 0 0 12px 12px;
  border: 1px solid var(--line-dark);
  border-top: 0;
  background: var(--ink-800);
}
.shot figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark-muted);
}

/* ------------------------------------------------------------ night */
.night {
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-900) 0, rgba(18, 22, 27, 0) 160px),
    linear-gradient(180deg, #0b0e14 0%, #0f1520 60%, #121a26 100%);
}
.night-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(2px 2px at 46% 22%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 82% 26%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(2px 2px at 63% 44%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(600px 400px at 90% 0%, rgba(96, 120, 200, 0.12), transparent 70%);
}
.night .eyebrow .ic {
  color: #9db2ff;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 40px 0 0;
}
.stats div {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
}
.stats dt {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--on-dark-muted);
}
.stats dd {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 800;
  line-height: 1;
}
.stats dd.muted {
  color: var(--on-dark-faint);
}
.sample-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--on-dark-faint);
}
.timeline {
  position: relative;
  display: grid;
  gap: 4px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 79px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(157, 178, 255, 0.4), rgba(216, 2, 20, 0.5) 60%, rgba(242, 197, 92, 0.6));
}
.ev {
  position: relative;
  display: grid;
  grid-template-columns: 56px 48px 1fr;
  gap: 0 12px;
  align-items: start;
  padding: 10px 0;
}
.ev-time {
  padding-top: 7px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
  text-align: right;
}
.ev-dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 6px;
  border-radius: 50%;
  background: #18202c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--on-dark-muted);
}
.ev-fix .ev-dot,
.ev-verify .ev-dot {
  color: #6be0a6;
  border-color: rgba(52, 194, 127, 0.5);
}
.ev-approve .ev-dot,
.ev-plan .ev-dot {
  color: var(--red-text-dark);
  border-color: rgba(255, 90, 102, 0.5);
}
.ev-report .ev-dot {
  color: #f2c55c;
  border-color: rgba(242, 197, 92, 0.6);
  background: #2a2412;
}
.ev-body {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark);
}
.ev-report .ev-body {
  background: rgba(242, 197, 92, 0.07);
  border-color: rgba(242, 197, 92, 0.25);
}
.ev-dev {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 2px;
}
.ev-body p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--on-dark);
}
.js .timeline[data-animate] .ev {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js .timeline[data-animate].in-view .ev {
  opacity: 1;
  transform: none;
}
.js .timeline.in-view .ev:nth-child(2) { transition-delay: 0.12s; }
.js .timeline.in-view .ev:nth-child(3) { transition-delay: 0.24s; }
.js .timeline.in-view .ev:nth-child(4) { transition-delay: 0.36s; }
.js .timeline.in-view .ev:nth-child(5) { transition-delay: 0.48s; }
.js .timeline.in-view .ev:nth-child(6) { transition-delay: 0.6s; }
.js .timeline.in-view .ev:nth-child(7) { transition-delay: 0.72s; }
.js .timeline.in-view .ev:nth-child(8) { transition-delay: 0.84s; }
@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats div:last-child {
    grid-column: span 2;
  }
  .timeline::before {
    left: 63px;
  }
  .ev {
    grid-template-columns: 44px 44px 1fr;
    gap: 0 8px;
  }
  .ev-time {
    font-size: 13px;
  }
}

/* ------------------------------------------------------------ security */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.sec-card {
  padding: 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.sec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.1);
}
.sec-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 18px;
}
.sec-card h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.sec-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
@media (max-width: 1100px) {
  .sec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .sec-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sec-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    padding: 20px;
  }
  .sec-ic {
    grid-row: span 2;
    margin: 0;
  }
  .sec-card p {
    margin-top: 4px;
  }
}
@media (max-width: 400px) {
  .plain .nav-tools .lang .ic {
    display: none;
  }
  .plain .header-in {
    gap: 12px;
  }
  .plain .brand img {
    width: 128px;
  }
  .plain .nav-tools {
    gap: 10px;
  }
  .plain .nav-tools .btn-sm {
    padding: 0 10px;
  }
  .plain .nav-tools .btn-sm .ic {
    display: none;
  }
}

/* ------------------------------------------------------------ compare */
.table-wrap {
  overflow: hidden;
}
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.cmp th,
.cmp td {
  text-align: left;
  vertical-align: top;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.cmp thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-soft);
  vertical-align: middle;
}
.cmp thead th.col-talos {
  background: var(--ink-900);
}
.cmp thead th.col-talos img {
  width: 116px;
  filter: none;
}
.cmp tbody th {
  width: 22%;
  font-weight: 700;
}
.cmp td {
  width: 39%;
  color: var(--text-muted);
}
.cmp td.col-talos {
  background: #fff7f8;
  color: var(--text);
}
.cmp td.col-talos .ic {
  float: left;
  margin: 2px 10px 0 0;
  color: var(--red);
}
.cmp td.col-talos span {
  display: block;
  overflow: hidden;
}
.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 760px) {
  .cmp thead {
    display: none;
  }
  .cmp,
  .cmp tbody,
  .cmp tr,
  .cmp th,
  .cmp td {
    display: block;
    width: 100%;
  }
  .cmp tr {
    border-bottom: 1px solid var(--line);
  }
  .cmp tbody tr:last-child {
    border-bottom: 0;
  }
  .cmp th,
  .cmp td {
    border: 0;
    padding: 6px 18px;
  }
  .cmp tbody th {
    width: 100%;
    padding-top: 18px;
    font-size: 16px;
  }
  .cmp td:last-child {
    padding-bottom: 18px;
  }
  .cmp td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
  }
  .cmp td.col-talos {
    background: transparent;
    border-left: 3px solid var(--red);
    margin-left: 18px;
    padding-left: 12px;
    width: calc(100% - 36px);
  }
  .cmp td.col-talos .ic {
    display: none;
  }
}

/* ------------------------------------------------------------ faq */
.faq-in {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq .sec-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.faq-list {
  display: grid;
  gap: 12px;
}
.qa {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.qa[open] {
  box-shadow: var(--shadow);
  border-color: #d6dbe1;
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 650;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa-x {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-soft);
}
.qa-x::before,
.qa-x::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 13px;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  transition: transform 0.2s;
}
.qa-x::after {
  transform: rotate(90deg);
}
.qa[open] .qa-x {
  background: var(--red);
}
.qa[open] .qa-x::before,
.qa[open] .qa-x::after {
  background: #fff;
}
.qa[open] .qa-x::after {
  transform: rotate(0);
}
.qa p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .faq-in {
    grid-template-columns: 1fr;
  }
  .faq .sec-head {
    position: static;
    margin-bottom: 8px;
  }
}

/* ------------------------------------------------------------ final cta */
.cta {
  overflow: hidden;
  text-align: center;
  background: var(--ink-950);
}
.glow-c {
  left: 50%;
  right: auto;
  top: 100%;
  transform: translate(-50%, -50%);
}
.cta-in {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mark-xl {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  margin-bottom: 32px;
}
.mark-xl img {
  width: 54px;
}
.cta h2 {
  max-width: 16em;
  font-size: clamp(32px, 4.6vw, 56px);
}

/* ------------------------------------------------------------ footer */
.site-footer {
  background: #090b0e;
  color: var(--on-dark-faint);
  padding: 48px 0 40px;
  font-size: 14px;
}
.footer-in {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 48px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-brand p {
  color: var(--on-dark-faint);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 28px;
}
.footer-links a {
  display: inline-block;
  padding: 12px 4px;
  margin: -12px -4px;
  color: var(--on-dark-muted);
  text-decoration: none;
}
.footer-lang {
  display: inline-flex;
  gap: 14px;
}
.footer-tm {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}
@media (max-width: 800px) {
  .footer-in {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-links {
    justify-content: flex-start;
    flex-direction: column;
  }
}

/* ------------------------------------------------------------ plain pages (privacy, 404) */
.plain-main {
  padding: clamp(56px, 8vw, 96px) 0;
  min-height: 60vh;
}
.prose {
  max-width: 760px;
}
.prose h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 28px;
}
.prose p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 17px;
}
.prose p a:not(.btn) {
  color: var(--red);
}
.prose .btn {
  margin-top: 16px;
}
.nf-main {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px 16px;
}
.nf-in {
  position: relative;
  text-align: center;
  max-width: 760px;
}
.nf-in img {
  margin: 0 auto;
}
.nf-code {
  margin: 36px 0 24px;
  font-size: clamp(88px, 18vw, 160px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--red-bright);
}
.nf-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: left;
}
.nf-cols div {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
}
.nf-cols h1,
.nf-cols h2 {
  font-size: 22px;
}
.nf-cols p {
  margin: 8px 0 20px;
  color: var(--on-dark-muted);
}
@media (max-width: 600px) {
  .nf-cols {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .st {
    animation: none !important;
    opacity: 0;
  }
  .st-ok {
    opacity: 1;
  }
  .tile {
    animation: none !important;
    background: #134a33;
  }
  .tile.t-attn {
    background: #4d3b0a;
  }
  .wv {
    animation: none !important;
  }
}

/* ------------------------------------------------------------ lab data (scenario.json) */
.film-note {
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.tag-est {
  background: #eceef1;
  color: #4a535d;
}
.tag-meas {
  background: var(--red-soft);
  color: var(--red-600);
}
.chart-lab .lane-label span {
  line-height: 1.5;
}
.bar-range {
  background: repeating-linear-gradient(135deg, #dfe3e8 0 6px, #eef0f3 6px 12px);
  color: #4a535d;
  border: 1px dashed #b4bcc6;
}
.chart-lab .bar-par {
  min-width: 5px;
}
.bar-out {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
  line-height: 28px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.bar-out strong {
  color: var(--text);
  font-weight: 650;
}
.js .chart-lab[data-animate] .bar-out {
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.9s;
}
.js .chart-lab[data-animate].in-view .bar-out {
  opacity: 1;
}
.js [data-animate].in-view .bar-range { transition-delay: 1.35s; }
.chart-lab .footnote strong {
  color: var(--text);
  font-weight: 650;
}
.stats-4 {
  grid-template-columns: repeat(2, 1fr);
}
.method {
  margin-top: 18px;
  border-radius: 14px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.025);
}
.method summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--on-dark-muted);
  list-style: none;
}
.method summary::-webkit-details-marker {
  display: none;
}
.method summary::after {
  content: '+';
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
  color: var(--on-dark-faint);
}
.method[open] summary::after {
  content: '\2212';
}
.method summary:hover,
.method summary:focus-visible {
  color: var(--on-dark);
}
.method p {
  padding: 0 16px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}
.method p:last-child {
  padding-bottom: 16px;
}
.shot a {
  display: block;
  border-radius: 0 0 12px 12px;
}
.shot a:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}
@media (max-width: 520px) {
  .stats-4 {
    grid-template-columns: 1fr 1fr;
  }
  .stats-4 div:last-child {
    grid-column: auto;
  }
  .bar-out {
    font-size: 11px;
  }
  .chart-lab .bar-seq .bar-label {
    display: none;
  }
}

/* lab timeline: offsets like "+44,5 s" need a wider time column; keep the rail through the dot centres */
.timeline-lab .ev {
  grid-template-columns: 64px 48px 1fr;
}
.timeline-lab::before {
  left: 111px;
}
.chart-lab .chart-head {
  flex-wrap: wrap;
  align-items: flex-start;
}
.chart-lab .chart-title {
  flex: 1 1 220px;
}
.chart-lab .chart-head .badge {
  white-space: nowrap;
}
.shots-note {
  margin: -8px 0 20px;
  font-size: 13px;
  color: var(--on-dark-faint);
}
@media (max-width: 520px) {
  .timeline-lab .ev {
    grid-template-columns: 56px 44px 1fr;
  }
  .timeline-lab::before {
    left: 99px;
  }
}

/* ------------------------------------------------------------ review fixes 2026-10-27 */
/* "IT." — pull the full stop into the T's overhang */
.kern-t,
.hero h1 .kern-t {
  display: inline;
  margin-left: -0.07em;
}
/* the diagnosis strip is very wide: on phones it scrolls sideways instead of shrinking to unreadable */
@media (max-width: 760px) {
  .shot-wide a {
    overflow-x: auto;
    border: 1px solid var(--line-dark);
    border-top: 0;
    -webkit-overflow-scrolling: touch;
  }
  .shot-wide img {
    width: 760px;
    max-width: none;
    border: 0;
  }
}
/* hero card at 1000-1180 px: no wrapped host names, statuses sized to content, icons inside the visual */
@media (max-width: 1180px) and (min-width: 961px) {
  .hero-in {
    grid-template-columns: 1fr 1.05fr;
  }
  .hc-state {
    width: auto;
    min-width: 92px;
  }
  .st {
    position: absolute;
    padding: 0 8px;
  }
  .hc-row strong {
    white-space: nowrap;
    font-size: 13px;
  }
  .f1,
  .f3 {
    display: none;
  }
}
/* motion pause control (WCAG 2.2.2) */
.motion-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.motion-toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(12, 15, 19, 0.6);
  color: var(--on-dark-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.motion-toggle[hidden] {
  display: none;
}
.motion-toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.motion-toggle:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}
.motion-toggle .i-play,
.motion-toggle[aria-pressed='true'] .i-pause {
  display: none;
}
.motion-toggle[aria-pressed='true'] .i-play {
  display: block;
}
html.motion-paused *,
html.motion-paused *::before,
html.motion-paused *::after {
  animation-play-state: paused !important;
}
/* film: big play button over the poster; native controls appear after the click */
.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  border: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(12, 15, 19, 0) 55%, rgba(12, 15, 19, 0.35) 100%);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.film-play[hidden] {
  display: none;
}
.film-play-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 9vw, 92px);
  height: clamp(64px, 9vw, 92px);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 18px 40px rgba(216, 2, 20, 0.45), 0 0 0 8px rgba(216, 2, 20, 0.18);
  transition: transform 0.2s var(--ease);
}
.film-play-ic .ic {
  width: 40%;
  height: 40%;
  margin-left: 6%;
  fill: currentColor;
}
.film-play-label {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(12, 15, 19, 0.55);
}
.film-play:hover .film-play-ic {
  transform: scale(1.06);
}
.film-play:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: -6px;
}
