/* Thakur Geeta Malana (TGM)
   Layout idea: one fixed 3D valley behind a single column of cream "label" cards
   that alternate sides; the rail on the right is the trail map. Colours come from
   the TGM label: forest and leaf green, cream, honey. Single theme by choice:
   the cards stay cream while the valley behind moves from morning to night. */

@font-face { font-family: "Fraunces"; src: url("fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --forest: #0f3d22;     /* label ring, top bar, footer */
  --ink: #10361f;        /* text on cream */
  --leaf: #2c7420;       /* green that passes contrast on cream */
  --cream: #fbf6e6;      /* card ground */
  --honey: #e9a21b;      /* the one warm accent, never used for small text on cream */
  --muted: #47594c;      /* secondary text on cream */
  --line: rgba(16, 54, 31, .22);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: #7fb4e0 linear-gradient(180deg, #6fa9de 0%, #dcecf4 30%, #5d9440 62%, #1d5a30 100%) fixed;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: hidden;
}

#world {
  position: fixed; inset: 0; width: 100%; height: 100lvh;
  display: block; z-index: 0;
  opacity: 0; transition: opacity 1.2s ease;
}
.world-ready #world { opacity: 1; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; box-shadow: 0 0 0 6px var(--honey); border-radius: 3px; }
main:focus { outline: none; box-shadow: none; }

.skip {
  position: fixed; z-index: 20; left: 1rem; top: -5rem;
  padding: .7rem 1rem; background: var(--cream); color: var(--ink); font-weight: 700; border-radius: 4px;
}
.skip:focus { top: 1rem; }

/* ---------- top bar ---------- */
.top {
  position: fixed; z-index: 5; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem var(--gutter);
  background: rgba(15, 61, 34, .93); color: var(--cream);
  border-bottom: 2px solid var(--honey);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; min-height: 44px; }
.brand img { display: block; border-radius: 50%; flex: none; }
.brand-name { font: 500 1.15rem/1.1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.top-btn, .top-link {
  font: 600 .9rem/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  min-height: 40px; display: inline-flex; align-items: center; padding: 0 .95rem; border-radius: 999px;
}
.top-btn { background: transparent; color: var(--cream); border: 1.5px solid rgba(251, 246, 230, .7); }
.top-btn:hover { background: rgba(251, 246, 230, .14); }
.top-link { background: var(--honey); color: #1c1305; border: 1.5px solid var(--honey); }
.top-link:hover { background: #ffc04d; }
.no-webgl #motion { display: none; }

/* ---------- trail rail ---------- */
.rail {
  position: fixed; z-index: 4; right: var(--gutter); top: 50%; transform: translateY(-50%);
  --p: 0;
}
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; position: relative; }
.rail ol::before, .rail ol::after {
  content: ""; position: absolute; right: 8px; top: 16px; bottom: 16px; width: 3px; border-radius: 2px;
  background: rgba(251, 246, 230, .85); box-shadow: 0 0 0 1px rgba(15, 61, 34, .5);
}
.rail ol::after { background: var(--honey); box-shadow: none; transform-origin: top; transform: scaleY(var(--p)); }
.rail a {
  position: relative; z-index: 1; min-height: 32px;
  display: flex; align-items: center; justify-content: flex-end; gap: .6rem;
  text-decoration: none; font-size: .82rem; font-weight: 600;
}
.rail .lbl {
  padding: .28rem .65rem; border-radius: 999px; line-height: 1.2;
  background: rgba(15, 61, 34, .9); color: var(--cream);
}
.rail .dot {
  width: 19px; height: 19px; border-radius: 50%; flex: none;
  background: var(--cream); border: 3px solid var(--forest);
  transition: transform .25s ease, background .25s ease;
}
.rail a:hover .lbl { background: var(--forest); text-decoration: underline; }
.rail a.passed .dot { background: var(--honey); }
.rail a[aria-current="true"] .lbl { background: var(--honey); color: #1c1305; }
.rail a[aria-current="true"] .dot { background: var(--honey); transform: scale(1.25); }

/* ---------- stops ---------- */
main { position: relative; z-index: 2; }
.stop {
  min-height: 135vh;
  display: flex; align-items: center;
  padding: 6rem var(--gutter);
}
.stop[data-side="right"] { justify-content: flex-end; padding-right: calc(var(--gutter) + 12rem); }
.stop[data-side="left"] { justify-content: flex-start; }
.hero { min-height: 100vh; padding-top: 6.5rem; }

.hero-card, .panel {
  background: rgba(251, 246, 230, .95);
  border-top: 4px solid var(--leaf);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 26px 60px -28px rgba(8, 30, 16, .75), 0 0 0 1px rgba(16, 54, 31, .12);
}
.hero-card {
  display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem);
  width: min(100%, 50rem); padding: clamp(1.3rem, 3vw, 2.4rem);
}
.hero-logo { display: block; flex: none; width: clamp(9rem, 22vw, 17rem); height: auto; border-radius: 50%; filter: drop-shadow(0 10px 18px rgba(8, 30, 16, .35)); }
.hero-copy { min-width: 0; }

.eyebrow {
  margin: 0 0 .8rem; font-size: .82rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--leaf);
}
.eyebrow .num { font-variant-numeric: tabular-nums; margin-right: .6em; padding-right: .7em; border-right: 2px solid currentColor; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; color: var(--forest); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: .96; letter-spacing: -.03em; }
h1 em { font-style: italic; color: var(--leaf); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.06; letter-spacing: -.02em; }
h3 { font-size: 1.35rem; line-height: 1.15; }

.sub { margin: .7rem 0 0; font: italic 500 1.25rem/1.3 var(--font-display); color: var(--ink); }
.sub [lang="hi"] { font-style: normal; font-family: var(--font-body); font-size: 1.05rem; margin-left: .4em; color: var(--muted); }
.lede { max-width: 32rem; margin: 1rem 0 0; font-size: 1.08rem; line-height: 1.5; }
.cue {
  display: inline-flex; gap: .6rem; align-items: center; margin-top: 1.3rem; min-height: 44px;
  font-weight: 700; text-decoration: none; padding: 0 1.2rem; border-radius: 999px;
  background: var(--forest); color: var(--cream);
}
.cue:hover { background: #17552f; }
.cue span { display: inline-block; animation: nudge 1.8s ease-in-out 3; }
@keyframes nudge { 50% { transform: translateY(4px); } }

.panel { width: min(100%, 29rem); padding: clamp(1.4rem, 2.6vw, 2.2rem); }
.panel-wide { width: min(100%, 36rem); }
.panel p { margin: 1rem 0 0; max-width: 62ch; }
.panel .eyebrow { margin: 0 0 .9rem; }

.facts { list-style: none; margin: 1.4rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; }
.facts li { font-size: .88rem; color: var(--muted); display: flex; flex-direction: column; }
.facts strong { font: 500 1.5rem/1.1 var(--font-display); color: var(--forest); font-variant-numeric: tabular-nums; }

.goods { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }
.good { flex: 1 1 13rem; min-width: 0; padding: 1.1rem 1.1rem 1.2rem; background: #fffdf6; border: 1px solid var(--line); border-left: 4px solid var(--honey); border-radius: 4px; }
.good p { margin: .45rem 0 .9rem; color: var(--muted); font-size: .98rem; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: .3rem .65rem; border-radius: 999px; border: 1.5px solid var(--leaf); color: var(--leaf); }
.contact { color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 3rem;
  padding: 1.8rem var(--gutter) 2.2rem;
  background: var(--forest); color: var(--cream); border-top: 3px solid var(--honey);
  font-size: .9rem;
}
.foot-brand { display: flex; align-items: center; gap: .9rem; }
.foot-brand img { display: block; border-radius: 50%; }
.foot-brand p { margin: 0; font: italic 500 1.15rem/1.3 var(--font-display); }
.foot-brand strong { font-style: normal; display: block; letter-spacing: .08em; }
.foot-notes { list-style: none; margin: 0; padding: 0; max-width: 40rem; display: grid; gap: .25rem; color: #e4ead9; }

/* ---------- phones and tablets held upright: scene on top, card pinned to the bottom ---------- */
@media (max-width: 860px) {
  .brand-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .top-btn, .top-link { padding: 0 .8rem; font-size: .86rem; }
  .rail { right: .3rem; }
  .rail .lbl { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rail ol { gap: .45rem; }
  .rail a { padding-left: 13px; }
}
@media (max-width: 860px) and (orientation: portrait), (max-width: 560px) {
  body { font-size: 1rem; }
  .stop, .stop[data-side="right"] {
    align-items: flex-end; justify-content: flex-start; min-height: 150vh;
    padding: 5rem 2.9rem 1rem var(--gutter);
  }
  .panel, .panel-wide {
    width: 100%; padding: 1.1rem 1.15rem 1.2rem;
    position: sticky; bottom: max(.9rem, env(safe-area-inset-bottom));
  }
  .panel p { margin-top: .7rem; line-height: 1.5; }
  .panel .eyebrow { margin-bottom: .55rem; font-size: .76rem; }
  h2 { font-size: 1.6rem; }
  .facts { margin-top: .9rem; padding-top: .8rem; gap: .5rem 1.8rem; }
  .facts strong { font-size: 1.3rem; }
  .goods { gap: .6rem; margin-top: .9rem; }
  .good { flex-basis: 100%; padding: .7rem .85rem .8rem; }
  .good h3 { font-size: 1.15rem; }
  .good p { margin: .15rem 0 .5rem; font-size: .92rem; }
  .good .pill { font-size: .72rem; }
  .contact { font-size: .9rem; }

  .hero { min-height: 100vh; min-height: 100svh; padding: 5rem 2.9rem 1.2rem var(--gutter); }
  .hero-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .2rem .9rem; padding: 1.1rem 1.15rem 1.25rem; width: 100%; }
  .hero-logo { width: 5.2rem; grid-row: 1; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { grid-column: 1 / -1; grid-row: 2; margin: .7rem 0 0; font-size: .74rem; }
  h1 { grid-column: 2; grid-row: 1; font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .sub { grid-column: 1 / -1; margin-top: .3rem; font-size: 1.1rem; }
  .lede { grid-column: 1 / -1; margin-top: .5rem; font-size: 1rem; }
  .cue { grid-column: 1 / -1; justify-self: start; margin-top: .9rem; }
}

/* ---------- phones held sideways: slim card beside the scene ---------- */
@media (max-height: 520px) and (orientation: landscape) and (min-width: 561px) {
  body { font-size: .92rem; }
  .rail .lbl { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rail ol { gap: .2rem; }
  .rail a { padding-left: 13px; }
  .stop { min-height: 170vh; padding: 4.2rem var(--gutter) 1rem; align-items: center; }
  .stop[data-side="right"] { justify-content: flex-end; padding-right: calc(var(--gutter) + 3.2rem); }
  .stop[data-side="left"] { justify-content: flex-start; }
  .panel, .panel-wide { width: min(46vw, 25rem); padding: .85rem 1rem 1rem; position: sticky; top: 4.2rem; }
  .panel p { margin-top: .5rem; line-height: 1.45; }
  .panel .eyebrow { margin-bottom: .4rem; font-size: .72rem; }
  h2 { font-size: 1.35rem; }
  .facts { margin-top: .6rem; padding-top: .55rem; gap: .3rem 1.4rem; }
  .facts strong { font-size: 1.15rem; }
  .goods { gap: .5rem; margin-top: .6rem; }
  .good { flex-basis: 100%; padding: .5rem .7rem; }
  .good h3 { font-size: 1.05rem; }
  .good p { margin: .1rem 0 .35rem; }
  .hero { min-height: 100vh; padding-top: 4.2rem; }
  .hero-card { width: min(62vw, 34rem); padding: .9rem 1.1rem; gap: 1rem; }
  .hero-logo { width: 6.5rem; }
  h1 { font-size: 2rem; }
  .sub { font-size: 1rem; margin-top: .3rem; }
  .lede { margin-top: .4rem; font-size: .92rem; }
  .cue { margin-top: .6rem; min-height: 40px; }
  .eyebrow { margin-bottom: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue span { animation: none; }
  #world { transition: none; }
  .rail .dot { transition: none; }
}
