/* ═══════════════════════════════════════════
   HARMET — Institutional Landing
   Mobile-first · Light architectural palette
   ═══════════════════════════════════════════ */

:root {
  --c-base: #f2f2f2;
  --c-crimson: #a8112c;
  --c-anthracite: #1e2328;
  --c-steel: #565c66;
  --c-chrome: #a5afba;
  --c-oak: #dbd7cb;

  --rgb-base: 242, 242, 242;
  --rgb-crimson: 168, 17, 44;
  --rgb-anthracite: 30, 35, 40;
  --rgb-steel: 86, 92, 102;
  --rgb-chrome: 165, 175, 186;

  --ff-display: "Orbitron", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinema: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-reveal: 0.58s;
  --reveal-offset: 14px;
  --scene-progress: 0;
  --scene-shift: 0;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-anthracite);
  font: 400 16px/1.55 var(--ff-body);
  -webkit-font-smoothing: antialiased;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 10px;
  padding: 8px 12px; background: var(--c-base);
  font: 600 11px/1 var(--ff-body); text-transform: uppercase;
  letter-spacing: 0.12em; z-index: 9999;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}


/* ═══ SCROLL PROGRESS ═══ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; background: var(--c-crimson);
  transform-origin: left; transform: scaleX(0);
  z-index: 100; will-change: transform;
}


/* ═══ REVEAL ═══ */
[data-reveal] {
  opacity: 0; transform: translateY(var(--reveal-offset));
  transition: opacity var(--dur-reveal) var(--ease-expo),
              transform var(--dur-reveal) var(--ease-expo);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }


/* ═══ SURFACES ═══ */
.section--light   { background: var(--c-base); color: var(--c-anthracite); }
.section--dark    { background: var(--c-anthracite); color: var(--c-base); }
.section--oak     { background: var(--c-oak); color: var(--c-anthracite); }
.section--crimson { background: var(--c-crimson); color: var(--c-base); }


/* ═══ TYPOGRAPHY ═══ */
.section-title {
  margin: 0 0 48px 0;
  font: 600 clamp(28px, 5vw, 44px)/1.1 var(--ff-display);
  letter-spacing: -0.01em;
}
.section-title--light { color: var(--c-base); }

.h2-light {
  margin: 0;
  font: 600 clamp(28px, 5vw, 44px)/1.1 var(--ff-display);
  color: var(--c-base);
}

.tech-label {
  font: 700 11px/1 var(--ff-body);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(var(--rgb-chrome), 0.8);
}


/* ═══ HEADER ═══ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-base);
  border-bottom: 1px solid rgba(var(--rgb-anthracite), 0.1);
  transition: border-color 220ms ease, background 220ms ease;
}
.site-header[data-scrolled] {
  border-bottom-color: rgba(var(--rgb-anthracite), 0.16);
}
.header-inner {
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-mark {
  height: 28px; width: auto;
}
.mobile-nav-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(var(--rgb-anthracite), 0.16);
  background: transparent;
  padding: 8px 7px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--c-anthracite);
}
.header-nav { display: none; }
.header-cta { display: none; }
.mobile-nav-panel {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid rgba(var(--rgb-anthracite), 0.08);
  background: var(--c-base);
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 260ms var(--ease-expo), opacity 200ms ease, transform 200ms ease;
}
.mobile-nav-panel.is-open {
  max-height: 280px;
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font: 600 12px/1.1 var(--ff-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-anthracite);
  border-bottom: 1px solid rgba(var(--rgb-anthracite), 0.06);
}
.mobile-nav-link--cta { color: var(--c-crimson); }

.nav-link {
  font: 600 11px/1 var(--ff-display);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-anthracite);
  padding: 10px 8px; transition: color 200ms;
}
.nav-link:hover { color: var(--c-crimson); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  font: 700 11px/1 var(--ff-display);
  letter-spacing: 0.14em; text-transform: uppercase;
  border: none; cursor: pointer; transition: transform 200ms;
}
.btn:focus-visible { outline: 2px solid rgba(var(--rgb-crimson), 0.6); outline-offset: 2px; }
.btn-primary { background: var(--c-crimson); color: var(--c-base); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-inverted { background: var(--c-base); color: var(--c-crimson); }
.btn-inverted:hover { transform: translateY(-1px); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 12px !important; font-family: var(--ff-display) !important; }

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */

.hero { background: var(--c-base); position: relative; }

.hero-cinema {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--c-anthracite);
  border-top: 1px solid var(--c-crimson);
  border-bottom: 1px solid var(--c-crimson);
  transform: translate3d(0, calc(var(--scene-shift) * -10px), 0);
  will-change: transform;
}

/* Mobile: preserve full composition, no aggressive crop */
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(calc(1 + (var(--scene-progress) * 0.018)));
  transform-origin: center;
  transition: transform 120ms linear;
  will-change: transform;
}
.hero-video--desktop { display: none; }
.hero-video--mobile  {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  background: var(--c-anthracite);
}

.hero-video-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(30,35,40,0.10) 0%,
    transparent 30%,
    transparent 70%,
    rgba(30,35,40,0.36) 100%
  );
  opacity: calc(0.76 + (var(--scene-progress) * 0.18));
  transition: opacity 180ms linear;
}

.video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;

  width: 44px;
  height: 44px;

  border-radius: 8px;

  border: 1px solid rgba(168,17,44,0.30);

  background: rgba(242,242,242,0.08);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 4px 24px rgba(0,0,0,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.08);

  color: var(--c-crimson);

  display: grid;
  place-items: center;

  transition:
    opacity 200ms ease,
    transform 200ms ease,
    background 200ms ease;

  cursor: pointer;
}

.video-play-overlay:hover {
  transform: translate(-50%, calc(-50% - 2px));
  background: rgba(242,242,242,0.24);
}

.video-play-overlay[data-hidden="true"] { opacity: 0; pointer-events: none; }

.vpo-icon {
  width: 22px;
  height: 22px;
  margin-left: 1px;
}

/* Editorial: LIGHT background */
.hero-mobile-h1 {
  background: var(--c-base);
  padding: 34px 0 14px;
}
.hero-mobile-h1 .hero-h1 {
  margin: 0;
  color: var(--c-anthracite);
  white-space: nowrap;
  max-width: none;
  font-size: clamp(16px, 4.7vw, 23px);
  line-height: 1;
}
.hero-editorial .hero-h1 {
  display: none;
}
.hero-editorial {
  background: var(--c-base);
  color: var(--c-anthracite);
  padding: 20px 0 48px;
  position: relative;
}

.hero-editorial::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--rgb-anthracite), 0.08), rgba(var(--rgb-base), 0));
}

.hero-h1 {
  font: 700 clamp(32px, 8vw, 80px)/1.0 var(--ff-display);
  letter-spacing: -0.02em;
}

.hero-descriptor {
  display: grid; gap: 16px;
  max-width: 720px;
}

.hero-h2 {
  margin: 0;
  font: 600 clamp(16px, 3.5vw, 22px)/1.3 var(--ff-display);
  color: var(--c-steel);
}

.hero-body {
  margin: 0;
  font-size: 15px; line-height: 1.55;
  color: var(--c-steel);
}

.hero-meta {
  margin: 0;
  padding-top: 16px;
  font: 500 13px/1.4 var(--ff-body);
  color: var(--c-steel);
}

.hero-cta {
  margin-top: 42px;
  text-align: center;
}

.hero-cta .btn {
  width: min(320px, 100%);
}


/* ════════════════════════════════════════
   HOW IT WORKS — PIPELINE INFOGRAPHIC
   ════════════════════════════════════════ */

.process {
  padding: 72px 0;
  position: relative;
}

/* Pipeline - Central Rail Industrial Timeline */
.pipeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 60px 0;
  max-width: 1100px;
  margin: 48px auto 20px;
  z-index: 1;
}

@media (min-width: 768px) {
  .pipeline {
    gap: 90px;
    padding: 80px 0;
  }
}

.pipeline-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(var(--rgb-chrome), 0.15);
  z-index: 1;
}

.pipeline-rail-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--c-crimson) 0%, rgba(var(--rgb-crimson), 0.6) 100%);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

.pipeline-node {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 2;
}

/* Odd: card LEFT, index RIGHT */
.pipeline-node:nth-of-type(odd) { justify-content: flex-start; }
/* Even: card RIGHT, index LEFT (HTML order handles it) */
.pipeline-node:nth-of-type(even) { justify-content: flex-end; }

/* The dot on the rail */
.pipeline-dot {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--c-base);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(var(--rgb-chrome), 0.4),
    0 0 0 4px var(--c-base),
    0 2px 4px rgba(0,0,0,0.05);
  z-index: 3;
}

.pipeline-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--c-crimson);
  transform: scale(0);
  transition: transform 700ms var(--ease-cinema);
}

.pipeline-node.is-active { z-index: 4; }
.pipeline-node.is-active .pipeline-dot {
  box-shadow:
    inset 0 0 0 1px var(--c-crimson),
    0 0 0 4px var(--c-base),
    0 0 18px rgba(var(--rgb-crimson), 0.35);
}
.pipeline-node.is-active .pipeline-dot::after {
  transform: scale(1);
}

/* Card layout & typography */
.pipeline-card {
  width: calc(50% - 24px);
  padding: 24px 20px;
  background: rgba(var(--rgb-chrome), 0.02);
  border: 1px solid rgba(var(--rgb-chrome), 0.06);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  
  opacity: 0.35;
  transform: scale(0.96) translateY(8px);
  transition: all 900ms var(--ease-cinema);
}

@media (max-width: 767px) {
  .pipeline-card {
    width: calc(50% - 14px);
    padding: 20px 14px;
  }
}

.pipeline-node:nth-of-type(odd) .pipeline-card {
  text-align: right;
  align-items: flex-end;
}

.pipeline-node:nth-of-type(even) .pipeline-card {
  text-align: left;
  align-items: flex-start;
}

.pipeline-node.is-active .pipeline-card {
  opacity: 1;
  transform: scale(1.02) translateY(0);
  background: var(--c-base);
  border-color: rgba(var(--rgb-crimson), 0.25);
  box-shadow: 0 16px 32px rgba(0,0,0,0.04);
}

/* Index — large accent number, opposite side */
.pipeline-index {
  font: 700 clamp(36px, 8vw, 52px)/1 var(--ff-display);
  color: var(--c-crimson);
  letter-spacing: 0.06em;
  opacity: 0.2;
  transition: opacity 700ms var(--ease-cinema);
  position: absolute;
}

.pipeline-node.is-active .pipeline-index {
  opacity: 1;
}

/* Odd nodes: card LEFT → index on RIGHT */
.pipeline-node:nth-of-type(odd) .pipeline-index {
  left: 50%;
  width: 50%;
  text-align: center;
  padding: 0;
}

/* Even nodes: card RIGHT → index on LEFT */
.pipeline-node:nth-of-type(even) .pipeline-index {
  left: 0;
  width: 50%;
  text-align: center;
  padding: 0;
}

.pipeline-title {
  margin: 0;
  max-width: none;
  font: 600 clamp(15px, 3.2vw, 22px)/1.2 var(--ff-display);
  letter-spacing: -0.01em;
  color: #1E2328;
}

.pipeline-desc {
  margin: 8px 0 0 0;
  max-width: none;
  font: 400 clamp(12px, 2vw, 15px)/1.5 var(--ff-body);
  color: var(--c-steel);
}


/* ════════════════════════════════════════
   PROVEN EXECUTION
   ════════════════════════════════════════ */

.proof { padding: 64px 0; }

/* Full-width dominant photo */
.proof-dominant {
  width: 100%;
  position: relative;
  margin-bottom: 40px;
}
.proof-dominant img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Body: title + metrics inside container */
.proof-body {
  padding: 0;
}

.proof-list {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 12px;
  font: 500 15px/1.5 var(--ff-body);
  color: var(--c-anthracite);
}
.proof-list li { padding-left: 14px; position: relative; }
.proof-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 1px; background: var(--c-crimson);
}


/* ── Split Stat Row — anchored metrics ── */
.split-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.split-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 12px;
  padding: 32px 16px;
  border-bottom: 1px solid var(--c-oak);
  border-right: 1px solid var(--c-oak);
}

.split-stat:nth-child(even) {
  border-right: none;
}

.split-stat:nth-last-child(-n+2) {
  border-bottom: none;
}

.split-stat-value {
  margin: 0;
  font: 700 clamp(42px, 8vw, 56px)/1 var(--ff-display);
  color: var(--c-crimson);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.split-stat-context {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  min-height: 32px;
}

.split-stat-label {
  margin: 0;
  font: 600 clamp(10px, 2.5vw, 12px)/1.3 var(--ff-display);
  white-space: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1E2328;
  max-width: 18ch;
}

/* Scroll rail — full bleed, padding inside */
.proof-scroll-rail--full {
  margin-top: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 20px;
}
.proof-scroll-rail--full::-webkit-scrollbar { display: none; }
.proof-scroll-rail--full .proof-scroll-track {
  display: flex;
  gap: 12px;
  padding: 4px 0;
}
.proof-scroll-rail--full .proof-scroll-item {
  flex: 0 0 72%;
  scroll-snap-align: start;
  opacity: 0.55;
  transform: scale(0.97);
  transition: opacity 0.4s var(--ease-cinema), transform 0.4s var(--ease-cinema);
}
.proof-scroll-rail--full .proof-scroll-item.is-active {
  opacity: 1;
  transform: scale(1);
}
.proof-scroll-rail--full .proof-scroll-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* evidence tag stronger legibility */
.evidence-tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 16px 16px;
  background: linear-gradient(0deg, rgba(30,35,40,0.72) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}
.evidence-kicker {
  font: 700 12px/1 var(--ff-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.evidence-label {
  font: 400 13px/1.3 var(--ff-body);
  color: rgba(255,255,255,0.75);
}

/* ════════════════════════════════════════
   GLOBAL IMAGE TREATMENT & ANIMATIONS
   ════════════════════════════════════════ */

img {
  filter: contrast(0.96) saturate(0.92) brightness(0.98);
}

.img-reveal-wrapper {
  overflow: hidden;
  display: block;
}

.img-reveal-wrapper img {
  transition: transform 1.4s var(--ease-cinema);
  will-change: transform;
}

.img-reveal-wrapper:hover img {
  transform: scale(1.02);
}

.motion-mask {
  clip-path: inset(8% 0 8% 0);
  transition: clip-path 760ms var(--ease-cinema), opacity var(--dur-reveal) var(--ease-expo), transform var(--dur-reveal) var(--ease-expo);
}

.motion-mask.is-visible {
  clip-path: inset(0 0 0 0);
}

.motion-media img {
  transform: translate3d(0, calc(var(--scene-shift) * -8px), 0) scale(calc(1.01 + (var(--scene-progress) * 0.014)));
}

.motion-media:hover img {
  transform: translate3d(0, calc(var(--scene-shift) * -8px), 0) scale(calc(1.025 + (var(--scene-progress) * 0.014)));
}

.relative-container { position: relative; }

/* ════════════════════════════════════════
   GALLERY CAROUSEL
   ════════════════════════════════════════ */
.gallery-section {
  background: #1E2328;
  padding: 80px 0;
  overflow: hidden;
}

.gallery-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 45vw;
  min-height: 400px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 700ms var(--ease-cinema), transform 700ms var(--ease-cinema), filter 700ms var(--ease-cinema);
  transform: translateX(0) scale(0.92);
  filter: blur(4px);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide img {
  width: 70%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 28px 56px rgba(0,0,0,0.55);
}

.gallery-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
  z-index: 3;
}

.gallery-slide.is-prev {
  opacity: 0.25;
  transform: translateX(-22%) scale(0.96);
  filter: blur(2px);
  z-index: 2;
}

.gallery-slide.is-next {
  opacity: 0.25;
  transform: translateX(22%) scale(0.96);
  filter: blur(2px);
  z-index: 2;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 300ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-50%) scale(1.03);
}

.gallery-btn svg { width: 24px; height: 24px; }
.gallery-btn--prev { left: 24px; }
.gallery-btn--next { right: 24px; }

@media (max-width: 767px) {
  .gallery-section { padding: 40px 0; }
  .gallery-container { height: 65vw; min-height: 250px; }
  .gallery-slide img { width: 95%; height: auto; }
  .gallery-slide.is-prev { transform: translateX(-14%) scale(0.98); opacity: 0.2; filter: blur(1px); }
  .gallery-slide.is-next { transform: translateX(14%) scale(0.98); opacity: 0.2; filter: blur(1px); }
  .gallery-btn { width: 40px; height: 40px; }
  .gallery-btn--prev { left: 12px; }
  .gallery-btn--next { right: 12px; }
}


/* ════════════════════════════════════════
   WHY THIS MODEL WORKS — Scroll-Activated Line Reveal
   ════════════════════════════════════════ */

.why-section { padding: 80px 0; }

.why-composition { 
  display: grid; 
  gap: 40px; 
}

.why-points { 
  display: flex; 
  flex-direction: column; 
  gap: 0;
  position: relative;
}

.why-point {
  padding: 28px 0 28px 24px;
  border-bottom: 1px solid rgba(var(--rgb-chrome), 0.15);
  position: relative;
  opacity: 0.3;
  transition: opacity 600ms var(--ease-cinema);
}

.why-point:first-child {
  border-top: 1px solid rgba(var(--rgb-chrome), 0.15);
}

/* Crimson left accent bar */
.why-point-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c-crimson);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 600ms var(--ease-cinema);
}

/* Active state */
.why-point.is-active {
  opacity: 1;
}

.why-point.is-active .why-point-accent {
  transform: scaleY(1);
}

.why-point-title {
  margin: 0;
  font: 700 clamp(18px, 3.5vw, 22px)/1.2 var(--ff-display);
  color: #1E2328;
  transition: color 400ms var(--ease-cinema);
}

.why-point.is-active .why-point-title {
  color: var(--c-anthracite);
}

.why-point-desc {
  margin: 0;
  font-size: 15px; line-height: 1.55;
  color: var(--c-steel);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 600ms var(--ease-cinema),
              opacity 500ms var(--ease-cinema),
              margin 500ms var(--ease-cinema);
}

.why-point.is-active .why-point-desc {
  max-height: 80px;
  opacity: 1;
  margin-top: 12px;
}

/* ════════════════════════════════════════
   CTA
   ════════════════════════════════════════ */

.cta-section { 
  padding: 120px 0; 
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #A8112C 0%, #6B0A1C 100%);
}

.cta-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

.cta-container {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cta-block { 
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-headline {
  margin: 0 0 20px 0;
  font: 600 clamp(24px, 4.2vw, 36px)/1.15 var(--ff-display);
  letter-spacing: -0.01em;
  color: var(--c-base);
}

.cta-primary {
  margin-bottom: 24px;
  width: 100%;
}

.cta-support {
  margin: 32px 0 24px 0;
  font: 600 clamp(24px, 4.2vw, 36px)/1.15 var(--ff-display);
  letter-spacing: -0.01em;
  color: var(--c-base);
}

.cta-capture {
  width: min(760px, 100%);
  display: grid;
  gap: 8px;
}

.cta-capture input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(var(--rgb-base), 0.24);
  background: transparent;
  color: var(--c-base);
  font: 500 14px/1 var(--ff-body);
  padding: 0 14px;
  border-radius: 0;
  outline: none;
}

.cta-capture input::placeholder {
  color: rgba(var(--rgb-base), 0.72);
}

.cta-capture input:focus-visible {
  border-color: rgba(var(--rgb-base), 0.66);
}

.cta-capture .btn {
  width: 100%;
}

.cta-form-status {
  margin: 12px 0 0;
  font: 500 13px/1.4 var(--ff-body);
  min-height: 20px;
  transition: opacity 300ms ease;
}
.cta-form-status:empty { display: none; }
.cta-form-status.is-success { color: #a8e6a3; }
.cta-form-status.is-error { color: #ffc4c4; }
.cta-form-status.is-loading { color: rgba(255,255,255,0.7); }

.cta-secondary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}


/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */

.footer { padding: 80px 0 40px; }

.footer-inner { display: flex; flex-direction: column; gap: 48px; }

.footer-copy {
  text-align: center;
}

.footer-title {
  max-width: none;
}

.footer-subline {
  margin: 12px 0 0;
  font: 600 16px/1.35 var(--ff-display);
  color: rgba(var(--rgb-base), 0.92);
}

.footer-subtext {
  margin: 12px 0 0;
  font: 500 14px/1.5 var(--ff-body);
  color: rgba(var(--rgb-chrome), 0.9);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

/* ── Contact person card ── */
.footer-person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  padding-top: 4px;
}

.footer-person-name {
  margin: 0;
  font: 700 14px/1.2 var(--ff-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-base);
}

.footer-person-role {
  margin: 0 0 10px;
  font: 500 12px/1.2 var(--ff-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--rgb-chrome), 0.7);
}

.footer-person-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-person-link {
  font: 500 14px/1.3 var(--ff-body);
  color: rgba(var(--rgb-base), 0.82);
  transition: color 200ms ease;
}

.footer-person-link:hover { color: var(--c-base); }

.footer-person-geo {
  font: 600 10px/1 var(--ff-display);
  letter-spacing: 0.1em;
  color: rgba(var(--rgb-chrome), 0.55);
  margin-left: 4px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--rgb-chrome), 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--rgb-base), 0.92);
  background: rgba(var(--rgb-base), 0.03);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background 180ms ease;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.social-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--rgb-crimson), 0.55);
  color: var(--c-base);
  background: rgba(var(--rgb-crimson), 0.18);
}
.contact-link {
  font: 500 15px/1.2 var(--ff-body);
  color: var(--c-base);
  text-decoration: none;
  transition: color 200ms ease;
  width: max-content;
}
.contact-link:hover {
  color: var(--c-crimson);
}

.footer-bottom {
  margin-top: 32px; padding-top: 16px;
  border-top: 1px solid rgba(var(--rgb-chrome), 0.1);
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}

.footer-dev {
  text-align: center;
  margin-top: 12px;
  font: 500 10px/1 var(--ff-display);
  letter-spacing: 0.08em;
  color: rgba(var(--rgb-chrome), 0.3);
}

.footer-dev a {
  color: rgba(var(--rgb-chrome), 0.5);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-dev a:hover {
  color: rgba(var(--rgb-chrome), 0.8);
}

.legal-link {
  color: rgba(var(--rgb-base), 0.9);
}

.legal-link:hover {
  color: rgba(var(--rgb-base), 1);
}


/* ════════════════════════════════════════
   MOBILE HERO — Cinematic Single Screen (≤ 979px)
   ════════════════════════════════════════ */

@media (max-width: 979px) {
  /* Mobile header adjustments */
  .brand-mark { height: 42px; }

  /* Hero as unified cinematic screen */
  .hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  /* Mobile H1 - prominent, single line */
  .hero-mobile-h1 {
    flex-shrink: 0;
    padding: 32px 0 16px;
  }

  .hero-mobile-h1 .hero-h1 {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  /* Video container - adjusted height for button visibility */
  .hero-cinema {
    flex-shrink: 0;
    height: 40svh;
    min-height: 240px;
    max-height: 360px;
    border-top: 1px solid var(--c-crimson);
    border-bottom: 1px solid var(--c-crimson);
  }

  .hero-video--mobile {
    height: 100%;
    max-height: none;
    object-fit: cover;
  }

  /* Editorial - compositional spacing hierarchy */
  .hero-editorial {
    display: flex;
    flex-direction: column;
    padding: 18px 0 12px;
  }

  .hero-editorial .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Hide desktop H1 in editorial on mobile */
  .hero-editorial .hero-h1 {
    display: none;
  }

  /* Descriptor - hierarchical spacing */
  .hero-descriptor {
    display: flex;
    flex-direction: column;
  }

  .hero-h2 {
    font-size: clamp(21px, 5vw, 28px);
    line-height: 1.22;
    margin: 0 0 14px 0;
  }

  .hero-body {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 10px 0;
  }

  .hero-meta {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }

  /* CTA - connected to content, not floating */
  .hero-cta {
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
  }

  .hero-cta .btn {
    min-height: 52px;
    font-size: 12px;
    letter-spacing: 0.1em;
    padding: 16px 32px;
    white-space: nowrap;
  }

}

/* ════════════════════════════════════════
   DESKTOP (≥ 980px)
   ════════════════════════════════════════ */

@media (min-width: 980px) {
  .container { width: min(1280px, calc(100% - 80px)); }

  /* Header */
  .header-inner {
    height: 68px;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .header-nav { display: flex; gap: 20px; justify-content: center; }
  .header-cta { display: flex; justify-content: end; }
  .brand-mark { height: 40px; }
  .mobile-nav-toggle,
  .mobile-nav-panel { display: none; }

  /* Hero */
  .hero-mobile-h1 { display: none; }
  .hero-editorial .hero-h1 { display: block; }

  .hero-cinema { border: none; }

  .hero-video--mobile  { display: none; }
  .hero-video--desktop {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    background: var(--c-anthracite);
  }
  .hero-cta { display: none; text-align: left; }

  .hero-editorial { padding: 72px 0 120px; }
  .hero-h1 { margin-bottom: 48px; }
  .hero-descriptor {
    grid-template-columns: 1fr 1fr;
    gap: 40px; max-width: 960px;
  }

  /* Pipeline — horizontal industrial assembly line (desktop static) */
  .process {
    padding: 120px 0 100px;
    position: relative;
  }

  /* Desktop: static horizontal layout */
  .pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 56px;
    padding: 62px 0 0;
  }

  .pipeline-rail {
    left: 0;
    right: 0;
    top: 20px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: rgba(var(--rgb-chrome), 0.28);
    overflow: visible;
  }

  .pipeline-rail-fill {
    width: 100%;
    height: 100%;
    transform: scaleX(1);
    transform-origin: left;
    background: linear-gradient(90deg,
      var(--c-crimson) 0%,
      rgba(var(--rgb-crimson), 0.85) 70%,
      rgba(var(--rgb-crimson), 0.4) 100%
    );
    box-shadow: 0 0 12px rgba(var(--rgb-crimson), 0.24);
  }

  .pipeline-node {
    min-height: 180px;
    padding: 0 32px 0 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .pipeline-node:nth-of-type(odd),
  .pipeline-node:nth-of-type(even) {
    justify-content: flex-start;
  }

  /* Remove old connector line */
  .pipeline-node::before { display: none; }

  /* Square industrial nodes - all same state on desktop */
  .pipeline-dot {
    position: absolute;
    left: 0;
    top: -46px;
    width: 12px;
    height: 12px;
    border: none;
    background: var(--c-base);
    box-shadow:
      inset 0 0 0 1px rgba(var(--rgb-chrome), 0.5),
      0 0 0 2px var(--c-base),
      0 2px 0 0 var(--c-crimson);
  }

  .pipeline-dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--c-crimson);
    transform: scale(1);
  }

  /* Desktop card: full width, transparent */
  .pipeline-card {
    width: 100%;
    text-align: left !important;
    align-items: flex-start !important;
    border: none;
    background: transparent;
    padding: 0;
    opacity: 1;
    transform: none;
  }

  .pipeline-node.is-active .pipeline-card {
    transform: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  /* Index — above content on desktop */
  .pipeline-index {
    position: static;
    display: block;
    margin-bottom: 18px;
    font: 700 14px/1 var(--ff-display);
    letter-spacing: 0.22em;
    color: var(--c-crimson);
    text-transform: uppercase;
    opacity: 1;
    padding: 0;
    width: auto;
    text-align: left;
  }

  .pipeline-node.is-active .pipeline-index {
    opacity: 1;
  }

  .pipeline-node:nth-of-type(odd) .pipeline-index,
  .pipeline-node:nth-of-type(even) .pipeline-index {
    padding: 0;
    text-align: left;
    right: auto;
    left: auto;
    width: auto;
  }

  .pipeline-title {
    max-width: 220px;
    font: 600 clamp(20px, 2vw, 26px)/1.12 var(--ff-body);
    letter-spacing: -0.01em;
    color: var(--c-anthracite);
  }

  .pipeline-desc {
    max-width: 210px;
    margin: 8px 0 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--c-steel);
  }

  /* Proof */
  .proof { padding: 120px 0 100px; }
  .proof-dominant img {
    aspect-ratio: 21/9;
    max-height: 60vh;
  }
  .proof-body {
    display: block;
    padding: 0 0 60px;
  }

  /* Split stats — 3×2 grid with vertical dividers */
  .split-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .split-stat {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 16px;
    padding: 40px 32px;
    border-bottom: 1px solid var(--c-oak);
    border-right: 1px solid var(--c-oak);
  }

  .split-stat:first-child,
  .split-stat:nth-child(4) {
    padding-left: 0;
  }

  .split-stat:nth-child(3),
  .split-stat:last-child {
    border-right: none;
    padding-right: 0;
  }

  /* Bottom row — no bottom border */
  .split-stat:nth-child(n+4) {
    border-bottom: none;
  }

  /* Top row — no top border */
  .split-stat:first-child {
    border-top: none;
  }

  .split-stat-value {
    font-size: clamp(56px, 5.5vw, 88px);
    min-width: auto;
  }

  .split-stat-context {
    text-align: left;
  }

  .split-stat-label {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  /* Why */
  .why-section { padding: 160px 0; }
  .why-composition {
    display: block;
    max-width: 800px;
  }
  .why-point {
    padding: 36px 0 36px 32px;
  }

  /* CTA */
  .cta-section { padding: 200px 0; }
  .cta-headline {
    margin-bottom: 16px;
  }
  .cta-primary {
    margin-bottom: 14px;
  }
  .cta-support {
    margin-bottom: 8px;
  }
  .cta-capture {
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
  }
  .cta-capture .btn {
    width: auto;
    min-width: 230px;
  }

  /* Footer */
  .footer { padding: 140px 0 48px; }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
  }
  .footer-copy {
    text-align: left;
    flex: 1;
  }
  .footer-person {
    align-items: flex-start;
    text-align: left;
    flex-shrink: 0;
  }
  .footer-contacts {
    align-items: flex-end;
    flex-shrink: 0;
  }
}

/* Mobile QA refinement */
@media (max-width: 430px) {
  .hero-mobile-h1 { padding: 28px 0 14px; }
  .hero-mobile-h1 .container { width: min(1280px, calc(100% - 16px)); }
  .hero-editorial { padding: 8px 0 14px; }
  .hero-h2 { font-size: 18px; line-height: 1.25; }
  .hero-body { font-size: 15px; line-height: 1.55; }
  .hero-meta { font-size: 13px; line-height: 1.5; }
  .hero-descriptor { gap: 10px; }
  .hero-cta .btn { min-height: 52px; font-size: 11px; padding: 14px 28px; }
  .proof { padding: 72px 0; }
  .why-section { padding: 72px 0; }
  .footer { padding: 72px 0 32px; }
  .footer-inner { gap: 36px; }
  .cta-headline {
    margin-bottom: 14px;
  }
  .cta-support {
    margin-bottom: 12px;
  }
  .mobile-nav-panel.is-open { max-height: 320px; }
}

@media (max-width: 390px) {
  .container { width: min(1280px, calc(100% - 28px)); }
  .hero-mobile-h1 .container { width: min(1280px, calc(100% - 12px)); }
  .hero-mobile-h1 .hero-h1 { font-size: 17px; line-height: 1.1; white-space: nowrap; }
  .hero-cta .btn { width: 100%; min-height: 50px; font-size: 10px; letter-spacing: 0.08em; padding: 12px 20px; }
  .social-btn { width: 40px; height: 40px; }
  .proof-media-strip { gap: 12px; }
  .footer-bottom { gap: 8px; flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════
   COOKIE CONSENT BANNER
   ════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 320px;
  z-index: 1000;
  background: var(--c-anthracite);
  border: 1px solid rgba(var(--rgb-chrome), 0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  padding: 16px 18px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease-cinema), transform 400ms var(--ease-cinema);
}

.cookie-banner:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.cookie-content {
  display: grid;
  gap: 12px;
}

.cookie-text {
  margin: 0;
  font: 400 13px/1.45 var(--ff-body);
  color: rgba(var(--rgb-chrome), 0.85);
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cookie-link {
  font: 500 12px/1 var(--ff-body);
  color: var(--c-steel);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 250ms var(--ease-cinema);
}

.cookie-link:hover {
  color: var(--c-crimson);
}

.cookie-btn {
  padding: 8px 18px;
  font: 600 12px/1 var(--ff-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-base);
  background: var(--c-crimson);
  border: none;
  cursor: pointer;
  transition: background 250ms var(--ease-cinema), transform 150ms var(--ease-cinema);
}

.cookie-btn:hover {
  background: rgba(var(--rgb-crimson), 0.9);
  transform: translateY(-1px);
}

.cookie-btn:active {
  transform: translateY(0);
}

/* Mobile: full width bottom */
@media (max-width: 480px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 14px 16px;
  }
}

/* Legal page uses the same system */
.legal-page {
  background: var(--c-base);
}
.legal-section {
  padding: 72px 0 88px;
}
.legal-wrap {
  width: min(900px, 100%);
}
.legal-title {
  margin: 0 0 12px 0;
  font: 600 clamp(30px, 5vw, 46px)/1.08 var(--ff-display);
  letter-spacing: -0.01em;
}
.legal-intro {
  margin: 0 0 24px;
  max-width: 68ch;
  color: var(--c-steel);
}
.legal-block {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--rgb-chrome), 0.34);
}
.legal-subtitle {
  margin: 0 0 10px;
  font: 600 clamp(20px, 3vw, 30px)/1.15 var(--ff-display);
}
.legal-block p {
  margin: 0 0 12px;
  max-width: 74ch;
}
.legal-list {
  margin: 0 0 12px 0;
  padding-left: 18px;
  max-width: 74ch;
}
.legal-inline-link {
  color: var(--c-crimson);
}


/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-cinema,
  .hero-video,
  .motion-media img,
  .why-visual {
    transform: none !important;
  }
  .motion-mask {
    clip-path: inset(0 0 0 0) !important;
  }

  /* Pipeline: disable animations, keep static layout */
  .pipeline-node {
    opacity: 1 !important;
    transform: none !important;
  }
  .pipeline-node.is-active {
    opacity: 1 !important;
    transform: none !important;
  }
  .pipeline-rail-fill {
    transform: scaleY(1) !important;
  }
}
