/* ==========================================================================
   Congress of Independent Unions — v5 "Orano" dark rebuild
   Navy #081120 · crimson #ef2a48/#d40924 · off-white — thin spaced uppercase display
   Display: Rajdhani (Blender Pro stand-in) · Body: Nunito Sans · HUD: DM Mono
   ========================================================================== */

:root {
  /* original ciu1958.org palette: navy #132946 · crimson #d40924 · off-white #f8f8f7 */
  --ink: #081120;
  --ink-2: #0b1830;
  --ink-3: #10233f;
  --line: rgba(203, 220, 245, 0.11);
  --line-strong: rgba(203, 220, 245, 0.22);
  --text: #f4f6fa;
  --text-dim: #9dabc2;
  --text-faint: #66738c;
  --accent: #ef2a48;
  --accent-deep: #d40924;
  --accent-dim: rgba(239, 42, 72, 0.65);
  --accent-faint: rgba(239, 42, 72, 0.3);
  --ease: cubic-bezier(0.75, 0, 0.25, 1);
  --font-display: "Rajdhani", "Avenir Next Condensed", sans-serif;
  --font-body: "Nunito Sans", "Helvetica Neue", sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --pad-x: clamp(24px, 6vw, 96px);
}

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

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

::selection { background: var(--accent-deep); color: #fff; }

/* film grain */
.grain {
  position: fixed;
  inset: -50px;
  z-index: 80;
  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.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  background-size: 240px 240px;
}

/* scroll progress */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  background: transparent;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(239, 42, 72, 0.55);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 22px var(--pad-x);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(8, 17, 32, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 17.5px);
  letter-spacing: 0.24em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--text);
  max-width: 340px;
  text-wrap: balance; /* clean "Congress of / Independent Unions" break */
}

.nav__links {
  display: flex;
  gap: clamp(18px, 2.6vw, 38px);
  margin-left: auto;
}
.nav__links a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.3s;
}
.nav__links a i {
  font-style: normal;
  font-size: 9px;
  color: var(--accent-dim);
  margin-right: 7px;
  vertical-align: 2px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav__call {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-faint);
  padding: 9px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.nav__call:hover { border-color: var(--accent); background: rgba(239, 42, 72, 0.08); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  background: rgba(8, 17, 32, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 var(--pad-x);
  width: 100%;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 34px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav a i {
  font-style: normal;
  font-size: 11px;
  color: var(--accent);
  margin-right: 16px;
  vertical-align: 8px;
}
.mobile-menu__call { font-size: 13px !important; color: var(--accent) !important; letter-spacing: 0.22em !important; border-bottom: 0 !important; padding-top: 26px !important; }

/* ==========================================================================
   SECTION RAIL (right-edge pagination, Orano style)
   ========================================================================== */
.rail {
  position: fixed;
  right: clamp(14px, 2.4vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.rail a i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease), color 0.3s;
}
.rail a span {
  display: block;
  width: 18px; height: 1px;
  background: var(--line-strong);
  transition: width 0.35s var(--ease), background 0.35s;
}
.rail a:hover i { opacity: 1; transform: translateX(0); }
.rail a.is-active i { opacity: 1; transform: translateX(0); color: var(--accent); }
.rail a.is-active span { width: 40px; background: var(--accent); box-shadow: 0 0 8px rgba(239, 42, 72, 0.5); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 30% 88%, rgba(19, 41, 70, 0.55), transparent 65%),
    radial-gradient(900px 480px at 78% 20%, rgba(11, 24, 48, 0.7), transparent 70%),
    var(--ink);
}

.hero__layer { position: absolute; will-change: transform; }
.hero__blueprint { inset: 0; width: 100%; height: 100%; }
.hero__infra {
  left: 0; right: 0; bottom: 8vh;
  width: 100%;
  height: min(46vh, 420px);
}
.hero__net { left: 0; right: 0; bottom: 8vh; width: 100%; height: 100%; }

.svg-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: #aeb6c4;
  opacity: 0.75;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(262deg, rgba(8, 17, 32, 0.92) 8%, rgba(8, 17, 32, 0.55) 34%, rgba(8, 17, 32, 0) 58%),
    linear-gradient(180deg, rgba(8, 17, 32, 0.85) 0%, rgba(8, 17, 32, 0) 22%);
}

/* --- right text column, like the reference hero --- */
.hero__content {
  position: absolute;
  z-index: 5;
  right: clamp(48px, 8vw, 130px);
  top: 44%;
  transform: translateY(-55%);
  width: min(600px, 46vw);
}

/* with the big headline removed, the eyebrow is the hero's lead line */
.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.8vw, 23px);
  letter-spacing: 0.38em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 4.6vw, 74px);
  line-height: 1.06;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 30px;
}
.hero__line { position: relative; display: block; white-space: nowrap; }

/* per-letter stagger (spans injected by JS) */
.hero__line .lt {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.32em);
  filter: blur(7px);
  transition:
    opacity 0.7s var(--ease) var(--dl, 0s),
    transform 0.8s var(--ease) var(--dl, 0s),
    filter 0.8s var(--ease) var(--dl, 0s);
}
.hero--in .hero__line .lt { opacity: 1; transform: translateY(0); filter: blur(0); }

/* glitch pass (class toggled by JS every few seconds) */
.hero__line::before,
.hero__line::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}
.is-glitching .hero__line::before {
  display: block;
  color: var(--accent);
  opacity: 0.75;
  animation: glitch-a 0.36s steps(2, end) both;
}
.is-glitching .hero__line::after {
  display: block;
  color: #7db9ff;
  opacity: 0.55;
  animation: glitch-b 0.36s steps(2, end) both;
}
@keyframes glitch-a {
  0%   { transform: translate(3px, 0);  clip-path: inset(8% 0 76% 0); }
  34%  { transform: translate(-4px, 0); clip-path: inset(52% 0 30% 0); }
  66%  { transform: translate(2px, 0);  clip-path: inset(78% 0 4% 0); }
  100% { transform: translate(0, 0);    clip-path: inset(40% 0 48% 0); }
}
@keyframes glitch-b {
  0%   { transform: translate(-3px, 0); clip-path: inset(64% 0 22% 0); }
  34%  { transform: translate(3px, 0);  clip-path: inset(10% 0 72% 0); }
  66%  { transform: translate(-2px, 0); clip-path: inset(36% 0 52% 0); }
  100% { transform: translate(0, 0);    clip-path: inset(82% 0 6% 0); }
}

.hero__sub {
  font-weight: 300;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 2.05;
  color: #c3cddf;
  margin-bottom: 42px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* load-in entrance for eyebrow / sub / actions */
.enter {
  opacity: 0;
  animation: enter-up 0.9s var(--ease) var(--d, 0s) forwards;
}
@keyframes enter-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__foot {
  position: absolute;
  z-index: 5;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-faint);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; color: var(--text-dim); }
.hero__scroll-line {
  display: inline-block;
  width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: scroll-slide 2.2s var(--ease) infinite;
}
@keyframes scroll-slide {
  0% { transform: translateX(0); opacity: 1; }
  60% { transform: translateX(26px); opacity: 0.2; }
  100% { transform: translateX(0); opacity: 1; }
}

/* --- hero SVG animations --- */
.train { animation: train-run 38s linear infinite; }
@keyframes train-run {
  from { transform: translateX(-920px); }
  to   { transform: translateX(1720px); }
}

.truck { will-change: transform; }
.truck-a { animation: truck-east 21s linear infinite; }
.truck-b { animation: truck-east 27s linear infinite; animation-delay: -9s; }
.truck-c { animation: truck-west 24s linear infinite; animation-delay: -5s; }
.truck-d { animation: truck-west 31s linear infinite; animation-delay: -15s; }
@keyframes truck-east {
  from { transform: translateX(-150px); }
  to   { transform: translateX(1720px); }
}
@keyframes truck-west {
  from { transform: translateX(1720px); }
  to   { transform: translateX(-170px); }
}

/* hoist: cables stretch from the trolley while the load descends, in sync */
.crane-cable {
  transform-box: fill-box;
  transform-origin: top center;
  animation: hoist-cable 9s var(--ease) infinite;
}
.crane-load { animation: hoist-load 9s var(--ease) infinite; }
@keyframes hoist-cable {
  0%, 12%  { transform: scaleY(0.42); }
  42%, 62% { transform: scaleY(1); }
  92%, 100% { transform: scaleY(0.42); }
}
@keyframes hoist-load {
  0%, 12%  { transform: translateY(-48.7px); }
  42%, 62% { transform: translateY(0); }
  92%, 100% { transform: translateY(-48.7px); }
}

.crane-glow { filter: drop-shadow(0 0 6px rgba(239, 42, 72, 0.45)); }

.beacon-lamp { animation: beacon 2.4s ease-in-out infinite; }
.beacon-lamp--2 { animation-delay: 1.2s; }
@keyframes beacon { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }

.signal-lamp { animation: signal 1.6s steps(1) infinite; }
.signal-lamp--2 { animation-delay: 0.8s; }
@keyframes signal { 0%, 100% { opacity: 1; } 50% { opacity: 0.12; } }

.lamppulse { animation: lamp-pulse 3.4s ease-in-out infinite; }
@keyframes lamp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.dockglow { animation: dock-glow 4.2s ease-in-out infinite; }
.dockglow--2 { animation-delay: 1.3s; }
.dockglow--3 { animation-delay: 2.6s; }
@keyframes dock-glow { 0%, 100% { opacity: 0.08; } 50% { opacity: 0.3; } }

.flicker { animation: flicker 11s steps(1) infinite; }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  63% { opacity: 1; } 63.6% { opacity: 0.55; } 64.2% { opacity: 1; }
  87% { opacity: 1; } 87.4% { opacity: 0.6; } 88% { opacity: 1; }
}

.node-pulse,
.kp-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 2.6s var(--ease) infinite;
}
.node-pulse--2 { animation-delay: 1.3s; }
@keyframes node-pulse {
  0% { transform: scale(0.3); opacity: 0.9; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 15px 26px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--solid {
  background: var(--accent-deep);
  color: #fff;
}
.btn--solid:hover {
  background: var(--accent);
  box-shadow: 0 0 26px rgba(239, 42, 72, 0.45);
}

.btn--ghost {
  border: 1px solid rgba(238, 241, 247, 0.22);
  color: var(--text);
}
.btn--ghost::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease);
}
.btn--ghost:hover {
  border-color: var(--accent-faint);
  color: var(--accent);
}
.btn--ghost:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.btn--lg { font-size: 15px; padding: 19px 38px; }

/* ==========================================================================
   HUD corner brackets
   ========================================================================== */
.corners {
  --ck: var(--accent);
  background-image:
    linear-gradient(var(--ck), var(--ck)), linear-gradient(var(--ck), var(--ck)),
    linear-gradient(var(--ck), var(--ck)), linear-gradient(var(--ck), var(--ck)),
    linear-gradient(var(--ck), var(--ck)), linear-gradient(var(--ck), var(--ck)),
    linear-gradient(var(--ck), var(--ck)), linear-gradient(var(--ck), var(--ck));
  background-repeat: no-repeat;
  background-position:
    left 0 top 0, left 0 top 0,
    right 0 top 0, right 0 top 0,
    left 0 bottom 0, left 0 bottom 0,
    right 0 bottom 0, right 0 bottom 0;
  background-size:
    14px 1.5px, 1.5px 14px,
    14px 1.5px, 1.5px 14px,
    14px 1.5px, 1.5px 14px,
    14px 1.5px, 1.5px 14px;
}

/* ==========================================================================
   REVEALS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease) var(--d, 0s),
    transform 0.8s var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
.section { padding: clamp(90px, 11vw, 150px) var(--pad-x); }

.section__head { margin-bottom: clamp(44px, 6vw, 72px); }
.section__head--center { text-align: center; }

.section__index {
  display: inline-block;
  font-size: 10.5px;
  color: var(--accent-dim);
  margin-bottom: 20px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text);
}
.section__title em { font-style: normal; color: var(--accent); }

.section__sub {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 15.5px;
  max-width: 560px;
}
.section__head--center .section__sub { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.stat__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about__text p { margin-bottom: 24px; color: var(--text-dim); font-size: 16.5px; }
.about__text p strong { color: var(--text); font-weight: 600; }
.about__text .btn { margin-top: 10px; }

.about__frame {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  --ck: rgba(239, 42, 72, 0.55);
}
.about__frame img {
  width: 100%;
  filter: grayscale(1) brightness(0.88) contrast(1.06);
  opacity: 0.92;
  transition: filter 0.6s var(--ease), opacity 0.6s;
}
.about__visual:hover .about__frame img { filter: grayscale(0.25) brightness(0.96) contrast(1.02); opacity: 1; }
.about__visual figcaption {
  margin-top: 14px;
  font-size: 10px;
  color: var(--text-faint);
}

/* ==========================================================================
   WHY — pillars
   ========================================================================== */
.why { position: relative; background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why__net {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 200px;
  pointer-events: none;
  opacity: 0.8;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pillar {
  position: relative;
  padding: 34px 26px 38px;
  background: var(--ink);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}
.pillar:hover { transform: translateY(-5px); border-color: rgba(239, 42, 72, 0.3); background: var(--ink-3); }
.pillar:hover::before { transform: scaleX(1); }

.pillar__num {
  position: absolute;
  top: 14px; right: 18px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 52px;
  line-height: 1;
  color: rgba(238, 241, 247, 0.07);
  transition: color 0.4s;
}
.pillar:hover .pillar__num { color: rgba(239, 42, 72, 0.2); }

.pillar__icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 22px; }
.pillar__icon svg { width: 100%; height: 100%; }

.pillar h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pillar p { font-size: 14.5px; color: var(--text-dim); }

/* ==========================================================================
   INDUSTRIES — marquee
   ========================================================================== */
.industries { padding: clamp(90px, 11vw, 150px) 0; overflow: hidden; }
.industries .section__head { padding: 0 var(--pad-x); }

.marquee {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  white-space: nowrap;
  overflow: hidden;
}
.marquee:last-child { border-bottom: 1px solid var(--line); }

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee--reverse .marquee__track { animation: marquee-rev 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}
.marquee--reverse .marquee__track span { font-size: clamp(14px, 1.6vw, 18px); color: var(--text-faint); }
.marquee__track i { font-style: normal; color: var(--accent); font-size: 12px; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ==========================================================================
   HOW WE WORK
   ========================================================================== */
.how { background: var(--ink-2); border-top: 1px solid var(--line); }

.how__list { list-style: none; max-width: 1060px; }
.how__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  padding: 38px 18px 40px;
  border-top: 1px solid var(--line);
  transition: background 0.4s, padding-left 0.4s var(--ease);
  position: relative;
}
.how__item::before {
  content: "";
  position: absolute;
  left: 0; top: -1px; bottom: -1px;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.45s var(--ease);
}
.how__item:hover { background: rgba(239, 42, 72, 0.025); padding-left: 30px; }
.how__item:hover::before { transform: scaleY(1); }
.how__item:last-child { border-bottom: 1px solid var(--line); }

.how__num { font-size: 13px; color: var(--accent); padding-top: 5px; }
.how__item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.how__item p { color: var(--text-dim); font-size: 15px; max-width: 760px; }

/* ==========================================================================
   QUOTE
   ========================================================================== */
.quote {
  position: relative;
  padding: clamp(90px, 11vw, 140px) var(--pad-x);
  background:
    linear-gradient(rgba(8, 17, 32, 0.93), rgba(8, 17, 32, 0.96)),
    url("../assets/flag-bg.webp") center / cover no-repeat;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote__inner { max-width: 880px; margin: 0 auto; text-align: center; position: relative; }
.quote__mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 110px;
  line-height: 0.4;
  color: var(--accent);
  margin-bottom: 34px;
}
.quote blockquote {
  font-weight: 200;
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 30px;
}
.quote cite { font-style: normal; font-size: 12px; color: var(--accent); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 54px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px 26px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  --ck: transparent;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.contact-card:hover { transform: translateY(-5px); border-color: rgba(239, 42, 72, 0.3); --ck: var(--accent); }
.contact-card__label { font-size: 10px; color: var(--accent-dim); }
.contact-card__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--text);
}
.contact-card__hint { font-size: 9.5px; color: var(--text-faint); margin-top: auto; }

.contact__cta { text-align: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 64px var(--pad-x) 30px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer__brand { display: flex; gap: 18px; align-items: flex-start; }
.footer__logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer__brand p { color: var(--text-dim); font-size: 14px; max-width: 340px; }

.footer__links, .footer__reach { display: flex; flex-direction: column; gap: 12px; }
.footer__links .mono, .footer__reach .mono { font-size: 10px; color: var(--accent-dim); margin-bottom: 6px; }
.footer__links a, .footer__reach a, .footer__reach span {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.3s;
  width: fit-content;
}
.footer__links a:hover, .footer__reach a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 9.5px;
  color: var(--text-faint);
}

/* ==========================================================================
   CUSTOM CURSOR (fine pointers only; enabled via html.has-cursor from JS)
   ========================================================================== */
.cursor { display: none; }

@media (pointer: fine) {
  html.has-cursor body,
  html.has-cursor a,
  html.has-cursor button { cursor: none; }

  html.has-cursor .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }
  html.has-cursor .cursor.is-active { opacity: 1; }

  .cursor__dot {
    position: fixed;
    top: 0; left: 0;
    width: 5px; height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    background: var(--accent);
    will-change: transform;
  }
  .cursor__ring {
    position: fixed;
    top: 0; left: 0;
    width: 38px; height: 38px;
    margin: -19px 0 0 -19px;
    border-radius: 50%;
    border: 1.5px solid rgba(238, 241, 247, 0.4);
    will-change: transform;
    /* transform is driven per-frame from JS (position + hover scale) —
       transitioning it here makes the ring lag a full beat behind */
    transition: border-color 0.25s;
  }
  .cursor.is-hover .cursor__ring {
    border-color: var(--accent);
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1439px) {
  /* the two-line wordmark needs the room — drop the link index numbers */
  .nav__links a i { display: none; }
  .nav__links { gap: clamp(16px, 2.2vw, 30px); }
}

@media (max-width: 1180px) {
  .rail { display: none; }
  .nav__call { display: none; }
}

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }

  .hero { min-height: 620px; }
  .hero__content {
    right: auto;
    left: var(--pad-x);
    top: 40%;
    width: min(560px, calc(100vw - 2 * var(--pad-x)));
  }
  .hero__title { font-size: clamp(34px, 8.4vw, 54px); }
  .hero__infra { height: 34vh; opacity: 0.85; bottom: 6vh; }
  .hero__net { bottom: 6vh; }
  .hero__vignette {
    background:
      linear-gradient(180deg, rgba(8, 17, 32, 0.9) 0%, rgba(8, 17, 32, 0.55) 45%, rgba(8, 17, 32, 0.1) 75%);
  }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }

  .about__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 620px) {
  .hero__sub br { display: none; }
  .hero__foot span:last-child { display: none; }
  .hero__net { opacity: 0.45; }
  .svg-label { display: none; }
  .why__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .how__item { grid-template-columns: 1fr; gap: 8px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 18px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .train, .truck, .crane-cable, .crane-load,
  .beacon-lamp, .signal-lamp, .lamppulse, .dockglow, .flicker,
  .node-pulse, .kp-pulse, .marquee__track, .hero__scroll-line {
    animation: none !important;
  }
  .enter { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__line .lt { opacity: 1; transform: none; filter: none; transition: none; }
  .hero__line::before, .hero__line::after { display: none !important; }
}
