/* ============================================================
   Liebian Technology — Forward-Deployed AI
   v3 visual world: optical bench / signal bus
   Near-black signal fields + warm technical paper, amber as the
   only signal colour. Hairline structure, flat panels, no glow,
   no glass, no floating orbs. Type: Space Grotesk + IBM Plex Mono.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Ground: the hero and two dark screens are the instrument field. */
  --ink-950: #080a0c;
  --ink-900: #0c0f12;
  --ink-850: #12161a;

  /* Paper: warm neutral, never blue-grey. */
  --paper: #f1f0eb;
  --paper-2: #e8e7e1;
  --paper-3: #f8f7f2;

  /* Text */
  --ink: #12161a;
  --ink-2: #4a545c;
  --ink-3: #5c666d;
  --on-dark: #f1f0eb;
  --on-dark-2: rgba(241, 240, 235, 0.72);
  --on-dark-3: rgba(241, 240, 235, 0.52);

  /* Structure */
  --line: #d5d4cd;
  --line-2: #e2e1db;
  --line-dark: rgba(241, 240, 235, 0.15);
  --line-dark-2: rgba(241, 240, 235, 0.08);

  /* Signal: amber is the only saturated colour in the system. */
  --amber: #e8912a;
  --amber-bright: #ffb257;
  --amber-deep: #8a4c08;
  --amber-tint: rgba(232, 145, 42, 0.08);
  --amber-line: rgba(232, 145, 42, 0.45);

  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei",
    "Hiragino Sans GB", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1220px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 72px;

  --radius-xs: 2px;
  --radius-sm: 4px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink-3) var(--paper-2);
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
p {
  text-wrap: pretty;
}
strong {
  font-weight: 600;
}
::selection {
  background: var(--amber);
  color: var(--ink-950);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--paper-2);
}
::-webkit-scrollbar-thumb {
  background: var(--ink-3);
  border: 2px solid var(--paper-2);
  border-radius: 0;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono {
  font-family: var(--font-mono);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius-xs);
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease-io);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Type scale ---------- */
.h-section {
  font-size: clamp(1.85rem, 3.3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-io), border-color 0.2s var(--ease-io),
    color 0.2s var(--ease-io), transform 0.2s var(--ease-io);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn__arrow {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.2s var(--ease-io);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}
.btn--amber {
  background: var(--amber);
  color: var(--ink-950);
}
.btn--amber:hover {
  background: var(--amber-bright);
}
.btn--ghost-light {
  border-color: rgba(241, 240, 235, 0.24);
  color: var(--on-dark);
}
.btn--ghost-light:hover {
  border-color: var(--amber);
  color: var(--amber-bright);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.24s var(--ease-io), border-color 0.24s var(--ease-io),
    color 0.24s var(--ease-io);
}
.header__inner {
  max-width: 1560px;
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: clamp(20px, 3.4vw, 44px);
  display: flex;
  align-items: center;
  gap: 22px;
}
body[data-surface="dark"] .site-header {
  color: var(--on-dark);
}
body[data-surface="dark"] .site-header.is-scrolled {
  background: var(--ink-900);
  border-bottom-color: var(--line-dark);
}
body[data-surface="light"] .site-header {
  color: var(--ink);
  background: var(--paper);
  border-bottom-color: var(--line-2);
}
body[data-surface="light"] .site-header.is-scrolled {
  background: var(--paper);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px;
}
.brand__mark {
  width: 24px;
  height: 24px;
  color: var(--amber);
  transition: color 0.2s var(--ease-io);
}
body[data-surface="light"] .brand__mark {
  color: var(--ink);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.brand__sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.19em;
  color: var(--amber);
}
body[data-surface="light"] .brand__sub {
  color: var(--amber-deep);
}

.header__tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-3);
  border-left: 1px solid var(--line-dark);
  padding-left: 14px;
  white-space: nowrap;
}
body[data-surface="light"] .header__tagline {
  color: var(--ink-3);
  border-left-color: var(--line);
}
.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__progress {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--on-dark-3);
  font-variant-numeric: tabular-nums;
}
body[data-surface="light"] .header__progress {
  color: var(--ink-3);
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-2);
  transition: border-color 0.2s var(--ease-io), color 0.2s var(--ease-io);
}
body[data-surface="light"] .language-toggle {
  border-color: var(--line);
  color: var(--ink-2);
}
.language-toggle:hover {
  border-color: var(--amber);
  color: var(--amber-bright);
}
body[data-surface="light"] .language-toggle:hover {
  color: var(--amber-deep);
}
.language-toggle__divider {
  opacity: 0.4;
}
.header__cta {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.7rem;
}
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s var(--ease-io), opacity 0.2s var(--ease-io);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Menu open: the sheet is ink, the fixed header follows it. */
body[data-surface] .site-header.menu-open,
.site-header.menu-open {
  color: var(--on-dark);
  background: var(--ink-950);
  border-bottom-color: var(--line-dark);
}
body[data-surface] .site-header.menu-open .brand__mark,
.site-header.menu-open .brand__mark {
  color: var(--amber);
}
body[data-surface] .site-header.menu-open .brand__sub,
.site-header.menu-open .brand__sub {
  color: var(--amber);
}
body[data-surface] .site-header.menu-open .language-toggle,
.site-header.menu-open .language-toggle {
  border-color: var(--line-dark);
  color: var(--on-dark-2);
}
body[data-surface] .site-header.menu-open .header__progress,
.site-header.menu-open .header__progress {
  color: var(--on-dark-3);
}

/* ---------- Mobile section menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--ink-950);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  /* Show visibility immediately on open; delay it on close so the sheet can fade. */
  transition: opacity 0.24s var(--ease-io), transform 0.24s var(--ease-io),
    visibility 0s linear 0.24s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.24s var(--ease-io), transform 0.24s var(--ease-io),
    visibility 0s linear 0s;
}
.mobile-menu__list {
  display: flex;
  flex-direction: column;
}
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--on-dark);
  transition: color 0.2s var(--ease-io);
}
.mobile-menu__link .mono {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.mobile-menu__link:hover {
  color: var(--amber-bright);
}
.mobile-menu__foot {
  padding-top: 8px;
}
.mobile-menu__foot .btn {
  width: 100%;
}

/* ---------- Desktop section rail ---------- */
.rail {
  display: none;
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
}
.rail__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rail__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 4px;
  color: var(--ink-3);
  transition: color 0.2s var(--ease-io);
}
body[data-surface="dark"] .rail__item {
  color: var(--on-dark-3);
}
.rail__item:hover {
  color: var(--ink);
}
body[data-surface="dark"] .rail__item:hover {
  color: var(--on-dark);
}
.rail__bar {
  display: block;
  width: 1px;
  height: 11px;
  background: currentColor;
  opacity: 0.5;
  transition: height 0.25s var(--ease-io), background-color 0.25s var(--ease-io), opacity 0.25s var(--ease-io);
}
.rail__item.is-active {
  color: var(--ink);
}
body[data-surface="dark"] .rail__item.is-active {
  color: var(--on-dark);
}
.rail__item.is-active .rail__bar {
  height: 22px;
  background: var(--amber);
  opacity: 1;
}
.rail__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 1380px) {
  .rail {
    display: block;
  }
}

/* ============================================================
   SCREENS
   ============================================================ */
.screen {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-h) + clamp(26px, 4vh, 54px)) clamp(40px, 5vh, 64px);
  background: var(--paper);
  overflow: hidden;
  scroll-margin-top: 0;
}
.screen > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}
.screen--dark {
  background: var(--ink-900);
  color: var(--on-dark);
}
.screen--dark .h-section {
  color: var(--on-dark);
}
.screen-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(241, 240, 235, 0.34) 0.6px, transparent 0.6px);
  background-size: 22px 22px;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 38%, #000 0%, transparent 78%);
}

/* ---------- Screen head: heading + right-margin plate annotation ---------- */
.screen-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-top: clamp(14px, 2vh, 20px);
  border-top: 1px solid var(--line);
  margin-bottom: clamp(24px, 4vh, 44px);
}
.screen-head__kicker {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  text-align: right;
}
.screen-head__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: var(--amber);
  vertical-align: 1px;
}
.screen-head__grid {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.screen-head__grid > .h-section:only-child {
  grid-column: 1 / -1;
  max-width: 26ch;
}
/* "A real problem. A 90-minute conversation." must not balance across the
   hyphen ("A 90-" / "minute conversation."); pretty lets the compound hold. */
#cooperation .h-section {
  text-wrap: pretty;
}
.screen-head__lead {
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 48ch;
  padding-bottom: 3px;
}
.screen-head--inverse {
  border-top-color: var(--line-dark);
}
.screen-head--inverse .screen-head__kicker {
  color: var(--on-dark-3);
}
.screen-head--inverse .screen-head__lead {
  color: var(--on-dark-2);
}

/* ============================================================
   HERO — full-bleed signal field
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-h) + clamp(26px, 5vh, 60px)) clamp(96px, 13vh, 132px);
  background: var(--ink-950);
  color: var(--on-dark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(241, 240, 235, 0.3) 0.5px, transparent 0.5px);
  background-size: 26px 26px;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(ellipse at 72% 48%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 72% 48%, #000 0%, transparent 72%);
}
.hero__graph {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__graph-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 10, 12, 0.94) 0%, rgba(8, 10, 12, 0.7) 34%, rgba(8, 10, 12, 0.08) 66%, rgba(8, 10, 12, 0) 100%),
    linear-gradient(180deg, rgba(8, 10, 12, 0.75) 0%, rgba(8, 10, 12, 0) 24%, rgba(8, 10, 12, 0) 68%, rgba(8, 10, 12, 0.92) 100%);
}
.hero__rules {
  position: absolute;
  inset: clamp(12px, 1.8vw, 22px);
  z-index: 1;
  pointer-events: none;
  border: 1px solid var(--line-dark-2);
}
.hero__rules::before,
.hero__rules::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--amber-line);
  border-left: 1px solid var(--amber-line);
}
.hero__rules::before {
  top: -1px;
  left: -1px;
}
.hero__rules::after {
  bottom: -1px;
  right: -1px;
  transform: rotate(180deg);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 7vh, 64px);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: min(820px, 100%);
}
.hero__title {
  font-size: clamp(2.7rem, 6.1vw, 5.5rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 15ch;
}
.accent-amber {
  color: var(--amber);
}
.hero__lead {
  max-width: 54ch;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.75;
  color: var(--on-dark-2);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.hero__flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.flow-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.flow-node__dot {
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.flow-node--active .flow-node__dot {
  background: var(--amber);
  border-color: var(--amber);
}
.flow-node--active .flow-node__label {
  color: var(--amber-bright);
}
.flow-link {
  display: block;
  width: clamp(18px, 3vw, 40px);
  height: 1px;
  background: var(--line-dark);
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 1010px;
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(18px, 3vh, 26px);
  text-align: left;
}
.stat {
  padding-inline: clamp(14px, 2vw, 26px);
  border-right: 1px solid var(--line-dark-2);
}
.stat:first-child {
  padding-left: 0;
}
.stat:last-child {
  border-right: none;
  padding-right: 0;
}
.stat__num {
  display: block;
  font-size: clamp(1.85rem, 2.9vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.stat__num .unit {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--amber);
}
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--on-dark-2);
}
.stat__note {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--on-dark-3);
}
.hero__meta {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 20px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.hero__kicker-dot {
  width: 5px;
  height: 5px;
  background: var(--amber);
  animation: pulse-dot 3.6s ease-in-out infinite;
}
.hero__graph-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  opacity: 0;
  transition: opacity 0.5s var(--ease-io);
}
.hero.is-graph-ready .hero__graph-note {
  opacity: 1;
}
.hero__graph-note__dot {
  width: 5px;
  height: 5px;
  background: var(--amber);
  animation: pulse-dot 3.6s ease-in-out infinite;
}
.hero__graph-note__id {
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--line-dark);
}
.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--on-dark-3);
  animation: cue-drift 3s ease-in-out infinite;
  transition: border-color 0.2s var(--ease-io), color 0.2s var(--ease-io);
}
.scroll-cue svg {
  width: 15px;
  height: 15px;
}
.scroll-cue:hover {
  border-color: var(--amber);
  color: var(--amber-bright);
}

/* ============================================================
   CONTENT COMPONENTS
   ============================================================ */

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 4.6vw, 68px);
  align-items: start;
}
.about-def {
  padding-top: clamp(14px, 2vh, 20px);
  border-top: 2px solid var(--amber);
}
.about-def__k,
.about-side__k {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.about-def__v {
  font-size: clamp(1.12rem, 1.6vw, 1.36rem);
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
  max-width: 42ch;
}
.about-side {
  padding-top: clamp(14px, 2vh, 20px);
}
.about-side__k {
  color: var(--ink-3);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 7px 11px;
  transition: border-color 0.2s var(--ease-io), color 0.2s var(--ease-io);
}
.chip:hover {
  border-color: var(--amber-line);
  color: var(--ink);
}
.goal {
  position: relative;
  margin-top: clamp(26px, 4vh, 40px);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 44px);
  background: var(--ink-900);
  border-top: 2px solid var(--amber);
  color: var(--on-dark);
}
.goal p {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
  max-width: 48ch;
}

/* --- Pain grid --- */
.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pain {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color 0.2s var(--ease-io);
}
.pain:hover {
  background: var(--paper-3);
}
.pain__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.pain__index {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.pain__tick {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  transition: color 0.2s var(--ease-io);
}
.pain:hover .pain__tick {
  color: var(--amber);
}
.pain__title {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
}
.pain__text {
  font-size: 0.9rem;
  line-height: 1.66;
  color: var(--ink-2);
}
.pain-close {
  margin-top: clamp(20px, 3vh, 30px);
  max-width: 72ch;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--ink-2);
}
.mode-close {
  margin-top: clamp(22px, 3.6vh, 32px);
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.94rem;
  color: var(--ink-2);
}
.mode-close .mono {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--amber-deep);
  white-space: nowrap;
}

/* --- Tables --- */
.table-hint {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.compare-wrap,
.record-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: transparent;
  scrollbar-color: var(--ink-3) var(--paper-2);
}
.compare,
.record {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.compare th,
.compare td,
.record th,
.record td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}
.compare thead th,
.record thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
.compare tbody th {
  width: 21%;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}
.compare td,
.record td {
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--ink-2);
}
.compare th.col-fde {
  background: var(--ink-900);
  color: var(--on-dark);
  border-bottom-color: var(--ink-900);
}
.compare td.col-fde {
  background: var(--amber-tint);
  color: var(--ink);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td,
.record tbody tr:last-child td {
  border-bottom: none;
}
.record td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* --- Tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}
.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.tag--live {
  color: var(--amber-deep);
  border-color: var(--amber-line);
  background: var(--amber-tint);
}
.tag--live::before {
  background: var(--amber);
}
.tag--dev {
  color: var(--ink-2);
  border-style: dashed;
}
.tag--dev::before {
  background: transparent;
  border: 1px solid var(--amber);
}
.tag--ondemand {
  color: var(--ink-2);
}
.tag--ondemand::before {
  background: transparent;
  border: 1px solid currentColor;
}

/* --- Service specs --- */
.specs {
  border-top: 1px solid var(--ink);
}
.spec {
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color 0.2s var(--ease-io);
}
.spec summary {
  list-style: none;
  cursor: pointer;
}
.spec summary::-webkit-details-marker {
  display: none;
}
.spec__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 2.3vh, 22px) 2px;
  transition: background-color 0.2s var(--ease-io);
}
.spec__head:hover {
  background: var(--paper-3);
}
.spec__num {
  flex: none;
  width: 2.4em;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.spec__title {
  font-size: clamp(1.02rem, 1.5vw, 1.3rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.28;
  transition: color 0.2s var(--ease-io);
}
.spec__head:hover .spec__title {
  color: var(--ink);
}
.spec__tag {
  margin-left: auto;
  flex: none;
}
.spec__toggle {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ink-3);
  transition: transform 0.24s var(--ease-io), color 0.2s var(--ease-io);
}
.spec[open] .spec__toggle {
  transform: rotate(180deg);
  color: var(--amber-deep);
}
.spec__body {
  padding: 2px 0 clamp(22px, 3vh, 32px) calc(2.4em + 16px);
}
.spec[open] .spec__body {
  animation: spec-in 0.28s var(--ease-io) both;
}
.spec__lead {
  padding-top: 14px;
  max-width: 68ch;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--ink-2);
}

/* --- Detail blocks --- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 3.4vw, 46px);
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.detail-col h3 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.detail-note {
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--ink-2);
}
.checklist li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--ink-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--amber);
}
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
  padding: 11px 13px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color 0.2s var(--ease-io);
}
.step:hover {
  background: var(--paper-3);
}
.step__n {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
}
.step__name {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 3px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.step__desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.8rem;
  line-height: 1.52;
  color: var(--ink-2);
}
.use-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.use-case {
  padding: 14px 16px 4px 0;
  border-right: 1px solid var(--line-2);
}
.use-case:last-child {
  border-right: none;
}
.use-case__t {
  margin-bottom: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.use-case__d {
  font-size: 0.82rem;
  line-height: 1.56;
  color: var(--ink-2);
}
.wf-agent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 22px;
}
.wf-agent__col {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.wf-agent__col--agent {
  border-top: 2px solid var(--amber);
}
.wf-agent__h {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.wf-agent__sub {
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.chain .chip {
  font-size: 0.7rem;
  padding: 5px 8px;
}
.chain .chip--hot {
  border-color: var(--amber);
  color: var(--amber-deep);
  background: var(--amber-tint);
}
.chain .arrow {
  font-size: 0.72rem;
  color: var(--ink-3);
}
.wf-agent__note {
  margin-top: 12px;
  font-size: 0.8rem;
  line-height: 1.58;
  color: var(--ink-2);
}

/* --- Delivery stages --- */
.delivery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.delivery__stage {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  padding: clamp(20px, 3vh, 28px) 0 clamp(10px, 2vh, 18px) clamp(0px, 2vw, 26px);
  border-right: 1px solid var(--line);
}
.delivery__stage:first-child {
  padding-left: 0;
}
.delivery__stage:last-child {
  border-right: none;
  padding-right: 0;
}
.delivery__stage-head {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.delivery__stage-n,
.delivery__stage-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  line-height: 1.4;
}
.delivery__stage-n {
  color: var(--amber-deep);
}
.delivery__stage-sub {
  color: var(--ink-3);
}
.delivery__stage-name {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 1.9vw, 1.62rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.delivery__stage ul {
  grid-column: 2;
  grid-row: 2;
}
.delivery__stage ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 9px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.delivery__stage ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 1px;
  background: var(--amber);
}

/* --- Security (dark) --- */
.secure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.secure {
  padding: clamp(20px, 2.6vw, 30px);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.2s var(--ease-io);
}
.secure:hover {
  background: rgba(241, 240, 235, 0.02);
}
.secure__n {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.secure__title {
  margin-bottom: 8px;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 600;
  color: var(--on-dark);
}
.secure__text {
  font-size: 0.9rem;
  line-height: 1.66;
  color: var(--on-dark-2);
}
.callout {
  margin-top: clamp(20px, 3vh, 28px);
  padding: 16px 0 0;
  border-top: 2px solid var(--amber);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--on-dark-2);
}
.callout strong {
  color: var(--on-dark);
}

/* --- Marquee --- */
.marquee {
  margin-top: clamp(20px, 3vh, 30px);
  overflow: hidden;
  padding-block: 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee__track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 6px;
}
.marquee [data-motion-clone] {
  display: none !important;
}
.marquee__item,
.marquee__dot {
  flex: none;
  margin-right: clamp(22px, 3vw, 40px);
}
.marquee__item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.marquee__dot {
  width: 4px;
  height: 4px;
  background: var(--amber);
  opacity: 0.7;
}

/* --- Cooperation --- */
.coop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4.6vw, 60px);
  align-items: start;
}
.coop__h {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.coop__list {
  border-top: 1px solid var(--ink);
}
.coop__list li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--ink-2);
}
.coop__list .num {
  flex: none;
  padding-top: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
}
.coop__card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  background: var(--paper-3);
}
.coop__card h3 {
  margin-bottom: 6px;
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  color: var(--ink);
}
.coop__card > p {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin-bottom: 18px;
}
.method {
  padding: 11px 0;
  border-top: 1px solid var(--line-2);
}
.method__t {
  margin-bottom: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.method__d {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.pricing {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--ink-2);
}
.pricing strong {
  color: var(--ink);
}

/* --- Contact (dark) --- */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 4.6vw, 60px);
  align-items: start;
}
.contact__info {
  display: grid;
}
.contact__item {
  display: flex;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line-dark);
}
.contact__item:last-child {
  border-bottom: 1px solid var(--line-dark);
}
.contact__item .ico {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xs);
  color: var(--amber);
}
.contact__item .ico svg {
  width: 16px;
  height: 16px;
}
.contact__item h3 {
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.contact__item p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--on-dark);
}
.contact__email a {
  border-bottom: 1px solid var(--amber-line);
  transition: color 0.2s var(--ease-io), border-color 0.2s var(--ease-io);
}
.contact__email a:hover {
  color: var(--amber-bright);
  border-color: var(--amber-bright);
}
.contact-card {
  padding: clamp(24px, 3.2vw, 36px);
  border: 1px solid var(--line-dark);
  border-top: 2px solid var(--amber);
  background: rgba(241, 240, 235, 0.025);
}
.contact-card__eyebrow {
  display: none;
}
.contact-card h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  color: var(--on-dark);
}
.contact-card > p {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--on-dark-2);
}
.contact-card .btn {
  margin-top: 22px;
}
.contact-card .contact-card__note {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--on-dark-3);
}

/* --- Footer --- */
.site-footer {
  padding: clamp(40px, 6vh, 60px) 0 28px;
  background: var(--ink-950);
  color: var(--on-dark-3);
  border-top: 1px solid var(--line-dark);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__brand .brand__mark {
  color: var(--amber);
}
.footer__brand .brand__name {
  color: var(--on-dark);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}
.footer__brand .brand__sub {
  color: var(--amber);
}
.footer__meta {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--on-dark-2);
}
.footer__meta a {
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.2s var(--ease-io), border-color 0.2s var(--ease-io);
}
.footer__meta a:hover {
  color: var(--amber-bright);
  border-color: var(--amber-bright);
}
.footer__bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark-2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-3);
}
.footer__bottom .mono {
  letter-spacing: 0.08em;
}

/* ============================================================
   MOTION
   ============================================================ */
@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes reveal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes spec-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes cue-drift {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.65;
  }
  50% {
    transform: translateX(-50%) translateY(3px);
    opacity: 1;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Reveal: one calm 12px rise, no overshoot, no scale, never replayed.
   motion.js marks a screen .is-inview once and keeps it; content therefore
   settles as the visitor moves through the page instead of breathing. */
.js .screen:not(.is-inview) [data-reveal],
.js .site-footer:not(.is-inview) [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}
.js .screen.is-inview [data-reveal],
.js .site-footer.is-inview [data-reveal] {
  animation: reveal-rise 380ms var(--ease) var(--reveal-delay, 0ms) backwards;
}

/* Language switch cross-fade hook (class toggled by i18n.js) */
html.is-switching [data-i18n] {
  transition: opacity 0.12s ease;
  opacity: 0.5;
}

/* Static beam fallback: no JS, or the canvas could not start. */
.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}
html:not(.js) .hero__fallback--desktop,
.hero--no-canvas .hero__fallback--desktop {
  display: block;
}
@media (max-width: 899px) {
  html:not(.js) .hero__fallback--desktop,
  .hero--no-canvas .hero__fallback--desktop {
    display: none;
  }
  html:not(.js) .hero__fallback--mobile,
  .hero--no-canvas .hero__fallback--mobile {
    display: block;
  }
}

/* No-JS: never show controls that cannot work. */
html:not(.js) .nav__toggle,
html:not(.js) .language-toggle {
  display: none !important;
}
html:not(.js) .marquee__track {
  animation: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .header__tagline {
    display: none;
  }
}
@media (max-width: 1379px) {
  .nav__toggle {
    display: flex;
  }
}
@media (max-width: 479px) {
  .header__progress {
    display: none;
  }
}
@media (max-width: 1024px) {
  .rail {
    display: none;
  }
}
@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }
  .screen-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .screen-head__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .screen-head__grid > .h-section:only-child {
    max-width: 28ch;
  }
  .screen-head__kicker {
    order: 2;
    justify-self: start;
    padding-top: 0;
    text-align: left;
  }
  .about-grid,
  .coop,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .delivery {
    grid-template-columns: minmax(0, 1fr);
    border-top-color: var(--line);
  }
  .delivery__stage,
  .delivery__stage:first-child {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 18px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .delivery__stage:last-child {
    border-bottom: none;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .pains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .use-cases {
    grid-template-columns: minmax(0, 1fr);
  }
  .use-case {
    padding: 12px 0;
    border-right: none;
    border-bottom: 1px solid var(--line-2);
  }
  .use-case:last-child {
    border-bottom: none;
  }
  .hero__graph-note {
    display: none;
  }
  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }
  .stat {
    padding: 16px clamp(12px, 3vw, 22px);
    border-bottom: 1px solid var(--line-dark-2);
  }
  .stat:nth-child(2n) {
    border-right: none;
  }
  .stat:nth-last-child(-n + 2) {
    border-bottom: none;
  }
  .table-hint {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }
  .compare-wrap,
  .record-wrap {
    border-top-width: 1px;
  }
  .compare th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--paper);
    box-shadow: 1px 0 var(--line);
  }
  .compare td.col-fde,
  .compare th.col-fde {
    box-shadow: -1px 0 var(--line), 1px 0 var(--line);
  }
  .record td:first-child {
    position: sticky;
    left: 0;
    background: var(--paper);
    box-shadow: 1px 0 var(--line);
  }
  .secure-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__title {
    font-size: clamp(2.2rem, 9.2vw, 3.4rem);
    max-width: none;
  }
}
@media (max-width: 720px) {
  .header__cta {
    display: none;
  }
  .wf-agent {
    grid-template-columns: minmax(0, 1fr);
  }
  .methods {
    grid-template-columns: minmax(0, 1fr);
  }
  .pains {
    grid-template-columns: minmax(0, 1fr);
  }
  .spec__head {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .spec__num {
    order: 0;
  }
  .spec__title {
    order: 1;
    flex: 1 1 100%;
  }
  .spec__tag {
    order: 2;
    margin-left: 0;
  }
  .spec__toggle {
    order: 3;
    margin-left: auto;
  }
  .spec__body {
    padding-left: 0;
  }
  .hero {
    padding-bottom: 92px;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__flow {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    bottom: 16px;
  }
  .scroll-cue {
    display: none;
  }
  .screen {
    padding-block: calc(var(--header-h) + 36px) 60px;
  }
}
@media (max-width: 480px) {
  .brand__sub {
    display: none;
  }
  .language-toggle {
    min-height: 44px;
    padding: 0 8px;
  }
  .hero__title {
    font-size: clamp(2rem, 8.6vw, 2.5rem);
  }
  .hero__lead {
    font-size: 0.92rem;
    line-height: 1.66;
  }
  .hero__flow {
    display: none;
  }
  .stat {
    padding: 12px clamp(10px, 3vw, 18px);
  }
  .stat__note {
    display: none;
  }
  .stat__label {
    margin-top: 7px;
    font-size: 0.76rem;
  }
  .screen-head__lead {
    font-size: 0.94rem;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
  .goal {
    padding: 20px 22px;
  }
}

/* ---------- Short desktop viewport: keep the one-screen rhythm ---------- */
@media (min-width: 1024px) and (max-height: 860px) {
  .screen {
    padding-block: calc(var(--header-h) + 20px) 28px;
  }
  .screen-head {
    margin-bottom: 20px;
    padding-top: 12px;
  }
  .h-section {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  }
  .screen-head__lead {
    font-size: 0.9rem;
    line-height: 1.62;
  }
  .hero {
    padding-block: calc(var(--header-h) + 18px) 92px;
  }
  .hero__copy {
    gap: 16px;
  }
  .hero__title {
    font-size: clamp(2.4rem, 4.6vw, 4rem);
  }
  .hero__lead {
    font-size: 0.94rem;
    line-height: 1.66;
  }
  .hero__stats {
    padding-top: 18px;
  }
  .stat__num {
    font-size: clamp(1.6rem, 2.3vw, 2rem);
  }
  .stat__label {
    margin-top: 7px;
    font-size: 0.76rem;
  }
  .about-def {
    padding-top: 16px;
  }
  .goal {
    margin-top: 20px;
    padding: 20px 26px;
  }
  .goal p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
  }
  .pain,
  .secure {
    padding: 18px 20px;
  }
  .pain__top {
    margin-bottom: 16px;
  }
  .pain-close {
    margin-top: 18px;
    font-size: 0.92rem;
  }
  .compare th,
  .compare td,
  .record th,
  .record td {
    padding: 10px 14px;
  }
  .coop__list li {
    padding: 11px 0;
    font-size: 0.9rem;
  }
  .coop__card {
    padding: 20px 22px;
  }
  .method {
    padding: 9px 0;
  }
  .pricing {
    padding-top: 12px;
    font-size: 0.84rem;
  }
  .marquee {
    margin-top: 14px;
  }
  .contact-card {
    padding: 24px 26px;
  }
  .callout {
    margin-top: 14px;
    padding: 13px 0 0;
  }
  .spec__head {
    padding: 14px 2px;
  }
  .delivery__stage-name {
    margin-bottom: 10px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .screen.is-inview [data-reveal],
  .js .site-footer.is-inview [data-reveal] {
    animation: reveal-fade 0.16s linear both !important;
    transform: none !important;
  }
  .js .screen:not(.is-inview) [data-reveal],
  .js .site-footer:not(.is-inview) [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .marquee__track,
  .scroll-cue,
  .hero__kicker-dot,
  .hero__graph-note__dot {
    animation: none !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .rail,
  .mobile-menu,
  .scroll-cue,
  .hero__meta,
  .hero__graph,
  .hero__rules,
  .screen-grid {
    display: none !important;
  }
  .js .screen:not(.is-inview) [data-reveal],
  .js .site-footer:not(.is-inview) [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .screen {
    min-height: 0;
    padding-block: 24px;
  }
  body {
    background: #fff;
  }
}
