/* ============================================================================
   Localization Ventures — Landing Page
   Mirrors MarketingScroll Remotion composition (NAVIGATOR palette)
   ============================================================================ */

/* ----- Palette: NAVIGATOR (navy + gold) ----- */
:root {
  --bg-top: #163c6a;
  --bg: #0b1f3a;
  --bg-deep: #040e1f;
  --ink: #020812;
  --panel: #0b1f3a;
  --hairline: #2a4670;
  --accent: #e0c070;
  --accent-bright: #f0d890;
  --accent-dim: #8c7530;
  --accent-rgb: 224, 192, 112;
  --gold: #f0d890;
  --silver: #c8c0aa;
  --text: #ffffff;
  --text-dim: #e8dcc0;
  --text-muted: #bdb098;
  --warn: #e07868;

  --side-pad: clamp(20px, 5vw, 96px);
  --max: 1640px;
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  background: var(--bg-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

img {
  display: block;
}

/* ----- Background (fixed, breathing radial gradient) ----- */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    var(--bg-top) 0%,
    var(--bg) 45%,
    var(--bg-deep) 100%
  );
  animation: bgBreathe 28s ease-in-out infinite;
}

@keyframes bgBreathe {
  0%,
  100% {
    background-position: 50% 47%;
    transform: scale(1);
  }
  50% {
    background-position: 50% 53%;
    transform: scale(1.04);
  }
}

.film-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.6  0 0 0 1 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}

/* ============================================================================
   Sticky Navigation
   ============================================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(16px, 3.5vw, 56px);
  height: 96px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.site-nav.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: clamp(15px, 1.2vw, 19px);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav__brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 14px var(--accent);
}

.site-nav__links {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  font-weight: 600;
  font-size: clamp(14px, 1.1vw, 17px);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.site-nav__links a {
  position: relative;
  color: var(--text-dim);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.site-nav__links a:hover {
  color: var(--accent);
}

.site-nav__links a.is-active {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
}

@media (max-width: 1280px) {
  .site-nav__links {
    font-size: 16px;
    gap: 20px;
  }
  .site-nav__brand {
    font-size: 18px;
    letter-spacing: 2px;
  }
}

/* ----- Hamburger (hidden on desktop) ----- */
.site-nav__menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1.5px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-nav__menu-toggle:hover {
  border-color: var(--accent-bright);
  background: rgba(var(--accent-rgb), 0.1);
}

.site-nav__menu-toggle:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.site-nav__menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--accent-bright);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.site-nav__menu-toggle span:nth-child(1) { top: 14px; }
.site-nav__menu-toggle span:nth-child(2) { top: 21px; }
.site-nav__menu-toggle span:nth-child(3) { top: 28px; }

.site-nav__menu-toggle.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.site-nav__menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.site-nav__menu-toggle.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ----- Mobile drawer ----- */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 86vw);
  z-index: 70;
  background: var(--bg-deep);
  border-left: 1px solid var(--hairline);
  padding: 120px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-drawer a {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  padding: 16px 4px;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.is-active {
  color: var(--accent-bright);
  padding-left: 12px;
}

.mobile-nav-drawer-drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav-drawer-drawer__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 960px) {
  .site-nav__links {
    display: none;
  }
  .site-nav__menu-toggle {
    display: inline-block;
  }
}

/* ============================================================================
   Scroll Progress Bar (right edge)
   ============================================================================ */
.scroll-progress {
  position: fixed;
  right: 56px;
  top: 200px;
  bottom: 200px;
  width: 2px;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.scroll-progress.is-visible {
  opacity: 1;
}

.scroll-progress__track {
  position: absolute;
  inset: 0;
  background: var(--hairline);
  opacity: 0.6;
}

.scroll-progress__fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: height 0.05s linear;
}

.scroll-progress__dots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.scroll-progress__dot {
  position: absolute;
  left: -10px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1.5px solid var(--accent-dim);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-progress__dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.25s ease;
}

.scroll-progress__dot:hover {
  border-color: var(--accent-bright);
  transform: scale(1.15);
  box-shadow: 0 0 12px var(--accent);
}

.scroll-progress__dot:hover::after {
  background: var(--accent-bright);
}

.scroll-progress__dot:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.scroll-progress__dot.is-active {
  border-color: var(--accent-bright);
  box-shadow: 0 0 14px var(--accent);
}

.scroll-progress__dot.is-active::after {
  background: var(--accent-bright);
}

.scroll-progress__dot-tooltip {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--hairline);
  padding: 6px 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.scroll-progress__dot:hover .scroll-progress__dot-tooltip,
.scroll-progress__dot:focus-visible .scroll-progress__dot-tooltip {
  opacity: 1;
}

@media (max-width: 960px) {
  .scroll-progress {
    display: none;
  }
}

/* ============================================================================
   Scroll Hint
   ============================================================================ */
.scroll-hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 64px;
  text-align: center;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  z-index: 40;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.scroll-hint.is-visible {
  opacity: 0.7;
}

.scroll-hint__arrow {
  margin-top: 16px;
  font-size: 32px;
  color: var(--accent-bright);
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

/* ============================================================================
   Section base
   ============================================================================ */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px var(--side-pad) 120px;
  overflow: hidden;
}

.section__inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.section__inner--center {
  text-align: center;
}

.parallax {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.parallax > * {
  width: 100%;
  height: 100%;
}

/* ----- Reveal effect (mirrors Remotion ScrollReveal) ----- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-from="left"] {
  transform: translateX(-60px);
}
.reveal[data-from="right"] {
  transform: translateX(60px);
}
.reveal.blur {
  filter: blur(10px);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

/* ============================================================================
   Typography primitives
   ============================================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow__line {
  display: inline-block;
  width: 44px;
  height: 2px;
  background: var(--accent-bright);
  opacity: 0.85;
  margin-right: 20px;
}

h1 {
  font-weight: 200;
  font-size: clamp(56px, 7vw, 120px);
  letter-spacing: -2px;
  line-height: 1.0;
  color: var(--text);
  max-width: 1500px;
  margin-top: 32px;
}

h2 {
  font-weight: 200;
  font-size: clamp(42px, 5.2vw, 80px);
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--text);
  max-width: 1400px;
  margin-top: 32px;
}

.section__inner--center h2 {
  margin-left: auto;
  margin-right: auto;
}

.accent-bright {
  color: var(--accent-bright);
  font-weight: 400;
}

.lede {
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 32px);
  letter-spacing: 0.3px;
  line-height: 1.55;
  color: var(--text);
  max-width: 1100px;
  margin-top: 56px;
}

.lede--center {
  margin: 26px auto 0;
  text-align: center;
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 500;
  max-width: 1000px;
}

.warn {
  color: var(--warn);
}

.footnote {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 36px;
}

/* Watermarks (decorative SVG marks) */
.watermark {
  position: absolute;
  pointer-events: none;
}

.watermark--top-right {
  top: 40px;
  right: 0;
  width: 200px;
  height: 200px;
  opacity: 0.18;
}

.section--hero .watermark--top-right {
  width: clamp(340px, 36vw, 520px);
  height: clamp(340px, 36vw, 520px);
  top: 50%;
  right: -90px;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 0.5;
  filter: drop-shadow(0 0 60px rgba(var(--accent-rgb), 0.6));
  animation: heroLogoBreathe 8s ease-in-out infinite;
  z-index: 0;
}

.section--hero .section__inner > *:not(.watermark) {
  position: relative;
  z-index: 1;
}

.section--hero h1 {
  max-width: 1100px;
  padding-right: clamp(0px, 8vw, 120px);
}

.section--hero .lede {
  max-width: 1000px;
  padding-right: clamp(0px, 8vw, 120px);
}

@media (max-width: 900px) {
  .section--hero .watermark--top-right {
    opacity: 0.25;
    right: -200px;
  }
}

@keyframes heroLogoBreathe {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-50%) scale(1.04);
    opacity: 0.65;
  }
}

.watermark--center-faint {
  inset: 0;
  margin: auto;
  width: min(900px, 60vw);
  height: min(900px, 60vw);
  opacity: 0.04;
  z-index: -1;
}

/* ============================================================================
   SECTION 1 — Hero
   ============================================================================ */
.section--hero .grid-bg,
.section--shift .diag-bg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-nodes circle.node {
  fill: var(--text-muted);
  fill-opacity: 0.55;
  animation: pulse 3.4s ease-in-out infinite;
}

.hero-nodes circle.node-glow {
  fill: var(--accent);
  fill-opacity: 0.06;
  animation: pulse 3.4s ease-in-out infinite;
}

.hero-nodes line.broken {
  stroke: var(--warn);
  stroke-opacity: 0.18;
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: flicker 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.2;
  }
}

/* ============================================================================
   SECTION 2 — Shift
   ============================================================================ */
.shift-block {
  margin-top: 60px;
}

.shift-line {
  font-weight: 200;
  font-size: clamp(72px, 10vw, 200px);
  letter-spacing: -3px;
  line-height: 1.0;
  color: var(--text);
}

.shift-line--accent {
  font-weight: 600;
  color: var(--accent-bright);
}

.strike-host {
  position: relative;
  display: inline-block;
}

.strike-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 8px;
  background: var(--warn);
  box-shadow: 0 0 18px var(--warn);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1300ms cubic-bezier(0.16, 1, 0.3, 1) 800ms;
}

.is-revealed .strike-bar,
.shift-line.is-revealed .strike-bar {
  transform: scaleX(1);
}

/* ============================================================================
   SECTION 3 — LV Model (4 pillars)
   ============================================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 100px;
}

@media (max-width: 1180px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  position: relative;
  padding: 36px 32px;
  min-height: 320px;
  background: linear-gradient(
    180deg,
    rgba(var(--accent-rgb), 0.1) 0%,
    rgba(var(--accent-rgb), 0.02) 100%
  );
  border: 1px solid var(--hairline);
  color: var(--text);
}

.pillar__corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--accent-bright);
}

.pillar__num {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--accent-bright);
  margin-bottom: 24px;
}

.pillar__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 32px;
}

.pillar__icon svg {
  width: 100%;
  height: 100%;
}

.pillar__title {
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

.pillar__sub {
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.2px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================================================================
   SECTION 4 — What We Build
   ============================================================================ */
.build-megaword-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.build-megaword {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(140px, 18vw, 280px);
  letter-spacing: -8px;
  color: var(--accent);
  opacity: 0.09;
  white-space: nowrap;
}

.section--build {
  overflow: hidden;
}

.section--build .section__inner {
  position: relative;
  z-index: 1;
}

.sectors {
  margin-top: 80px;
}

.sector {
  display: grid;
  grid-template-columns: 70px 1fr 280px 200px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}

@media (max-width: 980px) {
  .sector {
    grid-template-columns: 60px 1fr 1fr;
  }
  .sector__label {
    grid-column: 2;
  }
}

@media (max-width: 580px) {
  .sector {
    grid-template-columns: 56px 1fr;
    row-gap: 6px;
  }
  .sector__figure {
    text-align: left !important;
    grid-column: 2;
  }
}

.sector__num {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--accent-bright);
}

.sector__name {
  font-weight: 400;
  font-size: clamp(36px, 4vw, 60px);
  letter-spacing: -0.5px;
}

.sector__label {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.sector__figure {
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 44px);
  letter-spacing: 0.3px;
  color: var(--accent-bright);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
   SECTION 5 — De-risking
   ============================================================================ */
.derisk {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: start;
  margin-top: 80px;
  gap: 0;
}

@media (max-width: 800px) {
  .derisk {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .derisk__arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
}

.derisk__head {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--warn);
  border-left: 3px solid var(--warn);
  padding-left: 24px;
  margin-bottom: 36px;
}

.derisk__head--new {
  color: var(--accent-bright);
  border-left-color: var(--accent-bright);
}

.derisk__row {
  font-weight: 300;
  font-size: clamp(28px, 2.5vw, 40px);
  letter-spacing: 0.3px;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(224, 120, 104, 0.7);
  text-decoration-thickness: 2px;
  padding-left: 24px;
  margin-bottom: 24px;
}

.derisk__row--new {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.derisk__arrow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 70px;
}

.derisk__arrow svg {
  width: 70px;
  height: 70px;
}

/* ============================================================================
   SECTION 6 — Ecosystem
   ============================================================================ */
.section--ecosystem .section__inner {
  text-align: center;
}

.ecosystem {
  position: relative;
  margin: 80px auto 0;
  width: min(800px, 88vw);
  height: min(800px, 88vw);
}

.ecosystem__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), 0.18) 0%,
    rgba(var(--accent-rgb), 0.04) 50%,
    transparent 100%
  );
  filter: blur(20px);
}

.ecosystem__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ecosystem__rotor {
  transform-origin: 400px 400px;
  animation: rotor 60s linear infinite;
}

@keyframes rotor {
  to {
    transform: rotate(360deg);
  }
}

.ecosystem__center {
  position: absolute;
  width: 17.5%;
  height: 17.5%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 18px var(--accent));
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.ecosystem__nodes {
  position: absolute;
  inset: 0;
}

.eco-node {
  position: absolute;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px var(--accent));
  opacity: 0;
  transition: opacity 0.7s ease;
}

.eco-node.is-revealed {
  opacity: 1;
}

.eco-label {
  position: absolute;
  width: 200px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.eco-label.is-revealed {
  opacity: 1;
}

.saudi-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 60px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.saudi-tag__line {
  display: inline-block;
  width: 36px;
  height: 1.5px;
  background: var(--gold);
  opacity: 0.7;
  margin-right: 16px;
}

/* ============================================================================
   SECTION 7 — CTA
   ============================================================================ */
.section--cta {
  flex-direction: column;
  justify-content: center;
}

.cta-halo {
  position: absolute;
  width: 800px;
  height: 800px;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), 0.5) 0%,
    rgba(var(--accent-rgb), 0.18) 30%,
    transparent 70%
  );
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  animation: haloPulse 6s ease-in-out infinite;
}

@keyframes haloPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.cta__mark {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  filter: drop-shadow(0 0 28px var(--accent));
  position: relative;
  z-index: 1;
}

.cta__wordmark {
  font-weight: 600;
  font-size: 36px;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.cta__loc {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 5px;
  color: var(--accent-bright);
  margin-top: 18px;
}

.cta__headline {
  font-weight: 300;
  font-size: clamp(40px, 4.6vw, 72px);
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--text);
  margin-top: 80px;
  padding: 0 var(--side-pad);
  position: relative;
  z-index: 1;
}

.cta__headline .word {
  display: inline-block;
  margin-right: 0.25em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta__headline.is-revealed .word {
  opacity: 1;
  transform: translateY(0);
}

.cta__headline .word--final {
  color: var(--accent-bright);
}

.cta__sub {
  margin-top: 80px;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.cta__sep {
  color: var(--accent);
  margin: 0 18px;
}

/* ============================================================================
   Floating actions — bottom-center pill group (Next/Back-to-top + Home)
   ============================================================================ */
.floating-action-group {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ----- Scroll CTA pill ----- */
.scroll-control {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px 14px 22px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1.5px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(var(--accent-rgb), 0.18) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease,
    background 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.scroll-control.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-control:hover {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(var(--accent-rgb), 0.4);
}

.scroll-control:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

.scroll-control__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--accent-bright);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-control--next .scroll-control__icon {
  animation: ctaBob 1.6s ease-in-out infinite;
}

.scroll-control--top .scroll-control__icon {
  transform: rotate(180deg);
  animation: ctaBobUp 1.6s ease-in-out infinite;
}

@keyframes ctaBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes ctaBobUp {
  0%,
  100% {
    transform: rotate(180deg) translateY(0);
  }
  50% {
    transform: rotate(180deg) translateY(4px);
  }
}

@media (max-width: 540px) {
  .scroll-control {
    font-size: 12px;
    padding: 12px 20px 12px 16px;
    letter-spacing: 2px;
  }
}

/* ----- Home pill (visible only on last section) ----- */
.homepage-button {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 20px;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-bright);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1.5px solid var(--accent-bright);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(var(--accent-rgb), 0.28) inset;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease, box-shadow 0.25s ease;
}

body.is-last-section .homepage-button {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.homepage-button:hover {
  background: rgba(var(--accent-rgb), 0.28);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(var(--accent-rgb), 0.55);
}

.homepage-button:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

.homepage-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

@media (max-width: 540px) {
  .homepage-button {
    font-size: 12px;
    padding: 12px 18px 12px 14px;
    letter-spacing: 2px;
    gap: 8px;
  }
  .homepage-button__icon {
    width: 16px;
    height: 16px;
  }
  .floating-action-group {
    gap: 8px;
    bottom: 18px;
  }
}

/* ============================================================================
   Responsive — tablet & mobile
   ============================================================================ */

/* Tablet (768-1024) */
@media (max-width: 1024px) {
  :root {
    --side-pad: clamp(20px, 4.5vw, 64px);
  }
  .section {
    padding: 130px var(--side-pad) 100px;
  }
  .scroll-progress {
    right: 32px;
    top: 130px;
    bottom: 130px;
  }
  h1 {
    font-size: clamp(48px, 7.6vw, 96px);
  }
  h2 {
    font-size: clamp(38px, 5.6vw, 64px);
  }
  .lede {
    font-size: clamp(18px, 2.2vw, 26px);
    margin-top: 40px;
  }
  .shift-line {
    font-size: clamp(64px, 11vw, 160px);
  }
  .pillars {
    margin-top: 72px;
  }
  .ecosystem {
    margin-top: 60px;
    width: min(620px, 88vw);
    height: min(620px, 88vw);
  }
  .eco-label {
    width: 160px;
    font-size: 16px;
  }
  .eco-node {
    width: 44px;
    height: 44px;
  }
  .cta__mark {
    width: 200px;
    height: 200px;
  }
  .cta__wordmark {
    font-size: 30px;
    letter-spacing: 8px;
  }
  .cta__loc {
    font-size: 19px;
    letter-spacing: 4px;
  }
  .cta__headline {
    font-size: clamp(34px, 5vw, 56px);
    margin-top: 60px;
  }
  .cta__sub {
    font-size: 18px;
    letter-spacing: 4px;
    margin-top: 60px;
  }
  .build-megaword {
    font-size: clamp(120px, 20vw, 220px);
    letter-spacing: -6px;
  }
  .section--hero .watermark--top-right {
    width: clamp(280px, 40vw, 420px);
    height: clamp(280px, 40vw, 420px);
    right: -120px;
    opacity: 0.4;
  }
}

/* Mobile (≤767) */
@media (max-width: 767px) {
  :root {
    --side-pad: 18px;
  }
  body {
    /* Allow content to expand naturally on phones */
    line-height: 1.4;
  }
  .site-nav {
    height: 72px;
    padding: 0 16px;
  }
  .site-nav__brand {
    font-size: 13px;
    letter-spacing: 1.5px;
    gap: 10px;
  }
  .site-nav__brand-dot {
    width: 10px;
    height: 10px;
  }
  .section {
    min-height: auto;
    padding: 100px 18px 80px;
  }
  .section--hero {
    min-height: 92vh;
  }
  h1 {
    font-size: clamp(38px, 11vw, 64px);
    letter-spacing: -1px;
    margin-top: 24px;
  }
  h2 {
    font-size: clamp(30px, 8vw, 48px);
    letter-spacing: -0.5px;
    margin-top: 24px;
  }
  .eyebrow {
    font-size: 16px;
    letter-spacing: 3px;
  }
  .eyebrow__line {
    width: 28px;
    margin-right: 12px;
  }
  .lede {
    font-size: 17px;
    margin-top: 32px;
    line-height: 1.5;
  }
  .lede--center {
    font-size: 16px;
  }
  .footnote {
    font-size: 14px;
    letter-spacing: 2px;
  }

  /* Hide hero watermark on phones */
  .section--hero .watermark--top-right,
  .watermark--top-right {
    display: none;
  }
  .section--hero h1,
  .section--hero .lede {
    padding-right: 0;
    max-width: 100%;
  }

  /* Shift section */
  .shift-block {
    margin-top: 40px;
  }
  .shift-line {
    font-size: clamp(44px, 14vw, 80px);
    letter-spacing: -1.5px;
  }
  .strike-bar {
    height: 5px;
  }

  /* Pillars: 1 col, smaller cards */
  .pillars {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 56px;
  }
  .pillar {
    padding: 28px 22px;
    min-height: 0;
  }
  .pillar__num {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .pillar__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
  }
  .pillar__title {
    font-size: 26px;
  }
  .pillar__sub {
    font-size: 17px;
  }

  /* Build sectors: stacked layout */
  .sectors {
    margin-top: 48px;
  }
  .sector {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    row-gap: 4px;
    padding: 16px 0;
  }
  .sector__num {
    font-size: 16px;
    letter-spacing: 2px;
    grid-row: 1;
  }
  .sector__name {
    font-size: 32px;
    grid-row: 1;
  }
  .sector__label {
    font-size: 13px;
    letter-spacing: 2px;
    grid-row: 2;
    grid-column: 2;
  }
  .sector__figure {
    font-size: 24px;
    grid-row: 3;
    grid-column: 1 / -1;
    text-align: left;
  }
  .build-megaword {
    font-size: clamp(80px, 28vw, 160px);
    letter-spacing: -4px;
    opacity: 0.06;
  }

  /* Derisk: stacked */
  .derisk {
    grid-template-columns: 1fr;
    margin-top: 40px;
    gap: 24px;
  }
  .derisk__head {
    font-size: 16px;
    letter-spacing: 3px;
    padding-left: 16px;
    margin-bottom: 20px;
  }
  .derisk__row {
    font-size: 24px;
    padding-left: 16px;
    margin-bottom: 14px;
  }
  .derisk__arrow {
    transform: rotate(90deg);
    margin: 0 auto;
    padding-top: 0;
  }
  .derisk__arrow svg {
    width: 56px;
    height: 56px;
  }

  /* Ecosystem ring */
  .ecosystem {
    margin-top: 40px;
    width: min(420px, 92vw);
    height: min(420px, 92vw);
  }
  .eco-node {
    width: 32px;
    height: 32px;
  }
  .eco-label {
    width: 110px;
    font-size: 11px;
    letter-spacing: 1px;
  }
  .ecosystem__center {
    width: 22%;
    height: 22%;
  }
  .saudi-tag {
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 36px;
  }

  /* CTA */
  .cta-halo {
    width: 480px;
    height: 480px;
    top: 30%;
  }
  .cta__mark {
    width: 140px;
    height: 140px;
  }
  .cta__wordmark {
    font-size: 22px;
    letter-spacing: 6px;
    margin-top: 26px;
  }
  .cta__loc {
    font-size: 14px;
    letter-spacing: 3px;
    margin-top: 12px;
  }
  .cta__headline {
    font-size: clamp(26px, 7vw, 36px);
    letter-spacing: 0px;
    margin-top: 44px;
    padding: 0 8px;
  }
  .cta__sub {
    font-size: 13px;
    letter-spacing: 2px;
    margin-top: 44px;
  }
  .cta__sep {
    margin: 0 8px;
  }

  /* Scroll CTA pill */
  .scroll-control {
    bottom: 18px;
    padding: 11px 18px 11px 16px;
    font-size: 12px;
    letter-spacing: 2px;
  }
  .scroll-control__icon {
    width: 18px;
    height: 18px;
  }

  /* Hide scroll progress bar; use mobile drawer instead */
  .scroll-progress {
    display: none;
  }

  /* Hero parallax/grid background eased */
  .grid-bg,
  .diag-bg {
    opacity: 0.55;
  }
}

/* Tiny screens (≤380) — squeeze a bit more */
@media (max-width: 380px) {
  h1 {
    font-size: 36px;
  }
  .shift-line {
    font-size: 44px;
  }
  .site-nav__brand span:not(.site-nav__brand-dot) {
    display: none;
  }
}

/* Landscape phones */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .section {
    min-height: auto;
    padding: 90px var(--side-pad) 60px;
  }
  .section--hero {
    min-height: auto;
  }
  .scroll-control {
    bottom: 12px;
  }
}

/* Touch-device dot enlargement */
@media (hover: none) and (pointer: coarse) {
  .scroll-progress__dot {
    width: 26px;
    height: 26px;
    left: -12px;
  }
  .scroll-progress__dot::after {
    width: 8px;
    height: 8px;
  }
}

/* ============================================================================
   Reduced motion
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
