:root {
  --reading-width: 66.666667vw;
  --bg: #edf2e9;
  --text: #243329;
  --text-secondary: #586358;
  --accent: #3c654c;
  --accent-hover: #21462f;
  --glass-bg: transparent;
  --glass-border: transparent;
  --line: rgba(41, 66, 46, .16);
}
.canopy-window { display: contents; }
.ambient-dock::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 16px;
  pointer-events: none;
  transition: border-radius 640ms cubic-bezier(.16,1,.3,1);
}
.flora-toggle {
  position: relative;
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  grid-template-columns: minmax(0,1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-shadow: inherit;
  text-align: left;
  cursor: pointer;
}
.flora-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg,rgba(255,255,255,.17),rgba(255,255,255,.05));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .flora-toggle:hover::before { opacity: 1; }
}
.flora-toggle:active::before { opacity: 1; transition-duration: 80ms; }
.flora-toggle:focus-visible { border-radius: 16px; }
.flora-detail {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 8px);
  width: min(var(--flora-width, 320px), calc(100vw - 32px));
  padding: 20px;
  border-radius: 16px;
  visibility: hidden;
  pointer-events: none;
  /* Reveal the glass geometrically from its attachment edge. The content
     remains at its final size and position throughout; there is no fade. */
  clip-path: inset(0 max(0px, calc(100% - var(--dock-width, 140px))) 100% 0 round 0 0 36px 36px);
  transition: clip-path 560ms cubic-bezier(.4,0,.2,1), visibility 0s linear 560ms;
}
.flora-detail[data-open="true"] { visibility: visible; pointer-events: auto; clip-path: inset(-1px round 16px); transition: clip-path 740ms cubic-bezier(.18,1.12,.28,1), visibility 0s; }
.flora-detail .flora-species { font-size: 17px; font-family: Georgia, serif; font-style: italic; color: #f5f8ee; margin-bottom: 14px; }
.flora-footnote a { color: #f1f7e5; text-decoration: none; width: fit-content; }
.flora-footnote a:hover { text-decoration: underline; }
.flora-toggle:focus-visible, .flora-footnote a:focus-visible { outline: 2px solid #e5f4d4; outline-offset: 4px; border-radius: 16px; }
.container { max-width: none; width: var(--reading-width); margin: 0; padding: 52px clamp(32px, 5.3vw, 86px) 48px; }
.container > main, .container > header { max-width: 748px; }
header { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 84px; }
header > nav { margin-left: auto; }
.nav-toggle { display: none; }
.site-logo { flex-shrink: 0; }
.site-logo img { width: 101px; height: auto; }
.glass, .team-grid {
  background: none;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: 0;
}
.glass:hover { transform: none; box-shadow: none; }
h1 {
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1.2;
  font-weight: 450;
  letter-spacing: -.045em;
  max-width: 620px;
  margin: 0 0 30px;
  text-wrap: pretty;
}
h2 { font-size: 14px; font-weight: 550; letter-spacing: .02em; text-transform: none; color: var(--text); margin-bottom: 14px; }
h3 { font-size: 24px; font-weight: 450; line-height: 1.35; letter-spacing: -.025em; }
p { line-height: 1.78; margin-bottom: 20px; }
.introduction > p:first-of-type { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; }
.introduction { margin-bottom: 44px; }
.research-teaser { position: relative; padding: 0 28px 0 0; margin-bottom: 35px; }
.research-teaser h2 { font-size: 19px; margin-bottom: 7px; letter-spacing: -.015em; }
.research-teaser p { color: var(--text-secondary); font-size: 16px; margin-bottom: 8px; }
.teaser-arrow { font-size: 14px; margin-top: 0; }
.teaser-preview {
  position: fixed; z-index: 5; padding: 8px; border-radius: 18px;
  border: 1px solid color-mix(in srgb,var(--bg) 52%,transparent);
  background: linear-gradient(130deg,rgba(255,255,255,.18),transparent 65%),color-mix(in srgb,var(--bg) 24%,transparent);
  backdrop-filter: blur(12px) saturate(1.15); -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35),0 12px 32px rgba(18,28,20,.09);
  pointer-events: none; visibility: hidden;
  clip-path: inset(42% 100% 42% 0 round 24px);
  transform: translateX(-8px);
  transition: clip-path 340ms cubic-bezier(.4,0,.2,1),transform 340ms ease,visibility 0s linear 340ms;
}
.teaser-preview[data-open="true"] {
  visibility: visible; clip-path: inset(-1px round 18px); transform: translateX(0);
  transition: clip-path 560ms cubic-bezier(.18,1.08,.28,1),transform 560ms cubic-bezier(.18,1,.28,1),visibility 0s;
}
.teaser-preview video,.teaser-preview > img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 11px; background: transparent; }
.teaser-preview > img { aspect-ratio: 16 / 9; }
.research-teaser:hover h2, .research-item:hover h3 { color: var(--accent); }
.team-grid { margin-top: 45px; gap: 27px; }
.team-grid > h2 { font-size: 19px; margin: 0 0 3px; letter-spacing: -.02em; }
.team-card { --portrait-size: 96px; display: grid; grid-template-columns: var(--portrait-size) minmax(0, 1fr); column-gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 27px; }
.team-card img { grid-column: 1; grid-row: 1 / span 4; width: var(--portrait-size); height: var(--portrait-size); margin: 3px 0 0; filter: saturate(.62); }
.team-card:hover img { transform: none; box-shadow: none; }
.team-card .name, .team-card .role, .team-card .bio { grid-column: 2; }
.team-card .name { font-size: 17px; }
.team-card .role { font-size: 14px; font-style: normal; margin-bottom: 9px; }
.team-card .bio { font-size: 15px; color: var(--text-secondary); margin-bottom: 7px; line-height: 1.7; }
.team-card .bio:last-child { margin-bottom: 0; }
body[data-page="research"] .research-item { padding: 34px 0; margin: 0; border-bottom: 1px solid var(--line); }
body[data-page="research"] .research-item:first-child { padding-top: 0; }
body[data-page="research"] .research-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
body[data-page="research"] .research-desc { margin-bottom: 0; }
.research-item:last-of-type { border-bottom: 0; }
.research-meta { font-size: 13px; margin-bottom: 13px; justify-content: flex-start; gap: 16px; }
.research-desc { font-size: 16px; line-height: 1.75; margin-top: 13px; }
body[data-page="contact"] main > .glass { padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid var(--line); }
body[data-page="contact"] main > .glass:has(+ .footer) { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
body[data-page="contact"] .footer { border-top: 0; padding-top: 0; }
body[data-page="contact"] main h2 { font-size: 25px; letter-spacing: -.025em; }
.contact-email { font-size: inherit; overflow-wrap: anywhere; }
.blog-collaborators { font-size: 14px; line-height: 1.7; margin-bottom: 18px; font-weight: 400; }
.blog-share { font-size: 13px; gap: 20px; flex-wrap: wrap; letter-spacing: 0; }
.blog-header { margin-bottom: 42px; }
.blog-section h2 { font-size: 25px; font-weight: 450; line-height: 1.35; letter-spacing: -.025em; margin-bottom: 20px; }
.blog-section { margin-bottom: 30px; }
.caption { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 12px 0 24px; font-style: normal; }
.blog-footnotes ol { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.carousel-btn { width: 40px; height: 40px; }
.carousel-btn[hidden] { display: none; }
.footer { font-size: 12px; margin-top: 62px; border-color: var(--line); padding-top: 23px; letter-spacing: 0; }
.skip-link:focus { top: 16px; }
.page-content:focus { outline: none; }
/* Only the visible nature column is rasterized. The reading surface is static. */
/* Image-derived Material HCT roles. The image palette also supplies the gentle nature veil. */
html { scroll-behavior: auto; scrollbar-color: var(--outline) var(--bg); }
body { font-size: 17px; font-stretch: 100%; letter-spacing: -.012em; line-height: 1.75; background: var(--bg); color: var(--text); }
.environment { position: fixed; inset: 0; z-index: -3; overflow: hidden; background: var(--bg); }
/* A light veil softens flowers without blurring detail or muting the glass controls. */
.environment::after { content: ''; position: absolute; inset: 0; background: var(--bg); opacity: .23; pointer-events: none; }
.reading-glass {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--reading-width);
  border-right: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 16px 0 80px rgba(27, 52, 24, .025), inset -1px 0 rgba(255,255,255,.25);
  z-index: -1;
  background: linear-gradient(110deg,var(--bg),color-mix(in srgb,var(--bg) 94%,var(--surface-container)));
  border-right-color: var(--line);
}
.canopy-image { position: absolute; display: block; background: none; inset: 0; }
.nav-links, .nav-toggle, .tag {
  --chrome-glint: rgba(255,255,255,.62);
  --chrome-edge: rgba(255,255,255,.72);
  --chrome-fill: rgba(255,255,255,.22);
  background: linear-gradient(135deg,var(--chrome-glint),transparent 58%),var(--chrome-fill);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 var(--chrome-edge),0 2px 8px color-mix(in srgb,var(--text) 4%,transparent);
}
.nav-links { border: 1px solid rgba(255,255,255,.6); border-radius: 9px; padding: 4px; gap: 3px; border-color: var(--chrome-edge); }
.nav-links a { display: block; white-space: nowrap; font-size: 14px; padding: 6px 11px; border-radius: 6px; letter-spacing: -.01em; color: var(--text-secondary); }
.nav-links a.active { color: var(--text); background: linear-gradient(140deg,var(--chrome-glint),transparent),color-mix(in srgb,var(--accent) 5%,var(--chrome-fill)); box-shadow: inset 0 0 0 1px var(--chrome-edge),0 1px 4px color-mix(in srgb,var(--text) 6%,transparent); }
.nav-links a:hover { transform: none; color: var(--accent); }
.nav-external { position: relative; margin-left: 5px; padding-left: 5px; }
.nav-external::before { content: ''; position: absolute; left: 0; top: 50%; height: 1em; width: 1px; background: var(--line); opacity: .45; transform: translateY(-50%); pointer-events: none; }
.nav-external a > span { display: inline-block; margin-left: 4px; }
.nav-links:hover { border-color: var(--chrome-edge); }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 4px; color: var(--accent); background: linear-gradient(135deg,var(--chrome-glint),transparent 65%),color-mix(in srgb,var(--accent) 5%,var(--chrome-fill)); box-shadow: inset 0 0 0 1px var(--chrome-edge),0 1px 5px color-mix(in srgb,var(--text) 4%,transparent); }
body[data-theme="dark"] .nav-links, body[data-theme="dark"] .nav-toggle, body[data-theme="dark"] .tag { --chrome-glint: rgba(255,255,255,.09); --chrome-edge: rgba(255,255,255,.16); --chrome-fill: rgba(255,255,255,.025); }
.divider { margin: 36px 0; background: var(--line); }
.blog-header .blog-title { font-size: clamp(30px, 2.8vw, 42px); letter-spacing: -.04em; margin-bottom: 25px; text-transform: none; color: var(--text); }
.ambient-dock {
  position: fixed;
  left: calc(var(--reading-width) + 32px);
  right: auto;
  top: var(--dock-top, 56px);
  bottom: auto;
  width: max-content;
  max-width: calc(100vw - var(--reading-width) - 64px);
  z-index: 3;
  padding: 0;
  letter-spacing: -.005em;
  text-shadow: 0 1px 3px rgba(8,22,12,.2);
  color: var(--glass-text);
}
.flora-detail p,.flora-detail .flora-species,.flora-footnote a { color: var(--glass-text); }
.flora-footnote { color: var(--glass-secondary); }
.flora-info { width: 18px; height: 18px; color: var(--glass-secondary); }
a:focus-visible,button:focus-visible { outline: 2px solid #416b3e; outline-offset: 5px; outline-color: var(--accent); }
.ambient-dock :focus-visible { outline-color: var(--glass-accent); }
body[data-theme="dark"] .site-logo img { filter: invert(1); }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  padding: 8px 14px;
  border-radius: 4px;
  z-index: 20;
  color: var(--text);
  background: var(--surface-high);
}
/* Stable imagery: motion belongs to the glass and loading light, never branches. */
.canopy-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}
.scene-loading-light { position: absolute; inset: -25%; pointer-events: none; visibility: hidden; background: linear-gradient(115deg,transparent 35%,rgba(255,255,255,.12) 50%,transparent 65%); }
@keyframes scene-light {
  from { transform: translateX(-70%); }
  to { transform: translateX(70%); }
}
body[data-hidden="true"] .scene-loading-light, body[data-scene-visible="false"] .scene-loading-light { animation-play-state: paused; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.flora-detail p { line-height: 1.7; margin: 0 0 16px; color: var(--glass-text); font-size: 14px; }
.flora-detail .flora-name { font-size: 16px; line-height: 1.4; margin-bottom: 4px; }
.flora-detail .flora-local-name { font-size: 14px; line-height: 1.65; margin-bottom: 6px; color: var(--glass-secondary); text-align: start; }
.flora-local-name[hidden] { display: none; }
.flora-footnote { display: flex; flex-direction: column; gap: 10px; color: var(--glass-secondary); line-height: 1.55; font-size: 12px; }
/* Darken the sampled background sufficiently for text even over white sky. */
.ambient-dock::before,.flora-detail {
  border: 1px solid rgba(242,255,233,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 36px rgba(13,30,17,.12);
  background: linear-gradient(130deg,rgba(255,255,255,.13),transparent 60%),color-mix(in srgb,var(--glass-tone) 30%,transparent);
  border-color: color-mix(in srgb,var(--glass-secondary) 40%,transparent);
  border-top-color: color-mix(in srgb,var(--glass-text) 62%,transparent);
  backdrop-filter: blur(18px) saturate(1.15) brightness(.38);
  -webkit-backdrop-filter: blur(18px) saturate(1.15) brightness(.38);
}
/* Long city and tree names must not change the dock's dimensions. */
.flora-name,.place { min-width: 0; }
.place { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place { align-items: center; gap: 8px; grid-column: 1; font-size: 14px; line-height: 1.5; display: block; }
@media (max-width:740px) {
  .team-card { --portrait-size: 72px; column-gap: 18px; }
  .team-card img { grid-row: 1 / span 2; margin-top: 0; }
  .team-card .name { align-self: end; }
  .team-card .role { margin-bottom: 0; }
  .team-card .bio { grid-column: 1 / -1; }
  .team-card .role + .bio { margin-top: 16px; }
  .container { width: 100%; max-width: none; padding: 24px 25px 36px; }
  .reading-glass { display: none; }
  .environment { position: absolute; inset: 0; height: 100%; z-index: -1; }
  header { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
  .site-logo img { width: 85px; height: auto; }
  .nav-links { width: auto; gap: 1px; padding: 3px; }
  .nav-links li { flex: initial; }
  .nav-links a { padding: 5px 7px; font-size: 12px; }
  header:has(.primary-nav[data-menu-ready]) { position: relative; z-index: 10; flex-wrap: nowrap; }
  .primary-nav[data-menu-ready] { position: relative; }
  .nav-toggle:not([hidden]) {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--chrome-edge); border-radius: 12px; color: var(--text); cursor: pointer;
  }
  .nav-toggle-icon { display: block; position: relative; width: 18px; height: 14px; }
  .nav-toggle-icon span { position: absolute; inset: 0 0 auto; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 380ms cubic-bezier(.2,.8,.2,1); }
  .nav-toggle-icon span:nth-child(2) { top: 6px; }
  .nav-toggle-icon span:nth-child(3) { top: 12px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { transform: scaleX(0); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .primary-nav[data-menu-ready] .nav-links {
    position: absolute; top: calc(100% + 10px); right: 0;
    display: flex; flex-direction: column; width: min(228px,calc(100vw - 36px));
    margin: 0; padding: 8px; gap: 3px; border-radius: 16px;
    background: linear-gradient(135deg,var(--chrome-glint),transparent 65%),color-mix(in srgb,var(--bg) 68%,transparent);
    backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: inset 0 1px 0 var(--chrome-edge),0 12px 36px color-mix(in srgb,var(--text) 12%,transparent);
    visibility: hidden; pointer-events: none; clip-path: inset(0 0 100% 100% round 12px);
    transition: clip-path 360ms cubic-bezier(.4,0,.2,1),visibility 0s linear 360ms;
  }
  .primary-nav[data-menu-ready] .nav-links a { min-height: 44px; display: flex; align-items: center; padding: 8px 12px; font-size: 14px; text-align: left; border-radius: 9px; }
  .nav-toggle[aria-expanded="true"] + .nav-links {
    visibility: visible; pointer-events: auto; clip-path: inset(0 round 16px);
    transition: clip-path 480ms cubic-bezier(.18,1.08,.28,1),visibility 0s;
  }
  h1 { font-size: 34px; }
  .glass, .team-grid { padding: 0; }
  .flora-detail p { line-height: 1.6; margin-bottom: 12px; }
  .flora-footnote { gap: 8px; }
  .introduction > p:first-of-type { font-size: 17px; }
  .ambient-dock::before,.flora-detail { background-color: color-mix(in srgb,var(--glass-tone) 38%,transparent); }
  .canopy-window {
    display: block;
    position: relative;
    height: var(--canopy-height, 320px);
    padding: 16px;
    margin: 0 -25px 36px;
    isolation: isolate;
  }
  .ambient-dock { position: relative; inset: auto; max-width: 100%; margin: 0 auto 0 0; width: max-content; }
  .flora-detail { width: min(var(--flora-width,340px),calc(100vw - 32px)); padding: 16px 18px; }
  .flora-footnote span { display: none; }
}
@media (min-width: 741px) and (max-width: 1000px) {
  :root { --reading-width: 68vw; }
  .container { width: var(--reading-width); padding: 38px 32px; }
  .reading-glass { width: 68vw; }
  header { gap: 22px; margin-bottom: 65px; }
  .ambient-dock { left: calc(68vw + 20px); right: auto; max-width: calc(32vw - 40px); }
  .environment { left: 68vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scene-loading-light { animation: none !important; visibility: hidden !important; }
}
@media (min-width:741px) {
  .environment { left: var(--reading-width); }
}
@media (min-width:1001px) {
  .ambient-dock { left: calc(var(--reading-width) + 16px); max-width: calc(100vw - var(--reading-width) - 32px); }
}
@supports not (backdrop-filter:blur(1px)) {
  .ambient-dock::before,.flora-detail { background: color-mix(in srgb,var(--glass-tone) 94%,transparent); }
}
@media (max-width: 360px) {
  .container { padding-inline: 18px; }
  .canopy-window { margin-inline: -18px; }
  .nav-links a { padding: 5px; }
  .site-logo img { width: 72px; }
}



.teaser-preview canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 11px; background: transparent; }
.teaser-preview [hidden] { display: none; }
