/* ORXE — site styles. No external resources; self-hosted Barlow (OFL, see fonts/LICENSE-OFL). */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }

:root {
  --black: #000;
  --ink: #0b0b0d;          /* raised surface */
  --line: #2a2a2e;         /* rules, borders */
  --line-soft: #1a1a1d;
  --white: #fff;
  --muted: #a7a7ad;
  --dim: #85858d;          /* ≥ 4.5:1 on black */
  --red: #E3122B;          /* ORXE red — the only accent */
  --red-deep: #9e0c1d;

  --sans: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);       /* entrances, reveals */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);   /* movement on screen */
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  background: var(--black);
}
html.motion-full { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }

a { color: var(--white); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--white); color: var(--black); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.kicker {
  color: var(--red); font-size: .8125rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px;
}
.display {
  font-size: clamp(2.6rem, 7.2vw, 6rem); font-weight: 600; line-height: .98;
  letter-spacing: .01em; text-transform: uppercase;
}
.display-md { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 38em; margin-top: 22px; }
.sub { font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-top: 14px; }
.fineprint { color: var(--dim); font-size: .875rem; margin-top: 20px; }

/* ---------- buttons (SpaceX-style ghost with fill sweep) ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  border: 2px solid var(--white); background: var(--white); color: var(--black);
  font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--white); border-color: var(--red); }
.btn-line { background: transparent; color: var(--white); }
.btn-line::before { background: var(--white); }
.btn-line:hover, .btn-line:focus-visible { color: var(--black); border-color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .75rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
  transition: transform .45s var(--ease), background-color .3s;
}
.site-header.is-scrolled { background-color: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  height: 100%; display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter); max-width: calc(1600px + 2 * var(--gutter)); margin: 0 auto;
}
.brand { display: block; flex: none; }
.brand .logo { width: 120px; height: auto; }

.primary-nav { display: flex; gap: 28px; flex: 1; }
.primary-nav a, .header-portal, .lang a {
  color: var(--white); text-decoration: none; font-size: .8125rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; position: relative; padding: 6px 0;
}
.primary-nav a::after, .header-portal::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.primary-nav a:hover::after, .header-portal:hover::after { transform: scaleX(1); }
.primary-nav .nav-portal { display: none; }
.zent-login { color: #6db9f5 !important; animation: zent-glow 3.2s ease-in-out infinite; }
.zent-login::after { background: #2fc7e9 !important; box-shadow: 0 0 10px #2fc7e9; }
.zent-login:hover { color: #bdf2ff !important; }
@keyframes zent-glow {
  0%, 100% { text-shadow: 0 0 6px rgba(47, 199, 233, .45), 0 0 16px rgba(47, 199, 233, .2); }
  50% { text-shadow: 0 0 10px rgba(47, 199, 233, .9), 0 0 28px rgba(47, 199, 233, .45); }
}
.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.lang { display: flex; gap: 12px; }
.lang a { color: var(--dim); }
.lang a[aria-current="page"], .lang a:hover { color: var(--white); }
.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .primary-nav { gap: 20px; }
  .header-portal { display: none; }
}
@media (max-width: 900px) {
  .header-inner { gap: 16px; }
  .brand .logo { width: 100px; }
  /* without JS the nav stays inline and wraps */
  .primary-nav { gap: 6px 16px; flex-wrap: wrap; }
  .primary-nav a { font-size: .6875rem; letter-spacing: .1em; }
  .js .primary-nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px;
    padding: var(--header-h) var(--gutter) 40px; background: var(--black);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .js .primary-nav a { font-size: clamp(1.6rem, 8vw, 2.4rem); letter-spacing: .06em; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .js .primary-nav a::after { display: none; }
  .js .primary-nav .nav-portal { display: block; }
  .menu-open .primary-nav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .menu-open .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open body { overflow: hidden; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; cursor: pointer;
    font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  }
  .menu-icon { position: relative; width: 22px; height: 12px; }
  .menu-icon::before, .menu-icon::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--white); transition: transform .3s var(--ease), top .3s var(--ease);
  }
  .menu-icon::before { top: 0; }
  .menu-icon::after { top: 10px; }
  .menu-open .menu-icon::before { top: 5px; transform: rotate(45deg); }
  .menu-open .menu-icon::after { top: 5px; transform: rotate(-45deg); }
}
@media (max-width: 520px) {
  .lang { display: none; }
  .js .lang { display: none; }
}

/* ---------- logo ----------
   The X's gloss (rotating reflection, travelling rim light, specular sweep) is SMIL inside the
   SVG: it only changes light, never position, so it runs permanently, also under prefers-reduced-motion. */

/* ---------- full-screen panels ---------- */
.panel {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  border-bottom: 1px solid var(--line-soft);
}
.panel::after {   /* legibility scrim, bottom-left */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(to right, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 55%);
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.panel::before {   /* film grain: gives the black depth instead of a flat fill */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 160px 160px;
}
.panel-content {
  width: 100%; max-width: calc(1600px + 2 * var(--gutter)); margin: 0 auto;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(72px, 12vh, 140px);
}
.panel-content > * { max-width: 760px; }

/* hero */
.hero { background: radial-gradient(120% 80% at 70% 30%, #120406 0%, #000 60%); }
.hero-mark {
  position: absolute; z-index: 0; left: 50%; top: 30%; transform: translate(-50%, -50%);
  width: min(60vw, 720px); pointer-events: none;
}
.hero-mark::before {   /* soft light behind the glossy X so it reads on black */
  content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(227, 18, 43, .22), rgba(227, 18, 43, 0));
  filter: blur(10px);
}
.logo-hero { position: relative; width: 100%; height: auto; overflow: visible; }
.hero .panel-content { position: relative; z-index: 1; padding-top: 48vh; padding-bottom: clamp(56px, 9vh, 110px); }
.hero .display { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }

/* intro — full motion: the mark assembles, the headline rises out of its lines, the rest follows */
.motion-full .logo-hero .l-o, .motion-full .logo-hero .l-r { animation: slide-l 1.1s var(--ease) both; }
.motion-full .logo-hero .l-e { animation: slide-r 1.1s var(--ease) both; }
.motion-full .logo-hero .l-x { transform-box: fill-box; transform-origin: center; animation: x-ignite 1.6s var(--ease) .25s both; }
.motion-full .hero .kicker { animation: rise .9s var(--ease-out) .45s both; }
.motion-full .hero-title .ln-i { animation: line-up 1.1s var(--ease-out) both; }
.motion-full .hero-title .ln:nth-child(1) .ln-i { animation-delay: .55s; }
.motion-full .hero-title .ln:nth-child(2) .ln-i { animation-delay: .68s; }
.motion-full .hero .lead { animation: rise 1s var(--ease-out) .9s both; }
.motion-full .hero .actions { animation: rise 1s var(--ease-out) 1.02s both; }
.motion-full .hero-hint, .motion-full .scroll-cue { animation: fade-in 1s var(--ease-out) 1.8s backwards; }
/* calm (OS "reduce motion"): the same sequence as fades, nothing travels */
.motion-calm .logo-hero .l-o, .motion-calm .logo-hero .l-r, .motion-calm .logo-hero .l-e { animation: fade-in .9s var(--ease-out) both; }
.motion-calm .logo-hero .l-x { animation: fade-in 1.2s var(--ease-out) .2s both; }
.motion-calm .hero .kicker, .motion-calm .hero-title, .motion-calm .hero .lead, .motion-calm .hero .actions, .motion-calm .hero-hint, .motion-calm .scroll-cue { animation: fade-in .9s var(--ease-out) backwards; }
.motion-calm .hero .kicker { animation-delay: .3s; }
.motion-calm .hero-title { animation-delay: .4s; }
.motion-calm .hero .lead { animation-delay: .55s; }
.motion-calm .hero .actions { animation-delay: .65s; }
.motion-calm .hero-hint, .motion-calm .scroll-cue { animation-delay: 1.2s; }
@keyframes slide-l { from { transform: translateX(-24px); opacity: 0; } }
@keyframes slide-r { from { transform: translateX(24px); opacity: 0; } }
@keyframes x-ignite {
  0% { transform: perspective(400px) rotateY(90deg) scale(.6); opacity: 0; }
  60% { transform: perspective(400px) rotateY(-12deg) scale(1.04); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes line-up { from { transform: translateY(108%); } }
@keyframes fade-in { from { opacity: 0; } }

/* headline lines: each line is a mask the words rise out of */
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .ln-i { display: inline-block; }
/* typed line (fx.js): the caret is the "thinking" cursor of the agent */
.typed-caret {
  display: inline-block; width: .09em; height: .78em; margin-left: .06em; vertical-align: baseline;
  background: var(--red); transform: translateY(.04em);
}
.typed-caret.is-blinking { animation: caret 1s steps(2, jump-none) 5; }
@keyframes caret { 50% { opacity: 0; } }

/* hint + scroll cue */
.hero-hint {
  position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(56px, 9vh, 110px);
  display: flex; align-items: center; gap: 10px; pointer-events: none;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
}
.hint-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hint-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--red); animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; pointer-events: none;
  font-size: .625rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--dim);
}
.scroll-cue-line { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--red); transform: translateY(-100%); }
.motion-full .scroll-cue-line::after { animation: cue 2.2s var(--ease-in-out) 2.4s infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@media (hover: none), (max-width: 760px) { .hero-hint { display: none; } }
@media (max-height: 640px), (max-width: 760px) { .scroll-cue { display: none; } }
.motion-calm .hint-dot::after { animation: none; }

@media (max-width: 760px) {
  .hero-mark { top: 25%; width: 84vw; }
  .hero .panel-content { padding-top: 40vh; }
  .kicker { letter-spacing: .14em; }
}

/* ZENT — the product keeps its own colours (ZENT app: logo gradient #6db9f5 → #2fc7e9,
   ground #0B0F19, Betriebssitz/accent #FFA028, states up/warn/down). */
.zent-theme {
  --zent-blue: #6db9f5;
  --zent-cyan: #2fc7e9;
  --zent-ink: #0B0F19;
  --zent-panel: #0f1722;
  --zent-line: #1c2737;
  --zent-text: #dfe8f3;
  --zent-muted: #8fa1b8;
  --zent-base: #FFA028;
  --zent-up: #4ade80;
  --zent-warn: #fbbf24;
  --zent-down: #f87171;
}
.zent-theme .kicker { color: var(--zent-cyan); }
.orxe-word { font-weight: 700; letter-spacing: .1em; }
.ow-or { color: var(--red); }
.ow-x {
  /* glossy black like the logo's X, with a rim so it stays visible at kicker size */
  background: linear-gradient(135deg, #f4f4f8 0%, #8a8a94 38%, #1b1b20 55%, #b4b4bc 85%, #f4f4f8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: .4px #9a9aa4;
}
.ow-e { color: var(--white); }
.zent-theme :focus-visible { outline-color: var(--zent-cyan); }
.zent-theme .btn::before { background: var(--zent-cyan); }
.zent-theme .btn:hover, .zent-theme .btn:focus-visible { color: var(--zent-ink); border-color: var(--zent-cyan); }
.zent-theme .btn-line::before { background: var(--white); }
.zent-theme .btn-line:hover, .zent-theme .btn-line:focus-visible { border-color: var(--white); }
.zent-name {
  letter-spacing: .06em;
  background: linear-gradient(100deg, var(--zent-blue) 0%, var(--zent-cyan) 60%, #bdf2ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tour-head .sub { color: var(--zent-text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li {
  border: 1px solid rgba(109, 185, 245, .32); padding: 7px 12px; font-size: .8125rem; font-weight: 500;
  letter-spacing: .06em; color: var(--zent-text); background: rgba(11, 15, 25, .6);
}

/* ZENT tour (zent-tour.js) */
.tour { background: linear-gradient(180deg, #000 0%, #060a12 18%, #070c16 82%, #000 100%); }
.tour-head { max-width: 760px; }
.tour-player { display: grid; gap: 0; }
@media (min-width: 700px) {
  /* keep stage + controls + caption within one screen */
  .tour-player { max-width: min(100%, calc((100vh - 330px) * 16 / 9)); max-width: min(100%, calc((100svh - 330px) * 16 / 9)); margin: 0 auto; }
}
.tour-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%;
  background: var(--zent-ink); border: 1px solid var(--zent-line); border-radius: 18px 18px 0 0; overflow: hidden;
  box-shadow: 0 50px 140px -60px rgba(47, 199, 233, .35);
}
.tour-stage[hidden] { display: none; }
.tour-stage:focus-visible { outline: 2px solid var(--zent-cyan); outline-offset: 4px; }
.tour-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tour-canvas.is-pointing { cursor: pointer; }

.tour-controls {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  background: var(--zent-panel); border: 1px solid var(--zent-line); border-top: 0; border-radius: 0 0 18px 18px;
}
.tour-controls[hidden] { display: none; }
.tour-play {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--zent-line); background: transparent; cursor: pointer; position: relative;
}
.tour-play:hover { border-color: var(--zent-cyan); }
.tour-play-icon { position: absolute; left: 15px; top: 12px; border-left: 12px solid var(--zent-text); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.is-playing .tour-play-icon { left: 13px; top: 13px; width: 12px; height: 14px; border: 0; border-left: 4px solid var(--zent-text); border-right: 4px solid var(--zent-text); }
.tour-chapters { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; min-width: 0; }
.tour-chapter {
  width: 100%; display: grid; gap: 8px; padding: 6px 0; background: none; border: 0; cursor: pointer; text-align: left; min-width: 0;
}
.tour-bar { display: block; height: 4px; border-radius: 2px; background: var(--zent-line); overflow: hidden; }
.tour-fill { display: block; height: 100%; background: var(--zent-cyan); transform-origin: left; transform: scaleX(var(--p, 0)); }
.tour-chapter-title {
  font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--zent-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tour-chapter[aria-current] .tour-chapter-title, .tour-chapter:hover .tour-chapter-title { color: var(--zent-text); }
.tour-time { flex: none; font-family: var(--mono); font-size: .8125rem; color: var(--zent-muted); font-variant-numeric: tabular-nums; }

.tour-caption { display: none; padding: 26px 4px 0; max-width: 820px; min-height: 9.5em; }
.tour-ready .tour-caption { display: block; }
.tour-count { font-family: var(--mono); font-size: .8125rem; color: var(--zent-cyan); }
.tour-title { font-size: clamp(1.4rem, 2.4vw, 2rem); text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 10px; }
.tour-desc { color: var(--muted); font-size: 1.0625rem; max-width: 60em; }

/* without JS the chapter script is the content */
.tour-script { display: grid; gap: 28px; counter-reset: ch; }
.tour-script li { counter-increment: ch; border-top: 1px solid var(--zent-line); padding-top: 18px; }
.tour-script li::before { content: "0" counter(ch); font-family: var(--mono); font-size: .8125rem; color: var(--zent-cyan); }
.tour-script h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; margin: 6px 0 8px; }
.tour-script p { color: var(--muted); max-width: 60em; }
.tour-ready .tour-script { display: none; }
.tour-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-top: 36px; }
.tour-foot .fineprint { max-width: 52em; margin: 0; }
.tour-foot .actions { margin-top: 0; }

@media (max-width: 699px) {
  .tour-stage { aspect-ratio: 560 / 780; border-radius: 14px 14px 0 0; }
  .tour-controls { flex-wrap: wrap; gap: 10px 12px; padding: 12px; border-radius: 0 0 14px 14px; }
  .tour-chapters { order: 3; flex-basis: 100%; gap: 4px; }
  .tour-chapter-title { display: none; }
  .tour-chapter[aria-current] { grid-column: span 1; }
  .tour-time { margin-left: auto; }
  .tour-caption { min-height: 13em; }
}
@media (min-width: 1100px) {
  /* presentation layout: stage left, narration right, all within one screen */
  .tour-ready .tour-player {
    grid-template-columns: minmax(0, 1fr) 320px; column-gap: 40px;
    max-width: min(100%, calc((100vh - 230px) * 16 / 9 + 360px)); max-width: min(100%, calc((100svh - 230px) * 16 / 9 + 360px));
  }
  .tour-stage, .tour-controls { grid-column: 1; }
  .tour-caption { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 0; min-height: 0; border-left: 2px solid var(--zent-line); padding-left: 24px; }
  .tour-title { font-size: 1.75rem; }
  .tour-desc { font-size: 1rem; }
}

/* ---------- regular sections ---------- */
.section { padding: clamp(96px, 14vh, 160px) 0; border-bottom: 1px solid var(--line-soft); }
.section-head { margin-bottom: clamp(40px, 6vh, 72px); }

/* automation demo */
.automation { background: radial-gradient(90% 60% at 85% 20%, #14050a 0%, #000 65%); }
.automation .display-md { font-size: clamp(2.2rem, 3.9vw, 3.6rem); }
.automation-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.triggers { display: grid; gap: 10px; margin-top: 34px; }
.trigger {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer;
  min-height: 56px; padding: 0 20px; background: transparent; border: 1px solid var(--line);
  font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .25s, background-color .25s;
}
.trigger:hover { border-color: var(--muted); }
.trigger[aria-pressed="true"] { border-color: var(--red); background: rgba(227, 18, 43, .08); }
.trigger-index { color: var(--red); font-family: var(--mono); font-size: .75rem; letter-spacing: 0; }

.own-case { display: none; margin-top: 28px; }
.js .own-case { display: block; }
.own-case label { display: block; margin-bottom: 10px; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.own-case-row { display: flex; gap: 10px; }
.own-case input {
  flex: 1; min-width: 0; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); background: #08080a; color: var(--white);
  font: inherit; font-size: .9375rem; transition: border-color .25s;
}
.own-case input::placeholder { color: var(--dim); }
.own-case input:focus { outline: none; border-color: var(--red); }
@media (max-width: 520px) { .own-case-row { flex-direction: column; } }

.console {
  border: 1px solid var(--line); background: linear-gradient(180deg, #0c0c0f, #050506);
  box-shadow: 0 40px 120px -40px rgba(227, 18, 43, .25);
}
.console-bar {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .75rem; color: var(--dim);
}
.console-light { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.is-running .console-light { background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1s steps(2) infinite; }
.is-waiting .console-light { background: #f0b429; box-shadow: 0 0 10px #f0b429; }
.is-done .console-light { background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
@keyframes blink { 50% { opacity: .35; } }
.console-title { flex: 1; }
.console-state { text-transform: uppercase; letter-spacing: .14em; }

.flow {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 28px 18px 22px; border-bottom: 1px solid var(--line);
}
.flow::before, .flow::after {   /* track + progress */
  content: ""; position: absolute; left: calc(18px + 10%); right: calc(18px + 10%); top: 37px; height: 2px; background: var(--line);
}
.flow::after { background: var(--red); right: auto; width: 0; transition: width .6s var(--ease); }
.flow[data-progress="1"]::after { width: calc((100% - 36px) * .2); }
.flow[data-progress="2"]::after { width: calc((100% - 36px) * .4); }
.flow[data-progress="3"]::after { width: calc((100% - 36px) * .6); }
.flow[data-progress="4"]::after { width: calc((100% - 36px) * .8); }
.flow-node { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; text-align: center; }
.flow-dot {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: #050506;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.flow-label { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: color .3s; }
.flow-node.is-active .flow-dot { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 6px rgba(227, 18, 43, .18), 0 0 24px var(--red); }
.flow-node.is-active .flow-label, .flow-node.is-done .flow-label { color: var(--white); }
.flow-node.is-done .flow-dot { border-color: var(--white); background: var(--white); }
.flow-node.is-rejected .flow-dot { border-color: var(--dim); background: transparent; }
.flow-node.is-waiting .flow-dot { border-color: #f0b429; background: #f0b429; box-shadow: 0 0 0 6px rgba(240, 180, 41, .16); }
.flow-node.is-active .flow-dot, .flow-node.is-waiting .flow-dot { animation: pulse 1.4s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(227, 18, 43, 0), 0 0 24px var(--red); } }

.log {
  font-family: var(--mono); font-size: .8125rem; line-height: 1.5;
  padding: 18px; min-height: 248px; display: grid; align-content: start; gap: 8px;
}
.log-line { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; align-items: baseline; }
.log-tag { font-size: .6875rem; font-weight: 700; text-align: center; padding: 1px 0; border: 1px solid currentColor; }
.tag-in { color: var(--muted); }
.tag-ai { color: var(--red); }
.tag-wait { color: #f0b429; }
.tag-ok { color: #3ddc84; }
.tag-out { color: var(--dim); }
.log-time { display: none; }
.log-text { color: #d9d9de; }
.log-line.is-new { animation: line-in .35s var(--ease) both; }
.log-line.is-new .log-text { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 100%; animation: type var(--type, .8s) steps(var(--chars, 40)) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes type { from { width: 0; } to { width: calc(var(--chars, 40) * 1ch); } }

.approve {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; border-top: 1px solid var(--line); background: rgba(240, 180, 41, .06);
}
.approve[hidden] { display: none; }
.approve-q { font-weight: 500; }
.approve-actions { display: flex; gap: 10px; }
.result { display: grid; gap: 12px; padding: 18px; border-top: 1px solid var(--line); background: rgba(61, 220, 132, .05); }
.result[hidden] { display: none; }
.result-title { color: #3ddc84; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.result-row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: .875rem; }
.result-label { color: var(--muted); }
.result-bar { height: 8px; background: var(--line-soft); overflow: hidden; }
.result-fill { display: block; height: 100%; width: 0; transition: width 1.1s var(--ease); }
.result-fill.is-manual { background: var(--dim); }
.result-fill.is-orxe { background: var(--red); box-shadow: 0 0 12px var(--red); }
.result.is-shown .is-manual { width: 100%; }
.result.is-shown .is-orxe { width: var(--w, 6%); transition-delay: .25s; }
.result-value { font-family: var(--mono); font-size: .8125rem; white-space: nowrap; }
.result-note { color: var(--dim); font-size: .8125rem; }
.result .btn { justify-self: start; }
.replay {
  display: block; width: 100%; padding: 14px; border: 0; border-top: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.replay:hover { color: var(--white); }
.replay[hidden] { display: none; }

@media (max-width: 900px) {
  .automation .display-md { font-size: clamp(2.2rem, 3.9vw, 3.6rem); }
.automation-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .flow { padding: 24px 6px 18px; }
  .flow::before, .flow::after { left: calc(6px + 10%); right: calc(6px + 10%); top: 33px; }
  .flow[data-progress="1"]::after { width: calc((100% - 12px) * .2); }
  .flow[data-progress="2"]::after { width: calc((100% - 12px) * .4); }
  .flow[data-progress="3"]::after { width: calc((100% - 12px) * .6); }
  .flow[data-progress="4"]::after { width: calc((100% - 12px) * .8); }
  .flow-label { font-size: .5625rem; letter-spacing: .06em; }
  .log { font-size: .75rem; padding: 14px; min-height: 280px; }
  .log-line { grid-template-columns: 3.6em 1fr; gap: 8px; }
  .log-line.is-new .log-text { animation: none; display: inline; white-space: normal; }
}

/* services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service { padding: 36px 28px 40px 0; border-right: 1px solid var(--line-soft); }
.service + .service { padding-left: 28px; }
.service:last-child { border-right: 0; }
.service-index { display: block; font-family: var(--mono); color: var(--red); font-size: .8125rem; margin-bottom: 48px; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.service-top .service-index { margin-bottom: 0; }
.service h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.service { display: flex; flex-direction: column; }
.service p { color: var(--muted); }
.service-link {
  margin-top: auto; padding-top: 22px; color: var(--white); text-decoration: none;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.service-link:hover, .service-link:focus-visible { color: var(--red); }
/* industry solutions: products ORXE runs itself, listed under the service areas */
.solutions-label {
  margin-top: clamp(48px, 7vh, 80px); padding-bottom: 14px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.solution-feature {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line-soft); color: var(--zent-text); text-decoration: none;
}
.solution-mark { display: block; transition: filter .3s var(--ease); }
.solution-body { display: grid; gap: 6px; }
.solution-kicker { color: var(--zent-cyan); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.solution-name { font-size: 1.6rem; font-weight: 600; letter-spacing: .12em; line-height: 1.1; }
.solution-text { color: var(--zent-muted); max-width: 62ch; }
.solution-go { color: var(--zent-muted); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; transition: color .3s var(--ease); }
.solution-feature:hover .solution-go, .solution-feature:focus-visible .solution-go { color: var(--zent-cyan); }
.solution-feature:hover .solution-mark, .solution-feature:focus-visible .solution-mark { filter: drop-shadow(0 0 14px rgba(47, 199, 233, .45)); }
@media (max-width: 600px) {
  .solution-feature { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .solution-go { grid-column: 2; }
}
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service, .service + .service { padding: 32px 24px 36px 0; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .service:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-soft); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .service:nth-child(even) { padding-left: 0; border-left: 0; }
  .service-index { margin-bottom: 20px; }
}


/* contact */
.contact { min-height: 80vh; min-height: 80svh; background: radial-gradient(70% 60% at 50% 110%, #2a0309 0%, #000 70%); }
.contact-mail { margin-top: 34px; font-size: clamp(1.5rem, 4vw, 2.75rem); font-weight: 500; letter-spacing: .02em; }
.contact-mail a {
  display: inline-block; text-decoration: none; padding-bottom: .1em;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 2px no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .contact-mail a:hover { animation: underline-sweep .9s var(--ease-in-out); }
}
@keyframes underline-sweep {
  0% { background-size: 100% 2px; background-position: 100% 100%; }
  45% { background-size: 0 2px; background-position: 100% 100%; }
  55% { background-size: 0 2px; background-position: 0 100%; }
  100% { background-size: 100% 2px; background-position: 0 100%; }
}
/* ZENT portal: a compact product card — animated mark (SMIL light), kicker, name, sign-in pill */
.zent-portal {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 18px; margin-top: 40px;
  padding: 16px 16px 16px 18px; border: 1px solid var(--zent-line); border-radius: 20px; color: var(--zent-text); text-decoration: none;
  background: radial-gradient(120% 140% at 0% 0%, rgba(47, 199, 233, .10), transparent 55%), linear-gradient(180deg, rgba(12, 18, 30, .92), rgba(7, 11, 19, .92));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -40px rgba(47, 199, 233, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.zent-portal::before {   /* light running around the frame */
  content: ""; position: absolute; inset: 0; z-index: 2; padding: 1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0turn, transparent .7turn, rgba(47, 199, 233, .9) .86turn, #eafcff .88turn, transparent .94turn);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite;
}
.zp-light {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(47, 199, 233, .18), transparent 70%); transition: opacity .4s var(--ease-out);
}
.zent-portal.is-lit .zp-light { opacity: 1; }
.zent-portal:hover, .zent-portal:focus-visible { border-color: rgba(47, 199, 233, .45); box-shadow: 0 36px 90px -36px rgba(47, 199, 233, .65), inset 0 1px 0 rgba(255, 255, 255, .07); }
.zent-portal:focus-visible { outline: 2px solid #2fc7e9; outline-offset: 4px; }
.zent-logo { flex: none; display: block; transition: filter .3s var(--ease); }
.zent-portal:hover .zent-logo, .zent-portal:focus-visible .zent-logo { filter: drop-shadow(0 0 14px rgba(47, 199, 233, .55)); }
.zent-portal-text { display: grid; gap: 5px; min-width: 0; }
.zent-portal-kicker { color: var(--zent-muted); font-size: .8125rem; }
.zent-portal-word {
  font-size: 1.25rem; font-weight: 600; line-height: 1.05; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(100deg, #6db9f5 0%, #2fc7e9 60%, #bdf2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.zent-portal-url { font-family: var(--mono); font-size: .75rem; color: #5f7088; }
.zent-portal-go {
  display: inline-flex; align-items: center; gap: 10px; margin-left: 14px; padding: 6px 6px 6px 16px; border-radius: 999px;
  border: 1px solid rgba(47, 199, 233, .4); color: var(--zent-text);
  font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.zent-portal-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(47, 199, 233, .14); }
.zent-portal-arrow svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.zent-portal:hover .zent-portal-go, .zent-portal:focus-visible .zent-portal-go { background: #2fc7e9; border-color: #2fc7e9; color: #0B0F19; }
.zent-portal:hover .zent-portal-arrow, .zent-portal:focus-visible .zent-portal-arrow { background: rgba(11, 15, 25, .18); }
.motion-full .zent-portal:hover .zent-portal-arrow svg { transform: translateX(3px); }
@media (max-width: 560px) {
  .zent-portal { display: grid; grid-template-columns: auto minmax(0, 1fr); width: 100%; gap: 14px 16px; }
  .zent-portal-go { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; margin-left: 0; }
}

/* ---------- reveal on scroll (only for elements below the fold; set by fx.js) ----------
   Groups enter as a wave: --d is set per item by fx.js, shrinking gaps so it never reads as a queue. */
.reveal-pending { opacity: 0; }
.motion-full .reveal-pending { transform: translateY(40px); }
.reveal-pending.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}


/* ---------- footer ---------- */
.site-footer { padding: 56px 0 64px; color: var(--muted); font-size: .9375rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { flex: none; margin-top: 3px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-nav a { color: var(--white); text-decoration: none; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--red); }
.footer-note { grid-column: 1 / -1; color: var(--dim); font-size: .875rem; border-top: 1px solid var(--line-soft); padding-top: 24px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- legal pages & 404 ---------- */
.legal, .notfound { padding: calc(var(--header-h) + 64px) 0 96px; border-bottom: 1px solid var(--line-soft); }
.legal-body { max-width: 760px; }
.legal-body h1, .notfound h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 20px; }
.legal-body h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .12em; margin: 44px 0 12px; }
.legal-body p, .legal-body address, .legal-body li { color: #d4d4d9; }
.legal-body p + p { margin-top: 12px; }
.legal-body address { font-style: normal; }
.legal-body ul { list-style: disc; padding-left: 1.3em; margin: 10px 0; }
.legal-body a { color: var(--white); text-decoration-color: var(--red); }
.legal-intro { color: var(--muted); font-size: 1.125rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin-top: 10px; }
.kv dt { color: var(--muted); }
.notfound p { color: var(--muted); max-width: 40em; }
.notfound .actions { margin-top: 32px; }
mark.missing { background: var(--red); color: var(--white); padding: 0 4px; font-family: var(--mono); font-size: .875em; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }

@media print {
  .site-header, .scene, .console, .triggers, .own-case { display: none; }
  body, html { background: #fff; color: #000; }
}

/* =====================================================================================
   LIVE LAYER — motion system (fx.js). Every rule degrades: no JS → static page,
   .motion-calm → light, colour and fades only, .motion-full → everything.
   ===================================================================================== */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --r { syntax: "<length>"; inherits: true; initial-value: 0px; }

/* scroll progress: a red hairline across the top of the viewport */
.scroll-progress {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 2px; pointer-events: none;
  background: var(--red); transform-origin: left; transform: scaleX(0);
}
.scroll-progress::after { content: ""; position: absolute; right: 0; top: -2px; width: 80px; height: 6px; background: radial-gradient(closest-side, rgba(227, 18, 43, .9), transparent); }
html:not(.js) .scroll-progress { display: none; }

/* split headlines: every word rises out of its own mask */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-i { display: inline-block; }
.motion-full .is-split-pending .split-i { transform: translateY(110%); }
.motion-full .is-split-in .split-i { transform: none; transition: transform 1.1s var(--ease-out) var(--wd, 0s); }
.motion-calm .is-split-pending .split-i { opacity: 0; }
.motion-calm .is-split-in .split-i { opacity: 1; transition: opacity .8s var(--ease-out) var(--wd, 0s); }
/* a section head carries one entrance: the words move, the container only fades */
.motion-full .section-head.reveal-pending { transform: none; }

/* pointer spotlight on card groups */
[data-spotlight] > * { position: relative; isolation: isolate; }
[data-spotlight] > *::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 18, 43, .12), transparent 62%);
  transition: opacity .5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  [data-spotlight]:hover > *::before { opacity: 1; }
}

/* ---------- ticker: two scroll-linked bands (move only while the visitor scrolls) ---------- */
.ticker {
  position: relative; overflow: hidden; display: grid; gap: 4px;
  padding: clamp(36px, 6vh, 64px) 0; border-bottom: 1px solid var(--line-soft); background: var(--black);
}
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 10vw; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(to right, var(--black), rgba(0, 0, 0, 0)); }
.ticker::after { right: 0; background: linear-gradient(to left, var(--black), rgba(0, 0, 0, 0)); }
.ticker-row { white-space: nowrap; }
.ticker-track {
  display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 48px); padding-right: clamp(22px, 3vw, 48px);
  font-size: clamp(2.6rem, 7.4vw, 7rem); font-weight: 600; line-height: 1.04; letter-spacing: .01em; text-transform: uppercase;
}
.ticker-track span { transition: color .4s var(--ease-out), -webkit-text-stroke-color .4s var(--ease-out); }
.ticker-row.is-outline .ticker-track { color: transparent; -webkit-text-stroke: 1.2px #55555e; }
@media (hover: hover) and (pointer: fine) {
  .ticker-row:not(.is-outline) .ticker-track span:hover { color: var(--red); }
  .ticker-row.is-outline .ticker-track span:hover { -webkit-text-stroke-color: var(--red); }
}
/* the X of the mark as separator */
.tx {
  flex: none; display: block; width: .44em; height: .42em; background: var(--red);
  clip-path: polygon(0 0, 20.24% 0, 50% 37.31%, 79.76% 0, 100% 0, 60.12% 50%, 100% 100%, 79.76% 100%, 50% 62.69%, 20.24% 100%, 0 100%, 39.88% 50%);
}
.is-outline .tx { background: #55555e; }

/* ---------- services: live line-art ---------- */
.art { flex: none; width: 128px; height: auto; overflow: visible; }
.art * { vector-effect: non-scaling-stroke; }
.art-base, .art-frame, .art-node, .art-node-c, .art-core, .art-end, .art-mute { fill: none; stroke: #34343b; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s var(--ease-out); }
.art-core { fill: #070708; }
.art-dash { fill: none; stroke: var(--red); stroke-width: 1.2; stroke-dasharray: 2 8; opacity: .5; }
.art-ring { fill: none; stroke: var(--red); stroke-width: 1; }
.art-red-line, .art-ok { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art-red-fill { fill: var(--red); }
.art-dot { fill: var(--white); }
.art-mute-fill { fill: #34343b; }
.art-bar { fill: #26262c; }
.art-bar.is-red { fill: var(--red); }
.art-scan { fill: var(--red); }
.art-scan-glow { fill: rgba(227, 18, 43, .14); }
.service h3 { transition: color .4s var(--ease-out); }
.service-link span { display: inline-block; transition: transform .4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .service:hover .art-base, .service:hover .art-frame, .service:hover .art-node, .service:hover .art-node-c,
  .service:hover .art-core, .service:hover .art-end, .service:hover .art-mute { stroke: #6e6e75; }
  .service:hover .service-link span { transform: translateX(6px); }
}

/* ZENT feature row: a light sweeps across on hover */
.solution-feature { position: relative; overflow: hidden; }
.solution-feature::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(47, 199, 233, .08), transparent);
  transform: translateX(-120%);
}
@media (hover: hover) and (pointer: fine) {
  .solution-feature:hover::after { transform: translateX(320%); transition: transform 1.1s var(--ease-in-out); }
}

/* ---------- stats ---------- */
.stats {
  padding: clamp(72px, 11vh, 128px) 0; border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(60% 120% at 50% 0%, #0e0205 0%, #000 72%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { position: relative; display: grid; align-content: start; gap: 16px; padding: 6px 28px 0; border-left: 1px solid var(--line-soft); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat::before {
  content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 56px; background: var(--red);
  transform-origin: top; transform: scaleY(1);
}
.stat:first-child::before { display: none; }
.stat.reveal-pending::before { transform: scaleY(0); }
.stat.reveal-pending.is-in::before { transform: scaleY(1); transition: transform 1.2s var(--ease-out) calc(var(--d, 0s) + .2s); }
.stat-num { font-size: clamp(3rem, 6.2vw, 5.75rem); font-weight: 600; line-height: .95; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-text { color: var(--muted); max-width: 24ch; }
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .stat, .stat:nth-child(3) { padding: 0; border-left: 0; }
  .stat::before { display: none; }
}

/* ---------- demo console: a light runs around the frame while the agent works ---------- */
.console { position: relative; transition: box-shadow .8s var(--ease-out); }
.console.is-running, .console.is-waiting { box-shadow: 0 40px 140px -36px rgba(227, 18, 43, .42); }
.console::before {
  content: ""; position: absolute; inset: -1px; z-index: 2; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0turn, transparent .6turn, rgba(227, 18, 43, .95) .8turn, #fff .84turn, transparent .9turn);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .6s var(--ease-out);
}
.console.is-running::before, .console.is-waiting::before { opacity: 1; animation: spin 3.2s linear infinite; }
.console.is-waiting::before { background: conic-gradient(from var(--spin), transparent 0turn, transparent .6turn, rgba(240, 180, 41, .95) .8turn, #fff .84turn, transparent .9turn); }
@keyframes spin { to { --spin: 360deg; } }

/* ---------- ZENT: the name tracks in, a light passes over it ---------- */
.zent-name {
  background: linear-gradient(100deg, var(--zent-blue) 0%, var(--zent-cyan) 32%, #eafcff 46%, var(--zent-cyan) 60%, var(--zent-blue) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s var(--ease-in-out) 1s infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0 0; } }
.motion-full .tour-head.reveal-pending .zent-name { letter-spacing: .42em; }
.motion-full .tour-head.reveal-pending.is-in .zent-name { letter-spacing: .06em; transition: letter-spacing 1.6s var(--ease-out) .1s; }

/* ---------- principles: pinned horizontal track (full motion, wide screens) ---------- */
.principles { position: relative; border-bottom: 1px solid var(--line-soft); background: var(--black); }
.pin-stage { position: relative; overflow: hidden; padding: clamp(96px, 14vh, 160px) 0; }
.principles-bg {
  position: absolute; left: 0; top: 50%; z-index: 0; transform: translateY(-50%); pointer-events: none;
  font-size: clamp(7rem, 21vw, 22rem); font-weight: 600; line-height: 1; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px #1e1e23;
}
.principles-head { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.principles-head .section-head { max-width: 760px; }
.pin-progress { display: none; }
.principles-track {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
}
.principle { display: grid; align-content: start; padding: 32px 32px 40px 0; border-top: 1px solid var(--line); }
.principle-index { font-family: var(--mono); font-size: .8125rem; color: var(--red); }
.principle-icon { display: block; width: 48px; height: 48px; margin: 26px 0 22px; }
.principle-icon svg { width: 100%; height: 100%; fill: none; stroke: #8a8a92; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.principle-icon .ico-red { stroke: var(--red); stroke-width: 2; }
.principle h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.principle p { color: var(--muted); }
@media (max-width: 1000px) { .principles-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .principles-track { grid-template-columns: 1fr; }
  .principle { padding-right: 0; }
  .principles-bg { display: none; }
}
/* pinned (set by fx.js): the section is as tall as the track is wide; the stage sticks and the track slides */
.principles.is-pinned { height: var(--pin-h, auto); }
.principles.is-pinned .pin-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--header-h) + 8px) 0 32px;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 6vh, 64px);
}
.principles.is-pinned .principles-head .section-head { margin-bottom: 0; }
.principles.is-pinned .pin-progress { display: grid; gap: 12px; justify-items: end; flex: none; padding-bottom: 6px; }
.pin-count { font-family: var(--mono); font-size: .8125rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.pin-count span { color: var(--white); }
.pin-bar { display: block; width: 200px; height: 2px; background: var(--line); overflow: hidden; }
.pin-fill { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.principles.is-pinned .principles-track {
  display: flex; gap: 24px; width: max-content; max-width: none; margin: 0;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2)); will-change: transform;
}
.principles.is-pinned .principle {
  width: clamp(320px, 29vw, 420px); min-height: min(380px, 46vh); padding: 32px 32px 36px;
  border: 1px solid var(--line); background: linear-gradient(180deg, #0b0b0d, #050506);
  transition: border-color .5s var(--ease-out);
}
.principles.is-pinned .principle { position: relative; overflow: hidden; }
.principles-track { counter-reset: pr; }
.principle { counter-increment: pr; }
.principles.is-pinned .principle::after {   /* ghost numeral, the card's depth */
  content: "0" counter(pr); position: absolute; right: 20px; bottom: -.18em; z-index: -1; pointer-events: none;
  font-size: clamp(7rem, 11vw, 10rem); font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1px #1c1c21;
  transition: -webkit-text-stroke-color .6s var(--ease-out);
}
.principles.is-pinned .principle.is-current { border-color: #3a3a42; }
.principles.is-pinned .principle.is-current::after { -webkit-text-stroke-color: rgba(227, 18, 43, .45); }
.principles.is-pinned .principle-index { position: relative; padding-top: 2px; }
.principles.is-pinned .principle::before { z-index: -2; }
.principle .principle-icon .ico-red { stroke-dasharray: 60; stroke-dashoffset: 0; }
.motion-full .principles.is-pinned .principle .ico-red { stroke-dashoffset: 60; transition: stroke-dashoffset .9s var(--ease-out) .15s; }
.motion-full .principles.is-pinned .principle.is-current .ico-red,
.motion-full .principles.is-pinned .principle.was-current .ico-red { stroke-dashoffset: 0; }
.principles.is-pinned .principle-icon { width: 64px; height: 64px; margin: 48px 0 28px; }

/* ---------- contact ---------- */
.contact .scene { opacity: .9; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 34px; }
.contact-row .contact-mail { margin-top: 0; }
.copy-mail {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), background-color .3s var(--ease-out), transform .16s var(--ease-out);
}
.copy-mail[hidden] { display: none; }
.copy-mail:active { transform: scale(.94); }
.copy-mail svg { grid-area: 1 / 1; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s var(--ease-out), transform .35s var(--ease-out); }
.copy-ok { opacity: 0; transform: scale(.4); stroke-width: 2; }
.copy-mail.is-done .copy-ico { opacity: 0; transform: scale(.4); }
.copy-mail.is-done .copy-ok { opacity: 1; transform: none; }
.copy-ok path { stroke-dasharray: 22; stroke-dashoffset: 22; }
.copy-mail.is-done .copy-ok path { stroke-dashoffset: 0; transition: stroke-dashoffset .4s var(--ease-out) .08s; }
/* label = accessible name + tooltip on hover, focus and after copying */
.copy-label {
  position: absolute; left: 50%; bottom: calc(100% + 10px); padding: 6px 10px; border-radius: 6px; pointer-events: none; white-space: nowrap;
  background: #16161a; border: 1px solid var(--line); color: var(--white);
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translate(-50%, 4px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.copy-mail:focus-visible .copy-label, .copy-mail.is-done .copy-label { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) and (pointer: fine) {
  .copy-mail:hover { border-color: var(--muted); color: var(--white); }
  .copy-mail:hover .copy-label { opacity: 1; transform: translate(-50%, 0); }
}
.copy-mail.is-done { border-color: #3ddc84; color: #3ddc84; background: rgba(61, 220, 132, .08); }
.copy-mail.is-done .copy-label { color: #3ddc84; border-color: rgba(61, 220, 132, .4); }

/* ---------- footer: the mark at full width, a torch follows the pointer ---------- */
.footer-mark { position: relative; max-width: calc(1600px + 2 * var(--gutter)); margin: 40px auto 0; padding: 0 var(--gutter); }
.mega { display: block; width: 100%; height: auto; }
.mega-lit {
  position: absolute; top: 0; bottom: 0; left: var(--gutter); right: var(--gutter); width: auto; height: 100%;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, .55) 40%, transparent 72%);
  mask-image: radial-gradient(circle var(--r) at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, .55) 40%, transparent 72%);
  transition: --r .7s var(--ease-out);
}
.footer-mark.is-lit .mega-lit { --r: clamp(160px, 22vw, 340px); }
.site-footer { padding-bottom: clamp(24px, 4vw, 48px); }

/* ---------- cursor (full motion, fine pointer): a ring that answers what it is over ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease-out); }
.cursor.is-on { opacity: 1; }
.cursor-ring {
  position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  transition: transform .45s var(--ease-out), background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.cursor.is-link .cursor-ring { transform: scale(1.8); border-color: var(--red); background: rgba(227, 18, 43, .1); }
.cursor.is-zent .cursor-ring { border-color: var(--zent-cyan, #2fc7e9); background: rgba(47, 199, 233, .08); }
.cursor.is-net .cursor-ring { transform: scale(2.4); border-color: rgba(227, 18, 43, .7); border-style: dashed; }
.cursor.is-text .cursor-ring { transform: scale(.4); background: var(--white); border-color: var(--white); }
.cursor.is-down .cursor-ring { transform: scale(.75); }

/* =====================================================================
   v3 — ZENT feature card, live demo layer, ZENT tour in 3D
   ===================================================================== */

/* ---------- [data-tilt]: rotation comes from fx.js as axis + angle, so it composes with reveal transforms ---------- */
[data-tilt] { rotate: var(--ax, 1) var(--ay, 0) 0 var(--ang, 0deg); }
.services .wrap, .automation-grid { perspective: 1800px; }

/* ---------- ZENT industry solution: a living product card ---------- */
.solutions-label { border-bottom: 0; padding-bottom: 18px; }
.solution-feature {
  --mx: 70%; --my: 30%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 4vw, 52px); border: 1px solid var(--zent-line); border-bottom-color: var(--zent-line); border-radius: 22px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(47, 199, 233, .12) 0%, transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(109, 185, 245, .07) 0%, transparent 60%),
    linear-gradient(180deg, #080d17, #05080f);
  box-shadow: 0 60px 140px -70px rgba(47, 199, 233, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
  transform-style: preserve-3d; isolation: isolate;
  transition: box-shadow .6s var(--ease-out), border-color .6s var(--ease-out);
}
.solution-feature:hover, .solution-feature:focus-visible { border-color: rgba(47, 199, 233, .38); box-shadow: 0 70px 160px -60px rgba(47, 199, 233, .6), inset 0 1px 0 rgba(255, 255, 255, .06); }
/* rotating light on the frame */
.solution-feature::before {
  content: ""; position: absolute; inset: 0; z-index: 3; padding: 1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0turn, transparent .62turn, rgba(47, 199, 233, .9) .8turn, #eafcff .83turn, transparent .9turn);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
.sf-light {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47, 199, 233, .16), transparent 70%);
  transition: opacity .5s var(--ease-out);
}
.solution-feature.is-lit .sf-light { opacity: 1; }
.solution-body { gap: 14px; transform: translateZ(30px); }
.solution-head { display: flex; align-items: center; gap: 14px; }
.solution-mark { width: 44px; height: 44px; }
.solution-name {
  font-size: clamp(3rem, 6vw, 5.25rem); letter-spacing: .08em; line-height: .95; margin-top: 4px;
  background: linear-gradient(100deg, var(--zent-blue) 0%, var(--zent-cyan) 32%, #eafcff 46%, var(--zent-cyan) 60%, var(--zent-blue) 100%);
  background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s var(--ease-in-out) 2s infinite;
}
.solution-text { font-size: 1.0625rem; max-width: 46ch; }
.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sf-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(109, 185, 245, .26); border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zent-text); background: rgba(11, 15, 25, .7);
}
.sf-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--zent-cyan); box-shadow: 0 0 8px var(--zent-cyan); }
.solution-go {
  justify-self: start; margin-top: 12px; padding: 14px 22px; border: 1px solid rgba(47, 199, 233, .45); border-radius: 999px; color: var(--zent-text);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.solution-go span { display: inline-block; transition: transform .4s var(--ease-out); }
.solution-feature:hover .solution-go, .solution-feature:focus-visible .solution-go { background: var(--zent-cyan); color: var(--zent-ink); border-color: var(--zent-cyan); }
.solution-feature:hover .solution-go span { transform: translateX(5px); }
.solution-feature:hover .solution-mark, .solution-feature:focus-visible .solution-mark { filter: drop-shadow(0 0 14px rgba(47, 199, 233, .55)); }

/* the map lies on the table in 3D; cars drive, one returns to base */
.sf-visual { position: relative; display: block; perspective: 1100px; transform: translateZ(60px); }
.sf-plane {
  display: block; transform: rotateX(42deg) rotateZ(-10deg) scale(.98); transform-origin: 50% 60%;
  filter: drop-shadow(0 50px 50px rgba(0, 0, 0, .7)) drop-shadow(0 0 40px rgba(47, 199, 233, .12));
  transition: transform 1.2s var(--ease-out);
}
.motion-full .solution-feature:hover .sf-plane { transform: rotateX(34deg) rotateZ(-6deg) scale(1.02); }
.mm { display: block; width: 100%; height: auto; border-radius: 18px; outline: 1px solid #1c2737; }
.mm-road { fill: none; stroke: #18263a; stroke-width: 7; stroke-linecap: round; }
.mm-river { fill: none; stroke: #0f3150; stroke-width: 12; stroke-linecap: round; opacity: .9; }
.mm-fence { fill: rgba(255, 160, 40, .05); stroke: rgba(255, 160, 40, .55); stroke-width: 1.2; stroke-dasharray: 4 5; }
.mm-ping { fill: none; stroke: #FFA028; stroke-width: 1.5; }
.mm-base rect { fill: #FFA028; }
.mm-base circle { fill: #0B0F19; }
.mm-route { fill: none; stroke: rgba(74, 222, 128, .28); stroke-width: 2; stroke-dasharray: 2 6; }
.mm-trail { fill: none; stroke: var(--zent-cyan); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px #2fc7e9); }
.mm-car rect { stroke: rgba(0, 0, 0, .5); stroke-width: 1; }
.mm-car.is-drive rect { fill: #4ade80; filter: drop-shadow(0 0 5px rgba(74, 222, 128, .9)); }
.mm-car.is-free rect { fill: #6db9f5; filter: drop-shadow(0 0 5px rgba(109, 185, 245, .9)); }
.mm-car.is-pause rect { fill: #fbbf24; filter: drop-shadow(0 0 5px rgba(251, 191, 36, .9)); }
.sf-float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  border: 1px solid rgba(47, 199, 233, .35); background: rgba(9, 14, 24, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: .75rem; color: var(--zent-muted); white-space: nowrap;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8);
}
.sf-float b { color: var(--zent-text); font-weight: 600; }
.sf-float-a { top: 2%; right: 4%; transform: translateZ(90px); }
.sf-float-b { bottom: 6%; left: 0; transform: translateZ(70px); }
.sf-ok { color: var(--zent-up) !important; }
.sf-live { width: 8px; height: 8px; border-radius: 50%; background: var(--zent-up); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: live-ping 2s var(--ease-out) infinite; }
@keyframes live-ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.motion-full .sf-float-a { animation: bob 5s var(--ease-in-out) infinite; }
.motion-full .sf-float-b { animation: bob 6s var(--ease-in-out) -2.5s infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }
@media (max-width: 860px) {
  .solution-feature { grid-template-columns: 1fr; }
  .sf-visual { order: -1; margin: -10px 0 -20px; }
  .solution-go { grid-column: auto; }
}
@media (max-width: 600px) {
  .solution-feature { grid-template-columns: 1fr; align-items: stretch; border-radius: 18px; }
  .sf-float { font-size: .6875rem; padding: 7px 10px; }
}

/* ---------- live demo: packet, facts, thinking, scan light, approval ---------- */
.flow-packet {
  position: absolute; z-index: 2; top: 38px; left: calc(18px + (100% - 36px) * (.1 + .2 * var(--at, 0)));
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; pointer-events: none;
  box-shadow: 0 0 0 4px rgba(227, 18, 43, .35), 0 0 22px 6px rgba(227, 18, 43, .8);
  opacity: 0; transition: left .7s var(--ease-in-out), opacity .4s var(--ease-out);
}
.flow-packet::before {
  content: ""; position: absolute; right: 50%; top: 50%; width: 70px; height: 2px; margin-top: -1px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(227, 18, 43, .9)); opacity: .9;
}
.flow.has-packet .flow-packet { opacity: 1; }
.flow-node.is-done .flow-dot { position: relative; }
.flow-node.is-done .flow-dot::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #050506; border-width: 0 2px 2px 0;
  transform: rotate(45deg); animation: check-in .45s var(--ease-out) both;
}
@keyframes check-in { from { opacity: 0; transform: rotate(45deg) scale(.2); } }

.facts {
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .75rem;
}
.facts-label { flex: none; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
.facts-list { display: flex; flex-wrap: wrap; gap: 6px; }
.facts:not(.has-facts) .facts-list::before { content: "· · ·"; color: #3a3a42; letter-spacing: .3em; }
.fact {
  padding: 4px 10px; border: 1px solid rgba(227, 18, 43, .5); border-radius: 999px; color: #fff; background: rgba(227, 18, 43, .1);
  animation: fact-in .55s var(--ease-out) calc(var(--k) * .12s) both;
}
@keyframes fact-in { from { opacity: 0; transform: translateY(-14px) scale(.7); filter: blur(4px); } }
.motion-calm .fact { animation-name: fade-in; }

.log-think .log-text { color: var(--dim); }
.think-dots { display: inline-block; width: 1.6em; }
.think-dots::after { content: "…"; display: inline-block; overflow: hidden; vertical-align: bottom; width: 0; animation: dots 1s steps(4) infinite; }
@keyframes dots { to { width: 1.3em; } }
.log-think { animation: fade-in .25s var(--ease-out) both; }

.log-wrap { position: relative; overflow: hidden; }
.log-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(227, 18, 43, .07) 70%, rgba(227, 18, 43, .5) 99%, transparent);
}
.console.is-running .log-wrap::after { opacity: 1; animation: scan 2.4s linear infinite; }
@keyframes scan { from { transform: translateY(-90px); } to { transform: translateY(340px); } }
.motion-calm .console.is-running .log-wrap::after { animation: none; opacity: 0; }

.trigger { position: relative; overflow: hidden; }
.trigger::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--red); box-shadow: 0 0 10px var(--red);
  transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .7s var(--ease-out);
}
.trigger-index { transition: transform .4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .trigger:hover .trigger-index { transform: translateX(4px); } }

.approve.is-nudge [data-action="approve"] { animation: nudge 1.6s var(--ease-out) infinite; }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 rgba(240, 180, 41, .7); } 80%, 100% { box-shadow: 0 0 0 14px rgba(240, 180, 41, 0); } }
.burst { position: absolute; left: var(--bx); top: var(--by); z-index: 5; width: 0; height: 0; pointer-events: none; }
.burst::before {
  content: ""; position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%; border: 2px solid #3ddc84;
  animation: burst-ring .9s var(--ease-out) both;
}
.burst i {
  position: absolute; left: 0; top: -1px; width: 34px; height: 2px; border-radius: 2px; transform-origin: 0 50%;
  background: linear-gradient(90deg, transparent, #3ddc84); rotate: var(--a);
  animation: burst-ray .8s var(--ease-out) both;
}
@keyframes burst-ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@keyframes burst-ray { from { transform: translateX(8px) scaleX(.2); opacity: 1; } to { transform: translateX(70px) scaleX(1); opacity: 0; } }
.motion-calm .burst i { display: none; }
.console.is-approved { box-shadow: 0 0 0 1px rgba(61, 220, 132, .7), 0 40px 140px -30px rgba(61, 220, 132, .5); }
.result-saved { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: .02em; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .flow-packet { top: 34px; left: calc(6px + (100% - 12px) * (.1 + .2 * var(--at, 0))); }
  .flow-packet::before { width: 36px; }
  .facts { padding: 10px 14px; }
}

/* ---------- ZENT tour: the screen rises, a 3D floor, floating chapter badges, glass glare ---------- */
.tour-player { position: relative; isolation: isolate; transform-origin: 50% 0; will-change: transform; --px: 0; --py: 0; }
.tour-player.is-flat { will-change: auto; }
.tour-stage { grid-row: 1; grid-column: 1; }
.tour-controls { grid-row: 2; grid-column: 1; }
@media (max-width: 1099px) { .tour-ready .tour-caption { grid-row: 3; } }
.tour-player::before {
  content: ""; position: absolute; left: -30%; right: -30%; bottom: -120px; height: 560px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 199, 233, .4) 2px, transparent 2px),
    linear-gradient(90deg, rgba(47, 199, 233, .4) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask: radial-gradient(60% 70% at 50% 100%, #000 0%, transparent 72%); mask: radial-gradient(60% 70% at 50% 100%, #000 0%, transparent 72%);
}
.motion-full .tour-player::before { animation: floor 3.2s linear infinite; }
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.tour-stage::after {   /* screen bezel light */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(47, 199, 233, .08);
}
.tour-glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .5s var(--ease-out);
  background:
    radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(140, 220, 255, .10), transparent 60%),
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .035) 45%, transparent 55%);
}
.tour-player:hover .tour-glare { opacity: 1; }

.tour-badges { display: none; }
.tour-ready .tour-badges { display: block; grid-row: 1; grid-column: 1; position: relative; z-index: 3; pointer-events: none; perspective: 900px; }
.tb {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid rgba(47, 199, 233, .4); background: rgba(9, 14, 24, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--zent-text); white-space: nowrap;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), 0 0 30px -6px rgba(47, 199, 233, .35);
  opacity: 0; transition: opacity .5s var(--ease-out), transform .9s var(--ease-out);
}
.tb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--zent-cyan); box-shadow: 0 0 10px var(--zent-cyan); }
.tb-a { left: -34px; top: 12%; transform: translate3d(calc(var(--px) * -26px), calc(var(--py) * -18px), -160px) rotateY(24deg); }
.tb-b { right: -14px; bottom: 14%; transform: translate3d(calc(var(--px) * -40px), calc(var(--py) * -26px), -160px) rotateY(-24deg); }
.tb.is-on { opacity: 1; transition-delay: .25s; }
.tb-a.is-on { transform: translate3d(calc(var(--px) * -26px), calc(var(--py) * -18px), 40px) rotateY(14deg); }
.tb-b.is-on { transform: translate3d(calc(var(--px) * -24px), calc(var(--py) * -18px), 24px) rotateY(-14deg); }
.motion-calm .tb, .motion-calm .tb.is-on { transform: none; }
@media (max-width: 1099px) {
  .tb-a { left: 12px; top: 12px; }
  .tb-b { right: 12px; bottom: 12px; }
  .tb { padding: 8px 12px; font-size: .6875rem; }
}
@media (max-width: 699px) { .tour-ready .tour-badges { display: none; } }

.tour, .services { overflow-x: clip; }

/* =====================================================================
   devices — phones, tablets, both orientations
   ===================================================================== */
/* the tour fits the screen height on desktops, but never shrinks below a usable size on short screens (phone landscape) */
@media (min-width: 700px) {
  .tour-player { max-width: min(100%, max(600px, calc((100svh - 330px) * 16 / 9))); }
}
@media (min-width: 1100px) {
  .tour-ready .tour-player { max-width: min(100%, max(1000px, calc((100svh - 230px) * 16 / 9 + 360px))); }
}
/* chapter names wrap instead of being cut off */
.tour-chapter-title {
  white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25;
  letter-spacing: .06em; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word;
}
@media (max-width: 1280px) { .tour-chapter-title { font-size: .625rem; } }
@media (max-width: 699px) {
  .tour-chapter { padding: 16px 0; }   /* bars only: a thumb-sized hit area */
  .tour-chapters { margin: -10px 0; }
}
/* touch targets ≥ 44 px for language switch and footer links */
.lang { gap: 2px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; padding: 0 6px; }
.footer-nav { row-gap: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
/* phone landscape: hero and sections use the short height sensibly */
@media (max-height: 500px) and (orientation: landscape) {
  .hero .display { font-size: clamp(2rem, 6.5vh + 1.6vw, 3.4rem); }
  .section { padding: 64px 0; }
}
/* phone landscape: logo to the right, copy on the left — no overlap */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-mark { left: 75%; top: 52%; width: 40vw; }
  .hero .panel-content { padding-top: 84px; }
  .hero .panel-content > * { max-width: 54%; }
}
/* very narrow phones: the five flow labels must fit side by side */
@media (max-width: 400px) {
  .flow { padding-left: 2px; padding-right: 2px; }
  .flow-label { font-size: .5rem; letter-spacing: 0; }
  .flow-packet { left: calc(2px + (100% - 4px) * (.1 + .2 * var(--at, 0))); }
  .flow::before, .flow::after { left: calc(2px + 10%); right: calc(2px + 10%); }
  .flow[data-progress="1"]::after { width: calc((100% - 4px) * .2); }
  .flow[data-progress="2"]::after { width: calc((100% - 4px) * .4); }
  .flow[data-progress="3"]::after { width: calc((100% - 4px) * .6); }
  .flow[data-progress="4"]::after { width: calc((100% - 4px) * .8); }
}
