/* Rich homepage + Journey (2026-10-08). The first website's immersive flow
   (orbit, pillars, Vani search demo, showcase, principles) drawn with the
   current look's tokens, so Light and Dark need nothing extra here. */

/* ── Icon marquee under the hero ─────────────────────────────────────── */
.marquee { overflow: hidden; margin: 34px auto 0; width: min(1240px, 100%); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 26px; width: max-content; animation: marquee 60s linear infinite; padding: 6px 0; }
.marquee img { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--ico-shadow); }
@keyframes marquee { to { transform: translateX(-50%); } }
.verse .iast { color: var(--muted); font-style: italic; font-size: 14px; margin: 8px 0; }

/* ── Ecosystem: orbit + pillars ──────────────────────────────────────── */
.eco { overflow-x: clip; }
.eco-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.orbit { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin: 0 auto; }
.orbit .ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed var(--line-strong); }
.orbit .ring.r2 { inset: 22%; }
.orbit .core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 800; z-index: 2; }
.orbit .core img { width: 96px; height: 96px; border-radius: 28px; box-shadow: 0 0 0 10px var(--soft-bg), 0 18px 50px var(--accent-soft); animation: corePulse 4s ease-in-out infinite; }
@keyframes corePulse { 50% { box-shadow: 0 0 0 18px var(--hover), 0 22px 60px var(--accent-soft); } }
.orbit .sat { position: absolute; left: 50%; top: 50%; margin: -23px 0 0 -23px; display: grid; justify-items: center; text-decoration: none; color: var(--ink-soft); font-size: 11px; font-weight: 700; will-change: transform; z-index: 1; }
.orbit .sat img { width: 46px; height: 46px; border-radius: 14px; background: var(--card-solid); box-shadow: var(--ico-shadow); transition: transform .25s; }
.orbit .sat span { position: absolute; top: 100%; margin-top: 4px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; background: var(--card-solid); padding: 2px 6px; border-radius: 6px; }
.orbit-modes { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 14px 0 0; }
.orbit-modes .chip { font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card-solid); color: var(--ink); cursor: pointer; }
.orbit-modes .chip[aria-pressed="true"] { background: var(--ink); color: var(--card-solid); }
.orbit .sat:hover img, .orbit .sat:focus-visible img { transform: scale(1.18); }
.orbit .sat:hover span, .orbit .sat:focus-visible span { opacity: 1; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pillar .p-ico { font-size: 26px; }
.pillar h3 { margin: 8px 0 0; }

/* ── Why / principles ────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.why-n { font-family: var(--count-font); font-size: 34px; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Feature rows (Vani, Dictionary) ─────────────────────────────────── */
.feature-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; }
.feature-row.reverse .feature-copy { order: 2; }
.titlerow { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; }
.titlerow h2 { margin: 0; }
.search-demo { min-height: 220px; }
.sd-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--input-bg); border: 1px solid var(--line-strong); font-size: 18px; font-weight: 700; }
.sd-bar .caret { width: 2px; height: 20px; background: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sd-results { min-height: 90px; margin: 14px 0 6px; }
.sd-item { padding: 12px 14px; border-radius: 14px; background: var(--soft-bg); animation: rise .45s ease both; }
.sd-item b { font-size: 17px; margin-right: 8px; }
.sd-item p { margin: 6px 0 0; color: var(--ink-soft); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.phone-pair { display: flex; gap: 18px; justify-content: center; }
.phone-pair .phone { position: relative; width: min(210px, 42vw); }
.phone-pair .phone img { width: 100%; height: auto; border-radius: 26px; border: 6px solid var(--phone-edge); box-shadow: var(--phone-shadow); display: block; }
.phone-pair .phone:nth-child(2) { margin-top: 40px; }

/* ── Audiences ───────────────────────────────────────────────────────── */
.aud-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.aud-panel h3 { margin-top: 0; }
.aud-apps { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.aud-apps a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--soft-bg); color: var(--ink); text-decoration: none; font-weight: 700; }
.aud-apps a:hover { background: var(--hover-strong); }
.aud-apps .ico { border-radius: 10px; }

/* ── How everything connects ─────────────────────────────────────────── */
.flow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.flow-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.flow-chain .ico { border-radius: 12px; box-shadow: var(--ico-shadow); }
.flow-arrow { color: var(--accent); font-weight: 800; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(3px); } }
.flow h3 { margin: 12px 0 0; }

/* ── Showcase ────────────────────────────────────────────────────────── */
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.show { padding: 0; transition: transform .3s; }
.show .art { aspect-ratio: 4 / 3; overflow: hidden; background: var(--art-bg); }
.show .art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.show:hover .art img { transform: scale(1.05); }
.show .meta { padding: 14px 18px 18px; }
.show .meta h3 { margin: 0; }

/* ── Journey preview (home) ──────────────────────────────────────────── */
.jp-arc { display: flex; gap: 10px; align-items: flex-end; height: 120px; padding: 10px 0; }
.jp-month { flex: 1; display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; text-decoration: none; color: var(--ink); }
.jp-month i { align-self: end; height: var(--h); min-height: 10px; border-radius: 10px 10px 4px 4px; background: var(--grad-btn); opacity: .85; transform-origin: bottom; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.jp-month span { font-weight: 800; font-size: 13px; margin-top: 6px; }
.jp-month small { color: var(--muted); font-size: 11.5px; }
@keyframes grow { from { transform: scaleY(0); } }
.jp-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 14px; margin: 10px 0 18px; }
.jp-item { flex: 0 0 210px; scroll-snap-align: start; display: grid; gap: 4px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); text-decoration: none; color: var(--ink); }
.jp-item time { color: var(--kicker); font-size: 12px; font-weight: 800; }
.jp-item b { line-height: 1.3; }
.jp-latest .j-card h3 { font-size: 17px; }

/* ── Journey page ────────────────────────────────────────────────────── */
.j-page-head h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.j-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 20px; }
.j-stats div { display: grid; }
.j-stats b { font-size: 26px; font-family: var(--count-font); }
.j-stats span { color: var(--muted); font-size: 13px; }
.j-filters { display: grid; gap: 8px; margin-bottom: 18px; position: sticky; top: 64px; z-index: 5; padding: 10px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.j-filters .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.j-major { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.j-timeline { position: relative; padding-left: 26px; border-left: 2px solid var(--line-strong); }
.j-year { font-size: 30px; margin: 10px 0 0 -26px; padding-left: 26px; }
.j-month { margin: 22px 0 10px; color: var(--kicker); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.j-card { position: relative; padding: 18px 20px; margin-bottom: 14px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); backdrop-filter: var(--card-blur); -webkit-backdrop-filter: var(--card-blur); }
.j-timeline .j-card::before { content: ''; position: absolute; left: -34px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.j-timeline .j-card.major::before { background: var(--accent); box-shadow: 0 0 0 5px var(--spot); }
.j-head { display: flex; align-items: center; gap: 10px; }
.j-head > div { display: grid; flex: 1; min-width: 0; }
.j-head time { font-size: 12.5px; font-weight: 800; color: var(--kicker); }
.j-prod { font-size: 13px; color: var(--ink-soft); text-decoration: none; font-weight: 700; }
.j-prod:hover { text-decoration: underline; }
.j-ico { width: var(--s, 38px); height: var(--s, 38px); border-radius: 11px; flex: 0 0 auto; }
.j-emoji { display: grid; place-items: center; background: var(--soft-bg); font-size: calc(var(--s, 38px) * .55); }
.j-stage { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: var(--r-pill); background: var(--st-in-bg); color: var(--st-in); white-space: nowrap; }
.j-stage.s-production { background: var(--st-ok-bg); color: var(--st-ok); }
.j-stage.s-testing, .j-stage.s-prototype, .j-stage.s-concept { background: var(--st-soon-bg); color: var(--st-soon); }
.j-stage.s-major-redesign { background: var(--st-dev-bg); color: var(--st-dev); }
.j-card h3 { margin: 10px 0 0; font-size: 19px; }
.j-card p { margin: 6px 0 0; color: var(--ink-soft); }
.j-card details summary { cursor: pointer; margin-top: 8px; font-weight: 700; color: var(--link); }
.j-impact { font-size: 14px; }
.j-evo-card { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.j-evo-card h2 { margin: 0 0 8px; font-size: 22px; }
.j-steps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.j-steps li { display: grid; grid-template-columns: 140px 130px 1fr; gap: 10px; font-size: 14px; }
.j-steps time { color: var(--muted); }
.notice.j-link { margin-top: 14px; }

/* ── Get started ─────────────────────────────────────────────────────── */
.gs-card { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 28px; background: var(--hero-card); }
.gs-card > div:not(.cta) { flex: 1 1 260px; }
.gs-card h2 { margin: 0; }
.gs-card img { border-radius: 20px; box-shadow: var(--ico-shadow); }

/* ── Phones and tablets ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .eco-grid, .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy { order: 0; }
  .orbit { width: min(400px, 100%); }
  .orbit .sat img { width: 38px; height: 38px; }
  .j-steps li { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .orbit .core img { width: 74px; height: 74px; }
  .orbit .sat { margin: -19px 0 0 -19px; }
  .orbit .sat img { width: 34px; height: 34px; border-radius: 11px; }
  .jp-arc { gap: 6px; }
  .j-timeline { padding-left: 18px; }
  .j-timeline .j-card::before { left: -26px; }
  .j-filters { top: 56px; }
}

/* ── Reduced motion: everything still there, nothing moves ───────────── */
@media (prefers-reduced-motion: reduce) {
  .marquee .track, .orbit .core img, .flow-arrow, .sd-bar .caret, .jp-month i, .sd-item { animation: none !important; }
  .sky .aura, .sky .mandala, .sky .sparks i, .sky .petals i, .boot * { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .show .art img, .card, .show { transition: none !important; }
  html { scroll-behavior: auto !important; }
}

/* Filters and header stay on one line each. */
.j-filters .chip { white-space: nowrap; flex: 0 0 auto; }
.nav-links a { white-space: nowrap; }
@media (max-width: 1500px) { .nav-end .look-switch b { display: none; } .nav-end .look-switch button { padding: 6px 9px; font-size: 14px; } }
