/* ============================================================
   Nov 17 round 4: bigger headings + green line motion (js/fx.js)
   ============================================================ */

/* headings with more weight on the inner pages (Nov 18 late: main H1 about 12% smaller than round 4) */
.ohead h1 { font-size: clamp(46px, 6.7vw, 112px); letter-spacing: -.05em; line-height: .96; }
.ohead .wrap > * { max-width: 1120px; }
.alt h2 { font-size: clamp(44px, 5.4vw, 88px); letter-spacing: -.045em; line-height: .98; }
.inner .sec-head h2 { font-size: clamp(44px, 5.6vw, 92px); letter-spacing: -.045em; line-height: .98; }
.iscreen h2 { font-size: clamp(44px, 5.2vw, 88px); letter-spacing: -.045em; line-height: .98; }
.alt p.body { font-size: clamp(18px, 1.35vw, 21px); }

/* 1. green hairline that wraps a card on scroll */
.fx-edge { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.fx-edge rect { fill: none; stroke: var(--green-lit); stroke-width: 1.6; stroke-linecap: round; }

/* 2. large outline icon beside a heading */
.fx-orn { display: block; width: clamp(88px, 8vw, 132px); height: auto; margin: 0 0 22px -6px; overflow: visible; color: var(--green-lit-lo); }
.fx-orn path { fill: currentColor; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.sec-head-c .fx-orn { margin: 0 auto 22px; }
.iscreen .fx-orn { width: clamp(80px, 7vw, 116px); margin-bottom: 18px; }

/* 2b. small point icons: bigger, outline drawn once on scroll */
.pt-ic { width: 64px; height: 64px; }
.pt-ic svg { width: 32px; height: 32px; }
.fx-mark { stroke: currentColor; stroke-width: 9; stroke-linejoin: round; }
@media (max-width: 960px) { .pt-ic { width: 56px; height: 56px; } .pt-ic svg { width: 28px; height: 28px; } }

/* 3. About: lines from the heading to the story */
.fx-host { position: relative; }
.fx-about { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.fx-about-icon path { fill: var(--green-lit-lo); stroke: var(--green-lit-lo); stroke-width: 2; }
.fx-line { fill: none; stroke: var(--green-lit); stroke-width: 1.5; stroke-linecap: round; }
.fx-dot { fill: #FFFFFF; stroke: var(--green-lit); stroke-width: 1.5; }
.fx-runner { fill: var(--green-lit); filter: drop-shadow(0 0 6px rgba(42,157,94,.8)); }

/* About: the story text ends at the right edge of the content */
.story-col { max-width: 820px; margin: 0 0 0 auto; }

@media (max-width: 960px) {
  .story-col { margin: 0 auto; }
  .fx-orn { margin-bottom: 16px; }
}

/* Assessment: wider copy, two-line heading, smaller form, tighter spacing */
@media (min-width: 1181px) {
  .aband .fband-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 64px; }
  .aband h1 { font-size: clamp(54px, 5.5vw, 86px); letter-spacing: -.05em; line-height: .98; text-wrap: balance; }
  .aband .fband-form { padding: 28px 28px 24px; }
}
.aband { min-height: 0; padding-top: calc(76px + clamp(88px, 15vh, 170px)); padding-bottom: clamp(56px, 8vh, 88px); }
.aband .fband-lead { max-width: 52ch; }
.aband .gets { margin-top: 22px; }
.aband .direct { margin-top: 40px; }

/* ---------- Nov 18: mobile / tablet QA ---------- */
/* phones and tablets: headings wrap in even lines, no single word left alone at the end */
@media (max-width: 1180px) {
  .alt h2, .inner .sec-head h2, .iscreen h2, .problem .sec-head h2, .fband h2, .fband h1, .aband h1 { text-wrap: balance; }
  /* touch: bigger hit areas without moving anything (invisible, around the link) */
  .nav-logo, .nav-links a, .more summary, .crumb a { position: relative; }
  .nav-logo::before, .nav-links a::before, .more summary::before, .crumb a::before { content: ""; position: absolute; inset: -12px -6px; }
}
/* phones: the big inner-page headings scale with the screen */
@media (max-width: 600px) {
  .ohead h1 { font-size: clamp(35px, 10vw, 44px); }
  .alt h2, .inner .sec-head h2, .iscreen h2, .problem .sec-head h2 { font-size: clamp(32px, 9.4vw, 40px); }
  .fx-orn, .iscreen .fx-orn { width: 68px; margin-bottom: 12px; }
}
@media (max-width: 960px) { .nav-menu { min-height: 44px; } }
/* tablet landscape (touch): the same 44px targets the phones already have */
@media (min-width: 961px) and (max-width: 1180px) {
  .foot-nav, .foot-legal { gap: 0; }
  .foot-nav a, .foot-legal a, .foot-nav button, .foot-legal button { display: inline-flex; align-items: center; min-height: 44px; }
  .toc a { padding-block: 12px; }
  .direct li a { display: inline-flex; align-items: center; min-height: 44px; }
  .btn-sm { height: 44px; }
  /* Detect / Diagnose / Act box: the chip sits above the text, so the text is not squeezed */
  #story .insight { grid-template-columns: 1fr auto; }
  #story .insight .chip { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Nov 18 (round 6): Home hero = heading, slogan, the video with the button on its white floor;
   faint moving waves behind (fx2.js), a soft lifted shadow under the video ---------- */
.hero-c.hero-v { position: relative; isolation: isolate; }
.hero-c.hero-v > .hero-top, .hero-c.hero-v > .stage { position: relative; z-index: 1; }
.hero-waves { position: absolute; left: 0; right: 0; top: 18%; height: 70%; width: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.hero-waves path { fill: none; stroke: var(--green-lit); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.hero-waves path:nth-child(1) { opacity: .16; } .hero-waves path:nth-child(2) { opacity: .11; } .hero-waves path:nth-child(3) { opacity: .08; stroke: #0D1210; } .hero-waves path:nth-child(4) { opacity: .07; }
.hero-c.hero-v .hero-top { padding-bottom: clamp(16px, 2.6vh, 28px); }
.hero-c.hero-v .lead { margin-bottom: 0; }
.hero-c.hero-v .frame { box-shadow: 0 34px 70px -34px rgba(13,18,16,.30), 0 14px 30px -18px rgba(13,18,16,.14); border-color: rgba(13,18,16,.08); }
.hero-c.hero-v .stage { position: relative; }
.hero-c.hero-v .hero-cta-b { display: flex; justify-content: center; padding: 16px 0 0; }
.hero-c.hero-v .hero-cta-b .btn { flex: none; box-shadow: 0 14px 30px -12px rgba(31,122,73,.55), inset 0 1px 0 rgba(255,255,255,.22); }
@media (min-width: 961px) {
  .hero-c.hero-v h1 { font-size: clamp(46px, min(5.8vw, 9.4vh), 104px); letter-spacing: -.05em; }
  .hero-c.hero-v .stage { padding-bottom: clamp(18px, 3.2vh, 34px); }
  .hero-c.hero-v .frame { max-height: min(66vh, 720px); }
  /* the button sits on the white floor at the bottom of the video */
  .hero-c.hero-v .hero-cta-b { position: absolute; left: 0; right: 0; bottom: calc(clamp(18px, 3.2vh, 34px) + 6.5%); padding: 0; z-index: 3; pointer-events: none; }
  .hero-c.hero-v .hero-cta-b .btn { pointer-events: auto; }
}
@media (max-width: 960px) { .hero-c.hero-v .frame { width: min(100%, 560px); margin-inline: auto; } .hero-waves { top: 40%; height: 50%; } }

/* Nov 18: icons on the three autonomy levels (Advise / Approve / Auto) */
.modes3 .pt-ic { width: 72px; height: 72px; margin-bottom: 20px; color: var(--green-lit-lo); line-height: 1; background: rgba(42,157,94,.08); border-color: rgba(31,122,73,.28); }
.modes3 .pt-ic svg { width: 38px; height: 38px; }
@media (max-width: 960px) { .modes3 .pt-ic { width: 60px; height: 60px; margin-bottom: 14px; } .modes3 .pt-ic svg { width: 32px; height: 32px; } }

/* ---------- Nov 18 (round 5) ---------- */
/* "EYWA does the rest." turns green as the section reaches the middle of the screen (fx.js sets --lim 0..1) */
@property --lim { syntax: "<number>"; inherits: true; initial-value: 0; }
.lim-2 { color: color-mix(in srgb, var(--green-lit-lo) calc(var(--lim, 0) * 100%), var(--gray)); }
/* the three autonomy cards: more presence */
.modes3 { gap: 24px; margin-bottom: 48px; }
.modes3 li { position: relative; padding: 32px 30px 30px; border-color: rgba(31,122,73,.16); background: rgba(255,255,255,.86); }
.modes3 b { font-size: 22px; }
.modes3 span:not(.pt-ic) { font-size: 16px; }

/* the problem: three problems EYWA solves, as numbered cards with room to breathe */
.problem .sec-head { margin-bottom: clamp(48px, 7vh, 80px); }
.cols3 { counter-reset: prob; max-width: 1180px; gap: 28px; }
.cols3 li { position: relative; counter-increment: prob; gap: 14px; padding: 44px 32px 40px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-soft); }
.cols3 li::before { content: "0" counter(prob); position: absolute; top: 18px; left: 22px; font: 500 13px/1 "Geist Mono", monospace; color: var(--green-lit-lo); }
.cols3 .pt-ic { width: 80px; height: 80px; margin-bottom: 14px; background: rgba(42,157,94,.08); border-color: rgba(31,122,73,.28); }
.cols3 .pt-ic svg { width: 40px; height: 40px; }
.cols3 b { font-size: clamp(24px, 2.2vw, 32px); }
.cols3 span:not(.pt-ic) { font-size: 18px; }
@media (max-width: 960px) { .cols3 { gap: 16px; } .cols3 li { padding: 36px 24px 30px; } .cols3 .pt-ic { width: 64px; height: 64px; } .cols3 .pt-ic svg { width: 32px; height: 32px; } }

/* Detect / Diagnose / Act box: "Sample data" centred at the bottom */
#story .panel .sample-s { text-align: center; margin-top: 14px; }

/* dark form band: the green glow follows the mouse; a faint plant texture across the whole band, fading inwards */
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 78%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
.fband::before { inset: 0; width: auto; height: auto; background: radial-gradient(42vw 42vw at var(--mx) var(--my), rgba(42,157,94,.26), transparent 70%); z-index: 0; }
.fband { transition: --mx 1.1s var(--ease-out), --my 1.1s var(--ease-out); }
.fband::after { inset: 0; width: auto; height: auto; background: url(../assets/img/plant-wide.webp) center / cover no-repeat; opacity: .13; filter: grayscale(1) contrast(1.15);
  -webkit-mask: radial-gradient(ellipse 75% 70% at 50% 50%, #000 0, rgba(0,0,0,.55) 45%, transparent 82%); mask: radial-gradient(ellipse 75% 70% at 50% 50%, #000 0, rgba(0,0,0,.55) 45%, transparent 82%); }
@media (max-width: 960px) { .fband::after { width: auto; opacity: .1; } }
/* "Built for:" + industries as one small line above the heading */
.fband-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 26px; }
.fk-label { margin: 0; font-size: 14px; font-weight: 500; color: var(--gray-light); }
.fk-list { gap: 8px 18px; }
.fk-list a { display: inline-flex; align-items: center; gap: 8px; }
.fk-ic { width: 34px; height: 34px; }
.fk-ic svg { width: 22px; height: 22px; }
.fk-t { font-size: 13px; }
@media (max-width: 600px) { .fk-list { display: flex; grid-template-columns: none; gap: 8px 14px; } .fk-ic { width: 32px; height: 32px; } .fk-ic svg { width: 20px; height: 20px; } }

/* inner page heroes: room on the right for a line animation; the slogan never runs wider than the heading */
@media (min-width: 961px) { .ohead .wrap > .lead, .ohead.has-art .wrap > .lead { max-width: var(--h1w, 58ch); } }
.ohead .actions { margin-top: 34px; }
.hero-art { position: absolute; top: 50%; right: max(var(--pad), calc((100vw - 1440px) / 2 + var(--pad))); width: clamp(300px, 28vw, 440px); aspect-ratio: 1; translate: 0 -46%; pointer-events: none; z-index: 1; overflow: visible; }
.hero-art .ln { fill: none; stroke: var(--green-lit); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .ln-soft { fill: none; stroke: rgba(13,18,16,.16); stroke-width: 1; }
.hero-art .nd { fill: #FFFFFF; stroke: var(--green-lit); stroke-width: 1.5; }
.hero-art .ic path { fill: var(--green-lit-lo); }
.hero-art .lbl { font: 500 13px "Geist Mono", monospace; fill: var(--green-lit-lo); letter-spacing: .02em; }
.hero-art .dot { fill: var(--green-lit); filter: drop-shadow(0 0 6px rgba(42,157,94,.8)); }
@media (min-width: 1181px) { .ohead.has-art .wrap > * { max-width: min(1120px, calc(100% - clamp(300px, 28vw, 440px) - 72px)); } }
@media (max-width: 1180px) { .hero-art { display: none; } }
.hero-art .qm { font: 600 84px/1 Geist, system-ui, sans-serif; fill: var(--green-lit-lo); }
.hero-art .ic path { stroke: none; }

/* ---------- Nov 18 (round 6): hover on content boxes = green border, a deeper shadow, a small lift ---------- */
.ui, .acard, .grid4 li, .iphoto, .modes3 li, .cols3 li, .dash { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.ui.rv-on, .acard.rv-on, .grid4 li.rv-on, .iphoto.rv-on, .modes3 li.rv-on, .cols3 li.rv-on {
  transition: translate 1.1s var(--ease-out) var(--d, 0ms), scale 1.1s var(--ease-out) var(--d, 0ms), opacity .9s var(--ease-out) var(--d, 0ms), filter .9s var(--ease-out) var(--d, 0ms), transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
@media (hover: hover) {
  .ui:hover, .acard:hover, .grid4 li:hover, .iphoto:hover, .modes3 li:hover, .cols3 li:hover { transform: translateY(-5px); border-color: rgba(42,157,94,.6); box-shadow: 0 44px 84px -38px rgba(13,18,16,.32), 0 16px 34px -20px rgba(31,122,73,.26); }
  .dash:hover { border-color: rgba(42,157,94,.6); box-shadow: 0 44px 84px -38px rgba(13,18,16,.3), 0 16px 34px -20px rgba(31,122,73,.22); }
}

/* bigger, stronger buttons across the site */
.btn { height: 58px; padding: 0 28px; font-size: 16.5px; }
.btn-primary { font-weight: 600; box-shadow: 0 12px 26px -14px rgba(31,122,73,.55), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-sm { height: 46px; padding: 0 20px; font-size: 15px; }
@media (max-width: 960px) { .btn-sm { height: 44px; } }

/* Home hero button: a soft green glow that drifts slowly around it and breathes */
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 14px 34px -10px rgba(42,157,94,.50), 0 0 0 0 rgba(42,157,94,0), inset 0 1px 0 rgba(255,255,255,.22); }
  25% { box-shadow: 12px 6px 38px -8px rgba(42,157,94,.62), 0 0 22px 2px rgba(111,212,154,.18), inset 0 1px 0 rgba(255,255,255,.22); }
  50% { box-shadow: 0 -6px 30px -10px rgba(42,157,94,.34), 0 0 34px 4px rgba(111,212,154,.10), inset 0 1px 0 rgba(255,255,255,.22); }
  75% { box-shadow: -12px 8px 40px -8px rgba(42,157,94,.58), 0 0 18px 1px rgba(111,212,154,.20), inset 0 1px 0 rgba(255,255,255,.22); }
}
.hero-c.hero-v .hero-cta-b .btn { height: 62px; padding: 0 30px; font-size: 18px; animation: ctaGlow 7.5s ease-in-out infinite; }
@media (max-width: 600px) { .hero-c.hero-v .hero-cta-b .btn { height: 58px; font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .hero-c.hero-v .hero-cta-b .btn { animation: none; } }

/* Industries (desktop): the photo runs exactly as tall as the text beside it, from the icon to the last list line */
@media (min-width: 961px) {
  .igrid { align-items: stretch; }
  .iscreen .itext { align-self: center; }
  .iphoto { aspect-ratio: auto; height: auto; min-height: 360px; align-self: stretch; }
  .iphoto img { position: absolute; inset: 0; }
}
/* About: the button under the story text */
.story-col .actions { margin-top: 8px; }

/* footer: contact details and LinkedIn, all clickable */
.foot-grid { grid-template-columns: 2fr 1fr 1.2fr 1fr; }
.foot-contact { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.foot-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--gray-light); transition: color .2s; }
.foot-contact a:hover { color: var(--green-lit-lo); }
.foot-contact svg { flex: none; width: 18px; height: 18px; color: var(--green-lit-lo); }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-contact a { min-height: 44px; white-space: nowrap; } }
@media (max-width: 600px) { .foot-contact { grid-column: 1 / -1; order: 3; } .foot-legal { order: 2; } }

/* ============================================================
   Nov 18: responsive pass (QA at 320-2560 px, portrait and landscape)
   ============================================================ */
/* Home hero, desktop: the stage hugs the video, so the button always sits on the video's white floor, also when
   the video hits its 720px cap (2560x1440, 1024x1366 left it ~200px under the video). Spare height is split
   above and below; the height never exceeds what the width allows, so the video keeps its shape. */
.hero-c.hero-v { overflow-x: clip; }   /* the drifting waves run past the screen edge (phones zoomed out) */
@media (min-width: 961px) {
  .hero-c.hero-v { justify-content: center; }
  .hero-c.hero-v .stage { flex: 0 1 auto; container-type: inline-size; }
  .hero-c.hero-v .frame { flex: 0 1 auto; height: min(66vh, 720px, 66.3cqw); }
}
/* phones and tablets: the video grows with the spare height (tablets had a small video and an empty bottom),
   and shrinks on landscape phones so heading and video share the screen */
@media (max-width: 960px) { .hero-c.hero-v .frame { width: min(100%, max(330px, (100svh - 520px) * 1.5)); } }
@media (max-width: 400px) { .hero-c.hero-v .hero-cta-b .btn { padding-left: 22px; gap: 12px; font-size: 16px; } }
@media (max-width: 359px) { .hero-c.hero-v h1 { font-size: 42px; } }   /* 320px: "by up to 30%." on one line, not "by up / to 30%." */
/* Nov 18 late, phones: heading, slogan, video AND button in the first screen (the button sat under the fold
   at 390x717, a real Android Chrome screen). Tighter gaps above and between, same H1 size. */
@media (max-width: 600px) {
  .hero-c.hero-v .hero-top { padding-top: clamp(14px, 2.4vh, 24px); padding-bottom: 14px; }
  .hero-c.hero-v .eyebrow { margin-bottom: 12px; gap: 8px; font-size: 13.5px; line-height: 1.35; }
  .hero-c.hero-v .lead { margin-top: 12px; font-size: 16.5px; line-height: 1.45; }
  .hero-c.hero-v .hero-cta-b { padding-top: 14px; }
  .hero-c.hero-v .frame { width: min(100%, max(300px, (100svh - 470px) * 1.5)); }
}

/* Nov 18 late: the last story box (Act) docks to the bottom of the story instead of fading out (story.js .docked);
   same spot as the fixed box at the moment it switches, so nothing jumps */
#story.docked .chapter:last-child .panel { position: absolute; opacity: 1 !important; visibility: visible; pointer-events: auto; transition: none; }
@media (min-width: 961px) { #story.docked .chapter:last-child .panel { top: calc(100% - 50vh); } }

/* inner page heroes: the drawing is centred on the text block, not on the band behind the nav
   (FAQ and Industries: it touched the nav at 1280-1366) */
.hero-art { top: calc(50% + (76px + clamp(56px, 10vh, 104px) - clamp(48px, 7vh, 80px)) / 2); }
/* laptops (1181-1439): the heading beside the drawing also follows the screen height, so the slogan and
   button stay in view (five lines at 97-104px pushed them under the fold at 720-768px tall) */
@media (min-width: 1181px) and (max-width: 1439px) { .ohead h1 { font-size: clamp(46px, min(6.7vw, 10.2vh), 112px); } }

/* Detect / Diagnose / Act box: the same space under the three words in every chapter
   (chapters 2-3 use a <p>, which ".panel p" reset to 0, so the words touched the line under them) */
#story .panel .dda { margin-bottom: 18px; }
.lock-k { width: max-content; }   /* the label box always wraps its text */
@media (max-width: 960px) {
  #story .panel .dda { margin-bottom: 12px; }
  #story .dda span { white-space: nowrap; }   /* the green dot stays with its word */
}
@media (max-width: 400px) { #story .panel .dda { gap: 8px; } #story .dda span { font-size: clamp(20px, 6.6vw, 26px); } }
@media (max-width: 374px) { .zone { display: none; } }   /* its label sat on the "Root cause" label; the box text names Zone B */
/* short phones: a tighter box, so more of the plant shows above it */
@media (max-width: 960px) and (max-height: 700px) {
  #story .panel { padding: 14px 16px 10px; }
  #story .insight { margin-top: 10px; padding: 10px 12px; }
}
/* landscape phones: the box moves to the right, the plant stays visible on the left */
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  #story .panel { left: auto; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 10px; width: min(440px, 54vw); margin: 0; }
}

/* tablets: single-column cards at a readable width instead of stretched across the screen */
@media (min-width: 601px) and (max-width: 960px) { .modes3, .cols3 { max-width: 600px; margin-inline: auto; } }
@media (max-width: 600px) { .fx-orn, .iscreen .fx-orn { margin-bottom: 28px; } }   /* the icon drifts 28px (fx.js): kept clear of the label under it */

/* buttons that ran past their box on 320-360px phones */
@media (max-width: 420px) {
  .fband-form { padding-inline: 16px; }
  .form .btn { justify-self: stretch; justify-content: center; padding-left: 18px; gap: 10px; font-size: 15px; }
  .form .btn .chip-ic { width: 32px; height: 32px; }
  .vsteps .step { column-gap: 14px; }
  .vsteps .free .btn { padding-left: 14px; gap: 8px; font-size: 14px; }
  .vsteps .free .btn .chip-ic { width: 30px; height: 30px; }
}
/* Platform dashboard: the "Sample data" tag sat on the address bar text; on phones it goes above the card */
@media (max-width: 480px) { .dash-wrap .tag-sample { position: static; display: table; margin: 0 0 12px auto; } }

/* touch targets (tablets in landscape are touch too): footer contact and the "Built for" links */
@media (min-width: 961px) and (max-width: 1180px) { .foot-contact { gap: 0; } .foot-contact a { min-height: 44px; } }
@media (max-width: 1180px) { .fk-list a { min-height: 44px; } }

/* Nov 18 late: tiny live readings riding the hero waves (js/waves.js). Desktop only, beside the video. */
.wave-tags { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wt { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .9s var(--ease-out); will-change: transform; }
.wt.on { opacity: 1; }
.wt-dot { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-lit); box-shadow: 0 0 0 4px rgba(42,157,94,.14); }
.wt-stem { position: absolute; left: -.5px; bottom: 4px; width: 1px; height: 12px; background: linear-gradient(rgba(31,122,73,0), rgba(31,122,73,.5)); }
.wt.below .wt-stem { bottom: auto; top: 4px; background: linear-gradient(rgba(31,122,73,.5), rgba(31,122,73,0)); }
.wt-box { position: absolute; left: 0; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px 9px 5px 6px; border-radius: 8px; background: rgba(255,255,255,.74); border: 1px solid rgba(31,122,73,.16); box-shadow: 0 8px 18px -12px rgba(13,18,16,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; box-sizing: border-box; }
.wt.below .wt-box { bottom: auto; top: 16px; }
.wt-ic { width: 18px; height: 18px; flex: none; }
.wt-k { display: block; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; color: #59605C; line-height: 1.2; }
.wt-v { display: block; font-size: 12.5px; font-weight: 600; color: #26302B; font-variant-numeric: tabular-nums; line-height: 1.25; letter-spacing: -.01em; transition: opacity .22s, transform .22s; }
.wt-v small { font-size: 9.5px; font-weight: 500; color: #59605C; margin-left: 2px; }
.wt-v.out { opacity: 0; transform: translateY(3px); }
@media (max-width: 960px) { .wave-tags { display: none; } }

/* Nov 18 (speed): the 3D loads after the page itself (story.js -> story-3d.js); its canvas fades in once the
   plant is built and its first frame is ready */
#storyCanvas { opacity: 0; transition: opacity .8s var(--ease-out); }
.story-stage.live #storyCanvas { opacity: 1; }
html.no-motion #storyCanvas { transition: none; }
@media (prefers-reduced-motion: reduce) { #storyCanvas { transition: none; } }
/* Nov 19, iPhone scroll: the story box blurred the moving 3D behind it on every frame. At 90% white the blur
   is invisible, so phones get a plain, slightly denser box and the GPU only draws the plant. */
@media (max-width: 960px) { #story .panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.95); } }
