/* ==========================================================
   Design tokens
   Palette drawn from the work itself: macadamia leaf green,
   blossom yellow, and the pink of the Bridging Fields sketchnotes.
   ========================================================== */
:root {
  --leaf: #173a2a;
  --leaf-soft: #24543d;
  --paper: #eef2e7;
  --surface: #ffffff;
  --surface-2: #e2e9da;
  --text: #13241b;
  --text-muted: #4b5e52;
  --blossom: #f2c230;
  --pink: #e0457b;
  --lake: #1d6e78;
  --line: rgba(19, 36, 27, 0.14);
  --on-dark: #f3f6ef;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.2rem, 1.6rem + 3vw, 3.75rem);
  --step-4: clamp(3rem, 1.6rem + 7vw, 7.5rem);

  --radius-sm: 6px;
  --radius-lg: 22px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --max: 1180px;

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1f17;
    --surface: #17301f;
    --surface-2: #1d3a28;
    --text: #e8efe4;
    --text-muted: #a9bcae;
    --line: rgba(232, 239, 228, 0.16);
    --leaf: #0b1a12;
    --leaf-soft: #2f6a4c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1f17;
  --surface: #17301f;
  --surface-2: #1d3a28;
  --text: #e8efe4;
  --text-muted: #a9bcae;
  --line: rgba(232, 239, 228, 0.16);
  --leaf: #0b1a12;
  --leaf-soft: #2f6a4c;
  color-scheme: dark;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 750; font-stretch: 85%; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-intro { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-intro p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.45; }
.hand { font-family: var(--font-hand); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.25rem; border-radius: 999px;
  font: 650 var(--step--1)/1 var(--font-display);
  text-decoration: none; border: 2px solid currentColor;
  cursor: pointer; background: none; color: inherit;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--blossom); border-color: var(--blossom); color: #13241b; }
.btn-pink { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ==========================================================
   Navigation
   ========================================================== */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.nav-name { font: 750 1.05rem/1 var(--font-display); text-decoration: none; margin-right: auto; }
.nav-links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font: 550 var(--step--1)/1 var(--font-display); color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.passport-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem .45rem .45rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font: 650 var(--step--1)/1 var(--font-display); cursor: pointer;
}
.ring { width: 30px; height: 30px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .track { stroke: var(--surface-2); }
.ring .bar { stroke: var(--pink); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 520px) { .passport-label { display: none; } }
.nav-name { white-space: nowrap; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: grid; align-items: end; color: var(--on-dark);
  background: var(--leaf) center/cover no-repeat;
  isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,26,18,.15) 0%, rgba(11,26,18,.1) 35%, rgba(11,26,18,.88) 100%);
}
.hero-inner { padding-block: 7rem clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 1.5rem; }
.hero-note {
  position: absolute; bottom: clamp(13rem, 20vw, 16rem); right: var(--gutter);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: #fff; max-width: 15rem;
  transform: rotate(-4deg); text-shadow: 0 2px 10px rgba(0,0,0,.45); line-height: 1.1;
}
.hero-note svg { width: 70px; height: 60px; margin: .3rem 0 0 2rem; }
@media (max-width: 1000px) { .hero-note { display: none; } }
.hero h1 {
  font-size: var(--step-4); font-weight: 800; font-stretch: 78%;
  letter-spacing: -0.035em; line-height: .88;
}
.hero h1 .surname { display: block; color: var(--blossom); }
.hero-lede { font-size: var(--step-1); line-height: 1.45; max-width: 40ch; color: #e6eee2; }
.doors { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.door {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.1rem; border-radius: var(--radius-sm);
  font: 700 var(--step--1)/1.1 var(--font-display); text-decoration: none;
  color: #13241b; background: var(--blossom);
  transform: rotate(var(--tilt, 0deg)); transition: transform .2s ease;
}
.door:nth-child(2) { background: var(--pink); color: #fff; --tilt: 1.5deg; }
.door:nth-child(3) { background: var(--on-dark); --tilt: -1deg; }
.door:nth-child(4) { background: var(--lake); color: #fff; --tilt: 1deg; }
.door:nth-child(5) { background: #fff; --tilt: -1.5deg; }
.door:nth-child(6) { background: var(--blossom); --tilt: 1deg; }
.door:hover { transform: rotate(0) translateY(-3px); }
.door .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.socials { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font: 550 var(--step--1)/1 var(--font-display); }
.socials a { color: #dfe8db; text-underline-offset: 4px; }
.socials a:hover { color: var(--blossom); }

/* ==========================================================
   Partner marquee
   ========================================================== */
.partners { padding-block: clamp(3rem, 6vw, 4.5rem); background: var(--surface); border-block: 1px solid var(--line); overflow: hidden; }
.partners-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.partners-head h2 { font-size: var(--step-2); }
.partners-head p { color: var(--text-muted); margin: 0; }
.marquee { display: flex; gap: 1rem; width: max-content; padding-block: .5rem; animation: slide 60s linear infinite; }
.marquee.reverse { animation-direction: reverse; animation-duration: 70s; }
.marquee-row:hover .marquee { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee .dup { display: contents; }
.org {
  display: flex; align-items: center; gap: .9rem;
  padding: .55rem 1.2rem .55rem .55rem; border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line); white-space: nowrap;
}
.org-logo {
  height: 68px; min-width: 68px; padding: 6px 10px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--logo-bg, #fff);
}
.org-logo img { height: 56px; width: auto; max-width: 180px; object-fit: contain; }
.org-mark {
  height: 68px; width: 68px; border-radius: 12px; display: grid; place-items: center;
  font: 800 1.05rem/1 var(--font-display); letter-spacing: -.02em; color: #fff;
  background: var(--c, var(--leaf-soft)); flex: none;
}
.org-name { font: 700 1rem/1.1 var(--font-display); }
.org-role { font-size: .8rem; color: var(--text-muted); font-family: var(--font-body); }
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }
  .marquee .dup { display: none; }
  .door .dot { animation: none; }
}

/* ==========================================================
   Work with me
   ========================================================== */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.offer {
  position: relative; padding: 2rem 1.75rem 1.75rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem;
}
.offer:target { outline: 3px solid var(--pink); }
.offer-status {
  align-self: flex-start; padding: .3rem .7rem; border-radius: 999px;
  font: 700 .8rem/1 var(--font-display); background: var(--surface-2); color: var(--text);
  display: inline-flex; gap: .45rem; align-items: center;
}
.offer-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fa364; }
.offer h3 { font-size: var(--step-2); font-stretch: 85%; }
.offer ul { margin: 0; padding-left: 1.1rem; color: var(--text-muted); }
.offer li { margin-bottom: .35rem; }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer:nth-child(1) { border-top: 8px solid var(--blossom); }
.offer:nth-child(2) { border-top: 8px solid var(--pink); }
.offer:nth-child(3) { border-top: 8px solid var(--lake); }
.offer:nth-child(4) { border-top: 8px solid var(--leaf-soft); }
.offer:nth-child(5) { border-top: 8px solid var(--blossom); }
.offer:nth-child(6) { border-top: 8px solid var(--pink); }

/* ==========================================================
   About
   ========================================================== */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.also { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; align-items: center; }
.also span { font: 650 .85rem/1 var(--font-display); padding: .45rem .8rem; border-radius: 999px; background: var(--surface-2); }
.about-photo .hand {
  position: absolute; bottom: -1.2rem; left: 1rem; background: var(--blossom); color: #13241b;
  padding: .3rem .9rem; font-size: 1.5rem; transform: rotate(-3deg); border-radius: 4px;
}
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.fact { border-left: 3px solid var(--pink); padding-left: .9rem; }
.fact strong { display: block; font: 750 var(--step-2)/1 var(--font-display); font-stretch: 85%; }
.fact span { font-size: var(--step--1); color: var(--text-muted); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about-photo img { aspect-ratio: 4/3; } }

/* ==========================================================
   Research themes (tabs)
   ========================================================== */
.research { background: var(--leaf); color: var(--on-dark); }
.research .section-intro p { color: #b9cbbd; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.tab {
  padding: .7rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(243,246,239,.3); background: none; color: var(--on-dark);
  font: 650 var(--step--1)/1 var(--font-display);
}
.tab[aria-selected="true"] { background: var(--blossom); border-color: var(--blossom); color: #13241b; }
.panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.panel[hidden] { display: none; }
.panel img { border-radius: var(--radius-lg); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.panel h3 { font-size: var(--step-2); margin-bottom: 1rem; font-stretch: 85%; }
.panel p { color: #d5e1d6; }
.panel .tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.panel .tags span { font-size: .85rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(243,246,239,.1); }
@media (max-width: 800px) { .panel { grid-template-columns: 1fr; } }

/* ==========================================================
   Journey timeline
   ========================================================== */
.timeline { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.25rem; }
.stop {
  flex: 0 0 min(300px, 78vw); scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; position: relative;
}
.stop-year { font: 800 var(--step-2)/1 var(--font-display); font-stretch: 80%; color: var(--pink); }
.stop-place { font: 600 var(--step--1)/1.3 var(--font-display); color: var(--text-muted); margin: .4rem 0 .6rem; }
.stop h3 { font-size: 1.15rem; margin-bottom: .5rem; line-height: 1.2; }
.stop p { font-size: .95rem; color: var(--text-muted); margin: 0; }
.timeline-hint { font-size: 1.4rem; color: var(--text-muted); }

/* ==========================================================
   Grants
   ========================================================== */
.grants { display: grid; gap: .6rem; }
.grant { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.grant-role { font: 700 .8rem/1 var(--font-display); padding: .35rem .6rem; border-radius: 999px; text-align: center; background: var(--surface-2); }
.grant-role.pi { background: var(--blossom); color: #13241b; }
.grant-title { font-family: var(--font-display); font-weight: 600; }
.grant-years { display: block; font-size: .85rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }
.grant-desc { display: block; margin-top: .4rem; font: 400 .95rem/1.5 var(--font-body); color: var(--text-muted); max-width: 62ch; }
.grant-amount { font: 800 var(--step-1)/1 var(--font-display); }
@media (max-width: 560px) { .grant { grid-template-columns: 1fr auto; } .grant-role { grid-column: 1 / -1; justify-self: start; } }

/* ==========================================================
   Publications
   ========================================================== */
.pub-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.5rem; }
.pub-search {
  flex: 1 1 260px; padding: .85rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font: 400 var(--step-0) var(--font-body);
}
.chip {
  padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: none; color: var(--text); cursor: pointer; font: 650 .85rem/1 var(--font-display);
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--paper); border-color: var(--text); }
.pubs { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.pub { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.pub-year { font: 800 1.2rem/1.3 var(--font-display); color: var(--lake); }
.pub-title { font: 650 1.08rem/1.35 var(--font-display); text-decoration: none; }
.pub-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.pub-meta { font-size: .92rem; color: var(--text-muted); margin-top: .3rem; }
.pub-meta em { color: var(--text); }
.pub-empty { color: var(--text-muted); padding: 1.5rem 0; }

/* ==========================================================
   Media
   ========================================================== */
.media { background: var(--surface-2); }
.videos { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 1.5rem; margin-bottom: 3rem; align-items: start; }
.video-card { background: var(--leaf); border-radius: var(--radius-lg); overflow: hidden; color: var(--on-dark); }
.video-card video { width: 100%; background: #000; }
.video-card.portrait video { aspect-ratio: 9/16; object-fit: cover; }
.video-card.wide video { aspect-ratio: 16/9; }
.video-card figcaption { padding: 1rem 1.2rem 1.2rem; font: 600 var(--step--1)/1.35 var(--font-display); }
.video-fallback { display: inline-block; margin-top: .5rem; color: var(--blossom); font: 650 .9rem/1.3 var(--font-display); }
.video-card figcaption span { display: block; font: 400 .85rem/1.4 var(--font-body); color: #b9cbbd; margin-top: .25rem; }
.video-wide-col { display: grid; gap: 1.5rem; }
@media (max-width: 720px) { .videos { grid-template-columns: 1fr; } .video-card.portrait { max-width: 340px; } }
.media-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.media-group h3 { margin-bottom: 1rem; display: flex; gap: .5rem; align-items: center; }
.media-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.media-link {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: .85rem 1rem; border-radius: 12px; background: var(--surface);
  text-decoration: none; border: 1px solid var(--line); transition: transform .15s ease;
}
.media-link:hover { transform: translateX(4px); }
.media-link b { font: 650 .98rem/1.3 var(--font-display); }
.media-link small { display: block; color: var(--text-muted); font-size: .82rem; }
.media-link .src { font: 700 .75rem/1 var(--font-display); padding: .3rem .55rem; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }

/* ==========================================================
   Bridging Fields gallery
   ========================================================== */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; gap: .9rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: .6rem; bottom: .6rem; padding: .25rem .6rem; border-radius: 4px;
  background: var(--blossom); color: #13241b; font: 700 1.15rem/1.1 var(--font-hand);
}
.g-a { grid-column: span 4; grid-row: span 3; }
.g-b { grid-column: span 2; grid-row: span 2; }
.g-c { grid-column: span 2; grid-row: span 1; }
.g-d { grid-column: span 3; grid-row: span 2; }
.g-e { grid-column: span 3; grid-row: span 2; }
.g-a img, .g-d img { object-fit: contain; background: #fff; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .g-a { grid-column: span 2; grid-row: span 2; }
  .g-b, .g-c { grid-column: span 1; grid-row: span 1; }
  .g-d, .g-e { grid-column: span 2; grid-row: span 2; }
}

/* ==========================================================
   Quiz: grow a macadamia tree
   ========================================================== */
.quiz { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.tree-stage { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 1rem; position: relative; }
.tree-stage svg { width: 100%; height: auto; }
.tree-stage .tree-part { opacity: 0; transform-origin: 160px 300px; transform: scale(.6); transition: opacity .6s ease, transform .6s cubic-bezier(.3,1.6,.5,1); }
.tree-stage .tree-part.on { opacity: 1; transform: scale(1); }
.tree-level { position: absolute; top: 1rem; left: 1rem; font-size: 1.5rem; color: var(--lake); }
.q-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: clamp(1.4rem, 4vw, 2.2rem); }
.q-progress { font: 650 var(--step--1)/1 var(--font-display); color: var(--text-muted); margin-bottom: 1rem; }
.q-text { font: 700 var(--step-1)/1.25 var(--font-display); margin-bottom: 1.25rem; }
.q-options { display: grid; gap: .6rem; }
.q-option {
  text-align: left; padding: .9rem 1.1rem; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--text);
  font: 500 var(--step-0)/1.3 var(--font-body);
}
.q-option:hover:not(:disabled) { border-color: var(--text); }
.q-option.right { background: #2fa364; border-color: #2fa364; color: #fff; }
.q-option.wrong { background: var(--pink); border-color: var(--pink); color: #fff; }
.q-feedback { min-height: 1.6em; margin: 1rem 0 0; font-size: 1.45rem; }
.q-actions { margin-top: 1rem; display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 800px) { .quiz { grid-template-columns: 1fr; } .tree-stage { max-width: 380px; } }

/* ==========================================================
   Contact
   ========================================================== */
.contact { background: var(--leaf); color: var(--on-dark); }
.contact h2 { font-size: var(--step-4); font-stretch: 78%; line-height: .9; margin-bottom: 1.5rem; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: end; }
.contact p { color: #c9d8cc; font-size: var(--step-1); line-height: 1.45; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.link-list a {
  display: flex; justify-content: space-between; padding: .9rem 0; text-decoration: none;
  border-bottom: 1px solid rgba(243,246,239,.18); font: 650 var(--step-0)/1.2 var(--font-display);
}
.link-list a:hover { color: var(--blossom); }
.footer-note { margin-top: 2.5rem; font-size: .85rem; color: #9fb3a4; }

.contact p.wrap { max-width: none; }
.contact .footer-note { font-size: .85rem; line-height: 1.5; }

/* Moving photo strip */
.photo-strip { margin-top: clamp(3rem, 7vw, 5rem); overflow: hidden; }
.photo-strip-title { margin-bottom: 1rem; font-size: 1.8rem; color: var(--blossom); }
.photo-track { display: flex; gap: 1rem; width: max-content; animation: slide 90s linear infinite; }
.photo-strip:hover .photo-track { animation-play-state: paused; }
.photo-track .dup { display: contents; }
.photo { margin: 0; position: relative; flex: none; height: clamp(180px, 24vw, 250px); border-radius: var(--radius-sm); overflow: hidden; }
.photo img { height: 100%; width: auto; }
.photo figcaption {
  position: absolute; left: .6rem; bottom: .6rem; padding: .2rem .6rem; border-radius: 4px;
  background: var(--blossom); color: #13241b; font: 700 1.15rem/1.1 var(--font-hand);
}
@media (prefers-reduced-motion: reduce) {
  .photo-track { animation: none; width: auto; overflow-x: auto; padding-inline: var(--gutter); }
  .photo-track .dup { display: none; }
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   Passport (gamification)
   ========================================================== */
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); z-index: 60;
  background: var(--surface); color: var(--text); border-left: 1px solid var(--line);
  padding: calc(env(safe-area-inset-top, 0px) + 1.5rem) 1.5rem calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
  transform: translateX(105%); transition: transform .35s ease; overflow-y: auto;
  box-shadow: -20px 0 50px rgba(0,0,0,.18);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: .5rem; }
.drawer-head h2 { font-size: var(--step-2); }
.close-btn { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--text); }
.drawer > p { color: var(--text-muted); font-size: .95rem; }
.stamps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.stamp { text-align: center; }
.stamp svg { width: 100%; max-width: 150px; height: auto; margin-inline: auto; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.stamp.locked svg { opacity: .28; filter: grayscale(1); }
.stamp:not(.locked) svg { transform: rotate(var(--rot)); }
.stamp p { font-size: .82rem; color: var(--text-muted); margin: .3rem auto 0; max-width: 18ch; line-height: 1.3; }
.badge-done { display: none; padding: 1.25rem; border-radius: var(--radius-lg); background: var(--blossom); color: #13241b; }
.badge-done.show { display: block; }
.badge-done strong { font: 800 var(--step-1)/1.1 var(--font-display); display: block; margin-bottom: .4rem; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem); z-index: 70;
  transform: translate(-50%, 150%); transition: transform .4s cubic-bezier(.3,1.4,.5,1);
  background: var(--text); color: var(--paper); padding: .8rem 1.2rem .8rem .8rem; border-radius: 999px;
  display: flex; align-items: center; gap: .7rem; font: 650 .95rem/1.2 var(--font-display);
  width: max-content; max-width: calc(100% - 2rem);
}
.toast.show { transform: translate(-50%, 0); }
.toast-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer, .toast, .tree-stage .tree-part, .stamp svg { transition: none; }
}

/* ==========================================================
   Tree planting initiative
   ========================================================== */
.trees-intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.trees-kicker { font-size: 1.6rem; color: var(--pink); margin: 0 0 .6rem; }
.trees-intro h2 { margin-bottom: 1.25rem; }
.trees-hero-photo { margin: 0; position: relative; }
.trees-hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.trees-hero-photo figcaption {
  position: absolute; left: 1rem; bottom: -1rem; padding: .3rem .9rem; border-radius: 4px;
  background: var(--blossom); color: #13241b; font-size: 1.4rem; transform: rotate(-3deg);
}
@media (max-width: 800px) { .trees-intro-grid { grid-template-columns: 1fr; } .trees-hero-photo img { aspect-ratio: 4 / 3; } }

.trees-why { background: var(--surface); border-block: 1px solid var(--line); }
.why-grid, .support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.why-card, .support-card {
  padding: 1.75rem; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .6rem;
}
.why-card p, .support-card p { color: var(--text-muted); margin: 0; }
.why-icon { font-size: 2rem; line-height: 1; }
.support-card { background: var(--surface); }
.support-card .btn { margin-top: auto; align-self: flex-start; }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.roadmap::before {
  content: ""; position: absolute; top: 2.1rem; left: 6%; right: 6%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--leaf-soft) 0 22%, var(--line) 22% 100%);
}
.stage { position: relative; text-align: center; padding: 0 .4rem; }
.stage-icon {
  position: relative; z-index: 1; display: grid; place-items: center; margin: 0 auto .8rem;
  width: 4.2rem; height: 4.2rem; border-radius: 50%; font-size: 1.8rem;
  background: var(--surface); border: 3px solid var(--line);
}
.stage.now .stage-icon { background: var(--blossom); border-color: var(--blossom); animation: pulse 2.2s infinite; }
.stage.next .stage-icon { border-color: var(--leaf-soft); }
.stage-status { display: inline-block; font: 700 .75rem/1 var(--font-display); padding: .3rem .6rem; border-radius: 999px; background: var(--surface-2); margin-bottom: .5rem; }
.stage.now .stage-status { background: var(--leaf-soft); color: #fff; }
.stage h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.stage p { font-size: .92rem; color: var(--text-muted); margin: 0 auto; max-width: 22ch; }
@media (max-width: 860px) {
  .roadmap { grid-template-columns: 1fr; gap: 1.25rem; }
  .roadmap::before { top: 2rem; bottom: 2rem; left: 2.1rem; right: auto; width: 4px; height: auto;
    background: linear-gradient(180deg, var(--leaf-soft) 0 18%, var(--line) 18% 100%); }
  .stage { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0 1rem; text-align: left; padding: 0; }
  .stage-icon { grid-row: span 3; margin: 0; }
  .stage-status { justify-self: start; }
  .stage p { margin: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .stage.now .stage-icon { animation: none; } }

.trees-gallery { columns: 3 260px; column-gap: 1rem; }
.trees-gallery figure { break-inside: avoid; margin: 0 0 1rem; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.trees-gallery img { width: 100%; height: auto; }
.trees-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(11, 26, 18, .85)); color: #fff;
  font: 650 .95rem/1.25 var(--font-display);
}
.trees-gallery figcaption span { display: block; font: 700 1.25rem/1 var(--font-hand); color: var(--blossom); margin-bottom: .2rem; }

/* Hero title and roles */
.hero h1 .title-prefix { font-size: .45em; letter-spacing: 0; vertical-align: .9em; margin-right: .1em; color: var(--blossom); }
.hero-roles { display: flex; flex-direction: column; gap: .15rem; margin: 0; font: 750 var(--step-2)/1.1 var(--font-display); font-stretch: 85%; }
.hero-roles span:last-child { color: var(--blossom); }

/* YouTube cards */
.yt-heading { margin: 0 0 1rem; display: flex; gap: .5rem; align-items: center; }
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.yt-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.yt-player, .yt-card iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; position: relative;
  background: linear-gradient(135deg, var(--leaf), var(--lake));
}
.yt-player img { width: 100%; height: 100%; object-fit: cover; }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 14px;
  background: #e0302a; box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .15s ease;
}
.yt-play::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.yt-player:hover .yt-play { transform: scale(1.1); }
.yt-card figcaption { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .9rem 1.1rem; }
.yt-card figcaption span { font: 650 .98rem/1.3 var(--font-display); }
.yt-card figcaption a { font: 650 .82rem/1 var(--font-display); white-space: nowrap; color: var(--text-muted); }

/* Podcast players */
.pod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.pod-card { padding: 1.4rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.1rem; }
.pod-head { display: flex; gap: .9rem; align-items: flex-start; }
.pod-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--blossom); }
.pod-platform { font: 700 .75rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--pink); }
.pod-title { margin: .35rem 0 0; font: 700 1.05rem/1.3 var(--font-display); }
.pod-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: auto; }
.pod-frame { width: 100%; border: 0; border-radius: 12px; flex-basis: 100%; }

/* ==========================================================
   Multi-page additions
   ========================================================== */
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--text); background: var(--text); color: var(--paper);
  font: 700 var(--step--1)/1 var(--font-display);
}
.share-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 700 var(--step--1)/1 var(--font-display);
}
.share-btn:hover { border-color: var(--text); }
@media (max-width: 520px) {
  .share-label, .menu-label { display: none; }
  .nav-name { font-size: .95rem; }
  .nav-actions { gap: .35rem; }
  .passport-btn { padding: .3rem .6rem .3rem .3rem; gap: .4rem; }
  .share-btn, .menu-btn { padding: .55rem .7rem; }
}
.menu-btn .bars { display: grid; gap: 4px; }
.menu-btn .bars span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }

.menu-pages { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .5rem; counter-reset: page; }
.menu-pages a {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: .2rem .8rem; align-items: baseline;
  padding: 1rem; border-radius: 14px; text-decoration: none; border: 1px solid var(--line);
  transition: background-color .15s ease, transform .15s ease;
}
.menu-pages a:hover { background: var(--surface-2); transform: translateX(-3px); }
.menu-pages a[aria-current="page"] { background: var(--blossom); border-color: var(--blossom); color: #13241b; }
.menu-num { grid-row: span 2; font: 800 1.6rem/1 var(--font-display); font-stretch: 80%; color: var(--pink); }
.menu-pages a[aria-current="page"] .menu-num { color: #13241b; }
.menu-title { font: 750 1.15rem/1.15 var(--font-display); }
.menu-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.35; }
.menu-pages a[aria-current="page"] .menu-desc { color: #3b3b1f; }
.menu-quick { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }
.menu-quick a { font: 650 .85rem/1 var(--font-display); padding: .5rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; }
.menu-quick a:hover { border-color: var(--text); }
.drawer-label { font: 700 .8rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 .7rem; }

.door.door-trees { background: var(--leaf-soft); color: #fff; --tilt: -1deg; }
.btn-coffee { background: #ffdd00; border-color: #ffdd00; color: #13241b; }
.coffee-card {
  margin-top: 2rem; padding: 1.25rem 1.4rem; border-radius: var(--radius-lg);
  background: rgba(243, 246, 239, .08); border: 1px dashed rgba(243, 246, 239, .35);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.contact .coffee-card p { margin: 0; font-size: var(--step-0); max-width: 44ch; }
.coffee-fab {
  position: fixed; right: 1rem; bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); z-index: 45;
  display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border-radius: 999px;
  background: #ffdd00; color: #13241b; text-decoration: none; font: 750 .9rem/1 var(--font-display);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: transform .15s ease;
}
.coffee-fab:hover { transform: translateY(-3px) rotate(-2deg); }
@media (max-width: 520px) { .coffee-fab .fab-text { display: none; } .coffee-fab { padding: .75rem; } }

/* ---------- Home: transparent header over the video ---------- */
body.home .nav:not(.scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; }
body.home .nav:not(.scrolled) .nav-name { color: #fff; }
body.home .nav { transition: background-color .3s ease, border-color .3s ease; }

/* ---------- Video hero ---------- */
.hero-video { min-height: 100vh; min-height: 100svh; margin-top: -65px; background: var(--leaf); }
.hero-video::before {
  z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,26,18,.88) 0%, rgba(11,26,18,.62) 45%, rgba(11,26,18,.15) 80%),
    linear-gradient(180deg, rgba(11,26,18,.35) 0%, transparent 25%, transparent 70%, rgba(11,26,18,.75) 100%);
}
.hero-yt { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero-yt.ready { opacity: 1; }
.hero-yt iframe {
  position: absolute; top: 50%; left: 50%; border: 0; transform: translate(-50%, -50%);
  width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; z-index: -2; }
.hero-video .hero-inner { padding-block: 8rem 5rem; position: relative; z-index: 1; }
.hero-video .scroll-cue { z-index: 1; }
.hero-video .hero-inner > * { max-width: 38rem; }
.hero-video .hero-inner > .doors { max-width: 46rem; }
.hero-video h1 { font-size: clamp(2.8rem, 1.2rem + 4.8vw, 5.4rem); }
.hero-eyebrow { margin: 0; font: 700 .85rem/1.5 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--blossom); }
.hero-eyebrow span { opacity: .55; margin: 0 .35rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 700px) {
  .scroll-cue { display: none; }
  .hero-bg { object-position: 80% center; }
  .hero-video::before { background: linear-gradient(180deg, rgba(11,26,18,.6), rgba(11,26,18,.82) 45%, rgba(11,26,18,.9)); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* ---------- Core expertise cards ---------- */
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; }
.expertise-card { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: inherit; }
.expertise-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: .6rem; transition: transform .4s ease; }
.expertise-card:hover img { transform: scale(1.03); }
.expertise-card h3 { font-size: var(--step-1); }
.expertise-card p { color: var(--text-muted); margin: 0; }
.expertise-card .more { font: 700 .9rem/1 var(--font-display); color: var(--pink); margin-top: .3rem; }

/* ---------- Full-bleed feature panels ---------- */
.feature {
  position: relative; min-height: 78vh; display: grid; align-items: center; color: #fff; isolation: isolate;
  background-color: var(--leaf); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,26,18,.85), rgba(11,26,18,.25) 70%); }
.feature-right::before { background: linear-gradient(270deg, rgba(11,26,18,.85), rgba(11,26,18,.25) 70%); }
.feature-inner { display: flex; padding-block: 5rem; }
.feature-right .feature-inner { justify-content: flex-end; }
.feature-box { max-width: 30rem; }
.feature-box .hand { font-size: 1.6rem; color: var(--blossom); margin: 0 0 .6rem; }
.feature-box h2 { margin-bottom: 1rem; }
.feature-box p:last-child { color: #dfe8db; font-size: var(--step-1); line-height: 1.45; }

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--leaf-soft); color: #fff; padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { margin: 0; color: #e3ede5; font-size: var(--step-1); line-height: 1.45; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Site footer ---------- */
.site-footer { background: #0b1a12; color: #c9d8cc; padding-block: 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
.footer-name { font: 800 1.4rem/1 var(--font-display); color: #fff; text-decoration: none; }
.footer-brand p { margin: 1rem 0 1.25rem; max-width: 34ch; font-size: .95rem; }
.footer-socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: rgba(255,255,255,.08); color: #fff; font: 800 .8rem/1 var(--font-display); transition: background-color .15s ease;
}
.footer-socials a:hover { background: var(--blossom); color: #13241b; }
.site-footer h3 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer nav a { color: #c9d8cc; text-decoration: none; font-size: .95rem; word-break: break-word; }
.site-footer nav a:hover { color: var(--blossom); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8ea597; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.page-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem); }
.page-head h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 78%; letter-spacing: -.035em; line-height: .9; }

.page-nav { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.page-nav-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.page-link {
  flex: 1 1 260px; display: block; padding: 1.4rem 1.6rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.page-link:hover { transform: translateY(-3px); border-color: var(--text); }
.page-link.next { text-align: right; background: var(--leaf); color: var(--on-dark); border-color: var(--leaf); }
.page-link small { display: block; font: 650 .85rem/1 var(--font-display); opacity: .75; margin-bottom: .5rem; }
.page-link strong { font: 800 var(--step-2)/1.05 var(--font-display); font-stretch: 85%; }

