/* ═══════════════════════════════════════════════════════════
   Langixy — cinematic scroll-story site
   Navy #0e1733 · Gold #c9a35a · Cream #f6f2ea
   Fraunces (serif voice) · Manrope (structural voice)
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy: #0e1733;
  --navy-deep: #0a1029;
  --navy-2: #1a2550;
  --ink: #111a36;
  --cream: #f6f2ea;
  --paper: #faf7f1;
  --mist: #e6e1d6;
  --rule: #d9d3c7;
  --muted: #5b6582;
  --muted-l: #8d97b5;
  --gold: #c9a35a;
  --gold-deep: #b88c3f;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', -apple-system, sans-serif;
  --motion: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* NOT 'hidden' — hidden creates a scroll container and breaks position: sticky */
}
img { display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--navy); }

/* ── scroll progress hairline ─────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--gold); z-index: 200;
}

/* ── nav (mobile-first: base = small screens, min-width scales up) ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(10, 16, 41, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-brand span {
  font-weight: 800; font-size: 14px; letter-spacing: 0.34em;
  text-transform: uppercase; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #cfd6ee; opacity: 0.85;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.nav-links a:hover { color: var(--gold); opacity: 1; }
.nav-cta {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy) !important; background: var(--gold);
  padding: 10px 16px; border-radius: 999px; opacity: 1 !important;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover { background: #dab46a; color: var(--navy) !important; transform: translateY(-1px); }

/* ── mobile nav (hamburger + slide-down panel) ──
   Below 980px the inline link list is replaced by a toggle button that
   opens a full-width panel; above 980px the panel styles are inert and
   the original inline row is used (see the min-width:980px block below). */
.nav-burger {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: none;
  background: rgba(255,255,255,0.06); cursor: pointer; flex: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  position: relative; width: 18px; height: 2px; background: #fff;
  border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger span::before, .nav-burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px;
  background: #fff; border-radius: 2px; transition: transform 0.25s ease, top 0.25s ease;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav.is-menu-open .nav-burger span { background: transparent; }
.nav.is-menu-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav.is-menu-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

.nav-links {
  position: fixed; top: 0; right: 0; z-index: 99;
  width: min(84vw, 340px); height: 100vh;
  flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
  background: rgba(9, 14, 34, 0.98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 96px 28px 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}
.nav.is-menu-open .nav-links { transform: none; }
.nav-links a {
  padding: 16px 4px; font-size: 14px; letter-spacing: 0.14em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  min-height: 44px; display: flex; align-items: center;
}
.nav-cta { order: 99; margin-top: 20px; justify-content: center; padding: 16px 22px; }
.nav-scrim {
  position: fixed; inset: 0; z-index: 98; background: rgba(5,8,16,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.nav.is-menu-open ~ .nav-scrim, .nav-scrim.is-visible { opacity: 1; pointer-events: all; }

/* ── hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 22px 64px; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 72% 38%, rgba(201,163,90,0.14), transparent 65%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, #101b40);
}
.hero-glyphs {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-glyphs span {
  position: absolute; font-family: var(--serif); color: #fff;
  opacity: 0; animation: glyphDrift calc(14s / var(--motion, 1)) linear infinite;
}
@keyframes glyphDrift {
  0%   { opacity: 0; transform: translateY(40px); }
  12%  { opacity: 0.08; }
  82%  { opacity: 0.08; }
  100% { opacity: 0; transform: translateY(-90px); }
}
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--gold);
}
.hero-eyebrow::before { content: ''; width: 44px; height: 1px; background: var(--gold); }
.hero h1 {
  margin: 34px 0 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(54px, 7.2vw, 104px); line-height: 1.02;
  letter-spacing: -0.025em; text-wrap: balance;
}
.hero h1 em {
  font-style: italic; font-weight: 400; color: var(--gold);
}
.hero-rotator {
  display: inline-block; position: relative;
  min-width: 5.2em; text-align: left; vertical-align: baseline;
}
.hero-rotator b {
  position: absolute; left: 0; top: 0; font-weight: inherit; white-space: nowrap;
  opacity: 0; transform: translateY(0.35em);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  font-style: italic; color: var(--gold);
}
.hero-rotator b.is-on { opacity: 1; transform: translateY(0); position: relative; }
.hero-sub {
  margin-top: 34px; max-width: 560px;
  font-size: 18px; line-height: 1.65; color: #b9c2dd; font-weight: 500;
}
.hero-actions { margin-top: 44px; display: flex; align-items: center; gap: 26px; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--gold); color: var(--navy);
  font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 18px 34px; border-radius: 999px; border: none; cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold:hover { background: #dab46a; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201,163,90,0.25); }
.btn-ghost {
  font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #cfd6ee; border-bottom: 1px solid rgba(207,214,238,0.4); padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.hero-scrollcue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--muted-l);
}
.hero-scrollcue i {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(var(--gold), transparent);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── shared section scaffolding ───────────────────────────── */
.section { position: relative; padding: 84px 22px; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section.light { background: var(--cream); color: var(--ink); }
.section.paper { background: var(--paper); color: var(--ink); }
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--gold); }
.section:not(.light):not(.paper) .eyebrow { color: var(--gold); }

/* ── word-by-word manifesto reveal ────────────────────────── */
.manifesto p {
  margin: 44px 0 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1.16;
  letter-spacing: -0.02em; max-width: 1020px; text-wrap: pretty;
}
.manifesto .w {
  opacity: 0.12; transition: opacity 0.5s ease;
  transition-delay: calc(var(--i) * 28ms);
}
.manifesto.in-view .w { opacity: 1; }
.manifesto .w.gold-w { color: var(--gold-deep); font-style: italic; }

/* ── showreel media moment ────────────────────────────────── */
.reel { padding: 0 22px 84px; }
.reel-frame {
  position: relative; max-width: 1180px; margin: 0 auto;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(10,16,41,0.35);
}
.reel-frame image-slot { width: 100%; aspect-ratio: 16 / 9; }
.reel-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(10,16,41,0.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  display: grid; place-items: center; pointer-events: none;
  transition: transform 0.3s ease;
}
.reel-badge::after {
  content: ''; display: block; margin-left: 6px;
  border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.reel-caption {
  max-width: 1180px; margin: 18px auto 0; display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}

/* ── story / stats ────────────────────────────────────────── */
.story-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: start; }
.story-copy h2, .h2 {
  margin: 26px 0 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 3.8vw, 54px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
}
.story-copy p { margin: 26px 0 0; font-size: 17px; line-height: 1.75; color: #b9c2dd; max-width: 480px; }
.stats { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,0.14); }
.stat { padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,0.14); display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: baseline; }
.stat-num {
  font-family: var(--serif); font-weight: 500; font-size: 72px; letter-spacing: -0.03em;
  color: var(--gold); min-width: 190px; line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-num sup { font-size: 0.45em; margin-left: 2px; }
.stat-label { font-size: 14px; line-height: 1.6; color: #cfd6ee; font-weight: 600; max-width: 300px; }

/* ── pillars — stacked sticky panels ──────────────────────── */
.pillars { padding: 0; }
.pillar {
  position: sticky; top: 0; min-height: 100vh;
  display: flex; align-items: center; padding: 72px 22px;
}
.pillar:nth-child(1) { background: var(--cream); color: var(--ink); }
.pillar:nth-child(2) { background: var(--navy); color: #fff; }
.pillar:nth-child(3) { background: var(--navy-deep); color: #fff; }
.pillar-inner {
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center;
}
.pillar-no {
  font-size: 12px; font-weight: 800; letter-spacing: 0.42em; color: var(--gold-deep);
}
.pillar:nth-child(n+2) .pillar-no { color: var(--gold); }
.pillar h3 {
  margin: 20px 0 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(46px, 5vw, 76px); letter-spacing: -0.025em; line-height: 1;
}
.pillar h3 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
.pillar:nth-child(n+2) h3 em { color: var(--gold); }
.pillar-desc { margin: 26px 0 0; font-size: 17px; line-height: 1.75; max-width: 460px; }
.pillar:nth-child(1) .pillar-desc { color: var(--muted); }
.pillar:nth-child(n+2) .pillar-desc { color: #b9c2dd; }
.pillar-points { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.pillar-points li {
  display: flex; align-items: center; gap: 16px; padding: 15px 0;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  border-top: 1px solid rgba(125,135,170,0.25);
}
.pillar-points li::before {
  content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold);
  flex: none;
}
.pillar-media image-slot { width: 100%; aspect-ratio: 4 / 3; }
.pillar-media { border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(10,16,41,0.28); }

/* ── process ──────────────────────────────────────────────── */
.process-head { max-width: 720px; }
.process-head p { margin: 24px 0 0; font-size: 17px; line-height: 1.75; color: var(--muted); }
.steps { margin-top: 56px; position: relative; display: grid; grid-template-columns: 1fr; gap: 28px; }
.steps::before {
  content: ''; position: absolute; top: 7px; left: 0; height: 1px; width: 100%;
  background: var(--rule); display: none;
}
.steps-fill {
  position: absolute; top: 7px; left: 0; height: 1px; width: 100%;
  background: var(--gold-deep); transform-origin: 0 50%; transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: none;
}
.steps.in-view .steps-fill { transform: scaleX(1); }
.step { position: relative; padding-top: 38px; }
.step::before {
  content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px;
  border-radius: 50%; background: var(--cream); border: 2px solid var(--gold-deep);
  transition: background 0.4s ease; transition-delay: calc(var(--i) * 0.32s);
}
.steps.in-view .step::before { background: var(--gold-deep); }
.step-no { font-size: 11px; font-weight: 800; letter-spacing: 0.36em; color: var(--gold-deep); }
.step h4 { margin: 12px 0 0; font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; color: var(--ink); }
.step p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

/* ── languages marquee band ───────────────────────────────── */
.langs { padding: 72px 0; background: var(--navy-deep); overflow: hidden; }
.langs-claim {
  text-align: center; padding: 0 22px; margin-bottom: 44px;
}
.langs-claim .h2 { margin: 26px auto 0; max-width: 760px; }
.langs-claim .eyebrow { justify-content: center; }
.langs-claim .eyebrow::after { content: ''; width: 36px; height: 1px; background: var(--gold); }
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee + .marquee { margin-top: 26px; }
.marquee-track {
  display: flex; flex: none; align-items: baseline; gap: 56px; padding-right: 56px;
  animation: marqueeMove calc(46s / var(--motion, 1)) linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
@keyframes marqueeMove { to { transform: translateX(-100%); } }
.marquee-track span {
  font-family: var(--serif); font-weight: 500; font-size: 44px; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.22); white-space: nowrap;
}
.marquee-track span.lit { color: var(--gold); opacity: 0.9; }

/* ── closing CTA ──────────────────────────────────────────── */
.cta {
  padding: 90px 22px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 50% 110%, rgba(201,163,90,0.16), transparent 70%),
    var(--navy);
}
.cta .eyebrow { justify-content: center; }
.cta .eyebrow::after { content: ''; width: 36px; height: 1px; background: var(--gold); }
.cta h2 {
  margin: 30px auto 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 5.4vw, 84px); line-height: 1.04; letter-spacing: -0.025em;
  max-width: 860px; text-wrap: balance;
}
.cta h2 em { font-style: italic; font-weight: 400; color: var(--gold); }
.cta-actions { margin-top: 52px; display: flex; justify-content: center; align-items: center; gap: 28px; }
.cta-mail { margin-top: 34px; font-size: 13px; letter-spacing: 0.22em; color: var(--muted-l); text-transform: uppercase; font-weight: 700; }
.cta-mail a { color: var(--gold); border-bottom: 1px solid rgba(201,163,90,0.4); padding-bottom: 2px; }

/* ── footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep); padding: 48px 22px 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 9px; }
.footer-brand div b { display: block; font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; }
.footer-brand div span { display: block; margin-top: 5px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.footer-links a { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #8d97b5; transition: color 0.25s; }
.footer-links a:hover { color: var(--gold); }
.footer-base {
  max-width: 1180px; margin: 32px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #5b6582; font-weight: 600;
}

/* ── reveal-on-scroll primitives ──────────────────────────── */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0s); }
.rv.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .marquee-track, .hero-glyphs span, .hero-scrollcue i { animation: none; }
  .manifesto .w { opacity: 1; transition: none; }
}

/* ── responsive: mobile is the default above; this tier upgrades
   layout for tablet/desktop viewports ─────────────────────── */
@media (min-width: 640px) {
  .hero { padding: 110px 32px 72px; }
  .section { padding: 110px 32px; }
  .reel { padding: 0 32px 110px; }
  .pillar { padding: 90px 32px; }
}

@media (min-width: 980px) {
  .nav, .nav.is-scrolled { padding-left: 48px; padding-right: 48px; }
  .nav-brand img { width: 34px; height: 34px; border-radius: 8px; }
  .nav-brand span { font-size: 15px; }
  .nav-burger { display: none; }
  .nav-scrim { display: none; }
  .nav-links {
    position: static; width: auto; height: auto; flex-direction: row;
    align-items: center; gap: 34px; background: none; backdrop-filter: none;
    -webkit-backdrop-filter: none; padding: 0; transform: none; box-shadow: none;
    transition: none;
  }
  .nav-links a { padding: 0; border-bottom: none; min-height: auto; }
  .nav-cta { order: 0; margin-top: 0; padding: 11px 22px; font-size: 12px; letter-spacing: 0.14em; }

  .hero { padding: 120px 48px 80px; }
  .section { padding: 140px 48px; }
  .reel { padding: 0 48px 140px; }
  .pillar { padding: 110px 48px; }
  .story-grid { grid-template-columns: 1fr 1fr; gap: 90px; }
  .pillar-inner { grid-template-columns: 1.05fr 0.95fr; gap: 90px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 44px; }
  .steps::before, .steps-fill { display: block; }
  .footer { padding: 64px 48px 44px; }
  .footer-inner { flex-direction: row; justify-content: space-between; gap: 40px; }
  .footer-base { margin-top: 44px; padding-top: 24px; }
  .langs { padding: 130px 0; }
  .langs-claim { padding: 0 48px; margin-bottom: 80px; }
  .cta { padding: 170px 48px; }
}

/* Tap targets: every interactive element stays comfortably touchable
   on mobile regardless of viewport tier. (.nav-links a sets its own
   min-height above, overridden back to auto in the desktop tier.) */
.btn-gold, .rf-btn, button {
  min-height: 44px;
}
.btn-gold { display: inline-flex; align-items: center; }
