/* =============================================================================
   BeezInvite — Forest & Botanical layer  (loads after site.css)
   Palette: deep forest · sage · moss · ivory/cream · blush rose · antique gold — strictly green + warm neutrals.
   Motion: transform / translate / opacity only (filters are static, or driven by the compositor).
   Sections:  1 base  2 buttons  3 cards + leaf shade  4 filter chips  5 occasions strip
              6 botanical stage (flat-lay + animated leaf shadows)  7 hero extras
              8 cinematic showcase  9 vertical ad rail + device mockups  10 grain
              11 scrollbars (phone views)  12 responsive containers  13 reduced motion
   ============================================================================= */

/* ---------- 1. Base ---------- */
@view-transition { navigation: auto; }                  /* filter / page changes cross-fade where supported */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
html { scroll-padding-top: 88px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: var(--z-modal); padding: 10px 18px; border-radius: 999px; background: var(--forest); color: var(--ivory); font-weight: 600; translate: 0 -160%; transition: translate .2s; }
.skip-link:focus { translate: 0 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.t-body h3, .feature h3, .step h3, .plan h3, .page-head h1, .auth-card h1 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; }
.t-body h3 { font-size: 1.4rem; line-height: 1.1; }
.feature h3, .step h3 { font-size: 1.45rem; }
.lead { color: var(--ink-2); }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; color: var(--brand); }
.block-alt { background: linear-gradient(180deg, var(--sage-wash), var(--ivory)); border-block: 1px solid var(--gold-line); }
.cta-band { background: radial-gradient(90% 120% at 100% 0%, #3f7054 0%, transparent 55%), var(--forest); box-shadow: inset 0 0 0 1px var(--gold-line), var(--shadow-lg); }
.cta-band h2 { color: var(--ivory); font-weight: 500; }
.cta-band::before, .cta-band::after { background: rgba(250, 246, 236, .07); }
.step::before { font-family: var(--display); font-size: 1.3rem; color: var(--ivory); box-shadow: 0 8px 18px -8px rgba(31, 63, 48, .7), inset 0 0 0 1px var(--gold-line); }
.kpi b, .plan .price, .stats b { font-variant-numeric: lining-nums; }
.meter i, .ph .bar i { background: var(--grad); }

/* ---------- 2. Buttons ---------- */
.btn { font-weight: 500; letter-spacing: .03em; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad); background-size: 150% 100%; color: var(--ivory); box-shadow: 0 12px 24px -14px rgba(31, 63, 48, .85), inset 0 0 0 1px rgba(184, 149, 90, .5); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 18px 30px -14px rgba(31, 63, 48, .75), inset 0 0 0 1px var(--gold); }
.btn-dark { background: var(--forest-deep); color: var(--ivory); }
.btn-dark:hover { box-shadow: 0 14px 26px -14px rgba(18, 36, 26, .8); }
.btn-ghost { background: rgba(255, 253, 248, .86); border-color: var(--line); color: var(--forest); }
.btn-ghost:hover { border-color: var(--sage); }
.btn-gold { background: linear-gradient(120deg, #e1c892, #b8955a); color: #2b2110; box-shadow: 0 12px 24px -14px rgba(125, 98, 50, .9); }
.badge-premium { background: linear-gradient(120deg, #f4e6c6, #e1c892); color: #5a4417; }
.badge-free { background: var(--sage-soft); color: #1f4a32; }
.switch input:checked + span { background: var(--forest-2); }
.check input { accent-color: var(--forest-2); }

/* ---------- 3. Cards: ivory, rounded, thin border, green-tinted shadow, lift + leaf shade on hover ---------- */
.t-card, .cat, .feature, .step, .plan, .kpi, .inv-card, .faq details, .personalise { background-color: var(--card); border-color: var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 12px 30px -22px rgba(31, 63, 48, .5); }
.t-card { border-radius: 22px; position: relative; isolation: isolate; }
.t-card:hover { transform: translateY(-8px); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 30px 50px -26px rgba(31, 63, 48, .6); }
.cat, .feature { position: relative; isolation: isolate; overflow: hidden; }
.t-card::after, .feature::after, .cat::after {
  content: ''; position: absolute; inset: 0; width: auto; height: auto; z-index: 5; border-radius: inherit; pointer-events: none;
  background: url('../img/botanical/flatlay-shadow-800.webp') 18% 108% / 210% auto no-repeat;
  mix-blend-mode: multiply; filter: none; opacity: 0; translate: -16px 10px;
  transition: opacity .5s ease, translate .9s cubic-bezier(.2, .8, .2, 1);
}
.t-card:hover::after, .t-card:focus-within::after, .feature:hover::after, .cat:hover::after { opacity: .16; translate: 0 0; }
.cat:hover { border-color: var(--sage); }
.t-overlay { background: linear-gradient(to top, rgba(18, 36, 26, .78), transparent 62%); }
.t-media { background: var(--cream); }
.plan.pop { background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, #b8955a, #2d5a42) border-box; }
.notice { background: #fbf3df; border-color: #ecd9a8; color: #5a4417; }
.notice.info { background: var(--sage-wash); border-color: #cddcc8; color: #234733; }

/* ---------- 4. Filter chips: pill, sage / blush, active = forest + ivory, keyboard friendly ---------- */
.chip { background: var(--sage-soft); border: 1.5px solid transparent; color: var(--forest); font-weight: 500; letter-spacing: .02em;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s; }
.chips .chip, .toolbar .chip { background: var(--blush-soft); }
.chip:hover { background: #d3e0cc; transform: translateY(-1px); border-color: transparent; }
.chips .chip:hover, .toolbar .chip:hover { background: #f3d6d1; }
.chip:active { transform: scale(.97); }
.chip.active, .chip[aria-pressed="true"], .chip[aria-current] { background: var(--forest); border-color: var(--forest); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(184, 149, 90, .55), 0 10px 20px -12px rgba(31, 63, 48, .8); }
.chip:focus-visible { outline: 3px solid var(--forest-2); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(184, 149, 90, .35); }
.t-card.is-entering { animation: chipIn .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes chipIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
#tGrid, .t-grid { view-transition-name: tgrid; }
.search input, .pz-fields input, .sort select { background: var(--ivory); }
.search input:focus, .pz-fields input:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(127, 156, 133, .22); }

/* ---------- 5. Occasions strip ---------- */
.marquee { background: var(--ivory); border-block: 1px solid var(--gold-line); padding: 18px 0; }
.marquee-track span { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.35rem; color: var(--forest); }

/* ---------- 6. Botanical stage ----------
   One photograph, five depth layers (back → front):
     paper tone  →  ambient dappled shadow (big, slow)  →  contact shadow (tight, sways)  →  flat-lay (multiply)  →  light rays
   The shadows are cast from the *real leaf silhouettes* (flatlay-shadow-*.webp) and move at different speeds from the leaves,
   so the foliage appears to lift off the paper. Pointer + scroll drive the depth; CSS keyframes drive the idle sway.        */
.botanical { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; isolation: isolate; background: var(--paper); --mx: 0; --my: 0; --sy: 0; contain: paint; }
.bt-paper { position: absolute; inset: 0; background: radial-gradient(110% 70% at 18% 0%, #fbf7ec 0%, transparent 62%), radial-gradient(90% 60% at 92% 8%, #f6eddb 0%, transparent 64%); }
/* NB: no transform/translate/opacity/filter on the stage — any of them would isolate it and stop the photo's multiply from reaching the paper */
.bt-stage { --bt-w: max(100%, 1180px); position: absolute; bottom: 0; left: calc((100% - var(--bt-w)) / 2); width: var(--bt-w); aspect-ratio: 1600 / 893; }
.bt-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bt-stage img { width: 100%; height: 100%; object-fit: fill; user-select: none; -webkit-user-drag: none; }
.bt-leaves img { filter: brightness(1.025); }   /* clips the photo's paper to pure white so multiply is exactly neutral (no seam) */
.bt-leaves { mix-blend-mode: multiply; transform-origin: 62% 100%; will-change: transform, translate;
  translate: calc(var(--mx) * -6px) calc(var(--my) * -4px + var(--sy) * -22px); animation: btBreathe 32s ease-in-out infinite alternate; }
.bt-shadow { will-change: transform, translate; }
.bt-shadow img { filter: blur(var(--bt-blur, 7px)); }
.bt-shadow--contact { --bt-blur: 7px; opacity: .34; transform-origin: 62% 100%; margin: 1.1% 0 0 1.3%;
  translate: calc(var(--mx) * -15px) calc(var(--my) * -9px + var(--sy) * -42px); animation: btSway 17s ease-in-out infinite alternate; }
.bt-shadow--ambient { --bt-blur: 26px; opacity: .17; transform-origin: 66% 100%; margin: 3.4% 0 0 4.4%; scale: 1.1;
  translate: calc(var(--mx) * -28px) calc(var(--my) * -15px + var(--sy) * -74px); animation: btDrift 38s ease-in-out infinite alternate; }
.bt-light { overflow: hidden; mix-blend-mode: soft-light; }
.bt-light i { position: absolute; top: -30%; bottom: -30%; width: 34%; left: -20%; rotate: 16deg; will-change: transform, opacity;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 214, .9) 50%, transparent); opacity: .55; animation: btRay 23s ease-in-out infinite; }
.bt-light i:nth-child(2) { width: 18%; left: 8%; opacity: .4; animation-duration: 31s; animation-delay: -11s; }
.bt-fade { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(48px, 8vw, 120px); background: linear-gradient(to top, var(--ivory), rgba(250, 246, 236, 0)); }
.botanical.is-paused * { animation-play-state: paused !important; }
@keyframes btBreathe { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.045) rotate(.35deg); } }
@keyframes btSway    { 0% { transform: translate3d(-.5%, 0, 0) rotate(-.45deg) scale(1); } 50% { transform: translate3d(.7%, .5%, 0) rotate(.25deg) scale(1.012); } 100% { transform: translate3d(1.4%, .9%, 0) rotate(.7deg) scale(1.02); } }
@keyframes btDrift   { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 1.5%, 0) scale(1.06); } }
@keyframes btRay     { 0% { transform: translateX(0); opacity: 0; } 18% { opacity: .6; } 82% { opacity: .5; } 100% { transform: translateX(520%); opacity: 0; } }
/* Phones and tablets: the backdrop stays still. Re-blending these large multiply/soft-light layers on every
   frame costs a phone's CPU far more than the slow drift is worth (it was most of the page's blocking time). */
@media (hover: none), (max-width: 767px) {
  .botanical *, .grad-text { animation: none !important; }
  /* the headline paints at once (a fade-in from opacity 0 holds back the first paint), and the 50 catalogue
     cards skip their scroll-linked blur, which recomputes every card on every scroll frame */
  .hero-copy > * { animation: none !important; }
}
@media (max-width: 700px) {
  .bt-stage { --bt-w: max(142%, 560px); aspect-ratio: 900 / 785; }
  .bt-shadow--contact { --bt-blur: 5px; }
  .bt-shadow--ambient { --bt-blur: 16px; }
}

/* ---------- 7. Hero extras ---------- */
.phone-wrap { grid-column: 8 / span 5; }
.phone { background: linear-gradient(145deg, #26332b, #0c140f); box-shadow: 0 40px 70px -30px rgba(18, 36, 26, .65), inset 0 0 0 2px rgba(255, 255, 255, .08), 0 0 0 1px rgba(184, 149, 90, .35); }
.hero-copy > * { animation: heroRise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } }
@media (max-width: 900px) { .phone-wrap { grid-column: 1 / -1; } }

/* ---------- 8. Cinematic showcase ---------- */
.cine { position: relative; }
/* The stage is a 3-row grid (copy · devices · note) sized from the VIEWPORT HEIGHT, so nothing can overflow the pinned frame. */
.cine-stage { position: relative; isolation: isolate; overflow: clip; min-height: min(84svh, 760px);
  display: grid; grid-template-rows: auto auto auto; align-content: space-between; justify-items: center;
  row-gap: clamp(12px, 2.4svh, 32px); padding: clamp(20px, 4svh, 48px) 0 clamp(36px, 7svh, 88px); background: var(--paper); }
.cine-copy { position: relative; isolation: isolate; z-index: 2; text-align: center; max-width: 780px; padding-inline: 16px; }
/* ivory scrim — keeps heading + lead at AA contrast when a dark leaf drifts behind them */
.cine-copy::before { content: ''; position: absolute; inset: -14% -10% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(250, 246, 236, .94) 0%, rgba(250, 246, 236, .8) 60%, rgba(250, 246, 236, 0) 100%); }
.cine-copy .kicker { margin-bottom: clamp(6px, 1.2svh, 14px); }
.cine-copy h1 { font-family: var(--display); font-size: clamp(2.2rem, min(1rem + 4.6vw, 7.4svh), 5rem); font-weight: 500; line-height: .98; letter-spacing: -.015em; color: var(--forest); margin: 0 0 .25em; }
.cine-copy h1 .script { font-family: var(--script); font-weight: 400; font-size: 1.2em; line-height: .75; letter-spacing: 0; color: var(--brand); display: inline-block; padding-inline: .04em; }
.cine-copy .lead { font-size: clamp(1rem, 2.4svh, 1.3rem); line-height: 1.5; max-width: 54ch; margin: 0 auto clamp(12px, 2.4svh, 24px); color: var(--ink); }
.cine-devices { position: relative; z-index: 2; width: min(980px, 92vw); height: clamp(180px, 34svh, 420px); transform-origin: 50% 100%; }
.cine-devices .dv { position: absolute; }
.cine-devices .dv-laptop { left: 50%; top: 0; translate: -50% 0; font-size: clamp(8px, min(1.5vw, 2.45svh), 19px); z-index: 2; }
.cine-devices .dv-tablet { left: 2%; bottom: 0; font-size: clamp(7px, min(1.18vw, 2svh), 15px); }
.cine-devices .dv-phone  { right: 5%; bottom: 0; font-size: clamp(6px, min(1.02vw, 1.6svh), 13px); }
.cine-note { position: relative; z-index: 2; text-align: center; font-family: var(--script); font-size: clamp(1.3rem, min(2.4vw, 4svh), 2rem); line-height: 1.1; color: var(--forest); text-shadow: 0 0 16px #faf6ec, 0 0 6px #faf6ec, 0 0 2px #faf6ec; }
@media (max-width: 700px) {
  .cine-devices .dv-laptop { font-size: clamp(8px, min(3.2vw, 2.45svh), 19px); }
  .cine-devices .dv-tablet { font-size: clamp(7px, min(2.5vw, 2svh), 15px); }
  .cine-devices .dv-phone  { font-size: clamp(6px, min(2.1vw, 1.6svh), 13px); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-height: 560px) {
    /* the scene is pinned for 170svh while the "camera" moves: long shot → close-up */
    .cine { height: 270svh; view-timeline: --cine block; }
    .cine-stage { position: sticky; top: 76px; height: calc(100svh - 76px); min-height: 0; }
    .cine .botanical, .cine-copy, .cine-devices, .cine-devices .dv { animation-timeline: --cine; animation-fill-mode: both; animation-timing-function: linear; animation-range: cover 37% cover 63%; }
    .cine .botanical { animation-name: cineDolly; transform-origin: 62% 100%; }
    .cine-copy { animation-name: cineCopy; }
    .cine-devices { animation-name: cineDevices; }
    .cine-devices .dv-tablet { animation-name: cinePanL; }
    .cine-devices .dv-phone  { animation-name: cinePanR; }
    .cine-devices .dv-laptop { animation-name: cineFocus; }
    .cine-note { animation: cineNote linear both; animation-timeline: --cine; animation-range: cover 52% cover 63%; }
    @keyframes cineDolly   { to { scale: 1.32; } }
    @keyframes cineCopy    { 0% { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); } 55% { opacity: .9; } 100% { opacity: 0; translate: 0 -48px; scale: 1.06; filter: blur(7px); } }
    @keyframes cineDevices { 0% { opacity: .15; scale: .6; filter: blur(9px); } 55% { opacity: 1; filter: blur(2px); } 100% { opacity: 1; scale: 1; filter: blur(0); } }
    @keyframes cinePanL    { from { translate: -16% 8%; filter: blur(5px); } to { translate: 0 0; filter: blur(0); } }
    @keyframes cinePanR    { from { translate: 16% 8%; filter: blur(5px); } to { translate: 0 0; filter: blur(0); } }
    @keyframes cineFocus   { from { filter: blur(4px); } to { filter: blur(0); } }
    @keyframes cineNote    { from { opacity: 0; } to { opacity: 1; } }
  }
}
@supports not (animation-timeline: view()) { .cine-note { position: static; translate: none; display: block; text-align: center; margin-top: 24px; } .cine-devices { margin-bottom: 32px; } }
@media (prefers-reduced-motion: reduce) { .cine-note { position: static; translate: none; display: block; text-align: center; margin-top: 24px; } .cine-devices { margin-bottom: 32px; } }

/* ---------- 8b. Phones: touch-first scroll story ----------
   Same pinned "camera" idea as the desktop opener, retuned for a thumb:
   · shorter pin (130svh of swiping instead of 170svh) so it never feels like a wall
   · no blur() anywhere — blur is repainted every frame on a phone GPU; this uses only opacity / translate / scale / rotate (compositor-only)
   · the three devices fan in from below and the sides, big enough to read (the old trio was ~6px type)
   · a small bobbing chevron says "keep swiping" and leaves with the headline
   · catalogue cards rise into place once as they enter (no exit blur, no per-frame filter) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-height: 560px) and (max-width: 700px) {
    .cine { height: 230svh; }
    .cine .botanical, .cine-copy, .cine-devices, .cine-devices .dv { animation-range: cover 34% cover 66%; }
    .cine .botanical { animation-name: cineDollyM; }
    .cine-copy { animation-name: cineCopyM; }
    .cine-devices { animation-name: cineDevicesM; width: min(100%, 440px); height: clamp(210px, 36svh, 330px); }
    .cine-devices .dv-laptop { font-size: clamp(7px, min(3vw, 2.1svh), 14px); animation-name: cineLaptopM; }
    .cine-devices .dv-tablet { left: 4%;  font-size: clamp(7px, min(2.3vw, 1.4svh), 12px); z-index: 1; animation-name: cinePanLM; }
    .cine-devices .dv-phone  { right: 8%; font-size: clamp(8px, min(2.7vw, 1.7svh), 14px); z-index: 3; animation-name: cinePanRM; }
    .cine-note { animation-range: cover 56% cover 66%; animation-name: cineNoteM; }
    .cine-copy::after { content: ''; display: block; width: 14px; height: 14px; margin: 16px auto 0; border: solid var(--forest-2, #2d5a42); border-width: 0 2.5px 2.5px 0; rotate: 45deg; opacity: .5; animation: cineHint 1.9s ease-in-out infinite; animation-timeline: auto; }
    @keyframes cineDollyM   { from { scale: 1; translate: 0 0; } to { scale: 1.28; translate: 0 -3%; } }
    @keyframes cineCopyM    { 0% { opacity: 1; translate: 0 0; scale: 1; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 -44px; scale: .96; } }
    @keyframes cineDevicesM { 0% { opacity: 0; translate: 0 90px; scale: .82; } 40% { opacity: 1; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
    @keyframes cineLaptopM  { from { translate: -50% 16%; scale: .9; } to { translate: -50% 0; scale: 1; } }
    @keyframes cinePanLM    { from { translate: -34% 26%; rotate: -8deg; } to { translate: 0 0; rotate: -3deg; } }
    @keyframes cinePanRM    { from { translate: 34% 30%; rotate: 9deg; } to { translate: 0 0; rotate: 2deg; } }
    @keyframes cineNoteM    { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
    @keyframes cineHint     { 0%, 100% { translate: 0 0; opacity: .25; } 50% { translate: 0 8px; opacity: .7; } }
  }
}
/* Gallery layout: grid + sticky vertical ad rail */
.showcase-layout { display: grid; grid-template-columns: minmax(0, 1fr) 272px; grid-template-areas: "main ad"; gap: clamp(24px, 3vw, 40px); align-items: start; }
.showcase-main { grid-area: main; min-width: 0; }
.showcase .t-grid, [data-parallax-cols] { padding-block: 40px 56px; gap: 32px clamp(20px, 2.4vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* each card dollies in from a soft, out-of-focus long shot and defocuses again as it leaves */
    .showcase .t-card.reveal { opacity: 1; transform: none; transition: box-shadow .35s, transform .35s cubic-bezier(.2, .8, .2, 1); }
    .showcase .t-card { animation: cineCard linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .showcase .t-card.picked { animation: picked 1.2s ease, cineCard linear both; animation-timeline: auto, view(); animation-range: normal, cover 0% cover 100%; }
    .showcase .t-card.is-entering { animation: chipIn .55s cubic-bezier(.2, .8, .2, 1) both, cineCard linear both; animation-timeline: auto, view(); animation-range: normal, cover 0% cover 100%; }
    @keyframes cineCard { 0% { opacity: 0; scale: .92; filter: blur(9px); } 24% { opacity: 1; scale: 1; filter: blur(0); } 76% { opacity: 1; scale: 1; filter: blur(0); } 100% { opacity: .4; scale: .975; filter: blur(5px); } }
  }
}

/* phones: cards rise into place once (placed after the desktop cineCard rules so it wins) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (max-width: 767px), (prefers-reduced-motion: no-preference) and (hover: none) {
    .showcase .t-card, .showcase .t-card.reveal { animation: cineCardM linear backwards; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .showcase .t-card.picked { animation: picked 1.2s ease; animation-timeline: auto; animation-range: normal; }
    .showcase .t-card.is-entering { animation: chipIn .55s cubic-bezier(.2, .8, .2, 1) both; animation-timeline: auto; animation-range: normal; }
    @keyframes cineCardM { from { opacity: 0; translate: 0 34px; scale: .95; } to { opacity: 1; translate: 0 0; scale: 1; } }
  }
}

/* ---------- 9. Vertical ad rail + device mockups ---------- */
.ad-rail { grid-area: ad; position: sticky; top: calc(var(--nav-h, 76px) + 24px); align-self: start; height: min(78svh, 660px); display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #fffdf8, var(--sage-wash)); border: 1px solid var(--gold-line); box-shadow: 0 30px 56px -34px rgba(31, 63, 48, .65); }
.ad-rail::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../img/botanical/flatlay-shadow-800.webp') 8% 120% / 330% auto no-repeat; opacity: .07; }
.ad-head { padding: 20px 20px 4px; text-align: center; }
.ad-head .kicker { margin: 0 0 4px; font-size: .66rem; }
.ad-head b { display: block; font-family: var(--script); font-weight: 400; font-size: 1.7rem; line-height: 1.05; color: var(--forest); }
.ad-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); }
.ad-track { display: flex; flex-direction: column; will-change: transform; animation: adY 34s linear infinite; }
.ad-rail:hover .ad-track, .ad-rail:focus-within .ad-track { animation-play-state: paused; }
.ad-slide { flex: none; display: grid; justify-items: center; align-content: center; gap: 12px; padding: 22px 16px; min-height: 300px; text-align: center; }
.ad-slide small { font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.ad-slide .dv { font-size: 11px; }
.ad-cluster { position: relative; width: 224px; height: 190px; }
.ad-cluster .dv { position: absolute; }
.ad-cluster .dv-laptop { left: 50%; top: 0; translate: -50% 0; font-size: 7.4px; z-index: 2; }
.ad-cluster .dv-tablet { left: 0; bottom: 0; font-size: 5.8px; }
.ad-cluster .dv-phone { right: 0; bottom: 0; font-size: 4.9px; }
.ad-foot { padding: 12px 16px 18px; text-align: center; }
.ad-foot .btn { width: 100%; }
@keyframes adY { to { transform: translateY(-50%); } }
@keyframes adX { to { transform: translateX(-50%); } }
.ad-track [aria-hidden="true"] a, .ad-track [aria-hidden="true"] button { visibility: hidden; }

/* tablet & mobile: the rail collapses into a horizontal banner between sections */
@media (max-width: 1100px) {
  .showcase-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ad" "main"; }
  .ad-rail { position: relative; top: auto; height: 190px; flex-direction: row; align-items: stretch; border-radius: 24px; }
  .ad-head { flex: none; width: clamp(150px, 24vw, 230px); display: grid; align-content: center; padding: 12px 16px; text-align: left; }
  .ad-viewport { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .ad-track { flex-direction: row; width: max-content; height: 100%; animation-name: adX; animation-duration: 38s; }
  .ad-slide { min-height: 0; width: 250px; padding: 14px 12px; }
  .ad-slide .dv { font-size: 8px; }
  .ad-cluster { width: 200px; height: 136px; }
  .ad-cluster .dv-laptop { font-size: 5.6px; } .ad-cluster .dv-tablet { font-size: 4.4px; } .ad-cluster .dv-phone { font-size: 3.7px; }
  .ad-slide > small { display: none; }
  .ad-foot { display: none; }
}
@media (max-width: 560px) { .ad-head { display: none; } .ad-rail { height: 170px; } }
.ad-band { padding: 0 0 var(--section-y); }
.ad-band .ad-rail { position: relative; top: auto; height: 190px; flex-direction: row; border-radius: 28px; }
.ad-band .ad-head { flex: none; width: clamp(160px, 22vw, 260px); display: grid; align-content: center; text-align: left; padding: 12px 20px; }
.ad-band .ad-viewport { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ad-band .ad-track { flex-direction: row; width: max-content; height: 100%; animation-name: adX; animation-duration: 38s; }
.ad-band .ad-slide { min-height: 0; width: 250px; padding: 14px 12px; }
.ad-band .ad-slide .dv { font-size: 8px; }
.ad-band .ad-cluster { width: 200px; height: 136px; }
.ad-band .ad-cluster .dv-laptop { font-size: 5.6px; } .ad-band .ad-cluster .dv-tablet { font-size: 4.4px; } .ad-band .ad-cluster .dv-phone { font-size: 3.7px; }
.ad-band .ad-slide > small, .ad-band .ad-foot { display: none; }
@media (max-width: 560px) { .ad-band .ad-head { display: none; } .ad-band .ad-rail { height: 170px; } }

/* Device mockups — sized in em so one rule set serves the hero, the rail and the banner */
.dv { position: relative; display: block; flex: none; font-size: 16px; }
.dv-screen { position: relative; overflow: hidden; background: var(--cream); isolation: isolate; }
.dv-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dv-screen .thumb { inset: auto; left: 0; top: 0; width: 320px; height: calc(320px / var(--ar-n, 1)); transform-origin: 0 0; scale: var(--k, .3); padding: 9% 10%; }
.dv-phone { width: 8.6em; aspect-ratio: 9 / 18.5; padding: .42em; border-radius: 1.5em; background: linear-gradient(145deg, #26332b, #0c140f); box-shadow: 0 1.6em 2.6em -1.3em rgba(18, 36, 26, .6), inset 0 0 0 .08em rgba(255, 255, 255, .1), 0 0 0 .06em rgba(184, 149, 90, .4); }
.dv-phone .dv-screen { width: 100%; height: 100%; border-radius: 1.14em; }
.dv-phone::before { content: ''; position: absolute; top: .78em; left: 50%; width: 2.6em; height: .62em; border-radius: 1em; translate: -50% 0; background: #0a100c; z-index: 3; }
.dv-tablet { width: 14em; aspect-ratio: 4 / 3; padding: .5em; border-radius: 1.1em; background: linear-gradient(145deg, #26332b, #0c140f); box-shadow: 0 1.6em 2.6em -1.3em rgba(18, 36, 26, .6), inset 0 0 0 .08em rgba(255, 255, 255, .1), 0 0 0 .06em rgba(184, 149, 90, .4); }
.dv-tablet .dv-screen { width: 100%; height: 100%; border-radius: .65em; }
.dv-laptop { width: 20em; }
.dv-lid { aspect-ratio: 16 / 10; padding: .5em .5em .6em; border-radius: .9em .9em .25em .25em; background: linear-gradient(145deg, #26332b, #0c140f); box-shadow: inset 0 0 0 .08em rgba(255, 255, 255, .1), 0 0 0 .06em rgba(184, 149, 90, .4); }
.dv-laptop .dv-screen { width: 100%; height: 100%; border-radius: .45em; }
.dv-base { height: .78em; margin: 0 -7%; border-radius: 0 0 1.3em 1.3em / 0 0 .8em .8em; background: linear-gradient(#e6e3d6, #b9b6a8); box-shadow: 0 1em 1.6em -.8em rgba(18, 36, 26, .55); position: relative; }
.dv-base::before { content: ''; position: absolute; top: 0; left: 50%; width: 22%; height: .26em; translate: -50% 0; border-radius: 0 0 .5em .5em; background: rgba(18, 36, 26, .22); }

/* ---------- 10. Paper grain (≈4%) ---------- */
body::after { content: ''; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .18 0 0 0 0 .12 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 180px 180px; }
body:has(.ed)::after { display: none; }

/* ---------- 11. Phone views: scrollbars hidden, scrolling untouched ---------- */
.phone, .phone iframe, .device.mobile, .device.mobile iframe, .no-scrollbar, .ad-viewport, .filters .scroll { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.phone::-webkit-scrollbar, .phone iframe::-webkit-scrollbar, .device.mobile::-webkit-scrollbar, .device.mobile iframe::-webkit-scrollbar, .no-scrollbar::-webkit-scrollbar, .ad-viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (max-width: 640px) { .tips-panel, .ed-panel, .modal-bg { scrollbar-width: none; -ms-overflow-style: none; } .tips-panel::-webkit-scrollbar, .ed-panel::-webkit-scrollbar, .modal-bg::-webkit-scrollbar { display: none; } }
.ed-tabs { scrollbar-color: #c4d2bf transparent; }
.ed-tabs::-webkit-scrollbar-thumb { background: #c4d2bf; }

/* ---------- 12. Responsive containers: 360 · 768 · 1024 · 1280 · 1536+ ---------- */
.container { --gutter: clamp(16px, 4vw, 48px); width: min(var(--container, 1200px), 100% - 2 * var(--gutter)); }
@media (min-width: 1280px) { .container { --container: 1240px; } }
@media (min-width: 1536px) { .container { --container: 1360px; } .hero h1, .cine-copy h1 { font-size: clamp(5rem, 3vw + 2.4rem, 5.8rem); } }
@media (max-width: 767px) { .section-head { margin-bottom: 32px; } .hero-cta .btn { flex: 1 1 100%; } }
@media (max-width: 380px) { .stats { gap: 8px 20px; padding: 12px 16px; } .eyebrow { font-size: max(12px, .75rem); letter-spacing: .08em; } }
html, body { max-width: 100%; }

/* ---------- 13. Reduced motion: everything falls back to a still, fully-legible layout ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .botanical *, .hero-copy > *, .ad-track, .t-card, .t-card::after, .reveal { animation: none !important; }
  /* static layout: one still "available on all screen sizes" panel instead of the scrolling banner */
  .ad-track { transform: none; width: 100%; justify-content: center; }
  .ad-track > .ad-slide:not(:first-child) { display: none; }
  .ad-viewport { overflow: visible; mask-image: none; -webkit-mask-image: none; }
  .ad-rail, .ad-band .ad-rail { height: auto; min-height: 0; }
  .ad-slide, .ad-band .ad-slide { width: 100%; min-height: 0; }
  .ad-band .ad-slide .dv, .ad-slide .dv { font-size: 9px; }
  .t-card.reveal, .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
/* ==========================================================================
   Feedback dialog — premium finish (React FeedbackBox.tsx + partials/feedback.blade.php share these classes)
   Solid ivory card, forest-ink type, neutral chips with a forest selected state, full-colour faces.
   ========================================================================== */
.modal-bg:has(.fb-modal) { background: rgba(14, 28, 20, .62); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }

.fb-modal {
  width: min(540px, 100%);
  padding: 0;
  background: #fffdf8;
  border: 1px solid rgba(184, 149, 90, .35);
  border-radius: 26px;
  box-shadow: 0 40px 80px -30px rgba(10, 24, 16, .65), 0 2px 0 rgba(255, 255, 255, .9) inset;
  color: var(--ink);
  scrollbar-width: thin; scrollbar-color: #cdd6c7 transparent;
}
.fb-modal > div { padding: 0 26px 24px; }

/* header band */
.fb-modal .fb-head {
  margin: 0 -26px 22px; padding: 24px 76px 20px 26px;
  background: linear-gradient(135deg, #fbf4ea 0%, #f6ece4 55%, #eaf1e5 100%);
  border-bottom: 1px solid rgba(184, 149, 90, .28);
  align-items: center; gap: 14px;
}
.fb-modal .fb-logo { width: 52px; height: 52px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(184, 149, 90, .45), 0 12px 24px -16px rgba(31, 63, 48, .7); }
.fb-modal .fb-logo img { width: 34px; height: 34px; }
.fb-modal .fb-title { font-family: var(--display); font-size: clamp(1.45rem, 1.2rem + 1vw, 1.75rem); font-weight: 600; color: var(--forest-deep); letter-spacing: -.01em; }
.fb-modal .fb-sub { margin-top: 5px; font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.fb-modal .x { top: 20px; right: 20px; z-index: 2; width: 42px; height: 42px; border-radius: 13px; background: #fff; border-color: rgba(184, 149, 90, .4); color: var(--forest); }
.fb-modal .x:hover { background: var(--forest); border-color: var(--forest); color: #fff; }

/* section labels */
.fb-modal .fb-lbl { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; color: var(--forest-2); }
.fb-modal .fb-lbl::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(184, 149, 90, .45), transparent); }

/* rating faces */
.fb-modal .fb-faces { gap: 8px; margin-bottom: 20px; }
.fb-modal .fb-face { gap: 6px; padding: 12px 4px 10px; border-radius: 16px; border: 1.5px solid #e4dfcf; background: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 6px 14px -12px rgba(31, 63, 48, .5); }
.fb-modal .fb-face span { font-size: 1.7rem; filter: none; transition: transform .2s cubic-bezier(.2, .9, .3, 1.3); }
.fb-modal .fb-face small { font-size: .72rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.fb-modal .fb-face:hover { border-color: #b9cbb3; background: #fbfdf9; }
.fb-modal .fb-face:hover span { transform: scale(1.12); }
.fb-modal .fb-face.on { border-color: var(--forest-2); background: var(--sage-wash); box-shadow: 0 0 0 3px rgba(45, 90, 66, .14), 0 12px 22px -14px rgba(31, 63, 48, .6); }
.fb-modal .fb-face.on span { transform: scale(1.15); }
.fb-modal .fb-face.on small { color: var(--forest); font-weight: 700; }

/* topic chips: neutral until picked */
.fb-modal .fb-chips { gap: 8px; margin-bottom: 6px; }
.fb-modal .fb-chips .chip { min-height: 42px; padding: .5em 1.05em; font-size: .9rem; font-weight: 500; color: var(--ink); background: #fff; border: 1.5px solid #e1dccb; box-shadow: 0 4px 12px -10px rgba(31, 63, 48, .5); }
.fb-modal .fb-chips .chip:hover { background: #f7f4ea; border-color: #cbd8c4; transform: translateY(-1px); }
.fb-modal .fb-chips .chip.active { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 10px 20px -12px rgba(31, 63, 48, .85), inset 0 0 0 1px rgba(184, 149, 90, .55); }

/* message */
.fb-modal .fb-field { margin-top: 18px; }
.fb-modal .field label { font-size: .9rem; font-weight: 600; color: var(--forest-deep); }
.fb-modal .field label small { font-weight: 500; color: var(--muted); }
.fb-modal .field textarea, .fb-modal .field input:not([type=checkbox]):not([type=radio]) { background: #fff; border: 1.5px solid #dcd6c4; border-radius: 14px; color: var(--ink); font-size: .96rem; line-height: 1.55; }
.fb-modal .field textarea { min-height: 112px; padding: .85em 1em; }
.fb-modal .field textarea::placeholder, .fb-modal .field input::placeholder { color: #8a968c; opacity: 1; }
.fb-modal .field textarea:focus, .fb-modal .field input:focus { border-color: var(--forest-2); box-shadow: 0 0 0 4px rgba(45, 90, 66, .14); }
.fb-modal .fb-count { font-size: .76rem; color: var(--muted); }
.fb-modal .fb-err, .fb-modal .err { color: #b42318; font-weight: 600; }

/* action */
.fb-modal .fb-send { margin-top: 18px; min-height: 54px; border-radius: 16px; font-size: 1rem; font-weight: 600; letter-spacing: .02em; }
.fb-modal .fb-send:disabled { opacity: .7; cursor: progress; }
.fb-modal .fb-fine { margin-top: 12px; font-size: .8rem; color: var(--ink-2); }

/* thank-you state */
.fb-modal .fb-done { padding: 34px 26px 26px; }
.fb-modal .fb-done .fb-logo { width: 68px; height: 68px; border-radius: 20px; }
.fb-modal .fb-done .fb-logo img { width: 44px; height: 44px; }
.fb-modal .fb-done .fb-sub { font-size: .95rem; }

@media (max-width: 480px) {
  .fb-modal { padding: 0; }
  .fb-modal > div { padding: 0 16px 18px; }
  .fb-modal .fb-head { margin: 0 -16px 18px; padding: 18px 66px 16px 16px; }
  .fb-modal .x { top: 14px; right: 14px; }
  .fb-modal .fb-faces { gap: 5px; }
  .fb-modal .fb-face { padding: 10px 2px; }
  .fb-modal .fb-done { padding: 28px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .fb-modal .fb-face span, .fb-modal .fb-chips .chip { transition: none; transform: none !important; }
}
/* topic chip icons: forest line art, ivory when picked */
.fb-modal .fb-chips .chip { gap: .5em; }
.fb-modal .fb-chips .chip svg { flex: none; color: var(--forest-2); transition: color .15s; }
.fb-modal .fb-chips .chip.active svg { color: var(--gold-soft); }
