@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Crimson+Pro:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ─── RESET & ROOT ──────────────────────────────────────────────────────────── */

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

:root {
  /* ── Base palette (warm, bottom of mountain) */
  --stone-dark:    #1a1814;
  --stone-mid:     #2e2b26;
  --slate:         #4a4540;
  --fog:           #7a7268;
  --parchment:     #c4b89a;
  --parchment-dim: #8a7f68;
  --ember:         #4a7a5a;
  --ember-glow:    #6aaa7a;
  --sky-deep:      #0d1520;
  --white:         #f0ebe0;

  /* ── Scroll-driven color vars (JS updates these) */
  /* progress 0 = hero (warm forest base), 1 = contact (snowy summit) */
  --sp: 0;  /* scroll progress 0–1, updated by JS */

  /* Sky shifts: deep forest night → pale arctic overcast */
  --sky-r: 13;  --sky-g: 21;  --sky-b: 32;   /* base #0d1520 */
  --sky2-r: 30; --sky2-g: 50; --sky2-b: 28;  /* forest #1e3220 */

  /* Terrain shifts: warm stone → cold grey */
  --terrain-warm: #2e2b26;
  --terrain-cold: #8a8f94;

  /* Text/ui shifts at summit */
  --summit-text:   #d8e4ec;

  --section-pad: clamp(4rem,10vw,8rem);
  --content-max: 860px;
}

html { font-size:16px; }

body {
  background: var(--stone-dark);
  color: var(--parchment);
  font-family: 'Crimson Pro', serif;
  overflow-x: hidden;
}

.sr-only {
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ─── FIXED BACKGROUND ──────────────────────────────────────────────────────── */

.bg-wrap {
  position:fixed; inset:0; z-index:0;
  overflow:hidden;
  /* Base background colour — transitions warm → icy via JS inline style */
  background: #0d1520;
  transition: background 0.4s ease;
}

.bg-inner {
  position:absolute;
  inset:0;
  width:100%; height:100%;
  transform-origin:center bottom;
  transform:scale(1.0);
  will-change:transform;
  overflow:hidden;
}

/* Sky gradient */
.sky-layer {
  position:absolute; inset:0;
  width:100%; height:100%;
  background-size:cover;
  background-position:center top;
  animation:skyBreath 18s ease-in-out infinite alternate;
  transition:opacity 0.6s;
}

/* Warm sky (base) */
.sky-warm {
  background: radial-gradient(ellipse 140% 60% at 50% -10%,
    #1e3220 0%, #0d1520 55%, #070c14 100%);
}

/* Cold/snowy sky (summit) — fades in via JS opacity */
.sky-cold {
  background: radial-gradient(ellipse 180% 80% at 50% -5%,
    #c8d8e8 0%, #8baab8 35%, #4a6878 70%, #1e3040 100%);
  opacity:0;
  transition:opacity 0.8s ease;
}

@keyframes skyBreath {
  0%  {filter:hue-rotate(0deg);}
  50% {filter:hue-rotate(6deg) brightness(1.06);}
  100%{filter:hue-rotate(-3deg);}
}

.stars {
  position:absolute; inset:0;
  background-image:
    radial-gradient(1px 1px at 15% 12%,rgba(196,184,154,.7) 0%,transparent 100%),
    radial-gradient(1px 1px at 28% 8%, rgba(196,184,154,.5) 0%,transparent 100%),
    radial-gradient(1px 1px at 42% 15%,rgba(196,184,154,.6) 0%,transparent 100%),
    radial-gradient(1px 1px at 61% 6%, rgba(196,184,154,.4) 0%,transparent 100%),
    radial-gradient(1px 1px at 73% 18%,rgba(196,184,154,.7) 0%,transparent 100%),
    radial-gradient(1px 1px at 85% 10%,rgba(196,184,154,.5) 0%,transparent 100%),
    radial-gradient(1px 1px at 8%  25%,rgba(196,184,154,.3) 0%,transparent 100%),
    radial-gradient(1px 1px at 53% 22%,rgba(196,184,154,.6) 0%,transparent 100%),
    radial-gradient(1px 1px at 94% 7%, rgba(196,184,154,.5) 0%,transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 4%,rgba(196,184,154,.8) 0%,transparent 100%),
    radial-gradient(1px 1px at 67% 28%,rgba(196,184,154,.4) 0%,transparent 100%),
    radial-gradient(1px 1px at 78% 3%, rgba(196,184,154,.6) 0%,transparent 100%);
  animation:starTwinkle 8s ease-in-out infinite alternate;
  transition:opacity 0.8s;
}

@keyframes starTwinkle {
  0%{opacity:.7;} 50%{opacity:1;} 100%{opacity:.6;}
}

.aurora {
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 90% 25% at 30% 50%,rgba(74,122,90,.07) 0%,transparent 70%),
    radial-gradient(ellipse 70% 20% at 70% 45%,rgba(45,58,30,.15) 0%,transparent 65%),
    radial-gradient(ellipse 110% 18% at 50% 55%,rgba(74,122,90,.04) 0%,transparent 60%);
  mix-blend-mode:screen;
  animation:auroraFlow 30s ease-in-out infinite alternate;
  transition:opacity 0.8s;
}

@keyframes auroraFlow {
  0%  {transform:translate(0,0) scale(1);      opacity:.6;}
  25% {transform:translate(-3%,2%) scale(1.05);opacity:.9;}
  50% {transform:translate(2%,-1%) scale(.97); opacity:.7;}
  75% {transform:translate(-1%,3%) scale(1.03);opacity:.85;}
  100%{transform:translate(3%,-2%) scale(1.01);opacity:.65;}
}

/* Base mist (warm) */
.mist {
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 180% 40% at 20% 70%,rgba(122,114,104,.18) 0%,transparent 60%),
    radial-gradient(ellipse 160% 35% at 80% 75%,rgba(100,95,82,.14) 0%,transparent 55%),
    radial-gradient(ellipse 200% 30% at 50% 80%,rgba(90,85,72,.12) 0%,transparent 50%);
  animation:mistDrift 24s ease-in-out infinite alternate;
  filter:blur(8px);
}

@keyframes mistDrift {
  0%  {transform:translateX(0) scaleY(1);   opacity:.7;}
  33% {transform:translateX(3%) scaleY(1.06);opacity:.9;}
  66% {transform:translateX(-2%) scaleY(.95);opacity:.75;}
  100%{transform:translateX(1%) scaleY(1.03);opacity:.85;}
}

/* ─── TERRAIN ───────────────────────────────────────────────────────────────── */

/* Main mountain — steep peak reaching ~5% from top, height 90% to fill screen */
.terrain {
  position:absolute; bottom:0; left:0; width:100%; height:90%;
  transition:background 0.8s ease;
  clip-path:polygon(
    0% 100%,
    0% 85%,
    4% 80%,
    8% 72%,
    12% 74%,
    15% 65%,
    18% 68%,
    21% 58%,
    24% 54%,
    27% 56%,
    30% 46%,
    33% 40%,
    36% 43%,
    39% 32%,
    42% 36%,
    44% 25%,
    46% 18%,
    48% 12%,
    50% 5%,
    52% 12%,
    54% 18%,
    56% 25%,
    58% 30%,
    61% 36%,
    64% 28%,
    67% 34%,
    70% 42%,
    73% 38%,
    76% 46%,
    79% 52%,
    82% 56%,
    85% 50%,
    88% 58%,
    91% 65%,
    94% 70%,
    97% 75%,
    100% 80%,
    100% 100%
  );
}

/* Foreground darker ridge — lower, in front */
.terrain-fg {
  position:absolute; bottom:0; left:0; width:100%; height:45%;
  transition:background 0.8s ease;
  clip-path:polygon(
    0% 100%,
    0% 78%,
    4% 70%,
    8% 75%,
    13% 62%,
    18% 66%,
    23% 52%,
    28% 57%,
    33% 44%,
    38% 49%,
    43% 36%,
    48% 30%,
    50% 22%,
    52% 30%,
    57% 38%,
    62% 44%,
    67% 50%,
    72% 42%,
    77% 55%,
    82% 60%,
    87% 52%,
    91% 62%,
    95% 70%,
    100% 74%,
    100% 100%
  );
}

/* Snow caps — three separate elements, one per peak tip.
   Each traces just the top few percent of each peak and closes with a
   near-horizontal bottom edge. No tall triangles. */

.terrain-snow {
  position:absolute; bottom:0; left:0; width:100%; height:100%;
  pointer-events:none;
}

/* ── Centre main peak: exact terrain points from 44%/25% up to tip at 50%/5% ── */
.snow-centre {
  position:absolute; bottom:0; left:0; width:100%; height:90%;
  pointer-events:none;
  clip-path:polygon(
    44% 25%,
    46% 18%,
    48% 12%,
    50% 5%,
    52% 12%,
    54% 18%,
    56% 25%
  );
  background:linear-gradient(180deg,
    rgba(240,246,252,0.96) 0%,
    rgba(215,232,244,0.82) 45%,
    rgba(185,210,228,0.35) 80%,
    transparent 100%);
}

/* ── Left sub-peak: exact terrain points 30%/46% → tip 33%/40% → 36%/43% ── */
.snow-left {
  position:absolute; bottom:0; left:0; width:100%; height:90%;
  pointer-events:none;
  clip-path:polygon(
    30% 46%,
    33% 40%,
    36% 43%
  );
  background:linear-gradient(180deg,
    rgba(235,244,250,0.90) 0%,
    rgba(205,225,240,0.65) 50%,
    transparent 100%);
}

/* ── Right sub-peak: exact terrain points 61%/36% → tip 64%/28% → 67%/34% ── */
.snow-right {
  position:absolute; bottom:0; left:0; width:100%; height:90%;
  pointer-events:none;
  clip-path:polygon(
    61% 36%,
    64% 28%,
    67% 34%
  );
  background:linear-gradient(180deg,
    rgba(235,244,250,0.90) 0%,
    rgba(205,225,240,0.65) 50%,
    transparent 100%);
}

/* ─── FOG CLOUDS ────────────────────────────────────────────────────────────── */

.clouds {
  position:absolute; inset:0;
  pointer-events:none;
  opacity:0; /* JS fades in with scroll */
  transition:opacity 0.6s;
}

.cloud {
  position:absolute;
  border-radius:50%;
  filter:blur(40px);
  animation:cloudDrift linear infinite;
  mix-blend-mode:screen;
}

.cloud-1 {
  width:60vw; height:22vw;
  background:radial-gradient(ellipse,rgba(220,230,240,.22) 0%,transparent 70%);
  top:18%; left:-20%;
  animation-duration:38s; animation-delay:0s;
}
.cloud-2 {
  width:50vw; height:18vw;
  background:radial-gradient(ellipse,rgba(210,225,235,.18) 0%,transparent 70%);
  top:35%; left:60%;
  animation-duration:44s; animation-delay:-12s;
}
.cloud-3 {
  width:70vw; height:25vw;
  background:radial-gradient(ellipse,rgba(230,235,245,.15) 0%,transparent 70%);
  top:55%; left:-10%;
  animation-duration:52s; animation-delay:-8s;
}
.cloud-4 {
  width:45vw; height:16vw;
  background:radial-gradient(ellipse,rgba(200,218,232,.2) 0%,transparent 70%);
  top:10%; left:40%;
  animation-duration:36s; animation-delay:-20s;
}
.cloud-5 {
  width:55vw; height:20vw;
  background:radial-gradient(ellipse,rgba(215,228,240,.17) 0%,transparent 70%);
  top:70%; left:25%;
  animation-duration:60s; animation-delay:-5s;
}

@keyframes cloudDrift {
  0%  {transform:translateX(0) scaleY(1);}
  40% {transform:translateX(8vw) scaleY(1.05);}
  70% {transform:translateX(-5vw) scaleY(0.95);}
  100%{transform:translateX(3vw) scaleY(1);}
}

/* ─── PARTICLES (snow + dust) ───────────────────────────────────────────────── */

.particles {
  position:absolute; inset:0; overflow:hidden;
}

.particle {
  position:absolute;
  border-radius:50%;
  animation:particleFall linear infinite;
  top:-10px;
}

/* Warm dust particles (bottom, brownish) */
.p-dust {
  background:radial-gradient(circle,rgba(196,184,154,.55) 0%,transparent 70%);
}

/* Cold snow particles (top, white) */
.p-snow {
  background:radial-gradient(circle,rgba(230,240,255,.75) 0%,transparent 65%);
}

/* 40 particles — mix of dust (d) and snow (s) with varied positions/timing */
.p1  {width:3px; height:3px; left:3%;  animation-duration:14s;animation-delay:0s;  opacity:.5;}
.p2  {width:2px; height:2px; left:7%;  animation-duration:18s;animation-delay:2s;  opacity:.4;}
.p3  {width:4px; height:4px; left:11%; animation-duration:11s;animation-delay:5s;  opacity:.6;}
.p4  {width:2px; height:2px; left:15%; animation-duration:20s;animation-delay:1s;  opacity:.35;}
.p5  {width:3px; height:3px; left:19%; animation-duration:16s;animation-delay:7s;  opacity:.5;}
.p6  {width:2px; height:2px; left:23%; animation-duration:13s;animation-delay:3s;  opacity:.4;}
.p7  {width:5px; height:5px; left:27%; animation-duration:10s;animation-delay:9s;  opacity:.45;}
.p8  {width:2px; height:2px; left:31%; animation-duration:17s;animation-delay:0.5s;opacity:.35;}
.p9  {width:3px; height:3px; left:35%; animation-duration:12s;animation-delay:11s; opacity:.5;}
.p10 {width:4px; height:4px; left:39%; animation-duration:19s;animation-delay:4s;  opacity:.4;}
.p11 {width:2px; height:2px; left:43%; animation-duration:15s;animation-delay:6s;  opacity:.45;}
.p12 {width:3px; height:3px; left:47%; animation-duration:9s; animation-delay:2.5s;opacity:.5;}
.p13 {width:2px; height:2px; left:51%; animation-duration:21s;animation-delay:8s;  opacity:.3;}
.p14 {width:3px; height:3px; left:55%; animation-duration:13s;animation-delay:1.5s;opacity:.55;}
.p15 {width:4px; height:4px; left:59%; animation-duration:16s;animation-delay:10s; opacity:.4;}
.p16 {width:2px; height:2px; left:63%; animation-duration:11s;animation-delay:3.5s;opacity:.45;}
.p17 {width:3px; height:3px; left:67%; animation-duration:18s;animation-delay:6.5s;opacity:.5;}
.p18 {width:2px; height:2px; left:71%; animation-duration:14s;animation-delay:0.8s;opacity:.35;}
.p19 {width:5px; height:5px; left:75%; animation-duration:12s;animation-delay:12s; opacity:.4;}
.p20 {width:2px; height:2px; left:79%; animation-duration:20s;animation-delay:4.5s;opacity:.3;}
.p21 {width:3px; height:3px; left:83%; animation-duration:15s;animation-delay:7.5s;opacity:.5;}
.p22 {width:2px; height:2px; left:87%; animation-duration:10s;animation-delay:2.2s;opacity:.4;}
.p23 {width:4px; height:4px; left:91%; animation-duration:17s;animation-delay:9.5s;opacity:.45;}
.p24 {width:2px; height:2px; left:95%; animation-duration:13s;animation-delay:1.2s;opacity:.35;}
.p25 {width:3px; height:3px; left:5%;  animation-duration:22s;animation-delay:14s; opacity:.4;}
.p26 {width:2px; height:2px; left:13%; animation-duration:9s; animation-delay:3.8s;opacity:.5;}
.p27 {width:3px; height:3px; left:21%; animation-duration:16s;animation-delay:8.5s;opacity:.45;}
.p28 {width:4px; height:4px; left:29%; animation-duration:12s;animation-delay:0.3s;opacity:.5;}
.p29 {width:2px; height:2px; left:37%; animation-duration:19s;animation-delay:5.5s;opacity:.35;}
.p30 {width:3px; height:3px; left:45%; animation-duration:11s;animation-delay:11.5s;opacity:.55;}
.p31 {width:2px; height:2px; left:53%; animation-duration:24s;animation-delay:2.8s;opacity:.3;}
.p32 {width:5px; height:5px; left:61%; animation-duration:14s;animation-delay:7.2s;opacity:.4;}
.p33 {width:2px; height:2px; left:69%; animation-duration:10s;animation-delay:4.8s;opacity:.45;}
.p34 {width:3px; height:3px; left:77%; animation-duration:17s;animation-delay:13s; opacity:.5;}
.p35 {width:2px; height:2px; left:85%; animation-duration:13s;animation-delay:1.8s;opacity:.35;}
.p36 {width:4px; height:4px; left:93%; animation-duration:20s;animation-delay:6.2s;opacity:.4;}
.p37 {width:2px; height:2px; left:9%;  animation-duration:15s;animation-delay:9.2s;opacity:.5;}
.p38 {width:3px; height:3px; left:25%; animation-duration:11s;animation-delay:3.2s;opacity:.45;}
.p39 {width:2px; height:2px; left:57%; animation-duration:18s;animation-delay:15s; opacity:.3;}
.p40 {width:3px; height:3px; left:73%; animation-duration:12s;animation-delay:5.8s;opacity:.5;}

@keyframes particleFall {
  0%  {transform:translateY(0)    translateX(0)    scale(1);   opacity:0;}
  5%  {opacity:1;}
  /* Slight horizontal sway for snow effect */
  25% {transform:translateY(25vh)  translateX(6px)  scale(1.1);}
  50% {transform:translateY(50vh)  translateX(-8px) scale(1.05);}
  75% {transform:translateY(75vh)  translateX(5px)  scale(0.95);}
  95% {opacity:0.7;}
  100%{transform:translateY(105vh) translateX(-4px) scale(0.8);opacity:0;}
}

/* ─── CHAT BALLOONS ─────────────────────────────────────────────────────────── */

.chat-balloon {
  position: fixed;
  z-index: 5;
  background: rgba(12,17,11,.72);
  border: 1px solid rgba(74,122,90,.22);
  border-radius: 10px;
  padding: 5px 10px;
  font-family: 'Crimson Pro', serif;
  font-size: .78rem;
  color: rgba(196,184,154,.5);
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: balloonFloat 4.5s ease-out forwards;
}

.chat-balloon::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 12px;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(74,122,90,.22);
}

.chat-balloon.is-special {
  font-size: 1.05rem;
  padding: 9px 18px;
  border-color: rgba(74,122,90,.6);
  background: rgba(12,22,13,.92);
  color: rgba(196,184,154,.92);
  animation: balloonFloat 7s ease-out forwards, balloonGlow 2.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(74,122,90,0);
}

.chat-balloon.is-special::after {
  border-top-color: rgba(74,122,90,.6);
}

@keyframes balloonGlow {
  0%   { box-shadow: 0 0 6px 1px rgba(74,122,90,.15); }
  50%  { box-shadow: 0 0 18px 4px rgba(74,122,90,.45); }
  100% { box-shadow: 0 0 6px 1px rgba(74,122,90,.15); }
}

@keyframes balloonFloat {
  0%   { opacity:0; transform:translateY(8px) scale(.92); }
  12%  { opacity:1; transform:translateY(0)   scale(1);   }
  78%  { opacity:.85; }
  100% { opacity:0; transform:translateY(-22px); }
}

.hiker-silhouette {
  position: fixed;
  z-index: 5;
  width: 22px;
  height: auto;
  pointer-events: none;
  filter: brightness(.15) contrast(1.4);
  opacity: 0;
  animation: hikerAppear 4.5s ease-out forwards;
  transform-origin: bottom center;
}

.hiker-silhouette.is-special {
  width: 30px;
  filter: brightness(.25) contrast(1.4);
  animation-duration: 7s;
}

@keyframes hikerAppear {
  0%   { opacity:0; transform:scale(.85); }
  15%  { opacity:.55; transform:scale(1); }
  78%  { opacity:.45; }
  100% { opacity:0; }
}

/* ─── VIGNETTE ──────────────────────────────────────────────────────────────── */

.bg-vignette {
  position:fixed; inset:0; z-index:1;
  background:linear-gradient(180deg,
    rgba(10,10,8,.6) 0%,transparent 30%,
    transparent 70%,rgba(10,10,8,.4) 100%);
  pointer-events:none;
  transition:background 0.8s;
}

/* ─── AUDIO CONTROLS ────────────────────────────────────────────────────────── */

.audio-controls {
  position:fixed; bottom:5.5rem; right:1.5rem; z-index:200;
  display:flex; flex-direction:column; gap:.4rem; align-items:flex-end;
}

.audio-btn {
  background:rgba(14,12,10,.65);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(196,184,154,.15);
  color:var(--fog);
  width:36px; height:36px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; border-radius:2px;
  transition:color .2s, border-color .2s, background .2s;
  padding:0;
}

.audio-btn:hover,
.audio-btn.active {
  color:var(--parchment);
  border-color:rgba(196,184,154,.4);
  background:rgba(74,122,90,.12);
}

.audio-btn svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; display:block; }

/* ─── LANG SWITCHER ─────────────────────────────────────────────────────────── */

.lang-switcher {
  position:fixed; top:1.5rem; right:1.5rem; z-index:200;
  display:flex; gap:.35rem;
}

.lang-switcher button {
  background:transparent;
  border:1px solid rgba(196,184,154,.2);
  color:var(--parchment-dim);
  font-family:'Bebas Neue',sans-serif;
  font-size:.72rem; letter-spacing:.1em;
  padding:.22rem .5rem; cursor:pointer; border-radius:2px;
  transition:color .2s, border-color .2s, background .2s;
}

.lang-switcher button:hover,
.lang-switcher button[aria-pressed="true"] {
  color:var(--ember-glow);
  border-color:var(--ember);
  background:rgba(74,122,90,.1);
}

/* ─── PAGE ──────────────────────────────────────────────────────────────────── */

.page {
  position:relative; z-index:10;
  display:flex; flex-direction:column;
}

/* ─── REVEAL ────────────────────────────────────────────────────────────────── */

.reveal {
  opacity:0; transform:translateY(32px);
  transition:opacity .75s cubic-bezier(.22,1,.36,1),transform .75s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible  {opacity:1;transform:none;}
.reveal.is-hidden   {opacity:0;transform:translateY(32px);}

.reveal-group > * {
  opacity:0;transform:translateY(24px);
  transition:opacity .6s cubic-bezier(.22,1,.36,1),transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal-group.is-visible>*:nth-child(1){opacity:1;transform:none;transition-delay:.00s;}
.reveal-group.is-visible>*:nth-child(2){opacity:1;transform:none;transition-delay:.10s;}
.reveal-group.is-visible>*:nth-child(3){opacity:1;transform:none;transition-delay:.20s;}
.reveal-group.is-visible>*:nth-child(4){opacity:1;transform:none;transition-delay:.30s;}
.reveal-group.is-hidden>*{opacity:0;transform:translateY(24px);}

/* ─── SHARED SECTION ────────────────────────────────────────────────────────── */

.section {
  position:relative; z-index:10;
  padding:var(--section-pad) clamp(1.5rem,6vw,4rem);
  max-width:var(--content-max); margin:0 auto; width:100%;
}

.section-label {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(.62rem,1.1vw,.78rem);
  letter-spacing:.5em; color:var(--ember-glow);
  margin-bottom:1.4rem; opacity:.8; display:block;
}

.section-title {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(2.2rem,6vw,4rem);
  color:var(--white); line-height:1;
  margin-bottom:1.8rem; letter-spacing:.03em;
}

.section-divider {
  width:48px; height:2px;
  background:linear-gradient(90deg,var(--ember),transparent);
  margin-bottom:2rem;
}

.section-sep {
  position:relative; z-index:10; width:100%; height:1px;
  background:linear-gradient(90deg,transparent,rgba(196,184,154,.1),transparent);
  max-width:var(--content-max); margin:0 auto;
}

/* ─── CONTACT ───────────────────────────────────────────────────────────────── */

#contact {
  min-height:75vh; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center; padding:var(--section-pad) 2rem; max-width:100%;
}

#contact .section-label,
#contact .section-title { margin-left:auto; margin-right:auto; }

#contact .section-divider {
  background:linear-gradient(90deg,transparent,var(--ember),transparent);
  margin-left:auto; margin-right:auto;
}

.contact-email {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(1.3rem,3.5vw,2.5rem);
  letter-spacing:.08em; color:var(--parchment);
  text-decoration:none;
  border-bottom:1px solid rgba(196,184,154,.2);
  padding-bottom:.2em; margin-bottom:2rem; display:inline-block;
  transition:color .3s,border-color .3s;
}

.contact-email:hover,
.contact-email:focus {color:var(--ember-glow);border-color:var(--ember);outline:none;}

.contact-links {
  display:flex; align-items:center; justify-content:center; gap:1.2rem;
}

.social-link {
  display:inline-flex; align-items:center; gap:.5rem;
  color:var(--fog); text-decoration:none;
  font-family:'Bebas Neue',sans-serif;
  font-size:.82rem; letter-spacing:.28em;
  border:1px solid rgba(122,114,104,.3);
  padding:.5rem 1.1rem; border-radius:2px;
  transition:color .25s,border-color .25s;
}

.social-link:hover,
.social-link:focus {color:var(--parchment);border-color:rgba(196,184,154,.5);outline:none;}

.social-link svg {width:17px;height:17px;flex-shrink:0;color:currentColor;}

/* ─── EXPERIENCES ───────────────────────────────────────────────────────────── */

#experiences {
  max-width:100%;
  width:100%;
  padding-bottom:calc(var(--section-pad)*1.4);
  padding-left:clamp(1.5rem,4vw,3rem);
  padding-right:clamp(1.5rem,4vw,3rem);
}
#experiences > .reveal-group {
  max-width:1920px;
  margin-left:auto;
  margin-right:auto;
}

.exp-grid {
  display:grid;
  grid-template-columns:repeat(1,1fr);
  gap:1.6rem; margin-top:.5rem;
  max-width:1920px; margin-left:auto; margin-right:auto;
}
@media (min-width:480px)  { .exp-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:768px)  { .exp-grid { grid-template-columns:repeat(3,1fr); } }
@media (min-width:1100px) { .exp-grid { grid-template-columns:repeat(4,1fr); } }
@media (min-width:1800px) { .exp-grid { grid-template-columns:repeat(6,1fr); } }

/* Featured: span 2 columns at 4-col+ layouts only */
@media (min-width:1100px) {
  .exp-card.is-featured { grid-column:span 2; }
}

.exp-card.is-featured {
  border-color:rgba(74,122,90,.3);
  background:rgba(74,122,90,.04);
}

.exp-card {
  display:flex; flex-direction:column;
  border:1px solid rgba(196,184,154,.1);
  background:rgba(20,18,15,.6);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  overflow:hidden; border-radius:2px;
  text-decoration:none; color:inherit;
  transition:border-color .3s,transform .35s cubic-bezier(.22,1,.36,1);
}

.exp-card:hover,.exp-card:focus-within {border-color:rgba(196,98,26,.5);transform:translateY(-5px);}
.exp-card:focus {outline:2px solid var(--ember-glow);outline-offset:2px;}

.exp-img-wrap {
  width:100%; aspect-ratio:16/9; overflow:hidden; background:var(--stone-mid);
}

.exp-img-wrap img {
  width:100%; height:100%; object-fit:cover; display:block;
  filter:grayscale(30%) brightness(.85);
  transition:transform .55s cubic-bezier(.22,1,.36,1),filter .55s;
}

.exp-card:hover .exp-img-wrap img,
.exp-card:focus-within .exp-img-wrap img {transform:scale(1.05);filter:grayscale(0%) brightness(.95);}

.exp-img-placeholder {
  width:100%;height:100%;display:flex;
  align-items:center;justify-content:center;
  font-family:'Bebas Neue',sans-serif;font-size:1.1rem;
  letter-spacing:.3em;color:var(--slate);
}

.exp-body {padding:1.2rem 1.4rem 1.5rem;display:flex;flex-direction:column;flex:1;gap:.45rem;}

.exp-role {
  font-family:'Bebas Neue',sans-serif;
  font-size:.68rem;letter-spacing:.4em;color:var(--ember-glow);opacity:.85;
}

.exp-title {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(1.25rem,2.4vw,1.65rem);
  color:var(--white);letter-spacing:.04em;line-height:1.1;
}

.exp-desc {
  font-family:'Crimson Pro',serif;
  font-size:clamp(.93rem,1.4vw,1.03rem);
  color:var(--parchment-dim);line-height:1.65;flex:1;
}

.exp-cta {
  margin-top:.9rem;
  font-family:'Bebas Neue',sans-serif;
  font-size:.72rem;letter-spacing:.35em;color:var(--ember);
  display:inline-flex;align-items:center;gap:.4rem;
  transition:gap .2s,color .2s;
}

.exp-card:hover .exp-cta,
.exp-card:focus-within .exp-cta {gap:.7rem;color:var(--ember-glow);}

/* ─── ABOUT ─────────────────────────────────────────────────────────────────── */

#about {padding-bottom:calc(var(--section-pad)*1.4);}

.about-body {
  font-size:clamp(1.05rem,1.9vw,1.25rem);
  line-height:1.85;color:var(--parchment);max-width:640px;
}

.about-body p+p {margin-top:1.1em;}
.about-body em {color:var(--ember-glow);font-style:italic;}

/* ─── HERO ──────────────────────────────────────────────────────────────────── */

#hero {
  min-height:100vh; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  padding:8vh 2rem 0;
  text-align:center; max-width:100%;
}

.hero-inner {display:flex;flex-direction:column;align-items:center;gap:1.1rem;}

.hero-badge {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(.68rem,1.2vw,.88rem);
  letter-spacing:.55em;color:var(--ember-glow);opacity:.9;
  animation:heroFade 1.4s .2s both;
}

.logo-img {
  max-width:min(507px,80vw);
  height:auto;
  filter:invert(1) sepia(.3) saturate(.6) brightness(.95);
  opacity:.92; animation:heroFade 1.4s .4s both;
}

.hero-divider {
  width:50px;height:2px;
  background:linear-gradient(90deg,transparent,var(--ember),transparent);
  animation:dividerPulse 4s ease-in-out infinite alternate,heroFade 1.4s .6s both;
}

@keyframes dividerPulse {
  0%  {width:36px;opacity:.5;}
  100%{width:72px;opacity:1;}
}

.hero-tagline {
  font-family:'Crimson Pro',serif;font-style:italic;
  font-size:clamp(1rem,2.1vw,1.35rem);
  color:var(--parchment);letter-spacing:.07em;
  animation:heroFade 1.4s .8s both;
}

@keyframes heroFade {
  from{opacity:0;transform:translateY(20px);}
  to  {opacity:1;transform:translateY(0);}
}

/* ─── SCROLL INDICATOR ──────────────────────────────────────────────────────── */

.scroll-indicator {
  position:fixed;bottom:1.8rem;left:50%;transform:translateX(-50%);
  z-index:100;display:flex;flex-direction:column;align-items:center;gap:.35rem;
  opacity:0;transition:opacity .5s;pointer-events:none;
}

.scroll-indicator.is-visible {opacity:.55;pointer-events:auto;}

.scroll-indicator span {
  font-family:'Bebas Neue',sans-serif;
  font-size:.58rem;letter-spacing:.45em;color:var(--parchment);
}

.scroll-mouse {width:24px;height:36px;}

@keyframes wheelDown {
  0%  {transform:translateY(0);  opacity:0;}
  30% {opacity:1;}
  100%{transform:translateY(8px);opacity:0;}
}

.scroll-wheel {animation:wheelDown 1.9s ease-in-out infinite;}

/* ─── NAV ───────────────────────────────────────────────────────────────────── */

.site-nav {
  position:fixed;bottom:2rem;left:50%;transform:translateX(-50%);
  z-index:100;display:flex;gap:clamp(1.1rem,3.5vw,2.2rem);
  background:rgba(14,12,10,.62);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  padding:.65rem 1.6rem;
  border:1px solid rgba(196,184,154,.1);border-radius:2px;
}

.site-nav a {
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(.72rem,1.3vw,.88rem);
  letter-spacing:.3em;color:var(--fog);text-decoration:none;
  transition:color .25s,letter-spacing .25s;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {color:var(--parchment);letter-spacing:.42em;outline:none;}

/* ─── MOBILE ────────────────────────────────────────────────────────────────── */

@media(max-width:600px) {
  .site-nav {gap:.9rem;padding:.55rem 1rem;bottom:1rem;}
  .lang-switcher {top:1rem;right:1rem;}
  .audio-controls {bottom:4.5rem;right:1rem;}
#contact {min-height:60vh;}
}

/* ─── REDUCED MOTION ────────────────────────────────────────────────────────── */

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important;}
  .reveal,.reveal-group>*{opacity:1 !important;transform:none !important;}
  .bg-inner{transform:none !important;}
}
