/* ===== Hey.ai landing — page styles =====
   Composes on the bound design-system tokens (colors/type/spacing). */

/* ---- Project-level token extensions (supplements _ds/) ---- */
:root {
  --ink-soft: #2e3d30; /* lighter dark for interior sections; footer stays at --ink */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.accent { color: var(--green-core); }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text-heading); background: var(--bg-page);
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 500; letter-spacing: var(--ls-head); margin: 0; }
::selection { background: var(--green-light); color: var(--ink); }

:root { --maxw: 1240px; --pad: clamp(24px, 5vw, 56px); }

/* ---------- shared bits ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-label); text-transform: uppercase;
           letter-spacing: var(--ls-label); font-weight: 600; font-size: 13px; color: var(--green-deep); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-core); display: inline-block; flex: none; }
.eyebrow.on-dark { color: var(--green-light); }
.sec-head h2 { font-size: clamp(27px, 3.2vw, 43px); line-height: 1.04; margin: 16px 0 0; text-wrap: balance; }
.sec-head p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: var(--text-body); margin: 16px 0 0; max-width: 46ch; }

.btn { font-family: var(--font-label); text-transform: uppercase; letter-spacing: var(--ls-label); font-weight: 600;
       font-size: 13px; border-radius: var(--radius-pill); padding: 14px 26px; display: inline-flex; align-items: center;
       gap: 9px; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
       transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out), background var(--dur-fast); }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.97); }
.btn-cta { background: var(--cyan); color: #fff; }
.btn-primary { background: var(--green-core); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost-d { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.30); }
.btn-ghost-l { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn svg { width: 17px; height: 17px; }

/* Per-character hover "roll" (ported from GT Portugal, pure-CSS rebuild — no GSAP).
   Each char is a 1.15em clip holding two stacked copies; on hover both slide up
   1.15em so the top copy exits and the duplicate below rolls into view. Per-char
   stagger + asymmetric easing/delay between the two layers mimic the GSAP version. */
.btn-roll { display: inline-flex; align-items: center; }
.btn-cc { display: inline-block; overflow: hidden; height: 1.15em; line-height: 1.15; vertical-align: bottom; }
.btn-ch { display: block; line-height: 1.15; white-space: pre; will-change: transform; }
/* Resting / mouse-out: L2 exits first (in), L1 returns after a delay (out) */
.btn-ch[data-l="1"] { transition: transform 0.38s cubic-bezier(0.16,1,0.3,1); transition-delay: calc(var(--i) * 24ms + 200ms); }
.btn-ch[data-l="2"] { transition: transform 0.28s cubic-bezier(0.6,0,0.9,0.3); transition-delay: calc(var(--i) * 22ms); }
/* Hover in: L1 exits first (in), L2 enters after a delay (out) */
.btn:hover .btn-ch[data-l="1"] { transform: translateY(-100%); transition: transform 0.30s cubic-bezier(0.6,0,0.9,0.3); transition-delay: calc(var(--i) * 24ms); }
.btn:hover .btn-ch[data-l="2"] { transform: translateY(-100%); transition: transform 0.40s cubic-bezier(0.16,1,0.3,1); transition-delay: calc(var(--i) * 26ms + 220ms); }
@media (prefers-reduced-motion: reduce) {
  .btn-ch, .btn:hover .btn-ch { transition: none; transform: none; }
}

.mesh { background:
    radial-gradient(58% 56% at 74% 26%, rgba(44,203,135,0.34), transparent 62%),
    radial-gradient(52% 52% at 18% 88%, rgba(24,168,201,0.20), transparent 62%),
    radial-gradient(46% 46% at 50% 46%, rgba(143,234,122,0.12), transparent 70%),
    var(--forest-900); }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
        background-size: 24px 24px; pointer-events: none; }

/* ---------- NAV (floating, rounded) ---------- */
.nav-shell { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 16px var(--pad) 0;
             display: flex; justify-content: center; pointer-events: none; }
.nav { pointer-events: auto; width: 100%; max-width: var(--maxw); display: flex; align-items: center; justify-content: space-between;
       gap: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.66), rgba(255,255,255,0.48));
       border: none; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
       border-radius: var(--radius-pill); padding: 9px 9px 9px 22px;
       box-shadow: 0 8px 30px rgba(38,48,40,0.14), inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 1px rgba(255,255,255,0.2);
       transition: box-shadow var(--dur-base), background var(--dur-base); }
.nav.scrolled { background: linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.40)); box-shadow: 0 12px 36px rgba(38,48,40,0.2), inset 0 1px 0 rgba(255,255,255,0.78), inset 0 -1px 1px rgba(255,255,255,0.24); }
.nav-logo img { height: 30px; display: block; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; font-size: 13px; white-space: nowrap; color: var(--ink); padding: 8px 13px; border-radius: var(--radius-pill); transition: background var(--dur-fast), color var(--dur-fast); }
.nav-links a:hover { background: var(--bg-sunken); color: var(--text-heading); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; background: var(--bg-sunken); border-radius: var(--radius-pill); padding: 3px; font-family: var(--font-label); }
.lang button { border: none; background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
               text-transform: uppercase; color: var(--text-muted); padding: 6px 11px; border-radius: var(--radius-pill); transition: all var(--dur-fast); }
.lang button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.nav-burger { display: none; border: 1px solid var(--border-strong); background: #fff; width: 42px; height: 42px; border-radius: var(--radius-pill);
              cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }

/* mobile menu */
.mmenu { position: fixed; inset: 0; z-index: 70; background: rgba(20,24,15,0.55); backdrop-filter: blur(4px); display: none; }
.mmenu.open { display: block; }
.mmenu-panel { position: absolute; top: 14px; left: 14px; right: 14px; background: #fff; border-radius: var(--radius-xl); padding: 18px; box-shadow: var(--shadow-xl); }
.mmenu-panel a { display: block; font-size: 19px; padding: 13px 8px; border-bottom: 1px solid var(--line); color: var(--text-heading); }
.mmenu-panel a:last-of-type { border-bottom: none; }
.mmenu-lang { display: inline-flex; background: var(--bg-sunken); border-radius: var(--radius-pill); padding: 4px; margin-top: 16px; }
.mmenu-lang button { border: none; background: transparent; cursor: pointer; font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); padding: 9px 18px; border-radius: var(--radius-pill); transition: all var(--dur-fast); }
.mmenu-lang button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.mmenu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; color: #fff; display: flex; align-items: center; overflow: hidden;
        background: #080d0a; }

/* ---- Hero background: CSS starfield + fluid clipped to the exact H-glass SVG shape ---- */
.hero-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background-color: #080d0a;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(2.6px 2.6px at 6% 18%, #fff 0 38%, transparent 72%),
    radial-gradient(2px 2px at 11% 54%, rgba(190,239,157,.95) 0 38%, transparent 72%),
    radial-gradient(2.4px 2.4px at 17% 80%, #fff 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 22% 33%, rgba(87,221,174,.95) 0 38%, transparent 72%),
    radial-gradient(2.8px 2.8px at 27% 67%, #fff 0 38%, transparent 72%),
    radial-gradient(1.8px 1.8px at 31% 12%, rgba(255,255,255,.9) 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 36% 88%, rgba(190,239,157,.95) 0 38%, transparent 72%),
    radial-gradient(2px 2px at 41% 45%, #fff 0 38%, transparent 72%),
    radial-gradient(2.8px 2.8px at 46% 73%, #fff 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 52% 22%, rgba(24,168,201,.95) 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 57% 60%, #fff 0 38%, transparent 72%),
    radial-gradient(1.8px 1.8px at 61% 9%, rgba(255,255,255,.9) 0 38%, transparent 72%),
    radial-gradient(2.6px 2.6px at 66% 84%, #fff 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 71% 38%, rgba(143,234,122,.95) 0 38%, transparent 72%),
    radial-gradient(2.4px 2.4px at 76% 70%, #fff 0 38%, transparent 72%),
    radial-gradient(2px 2px at 81% 17%, rgba(255,255,255,.9) 0 38%, transparent 72%),
    radial-gradient(2.8px 2.8px at 85% 52%, #fff 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 89% 79%, rgba(87,221,174,.95) 0 38%, transparent 72%),
    radial-gradient(2px 2px at 93% 31%, #fff 0 38%, transparent 72%),
    radial-gradient(2.4px 2.4px at 97% 63%, #fff 0 38%, transparent 72%),
    radial-gradient(2px 2px at 4% 40%, rgba(255,255,255,.9) 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 9% 91%, #fff 0 38%, transparent 72%),
    radial-gradient(2px 2px at 54% 6%, rgba(255,255,255,.9) 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 88% 6%, rgba(190,239,157,.95) 0 38%, transparent 72%),
    radial-gradient(9px 9px at 20% 60%, rgba(143,234,122,.28), transparent 70%),
    radial-gradient(10px 10px at 73% 28%, rgba(24,168,201,.24), transparent 70%),
    radial-gradient(8px 8px at 90% 85%, rgba(87,221,174,.22), transparent 70%);
}
/* second, twinkling star layer */
.hero-stars::after {
  content: ""; position: absolute; inset: 0; background-repeat: no-repeat;
  background-image:
    radial-gradient(2.2px 2.2px at 8% 30%, #fff 0 38%, transparent 72%),
    radial-gradient(2px 2px at 19% 60%, rgba(255,255,255,.92) 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 24% 15%, rgba(190,239,157,.92) 0 38%, transparent 72%),
    radial-gradient(2px 2px at 33% 75%, #fff 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 39% 25%, rgba(255,255,255,.9) 0 38%, transparent 72%),
    radial-gradient(2px 2px at 44% 88%, rgba(87,221,174,.92) 0 38%, transparent 72%),
    radial-gradient(2.4px 2.4px at 59% 35%, #fff 0 38%, transparent 72%),
    radial-gradient(2px 2px at 64% 70%, rgba(255,255,255,.92) 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 69% 20%, #fff 0 38%, transparent 72%),
    radial-gradient(2px 2px at 74% 82%, rgba(190,239,157,.92) 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 83% 40%, #fff 0 38%, transparent 72%),
    radial-gradient(2px 2px at 91% 60%, rgba(255,255,255,.9) 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 96% 12%, #fff 0 38%, transparent 72%),
    radial-gradient(2px 2px at 14% 42%, rgba(255,255,255,.9) 0 38%, transparent 72%),
    radial-gradient(2.2px 2.2px at 86% 88%, #fff 0 38%, transparent 72%);
  animation: hero-twinkle 4.8s var(--ease-in-out) infinite alternate;
}
@keyframes hero-twinkle { from { opacity: 0.5; } to { opacity: 1; } }

/* Hourglass fluid: Seedance video masked to the brand bowtie (hg-outer4) with a
   true alpha channel (transparent outside the shape). `lighten` composites it
   over the starfield: pure black drops out to the stars and it never darkens, so
   there is no seam — works for the opaque mp4 fallback too (Safari). */
.hero-glass {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  width: 100%; aspect-ratio: 1470 / 980; z-index: 1; pointer-events: none;
}
.hg-video {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; mix-blend-mode: lighten;
}
/* atmospheric outer glow: soft mint-cyan halo hugging the hourglass silhouette,
   like a planet's diffuse atmosphere seen from space. Sits behind the video; the
   video is transparent outside the shape so the halo reads around it. */
.hg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: url('/assets/hero/hg-glow.webp') center / 100% 100% no-repeat;
  mix-blend-mode: screen; opacity: 0.8;
}

/* soft dark scrim behind the headline for legibility over the starfield */
.hero-inner::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92%; height: 78%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 58% 52% at 50% 44%, rgba(8,13,10,0.62), transparent 72%);
}
@media (prefers-reduced-motion: reduce) { .hero-stars::after { animation: none; } }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
              padding: 128px var(--pad) 150px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-inner > .hero-seq { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1000px; }
.hero h1 { font-size: clamp(38px, 5.7vw, 78px); line-height: 0.98; margin: 22px 0 clamp(64px, 11vh, 150px); max-width: 18ch; text-wrap: balance;
           text-shadow: 0 2px 30px rgba(6,12,8,0.55), 0 1px 4px rgba(6,12,8,0.4); }
.hero-sub { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: rgba(255,255,255,0.78); max-width: 60ch; margin: 0 auto 32px; text-wrap: pretty;
            padding-inline: clamp(0px, 7vw, 100px);
            text-shadow: 0 1px 16px rgba(6,12,8,0.5); }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.hero-banner { display: inline-flex; align-items: stretch; gap: 12px; max-width: 100%; margin-bottom: 22px; padding: 6px 18px 6px 6px;
               background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px;
               cursor: pointer; color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: left;
               transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.hero-banner:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.hero-banner:active { transform: scale(0.98); }
.hb-badge { flex: none; display: flex; align-items: center; gap: 7px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: var(--ls-label); font-weight: 600; font-size: 11px;
            background: var(--gradient-brand); color: var(--on-gradient); padding: 5px 11px; border-radius: var(--radius-pill); white-space: nowrap; }
.hb-text { align-self: center; font-size: 13.5px; line-height: 1.3; color: rgba(255,255,255,0.88); }
.hb-arrow { flex: none; align-self: center; display: inline-flex; color: var(--green-light); transition: transform var(--dur-fast) var(--ease-out); }
.hero-banner:hover .hb-arrow { transform: translateX(3px); }
.hero-meta { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; color: rgba(255,255,255,0.5); }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-core); flex: none; }
.hero-art { position: relative; display: grid; place-items: center; width: 100%; max-width: 1000px; margin-top: 14px; }
.hero-art .glow { position: absolute; width: min(70%, 560px); aspect-ratio: 1; border-radius: 50%; filter: blur(70px);
                  background: radial-gradient(circle, rgba(44,203,135,0.45), transparent 65%); }
.hg-slot { position: relative; z-index: 2; width: 100%; aspect-ratio: 16/8; border-radius: var(--radius-2xl);
           border: 1px solid rgba(255,255,255,0.14); }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column;
               align-items: center; gap: 8px; color: rgba(255,255,255,0.5); font-family: var(--font-label); font-size: 11px; letter-spacing: var(--ls-label); text-transform: uppercase; }
.hero-scroll .mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.3); border-radius: 12px; position: relative; }
.hero-scroll .mouse::after { content:""; position: absolute; left: 50%; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.6); transform: translateX(-50%); animation: scrolldot 1.8s var(--ease-in-out) infinite; }
@keyframes scrolldot { 0%,100% { opacity: .3; transform: translate(-50%,0);} 50% { opacity: 1; transform: translate(-50%,12px);} }

/* hero logo marquee — sits on the hero mesh, no background of its own */
.hero-marquee { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: 34px; overflow: hidden;
                -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
                mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.hero-marquee-track { display: flex; width: max-content; align-items: center; animation: heromarquee 64s linear infinite; }
.hero-marquee:hover .hero-marquee-track { animation-play-state: paused; }
@keyframes heromarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-logo { flex: none; display: inline-flex; align-items: center; padding: 0 30px; opacity: 0.62;
             transition: opacity var(--dur-base) var(--ease-out); }
.hero-logo:hover { opacity: 1; }
.hero-logo img { flex: none; height: 26px; width: auto; max-width: 160px; object-fit: contain; display: block; }
@media (prefers-reduced-motion: reduce) { .hero-marquee-track { animation: none; } }

/* ---------- STATS / PROOF ---------- */
.proof { position: relative; padding-block: clamp(52px, 7vw, 96px); }
.proof::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; pointer-events: none; z-index: 0;
  background:
    linear-gradient(180deg, rgba(44,203,135,0.34) 0%, rgba(143,234,122,0.22) 26%, rgba(24,168,201,0.08) 52%, transparent 78%),
    radial-gradient(120% 70% at 50% -16%, rgba(87,221,174,0.34), transparent 60%); }
.proof-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.proof-lead { font-family: var(--font-head); font-weight: 500; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.3; letter-spacing: var(--ls-head); color: var(--text-heading); margin: 18px 0 26px; text-wrap: pretty; }
.proof-team { display: flex; align-items: center; gap: 14px; }
.proof-avatars { display: flex; }
.proof-avatars .av { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--card); margin-left: -12px; overflow: hidden; background: var(--green-lime); }
.proof-avatars .av:first-child { margin-left: 0; }
.proof-team span { font-size: 14px; color: var(--text-muted); }
.stats { display: flex; flex-direction: column; gap: 0; margin-top: 36px; }
.stat { display: grid; grid-template-columns: minmax(130px, 0.5fr) 1fr; gap: 24px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.stat:last-child { border-bottom: 1px solid var(--line); }
.stat b { font-family: var(--font-head); font-weight: 500; font-size: clamp(36px, 3.8vw, 52px); letter-spacing: var(--ls-head); color: var(--green-core); line-height: 1; white-space: nowrap; }
.stat span { font-size: clamp(15px, 1.3vw, 17px); color: var(--text-body); padding-top: 6px; }
/* showcase card */
.showcase { position: relative; border-radius: var(--radius-2xl); overflow: hidden; min-height: 540px; box-shadow: var(--shadow-lg); }
.showcase image-slot, .showcase .ss-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ss-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ss-bg { background:
    radial-gradient(70% 60% at 30% 20%, rgba(143,234,122,0.5), transparent 60%),
    radial-gradient(60% 60% at 80% 80%, rgba(24,168,201,0.35), transparent 60%),
    linear-gradient(160deg, #cdebd6, #9fd8c4 50%, #7cc6bd); }
.showcase .ss-top { position: absolute; top: 18px; right: 18px; z-index: 3; }
.pill-float { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.97); color: var(--ink);
              border: none; border-radius: var(--radius-pill); padding: 12px 20px; font-family: var(--font-label); text-transform: uppercase;
              letter-spacing: -0.01em; font-weight: 600; font-size: 11px; box-shadow: 0 10px 26px rgba(38,48,40,0.28); cursor: pointer;
              transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast); }
.pill-float:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(38,48,40,0.34); }
.pill-float .ic { width: 26px; height: 26px; border-radius: 50%; background: var(--green-core); color: var(--ink); display: grid; place-items: center; }
.ss-cta { position: absolute; top: 18px; right: 18px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.ss-eyebrow { font-family: var(--font-label); text-transform: uppercase; letter-spacing: var(--ls-label); font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.ss-caption { position: absolute; left: 22px; bottom: 22px; z-index: 3; font-family: var(--font-head); font-weight: 500; font-size: 22px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.3); }
.ss-card { position: absolute; right: 18px; top: 18px; z-index: 3; background: rgba(255,255,255,0.97); border-radius: var(--radius-lg);
           padding: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 13px; max-width: 300px; }
.ss-card .av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--green-lime); flex: none; }
.ss-card .badge { font-family: var(--font-label); text-transform: uppercase; letter-spacing: var(--ls-label); font-size: 10px; font-weight: 600; color: var(--cyan); display: block; margin-bottom: 3px; }
.ss-card .tt { font-family: var(--font-head); font-weight: 500; font-size: 15px; line-height: 1.15; color: var(--ink); }

/* ---------- SERVICES BENTO (asymmetric, fills height) ---------- */
.services { padding-block: clamp(52px, 7vw, 96px); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 16px; }
.tile { border-radius: var(--radius-xl); padding: 26px; position: relative; overflow: hidden; display: flex; flex-direction: column;
        transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); min-height: 178px; }
.tile-white { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tile-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile-ink { background: var(--ink); color: #fff; }
.tile-dark { background: var(--forest-700); color: #fff; }
.tile-dark:hover, .tile-ink:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.tile-grad { background: var(--gradient-brand); color: var(--on-gradient); }
.tile-grad:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc-ico { width: 48px; height: 48px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--green-lime); color: #1c3a26; margin-bottom: 16px; flex: none; }
.tile-dark .svc-ico, .tile-ink .svc-ico { background: rgba(255,255,255,0.10); color: var(--green-light); }
.tile-grad .svc-ico { background: rgba(28,58,38,0.16); color: #1c3a26; }
.svc-t { font-family: var(--font-head); font-weight: 500; letter-spacing: var(--ls-head); font-size: clamp(17px, 1.4vw, 20px); margin-bottom: 8px; line-height: 1.12; }
.svc-d { font-size: 14.5px; line-height: 1.5; color: var(--text-body); margin: 0; }
.tile-dark .svc-d, .tile-ink .svc-d { color: rgba(255,255,255,0.7); }
.tile-grad .svc-t { color: var(--on-gradient); }
.tile-grad .svc-d { color: var(--on-gradient); opacity: 0.82; }
.tile-intro { justify-content: space-between; }
.tile-intro h3 { font-size: clamp(21px, 2vw, 30px); line-height: 1.05; color: #fff; }
.tile .num { position: absolute; top: 22px; right: 24px; font-family: var(--font-label); font-size: 12px; letter-spacing: var(--ls-label); opacity: 0.5; }
/* spans */
.sp-intro { grid-column: span 1; grid-row: span 2; }
.sp-feature { grid-column: span 1; grid-row: span 2; }
.sp-tall { grid-column: span 1; grid-row: span 2; }
.sp-2 { grid-column: span 2; }

/* ---------- PROCESS (how we work) — dark, cards right ---------- */
.process { position: relative; background: var(--ink-soft); color: #fff; padding: clamp(52px, 7vw, 96px) 0; overflow: hidden; }
.founders { background: var(--ink-soft) !important; }
.process .dots { opacity: 0.6; }
.proc-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.proc-left h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.05; color: #fff; margin: 16px 0 22px; }
.proc-left p { color: rgba(255,255,255,0.66); font-size: 16px; line-height: 1.5; margin: 0 0 26px; max-width: 34ch; }
.proc-cards { display: flex; flex-direction: column; gap: 14px; }
.proc-card { display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
             border-radius: var(--radius-pill); padding: 14px 22px 14px 14px; transition: background var(--dur-base), transform var(--dur-base); cursor: default; }
.proc-card:hover { background: rgba(255,255,255,0.10); transform: translateX(4px); }
.proc-thumb { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; background: var(--gradient-brand); display: grid; place-items: center; color: #1c3a26; }
.proc-thumb svg { width: 28px; height: 28px; }
.proc-card .body { flex: 1; min-width: 0; }
.proc-card .n { font-family: var(--font-label); font-size: 12px; letter-spacing: var(--ls-label); color: var(--green-light); }
.proc-card h4 { font-size: clamp(17px, 1.5vw, 20px); color: #fff; margin: 2px 0 3px; }
.proc-card p { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.62); margin: 0; }
.proc-card .arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; color: #fff; flex: none; }

/* ---------- WHY — light advantages grid ---------- */
.why { padding-block: clamp(52px, 7vw, 96px); }
.why-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 54px; flex-wrap: wrap; }
.why-top .lead-wrap { max-width: 620px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.why-item .wi-ico { width: 30px; height: 30px; color: var(--green-deep); margin-bottom: 16px; }
.why-item h4 { font-size: clamp(18px, 1.5vw, 21px); margin: 0 0 10px; line-height: 1.12; }
.why-item p { font-size: 15px; line-height: 1.55; color: var(--text-body); margin: 0; }

/* ---------- CASE STUDIES — vertical slider ---------- */
.cases { position: relative; background:
    radial-gradient(56% 54% at 80% 16%, rgba(44,203,135,0.20), transparent 60%),
    radial-gradient(50% 50% at 12% 90%, rgba(24,168,201,0.14), transparent 60%),
    var(--forest-900); color: #fff; padding: clamp(52px, 7vw, 90px) 0; overflow: hidden; }
.cases-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.cases-head h2 { font-size: clamp(25px, 2.9vw, 40px); color: #fff; margin-top: 14px; max-width: 18ch; }
.case-stage { display: grid; grid-template-columns: 56px 1fr; gap: 24px; }
.case-rail { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.case-rail button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.05);
                    color: #fff; cursor: pointer; display: grid; place-items: center; transition: all var(--dur-fast); }
.case-rail button:hover { background: rgba(255,255,255,0.14); }
.case-dots { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.case-dots .d { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; transition: all var(--dur-base); }
.case-dots .d.on { background: var(--green-core); height: 24px; border-radius: 5px; }
.case-viewport { position: relative; border-radius: var(--radius-2xl); overflow: hidden; height: 540px; }
.case-track { position: absolute; inset: 0; transition: transform var(--dur-slow) var(--ease-out); }
.case-panel { position: absolute; left: 0; right: 0; height: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.case-text { background: var(--forest-700); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.case-tag { font-family: var(--font-label); text-transform: uppercase; letter-spacing: var(--ls-label); font-weight: 600; font-size: 12px; color: var(--green-light); }
.case-client { font-family: var(--font-head); font-size: 15px; letter-spacing: var(--ls-head); color: rgba(255,255,255,0.6); margin-top: 14px; }
.case-text h3 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.06; color: #fff; margin: 8px 0 16px; }
.case-text .desc { font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,0.68); margin: 0 0 26px; max-width: 40ch; }
.case-metrics { display: flex; gap: 32px; flex-wrap: wrap; }
.case-metrics b { font-family: var(--font-head); font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); color: var(--green-core); display: block; line-height: 1; }
.case-metrics span { font-size: 13.5px; color: rgba(255,255,255,0.66); display: block; margin-top: 6px; max-width: 18ch; }
.case-img { position: relative; }
.case-img image-slot, .case-img .ci-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ci-bg { background: radial-gradient(60% 60% at 40% 30%, rgba(143,234,122,0.45), transparent 60%), linear-gradient(150deg, #2b5246, #15302a); }

/* ---------- TESTIMONIALS — horizontal slider ---------- */
.ts { padding: clamp(52px, 7vw, 96px) 0; background: var(--bg-sunken); overflow: hidden; }
.ts-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.ts-nav { display: flex; gap: 10px; }
.ts-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: all var(--dur-fast); }
.ts-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ts-viewport { overflow: hidden; }
.ts-track { display: flex; gap: 18px; transition: transform var(--dur-slow) var(--ease-out); }
.tcard { flex: 0 0 calc((100% - 54px) / 4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl);
         padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); min-height: 260px; }
.tcard .qmark { font-family: var(--font-head); font-size: 44px; line-height: 0.6; color: var(--green-core); height: 26px; }
.tcard .quote { font-size: 15.5px; line-height: 1.55; color: var(--text-heading); margin: 8px 0 auto; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.tcard .who .av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; background: var(--green-lime); }
.tcard .who .nm { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--text-heading); }
.tcard .who .rl { font-size: 13px; color: var(--text-muted); }

/* ---------- CTA BAND ---------- */
.ctaband { position: relative; overflow: hidden; background: var(--gradient-brand); }
.ctaband .topo { position: absolute; inset: 0; opacity: 0.4; }
/* ---- Hey.ai H pattern overlay — rotated, alternating-row animation ----
   .hpat-vignette: screen-space vignette (not rotated) — masks edges horizontally + vertically.
   .hpat-wrap:     rotated pattern container, oversized to cover corners.
   Cut points y=17px / y=51px fall in the gaps between H shapes (not through them).   ---- */
.hpat-vignette {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 80%);
  mask-image:         radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 80%);
}
.hpat-wrap {
  position: absolute;
  inset: -70% -50%;
  transform: rotate(-18deg);
}
.hpat {
  position: absolute; inset: 0;
  background-image: url('/assets/h-pattern.svg');
  background-repeat: repeat;
  background-size: 42.52px 68.03px;
  opacity: 0.3;
}
/* Layer A: top-row H shapes (y=0–17 and y=51–68.03 of each tile) → move left */
.hpat-a {
  -webkit-mask-image: repeating-linear-gradient(to bottom, black 0, black 17px, transparent 17px, transparent 51px, black 51px, black 68.03px);
  mask-image:         repeating-linear-gradient(to bottom, black 0, black 17px, transparent 17px, transparent 51px, black 51px, black 68.03px);
  animation: hpat-l 10s linear infinite;
}
/* Layer B: bottom-row H shapes (y=17–51 of each tile) → move right */
.hpat-b {
  -webkit-mask-image: repeating-linear-gradient(to bottom, transparent 0, transparent 17px, black 17px, black 51px, transparent 51px, transparent 68.03px);
  mask-image:         repeating-linear-gradient(to bottom, transparent 0, transparent 17px, black 17px, black 51px, transparent 51px, transparent 68.03px);
  animation: hpat-r 10s linear infinite;
}
@keyframes hpat-l { from { transform: translateX(0); } to { transform: translateX(-42.52px); } }
@keyframes hpat-r { from { transform: translateX(0); } to { transform: translateX(42.52px); } }
@media (prefers-reduced-motion: reduce) { .hpat-a, .hpat-b { animation: none; } }
.ctaband-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) var(--pad); text-align: center; }
.ctaband h2 { font-size: clamp(27px, 4vw, 48px); line-height: 1.02; color: var(--on-gradient); }
.ctaband p { font-size: clamp(16px, 1.6vw, 20px); color: var(--on-gradient); opacity: 0.85; margin: 18px auto 30px; max-width: 44ch; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 88px) 0 28px; position: relative; }
.footer .dots { opacity: 0.5; }
.footer-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand img { height: 32px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,0.66); font-size: 15.5px; line-height: 1.65; max-width: 38ch; margin: 0; }
.footer-h { font-family: var(--font-label); text-transform: uppercase; letter-spacing: var(--ls-label); font-weight: 600; font-size: 12px; color: var(--green-light); margin-bottom: 16px; }
.footer-nav a { display: block; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; font-size: 14px; color: rgba(255,255,255,0.78); padding: 8px 0; transition: color var(--dur-fast); }
.footer-nav a:hover { color: #fff; }
.founder { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.founder .av { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; background: var(--green-lime); flex: none; }
.founder .lab { font-size: 12px; color: rgba(255,255,255,0.5); }
.founder .nm { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: #fff; }
.founder-line { font-family: var(--font-head); font-weight: 500; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.2; color: #fff; margin: 0 0 18px; max-width: 18ch; }
.footer-avatars { display: flex; margin-bottom: 18px; }
.footer-avatars .av { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--ink); margin-left: -14px; overflow: hidden; background: var(--green-lime); }
.footer-avatars .av:first-child { margin-left: 0; }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social .sbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; color: #fff; transition: all var(--dur-fast); }
.footer-social .sbtn:hover { background: rgba(255,255,255,0.12); }
.footer-bottom { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-top: 36px; }
.sub-form { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.sub-sent { max-width: 340px; padding: 18px 0 4px; }
.sub-sent-title { font-family: var(--font-head); font-size: 20px; color: var(--green-mint); margin: 0 0 6px; }
.sub-sent-body { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.55; margin: 0; }
.sub-input { display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 10px; }
.sub-input input { flex: 1; background: transparent; border: none; outline: none; color: #fff; font: inherit; font-size: 16px; }
.sub-input input::placeholder { color: rgba(255,255,255,0.4); }
.footer-map { display: block; border-radius: var(--radius-lg); overflow: hidden; height: 150px; position: relative; }
.footer-map image-slot, .footer-map .fm-bg, .footer-map img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fm-bg { background: linear-gradient(135deg, #2b3a30, #1d2a22); }
.footer-map img { object-fit: cover; object-position: center; transition: transform var(--dur-base) var(--ease-out); }
.footer-map:hover img { transform: scale(1.04); }
.footer-addr { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.66); margin-top: 16px; }
.footer-addr svg { flex: none; margin-top: 2px; color: var(--green-light); }
.footer-addr span { white-space: pre-line; }
.footer-legal { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; justify-content: flex-end; }
.footer-legal .cr { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-legal .lk { display: flex; gap: 18px; }
.footer-legal .lk a { font-size: 13px; color: rgba(255,255,255,0.66); }
.footer-legal .lk a:hover { color: #fff; }

/* ---------- CONTACT MODAL ---------- */
.modal-ov { position: fixed; inset: 0; z-index: 90; background: rgba(20,24,15,0.6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity var(--dur-base); }
.modal-ov.open { opacity: 1; pointer-events: auto; }
.modal { width: min(560px, 100%); background: var(--card); border-radius: var(--radius-2xl); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-xl);
         transform: translateY(14px) scale(0.98); transition: transform var(--dur-base) var(--ease-out); max-height: 92vh; overflow: auto; }
.modal-ov.open .modal { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--card); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.modal h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 14px 0 8px; }
.modal .msub { color: var(--text-body); font-size: 16px; margin: 0 0 24px; }
.mform { display: flex; flex-direction: column; gap: 16px; }
.mfield label { font-family: var(--font-label); text-transform: uppercase; letter-spacing: var(--ls-label); font-weight: 600; font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 7px; }
.mfield input, .mfield textarea, .mfield .mselect { width: 100%; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 13px 15px; font: inherit; font-size: 15px; color: var(--text-heading); outline: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.mfield input:focus, .mfield textarea:focus, .mfield .mselect:focus { border-color: var(--green-core); box-shadow: 0 0 0 3px var(--focus-ring); }
.mfield .mselect { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23556055' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.mfield .mselect:invalid { color: var(--text-muted); }
.mfield textarea { resize: vertical; min-height: 84px; }
.mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.msent { text-align: center; padding: 24px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.msent .ic { width: 60px; height: 60px; border-radius: 50%; background: var(--green-lime); color: #1c3a26; display: grid; place-items: center; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ================================================================
   Hero entrance sequence — orchestrated, staggered, plays once on load.
   Order: starfield fade → video fade → eyebrow → h1 (rise+scale) →
   "hoje." typed char-by-char → sub (drop+scale) → buttons → logo marquee.
   Pure CSS (auto-plays, degrades without JS). Timings via animation-delay.
   ================================================================ */
@keyframes heroFade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroRiseUp { from { opacity: 0; transform: translateY(22px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes heroDrop   { from { opacity: 0; transform: translateY(-16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes heroRise   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroType   { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroCaretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* 1 — starfield background */
.hero-stars { opacity: 0; animation: heroFade 1.1s ease both; }
/* 2 — hourglass video + glow */
.hero-glass { opacity: 0; animation: heroFade 1.3s ease both; animation-delay: 0.35s; }
/* 3 — text content, each independent and spaced out */
.hero-seq .hero-banner { opacity: 0; animation: heroRise 0.6s var(--ease-out) both; animation-delay: 0.95s; }
.hero-seq h1           { opacity: 0; animation: heroRiseUp 0.85s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 1.45s; }
.hero-seq .hero-sub    { opacity: 0; animation: heroDrop 0.8s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 3.05s; }
.hero-seq .hero-actions{ opacity: 0; animation: heroRise 0.65s var(--ease-out) both; animation-delay: 3.55s; }
/* 5 — logo marquee */
.hero-marquee          { opacity: 0; animation: heroFade 1s ease both; animation-delay: 4.0s; }

/* 4 — "hoje." typewriter: chars revealed one by one after the h1 has risen.
   Start ~2.25s (h1 visible), 0.11s per char; caret blinks then fades when done. */
.h-type { position: relative; }
.h-type-ch { opacity: 0; animation: heroType 0.16s ease both; animation-delay: calc(2.25s + var(--ci) * 0.11s); }
.h-type::after {
  content: ""; display: inline-block; width: 0.055em; height: 0.95em; margin-left: 0.04em;
  background: currentColor; vertical-align: -0.06em; border-radius: 1px;
  /* blink during the typing window (1.9s–3.1s), then stay hidden */
  opacity: 0; animation: heroCaretBlink 0.62s steps(1) 1.9s 2, heroFade 0.01s linear 3.15s reverse forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-stars, .hero-glass, .hero-seq .hero-banner, .hero-seq h1,
  .hero-seq .hero-sub, .hero-seq .hero-actions, .hero-marquee,
  .h-type-ch { opacity: 1; animation: none; transform: none; }
  .h-type::after { display: none; }
}

/* ---- Directional reveals ---- */
.reveal-l { opacity: 0; transform: translateX(-38px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-r { opacity: 0; transform: translateX(38px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }

/* ---- Stagger delay helpers ---- */
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.36s; }
.d4 { transition-delay: 0.48s; }

/* ---- Stat hover ---- */
.stat { transition: transform 0.22s var(--ease-out); }
.stat:hover { transform: translateY(-3px) scale(1.02); cursor: default; }

/* ---- Bento tile stagger: translateY via existing transition + opacity via keyframe ---- */
.bento .tile { opacity: 0; transform: translateY(16px); }
.bento.tiles-in .tile { transform: none; }
@keyframes tile-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Spot dot pulse ---- */
@keyframes spot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(192,73,47,0.18); }
  50%       { opacity: 0.55; box-shadow: 0 0 0 6px rgba(192,73,47,0.0); }
}
.spot-dots i { animation: spot-pulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .spot-dots i { animation: none; } }
.bento.tiles-in .tile { animation: tile-fade 0.65s var(--ease-out) both; }
.bento.tiles-in .tile:nth-child(2) { transition-delay: 0.08s; animation-delay: 0.08s; }
.bento.tiles-in .tile:nth-child(3) { transition-delay: 0.16s; animation-delay: 0.16s; }
.bento.tiles-in .tile:nth-child(4) { transition-delay: 0.24s; animation-delay: 0.24s; }
.bento.tiles-in .tile:nth-child(5) { transition-delay: 0.32s; animation-delay: 0.32s; }
.bento.tiles-in .tile:nth-child(6) { transition-delay: 0.40s; animation-delay: 0.40s; }
.bento.tiles-in .tile:nth-child(7) { transition-delay: 0.48s; animation-delay: 0.48s; }

/* ---- Process cards: slide from right, stagger ---- */
.proc-card { opacity: 0; transform: translateX(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), background var(--dur-base); }
.proc-cards.in .proc-card { opacity: 1; transform: none; }
.proc-cards.in .proc-card:nth-child(2) { transition-delay: 0.10s; }
.proc-cards.in .proc-card:nth-child(3) { transition-delay: 0.20s; }
.proc-cards.in .proc-card:nth-child(4) { transition-delay: 0.30s; }
.proc-card:hover { transition: background var(--dur-base), transform 0.22s var(--ease-out); }

/* ---- Why items: stagger up ---- */
.why-item { opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.why-grid.in .why-item { opacity: 1; transform: none; }
.why-grid.in .why-item:nth-child(2) { transition-delay: 0.10s; }
.why-grid.in .why-item:nth-child(3) { transition-delay: 0.20s; }
.why-grid.in .why-item:nth-child(4) { transition-delay: 0.30s; }
.why-grid.in .why-item:nth-child(5) { transition-delay: 0.40s; }
.why-grid.in .why-item:nth-child(6) { transition-delay: 0.50s; }

/* ---- Founder people: stagger ---- */
.founders-people .fperson { opacity: 0;
  transition: opacity 0.6s var(--ease-out), transform var(--dur-base) var(--ease-out), background var(--dur-base); }
.founders-people.in .fperson { opacity: 1; }
.founders-people.in .fperson:nth-child(2) { transition-delay: 0.14s; }
.founders-people.in .fperson:nth-child(3) { transition-delay: 0.28s; }

/* ---- Reduced-motion fallbacks ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal-l, .reveal-r { opacity: 1; transform: none; transition: none; }
  .hero-inner .reveal { transition: none; }
  .bento .tile { opacity: 1; transform: none; animation: none !important; }
  .proc-card, .why-item { opacity: 1; transform: none; transition: background var(--dur-base); }
  .founders-people .fperson { opacity: 1; }
  .stat { transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .sp-intro, .sp-feature, .sp-2, .sp-tall { grid-column: span 1; grid-row: span 1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .tcard { flex-basis: calc((100% - 36px) / 3); }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav .lang { display: none; }
  .nav-burger { display: inline-flex; }
  .hero-inner { gap: 28px; padding-top: 116px; }
  .hero-art { min-height: 0; }
  .hero-scroll { display: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .showcase { min-height: 440px; }
  .proc-grid { grid-template-columns: 1fr; }
  .case-panel { grid-template-columns: 1fr; }
  .case-img { display: none; }
  .case-viewport { height: 480px; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: span 2; align-items: flex-start; }
  .footer-legal { flex-direction: row; justify-content: space-between; width: 100%; }
}
@media (max-width: 680px) {
  .tcard { flex-basis: calc((100% - 18px) / 2); }
  .why-grid { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 10px; }
  .svc-top, .why-top, .cases-head, .ts-head { flex-direction: column; align-items: flex-start; }
  .ss-card { max-width: 240px; }
  /* footer: clean single-column stack */
  .sub-form { max-width: none; }
  .footer { padding-bottom: 22px; }
  .footer-grid { gap: 32px; padding-bottom: 32px; }
  .footer-bottom { gap: 32px; }
  .footer-map { height: 170px; }
  /* case studies: rail moves below, horizontal */
  .case-stage { grid-template-columns: 1fr; gap: 18px; }
  .case-viewport { order: 1; height: 560px; }
  .case-text { justify-content: flex-start; }
  .case-rail { order: 2; flex-direction: row; justify-content: center; gap: 18px; }
  .case-dots { flex-direction: row; margin: 0; align-items: center; }
  .case-dots .d.on { width: 24px; height: 8px; border-radius: 5px; }
  /* process: cards stack content top-left, softer than full pill */
  .proc-card { align-items: flex-start; border-radius: var(--radius-xl); padding: 18px; gap: 14px; }
  .proc-card .arrow { display: none; }
  .proc-thumb { width: 50px; height: 50px; }
  .proc-thumb svg { width: 24px; height: 24px; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .nav { padding: 8px 8px 8px 16px; gap: 10px; }
  .lang button { padding: 6px 9px; }
}
@media (max-width: 460px) {
  .bento { grid-template-columns: 1fr; }
  .sp-intro, .sp-feature, .sp-2, .sp-tall { grid-column: span 1; grid-row: span 1; }
  .tcard { flex-basis: calc(100% - 0px); }
  .mrow { grid-template-columns: 1fr; }
  .nav { padding-left: 16px; }
  .hero h1 { font-size: 44px; }
  .case-viewport { height: 600px; }
  .case-metrics { gap: 22px; }
  .ss-caption { font-size: 18px; }
}

/* =========================================================
   LIQUID-GLASS EXPERIMENT (bento grid) — easy to revert:
   delete this whole block to return to the previous look.
   Light variant: frosted white glass on the paper background,
   dark text — same recipe as the floating nav.
   ========================================================= */
.services {
  position: relative;
  background: var(--paper);
}
.services .bento .tile {
  background: linear-gradient(160deg, rgba(255,255,255,0.78), rgba(255,255,255,0.55));
  border: 1px solid rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: var(--text-heading);
  box-shadow: 0 12px 30px rgba(38,48,40,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
}
.services .bento .tile:hover {
  transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(255,255,255,0.66));
  box-shadow: 0 18px 42px rgba(38,48,40,0.16), inset 0 1px 0 rgba(255,255,255,1);
}
/* feature tile: green-tinted frosted glass, still light */
.services .bento .tile-grad {
  background: linear-gradient(160deg, rgba(143,234,122,0.55), rgba(87,221,174,0.32));
  border-color: rgba(143,234,122,0.6);
}
.services .bento .tile-grad:hover {
  background: linear-gradient(160deg, rgba(143,234,122,0.66), rgba(87,221,174,0.42));
}
/* intro tile: solid deep ink, content packed top-left like the other tiles */
.services .bento .tile-intro.tile-ink {
  background: linear-gradient(165deg, #2b352d, #1c241e);
  border: 1px solid rgba(255,255,255,0.10);
  justify-content: flex-start;
  gap: 14px;
}
.services .bento .tile-intro.tile-ink .svc-ico { background: rgba(255,255,255,0.12); color: var(--green-light); }
.services .bento .tile-intro.tile-ink .svc-t,
.services .bento .tile-intro.tile-ink h3 { color: #fff; }
.services .bento .tile-intro.tile-ink .svc-d { color: rgba(255,255,255,0.72); }
/* text on the light glass tiles */
.services .bento .svc-t,
.services .bento .tile-grad .svc-t { color: var(--text-heading); }
.services .bento .svc-d { color: var(--text-body); opacity: 1; }
.services .bento .tile-grad .svc-d { color: #1c3a26; opacity: 0.86; }
.services .bento .svc-ico { background: var(--green-lime); color: #1c3a26; }
.services .bento .tile-grad .svc-ico { background: rgba(255,255,255,0.55); color: #1c3a26; }

/* --- coherence: same glass on Process + Case studies (dark) and Testimonials (light) --- */
/* Process cards — dark frosted glass */
.proc-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.proc-card:hover {
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  transform: translateX(4px);
}
/* Case studies — text panel as dark frosted glass */
.case-text {
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border-right: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
/* Testimonials — light frosted glass (same recipe as the nav / service tiles) */
.tcard {
  background: linear-gradient(160deg, rgba(255,255,255,0.78), rgba(255,255,255,0.55));
  border: 1px solid rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 30px rgba(38,48,40,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
}
.tcard:hover {
  transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(255,255,255,0.66));
  box-shadow: 0 18px 42px rgba(38,48,40,0.16), inset 0 1px 0 rgba(255,255,255,1);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base), box-shadow var(--dur-base);
}

/* Footer: stack subscribe + map vertically on tablet/mobile */
@media (max-width: 920px) {
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-legal { grid-column: auto; flex-direction: row; justify-content: space-between; align-items: center; }
}

