/* =====================================================================
   GOTAR — Processwear
   Editorial / manifesto landing. Off-white base, dark inverted sections.
   Type: Neue Haas Grotesk Display Pro (control, Inter fallback) + Anton (Druk role — expression)
   Brand color: #3366CC (electric blue)
   ===================================================================== */

/* --------------------------- Webfonts ----------------------------- */
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("../assets/fonts/NeueHaasDisplayLight.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("../assets/fonts/NeueHaasDisplayRoman.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("../assets/fonts/NeueHaasDisplayRomanItalic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("../assets/fonts/NeueHaasDisplayMediu.ttf") format("truetype");
  font-weight: 500 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("../assets/fonts/NeueHaasDisplayBold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ----------------------------- Tokens ----------------------------- */
:root {
  /* Paper & ink */
  --paper:        #F2EFE8;   /* warm off-white */
  --paper-2:      #EAE6DC;   /* slightly deeper panel */
  --ink:          #1A1A16;   /* near-black, matches logo #1d1d1b */
  --ink-soft:     #57564E;   /* muted body */
  --ink-faint:    #8A887E;   /* captions / labels */
  --hairline:     #D6D2C6;   /* borders on paper */

  /* Dark sections */
  --night:        #0E0E0C;   /* deep black */
  --night-2:      #15150F;
  --on-night:     #ECE9E0;   /* off-white text on night */
  --on-night-soft:#9C9A90;
  --hairline-dk:  #2A2A24;

  /* Brand blue — primary (#3366CC) */
  --navy:         #3366CC;   /* electric brand blue */
  --navy-soft:    #5C7FE0;   /* lighter tint for borders/soft accents */
  --navy-deep:    #1E3A8C;   /* deeper shade for gradients/contrast */

  /* Type */
  --display: "Anton", "Arial Narrow", sans-serif;
  --sans:    "Neue Haas Grotesk Display Pro", "NeueHaasDisplay", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --section-y: clamp(6rem, 14vh, 11rem);
  --wrap:      1240px;
  --gutter:    clamp(1.5rem, 5vw, 5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: 1100ms;
}

/* ----------------------------- Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  /* very subtle dithered radial to give the paper depth */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(0,0,0,0.035), transparent 60%),
    radial-gradient(100% 60% at 50% 110%, rgba(0,0,0,0.03), transparent 55%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ----------------------------- Grain ------------------------------ */
/* Fixed organic noise overlay — almost imperceptible. */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  animation: grainShift 7s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ----------------------------- Layout ----------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}

/* ----------------------------- Type utils ------------------------- */
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0.005em; }

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}

.label {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.label--light { color: var(--on-night); }

.tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.tag--peak { color: var(--navy); border-color: var(--navy-soft); }

.num {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.9;
  color: var(--ink);
  display: block;
}

.section__index { display: flex; flex-direction: column; gap: 0.6rem; position: sticky; top: 120px; }
@media (max-width: 820px) { .section__index { position: static; } }

.section__body { max-width: 60ch; }
.section__body p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.lede { font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--ink) !important; font-weight: 400; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1.6rem; }

/* ----------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 2rem;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  border-radius: 2px;
  transition: background var(--ease) 280ms, color var(--ease) 280ms, border-color var(--ease) 280ms, transform var(--ease) 280ms;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--navy); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--hairline); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ----------------------------- NAV -------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background var(--ease) 400ms, padding var(--ease) 400ms, border-color var(--ease) 400ms;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--hairline);
  padding-block: 1rem;
}
.nav__wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 700; font-size: 1.15rem;
  color: var(--on-night); transition: color var(--ease) 300ms;
}
.nav__wordmark span { letter-spacing: 0.34em; padding-left: 0.06em; }
.nav__mark { width: 1.22rem; height: 1.45rem; color: currentColor; flex: none; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-soft);
  position: relative; transition: color var(--ease) 240ms;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: currentColor;
  transition: width var(--ease) 320ms;
}
.nav__links a:hover { color: var(--on-night); }
.nav__links a:hover::after { width: 100%; }
@media (max-width: 720px) { .nav__links { display: none; } }

.lang { display: flex; align-items: center; gap: 0.5rem; }
.lang__btn {
  font-size: 0.78rem; letter-spacing: 0.1em; font-weight: 500; color: var(--on-night-soft);
  transition: color var(--ease) 240ms;
}
.lang__btn.is-active { color: var(--on-night); }
.lang__sep { color: var(--on-night-soft); }

/* When scrolled past the dark hero, the nav sits on paper → dark text */
.nav.is-scrolled .nav__wordmark { color: var(--ink); }
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav.is-scrolled .nav__links a:hover { color: var(--ink); }
.nav.is-scrolled .lang__btn { color: var(--ink-faint); }
.nav.is-scrolled .lang__btn.is-active { color: var(--ink); }
.nav.is-scrolled .lang__sep { color: var(--ink-faint); }
.lang--footer .lang__btn { color: var(--on-night-soft); }
.lang--footer .lang__btn.is-active { color: var(--on-night); }
.lang--footer .lang__sep { color: var(--on-night-soft); }

/* ----------------------------- HERO ------------------------------- */
/* Dithered navy gradient — the page emerges from deep water. */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* generous bottom padding reserves space for the absolute scroll cue
     so it never overlaps the centred content / CTAs */
  text-align: center; padding: 7rem var(--gutter) 9rem;
  position: relative;
  color: var(--on-night);
  overflow: hidden;
  /* brand background (electric royal-blue) + scrim so white text stays legible
     over the bright diagonal streak */
  background-image:
    radial-gradient(ellipse 100% 78% at 50% 48%, rgba(6,11,28,0.74) 0%, rgba(7,12,30,0.46) 58%, rgba(7,12,30,0.24) 100%),
    url("../assets/hero-bg.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
/* gentle transition into the off-white section below */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--paper) 78%, transparent));
  pointer-events: none; z-index: 1;
}
.hero__inner { position: relative; z-index: 2; max-width: 1000px; }
.hero__scroll { z-index: 2; }
.hero__mark {
  width: clamp(2.8rem, 4.4vw, 3.8rem); height: auto; color: var(--on-night);
  margin: 0 auto 1.8rem; display: block; opacity: 0.96;
}
.hero .kicker { margin-bottom: 1.8rem; color: var(--on-night-soft); }
.hero__title {
  font-size: clamp(3rem, 8vw, 6.25rem);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
  color: var(--on-night);
}
.hero__title .word { display: block; }
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--on-night-soft);
  max-width: 46ch; margin: 0 auto 2.2rem;
  line-height: 1.5;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* hero buttons inverted for the dark panel */
.hero .btn--solid { background: var(--paper); color: var(--ink); }
.hero .btn--solid:hover { background: #fff; }
.hero .btn--ghost { border-color: rgba(236,233,224,0.35); color: var(--on-night); }
.hero .btn--ghost:hover { border-color: var(--on-night); }

.hero__scroll {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--on-night-soft);
}
.hero__scroll-line { width: 1px; height: 48px; background: linear-gradient(var(--on-night-soft), transparent); animation: scrollPulse 2.6s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }
/* on short viewports there isn't room for the cue below the CTAs — hide it */
@media (max-height: 720px) { .hero__scroll { display: none; } }

/* ----------------------- SECTION 01 — INTRO ----------------------- */
.section--intro { border-top: 1px solid var(--hairline); }

/* ----------------------- SECTION 02 — ICEBERG --------------------- */
/* Dithered navy gradient (recreated in CSS) — reads as deep water:
   lighter steel-blue near the surface (top), deepening to dark navy below. */
.iceberg {
  color: var(--on-night);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(135% 80% at 80% 4%, rgba(120,158,235,0.42) 0%, rgba(70,110,200,0.18) 28%, transparent 56%),
    linear-gradient(176deg, #3366CC 0%, #2952A8 24%, #213F80 48%, #14264F 72%, #0A1530 100%);
}
/* dithered noise speckle over the gradient */
.iceberg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
  opacity: 0.22;
  mix-blend-mode: overlay;
}
/* keep all section content above the noise layer */
.iceberg > * { position: relative; z-index: 2; }
.iceberg__index { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: clamp(2rem, 6vh, 4rem); }
.iceberg__index .num { color: var(--on-night); }

.iceberg__stage { position: relative; }

.iceberg__above { padding-bottom: 2.5rem; }
.iceberg__list { list-style: none; }
.iceberg__list--above {
  display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-night-soft);
}

.iceberg__waterline {
  position: relative; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--on-night) 55%, transparent), transparent);
  margin-block: 1.5rem;
}
.iceberg__surface-label {
  position: absolute; right: var(--gutter); top: -1.6rem;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--on-night-soft);
}
/* faint water glow below the line */
.iceberg__below {
  position: relative;
  padding-top: clamp(2.5rem, 8vh, 6rem);
  padding-bottom: clamp(2rem, 6vh, 4rem);
}
.iceberg__below::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 30%, transparent), transparent 75%);
  pointer-events: none;
}
.iceberg__list--below {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: clamp(0.4rem, 2vh, 1.2rem);
  text-transform: uppercase;
  line-height: 0.98;
}
.iceberg__list--below li {
  font-size: clamp(2.2rem, 9vw, 7rem);
  color: color-mix(in srgb, var(--on-night) 92%, var(--navy));
}
/* progressively dim deeper words to feel submerged */
.iceberg__list--below li:nth-child(2) { color: color-mix(in srgb, var(--on-night) 80%, var(--navy)); }
.iceberg__list--below li:nth-child(3) { color: color-mix(in srgb, var(--on-night) 68%, var(--navy)); }
.iceberg__list--below li:nth-child(4) { color: color-mix(in srgb, var(--on-night) 56%, var(--navy)); }
.iceberg__list--below li:nth-child(5) { color: color-mix(in srgb, var(--on-night) 46%, var(--navy)); }
.iceberg__list--below li:nth-child(6) { color: color-mix(in srgb, var(--on-night) 38%, var(--navy)); }

.iceberg__message {
  text-align: center; margin-top: clamp(3rem, 8vh, 6rem);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: var(--on-night-soft);
  letter-spacing: 0.01em; max-width: 40ch; margin-inline: auto;
}

/* ----------------------- SECTION 03 — CORE ------------------------ */
.section--core { border-top: 1px solid var(--hairline); }
.attrs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 0; margin-top: 2.5rem;
  border-top: 1px solid var(--hairline);
}
.attrs li {
  flex: 1 1 46%;
  padding: 1rem 0; border-bottom: 1px solid var(--hairline);
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}

/* ----------------------- SECTION 04 — PEAK ------------------------ */
/* Full-bleed editorial photo with a left→right scrim: solid behind the copy
   on the left, the photo revealed on the right (desktop). */
.section--peak {
  position: relative;
  border-top: 1px solid var(--hairline);
  overflow: hidden;
  min-height: clamp(640px, 94vh, 940px);
  display: flex; align-items: center;
  background: var(--paper-2) url("../assets/peak-bg.jpg") no-repeat;
  /* fit by height → the full photo shows on the right; left stays solid paper */
  background-size: auto 100%;
  background-position: right center;
}
.section--peak::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to right,
    var(--paper-2) 0%,
    var(--paper-2) 30%,
    color-mix(in srgb, var(--paper-2) 80%, transparent) 46%,
    color-mix(in srgb, var(--paper-2) 32%, transparent) 62%,
    transparent 80%);
}
.section--peak .wrap { position: relative; z-index: 1; width: 100%; }
.peak__copy { max-width: 32rem; }
/* fix: the shared .section__index is sticky for the 2-col sections; here it is
   stacked above the title, so keep it in normal flow */
.peak__copy .section__index { position: static; }
.peak__title {
  font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 0.96; text-transform: uppercase;
  margin: 1.6rem 0 1.4rem; color: var(--navy);
}
.peak__copy p { color: var(--ink-soft); max-width: 36ch; font-size: 1.05rem; }
.attrs--peak { border-color: var(--navy-soft); }
.attrs--peak li { border-color: color-mix(in srgb, var(--navy) 30%, var(--hairline)); color: var(--navy); }

/* mobile: photo as a vertical reveal — solid top behind copy, image below */
@media (max-width: 900px) {
  .section--peak {
    min-height: auto; display: block;
    padding-bottom: clamp(300px, 56vh, 520px);
    /* taller than the section → vertical position actually has room to move */
    background-size: auto 132%;
    background-position: center 20%;
  }
  .section--peak::before {
    background: linear-gradient(to bottom,
      var(--paper-2) 0%,
      var(--paper-2) 44%,
      color-mix(in srgb, var(--paper-2) 45%, transparent) 68%,
      transparent 100%);
  }
  .peak__copy { max-width: none; }
}

/* ----------------------- SECTION 05 — MANIFESTO ------------------- */
.manifesto { background: var(--night); color: var(--on-night); }
.manifesto__index { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: clamp(2.5rem, 7vh, 5rem); }
.manifesto__index .num { color: var(--on-night); }
.manifesto__main {
  font-size: clamp(1.8rem, 4.6vw, 4rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  max-width: 18ch;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
  color: var(--on-night);
}
.manifesto__secondary {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.6; color: var(--on-night-soft);
  max-width: 52ch; margin-left: auto;
}

/* ----------------------- SECTION 06 — MOVEMENT -------------------- */
.movement { text-align: center; border-top: 1px solid var(--hairline); }
.movement .kicker { margin-bottom: 2rem; }
.movement__lead {
  font-size: clamp(2.4rem, 7vw, 6rem); line-height: 0.95; text-transform: uppercase;
  margin-bottom: 3rem;
}
.movement__lead span { display: block; }
.movement__nots, .movement__fors {
  display: flex; flex-direction: column; gap: 0.4rem; align-items: center;
  font-size: clamp(1rem, 2vw, 1.4rem); line-height: 1.4;
}
.movement__nots { color: var(--ink-faint); margin-bottom: 1.6rem; }
.movement__fors { color: var(--ink); font-weight: 500; }

/* ----------------------- CLOSING ---------------------------------- */
.closing { padding-block: clamp(7rem, 18vh, 14rem); text-align: center; }
.closing__line {
  font-size: clamp(1.6rem, 4vw, 3.4rem); line-height: 1.15; text-transform: uppercase;
  max-width: 24ch; margin-inline: auto; color: var(--ink);
}

/* ----------------------------- FOOTER ----------------------------- */
.footer { background: var(--night); color: var(--on-night); padding-top: clamp(4rem, 10vh, 7rem); }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 2.5rem;
  padding-bottom: clamp(3rem, 8vh, 5rem); border-bottom: 1px solid var(--hairline-dk);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand { display: flex; flex-direction: column; gap: 0.8rem; }
.footer__wordmark { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 0.9; letter-spacing: 0.02em; }
.footer__tag { color: var(--on-night-soft); font-size: 0.9rem; letter-spacing: 0.04em; }
.footer__col { display: flex; flex-direction: column; gap: 0.8rem; }
.footer__heading { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--on-night-soft); margin-bottom: 0.4rem; }
.footer__col a { color: var(--on-night); font-size: 0.95rem; transition: opacity var(--ease) 240ms; opacity: 0.85; }
.footer__col a:hover { opacity: 1; }
.footer__emblem { color: var(--on-night); }
.footer__emblem .star {
  width: 50px; height: 64px; opacity: 0.7;
  transform-origin: 50% 39%; /* spin around the circle's centre, not the box */
  animation: spinStar 30s linear infinite;
}
@keyframes spinStar { to { transform: rotate(360deg); } }
.footer__base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.8rem; font-size: 0.74rem; letter-spacing: 0.06em; color: var(--on-night-soft);
}

/* ===================================================================
   RESPONSIVE REFINEMENTS — keep large condensed display headlines
   from overflowing/clipping on narrow screens.
   =================================================================== */
.hero__title,
.peak__title,
.movement__lead,
.manifesto__main,
.iceberg__list--below li,
.closing__line {
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 640px) {
  :root { --section-y: clamp(4.5rem, 11vh, 7rem); --gutter: 1.25rem; }

  .hero {
    padding-inline: var(--gutter);
    /* portrait crop reads better on phones */
    background-image:
      radial-gradient(ellipse 130% 64% at 50% 46%, rgba(6,11,28,0.76) 0%, rgba(7,12,30,0.48) 60%, rgba(7,12,30,0.26) 100%),
      url("../assets/hero-bg-mobile.jpg");
  }
  .hero__title { font-size: clamp(2rem, 9vw, 3.6rem); line-height: 1.05; letter-spacing: -0.015em; }
  /* flow words naturally so lines fill width and never overflow (longest
     single word easily fits); avoids forcing an over-long phrase on one line */
  .hero__title .word { display: inline; }
  .peak__title, .movement__lead, .iceberg__list--below li, .manifesto__main, .closing__line { letter-spacing: -0.005em; }
  .hero__sub { font-size: 1.02rem; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }

  .grid-2 { gap: 2.2rem; }
  .lede { font-size: 1.35rem; }

  .iceberg__list--above { gap: 1.2rem 1.8rem; }
  .iceberg__list--below li { font-size: clamp(2.2rem, 13vw, 3.6rem); }

  .peak__title { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .movement__lead { font-size: clamp(2.1rem, 11vw, 3.4rem); }
  .manifesto__main { font-size: clamp(1.7rem, 9vw, 2.6rem); max-width: none; }
  .closing__line { font-size: clamp(1.5rem, 8vw, 2.4rem); }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ===================================================================
   MOTION — slow emergence (fade + blur reveal). Respects reduced-motion.
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease), filter var(--slow) var(--ease);
  will-change: opacity, transform, filter;
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* stagger children lists that carry .reveal individually */
.iceberg__list--below li.reveal,
.iceberg__list--above li.reveal { transition-duration: 1300ms; }

/* Language soft-swap: words emerge from beneath the surface */
[data-i18n] { transition: opacity 420ms var(--ease), filter 420ms var(--ease); }
body.lang-swapping [data-i18n] { opacity: 0; filter: blur(6px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .hero__scroll-line, .footer__emblem .star { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  [data-i18n] { transition: none; }
  body.lang-swapping [data-i18n] { opacity: 1; filter: none; }
}
