/* Public site: visitor nav, live hero and the information pages.
   Animations only use opacity and transform, and stop under reduced motion or html.calm. */
:root { --night: #0A0D12; --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.mono, .no { font-family: var(--mono); font-feature-settings: "tnum"; }

/* ---------- Visitor nav ---------- */
.nav-site { gap: 12px; }
.site-links { display: flex; gap: 2px; margin: 0 auto; }
.site-links a { color: rgba(255, 255, 255, .66); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 7px 11px; border-radius: 7px; white-space: nowrap; text-decoration: none !important; position: relative; }
.site-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-links a.on { color: #fff; }
.site-links a.on::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--accent); }
.motion-toggle { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .72); cursor: pointer; font-size: 16px; flex-shrink: 0; }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, .28); }
.motion-toggle .ti-player-pause, .motion-toggle[aria-pressed="true"] .ti-activity { display: none; }
.motion-toggle[aria-pressed="true"] .ti-player-pause { display: block; }
.motion-toggle[aria-pressed="true"] { color: var(--accent); }
.site-menu { display: none; }
.site-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .86); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary .ti { font-size: 17px; }
.site-menu summary .ti-x, .site-menu[open] summary .ti-menu { display: none; }
.site-menu[open] summary .ti-x { display: block; }
.site-menu .sheet { position: fixed; top: 56px; left: 0; right: 0; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 8px 16px 20px; box-shadow: 0 24px 48px rgba(0, 0, 0, .45); }
.site-menu .sheet > a { display: flex; align-items: baseline; gap: 14px; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #fff; font-size: 20px; font-weight: 600; letter-spacing: -.01em; text-decoration: none !important; }
.site-menu .sheet > a .no { font-size: 11px; color: var(--accent); font-weight: 500; }
.site-menu .sheet > a.on { color: var(--accent); }
.sheet-cta { display: grid; gap: 8px; margin-top: 16px; }
@media (max-width: 1180px) { .nav-site .nav-r > .btn { display: none; } }
@media (max-width: 960px) { .site-links { display: none; } .site-menu { display: block; } }
@media (max-width: 480px) { .nav-site .nav-login { display: none; } .nav-site .lang-switch { margin-right: 0; } }
@media (max-width: 400px) { .site-menu summary .lbl { display: none; } .site-menu summary { padding: 0 8px; } .nav-site .nav-r { gap: 6px; } }

/* ---------- Live hero ---------- */
.hero-live { min-height: calc(100svh - 56px); display: grid; place-items: center; padding: 72px 20px 96px; background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(29, 158, 117, .16), transparent 70%), var(--night); }
.bg-net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero-live .hero-in { max-width: 980px; }
.hero-live h1 { font-size: clamp(36px, 6.6vw, 84px); line-height: 1; letter-spacing: -.04em; margin-bottom: 22px; text-wrap: balance; }
.hero-live h1 em { display: block; }
.hero-live p { font-size: clamp(15px, 1.6vw, 18px); max-width: 600px; text-wrap: pretty; }
.hero-choice { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-choice .ti { font-size: 16px; }
.hero-live .hero-note { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .4); margin: 18px auto 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .42); text-decoration: none !important; }
.scroll-cue i { width: 1px; height: 34px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.scroll-cue i::after { content: ""; display: block; width: 1px; height: 12px; background: var(--accent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { from { transform: translateY(-12px); } to { transform: translateY(34px); } }
@media (max-height: 620px) { .scroll-cue { display: none; } }
.rise { animation: rise .9s var(--ease-out) both; }
.r1 { animation-delay: .05s; }
.r2 { animation-delay: .14s; }
.r3 { animation-delay: .24s; }
.r4 { animation-delay: .34s; }
.r5 { animation-delay: .44s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Home: section teasers ---------- */
.teasers { background: var(--night); color: #fff; padding: 72px 20px; }
.teasers-in { max-width: 1120px; margin: 0 auto; }
.teasers .eyebrow { color: var(--accent); }
.teasers h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 36px; max-width: 640px; color: #fff; }
.teaser-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.teaser { display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 24px 22px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: rgba(255, 255, 255, .02); color: #fff; text-decoration: none !important; transition: border-color .2s, background-color .2s; }
.teaser:hover { border-color: rgba(29, 158, 117, .6); background: rgba(29, 158, 117, .07); }
.teaser .no { font-size: 12px; color: var(--accent); }
.teaser h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin-top: auto; }
.teaser p { font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .58); }
.teaser .more { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .82); display: flex; align-items: center; gap: 4px; }
.teaser .more .ti { transition: transform .2s var(--ease-out); }
.teaser:hover .more .ti { transform: translate(2px, -2px); color: var(--accent); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
.cta-live { padding: 72px 20px; border-top: 1px solid rgba(255, 255, 255, .06); background: var(--night); }
.cta-live h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink-2); color: rgba(255, 255, 255, .5); font-size: 13px; padding: 36px 20px 20px; margin-top: auto; }
.site-foot-in { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.site-foot p { margin-top: 6px; }
.site-foot nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.site-foot nav a { color: rgba(255, 255, 255, .7); }
.site-foot-b { max-width: 1120px; margin: 16px auto 0; font-size: 12px; color: rgba(255, 255, 255, .36); }

@media (max-width: 960px) { .teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .teaser-grid { grid-template-columns: minmax(0, 1fr); }
  .teaser { min-height: 0; }
  .teaser h3 { margin-top: 14px; }
  .hero-choice { flex-direction: column; align-items: stretch; }
  .hero-live { padding: 56px 16px 88px; }
  .teasers { padding: 56px 16px; }
}

/* ---------- Less motion: OS setting or the Motion button (html.calm) ---------- */
@media (prefers-reduced-motion: reduce) {
  .rise, .reveal, .scroll-cue i::after { animation: none !important; }
}
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }
@media (max-width: 560px) { .bg-tree .scroll-cue { display: none; } }

/* Keep the secondary hero button readable when the background draws behind it. */
.hero .btn-ghost-dark, .lp-hero .btn-ghost-dark { background: rgba(10, 13, 18, .88); }
