/* Mantis Digital reference site (v3). Directional reference, NOT the final design: copy the behaviour and the rules, improve the look.
   Rules that matter (BUILD-SPEC.en.md sections 2, 5, 7, 10):
   - every text is visible by default; only JS may mark things below the fold as [data-pending]
   - every section owns its background (data-theme); there is no page-level colour fade
   - reveals are CSS transitions / animations (transform + opacity); JS only toggles attributes
   - no min-height used for spacing, no reserved empty areas (a motif stage reserves exactly its own aspect ratio) */

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: var(--ease-out);
  --slot-h: 196px;          /* mascot in the hero (full body) */
  --cslot-h: 200px;         /* mascot in the contact card */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: hidden; overflow-x: clip; text-rendering: geometricPrecision; font-kerning: normal; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--text); overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--link); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
main:focus { outline: none; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ section themes */
[data-theme] { --grid: rgba(0, 194, 0, .055); --glow: rgba(0, 194, 0, .10); --hl: rgba(255, 255, 255, .95); --shadow: rgba(0, 65, 0, .09); --link: #004100; }
[data-theme="tint"] { --grid: rgba(0, 65, 0, .06); --glow: rgba(0, 194, 0, .18); }
[data-theme="dark"] { --grid: rgba(255, 255, 255, .04); --glow: rgba(0, 194, 0, .20); --hl: rgba(255, 255, 255, .10); --shadow: rgba(0, 0, 0, .28); --link: #BFE7B3; }

/* ------------------------------------------------------------------ progress bar + header */
#prog { position: fixed; left: 0; top: 0; width: 100%; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; z-index: 80; pointer-events: none; }
.hdr { position: fixed; inset: 0 0 auto 0; height: var(--header-height); z-index: 60; padding-top: env(safe-area-inset-top);
  background: var(--page-bg); background: color-mix(in srgb, var(--page-bg) 82%, transparent); color: var(--page-text);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--card-border);
  transition: transform .3s var(--ease), background-color .25s ease, border-color .25s ease, color .25s ease; }
.hdr.hide { transform: translateY(-100%); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; text-decoration: none; color: var(--page-text); font-weight: 800; letter-spacing: .1em; font-size: 12px; min-height: 44px; white-space: nowrap; }
.brand-ico { width: 32px; height: 32px; flex: none; }
.brand-word b { color: var(--brand); }
.nav { display: none; gap: 2px; margin-right: 12px; }
.nav a { color: var(--page-text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 12px; border-radius: 999px; transition: background-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--pill-bg); }
.menu { position: relative; }
.menu-btn { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--page-text); }
.menu-btn::-webkit-details-marker { display: none; }
.menu .i-close { display: none; } .menu[open] .i-open { display: none; } .menu[open] .i-close { display: block; }
.menu-panel { position: fixed; left: var(--gutter); right: var(--gutter); top: calc(var(--header-height) + env(safe-area-inset-top) + 8px); display: grid; gap: 4px; padding: 10px; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: 0 24px 48px -20px rgba(0, 65, 0, .35); animation: menuIn .24s var(--ease); }
.menu-panel a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 14px; color: var(--dark); font-weight: 600; text-decoration: none; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--pill); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius-button); font: 600 15px/1 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .18s var(--ease), box-shadow .2s, border-color .2s, background-color .2s; }
.btn .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .i:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--dark); border-color: #4aa82e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 65, 0, .25), 0 10px 22px -8px rgba(0, 194, 0, .6); }
.btn.primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(0, 65, 0, .25), 0 14px 28px -8px rgba(0, 194, 0, .75); transform: translateY(-1px); }
.btn.outline { background: var(--card-bg); color: var(--page-text); border-color: var(--card-border); box-shadow: inset 0 1px 0 var(--hl), 0 1px 2px var(--shadow); }
.btn.outline:hover { border-color: var(--brand); transform: translateY(-1px); }
[data-theme="light"] .btn.outline, [data-theme="tint"] .btn.outline { color: var(--dark); }
.dark-card .btn.outline { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.dark-card .btn.outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* ------------------------------------------------------------------ sections (every section owns its background) */
.scene { position: relative; padding: var(--space-section-top) 0 var(--space-section-bottom); scroll-margin-top: calc(var(--header-height) + 4px);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; }
.scene::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60vmax 40vmax at 92% -6%, var(--glow), transparent 62%); border-radius: inherit; }
.scene > .wrap { position: relative; z-index: 1; }
.sheet { margin-top: calc(var(--radius-sheet) * -1); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; box-shadow: 0 -1px 0 var(--card-border), 0 -18px 32px -24px rgba(0, 65, 0, .22); }
.sheet[data-theme="dark"] { box-shadow: 0 -22px 40px -26px rgba(0, 65, 0, .5); }

/* ------------------------------------------------------------------ type */
.h1 { font-size: clamp(2rem, 1.05rem + 3.9vw, 4rem); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; word-spacing: .04em; text-wrap: balance; }
.h2 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; word-spacing: .04em; text-wrap: balance; }
h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 600; }
.acc { color: var(--accent-text); background: linear-gradient(transparent 72%, rgba(0, 194, 0, .36) 72%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
[data-theme="dark"] .acc { background: linear-gradient(transparent 72%, rgba(0, 194, 0, .14) 72%); } /* a stronger marker would drop the green accent text below 3:1 */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--link); background: var(--pill-bg); border: 1px solid var(--card-border); padding: 7px 14px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(0, 194, 0, .25); }
.sub { margin-top: 18px; color: var(--page-muted); font-size: 1.0625rem; line-height: 1.65; max-width: 56ch; }
.pill { display: inline-grid; place-items: center; min-width: 44px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--card-border); color: var(--link); font-weight: 800; font-size: 12px; letter-spacing: .06em; }
.ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--pill-bg); border: 1px solid var(--card-border); color: var(--link); }

/* ------------------------------------------------------------------ hero (home and service pages) */
.hero { padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 28px); padding-bottom: var(--space-section-bottom); }
.hero-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "copy copy" "slot speech"; column-gap: 16px; row-gap: 22px; align-items: center; }
.hero-copy { grid-area: copy; }
.hero-speech { grid-area: speech; }
.hero-speech .speech { margin: 0; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btns .btn { flex: 1 1 100%; }
.back { display: flex; width: max-content; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 6px -4px; padding: 0 4px; font-weight: 600; font-size: .9375rem; color: var(--link); text-decoration: none; }
.back .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.back:hover .i { transform: translateX(-3px); }

.slot { position: relative; flex: none; }
.slot-hero { grid-area: slot; height: var(--slot-h); width: calc(var(--slot-h) * .6863); }
.slot::before { content: ""; position: absolute; left: 50%; bottom: 7%; width: 112%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 194, 0, .14) 0%, rgba(0, 194, 0, .14) 58%, transparent 100%); }
.slot::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 64%; height: 5%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(8, 28, 4, .30), transparent); filter: blur(2px); }
.slot > svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.slot.away > svg { visibility: hidden; }
.slot::before, .slot::after { transition: opacity .3s ease; }
.slot.away::before, .slot.away::after { opacity: 0; }
.static-mascot { position: relative; z-index: 1; display: block; width: 100%; height: auto; }

/* the intro is CSS only (nothing waits for JS): the mascot rises, the headline words land, then Mantis says his first line */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hwIn { from { opacity: 0; transform: translateY(.55em) rotate(3deg); } to { opacity: 1; transform: none; } }
@keyframes wIn { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
@keyframes mascotRise { from { opacity: 0; transform: translateY(28px) scale(.96); } to { opacity: 1; transform: none; } }
.hero-rv { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
.hw { display: inline-block; animation: hwIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }
.hero .slot-hero > svg { animation: mascotRise .8s var(--ease) .1s both; }
.hero .slot-hero.no-rise > svg { animation: none; }
.hero-speech .line .w { animation: wIn .4s var(--ease) both; animation-delay: calc(var(--d0, 950ms) + var(--i) * var(--step)); }
@keyframes ruleIn { from { transform: scaleY(0); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-speech .who { animation: rise .45s var(--ease) backwards; animation-delay: calc(var(--d0, 950ms) - 140ms); } /* the caption and the rule come in with the first word, never alone */
.hero-speech .speech::before { animation: ruleIn .6s var(--ease) backwards; animation-delay: var(--d0, 950ms); }
.hero .slot-hero::before, .hero .slot-hero::after { animation: fadeIn .9s var(--ease) .1s backwards; } /* the glow and the shadow arrive with the mascot */
html.intro-skip .hero-rv, html.intro-skip .hw, html.intro-skip .hero .slot-hero > svg, html.intro-skip .hero-speech .line .w, html.intro-skip .hero-speech .who, html.intro-skip .hero-speech .speech::before, html.intro-skip .hero .slot-hero::before, html.intro-skip .hero .slot-hero::after { animation: none; }

/* ------------------------------------------------------------------ Mantis speaks (page paragraphs, never chat bubbles) */
.speech { position: relative; margin: var(--space-block) 0; padding: 2px 0 2px 20px; }
.speech::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: linear-gradient(var(--brand), rgba(0, 194, 0, .25)); transform-origin: 50% 0; transition: transform .6s var(--ease); }
.who { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 3px 12px 3px 4px; border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--card-border); font-size: 12px; font-weight: 700; color: var(--link); line-height: 1.2; transition: opacity .35s ease, transform .35s var(--ease); }
.who-ico { width: 22px; height: 22px; flex: none; }
.line { --step: min(var(--word-step), calc(900ms / var(--n, 12))); margin: 0 0 12px; max-width: 36ch; font-size: 1.25rem; line-height: 1.42; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }
.line:last-child { margin-bottom: 0; }
.line .w { display: inline-block; }
/* below the fold only (set by JS): hidden until the line's top edge crosses the enter line, then spoken word by word */
.speech[data-pending]::before { transform: scaleY(0); }
.speech[data-pending] .who { opacity: 0; transform: translateY(6px); }
.line[data-pending] .w { opacity: 0; }
.line.said .w { animation: wIn .42s var(--ease) both; animation-delay: calc(var(--d, 0ms) + var(--i) * var(--step)); }
.line.said.instant .w { animation: none; }

/* ------------------------------------------------------------------ cards */
.card { position: relative; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-card); box-shadow: inset 0 1px 0 var(--hl), 0 1px 2px var(--shadow), 0 14px 32px -16px var(--shadow); }
.lift { transition: transform .3s var(--ease), border-color .2s; }
.lift:hover { transform: translateY(-4px); border-color: var(--brand); }
.h2 + .speech, .svc-head + .speech { margin-top: 20px; }

.story-intro { display: flex; align-items: center; gap: 16px; margin: 20px 0 var(--space-block); }
.story-intro .speech { margin: 0; flex: 1; min-width: 0; }
.logo-card { flex: none; display: grid; place-items: center; width: 104px; height: 104px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .45); }
.logo-card img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 12px; }

.values, .what, .when, .faq, .flow, .mini { display: grid; gap: 14px; margin-top: var(--space-block); }
.val, .what-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.val p, .what-card p { margin-top: 6px; color: var(--page-muted); font-size: .9375rem; line-height: 1.6; }
.when-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
.when-card p { font-size: 1.0625rem; line-height: 1.5; font-weight: 600; padding-top: 8px; }
.qa { padding: 22px; }
.qa p { margin-top: 8px; color: var(--page-muted); font-size: .9375rem; line-height: 1.65; }

.mini { gap: 12px; }
.mini-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; min-height: 76px; text-decoration: none; color: var(--page-text); }
.mini-txt { display: grid; gap: 2px; min-width: 0; }
.mini-txt strong { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.mini-txt span { color: var(--page-muted); font-size: .875rem; line-height: 1.45; }
.go { margin-left: auto; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--card-border); color: var(--link); transition: background-color .2s, border-color .2s; }
.go .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.mini-card:hover .go { background: var(--brand); border-color: var(--brand); color: var(--dark); }
.mini-card:hover .go .i { transform: translateX(2px); }

.svc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.svc-card { margin-top: 20px; padding: 24px 22px; overflow: hidden; }
.svc-card > * { position: relative; }
.ghost { position: absolute !important; right: 18px; top: -8px; font-size: 7rem; line-height: 1; font-weight: 800; letter-spacing: -.06em; color: var(--pill-bg); pointer-events: none; user-select: none; }
.checks li { display: flex; gap: 14px; align-items: center; padding: 13px 0; font-size: 1rem; font-weight: 600; border-top: 1px solid var(--card-border); }
.checks li:first-child { border-top: 0; padding-top: 4px; }
.tick { flex: none; width: 24px; height: 24px; }
.tick circle { fill: var(--brand); }
.tick path { fill: none; stroke: var(--dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 18; stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease) calc(var(--i, 0) * 120ms + 250ms); }
[data-pending] .tick path { stroke-dashoffset: 18; transition: none; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; font-weight: 700; font-size: .9375rem; color: var(--link); text-decoration: none; }
.more .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.more:hover .i { transform: translateX(4px); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* motif stages: exactly the motif's own aspect ratio (set inline), nothing extra */
.stage { position: relative; width: 100%; max-width: 560px; margin: var(--space-block) 0 0; }
.js .stage { aspect-ratio: var(--ar); }
html:not(.js) .stage { display: none; }

/* service pages: how we work */
.flow li { position: relative; padding-left: 58px; }
.flow li::before { content: ""; position: absolute; left: 19px; top: 46px; bottom: -14px; width: 2px; background: linear-gradient(var(--brand), rgba(0, 194, 0, .2)); }
.flow li:last-child::before { display: none; }
.num { position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--dark); font-weight: 800; box-shadow: 0 0 0 5px rgba(0, 194, 0, .22); }
.step { padding: 16px 20px; }
.step p { margin-top: 4px; color: var(--page-muted); font-size: .9375rem; line-height: 1.6; }

/* home: the process line is the ONLY scroll-linked animation */
.tl { position: relative; margin-top: var(--space-block); padding-left: 64px; }
.plcol { position: absolute; left: 0; top: 0; bottom: 0; width: 56px; }
.tl .steps { display: grid; gap: 16px; }

/* ------------------------------------------------------------------ contact card */
.contact { padding-top: calc(var(--space-section-top) - 8px); }
.dark-card { position: relative; overflow: hidden; border-radius: 32px; padding: 32px 24px 0; color: #fff;
  background: radial-gradient(520px 320px at 100% 0%, rgba(0, 194, 0, .28), transparent 70%), linear-gradient(145deg, var(--dark-card-from), var(--dark-card-to));
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 40px 80px -40px rgba(0, 65, 0, .7); }
.dark-card .speech { margin: 20px 0 24px; }
.cta-wrap { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-wrap .btn { flex: 1 1 100%; }
.links { margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 2px; font-size: .9375rem; }
.links li { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; color: var(--on-dark-text); }
.links span { min-width: 84px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9FC594; }
.links a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
.dc-stage { display: flex; justify-content: flex-end; align-items: flex-end; margin-top: 4px; }
.slot-contact { height: var(--cslot-h); width: calc(var(--cslot-h) * .6863); margin-right: 4px; }
.slot-contact::before { background: radial-gradient(closest-side, rgba(0, 194, 0, .22) 0%, rgba(0, 194, 0, .22) 58%, transparent 100%); }

/* ------------------------------------------------------------------ footer */
.foot { padding: 52px 0 calc(48px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 24px; align-items: center; }
.foot-logo { width: 112px; height: 112px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px -14px rgba(0, 65, 0, .4); }
.foot-logo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 12px; }
.foot-tag { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 14px; }
.foot-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--page-muted); width: 100%; }
.foot-links a, .foot-contact a { color: var(--link); font-weight: 600; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.foot-contact { margin-top: 8px; font-size: .9375rem; color: var(--page-muted); }
.foot-copyr { margin-top: 10px; font-size: .8125rem; color: var(--page-muted); }

/* ------------------------------------------------------------------ fixed UI */
.wa { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 44; height: 48px; padding: 0 18px 0 14px; border-radius: 24px; background: var(--whatsapp); color: #0A2410; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 8px 24px -4px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .35); transition: opacity .25s, transform .25s var(--ease); }
.wa .wa-ico { width: 24px; height: 24px; flex: none; }
.wa span { max-width: 5em; overflow: hidden; white-space: nowrap; transition: max-width .3s var(--ease), opacity .2s ease; }
.wa.compact { padding: 0 12px; gap: 0; }
.wa.compact span { max-width: 0; opacity: 0; }
.wa.off { opacity: 0; transform: translateY(12px); pointer-events: none; }
#avatar { position: fixed; left: 0; top: 0; width: 300px; height: 437.14px; z-index: 40; pointer-events: none; transform-origin: 0 0; will-change: transform; opacity: 0; visibility: hidden; clip-path: inset(0 0 0 0 round 0%); transition: opacity .25s ease, clip-path .6s var(--ease), translate .35s var(--ease); }
#avatar.on { opacity: 1; visibility: visible; }
#avatar.gone { opacity: 0; translate: -40px 0; }
#avatar.dock { clip-path: inset(0 0 31.4% 0 round 22%); }
#avatar .mm { position: absolute; inset: 0; }
#avatar .mm svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; }
#avatar .tile { position: absolute; left: 0; top: 0; width: 300px; height: 300px; border-radius: 66px; background: #fff; box-shadow: inset 0 0 0 6px var(--border), inset 0 -40px 60px -40px rgba(0, 194, 0, .25); opacity: 0; transition: opacity .35s ease, background-color .25s ease; }
#avatar.dock .tile { opacity: 1; }
#avatar.dark .tile { background: #005500; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .16), inset 0 -40px 60px -40px rgba(0, 194, 0, .25); }

/* ------------------------------------------------------------------ reveal: transform + opacity only; JS marks only what is below the fold as pending */
[data-reveal] { transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
[data-reveal][data-pending] { opacity: 0; transform: translateY(22px); }
/* until site.js has started (class .ready) the pre-hide script may hide things after the first paint: that must be a cut, not a 0.5 s fade of text the visitor can already see */
html:not(.ready) [data-pending], html:not(.ready) [data-pending] *, html:not(.ready) [data-pending]::before { transition: none !important; }

/* ------------------------------------------------------------------ larger screens */
@media (min-width: 640px) {
  .hero .btns .btn { flex: 0 0 auto; }
  .cta-wrap .btn { flex: 0 0 auto; }
}
@media (min-width: 768px) {
  .wa { display: none; }
  .hero { --slot-h: 280px; }
  .line { font-size: 1.5rem; max-width: 34ch; }
  .logo-card { width: 132px; height: 132px; }
  .svc-card { padding: 30px 32px; }
  .values, .what, .when { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .when, .values { align-items: stretch; }
  .when-card, .val, .what-card { height: 100%; }
  .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { gap: 16px; }
  .dark-card { padding: 44px 44px 0; }
  .cta-wrap { margin-top: 4px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --cslot-h: 240px; }
  .hero { --slot-h: 216px; padding-bottom: 60px; } /* once Mantis has gone to the dock this is the whole gap under the first speech: keep it tight */
}
@media (min-width: 1024px) {
  :root { --cslot-h: 360px; }
  .nav { display: flex; }
  .menu { display: none; }
  .hero { --slot-h: 360px; padding-top: calc(var(--header-height) + 56px); }
  .hero-grid { grid-template-columns: minmax(0, 720px) var(--rail-width); grid-template-areas: "copy slot" "speech slot"; justify-content: center; column-gap: 48px; row-gap: 28px; align-items: start; }
  .slot-hero { align-self: center; justify-self: center; }
  .hero-speech { align-self: start; }
  .line { font-size: 1.625rem; max-width: 32ch; }
  .speech { padding-left: 24px; }
  .story { display: grid; grid-template-columns: minmax(0, 720px) var(--rail-width); column-gap: 48px; justify-content: center; }
  .rail-col { display: block; min-height: 1px; }
  .values, .what, .when, .faq, .mini { grid-template-columns: 1fr; }
  .mini, .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dark-card { padding: 56px 56px 48px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: end; }
  .dc-stage { justify-content: flex-end; margin: 0; align-self: end; }
  .dc-stage .slot-contact { margin-right: 0; margin-bottom: -48px; }
  .foot-in { grid-template-columns: auto 1fr; gap: 40px; }
}
@media (min-width: 1440px) { .h1 { font-size: 4.25rem; } }
@media (max-width: 1023px) { .rail-col { display: none; } }

/* ------------------------------------------------------------------ reduced motion: everything visible at once, no entrances, no tweens */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .line .w, .hw, .hero-rv { opacity: 1 !important; transform: none !important; }
}
/* premium finish: selection, deeper card depth, richer primary button, softer ghost numeral */
::selection{background:#004100;color:#fff}
.card{box-shadow:inset 0 1px 0 var(--hl),0 1px 2px var(--shadow),0 18px 38px -18px var(--shadow)}
.btn.primary{box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 1px 2px rgba(0,65,0,.3),0 12px 26px -10px rgba(0,194,0,.65)}
.dark-card{box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 44px 90px -40px rgba(0,20,0,.75)}
.ghost{opacity:.7}
.hero .btns .btn{letter-spacing:-.01em}
.foot-tag{letter-spacing:-.015em}
