/* =========================================================
   MIDESCO — Industrial Supply
   Design language: dark engineering blueprint, molten-steel accent.
   NOTE: Animations are intentionally NOT disabled for
   `prefers-reduced-motion` — the site always runs its motion
   (explicit client requirement).
   ========================================================= */

:root {
  --bg: #0A0C0F;
  --bg-2: #0E1115;
  --panel: #12161C;
  --panel-2: #181D25;
  --line: rgba(236, 232, 225, .08);
  --line-2: rgba(236, 232, 225, .16);
  --text: #ECE8E1;
  --muted: #9AA0AA;
  --dim: #626973;
  --accent: #FF5A1F;
  --accent-2: #FFB02E;
  --steel: #8FB3D9;
  --steel-dim: rgba(143, 179, 217, .35);

  --f-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #0A0C0F; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.accent { color: var(--accent); }
.outline-text { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Atmosphere: grid + grain ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 80%);
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift { to { background-position: 80px 80px, 80px 80px; } }
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .13), transparent 60%);
  top: -25vmax; right: -20vmax; filter: blur(20px);
  animation: glowFloat 18s ease-in-out infinite alternate;
}
@keyframes glowFloat { to { transform: translate(-18vmax, 22vmax) scale(1.15); } }
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 9990; pointer-events: none; opacity: .06;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Preloader & page shutter ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pl-inner { display: grid; justify-items: center; gap: 18px; }
.pl-logo { width: 74px; height: 74px; animation: spin 2.4s var(--ease-io) infinite; }
.pl-count { font-family: var(--f-display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: .02em; }
.pl-bar { width: 220px; height: 2px; background: var(--line-2); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s linear; }
.pl-label { color: var(--muted); }

.shutter { position: fixed; inset: 0; z-index: 9995; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.shutter i { background: var(--panel); transform: scaleY(0); transform-origin: bottom; border-right: 1px solid var(--line); }
.shutter i:nth-child(odd) { background: #0F1318; }
.shutter.cover i { animation: shutIn .55s var(--ease-io) forwards; }
.shutter.reveal i { transform: scaleY(1); transform-origin: top; animation: shutOut .7s var(--ease-io) forwards; }
.shutter i:nth-child(2) { animation-delay: .05s !important; } .shutter i:nth-child(3) { animation-delay: .1s !important; }
.shutter i:nth-child(4) { animation-delay: .15s !important; } .shutter i:nth-child(5) { animation-delay: .2s !important; }
@keyframes shutIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes shutOut { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* ---------- Cursor & progress ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9998; display: none; }
@media (pointer: fine) { .cursor { display: block; } }
.c-dot, .c-ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; }
.c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.c-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(236, 232, 225, .35);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), border-color .3s, background .3s;
}
.c-ring::before, .c-ring::after { content: ""; position: absolute; background: rgba(236, 232, 225, .35); }
.c-ring::before { left: 50%; top: -6px; width: 1px; height: 4px; }
.c-ring::after { top: 50%; left: -6px; height: 1px; width: 4px; }
.cursor.hover .c-ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; border-color: var(--accent); background: rgba(255, 90, 31, .08); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; }
.progress i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); }

/* ---------- Header ---------- */
.header {
  position: fixed; z-index: 100; top: 14px; left: 0; right: 0;
  transition: transform .5s var(--ease);
}
.header.hide { transform: translateY(-130%); }
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(14, 17, 21, .55); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background .4s;
}
.header.scrolled .header-bar { background: rgba(14, 17, 21, .85); }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-mark .bow { transform-origin: 20px 20px; transition: transform .8s var(--ease); }
.logo:hover .logo-mark .bow { transform: rotate(90deg); }
.logo-word { display: grid; line-height: 1; }
.logo-word b { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: .06em; }
.logo-word small { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .16em; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button {
  position: relative; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color .25s, background .25s; display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav-drop > button:hover, .nav > a.active, .nav-drop.active > button { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav > a.active::after, .nav-drop.active > button::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent);
}
.nav-drop { position: relative; }
.nav-drop svg { width: 10px; transition: transform .3s; }
.nav-drop:hover svg, .nav-drop:focus-within svg { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 380px; padding: 10px;
  background: rgba(18, 22, 28, .96); border: 1px solid var(--line-2); border-radius: 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: .35s var(--ease);
}
.drop::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-drop:hover .drop, .nav-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; transition: background .25s; }
.drop a:hover { background: rgba(255, 255, 255, .05); }
.drop a span.mono { color: var(--accent); font-size: 11px; }
.drop a b { display: block; font-size: 14px; font-weight: 600; }
.drop a small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--panel-2); position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); transition: .4s var(--ease); }
.burger i:nth-child(1) { top: 18px; } .burger i:nth-child(2) { top: 26px; right: 20px; }
.menu-open .burger i:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 22px; right: 14px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: 110px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 44px) 44px); transition: clip-path .8s var(--ease-io);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 44px); }
.mobile-menu a { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 9vw, 56px); line-height: 1.1; text-transform: uppercase; display: flex; gap: 14px; align-items: baseline; opacity: 0; transform: translateY(30px); transition: .6s var(--ease); }
.mobile-menu a small { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.mobile-menu a.sub { font-size: clamp(20px, 5.5vw, 28px); color: var(--muted); padding-left: 32px; }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu .mm-foot { margin-top: auto; padding-top: 30px; color: var(--muted); display: grid; gap: 4px; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--accent);
  position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; isolation: isolate;
  padding: 16px 26px; border-radius: 999px; background: var(--bg-btn); color: #0A0C0F;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 3.6s var(--ease) infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn:hover { box-shadow: 0 10px 40px -8px rgba(255, 90, 31, .65); }
.btn .arr { width: 26px; height: 26px; border-radius: 50%; background: #0A0C0F; color: var(--accent); display: grid; place-items: center; transition: transform .4s var(--ease); }
.btn .arr svg { width: 12px; }
.btn:hover .arr { transform: rotate(-45deg); }
.btn-sm { padding: 10px 12px 10px 20px; font-size: 14px; }
.btn-ghost { --bg-btn: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost::before { display: none; }
.btn-ghost .arr { background: var(--text); color: #0A0C0F; }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }

/* ---------- Common section parts ---------- */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border: 1.5px solid var(--accent); transform: rotate(45deg);
  animation: eyebrowSpin 4s var(--ease-io) infinite;
}
@keyframes eyebrowSpin { 0%, 40% { transform: rotate(45deg); } 50%, 90% { transform: rotate(225deg); background: var(--accent); } 100% { transform: rotate(405deg); } }
.h-display {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(44px, 7.4vw, 112px); line-height: .92; letter-spacing: -.005em; margin: 0;
}
.h-2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 5.4vw, 80px); line-height: .95; margin: 18px 0 0; }
.h-3 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; margin: 0; letter-spacing: .01em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 640px; }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head .lead { margin: 0; max-width: 460px; }

/* ---------- Reveal animations (JS-driven) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(46px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-60px); }
.js [data-reveal="right"] { transform: translateX(60px); }
.js [data-reveal="scale"] { transform: scale(.9); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-io); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="clip"].in { clip-path: inset(0 0 0 0); }

.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.js [data-split] .wi { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.js [data-split].in .wi { transform: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; display: flex; user-select: none; }
.marquee-track { display: flex; flex: none; gap: 48px; padding-right: 48px; animation: marquee 38s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee span { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 36px); text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: ""; width: 12px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 50% 50%, 0 100%); width: 16px; flex: none; animation: spin 6s linear infinite; }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--muted); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- HERO (home) ---------- */
.hero { min-height: 100svh; padding: 140px 0 0; display: flex; flex-direction: column; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; flex: 1; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); margin-bottom: 30px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero h1 .accent-line { color: var(--accent); }
.hero .lead { margin: 30px 0 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: end; }
.hero-visual .plate { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.hero-visual::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .16), transparent 65%); filter: blur(30px);
  animation: pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow { 50% { transform: scale(1.12); opacity: .6; } }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; color: var(--muted); }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; }
.scroll-hint i { width: 22px; height: 36px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Plate SVG shared styles ---------- */
.plate .ln { fill: none; stroke: var(--steel); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.plate .ln-t { fill: none; stroke: var(--steel-dim); stroke-width: 1; }
.plate .ln-f { fill: none; stroke: rgba(236, 232, 225, .12); stroke-width: 1; }
.plate .ln-a { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plate .ln-a2 { fill: none; stroke: var(--accent-2); stroke-width: 1.5; stroke-linecap: round; }
.plate .fl-p { fill: var(--panel); }
.plate .fl-p2 { fill: var(--panel-2); }
.plate .fl-a { fill: var(--accent); }
.plate .fl-a2 { fill: var(--accent-2); }
.plate .fl-s { fill: var(--steel); }
.plate .fl-bg { fill: var(--bg); }
.plate text { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; fill: var(--muted); }
.plate text.t-a { fill: var(--accent); }
.plate text.t-big { font-size: 14px; fill: var(--text); }

.spin { animation: spin 14s linear infinite; }
.spin-rev { animation: spin 22s linear infinite reverse; }
.spin-slow { animation: spin 60s linear infinite; }
.spin-fast { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dash-flow { stroke-dasharray: 6 10; animation: dashFlow 1.4s linear infinite; }
.dash-flow-slow { stroke-dasharray: 3 9; animation: dashFlow 3s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -32; } }
.blink { animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.pulse-o { animation: pulseO 2.4s ease-in-out infinite; }
@keyframes pulseO { 50% { opacity: .25; } }
.float-y { animation: floatY 5s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-10px); } }

/* draw-in on load (JS sets dash vars) */
.js .plate .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.plate.drawn .draw { animation: drawIn 2.2s var(--ease) forwards; animation-delay: var(--dd, 0s); }
@keyframes drawIn { to { stroke-dashoffset: 0; } }

/* Home: globe */
.gl-route { stroke-dasharray: 5 9; animation: dashFlow 1.6s linear infinite; }

/* Moving vehicle (plant page) */
.rm-ingot { animation: belt 6s linear infinite; }
@keyframes belt { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(270px); opacity: 0; } }

/* Machinery */
.mc-g1 { animation: spin 12s linear infinite; }
.mc-g2 { animation: spin 6.667s linear infinite reverse; }
.mc-g3 { animation: spin 9s linear infinite; }

/* Spare parts: exploded view */
.sp-part { animation: explode 7s var(--ease-io) infinite; }
@keyframes explode { 0%, 12% { transform: translate(0, 0); } 42%, 72% { transform: translate(var(--dx), var(--dy)); } 100% { transform: translate(0, 0); } }
.sp-dim { animation: dimShow 7s var(--ease-io) infinite; }
@keyframes dimShow { 0%, 30% { opacity: 0; } 45%, 68% { opacity: 1; } 80%, 100% { opacity: 0; } }

/* Valves */
.vl-ball { animation: valveBall 8s var(--ease-io) infinite; }
@keyframes valveBall { 0%, 38% { transform: rotate(0); } 50%, 88% { transform: rotate(90deg); } 100% { transform: rotate(0); } }
.vl-lever { animation: valveLever 8s var(--ease-io) infinite; }
@keyframes valveLever { 0%, 38% { transform: scaleX(1); } 50%, 88% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
.vl-down { animation: valveDown 8s var(--ease-io) infinite; }
@keyframes valveDown { 0%, 38% { opacity: 1; } 46%, 90% { opacity: 0; } 100% { opacity: 1; } }
.vl-needle { animation: valveNeedle 8s var(--ease-io) infinite; }
@keyframes valveNeedle { 0%, 38% { transform: rotate(-40deg); } 55% { transform: rotate(62deg); } 60%, 88% { transform: rotate(52deg); } 100% { transform: rotate(-40deg); } }
.vl-open { animation: valveDown 8s var(--ease-io) infinite; }
.vl-closed { animation: valveUp 8s var(--ease-io) infinite; }
@keyframes valveUp { 0%, 38% { opacity: 0; } 46%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* Plant */
.pl-smoke { animation: smoke 4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes smoke { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: .8; } 100% { transform: translate(34px, -110px) scale(2.2); opacity: 0; } }
.pl-trolley { animation: trolley 9s var(--ease-io) infinite; }
@keyframes trolley { 0%, 10% { transform: translateX(0); } 45%, 60% { transform: translateX(-96px); } 95%, 100% { transform: translateX(0); } }
.pl-win { animation: blink 2.2s steps(2) infinite; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 30px; border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(54px, 6vw, 88px); line-height: 1; }
.stat b sup { font-size: .4em; color: var(--accent); vertical-align: top; margin-left: 4px; }
.stat p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.stat.in::before { transform: scaleX(1); }

/* ---------- About intro ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about-text p { color: var(--muted); font-size: 17px; margin: 0 0 20px; }
.about-text p strong { color: var(--text); font-weight: 600; }
.about-big { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; text-transform: uppercase; margin: 0 0 36px; }
.about-big em { font-style: normal; color: var(--accent); }
.reg-card {
  margin-top: 34px; padding: 22px 24px; border: 1px dashed var(--line-2); border-radius: 16px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; position: relative;
}
.reg-card div span { display: block; color: var(--dim); font-size: 10.5px; }
.reg-card div b { font-weight: 600; font-size: 14px; }

/* ---------- Service cards (bento) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.svc-card {
  --mx: 50%; --my: 50%;
  grid-column: span 3; position: relative; min-height: 400px; padding: 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; cursor: pointer;
  transition: border-color .4s, transform .5s var(--ease);
  transform-style: preserve-3d;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 90, 31, .16), transparent 60%);
}
.svc-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--accent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.svc-card:hover { border-color: transparent; }
.svc-card:hover::before, .svc-card:hover::after { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-num { color: var(--dim); }
.svc-icon { width: 92px; height: 92px; }
.svc-card h3 { margin-top: auto; }
.svc-card p { color: var(--muted); margin: 12px 0 20px; font-size: 15px; max-width: 460px; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.svc-arrow {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  transition: background .4s var(--ease), transform .5s var(--ease), border-color .4s;
}
.svc-arrow svg { width: 16px; transition: transform .5s var(--ease); }
.svc-card:hover .svc-arrow { background: var(--accent); border-color: var(--accent); color: #0A0C0F; }
.svc-card:hover .svc-arrow svg { transform: rotate(-45deg); }
.svc-card .badge-heritage { position: absolute; top: 24px; right: 130px; }
.svc-scan { position: absolute; left: 0; right: 0; height: 60px; top: -60px; z-index: -1; background: linear-gradient(transparent, rgba(143, 179, 217, .07), transparent); animation: scan 5s linear infinite; }
@keyframes scan { to { top: 110%; } }

/* card icons */
.ic .ln { fill: none; stroke: var(--steel); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic .ln-a { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic .fl-a { fill: var(--accent); }
.ic .fl-p { fill: var(--panel-2); }
.ic-shimmer { animation: icShimmer 2.6s ease-in-out infinite; }
@keyframes icShimmer { 0%, 100% { opacity: .2; transform: translateX(-12px); } 50% { opacity: 1; transform: translateX(12px); } }
.ic-bob { animation: icBob 2.2s ease-in-out infinite; }
@keyframes icBob { 50% { transform: translateY(-4px); } }

/* ---------- Timeline / heritage ---------- */
.heritage { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--line-2); }
.timeline .tl-fill { position: absolute; left: 0; top: 10px; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform 2.4s var(--ease-io); }
.timeline.in .tl-fill { transform: scaleX(1); }
.tl-item { position: relative; padding-top: 44px; }
.tl-item::before { content: ""; position: absolute; top: 3px; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-item::after { content: ""; position: absolute; top: -5px; left: -8px; width: 33px; height: 33px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: ring 2.6s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.tl-item .yr { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; }
.tl-item h4 { margin: 12px 0 8px; font-size: 17px; }
.tl-item p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Process pipeline ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.pipe { position: absolute; left: 6%; right: 6%; top: 46px; height: 12px; z-index: 0; }
.pipe svg { width: 100%; height: 12px; overflow: visible; }
.step { position: relative; z-index: 1; padding: 0 6px; text-align: left; }
.step-ic {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 26px;
  background: var(--panel); border: 1px solid var(--line-2); position: relative;
}
.step-ic::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 20s linear infinite; }
.step-ic span { font-family: var(--f-display); font-size: 30px; font-weight: 800; color: var(--accent); }
.step h4 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 7vw, 96px);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 90, 31, .28), transparent 50%), var(--panel);
  border: 1px solid var(--line-2); display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
}
.cta .h-2 { margin: 16px 0 26px; }
.cta p { color: var(--muted); margin: 0 0 30px; max-width: 520px; }
.cta-visual { justify-self: center; width: min(280px, 100%); }
.cta-rings { position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; pointer-events: none; opacity: .5; }
.cta-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); animation: ringsOut 4s linear infinite; opacity: 0; }
.cta-rings i:nth-child(2) { animation-delay: 1.33s; } .cta-rings i:nth-child(3) { animation-delay: 2.66s; }
@keyframes ringsOut { 0% { transform: scale(.2); opacity: .8; } 100% { transform: scale(1); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { padding: 100px 0 30px; border-top: 1px solid var(--line); margin-top: 60px; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-col h5 { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; }
.foot-col a, .foot-col p { display: block; color: var(--muted); font-size: 15px; margin: 0 0 10px; transition: color .25s, transform .3s var(--ease); }
.foot-col a:hover { color: var(--accent); transform: translateX(4px); }
.foot-about p { max-width: 340px; }
.foot-word {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .8; letter-spacing: -.01em;
  font-size: clamp(80px, 21vw, 320px); margin: 70px 0 30px; text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  background: linear-gradient(90deg, var(--accent), var(--accent-2)) no-repeat; -webkit-background-clip: text; background-clip: text;
  background-size: 0% 100%; transition: background-size 1.6s var(--ease-io);
}
.foot-word.in { background-size: 100% 100%; }
.foot-word:hover { -webkit-text-stroke-color: transparent; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--dim); padding-top: 24px; border-top: 1px solid var(--line); }
.foot-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bottom a:hover { color: var(--accent); }
.to-top { display: inline-flex; align-items: center; gap: 10px; }
.to-top i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: .4s var(--ease); }
.to-top:hover i { background: var(--accent); color: #0A0C0F; transform: translateY(-4px); }
.to-top svg { width: 12px; }

/* ---------- Service page ---------- */
.page-hero { padding: 150px 0 60px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--dim); margin-bottom: 30px; }
.crumbs a:hover { color: var(--accent); }
.crumbs i { width: 14px; height: 1px; background: var(--dim); }
.svc-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.svc-hero-grid .hero-visual { max-width: 560px; }
.svc-num-big { font-family: var(--f-display); font-weight: 900; font-size: clamp(90px, 13vw, 200px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line-2); position: absolute; right: var(--gutter); top: 110px; z-index: -1; }
.page-hero .lead { margin: 28px 0 36px; }
.key-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pos {
  position: relative; padding: 34px 30px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; transition: transform .5s var(--ease), border-color .4s;
}
.pos:hover { transform: translateY(-6px); border-color: rgba(255, 90, 31, .4); }
.pos-n { font-family: var(--f-mono); font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.pos-n::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.pos h3 { margin: 26px 0 12px; }
.pos p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.pos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pos li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; padding-top: 10px; border-top: 1px solid var(--line); }
.pos li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--accent); transform: rotate(45deg); }
.pos .pos-deco { position: absolute; right: -30px; bottom: -30px; width: 140px; height: 140px; opacity: .25; transition: opacity .4s; }
.pos:hover .pos-deco { opacity: .7; }

.spec-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.spec { border-top: 1px solid var(--line-2); }
.spec-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.spec-row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.spec-row:hover::after { transform: scaleX(1); }
.spec-row span { color: var(--dim); }
.spec-row b { font-weight: 500; }
.spec-side { position: sticky; top: 120px; }
.spec-side p { color: var(--muted); }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel {
  padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel);
  display: flex; flex-direction: column; gap: 30px; min-height: 170px; transition: .4s var(--ease);
}
.rel:hover { border-color: var(--accent); transform: translateY(-4px); }
.rel .mono { color: var(--accent); }
.rel b { font-family: var(--f-display); font-weight: 700; font-size: 24px; text-transform: uppercase; line-height: 1.05; margin-top: auto; }
.rel .svc-arrow { width: 40px; height: 40px; align-self: flex-end; }
.rel:hover .svc-arrow { background: var(--accent); border-color: var(--accent); color: #0A0C0F; }
.rel:hover .svc-arrow svg { transform: rotate(-45deg); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.form { padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; margin-bottom: 18px; }
.field label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--text); font: inherit; font-size: 15px; transition: border-color .3s, box-shadow .3s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239AA0AA' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .15); }
.field.err input, .field.err textarea { border-color: #ff3b3b; }
.field .msg { color: #ff6b6b; font-size: 12.5px; margin-top: 6px; display: none; }
.field.err .msg { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14px; margin: 6px 0 24px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 2px; cursor: pointer; }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.check.err { color: #ff6b6b; }
.form-ok { display: none; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(255, 176, 46, .4); background: rgba(255, 176, 46, .08); margin-top: 18px; font-size: 14.5px; }
.form-ok.show { display: block; animation: okIn .6s var(--ease); }
@keyframes okIn { from { opacity: 0; transform: translateY(10px); } }
.info-cards { display: grid; gap: 14px; }
.info {
  display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: center; padding: 22px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease);
}
a.info:hover { border-color: var(--accent); transform: translateX(6px); }
.info-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); }
.info-ic svg { width: 22px; }
.info span { display: block; color: var(--dim); font-size: 11px; }
.info b { font-weight: 600; font-size: 16px; word-break: break-word; }
.info em { font-style: normal; color: var(--accent-2); font-size: 11px; font-family: var(--f-mono); letter-spacing: .06em; }
.map-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); position: relative; aspect-ratio: 16 / 11; }
.map-card svg { width: 100%; height: 100%; }
.imprint { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.imprint div { background: var(--bg); padding: 24px; }
.imprint span { display: block; color: var(--dim); margin-bottom: 8px; }
.imprint b { font-weight: 500; font-size: 15px; }

/* ---------- Legal pages ---------- */
.legal-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.toc { position: sticky; top: 120px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.toc h5 { margin: 0 0 14px; color: var(--dim); font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; line-height: 1.35; transition: .25s; }
.toc a span { font-family: var(--f-mono); font-size: 11px; color: var(--dim); padding-top: 2px; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.toc a.active { color: var(--text); background: rgba(255, 90, 31, .1); }
.toc a.active span { color: var(--accent); }
.legal { max-width: 780px; }
.legal section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.legal h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; margin: 0 0 18px; display: flex; gap: 16px; align-items: baseline; }
.legal h2 small { font-family: var(--f-mono); font-size: 12px; color: var(--accent); font-weight: 400; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.legal .note { padding: 18px 20px; border-left: 2px solid var(--accent); background: rgba(255, 90, 31, .06); border-radius: 0 12px 12px 0; }
.legal-hero { padding: 150px 0 60px; border-bottom: 1px solid var(--line); margin-bottom: 70px; position: relative; overflow: hidden; }
.legal-hero .updated { margin-top: 20px; color: var(--dim); }
.table-scroll { overflow-x: auto; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 300; width: min(420px, calc(100% - 32px));
  padding: 22px; border-radius: 20px; background: rgba(18, 22, 28, .96); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  transform: translateY(140%); transition: transform .8s var(--ease);
}
.cookie.show { transform: none; }
.cookie-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cookie-head svg { width: 30px; height: 30px; }
.cookie-head b { font-family: var(--f-display); font-size: 22px; text-transform: uppercase; }
.cookie p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.cookie p a { color: var(--text); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { flex: 1; padding: 12px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid var(--line-2); transition: .3s; }
.cookie-actions .ok { background: var(--accent); color: #0A0C0F; border-color: var(--accent); }
.cookie-actions button:hover { border-color: var(--accent); }

/* ---------- Small decorative animated elements ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; color: var(--steel); }
.deco svg { width: 100%; height: 100%; overflow: visible; }
.deco .ln { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.deco .ln-a { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.deco .fl-a { fill: var(--accent); }
.deco .fl-s { fill: currentColor; }
.deco text { font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; fill: var(--dim); }
.deco-inline { position: relative; display: inline-block; vertical-align: middle; }

.leds { display: inline-flex; align-items: center; gap: 5px; }
.leds i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: led 1.4s ease-in-out infinite; }
.leds i:nth-child(2) { animation-delay: .2s; background: var(--accent-2); } .leds i:nth-child(3) { animation-delay: .4s; background: #4ADE80; }
@keyframes led { 0%, 100% { opacity: .2; box-shadow: none; } 50% { opacity: 1; box-shadow: 0 0 10px currentColor; } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; position: relative; display: inline-block; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4ADE80; animation: livePing 1.8s ease-out infinite; }
@keyframes livePing { to { transform: scale(3); opacity: 0; } }

.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.bars i { width: 3px; background: var(--accent); border-radius: 1px; animation: barJump 1.1s ease-in-out infinite; height: 30%; }
.bars i:nth-child(2) { animation-delay: .15s; } .bars i:nth-child(3) { animation-delay: .3s; } .bars i:nth-child(4) { animation-delay: .45s; } .bars i:nth-child(5) { animation-delay: .6s; }
@keyframes barJump { 50% { height: 100%; } }

.ticker-num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.wave-move { animation: waveMove 2s linear infinite; }
@keyframes waveMove { to { transform: translateX(-40px); } }
.radar-sweep { animation: spin 3.2s linear infinite; }
.ruler-move { animation: rulerMove 3s linear infinite; }
@keyframes rulerMove { to { transform: translateX(-20px); } }
.needle-swing { animation: needleSwing 3.4s ease-in-out infinite; }
@keyframes needleSwing { 0%, 100% { transform: rotate(-50deg); } 40% { transform: rotate(35deg); } 55% { transform: rotate(22deg); } 70% { transform: rotate(40deg); } }
.orbit-rot { animation: spin 6s linear infinite; }
.cross-pulse { animation: crossPulse 2.4s ease-in-out infinite; }
@keyframes crossPulse { 50% { transform: scale(.7) rotate(45deg); opacity: .5; } }
.hex-spin { animation: hexSpin 5s var(--ease-io) infinite; }
@keyframes hexSpin { 0%, 30% { transform: rotate(0); } 50%, 80% { transform: rotate(60deg); } 100% { transform: rotate(120deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header-cta .status { display: none; }
  .burger { display: block; }
  .hero-grid, .svc-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 480px; margin-top: 10px; }
  .svc-hero-grid .hero-visual { order: 0; }
  .hero { min-height: auto; }
  .about-grid, .spec-wrap, .contact-grid, .cta { grid-template-columns: 1fr; }
  .spec-side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .cta-visual { display: none; }
}
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { grid-column: auto; min-height: 340px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .timeline, .process { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .timeline::before, .timeline .tl-fill, .pipe { display: none; }
  .pos-grid { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .imprint { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .svc-card .badge-heritage { position: static; margin-top: 10px; }
}
@media (max-width: 560px) {
  .header-cta .btn { display: none; }
  .form-row, .timeline, .process, .foot-grid, .related { grid-template-columns: 1fr; }
  .stat { padding: 28px 16px; }
  .hero-foot .mono:last-child { display: none; }
  .reg-card { grid-template-columns: 1fr; }
  .deco.hide-sm { display: none; }
  .svc-num-big { top: 90px; }
}

/* stacking: content above decor */
.section > .container, .page-hero > .container, .legal-hero > .container, .hero > .container, .footer > .container { position: relative; z-index: 1; }
@media (max-width: 1100px) { .deco.hide-sm { opacity: .35; } }
@media (max-width: 860px) { .deco.hide-sm { display: none; } }
.info em { display: block; }
