@font-face {
  font-family: "Baloo 2";
  src: url("assets/baloo2.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #173841;
  --navy: #15394b;
  --deep: #0b2430;
  --cream: #faf6e9;
  --paper: #fffdf6;
  --butter: #ffdf94;
  --sage: #cbdcb3;
  --leaf: #2f5a3a;
  --sand: #f4e1c3;
  --aqua: #c6e6f1;
  --title: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --body: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font: 500 1rem/1.6 var(--body);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #b35b3d; outline-offset: 4px; }
button, summary { font: inherit; }
.skip { position: absolute; z-index: 6; left: 1rem; top: -4rem; padding: .7rem 1rem; background: #fff; }
.skip:focus { top: 1rem; }
.shell { width: min(1320px, calc(100% - 40px)); margin-inline: auto; }
section[id] { scroll-margin-top: 1.5rem; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--title); font-weight: 700; }
p { max-width: 40rem; }
.small { font-size: .78rem; }

/* Display headline: oversized Baloo 2 Bold, not a pill. */
h2.display {
  font-size: clamp(3.4rem, 16vw, 9.5rem);
  line-height: .88;
  letter-spacing: -.045em;
}

/* Labels: Baloo 2 SemiBold in a tinted pill. */
.label {
  display: inline-block;
  width: fit-content;
  padding: .4em .9em .34em;
  border-radius: 999px;
  font: 600 .95rem/1.2 var(--title);
  letter-spacing: .01em;
}
.mint { background: #f5fbe9; color: var(--leaf); }
.aqua { color: #183743; background: var(--aqua); }

/* ---------- Navigation over the hero ---------- */
.nav-over {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(env(safe-area-inset-top, 0px) + .9rem) 1rem 0;
}
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.site-nav a {
  padding: .62rem .95rem .55rem;
  border-radius: 999px;
  background: #fffdf6ee;
  color: var(--ink);
  font: 600 .9rem/1 var(--title);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px #05141d40;
}
.site-nav a:hover { background: var(--butter); }

/* ---------- Full-viewport cinematic hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--paper);
  background: var(--deep);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-poster, .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* Eyes sit in the upper half of the 9:16 portrait. */
  object-position: center 29%;
}
.hero-video { opacity: 0; transition: opacity .6s ease; }
.hero.is-ready .hero-video { opacity: 1; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 34% at 50% 80%, #05141dd0 0%, #05141d00 100%),
    linear-gradient(180deg, #0a1d2a80 0%, #0a1d2a00 26%, #0a1d2a00 52%, #071a24b3 100%);
}
/* Content sits in the lower part of the frame so the upper eyes stay clear. */
.hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.9rem, 2.4vh, 1.5rem);
  padding: 7.5rem 1.25rem clamp(4.6rem, 12vh, 6.5rem);
  text-align: center;
}
.hero-logo { display: grid; justify-items: center; gap: .5rem; margin: 0; }
.hero-mark {
  width: clamp(132px, 30vw, 200px);
  padding: .4rem .7rem;
  border-radius: 1rem;
  background: #fffdf6e6;
  box-shadow: 0 8px 22px #05141d55;
}
.hero-bracelet {
  width: clamp(120px, 31vw, 166px);
  /* Soft mint lift around the single bracelet; no badge or border. */
  filter: drop-shadow(0 5px 8px #05141d70) drop-shadow(0 0 12px #d7f7a861);
}
.hero h1 {
  max-width: 12em;
  margin-inline: auto;
  font-size: clamp(2.35rem, 9.4vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
  text-shadow: 0 2px 22px #05141d80, 0 1px 3px #05141d55;
}
.hero em { color: #8ff0e2; font-style: normal; }
.hero mark {
  position: relative;
  display: inline-block;
  padding: .02em .22em .06em;
  margin-inline: .02em;
  color: var(--ink);
  background: var(--butter);
  border-radius: 40% 48% 36% 39% / 30% 28% 38% 35%;
  transform: rotate(-3deg);
  text-shadow: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-toggle {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1.2rem;
  padding: .5rem 1rem;
  color: var(--ink);
  background: #fffdf6e6;
  border: 0;
  border-radius: 999px;
  font: 600 .85rem/1.2 var(--title);
  cursor: pointer;
  box-shadow: 0 6px 18px #05141d40;
}
.hero-toggle:hover { background: var(--butter); }
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 2.6rem;
  aspect-ratio: 1;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid #fffdf6b3;
  border-radius: 50%;
  background: #fffdf61f;
  font-size: 1.1rem;
}
.scroll-cue:hover { background: #fffdf640; }

/* ---------- Bracelet intro (between hero and experience) ---------- */
.bracelet-intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef8f6 0%, #dff0ee 100%);
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.intro-grid { display: grid; gap: 2.8rem; align-items: center; }
.intro-photo { position: relative; isolation: isolate; margin: 0; }
.intro-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3.2rem 1.2rem 3.2rem 1.2rem;
  background: #cfe7e6;
  box-shadow: 0 .8rem 1.6rem #0f4f5c24;
}
.intro-photo::before,
.intro-photo::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 1; }
.intro-photo::before {
  top: -1.4rem;
  left: -1.2rem;
  width: 34%;
  border-radius: 46% 54% 40% 60% / 52% 44% 56% 48%;
  background: #ffd45c;
}
.intro-photo::after {
  right: -.9rem;
  bottom: -1.2rem;
  width: 22%;
  border-radius: 50%;
  background: #f08a6c;
}
.intro-photo figcaption { margin-top: .7rem; font: 500 .8rem/1.4 var(--body); color: #3d6470; }
.intro-copy { display: grid; gap: 1.2rem; justify-items: start; }
.intro-copy h2 { font-size: clamp(3rem, 7.4vw, 5.8rem); line-height: .92; letter-spacing: -.045em; color: #0f4f5c; }
.intro-block { display: grid; gap: .6rem; width: min(100%, 34rem); padding: 1.4rem 1.6rem 1.5rem; border-radius: 2rem 2rem 2rem 3rem; }
.intro-block p { font-size: 1.05rem; line-height: 1.6; }
.intro-block--cream { background: #fbf4e0; }
.intro-block--green { justify-self: end; background: #e2efd5; color: #1f3b28; border-radius: 3rem 2rem 2rem 2rem; }
.intro-block--green h3 { font: 600 clamp(1.6rem, 3.4vw, 2.2rem)/1.05 var(--title); color: var(--leaf); letter-spacing: -.01em; }

/* ---------- Experience: fanned screens + detail panel ---------- */
.experience { background: var(--cream); padding-block: clamp(3.4rem, 6vw, 5.8rem); }
.exp-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.exp-head h2 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: .95; letter-spacing: -.04em; text-wrap: balance; }
.fineprint { font-size: .85rem; color: #4c6470; }
.screen-note { margin-top: 1rem; }
.screen-credits { margin-top: .45rem; color: #4c6470; font-size: .84rem; }
.screen-credits summary { cursor: pointer; }
.screen-credits p { margin-top: .4rem; }
.exp-stage { display: grid; gap: 2rem; align-items: start; }
.fan-area { position: relative; min-width: 0; }
/* Shared pale shape behind the fanned hand. */
.fan-area::before {
  content: "";
  position: absolute;
  inset: 6% 0 2%;
  border-radius: 48% 52% 44% 56% / 40% 46% 54% 60%;
  background: #e3f2ee;
}
.fan-hint { position: relative; display: flex; justify-content: space-between; gap: .6rem; margin-bottom: .2rem; font: 600 .95rem/1.2 var(--title); color: #2d5560; }
.swipe-hint { white-space: nowrap; }
/* Phones: the strip is the only horizontal scroller. */
.fan-strip {
  position: relative;
  margin-inline: -20px;
  padding-inline: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}
.fan { position: relative; display: flex; align-items: flex-end; width: max-content; margin: 0; padding: 2.2rem 1rem 1rem; list-style: none; }
.fan-item { position: relative; flex: 0 0 auto; margin-inline: -.3rem; scroll-snap-align: center; --r: -4deg; --y: .8rem; }
.fan-item:nth-child(2) { --r: -1.5deg; --y: .2rem; }
.fan-item:nth-child(3) { --r: 1.5deg; --y: .2rem; }
.fan-item:nth-child(4) { --r: 4deg; --y: .8rem; }
.fan-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .4rem;
  width: clamp(150px, 12.5vw, 184px);
  min-height: 44px;
  padding: 0 0 .2rem;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transform: translateY(var(--y)) rotate(var(--r));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.fan-card img { width: 100%; filter: drop-shadow(0 .6rem .7rem #17384140); }
.fan-name {
  max-width: 100%;
  padding: .25rem .65rem .3rem;
  border-radius: 999px;
  background: var(--paper);
  font: 600 .82rem/1.2 var(--title);
  text-align: center;
  box-shadow: 0 3px 10px #17384118;
}
.fan-card:hover { transform: translateY(calc(var(--y) - .4rem)) rotate(calc(var(--r) * .4)); }
/* Selected card rises upright in front; neighbours stay visible. */
.fan-card.is-selected { z-index: 5; transform: translateY(-1rem) rotate(0deg) scale(1.06); }
.fan-card.is-selected .fan-name { background: var(--butter); }

/* Detail panel: accent changes with the selected feature. */
.detail-stage {
  --accent: #2f5a3a;
  --accent-text: #2f5a3a;
  --tint: #e4f1d6;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: .9rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 2.4rem 2.4rem 2.4rem 6rem;
  background: var(--tint);
  transition: background-color .5s ease;
}
.detail-stage::before {
  content: "";
  position: absolute;
  top: -2.2rem;
  right: -2.2rem;
  width: 7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  opacity: .16;
  transition: background-color .5s ease;
}
.detail-stage[data-feature="routes"] { --accent: #2f5a3a; --accent-text: #2f5a3a; --tint: #e4f1d6; }
.detail-stage[data-feature="activity"] { --accent: #f2b632; --accent-text: #7a5300; --tint: #fdf1c9; }
.detail-stage[data-feature="postcards"] { --accent: #1f7a8c; --accent-text: #0f4f5c; --tint: #d9eef2; }
.detail-stage[data-feature="certificate"] { --accent: #e9866a; --accent-text: #8c3b24; --tint: #fbe0d6; }
.detail { position: relative; z-index: 1; display: grid; gap: .9rem; align-content: start; }
.detail h3 { font: 700 clamp(2.2rem, 4.6vw, 3.4rem)/1 var(--title); letter-spacing: -.02em; color: var(--accent-text); }
.detail > p { font-size: 1.02rem; }
.detail details { font-size: .95rem; }
.detail summary { cursor: pointer; font-weight: 600; color: var(--accent-text); text-underline-offset: .24em; }
.detail summary:hover { text-decoration: underline; }
.detail details > p, .detail details > .postcard, .detail details > .legend { margin-top: .5rem; }
.legend { display: grid; gap: .4rem; margin: .5rem 0 0; padding: 0; list-style: none; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: .55rem; }
.key { flex: 0 0 auto; width: 1.4rem; height: .9rem; border-radius: .3rem; }
.key-line { border-top: 2px dashed #2f5a3a; background: transparent; height: 0; border-radius: 0; }
.key-area { background: #9fc68a80; border: 1px solid #5b8a54; }
.key-dot { width: .7rem; height: .7rem; border-radius: 50%; background: #d9643d; margin-inline: .35rem; }

/* ---------- Ranger Track ---------- */
.ranger { background: var(--sage); color: #1f3b28; padding-block: clamp(4rem, 9vw, 8rem); }
.ranger h2.display { color: var(--leaf); }
.ranger-split { display: grid; gap: 2.2rem; align-items: center; }
.ranger-copy { display: grid; gap: .9rem; justify-items: start; }
.subhead { font: 600 clamp(1.8rem, 4.6vw, 3.1rem)/1.08 var(--title); color: #1f3b28; letter-spacing: -.01em; }
.sentence { font-size: 1.12rem; }
.detail { font-size: .98rem; color: #2d4a36; }
.ranger-photo { margin: 0; }
.ranger-photo img { width: 100%; border-radius: 2rem 2rem 6rem 2rem; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { margin-top: .55rem; font-size: .8rem; color: #3b5a43; }
.species-grid { display: grid; gap: 1rem; margin-top: 1.2rem; }
.species {
  display: grid;
  gap: .9rem;
  align-content: start;
  padding: .8rem .8rem 1.1rem;
  border-radius: 1.4rem;
  background: var(--tint);
}
.species figure { margin: 0; }
.species img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.05rem; }
.species figcaption { margin-top: .4rem; font-size: .74rem; }
.species-copy { display: grid; gap: .45rem; padding-inline: .3rem; }
.species h4 { font-size: 1.7rem; line-height: 1; letter-spacing: -.02em; }
.species .prompt { font-weight: 600; color: #173841; }
.species p { font-size: .95rem; }
.species details { margin-top: .2rem; font-size: .88rem; }
.species summary { cursor: pointer; text-underline-offset: .2em; }
.t-lion { --tint: #f7d9c8; }
.t-giraffe { --tint: #fbeebd; }
.t-cheetah { --tint: #d5e9f2; }
.t-elephant { --tint: #e7dcf4; }

/* ---------- Migration Track (deep ocean module) ---------- */
.ocean { background: var(--navy); color: #f6f3e7; padding-block: clamp(4rem, 9vw, 8rem); }
.ocean h2.display { color: var(--paper); }
.ocean-head { display: grid; gap: 1rem; justify-items: start; }
.ai-plus { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; font-size: 1.05rem; color: #d4e6e8; }
.ai-badge {
  display: inline-block;
  padding: .12em .45em .08em;
  border-radius: 40% 48% 36% 39%;
  background: var(--butter);
  color: var(--navy);
  font: 700 clamp(1.8rem, 4vw, 2.8rem)/1 var(--title);
  transform: rotate(-3deg);
}
.ocean-photo { margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.ocean-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3rem 1.4rem 3rem 1.4rem; }
.ocean-photo figcaption { color: #b9d3d9; }
.ocean-grid { display: grid; gap: 2.4rem; margin-top: clamp(2.4rem, 5vw, 3.5rem); }
.ocean-story { display: grid; gap: .9rem; justify-items: start; }
.ocean-story p { max-width: 36rem; }
.seasons { margin: .5rem 0; padding: 0 0 0 1.1rem; list-style: none; border-left: 1px dashed #91b8c4; }
.seasons li { position: relative; margin: 0 0 .8rem; }
.seasons li::before { content: ""; position: absolute; top: .6rem; left: -1.33rem; width: .45rem; aspect-ratio: 1; border-radius: 50%; background: #fcd490; }
.seasons span { display: block; color: #d4e6e8; font-size: .92rem; }
.ocean details { width: 100%; }
.ocean summary { cursor: pointer; font-weight: 600; text-underline-offset: .24em; }
.ocean summary:hover { text-decoration: underline; }
.postcard { margin-top: .85rem; padding: 1rem 1.2rem; border-radius: .8rem; color: #193c48; background: #f5e7ce; }
.postcard p { margin: .35rem 0; }
.story-card {
  display: grid;
  align-content: start;
  gap: .8rem;
  justify-items: start;
  padding: 1.7rem;
  border-radius: 1.8rem 1.8rem 1.8rem 5rem;
  background: #1f4d63;
}
.story-card h3 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--paper); }
.story-card p { color: #e6f0f2; }
.story-card .small { color: #b9d3d9; }

/* ---------- About Us (warm closing block) ---------- */
.about { background: var(--sand); padding-block: clamp(4rem, 9vw, 8rem); }
.about-grid { display: grid; gap: 2.4rem; align-items: center; }
.about-photo {
  margin: 0;
  padding: 9%;
  background: radial-gradient(ellipse at center, #fdf3dc, #efd0b3);
  border-radius: 45% 50% 47% 37% / 41% 45% 49% 49%;
}
.about-photo img { filter: drop-shadow(0 .75rem .45rem #76524233); }
.about-copy { display: grid; gap: .95rem; justify-items: start; }
.about-copy h2 { font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .95; letter-spacing: -.04em; }
.amazon-note { display: inline-block; padding: .45rem .95rem; border-radius: 999px; background: #e2ebd4; font: 600 .9rem/1.2 var(--title); }
.method { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.2rem; border-top: 1px solid #d9c3a0; display: grid; gap: .6rem; }
.method h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.method p { font-size: .93rem; }

/* ---------- Footer and owner control ---------- */
.footer { background: var(--cream); border-top: 1px solid #dedacd; padding-block: 1.6rem 1.4rem; font-size: .9rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { width: 96px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.owner { margin-top: 1.6rem; padding: .9rem 1rem; border: 1px dashed #b9b29a; border-radius: 1rem; background: #f3efe0; font-size: .9rem; }
.owner summary { color: #4a5a48; font-weight: 600; cursor: pointer; }
.owner-body { display: grid; gap: .7rem; margin-top: .9rem; max-width: 36rem; }
.owner-body > p { color: #4a5a48; }
.owner-label { font-weight: 600; }
.owner-file { font: inherit; max-width: 100%; }
.owner-status { min-height: 1.55em; color: var(--ink); }
.owner-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.owner-restore {
  padding: .5rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #c5cdba;
  border-radius: 3rem;
  cursor: pointer;
}
.owner-restore:hover { background: #e4eed8; }

/* ---------- Breakpoints (mobile-first) ---------- */
@media (min-width: 600px) {
  .species-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  /* Hero lockup: logo and bracelet sit side by side; the bracelet drops
     slightly and tilts so the lockup is off-centre while the headline stays centred. */
  .hero-logo { grid-auto-flow: column; align-items: center; column-gap: 1.1rem; }
  .hero-bracelet { transform: translate(.4rem, 1.1rem) rotate(-6deg); }
  .shell { width: min(1320px, calc(100% - 104px)); }
  .intro-grid { grid-template-columns: 1.1fr .9fr; gap: 5rem; }
  .exp-stage { grid-template-columns: 1.2fr .8fr; gap: 3.2rem; align-items: center; }
  .swipe-hint { display: none; }
  .fan-strip { margin-inline: 0; padding-inline: 0; overflow: visible; }
  .fan { width: 100%; justify-content: center; padding: 2.8rem 0 1.6rem; }
  .fan-item { flex: 0 1 clamp(120px, 25%, 184px); min-width: 0; margin-inline: -.4rem; }
  .fan-card { width: 100%; }
  .fan-item:nth-child(1) { --r: -9deg; --y: 1.4rem; }
  .fan-item:nth-child(2) { --r: -3.5deg; --y: .3rem; }
  .fan-item:nth-child(3) { --r: 3.5deg; --y: .3rem; }
  .fan-item:nth-child(4) { --r: 9deg; --y: 1.4rem; }
  .ranger-split { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; }
  .ranger-photo { grid-row: auto; }
  .ocean-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: start; }
  .about-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
}

@media (min-width: 1100px) {
  .species-grid { grid-template-columns: repeat(4, 1fr); gap: .9rem; }
  .species { padding: .7rem .7rem 1rem; }
}

@media (max-width: 370px) {
  .site-nav a { font-size: .8rem; padding: .55rem .75rem .5rem; }
  .hero-inner { padding-inline: .9rem; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .hero-inner { padding-top: 5.5rem; }
  .hero h1 { font-size: clamp(2rem, 8svh, 3rem); }
  .hero-mark { width: 120px; }
  .hero-bracelet { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { transition: none; }
  .fan-card, .detail-stage, .detail-stage::before { transition: none; }
}

.species-heading { color: var(--leaf); font: 700 clamp(1.85rem, 4vw, 3.2rem)/1 var(--title); margin: clamp(2.2rem, 6vw, 4.2rem) 0 1.2rem; }
