/* Wellome · one line, one journey */

/* ---------- self-hosted fonts (Poppins stands in for Human Sans until the web licence is settled) ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anek Malayalam";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/anek-malayalam-400-malayalam.woff2") format("woff2");
  unicode-range: U+0307, U+0323, U+0964-0965, U+0D02-0D7F, U+1CDA, U+1CF2, U+200C-200D, U+20B9, U+25CC;
}

:root {
  --green: #013023;
  --orange: #fbb040;
  --cream: #f6e7c7;
  --mist: #a8c5b5;
  --white: #ffffff;
  --ink-on-cream: #2e4a3f;
  --font: "Poppins", "Human Sans", system-ui, -apple-system, sans-serif;
  --font-ml: "Anek Malayalam", "Poppins", sans-serif;
  --cta-h: 118px;
  --stage-h: 44dvh;
  --len: 1120;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--green);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  transition: background-color .8s ease, color .8s ease;
}
body.arrived { background: var(--cream); color: var(--green); }

[hidden] { display: none !important; }
.defs { position: absolute; }


/* ---------- line art tokens ---------- */
.ln {
  fill: none;
  stroke: var(--white);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Static story: one stroke weight whatever the art is scaled to.
   The walk sets --sw itself instead, because non-scaling-stroke and
   stroke-dasharray do not combine reliably in Chrome. */
html:not(.js) .ln { vector-effect: non-scaling-stroke; }
html.js .stage .ln { stroke-width: var(--sw, 3.4); vector-effect: none; }
.ln.accent { stroke: var(--orange); }
.dot { fill: var(--white); }
.dot.accent { fill: var(--orange); }
body.arrived .ln { stroke: var(--green); }
body.arrived .ln.accent { stroke: var(--orange); }
body.arrived .dot { fill: var(--green); }
@media (max-width: 820px) {
  html:not(.js) .ln { stroke-width: 2.8; }
}

/* ---------- typography ---------- */
.eyebrow {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 10px; font-weight: 500;
}
h1, h2 {
  font-weight: 600; line-height: 1.15; letter-spacing: -.01em;
  margin: 0 0 14px; color: var(--white);
  font-size: clamp(1.45rem, 3.4vw, 2.5rem);
}
.beat p { margin: 0 0 12px; line-height: 1.6; color: var(--mist); font-size: clamp(.95rem, 1.35vw, 1.1rem); }
.beat p.said { color: var(--white); }
.beat p.mal { font-family: var(--font-ml); font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: var(--green); margin-top: 4px; }
.beat p.note { font-size: .92rem; max-width: 46ch; }
body.arrived h1, body.arrived h2, body.arrived .beat p.said { color: var(--green); }
body.arrived .beat p { color: var(--ink-on-cream); }
body.arrived .eyebrow { color: #b0782a; }

/* ======================================================
   STATIC STORY (no JS, reduced motion, weak device)
   Every line already drawn. This is the real site for
   a meaningful share of visitors.
   ====================================================== */
.station {
  max-width: 1040px; margin: 0 auto;
  padding: 48px 22px 40px;
}
.station .art { width: 100%; height: auto; max-height: 48vh; display: block; }
.station .beat { max-width: 60ch; margin: 8px auto 0; }
.station-plain .art { display: none; }
.station.arrive {
  max-width: none; background: var(--cream); color: var(--green);
  text-align: center; padding: 72px 22px 72px;
}
.station.arrive .beat { margin: 24px auto 0; }
.station.arrive h2, .station.arrive .beat p.said { color: var(--green); }
.station.arrive .beat p { color: var(--ink-on-cream); }
.station.arrive .eyebrow { color: #b0782a; }
.station.arrive .ln { stroke: var(--green); }

/* the fern is the button */
.fern {
  display: inline-block;
  width: clamp(130px, 28vh, 230px);
  aspect-ratio: 1 / 1;
  border-radius: 20%;
  text-decoration: none;
  transition: transform .25s ease;
}
.fern svg { width: 100%; height: 100%; display: block; }
.fern:hover, .fern:focus-visible { transform: translateY(-3px) scale(1.02); }
.fern:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; }

/* ======================================================
   PINNED JOURNEY (html.js)
   ====================================================== */
html.js .station { display: none; }
html.js .track { height: calc(var(--len) * 1vh + 100dvh - var(--top-h, 72px)); position: relative; }
html.js .pin {
  position: sticky; top: var(--top-h, 72px); height: calc(100dvh - var(--top-h, 72px)); overflow: hidden;
}
.stage {
  position: absolute; left: 0; right: 0; top: 0;
  height: 100%;
  overflow: hidden;
}
.world-svg, .walker-svg {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  display: block; overflow: visible;
}
.walker-svg { pointer-events: none; }
#walker { opacity: 1; }

.clips { position: absolute; inset: 0; pointer-events: none; }
.clip {
  position: absolute; display: none; overflow: hidden;
  background: transparent;
}
.clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-round { border-radius: 50%; opacity: .32; }
.clip.dead { display: none !important; }

html.js .fern {
  position: absolute; opacity: 0; pointer-events: none; visibility: hidden;
  width: auto; aspect-ratio: auto;
}
html.js .fern.on { pointer-events: auto; visibility: visible; }

/* copy over the scene */
.copy {
  position: absolute; left: 0; right: 0;
  top: 6vh; height: 34vh;
  display: block; pointer-events: none;
}
.copy .beat {
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: min(92vw, 62ch);
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.copy .beat.on { pointer-events: auto; }
.copy .beat p { margin-left: auto; margin-right: auto; max-width: 58ch; }
.copy .beat p.note { max-width: 46ch; }

/* mobile: scene on top, words underneath, button at the bottom */
@media (max-width: 820px) {
  .stage { height: var(--stage-h); }
  .copy {
    top: var(--stage-h); height: auto; bottom: var(--cta-h);
    padding: 14px 22px 0;
  }
  .copy .beat {
    left: 22px; right: 22px; transform: none; width: auto;
    text-align: left;
  }
  .copy .beat p { margin-left: 0; }
  .copy .beat h1, .copy .beat h2 { font-size: 1.4rem; margin-bottom: 10px; }
  .copy .beat p { font-size: .95rem; line-height: 1.5; margin-bottom: 9px; }
  .copy .beat p.mal { font-size: 1.15rem; }
  .copy .beat p.note { font-size: .86rem; }
  .eyebrow { font-size: .72rem; margin-bottom: 6px; }
  .station { padding-top: 40px; }
}

/* ---------- persistent WhatsApp bar ---------- */
.cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(to top, rgba(1, 48, 35, .97) 55%, rgba(1, 48, 35, 0));
  transition: opacity .4s ease, background .8s ease;
}
body.arrived .cta { background: linear-gradient(to top, rgba(246, 231, 199, .97) 55%, rgba(246, 231, 199, 0)); }
.cta a {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--green);
  font-weight: 600; font-size: 1.02rem; text-decoration: none;
  padding: 14px 26px; border-radius: 999px;
  min-height: 48px;
  transition: transform .18s ease, filter .18s ease;
}
.cta a:hover, .cta a:focus-visible { transform: translateY(-2px); filter: brightness(1.05); }
.cta a:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
body.arrived .cta a:focus-visible { outline-color: var(--green); }
.cta a svg { width: 20px; height: 20px; fill: var(--green); }
.disclose {
  margin: 10px auto 0; max-width: 48ch;
  font-size: .8rem; line-height: 1.45; color: var(--mist);
}
body.arrived .disclose { color: var(--ink-on-cream); }
body.at-end .cta { opacity: 0; pointer-events: none; visibility: hidden; }


/* ---------- shared footer needs room above the journey bar ---------- */
body.journey .foot { padding-bottom: calc(40px + var(--cta-h)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
