/* MAL Mechatronik – Redesign 2026
   System: dunkles Anthrazit + türkiser Akzent (--accent, Logofarbe) */

:root {
  --bg-0: #07070a;
  --bg-1: #0d0d12;
  --bg-2: #14141b;
  --bg-3: #1c1c25;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: #f4f2ec;
  --fg-dim: #a3a097;
  --fg-mute: #6b6962;
  --accent: #2DB8B0;
  --accent-warm: #4FD4CC;
  --accent-deep: #1A8A82;
  --accent-glow: rgba(45, 184, 176, 0.35);
  --grid-size: 56px;
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--fg);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 184, 176, 0.08), transparent 60%),
    linear-gradient(to bottom, var(--bg-0) 0%, var(--bg-1) 100%);
  min-height: 100vh;
}

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 { font-size: clamp(48px, 7vw, 112px); font-weight: 400; }
h2 { font-size: clamp(36px, 4.5vw, 64px); }
h3 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 500; }

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0;
}

.label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

p { color: var(--fg-dim); max-width: 60ch; }

a { color: inherit; text-decoration: none; }

/* ---------- Layout primitives ---------- */
.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 880px) {
  .shell { padding: 0 24px; }
}

.section {
  position: relative;
  padding: 140px 0;
}
@media (max-width: 880px) {
  .section { padding: 90px 0; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(7, 7, 10, 0.85), rgba(7, 7, 10, 0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  background: rgba(7, 7, 10, 0.92);
  border-bottom-color: var(--line);
}
@media (max-width: 880px) {
  .nav { padding: 14px 20px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  /* Original logo is dark text on transparent. brightness(0)+invert(1) → white silhouette */
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: logoEnter 1.2s var(--easing) 0.2s forwards;
  transition: filter 0.4s ease;
}
.brand:hover .brand-logo {
  filter: brightness(0) invert(1) drop-shadow(0 0 12px var(--accent-glow));
}
@keyframes logoEnter {
  0% { opacity: 0; transform: translateX(-8px); filter: brightness(0) invert(1) blur(4px); }
  60% { opacity: 0.6; filter: brightness(0) invert(1) blur(0); }
  100% { opacity: 1; transform: translateX(0); filter: brightness(0) invert(1); }
}
@keyframes logoPulse {
  0%, 100% { filter: brightness(0) invert(1); }
  50% { filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--accent-glow)); }
}
.brand-logo.pulse {
  animation: logoEnter 1.2s var(--easing) 0.2s forwards,
             logoPulse 6s ease-in-out 1.8s infinite;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--fg-dim);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--accent-glow);
}
@media (max-width: 880px) { .nav-links { display: none; } }

.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--fg-mute);
  padding: 7px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.1em;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button.active {
  background: var(--accent);
  color: var(--bg-0);
}
.lang-switch button:not(.active):hover { color: var(--fg); }

.nav-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-cta::after { content: "→"; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border: 1px solid var(--line-strong);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s var(--easing), color 0.25s var(--easing), border-color 0.25s var(--easing);
  position: relative;
}
.btn:hover { background: var(--fg); color: var(--bg-0); border-color: var(--fg); }
.btn-primary {
  background: var(--accent);
  color: var(--bg-0);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  color: var(--bg-0);
  box-shadow: 0 0 0 1px var(--accent-warm), 0 8px 32px var(--accent-glow);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--easing);
}
.btn:hover .arrow { transform: translateX(4px); }


.frame {
  position: relative;
  border: 1px solid var(--line);
}
.frame::before, .frame::after,
.frame > .corner-tl, .frame > .corner-tr, .frame > .corner-bl, .frame > .corner-br {
  position: absolute;
  width: 10px;
  height: 10px;
}
.frame .corner-tl, .frame .corner-tr, .frame .corner-bl, .frame .corner-br {
  content: "";
  pointer-events: none;
}
.frame .corner-tl { top: -1px; left: -1px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.frame .corner-tr { top: -1px; right: -1px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.frame .corner-bl { bottom: -1px; left: -1px; border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.frame .corner-br { bottom: -1px; right: -1px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

/* ---------- Grid overlay ---------- */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-0);
}
.hero-stage canvas { display: block; width: 100% !important; height: 100% !important; }
/* Liegt über der WebGL-Szene: hebt den Akzent an und hält den Text lesbar. */
.hero-video-tint {
  position: absolute;
  inset: 0;
  background:
    /* Akzent-Schimmer oben links */
    radial-gradient(ellipse 60% 60% at 20% 30%, var(--accent-glow), transparent 55%),
    /* gentle left-side darken for text readability */
    linear-gradient(90deg, rgba(7, 7, 10, 0.62) 0%, rgba(7, 7, 10, 0.18) 55%, rgba(7, 7, 10, 0.10) 100%),
    /* bottom vignette into strip */
    linear-gradient(180deg, transparent 55%, rgba(7, 7, 10, 0.78) 100%),
    /* subtle overall darkening */
    rgba(7, 7, 10, 0.20);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-meta-left { display: flex; flex-direction: column; gap: 22px; max-width: 720px; }
.hero-meta-right { text-align: right; display: flex; flex-direction: column; gap: 6px; }
.hero-coord {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
}
.hero-coord span { color: var(--accent); }

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--fg);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  display: inline-flex;
  align-items: baseline;
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.hero-sub {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 52ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 80px;
}
.hero-strip-item {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-strip-item:last-child { border-right: none; }
.hero-strip-item .num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 30px;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.hero-strip-item .num em { color: var(--accent); font-style: normal; }
.hero-strip-item .lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
@media (max-width: 880px) {
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip-item:nth-child(2) { border-right: none; }
  .hero-strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Section header ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  margin-bottom: 80px;
  align-items: end;
}
.sec-head-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sec-head-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.sec-head h2 { max-width: 22ch; }
@media (max-width: 880px) {
  .sec-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 50px; }
}

/* ---------- Service cards (leistungen) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 880px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-1);
  padding: 40px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  position: relative;
  min-height: 480px;
  transition: background 0.3s ease;
  overflow: hidden;
}
.service-card:hover { background: var(--bg-2); }
.service-card:hover .service-img { transform: scale(1.04); filter: grayscale(0) contrast(1.05); }
.service-card:hover .service-num { color: var(--accent); }

.service-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.service-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  transition: color 0.3s ease;
}
.service-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 4px 8px;
  border: 1px solid var(--line);
}

.service-body { display: flex; flex-direction: column; gap: 12px; }
.service-body h3 { color: var(--fg); }
.service-body p { font-size: 14px; line-height: 1.6; color: var(--fg-dim); }

.service-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.service-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.4) contrast(1.05) brightness(0.85);
  transition: filter 0.7s var(--easing);
  /* Continuous Ken Burns */
  animation: kenBurns 22s ease-in-out infinite alternate;
}
.service-card:nth-child(2) .service-img { animation-delay: -5s; animation-direction: alternate-reverse; }
.service-card:nth-child(3) .service-img { animation-delay: -11s; }
.service-card:nth-child(4) .service-img { animation-delay: -16s; animation-direction: alternate-reverse; }
@keyframes kenBurns {
  0%   { transform: scale(1.08) translate(-1.5%, -1.5%); }
  100% { transform: scale(1.18) translate( 1.5%,  1%);  }
}
.service-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(32, 196, 185, 0.15), transparent 50%);
  mix-blend-mode: overlay;
}

/* Animated technical overlay on top of each card image */
.service-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.service-anim svg { width: 100%; height: 100%; display: block; }

/* Scan-line sweep across image */
.service-img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    transparent 38%,
    var(--accent-glow) 50%,
    transparent 62%,
    transparent 100%);
  opacity: 0.35;
  mix-blend-mode: screen;
  transform: translateX(-100%);
  animation: scanSweep 5.5s ease-in-out infinite;
}
.service-card:nth-child(2) .service-img-wrap::before { animation-delay: -1.4s; }
.service-card:nth-child(3) .service-img-wrap::before { animation-delay: -2.8s; }
.service-card:nth-child(4) .service-img-wrap::before { animation-delay: -4.2s; }
@keyframes scanSweep {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Technical drawing primitives for overlays */
.sa-line       { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.sa-line-accent{ stroke: var(--accent); stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke; }
.sa-fill-accent{ fill: var(--accent); }
.sa-text {
  fill: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* === 001: Strahl-Jet (Mobile Strahlsysteme) ===
   Dashed line streaming from left to right, ricochet dots */
.sa-jet-stream {
  stroke-dasharray: 4 5;
  animation: jetFlow 0.7s linear infinite;
}
@keyframes jetFlow {
  to { stroke-dashoffset: -18; }
}
.sa-jet-dot {
  fill: var(--accent);
  animation: jetDot 1.4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.sa-jet-dot:nth-child(1) { animation-delay: 0.0s; }
.sa-jet-dot:nth-child(2) { animation-delay: 0.25s; }
.sa-jet-dot:nth-child(3) { animation-delay: 0.50s; }
@keyframes jetDot {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.6); }
  20%      { opacity: 1; transform: translateY(0) scale(1); }
  80%      { opacity: 0.4; transform: translateY(-6px) scale(0.8); }
}

/* === 002: Surface waveform (Sandstrahlen) ===
   Profile line being drawn left-to-right with measure ticks */
.sa-wave-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: waveDraw 3.5s ease-in-out infinite;
}
@keyframes waveDraw {
  0%   { stroke-dashoffset: 200; }
  50%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -200; }
}
.sa-wave-cursor {
  animation: waveCursor 3.5s ease-in-out infinite;
}
@keyframes waveCursor {
  0%   { transform: translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translateX(180px); opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(360px); opacity: 0; }
}

/* === 003: Airflow arrows (Entstaubung) ===
   Curved arrows rising and fading */
.sa-airflow {
  animation: airflow 3s ease-in-out infinite;
  opacity: 0;
}
.sa-airflow:nth-child(1) { animation-delay: 0.0s; }
.sa-airflow:nth-child(2) { animation-delay: 0.5s; }
.sa-airflow:nth-child(3) { animation-delay: 1.0s; }
.sa-airflow:nth-child(4) { animation-delay: 1.5s; }
.sa-airflow:nth-child(5) { animation-delay: 2.0s; }
@keyframes airflow {
  0%   { opacity: 0; transform: translateY(20px); }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-30px); }
}

/* === 004: CAD measurements (Maschinen) ===
   Dimension lines drawing themselves repeatedly */
.sa-cad-dim {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: cadDraw 4s ease-in-out infinite;
}
.sa-cad-dim:nth-child(2) { animation-delay: 0.6s; }
.sa-cad-dim:nth-child(3) { animation-delay: 1.2s; }
.sa-cad-dim:nth-child(4) { animation-delay: 1.8s; }
@keyframes cadDraw {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  20%  { opacity: 1; }
  60%  { stroke-dashoffset: 0; opacity: 1; }
  80%  { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
.sa-cad-blink {
  animation: cadBlink 1.6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes cadBlink {
  50% { opacity: 0.3; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .service-img, .service-img-wrap::before, .service-anim * { animation: none !important; }
  .service-img { transform: scale(1.05); }
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.service-card:hover .service-footer { color: var(--accent); }
.service-footer .arrow {
  display: inline-block;
  transition: transform 0.25s var(--easing);
}
.service-card:hover .service-footer .arrow { transform: translateX(6px); }

/* ---------- Tradition / 1873 ---------- */
.tradition {
  position: relative;
  overflow: hidden;
}
.tradition-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) {
  .tradition-grid { grid-template-columns: 1fr; gap: 40px; }
}
.tradition-year {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 200;
  font-size: clamp(120px, 22vw, 360px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--fg);
  background: linear-gradient(180deg, var(--fg) 0%, var(--accent) 70%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}
.tradition-year::after {
  content: "EST.";
  position: absolute;
  top: 14px;
  left: -52px;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
  letter-spacing: 0.2em;
  background: var(--accent);
  -webkit-background-clip: initial;
  background-clip: initial;
}
.tradition-text { display: flex; flex-direction: column; gap: 28px; }
.tradition-text h2 { color: var(--fg); }
.tradition-text p { font-size: 16px; }
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.timeline-item .year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.timeline-item .what {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: var(--fg);
}
.timeline-item .what small {
  display: block;
  font-size: 12px;
  color: var(--fg-mute);
  margin-top: 2px;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(45, 184, 176, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.cta h2 { max-width: 18ch; font-weight: 400; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 60px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--fg-dim); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--bg-1);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-item::after {
  content: "✦";
  color: var(--accent);
  font-size: 10px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Page header (subpages) ---------- */
.page-head {
  padding: 180px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 80% 40%, rgba(45, 184, 176, 0.12), transparent 50%);
  pointer-events: none;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 32px;
}
.breadcrumbs a { color: var(--fg-mute); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span.sep { color: var(--line-strong); }
.breadcrumbs span.current { color: var(--accent); }
.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.page-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 60ch;
}


/* ---------- Detail page specific ---------- */
.detail-stage {
  position: relative;
  height: 720px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  overflow: hidden;
}
.detail-stage canvas { display: block; width: 100%; height: 100%; }
.detail-stage-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.detail-stage-overlay .tl-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.detail-stage-overlay .bl-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.stage-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 10px;
  border: 1px solid var(--accent);
  background: rgba(45, 184, 176, 0.08);
}
.stage-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1.6;
}
.stage-meta span { color: var(--fg); }
.stage-controls {
  pointer-events: auto;
  display: flex;
  gap: 4px;
  border: 1px solid var(--line-strong);
}
.stage-controls button {
  background: var(--bg-2);
  border: none;
  padding: 8px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.stage-controls button.active,
.stage-controls button:hover { background: var(--accent); color: var(--bg-0); }
.stage-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent);
  width: 25%;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1px;
}
@media (max-width: 880px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-item {
  background: var(--bg-1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spec-item .v {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 36px;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
}
.spec-item .v em { color: var(--accent); font-style: normal; font-size: 14px; margin-left: 4px; }
.spec-item .l {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}
.feature-row:nth-child(even) > div:first-child { order: 2; }
.feature-row:last-child { margin-bottom: 0; }
@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
  .feature-row:nth-child(even) > div:first-child { order: 0; }
}
.feature-text { display: flex; flex-direction: column; gap: 18px; }
.feature-text h3 { font-size: 36px; font-weight: 400; letter-spacing: -0.02em; }
.feature-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 10px 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { min-height: 100px; }

.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-block { display: flex; flex-direction: column; gap: 6px; }
.contact-block .label { margin-bottom: 4px; }
.contact-block .value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.contact-block .sub {
  font-size: 14px;
  color: var(--fg-dim);
}

/* ---------- Industries strip on detail ---------- */
.ind-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.center { text-align: center; }
.row { display: flex; gap: 16px; align-items: center; }

@keyframes loaderOut {
  0% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes loaderGridIn { to { opacity: 0.5; } }
/* gear body */
.lm-gear-body {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.lm-gear-hub {
  fill: var(--accent);
}
.lm-gear-spoke {
  stroke: var(--bg-0);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.lm-gear-big   { animation: gearSpin 4s linear infinite; transform-origin: 0 0; }
.lm-gear-small { animation: gearSpinRev 3s linear infinite; transform-origin: 0 0; }
@keyframes gearSpin { to { transform: rotate(360deg); } }
@keyframes gearSpinRev { to { transform: rotate(-360deg); } }

/* circuit trace */
.lm-circuit-base {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.lm-circuit-node {
  fill: rgba(255, 255, 255, 0.25);
}
.lm-circuit-node.active {
  animation: nodePulse 2.4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.lm-circuit-node.active:nth-of-type(1) { animation-delay: 0s; }
.lm-circuit-node.active:nth-of-type(2) { animation-delay: 0.6s; }
.lm-circuit-node.active:nth-of-type(3) { animation-delay: 1.2s; }
@keyframes nodePulse {
  0%, 100% { fill: rgba(255, 255, 255, 0.25); transform: scale(1); }
  40%      { fill: var(--accent); transform: scale(1.4); }
  60%      { fill: var(--accent); transform: scale(1.4); }
}
.lm-circuit-pulse {
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 30 220;
  animation: circuitFlow 2.4s linear infinite;
}
@keyframes circuitFlow {
  from { stroke-dashoffset: 250; }
  to   { stroke-dashoffset: 0; }
}

/* arrow indicators for gear direction */
.lm-arrow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  animation: arrowFlash 4s ease-in-out infinite;
}
.lm-arrow.cw  { animation-delay: 0s; }
.lm-arrow.ccw { animation-delay: 1.5s; }
@keyframes arrowFlash {
  0%, 100% { opacity: 0; }
  20%, 30% { opacity: 0.8; }
}

/* mini labels */
.lm-tag {
  fill: var(--fg-mute);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 7px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-anchor: middle;
}
.lm-tag.active { fill: var(--accent); }

@keyframes lmFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loaderBar { to { transform: scaleX(1); } }
@keyframes lmBlink { 50% { opacity: 0.2; } }


@keyframes cueIn { to { opacity: 1; } }
@keyframes cueLine {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}


/* ============ STAGGER GROUPS ============ */
.services-grid .service-card,
.timeline .timeline-item,
.hero-strip .hero-strip-item,
.industry-strip .ind-cell,
.services-grid.in .service-card,
.timeline.in .timeline-item,
.hero-strip.in .hero-strip-item,
.industry-strip.in .ind-cell,


@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .services-grid .service-card, .timeline .timeline-item,
  .hero-strip .hero-strip-item, .industry-strip .ind-cell, .spec-grid .spec-item,
  .scroll-cue, .loader { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .loader { display: none !important; }
}

/* =========================================================
   LOADING SCREEN — engineering-style boot sequence
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-0);
  display: grid;
  place-items: center;
  pointer-events: all;
}
.loader.loader-out {
  animation: loaderOut 0.9s var(--easing) forwards;
  animation-delay: 0.1s;
}
@keyframes loaderOut {
  0% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
.loader-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0;
  animation: loaderGridIn 0.6s var(--easing) forwards;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 80%);
}
@keyframes loaderGridIn {
  to { opacity: 0.5; }
}
.loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  z-index: 2;
}
.loader-mark {
  width: 120px;
  height: 120px;
  position: relative;
}
.loader-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.loader-mark .lm-ring {
  stroke: var(--line-strong);
  stroke-width: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.loader-mark .lm-arc {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform-origin: 50% 50%;
  animation: lmArcSpin 1.2s linear infinite, lmArcDraw 0.8s var(--easing) forwards;
  vector-effect: non-scaling-stroke;
}
@keyframes lmArcSpin {
  to { transform: rotate(360deg); }
}
@keyframes lmArcDraw {
  to { stroke-dashoffset: 0.7; }
}
.loader-mark .lm-cross {
  stroke: var(--accent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: lmCross 0.7s var(--easing) 0.2s forwards;
}
@keyframes lmCross {
  to { stroke-dashoffset: 0; }
}
.loader-mark .lm-corner {
  stroke: var(--fg-mute);
  stroke-width: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  animation: lmFadeIn 0.4s ease 0.1s forwards;
}
@keyframes lmFadeIn { to { opacity: 1; } }
.loader-mark .lm-dot {
  fill: var(--accent);
  opacity: 0;
  animation: lmDotPop 0.6s var(--easing) 0.8s forwards;
}
@keyframes lmDotPop {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.6); }
  100% { opacity: 1; transform: scale(1); }
}
.loader-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.loader-title .l1 {
  color: var(--accent);
  opacity: 0;
  animation: lmFadeUp 0.5s var(--easing) 0.4s forwards;
}
.loader-title .l2 {
  opacity: 0;
  animation: lmFadeUp 0.5s var(--easing) 0.6s forwards;
}
@keyframes lmFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.loader-bar {
  width: 220px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  animation: loaderBar 2s var(--easing) 0.2s forwards;
}
@keyframes loaderBar {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
.loader-meta {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  opacity: 0;
  animation: lmFadeUp 0.5s ease 0.8s forwards;
}
.loader-meta .blink {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  animation: lmBlink 1.2s ease-in-out infinite;
}
@keyframes lmBlink { 50% { opacity: 0.2; } }

/* =========================================================
   ENHANCED SCROLL ANIMATIONS
   ========================================================= */

/* directional reveals */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 1s var(--easing), transform 1s var(--easing);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 1s var(--easing), transform 1s var(--easing);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1s var(--easing), transform 1s var(--easing);
}
.reveal-left.in, .reveal-right.in, .reveal-scale.in {
  opacity: 1;
  transform: none;
}


/* scroll-parallax hero text */
.hero-meta-left {
  will-change: transform;
}


/* scroll progress bar (top) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 200;
  width: 0%;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* sticky-style scroll cue under nav */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  animation: cueIn 0.8s var(--easing) 2.6s forwards;
}
@keyframes cueIn { to { opacity: 1; } }
.scroll-cue .cue-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: cueLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cueLine {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* magnetic-button base */
.btn {
  will-change: transform;
}

/* services card entrance — stagger via index */
.services-grid .service-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
.services-grid.in .service-card { opacity: 1; transform: none; }
.services-grid.in .service-card:nth-child(1) { transition-delay: 0.0s; }
.services-grid.in .service-card:nth-child(2) {
  transition-delay: 0.12s;
}
.services-grid.in .service-card:nth-child(3) {
  transition-delay: 0.24s;
}
.services-grid.in .service-card:nth-child(4) {
  transition-delay: 0.36s;
}

/* timeline staggered reveal */
.timeline .timeline-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
}
.timeline.in .timeline-item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.timeline.in .timeline-item:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}
.timeline.in .timeline-item:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}
.timeline.in .timeline-item:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.35s;
}
.timeline.in .timeline-item:nth-child(5) {
  opacity: 1;
  transform: none;
  transition-delay: 0.45s;
}

/* tradition year scroll-scale */
.tradition-year {
  transition: transform 0.2s ease-out;
  will-change: transform;
}

/* hero strip stagger */
.hero-strip .hero-strip-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}
.hero-strip.in .hero-strip-item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.0s; }
.hero-strip.in .hero-strip-item:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}
.hero-strip.in .hero-strip-item:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}
.hero-strip.in .hero-strip-item:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}

/* industry-strip cell stagger */
.industry-strip .ind-cell {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
}
.industry-strip.in .ind-cell:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.industry-strip.in .ind-cell:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.10s;
}
.industry-strip.in .ind-cell:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}
.industry-strip.in .ind-cell:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.20s;
}
.industry-strip.in .ind-cell:nth-child(5) {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}
.industry-strip.in .ind-cell:nth-child(6) {
  opacity: 1;
  transform: none;
  transition-delay: 0.30s;
}

/* spec-grid cell stagger */
.spec-grid .spec-item {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s var(--easing), transform 0.6s var(--easing);
}
.spec-grid.in .spec-item {
  opacity: 1;
  transform: none;
}
.spec-grid.in .spec-item:nth-child(1) { transition-delay: 0.04s; }
.spec-grid.in .spec-item:nth-child(2) {
  transition-delay: 0.08s;
}
.spec-grid.in .spec-item:nth-child(3) {
  transition-delay: 0.12s;
}
.spec-grid.in .spec-item:nth-child(4) {
  transition-delay: 0.16s;
}
.spec-grid.in .spec-item:nth-child(5) {
  transition-delay: 0.20s;
}
.spec-grid.in .spec-item:nth-child(6) {
  transition-delay: 0.24s;
}
.spec-grid.in .spec-item:nth-child(7) {
  transition-delay: 0.28s;
}
.spec-grid.in .spec-item:nth-child(8) {
  transition-delay: 0.32s;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .services-grid .service-card, .timeline .timeline-item,
  .hero-strip .hero-strip-item, .industry-strip .ind-cell, .spec-grid .spec-item,
  .scroll-cue, .loader { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .loader { display: none !important; }
}

/* ---------- Hero technical drawing overlay ---------- */
.tech-drawing {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.tech-drawing svg { width: 100%; height: 100%; display: block; }
.td-line { stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.td-line-accent { stroke: var(--accent); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.td-line-dashed { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; stroke-dasharray: 4 4; fill: none; vector-effect: non-scaling-stroke; }
.td-line-accent-dashed { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 6 4; fill: none; vector-effect: non-scaling-stroke; }
.td-fill-faint { fill: rgba(45, 184, 176, 0.06); stroke: var(--accent); stroke-width: 1; }
.td-text {
  fill: var(--fg-dim);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.td-text-accent {
  fill: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.td-text-strong {
  fill: var(--fg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.td-tick { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Path-draw animation (set --len via inline style with pathLength="1") */
.td-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawIn 1.8s var(--easing) forwards;
}
.td-draw-d1 { animation-delay: 0.3s; }
.td-draw-d2 { animation-delay: 0.6s; }
.td-draw-d3 { animation-delay: 0.9s; }
.td-draw-d4 { animation-delay: 1.2s; }
.td-draw-d5 { animation-delay: 1.5s; }
@keyframes drawIn {
  to { stroke-dashoffset: 0; }
}
.td-fade {
  opacity: 0;
  animation: fadeIn 0.8s var(--easing) forwards;
}
.td-fade-d1 { animation-delay: 1.0s; }
.td-fade-d2 { animation-delay: 1.4s; }
.td-fade-d3 { animation-delay: 1.8s; }
.td-fade-d4 { animation-delay: 2.2s; }
.td-fade-d5 { animation-delay: 2.6s; }
@keyframes fadeIn {
  to { opacity: 1; }
}
.td-dot { fill: var(--accent); }
.td-dot-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.5; }
}
/* Hatching pattern for workpiece cross-section */
.td-hatch { fill: url(#td-hatch-pattern); }

.hero-stage {
  z-index: 0;
}
.hero-content {
  z-index: 3;
}

/* =========================================================
   PRODUKTFILM & 360°-SPINNER (Anlagen-Detailseite)
   ========================================================= */
.media-section .sec-head { margin-bottom: 48px; }

/* --- gemeinsamer Rahmen im Stil der 3D-Bühne --- */
.video-frame,
.orbit-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
  margin: 0;
}
.video-frame .corner-tl, .video-frame .corner-tr,
.video-frame .corner-bl, .video-frame .corner-br,
.orbit-frame .corner-tl, .orbit-frame .corner-tr,
.orbit-frame .corner-bl, .orbit-frame .corner-br {
  position: absolute;
  width: 12px; height: 12px;
  z-index: 4;
  pointer-events: none;
}
.video-frame .corner-tl, .orbit-frame .corner-tl { top: -1px; left: -1px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.video-frame .corner-tr, .orbit-frame .corner-tr { top: -1px; right: -1px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.video-frame .corner-bl, .orbit-frame .corner-bl { bottom: -1px; left: -1px; border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.video-frame .corner-br, .orbit-frame .corner-br { bottom: -1px; right: -1px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

.video-badge, .orbit-badge {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 3;
  pointer-events: none;
}

/* --- Film: cineastisches Band --- */
.video-frame { aspect-ratio: 21 / 9; }
@media (max-width: 880px) { .video-frame { aspect-ratio: 16 / 9; } }
.video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-2);
}
/* Play-Schaltfläche: nur sichtbar, wenn nicht automatisch gestartet wird */
.video-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 68px; height: 68px;
  border: 1px solid var(--accent);
  background: rgba(7, 7, 10, 0.6);
  color: var(--accent);
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s var(--easing);
}
.video-play:hover { background: var(--accent); color: var(--bg-0); transform: translate(-50%, -50%) scale(1.06); }
.video-play[hidden] { display: none; }

/* --- Spinner --- */
.orbit-frame {
  aspect-ratio: 16 / 9;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}
.orbit-frame.orbit-dragging { cursor: grabbing; }
.orbit-frame:focus-visible { border-color: var(--accent); }
.orbit-canvas {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.orbit-hint {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: rgba(7, 7, 10, 0.55);
  border: 1px solid var(--line-strong);
  padding: 7px 14px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.orbit-hint-hide { opacity: 0; }
.orbit-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--line);
  z-index: 3;
}
.orbit-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.25s linear;
}
.orbit-frame.orbit-ready .orbit-progress { opacity: 0; transition: opacity 0.5s ease 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .orbit-hint, .orbit-progress-fill, .video-play { transition: none !important; }
}


/* =========================================================
   LEISTUNGEN — vormals seiteneigenes CSS in leistungen.html
   ========================================================= */
.lst-row {
  display: grid;
  grid-template-columns: 80px 1.2fr 1fr 220px;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--easing);
  cursor: pointer;
}
.lst-row:first-child { border-top: 1px solid var(--line); }
.lst-row:hover { padding-left: 16px; }
.lst-row:hover .lst-img { filter: grayscale(0) brightness(0.95); transform: scale(1.04); }
.lst-row:hover .lst-name { color: var(--accent); }
.lst-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
}
.lst-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
  transition: color 0.3s ease;
}
.lst-name small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}
.lst-desc {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.55;
}
.lst-imgwrap {
  position: relative;
  width: 220px;
  height: 130px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.lst-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.5) brightness(0.7);
  transition: transform 0.7s var(--easing), filter 0.7s var(--easing);
}
@media (max-width: 880px) {
  .lst-row { grid-template-columns: 60px 1fr; gap: 12px; }
  .lst-desc, .lst-imgwrap { display: none; }
}

.sub-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.sub-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.sub-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.sub-head .lab { color: var(--accent); }
@media (max-width: 880px) { .sub-head { grid-template-columns: 1fr; gap: 16px; } }

.industry-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 880px) { .industry-strip { grid-template-columns: repeat(2, 1fr); } }
.ind-cell {
  background: var(--bg-1);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s;
  cursor: default;
}
.ind-cell:hover { background: var(--bg-2); }
.ind-cell .ind-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.16em;
}
.ind-cell .ind-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  color: var(--fg);
  font-weight: 500;
}
.ind-cell .ind-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* =========================================================
   ANLAGEN-DETAIL — vormals seiteneigenes CSS in detail-strahlsysteme.html
   ========================================================= */
.detail-hero {
  padding: 140px 0 0;
  position: relative;
  overflow: hidden;
}
.detail-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 60% at 20% 30%, rgba(45, 184, 176, 0.10), transparent 60%);
  pointer-events: none;
}
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  padding-bottom: 60px;
}
@media (max-width: 880px) { .detail-hero-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; } }
.detail-hero-grid h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.detail-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.ind-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.hotspot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 880px) { .hotspot-grid { grid-template-columns: 1fr; } }
.hs-cell {
  background: var(--bg-1);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  cursor: default;
  transition: background 0.3s;
}
.hs-cell:hover { background: var(--bg-2); }
.hs-cell .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
}
.hs-cell h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--fg);
}
.hs-cell p {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.55;
}

.feat-illust {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(135deg, var(--bg-2), var(--bg-1));
  position: relative;
}
.feat-illust::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
}
.feat-illust img {
  max-width: 80%;
  max-height: 80%;
  filter: grayscale(0.3) contrast(1.05) brightness(0.9);
  position: relative;
  z-index: 2;
}
.feat-illust .label-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
}


/* =========================================================
   KONTAKT — vormals seiteneigenes CSS in kontakt.html
   ========================================================= */
.kontakt-hero {
  padding: 160px 0 60px;
  position: relative;
  overflow: hidden;
}
.kontakt-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 30% 50%, rgba(45, 184, 176, 0.10), transparent 60%);
  pointer-events: none;
}
.kontakt-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.kontakt-hero h1 em { color: var(--accent); font-style: normal; }
.form-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 48px;
  position: relative;
}
.form-card .corner-tl, .form-card .corner-tr, .form-card .corner-bl, .form-card .corner-br {
  position: absolute;
  width: 12px; height: 12px;
}
.form-card .corner-tl { top: -1px; left: -1px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.form-card .corner-tr { top: -1px; right: -1px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.form-card .corner-bl { bottom: -1px; left: -1px; border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.form-card .corner-br { bottom: -1px; right: -1px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 880px) {
  .form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
}
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.form-header h3 { font-size: 22px; font-weight: 500; }
.form-header .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
}
.form-success {
  display: none;
  padding: 14px 18px;
  border: 1px solid var(--accent);
  background: rgba(45, 184, 176, 0.08);
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.form-success.show { display: block; }
.topic-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.topic-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.topic-chip.active, .topic-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(45, 184, 176, 0.08);
}
.map-frame {
  aspect-ratio: 4 / 3;
  background: var(--bg-1);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.map-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(45, 184, 176, 0.2), 0 0 40px var(--accent-glow);
  z-index: 2;
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: -20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}
