:root {
  /* Base */
  --bg-black: #04060A;
  --bg-pure: #000000;

  /* Glass */
  --glass-dark: rgba(10, 14, 22, 0.55);
  --glass-dark-hi: rgba(14, 20, 32, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hi: rgba(255, 255, 255, 0.16);

  /* Text */
  --text-primary: #F0F4F8;
  --text-secondary: rgba(240, 244, 248, 0.68);
  --text-muted: rgba(240, 244, 248, 0.42);
  --text-faint: rgba(240, 244, 248, 0.22);

  /* Accents — match fiber image: cyan dominant, with magenta + amber highlights */
  --accent-cyan: #22D3EE;
  --accent-cyan-bright: #67E8F9;
  --accent-magenta: #C084FC;
  --accent-amber: #FBBF24;
  --accent-deep: #0E7490;

  --accent-glow: rgba(34, 211, 238, 0.45);
  --accent-line: rgba(34, 211, 238, 0.30);

  --status-live: #34D399;

  --ease-editorial: cubic-bezier(0.32, 0.72, 0, 1);

  /* Fonts */
  --font-display: 'Syne', -apple-system, sans-serif;
  --font-sans: 'Inter Tight', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html, body {
  height: 100vh;
  overflow: hidden;
  background: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ================= Background system ================= */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: 80% center;
  z-index: 1;
  pointer-events: none;
  transition: opacity 900ms var(--ease-editorial), filter 900ms var(--ease-editorial);
}

.bg-video.dimmed {
  opacity: 0.35;
  filter: blur(2px);
}

.bg-image {
  position: fixed;
  inset: 0;
  background-image: url("fiber-bg.png");
  background-size: cover;
  background-position: 80% center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  transition: opacity 600ms var(--ease-editorial), filter 600ms var(--ease-editorial);
}

/* dim the image when state requires reading-priority right column */
.bg-image.dimmed {
  opacity: 0.35;
  filter: blur(2px);
}

.bg-tint {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,6,10,0.85) 0%, rgba(4,6,10,0.55) 38%, rgba(4,6,10,0) 65%);
  z-index: 2;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
  z-index: 3;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Edge lines */
.edge-line-h {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,0.30) 20%, rgba(34,211,238,0.30) 80%, transparent 100%);
  pointer-events: none;
  z-index: 8;
}
.edge-line-v {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(34,211,238,0.22) 25%, rgba(34,211,238,0.22) 75%, transparent 100%);
  pointer-events: none;
  z-index: 8;
}

/* ================= Layout shell ================= */

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  /* Reveal is frame-locked to the intro dissolve via --reveal (0→1). */
  opacity: var(--reveal, 1);
  transform: scale(calc(1.04 - 0.04 * var(--reveal, 1)));
  transform-origin: center center;
}

.chrome {
  position: absolute;
  inset: 0;
  padding: 36px 48px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  z-index: 50;
}

/* ================= Top row ================= */

.top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 60;
}

/* Hamburger + mobile drawer exist only on the mobile layout */
.nav-burger { display: none; }
.mobile-menu { display: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
  opacity: 1 !important;
  isolation: isolate;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    conic-gradient(from 220deg,
      #67E8F9 0%,
      #22D3EE 18%,
      #C084FC 38%,
      #F472B6 55%,
      #FBBF24 72%,
      #67E8F9 100%);
  box-shadow:
    0 0 22px rgba(34,211,238,0.7),
    0 0 0 1px rgba(255,255,255,0.5) inset;
  position: relative;
  opacity: 1;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  white-space: nowrap;
  opacity: 1;
}
.brand-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-cyan-bright);
  opacity: 1;
}

.nav-tokens {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 60%;
}

.nav-token {
  position: relative;
  padding: 9px 16px;
  background: var(--glass-dark);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 280ms var(--ease-editorial), color 280ms var(--ease-editorial), background 280ms var(--ease-editorial), box-shadow 280ms var(--ease-editorial);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-token:hover {
  border-color: rgba(34,211,238,0.45);
  color: var(--text-primary);
}
.nav-token.active {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: var(--glass-dark-hi);
  box-shadow: 0 0 24px rgba(34,211,238,0.28);
}
.nav-token .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan-bright);
  box-shadow: 0 0 8px var(--accent-cyan-bright);
  opacity: 0;
  transition: opacity 220ms var(--ease-editorial);
}
.nav-token.active .dot { opacity: 1; }

/* ================= Main content area ================= */

.canvas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 32px;
}

/* ================= Left column ================= */

.left {
  position: relative;
  z-index: 6;
  max-width: 640px;
  padding-left: 60px;
  padding-right: 30px;
  padding-bottom: 30px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 248, 255, 0.78);
  font-weight: 500;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.eyebrow .dash {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(34,211,238,0.55);
}

.headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(54px, 6.6vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}
.headline .row { display: block; white-space: nowrap; }
.headline em { font-style: italic; font-weight: 300; }
.headline .outline {
  -webkit-text-stroke: 1px rgba(240,244,248,0.55);
  color: transparent;
}
.headline .accent { color: var(--accent-cyan-bright); }

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  animation: wordIn 1100ms var(--ease-editorial) forwards;
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.sub {
  margin-top: 28px;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(240, 244, 248, 0.86);
  max-width: 540px;
}

/* CTA */
.cta-row {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(34,211,238,0.06);
  border: 1.5px solid var(--accent-cyan);
  border-radius: 4px;
  cursor: pointer;
  transition: background 300ms var(--ease-editorial), box-shadow 300ms var(--ease-editorial);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border: 1.5px solid var(--accent-cyan-bright);
  border-radius: 4px;
  opacity: 0;
  animation: ctaPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.02); }
}
.cta:hover {
  background: rgba(34,211,238,0.16);
  box-shadow: 0 0 30px rgba(34,211,238,0.4);
}
.cta .arrow { font-family: var(--font-display); font-size: 18px; font-weight: 300; }

.cta-ghost {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: color 220ms var(--ease-editorial);
}
.cta-ghost:hover { color: var(--text-primary); }

/* Meta row */
.meta-row {
  margin-top: 38px;
  display: flex;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: 540px;
  flex-wrap: wrap;
}
.meta-cell {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.6);
  line-height: 1.5;
}
.meta-cell strong {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: 4px;
}

/* ================= Right column ================= */

.right {
  position: relative;
  z-index: 5;
  height: min(72vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* When right column has content, give it a subtle dark scrim under the wave so text reads */
.right .panel-scrim {
  position: absolute;
  inset: -32px -32px -32px -16px;
  background: radial-gradient(ellipse at center, rgba(4,6,10,0.65) 0%, rgba(4,6,10,0) 70%);
  z-index: 0;
  pointer-events: none;
}

/* ================= Pagination ================= */

.pagination {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.pagination::before {
  content: "";
  position: absolute;
  right: 7px;
  top: -6px;
  bottom: -6px;
  width: 1px;
  background: rgba(255,255,255,0.10);
}
.page-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 0;
  transition: color 260ms var(--ease-editorial);
}
.page-item:hover { color: var(--text-secondary); }
.page-item.active { color: var(--text-primary); }
.page-item .pg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 260ms var(--ease-editorial), box-shadow 260ms var(--ease-editorial), border-color 260ms var(--ease-editorial);
}
.page-item.active .pg-dot {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(34,211,238,0.8);
}

/* ================= Ticker ================= */

.ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ticker-center { display: flex; align-items: center; gap: 14px; }
.ticker-center .em { color: var(--text-faint); letter-spacing: 0; }
.ticker-center .mag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% {opacity:0.6;} 50% {opacity:1;} }
.ticker-right { display: flex; gap: 22px; align-items: center; }
.ticker-right .status { display: inline-flex; align-items: center; gap: 6px; }
.ticker-right .status::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 8px rgba(52,211,153,0.7);
}

/* ================= State fade ================= */

.state-fade {
  animation: stateIn 900ms var(--ease-editorial);
}
@keyframes stateIn {
  from { opacity: 0; transform: translateX(-22px); filter: blur(6px); }
  to   { opacity: 1; transform: translateX(0); filter: blur(0); }
}
.state-fade-right {
  animation: stateInRight 900ms var(--ease-editorial);
}
@keyframes stateInRight {
  from { opacity: 0; transform: translateX(28px); filter: blur(6px); }
  to   { opacity: 1; transform: translateX(0); filter: blur(0); }
}

/* ================= Service list / pillars ================= */

.service-list {
  width: 100%;
  max-width: 520px;
  background: var(--glass-dark);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 28px 28px 24px;
  position: relative;
  z-index: 6;
}
.service-list .sl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 18px;
}
.service-list .sl-head .t {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.service-list .sl-head .n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent-cyan-bright);
}
.service-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 240ms var(--ease-editorial);
}
.service-row:last-child { border-bottom: 0; }
.service-row:hover { background: rgba(34,211,238,0.04); }
.service-row .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  padding-top: 3px;
}
.service-row .body { display: flex; flex-direction: column; gap: 3px; }
.service-row .ttl {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.service-row .ttl em { font-style: italic; font-weight: 400; }
.service-row .desc {
  font-size: 14px;
  color: rgba(240, 244, 248, 0.78);
  line-height: 1.55;
}

/* ================= Glasfaser feature panel ================= */

.feature-panel {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 6;
}
.feature-card {
  background: var(--glass-dark);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 22px 24px;
  transition: border-color 280ms var(--ease-editorial), background 280ms var(--ease-editorial);
  cursor: default;
}
.feature-card:hover {
  border-color: rgba(34,211,238,0.45);
  background: var(--glass-dark-hi);
}
.feature-card .fc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.feature-card .fc-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent-cyan-bright);
}
.feature-card .fc-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.feature-card .fc-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature-card .fc-title em { font-style: italic; font-weight: 400; }
.feature-card .fc-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(240, 244, 248, 0.82);
}

/* ================= Kontakt form ================= */

.contact-form {
  width: 100%;
  max-width: 440px;
  background: rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(36px) saturate(140%);
  -webkit-backdrop-filter: blur(36px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 60px rgba(34,211,238,0.18);
  position: relative;
  z-index: 6;
}
.cf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cf-head .t {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 248, 255, 0.85);
  font-weight: 500;
}
.cf-head .n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent-cyan-bright);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 248, 255, 0.85);
  font-weight: 500;
}
.field input, .field textarea {
  font-family: var(--font-sans);
  font-size: 17px;
  color: #FFFFFF;
  font-weight: 400;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.32);
  padding: 10px 0;
  outline: none;
  transition: border-color 260ms var(--ease-editorial);
  resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.40); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent-cyan); }
.field textarea { min-height: 52px; }
.submit-btn {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(34,211,238,0.06);
  border: 1.5px solid var(--accent-cyan);
  border-radius: 4px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 260ms var(--ease-editorial), box-shadow 260ms var(--ease-editorial);
}
.submit-btn:hover {
  background: rgba(34,211,238,0.16);
  box-shadow: 0 0 28px rgba(34,211,238,0.4);
}

/* ================= Tweaks panel ================= */

.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 280px;
  background: var(--glass-dark-hi);
  backdrop-filter: blur(32px) saturate(130%);
  -webkit-backdrop-filter: blur(32px) saturate(130%);
  border: 1px solid var(--glass-border-hi);
  border-radius: 6px;
  padding: 16px;
  z-index: 60;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  box-shadow: 0 0 40px rgba(34,211,238,0.18);
  display: none;
}
.tweaks.visible { display: block; }
.tweaks h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan-bright);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tw-row { margin-bottom: 14px; }
.tw-row .lab {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}
.tw-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tw-opt {
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  color: var(--text-secondary);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms var(--ease-editorial);
}
.tw-opt.active {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: rgba(34,211,238,0.10);
}
.tw-swatches { display: flex; gap: 6px; }
.tw-swatch {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: border-color 200ms var(--ease-editorial);
}
.tw-swatch.active { border-color: var(--text-primary); }

/* ================= Scroll-scrubbing intro ================= */

.intro-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000000;
  overflow: hidden;
  will-change: opacity;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
  background: #000;
}

/* Keep the left negative space dark so headlines always read */
.intro-leftscrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.72) 30%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 72%);
  pointer-events: none;
}

.intro-overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-textblock {
  position: absolute;
  left: 7vw;
  top: 50%;
  transform: translateY(-50%);
  max-width: 44vw;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Phases are stacked in the same spot; only the active one is visible */
.intro-phase {
  grid-area: 1 / 1;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  will-change: opacity, transform;
}

.intro-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.intro-dash {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent-cyan);
}

.intro-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 0;
  text-wrap: balance;
}
.intro-accent { color: var(--accent-cyan); }

.intro-downhint {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

/* Progress rail (right edge) */
.intro-rail {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 180px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.intro-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--accent-cyan-bright), var(--accent-cyan));
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Initial scroll cue */
.intro-scrollcue {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  animation: introCueFade 2.6s ease-in-out infinite;
}
.intro-scrollcue-arrow {
  font-size: 16px;
  animation: introCueBob 2.2s var(--ease-editorial) infinite;
}
@keyframes introCueFade { 0%,100% { opacity: 0.45; } 50% { opacity: 0.9; } }
@keyframes introCueBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.intro-skip {
  position: absolute;
  top: 38px;
  right: 48px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 0;
  transition: color 220ms var(--ease-editorial);
  pointer-events: auto;
}
.intro-skip:hover { color: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  .intro-root { display: none; }
}

/* ================= Legal: ticker links + modal ================= */

.legal-links { display: inline-flex; align-items: center; gap: 8px; }
.legal-sep { color: var(--text-faint); }
.legal-link {
  font-family: var(--font-mono);
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 220ms var(--ease-editorial);
}
.legal-link:hover { color: var(--accent-cyan-bright); }

.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 4, 8, 0.74);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  animation: legalFade 240ms var(--ease-editorial);
}
@keyframes legalFade { from { opacity: 0; } to { opacity: 1; } }

.legal-modal {
  width: min(680px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: rgba(8, 10, 16, 0.97);
  border: 1px solid var(--glass-border-hi);
  border-radius: 6px;
  box-shadow: 0 30px 100px rgba(0,0,0,0.6), 0 0 70px rgba(34,211,238,0.12);
  overflow: hidden;
  animation: legalRise 320ms var(--ease-editorial);
}
@keyframes legalRise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex: 0 0 auto;
}
.legal-tabs { display: flex; gap: 6px; }
.legal-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 220ms var(--ease-editorial);
}
.legal-tab:hover { color: var(--text-secondary); border-color: rgba(34,211,238,0.4); }
.legal-tab.active {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: rgba(34,211,238,0.10);
}
.legal-close {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: all 220ms var(--ease-editorial);
  flex: 0 0 auto;
}
.legal-close:hover { color: var(--text-primary); border-color: var(--accent-cyan); }

.legal-body {
  overflow-y: auto;
  padding: 26px 30px 30px;
}

.legal-content { max-width: 560px; }
.legal-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-cyan-bright);
  margin-bottom: 22px;
}
.legal-address {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.legal-address strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.legal-dl dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.legal-dl dd {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-primary);
}

.legal-content h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 22px 0 8px;
}
.legal-content h4:first-of-type { margin-top: 4px; }
.legal-content p {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.legal-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px !important;
  color: var(--text-muted) !important;
}

/* =================================================================
   RESPONSIVE LAYERS
   The base layout above is tuned for wide desktop. These layers
   progressively reflow it down to phones without touching the
   desktop experience.
   ================================================================= */

/* ---------- Fluid desktop → laptop (≤ 1280px) ---------- */
@media (max-width: 1280px) {
  .chrome { padding: 30px 40px; }
  .canvas { gap: 36px; padding-top: 24px; }
  .left { padding-left: 36px; padding-right: 20px; }
  .edge-line-h[style*="top"] { top: 104px !important; }
}

/* ---------- Tablet landscape / small laptop (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .chrome { padding: 26px 32px; }
  .top-row { gap: 16px; }
  .nav-tokens { max-width: 56%; gap: 4px; }
  .nav-token { padding: 8px 12px; font-size: 10px; }
  .canvas { gap: 28px; padding-top: 16px; }
  .left { padding-left: 24px; padding-right: 12px; max-width: 560px; }
  .headline { font-size: clamp(46px, 6.4vw, 84px) !important; }
  .sub { font-size: 16px; }
  .right { height: min(64vh, 560px); }
  .feature-panel, .service-list, .contact-form { max-width: 100%; }
  .pagination { right: 22px; }
  .edge-line-h { left: 32px !important; right: 32px !important; }
  .edge-line-h[style*="top"] { top: 96px !important; }
  .edge-line-h[style*="bottom"] { bottom: 80px !important; }
}

/* ---------- Portrait tablet (≤ 880px): begin single-column ---------- */
@media (max-width: 880px) {
  .canvas {
    grid-template-columns: 1fr;
    gap: 22px;
    align-content: center;
  }
  .left {
    max-width: 640px;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 0;
  }
  .right {
    height: auto;
    justify-content: flex-start;
  }
  /* Empty hero-right on the start page shouldn't reserve space */
  .canvas[data-state="start"] .right { display: none; }
  .right .panel-scrim { inset: -24px; }
}

/* ===============================================================
   MOBILE (≤ 760px): stays a fixed-viewport "deck" like desktop —
   the top bar + ticker are pinned, the middle content area scrolls
   internally when a panel is taller than the screen. The cinematic
   intro still runs (touch-scrubbed). States are switched by tapping
   the nav tokens.
   =============================================================== */
@media (max-width: 760px) {
  html {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }
  /* Lock scrolling while the cinematic intro is scrubbing */
  html.intro-active, html.intro-active body {
    height: 100dvh;
    overflow: hidden;
  }
  #root {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .bg-video, .bg-image { object-position: 70% center; }
  /* Stronger, vertical scrim so text reads over the whole frame */
  .bg-tint {
    background: linear-gradient(180deg,
      rgba(4,6,10,0.80) 0%,
      rgba(4,6,10,0.50) 32%,
      rgba(4,6,10,0.74) 100%);
  }
  .bg-video.dimmed, .bg-image.dimmed { opacity: 0.20; }

  .stage {
    height: auto;
    min-height: 100dvh;
    transform: none !important;
  }
  .chrome {
    position: relative;
    inset: auto;
    display: block;
    height: auto;
    min-height: 100dvh;
    padding: 0 0 16px;
  }

  /* --- Top bar: sticky so the menu stays reachable while scrolling --- */
  .top-row {
    position: sticky;
    top: 0;
    z-index: 50;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    background: linear-gradient(180deg, rgba(4,6,10,0.92) 0%, rgba(4,6,10,0.78) 70%, rgba(4,6,10,0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .brand-name { font-size: 20px; }
  /* The desktop token strip is replaced by the hamburger on mobile */
  .nav-tokens { display: none; }

  .nav-burger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 9px 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-burger-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
  }
  .nav-burger-lines {
    position: relative;
    width: 18px;
    height: 12px;
    flex: 0 0 auto;
  }
  .nav-burger-lines i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 300ms var(--ease-editorial), opacity 200ms var(--ease-editorial);
  }
  .nav-burger-lines i:nth-child(1) { top: 2px; }
  .nav-burger-lines i:nth-child(2) { bottom: 2px; }
  .nav-burger.open .nav-burger-lines i:nth-child(1) { top: 5px; transform: rotate(45deg); }
  .nav-burger.open .nav-burger-lines i:nth-child(2) { bottom: 5px; transform: rotate(-45deg); }

  /* --- Full-screen drawer (fixed so it covers the viewport, not the
     full scroll height of the page) --- */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    inset: 0;
    z-index: 80;
    padding: 92px 22px 28px;
    background: rgba(5, 7, 12, 0.96);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 320ms var(--ease-editorial),
                transform 360ms var(--ease-editorial),
                visibility 0s linear 360ms;
  }
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 320ms var(--ease-editorial),
                transform 360ms var(--ease-editorial),
                visibility 0s;
  }

  .mm-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.10);
  }
  .mm-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    padding: 22px 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  @media (prefers-reduced-motion: no-preference) {
    .mobile-menu.open .mm-item {
      animation: mmItemIn 460ms var(--ease-editorial) both;
    }
    .mobile-menu.open .mm-item:nth-child(1) { animation-delay: 80ms; }
    .mobile-menu.open .mm-item:nth-child(2) { animation-delay: 140ms; }
    .mobile-menu.open .mm-item:nth-child(3) { animation-delay: 200ms; }
    .mobile-menu.open .mm-item:nth-child(4) { animation-delay: 260ms; }
  }
  @keyframes mmItemIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .mm-num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    flex: 0 0 auto;
    width: 22px;
  }
  .mm-label {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 30px;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--text-secondary);
    flex: 1 1 auto;
    transition: color 220ms var(--ease-editorial);
  }
  .mm-arrow {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--text-faint);
    flex: 0 0 auto;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 220ms var(--ease-editorial), transform 220ms var(--ease-editorial), color 220ms var(--ease-editorial);
  }
  .mm-item.active .mm-num { color: var(--accent-cyan-bright); }
  .mm-item.active .mm-label { color: var(--text-primary); }
  .mm-item.active .mm-arrow { opacity: 1; transform: translateX(0); color: var(--accent-cyan-bright); }

  .mm-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 22px;
  }
  .mm-foot-link {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    padding: 4px 0;
    cursor: pointer;
  }
  .mm-foot-sep { color: var(--text-faint); }

  /* --- Content flows; the whole page scrolls --- */
  .canvas {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 6px 16px 22px;
    min-width: 0;
    align-content: start;
  }
  /* Grid/flex children must be allowed to shrink below their content's
     min-content, otherwise they blow the track out past the viewport. */
  .left, .right, .feature-panel, .service-list, .contact-form {
    min-width: 0;
    max-width: 100%;
  }
  .field input, .field textarea { width: 100%; min-width: 0; }
  /* Start page is short — center it vertically in the first screen */
  .canvas[data-state="start"] {
    align-content: center;
    min-height: calc(100dvh - 170px);
  }
  .left {
    max-width: 100%;
    padding: 0;
  }
  .eyebrow { font-size: 11px; letter-spacing: 0.18em; margin-bottom: 18px; }
  .headline {
    font-size: clamp(40px, 13vw, 60px) !important;
    line-height: 1.0;
  }
  .headline .row { white-space: normal; }
  .sub { font-size: 15.5px; margin-top: 20px; max-width: 100%; }
  .cta-row { margin-top: 26px; flex-wrap: wrap; gap: 14px; }
  .cta { padding: 14px 18px; }
  .meta-row { margin-top: 26px; gap: 20px; max-width: 100%; }
  .meta-cell strong { font-size: 21px; }

  .right { height: auto; justify-content: stretch; }
  .right .panel-scrim { inset: -16px 0; }
  .canvas[data-state="start"] .right { display: none; }
  .feature-panel, .service-list, .contact-form { max-width: 100%; }
  .service-list, .contact-form { padding: 22px 20px; }
  .feature-card { padding: 18px 18px; }
  .feature-card .fc-title { font-size: 24px; }
  .field input, .field textarea { font-size: 16px; }

  /* --- Chrome: hide desktop-only ornaments --- */
  .edge-line-h { display: none; }
  .pagination { display: none; }
  .vignette { display: none; }

  /* --- Ticker: slim, drop the center marquee --- */
  .ticker { font-size: 9px; padding: 10px 16px 0; gap: 12px; }
  .ticker-center { display: none; }
  .ticker-left span:nth-child(2) { display: none; }
  .ticker-right { gap: 14px; }

  /* --- Cinematic intro: fit the phone --- */
  .intro-video { object-position: 62% center; }
  /* Drop the exit-zoom on mobile — at scale>1 the fixed overlay bleeds a few
     px past the viewport and creates a stray horizontal scroll. The opacity
     dissolve alone is plenty here. */
  .intro-root { transform: none !important; }
  .intro-textblock { left: 6vw; width: 86vw; max-width: 86vw; min-height: 160px; }
  .intro-eyebrow { font-size: 11px; letter-spacing: 0.2em; margin-bottom: 16px; }
  .intro-headline {
    font-size: clamp(30px, 8vw, 50px);
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .intro-skip { top: 16px; right: 16px; }
  .intro-rail { right: 12px; height: 120px; }
  .intro-downhint { bottom: 28px; }
  .intro-scrollcue { bottom: 28px; font-size: 10px; }
  .intro-leftscrim {
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.7) 100%);
  }

  /* Legal modal goes near full-screen */
  .legal-overlay { padding: 0; }
  .legal-modal {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .legal-body { padding: 22px 20px 28px; }
  .legal-address strong { font-size: 20px; }
}

/* ---------- Small phones (≤ 400px) ---------- */
@media (max-width: 400px) {
  .chrome { padding: 16px 14px 14px; }
  .headline { font-size: clamp(34px, 13vw, 48px) !important; }
  .meta-row { gap: 16px; }
  .meta-cell { font-size: 10px; }
  .nav-token { padding: 10px 12px; }
  .ticker-right span:last-child { display: none; }
}

/* ---------- Short landscape (phones held sideways) ---------- */
@media (max-height: 520px) and (max-width: 1024px) {
  .chrome { min-height: auto; }
}

/* ===================== Preloader ===================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(34,211,238,0.06), transparent 60%),
    var(--bg-black, #04060A);
  opacity: 1;
  transition: opacity 740ms var(--ease-editorial, cubic-bezier(.22,1,.36,1));
  will-change: opacity;
}
html.loader-done .loader {
  opacity: 0;
  pointer-events: none;
}

.loader-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(320px, 72vw);
}

.loader-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: relative;
  background:
    conic-gradient(from 220deg,
      #67E8F9 0%, #22D3EE 18%, #C084FC 38%,
      #F472B6 55%, #FBBF24 72%, #67E8F9 100%);
  box-shadow: 0 0 28px rgba(34,211,238,0.55), 0 0 0 1px rgba(255,255,255,0.4) inset;
  animation: loaderSpin 2.4s linear infinite;
}
.loader-core {
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: #04060A;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset;
}
.loader-core::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(103,232,249,0.9);
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }

.loader-brand {
  margin-top: 22px;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--text-primary, #F0F4F8);
}
.loader-brand em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-cyan-bright, #67E8F9);
}

.loader-bar {
  margin-top: 26px;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.10);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan, #22D3EE), var(--accent-cyan-bright, #67E8F9));
  box-shadow: 0 0 10px rgba(34,211,238,0.6);
  border-radius: 2px;
  transition: width 180ms var(--ease-editorial, cubic-bezier(.22,1,.36,1));
}

.loader-meta {
  margin-top: 12px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.loader-status { color: var(--text-muted, #8b95a3); }
.loader-pct {
  color: var(--accent-cyan-bright, #67E8F9);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .loader-mark { animation: none; }
}
