/* XQ95 — styles. No external fonts, no third-party requests. */

/* Theme follows the logo: pure black, circuit mint (#00F5B0) and white.
   The site is dark only, so the logo always sits on its own black. */
:root {
  --bg: #000000;
  --bg-raised: #0a0f0e;
  --bg-sunken: #000000;
  --line: #15201d;
  --line-strong: #24342f;
  --fg: #f4f7f6;
  --fg-muted: #98a8a3;
  --fg-faint: #65746f;
  --accent: #00f5b0;
  --accent-ink: #00140e;
  --accent-soft: rgba(0, 245, 176, 0.12);
  --ok: #00f5b0;
  --ok-soft: rgba(0, 245, 176, 0.12);
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: var(--fg); }
.brand-mark { height: 34px; width: auto; }
.brand-word { height: 14px; width: auto; }
.site-footer .brand-word { height: 16px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; color: var(--fg-muted); font-size: 0.95rem;
}
.nav a:hover { color: var(--fg); background: var(--bg-raised); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a.nav-cta { color: var(--accent-ink); background: var(--accent); font-weight: 600; margin-left: 6px; }
.nav a.nav-cta:hover { filter: brightness(1.08); }

.menu-btn {
  display: none; background: none; border: 1px solid var(--line-strong); color: var(--fg);
  border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 0.9rem; cursor: pointer;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 2px; }
  .nav a { padding: 12px; font-size: 1rem; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- sections ---------- */
main { display: block; }
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

.eyebrow {
  font: 600 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.lede { font-size: 1.2rem; color: var(--fg-muted); max-width: 62ch; }
.muted { color: var(--fg-muted); }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* ---------- hero ---------- */
.hero { padding: 120px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  opacity: 0.55;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-bottom: 36px; }
.page-hero { padding: 96px 0 64px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 20ch; }
@media (max-width: 600px) { .hero { padding: 72px 0 64px; } .page-hero { padding: 64px 0 40px; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 9px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line-strong); color: var(--fg); background: var(--bg-raised);
}
.btn:hover { color: var(--fg); border-color: var(--fg-faint); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }

.status-note {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 10px;
  font: 0.85rem/1.4 var(--mono); color: var(--fg-muted);
}
.status-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card p:last-child { margin-bottom: 0; }
.card .card-foot { margin-top: auto; padding-top: 16px; }
a.card { text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { color: inherit; border-color: var(--line-strong); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.card { transition: none; } a.card:hover { transform: none; } }

.num { font: 600 0.8rem/1 var(--mono); color: var(--fg-faint); margin-bottom: 16px; letter-spacing: 0.08em; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 0.72rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg-muted);
  white-space: nowrap;
}
.tag-dev { color: var(--accent); border-color: transparent; background: var(--accent-soft); }
.tag-dev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.link-arrow { font-weight: 600; color: var(--accent); text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- layer stack ---------- */
.stack { display: grid; gap: 8px; }
.layer {
  display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 16px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px;
}
.layer-name { font: 600 0.78rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
.layer-items { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 0.88rem/1 var(--mono); padding: 9px 12px; border-radius: 7px;
  background: var(--bg-sunken); border: 1px solid var(--line); color: var(--fg); text-decoration: none;
}
a.chip:hover { border-color: var(--accent); color: var(--fg); }
.layer-top { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.layer-top .layer-name { color: var(--accent); }
.layer-base { background: var(--bg-sunken); }
@media (max-width: 640px) { .layer { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- detail blocks (products / platform) ---------- */
.detail {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px;
  padding: 56px 0; border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.detail:first-of-type { border-top: 0; padding-top: 0; }
.detail h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.detail h3 { font: 600 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); margin: 0 0 12px; }
.detail .block + .block { margin-top: 28px; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-3px);
}

.platform-group { margin-top: 72px; }
.platform-group:first-child { margin-top: 0; }
.platform-group > .eyebrow { color: var(--fg-faint); }

/* ---------- principles ---------- */
.principle {
  display: grid; grid-template-columns: 96px 1fr; gap: 32px;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.principle:first-of-type { border-top: 0; padding-top: 0; }
.principle-num { font: 600 2.5rem/1 var(--mono); color: var(--accent); letter-spacing: -0.04em; }
.principle .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.principle h3 { font: 600 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.principle ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
@media (max-width: 760px) {
  .principle { grid-template-columns: 1fr; gap: 12px; }
  .principle .cols { grid-template-columns: 1fr; gap: 20px; }
}

.callout {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius); padding: 28px;
}
.callout p:last-child { margin: 0; }

/* ---------- prose (news, privacy) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.meta { font: 0.85rem/1.4 var(--mono); color: var(--fg-faint); margin-bottom: 24px; }

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; text-decoration: none; }
.post-list a:hover h2 { color: var(--accent); }
.post-list h2 { font-size: 1.35rem; margin-bottom: 6px; }
.post-list p { margin: 0; color: var(--fg-muted); }
@media (max-width: 640px) { .post-list a { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- contact ---------- */
.contact-email { font: 600 clamp(1.1rem, 2.4vw, 1.35rem)/1.3 var(--mono); word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--fg-muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font: 600 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--fg-faint); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound .code { font: 700 clamp(4rem, 14vw, 8rem)/1 var(--mono); color: var(--accent); letter-spacing: -0.05em; margin-bottom: 12px; }

/* ---------- photos ---------- */
.photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-raised); }
.photo img { display: block; width: 100%; height: auto; }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent 45%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}
.photo-detail { margin-top: 28px; }
.prose .photo-cover { margin: 8px 0 32px; }

/* Page heroes with a photo behind the title, fading to black on the text side */
.page-hero.has-photo { position: relative; isolation: isolate; overflow: hidden; padding: 136px 0 112px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg picture { display: block; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .8; animation: bg-in 2.4s var(--ease-out) both; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(0, 0, 0, .86) 34%, rgba(0, 0, 0, .35) 72%, rgba(0, 0, 0, .2) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 38%),
    linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, transparent 22%);
}
@keyframes bg-in { from { opacity: 0; transform: scale(1.08); } }
@media (max-width: 760px) {
  .page-hero.has-photo { padding: 88px 0 64px; }
  .hero-bg::after { background: linear-gradient(to top, var(--bg) 4%, rgba(0, 0, 0, .74) 55%, rgba(0, 0, 0, .55) 100%); }
}
.post-list a { grid-template-columns: 160px minmax(0, 1fr) 260px; align-items: center; }
@media (max-width: 760px) { .post-list a { grid-template-columns: minmax(0, 1fr); } .post-list .photo { order: -1; } }

/* =========================================================
   Motion. Everything here is decoration: the page is fully
   readable without it, and it all switches off for people
   who ask their system for reduced motion.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --glow: 0 0 0 4px var(--accent-soft), 0 10px 30px -8px rgba(0, 245, 176, .45);
}
::selection { background: rgba(0, 245, 176, .28); color: #fff; }

/* Page-to-page fade (browsers with cross-document view transitions) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Header firms up once the page scrolls */
.site-header { transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: 0 8px 32px -12px rgba(0, 0, 0, .9); border-bottom-color: var(--line-strong); }
.brand-mark { transition: filter .3s ease, transform .4s var(--ease-out); }
.brand:hover .brand-mark { filter: drop-shadow(0 0 8px rgba(0, 245, 176, .6)); transform: rotate(-4deg) scale(1.06); }

/* Nav: a mint line grows under the hovered and current link */
.nav a:not(.nav-cta) { position: relative; transition: color .2s ease, background-color .2s ease; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav a:not(.nav-cta):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:not(.nav-cta):hover { background: transparent; }
@media (max-width: 860px) { .nav a:not(.nav-cta)::after { display: none; } }

/* Hero: content arrives in sequence, the circuit grid drifts, a glow breathes */
.hero-copy > *, .page-hero .wrap > * { animation: rise .8s var(--ease-out) both; }
.hero-copy > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4), .page-hero .wrap > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(n+5), .page-hero .wrap > :nth-child(n+5) { animation-delay: .32s; }

/* Rotating Earth beside the home headline (drawn by /js/globe.js) */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; }
.globe { display: block; width: 100%; max-width: 540px; aspect-ratio: 1; justify-self: end; margin: -40px -24px -40px 0; cursor: grab; animation: globe-in 1.4s var(--ease-out) .2s both; }
.globe:active { cursor: grabbing; }
@keyframes globe-in { from { opacity: 0; transform: scale(.92); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .globe { order: -1; justify-self: center; max-width: 320px; margin: -32px auto -8px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }

.hero::before { animation: grid-drift 40s linear infinite; }
@keyframes grid-drift { to { background-position: 56px 56px, 56px 56px; } }
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -220px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 245, 176, .16), transparent);
  animation: breathe 9s ease-in-out infinite alternate;
}
.hero .wrap { z-index: 1; }
@keyframes breathe { from { opacity: .55; transform: scale(.9); } to { opacity: 1; transform: scale(1.08) translate(-40px, 30px); } }
.hero h1 {
  background: linear-gradient(100deg, var(--fg) 40%, #b9fff0 60%, var(--fg) 80%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .8s var(--ease-out) .08s both, sheen 7s ease-in-out 1.2s infinite;
}
@keyframes sheen { 0%, 60% { background-position: 100% 0; } 100% { background-position: -50% 0; } }

/* Status dot pulses like a live signal */
.status-note::before { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 245, 176, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(0, 245, 176, 0); } }

/* Buttons: lift, glow, a light sweep, and a press */
.btn { position: relative; overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s ease, border-color .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn-primary:hover { filter: none; box-shadow: var(--glow); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s var(--ease-out); }
.nav a.nav-cta { transition: box-shadow .25s ease, transform .25s var(--ease-out); }
.nav a.nav-cta:hover { filter: none; box-shadow: var(--glow); transform: translateY(-1px); }

/* Links with arrows nudge forward */
.link-arrow::after { display: inline-block; transition: transform .3s var(--ease-out); }
.link-arrow:hover::after, a.card:hover .link-arrow::after { transform: translateX(4px); }

/* Cards and layers: a soft spotlight follows the pointer */
.card, .layer { position: relative; isolation: isolate; transition: border-color .25s ease, transform .35s var(--ease-out), box-shadow .35s ease; }
.card::before, .layer::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 245, 176, .09), transparent 65%);
  transition: opacity .3s ease;
}
.card:hover::before, .layer:hover::before { opacity: 1; }
.card:hover, .layer:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0, 245, 176, .35); }
.chip { transition: border-color .2s ease, background-color .2s ease, transform .25s var(--ease-out); }
a.chip:hover { background: var(--accent-soft); transform: translateY(-1px); }
.post-list a h2 { transition: color .2s ease, transform .35s var(--ease-out); }
.post-list a:hover h2 { transform: translateX(6px); }
.principle-num { transition: text-shadow .4s ease; }
.principle:hover .principle-num { text-shadow: 0 0 24px rgba(0, 245, 176, .55); }

/* Photos ease in closer on hover */
.photo img { transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .photo:hover img, a:hover .photo img, .detail:hover .photo img { transform: scale(1.035); } }

/* Scroll reveal: main.js adds .reveal only to blocks still below the fold */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out) var(--d, 0s), transform .7s var(--ease-out) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Reading progress line at the top of the screen */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px rgba(0, 245, 176, .7); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, a.card:hover, a.chip:hover, .post-list a:hover h2, .brand:hover .brand-mark { transform: none; }
  .photo img { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
  .progress { display: none; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* =========================================================
   Customer card sign-in (/c/)
   ========================================================= */
[hidden] { display: none !important; }
.auth-hero { padding-bottom: 32px; }
.auth-section { padding-top: 48px; border-top: 0; }
.auth-section .wrap { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 860px) { .auth-section .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.auth-panel { display: grid; gap: 20px; min-width: 0; }
.auth-view { display: grid; gap: 20px; }
.auth-form { display: grid; gap: 18px; }
.auth-form .btn { justify-self: start; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input {
  width: 100%; min-width: 0; font: inherit; color: var(--fg); background: var(--bg-raised);
  border: 1px solid var(--line-strong); border-radius: 9px; padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: #ff6b81; }
.mono-input { font-family: var(--mono) !important; letter-spacing: 0.06em; text-transform: uppercase; }
.mono-input::placeholder { text-transform: none; letter-spacing: 0.02em; }
.hint { margin: 0; font-size: 0.85rem; color: var(--fg-faint); }
.form-msg { margin: 0; font-size: 0.95rem; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: #ff8a9b; }
.form-msg.is-ok { color: var(--accent); }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
button.btn[disabled] { opacity: .6; cursor: progress; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-raised); }
.seg button {
  flex: 1 1 180px; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--fg-muted); cursor: pointer;
  background: transparent; border: 0; border-radius: 8px; padding: 10px 12px; transition: background-color .2s ease, color .2s ease;
}
.seg button:hover { color: var(--fg); }
.seg button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }

.account-card h2 { font-size: 1.5rem; }
.account-card .mono { font-family: var(--mono); color: var(--accent); letter-spacing: 0.06em; }
.auth-more { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; background: var(--bg-raised); }
.auth-more summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.auth-more[open] { padding-bottom: 20px; }
.auth-more p { margin-top: 0; }
.linklike { font: inherit; color: var(--fg-muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--accent); }
.auth-foot { margin: 0; font-size: 0.9rem; }
.auth-note { border-left: 1px solid var(--line); padding-left: 32px; }
.auth-note .checks { margin-bottom: 20px; }
@media (max-width: 860px) { .auth-note { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; } }

/* Contact page: customer sign-in row under the email cards */
.signin-card { margin-top: 16px; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.signin-card > div { flex: 1 1 320px; min-width: 0; }
.signin-card p:last-child { margin-bottom: 0; }
.signin-card .btn { flex: none; }

/* Card names: "Swift Silver Falcon" with a small random badge */
.small { font-size: 0.9rem; }
.name-choices { border: 0; margin: 0; padding: 0; min-width: 0; }
#name-options { display: grid; gap: 10px; }
.name-option {
  display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "radio badge name" "radio badge handle";
  align-items: center; column-gap: 12px; padding: 14px 16px; cursor: pointer;
  background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.name-option:hover { border-color: var(--fg-faint); }
.name-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.name-option input { grid-area: radio; accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.name-option .name-badge { grid-area: badge; }
.name-text { grid-area: name; font-weight: 650; font-size: 1.1rem; overflow-wrap: anywhere; }
.name-handle { grid-area: handle; color: var(--fg-muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.acct-name { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }

.name-badge { --nb: var(--accent); display: inline-block; width: 22px; height: 22px; flex: none; background: var(--nb); }
.nb-c0 { --nb: #00f5b0; } .nb-c1 { --nb: #4cc9f0; } .nb-c2 { --nb: #f72585; } .nb-c3 { --nb: #ffb703; }
.nb-c4 { --nb: #9d4edd; } .nb-c5 { --nb: #ff7b54; } .nb-c6 { --nb: #80ed99; } .nb-c7 { --nb: #e0e1dd; }
.nb-c8 { --nb: #4895ef; } .nb-c9 { --nb: #ff006e; } .nb-c10 { --nb: #c9ada7; } .nb-c11 { --nb: #06d6a0; }
.nb-s0 { border-radius: 50%; }
.nb-s1 { border-radius: 4px; }
.nb-s2 { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.nb-s3 { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.nb-s4 { clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); }
.nb-s5 { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }

/* Customer downloads */
.downloads { margin-top: 8px; display: grid; gap: 12px; min-width: 0; }
.downloads h2 { font-size: 1.4rem; margin: 12px 0 0; }
.dl-cat { display: grid; gap: 14px; margin-top: 10px; }
.dl-cat h3 { font-size: 1.15rem; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.dl-product { display: grid; gap: 10px; }
.dl-product .eyebrow { margin: 0; }
.dl-file { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; min-width: 0; }
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dl-name { margin: 0; font-size: 1.02rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.dl-meta { margin: 0; font-size: 0.88rem; overflow-wrap: anywhere; }
.dl-notes summary { cursor: pointer; font-size: 0.9rem; color: var(--fg-muted); }
.dl-notes-text { white-space: pre-line; margin: 8px 0 0; font-size: 0.92rem; }
.dl-sum { margin: 0; font-size: 0.78rem; overflow-wrap: anywhere; }
.dl-sum code { color: var(--fg-muted); }
.btn-sm { padding: 7px 12px; font-size: 0.88rem; white-space: nowrap; }

/* Customer support inbox */
.support { display: grid; gap: 12px; min-width: 0; margin-top: 8px; }
.support h2 { font-size: 1.4rem; margin: 12px 0 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sup-form { display: grid; gap: 14px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.sup-form textarea { width: 100%; font: inherit; color: var(--fg); background: var(--bg-sunken); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; resize: vertical; }
.sup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sup-open { width: 100%; text-align: left; display: grid; gap: 4px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--fg);
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.sup-open:hover { border-color: var(--line-strong); }
.sup-item.is-new .sup-open { border-color: var(--accent); }
.sup-open .tag { justify-self: start; }
.sup-item-subj { font-weight: 650; overflow-wrap: anywhere; }
.sup-item-meta { font-size: 0.86rem; }
.sup-subject { margin: 4px 0 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.sup-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sup-msg { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raised); min-width: 0; }
.sup-msg.sup-staff { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.sup-who { margin: 0 0 6px; font-size: 0.82rem; color: var(--fg-muted); }
.sup-staff .sup-who { color: var(--accent); }
.sup-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sup-sys { text-align: center; }

/* Customer portal (signed in) */
.auth-section.is-portal .wrap { grid-template-columns: minmax(0, 1fr); max-width: 920px; }
.auth-section.is-portal .auth-note { display: none; }
.portal { gap: 18px; }
.portal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.portal-bar .acct-name { font-size: 1.25rem; font-weight: 650; }
.portal-tabs { width: 100%; }
.portal-tabs button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.portal-panel { min-width: 0; }
.portal-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { display: grid; gap: 8px; align-content: start; }
.tile .eyebrow { margin: 0; }
.tile .actions { margin-top: 6px; }
.tile-big { font-size: 1.35rem; margin: 0; }
.tile-big.is-new { color: var(--accent); }
.tile-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.tile-list li { overflow-wrap: anywhere; }
.account-panel { display: grid; gap: 14px; }
.account-panel h2, .support h2, .downloads h2 { margin-top: 4px; }

/* Card level: customer mint, premium gold, platinum silver (same as the printed cards) */
.tier-box { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; background: var(--bg-raised); }
.tier-box .eyebrow { margin: 0 0 6px; }
.tier-now { margin: 0 0 8px; }
.tier-tag { --tc: var(--accent); display: inline-block; font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--tc); border: 1px solid var(--tc); border-radius: 999px; padding: 5px 10px; }
.tier-tag.t-premium { --tc: #f2c14e; }
.tier-tag.t-platinum { --tc: #dfe7ee; }
.tier-box .checks { margin: 0; }
.tier-tag-sm { font-size: .62rem; padding: 3px 7px; margin-left: 8px; vertical-align: middle; }

/* Customer community (forum) */
.forum { display: grid; gap: 12px; min-width: 0; }
.forum-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.forum-head h2 { margin: 4px 0 0; font-size: 1.4rem; }
.fo-search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 420px; }
.fo-search input { flex: 1; min-width: 0; font: inherit; color: var(--fg); background: var(--bg-sunken); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; }
.fo-crumbs { font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.fo-cats, .fo-topics, .fo-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fo-cat, .fo-topic { width: 100%; text-align: left; display: grid; gap: 4px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--fg);
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.fo-cat:hover, .fo-topic:hover { border-color: var(--line-strong); }
.fo-cat-name, .fo-topic-title { font-weight: 650; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fo-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fo-cat-head p { margin: 0; }
.fo-author { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); }
.fo-author .name-badge { width: 14px; height: 14px; }
.name-badge.nb-staff { background: var(--accent); border-radius: 3px; box-shadow: 0 0 0 2px var(--accent-soft); }
.fo-title { margin: 4px 0; font-size: 1.2rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.fo-post { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raised); min-width: 0; display: grid; gap: 8px; }
.fo-post.is-staff { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.fo-post-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.fo-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fo-removed { margin: 0; font-style: italic; }
.fo-acts { display: flex; gap: 14px; }
.fo-form { display: grid; gap: 12px; }
.fo-form textarea, .fo-form input, .fo-form select { width: 100%; font: inherit; color: var(--fg); background: var(--bg-sunken); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; }
.fo-rules { display: grid; gap: 8px; }
.fo-rules h3 { margin: 0; }
.fo-pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
.fo-snippet { display: block; overflow-wrap: anywhere; }

/* Customer live chat */
.community-modes { margin-bottom: 4px; }
.community-modes button[aria-pressed="true"], .ch-channels button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.chat { display: grid; gap: 10px; min-width: 0; }
.ch-channels { flex-wrap: wrap; }
.ch-log { height: min(60vh, 560px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px;
  padding: 10px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.ch-log > :first-child { margin-top: auto; }
.ch-more { align-self: center; margin-bottom: 8px; }
.ch-row { padding: 6px 8px; border-radius: 8px; min-width: 0; }
.ch-row:hover, .ch-row:focus-within { background: var(--bg-sunken); }
.ch-row.is-staff { box-shadow: inset 3px 0 0 var(--accent); }
.ch-row-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-row-head .name-badge { width: 12px; height: 12px; }
.ch-name { font-weight: 650; font-size: 0.92rem; }
.ch-text { margin: 2px 0 0 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-removed { font-style: italic; }
.ch-acts { margin-left: 20px; display: flex; gap: 12px; opacity: 0; }
.ch-row:hover .ch-acts, .ch-row:focus-within .ch-acts { opacity: 1; }
@media (hover: none) { .ch-acts { opacity: 1; } }
.ch-report { display: flex; gap: 6px; margin: 6px 0 0 20px; flex-wrap: wrap; }
.ch-report input { flex: 1 1 200px; font: inherit; color: var(--fg); background: var(--bg-sunken); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; }
.ch-compose { display: flex; gap: 8px; align-items: flex-end; }
.ch-compose textarea { flex: 1; min-width: 0; font: inherit; color: var(--fg); background: var(--bg-sunken); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; resize: vertical; }
.ch-compose button { min-width: 72px; }
.ch-empty { text-align: center; margin: auto; }
.tier-box .check { display: flex; gap: 8px; align-items: center; margin-top: 12px; cursor: pointer; }
.tier-box .form-msg:empty { display: none; }
.tier-tag.t-vip { --tc: #c9a7ff; }
.vip-box { border-top: 1px solid var(--line-strong); margin-top: 12px; padding-top: 10px; }
.vip-box p { margin: 0 0 6px; }
.tier-tag.t-partner { --tc: #7cc4ff; }
.seat-codes { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 12px 16px; margin-top: 12px; }
.seat-codes ol { columns: 2; column-gap: 32px; margin: 8px 0; padding-left: 28px; }
@media print {
  body.printing-codes * { visibility: hidden; }
  body.printing-codes #pa-codes, body.printing-codes #pa-codes * { visibility: visible; color: #000; }
  body.printing-codes #pa-codes { position: absolute; left: 0; top: 0; border: 0; }
  body.printing-codes #pa-codes .actions { display: none; }
}
.milestones { border-top: 1px solid var(--line-strong); margin-top: 12px; padding-top: 10px; }
.milestones p { margin: 0 0 6px; }
.milestones ul { margin: 0; padding-left: 20px; }
.milestones .ms-reached { color: var(--fg); }
.milestones .ms-next { color: var(--fg-muted); }
.tier-tag.t-years3, .tier-tag.t-years5 { --tc: #b8c7c1; }

/* ---------- home: the world ("The First Instruction", drawn by /js/world.js) ----------
   Without .live (no JavaScript) the section is an ordinary page: every heading, card and link shows in order.
   With .live the four chapters become one scrolled 3D scene and the text is pinned to the objects. */
.world-sec { border-top: 1px solid var(--line); }
.world-sec #w, .world-sec .rail { display: none; }
.world-sec .stage { display: grid; gap: 24px; padding: 72px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.world-sec .head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.world-sec .head .lede { font-size: 1rem; color: var(--fg-muted); }
.world-sec .head .callout { margin-top: 20px; padding: 20px; }
.world-sec .head .btn { margin-top: 20px; }

.world-sec.live { position: relative; height: 760vh; }
.world-sec.live .stage { display: block; padding: 0; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.world-sec.live #w { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }

/* chapter heads: the original section heads, one at a time */
.world-sec.live .head {
  position: absolute; left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); top: 104px; width: min(440px, calc(100vw - 48px));
  opacity: 0; pointer-events: none; transform: translateY(-14px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.55, 0, 1, .45);
}
.world-sec.live .head.on { opacity: 1; pointer-events: auto; transform: none; transition: opacity .45s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }

/* chapter rail: where you are, how much is left, jump anywhere */
.world-sec.live .rail { display: grid; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); gap: 6px; z-index: 3; margin: 0; padding: 0; list-style: none; }
.world-sec .rail button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: none; border: 0; padding: 6px 0; cursor: pointer; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); }
.world-sec .rail button i { display: block; width: 18px; height: 2px; background: var(--line-strong); transition: width .3s, background-color .3s; }
.world-sec .rail button span { opacity: 0; transition: opacity .25s; }
.world-sec .rail:hover button span, .world-sec .rail button:focus-visible span { opacity: 1; }
.world-sec .rail:hover { background: rgba(0, 0, 0, .85); border-radius: 10px; padding: 6px 10px; margin: -6px -10px; }
.world-sec .rail button[aria-current="step"] { color: var(--accent); }
.world-sec .rail button[aria-current="step"] i { width: 34px; background: var(--accent); }
.world-sec .rail button:hover { color: var(--fg); }

/* labels pinned to objects in the world */
.world-sec .lbl-layer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.world-sec .lbl-layer .layer-name { color: var(--fg-muted); white-space: nowrap; }
.world-sec .lbl-layer .layer-items { justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 330px; }
.world-sec .lbl-layer .chip { background: rgba(0, 0, 0, .85); padding: 7px 10px; font-size: .8rem; }
.world-sec .lbl-card, .world-sec .lbl-pr { display: block; width: 206px; background: rgba(10, 15, 14, .92); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--fg); }
.world-sec .lbl-card:hover, .world-sec .lbl-pr:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--fg); }
.world-sec .lbl-card h3, .world-sec .lbl-pr h3 { font-size: .98rem; margin: 0 0 4px; }
.world-sec .lbl-card p, .world-sec .lbl-pr p { font-size: .84rem; line-height: 1.45; margin: 0; color: var(--fg-muted); }
.world-sec .lbl-card .tags { margin-bottom: 10px; }
.world-sec .lbl-card .link-arrow { display: inline-block; margin-top: 8px; font-size: .84rem; }
.world-sec .lbl-pr .num { margin-bottom: 8px; color: var(--accent); }
.world-sec .lbl-pr .num::before { content: "0x"; }
.world-sec:not(.live) .lbl-layer { justify-content: flex-start; }
.world-sec:not(.live) .lbl-layer .layer-items { justify-content: flex-start; max-width: none; }
.world-sec:not(.live) .lbl-card, .world-sec:not(.live) .lbl-pr { width: auto; max-width: 560px; }

.world-sec.live .lbl { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; transition: opacity .35s ease; will-change: transform; }
.world-sec.live .lbl.on { opacity: 1; pointer-events: auto; }
/* text lands on the beat: a 3-step snap, revealed from the object's side */
@keyframes world-snap-in { 0% { clip-path: inset(0 0 0 100%); } 34% { clip-path: inset(0 0 0 66%); } 67% { clip-path: inset(0 0 0 33%); } 100% { clip-path: inset(0); } }
@keyframes world-snap-up { 0% { clip-path: inset(100% 0 0 0); } 34% { clip-path: inset(66% 0 0 0); } 67% { clip-path: inset(33% 0 0 0); } 100% { clip-path: inset(0); } }
.world-sec.live .lbl-layer.on { animation: world-snap-in .12s steps(1, end) both; transition: none; }
.world-sec.live .lbl-card.on, .world-sec.live .lbl-pr.on { animation: world-snap-up .12s steps(1, end) both; transition: none; }
/* the last line of dialogue: Contact us drops in and lands after the city settles */
@keyframes world-cta-land {
  0% { opacity: 0; transform: translateY(-18px); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  75% { opacity: 1; transform: none; animation-timing-function: ease-out; }
  86% { transform: translateY(2px); }
  100% { opacity: 1; transform: none; }
}
.world-sec.live .head[data-ch="3"].on .btn { animation: world-cta-land .5s .55s both; }

@media (max-width: 860px) {
  .world-sec.live .rail { top: auto; bottom: 16px; right: 16px; transform: none; grid-auto-flow: column; gap: 4px; }
  .world-sec .rail button span { display: none; }
  .world-sec .rail button { padding: 10px 2px; }
  .world-sec.live .head { top: 84px; }
  .world-sec.live .head .lede { display: none; }
  .world-sec.live .lbl-card, .world-sec.live .lbl-pr { width: 150px; padding: 10px 12px; }
  .world-sec.live .lbl-card p, .world-sec.live .lbl-card .link-arrow { display: none; }
  .world-sec.live .lbl-card .tags { margin-bottom: 6px; }
  .world-sec.live .lbl-pr { cursor: pointer; }
  .world-sec.live .lbl-pr p { display: none; }
  .world-sec.live .lbl-pr[aria-expanded="true"] { width: 210px; z-index: 4; }
  .world-sec.live .lbl-pr[aria-expanded="true"] p { display: block; margin-top: 6px; }
  .world-sec.live .lbl-pr h3::after { content: " +"; color: var(--accent); }
  .world-sec.live .lbl-pr[aria-expanded="true"] h3::after { content: " \2212"; }
  .world-sec.live .lbl-layer { justify-content: flex-start; gap: 8px; }
  .world-sec.live .lbl-layer .layer-name { font-size: .66rem; width: 64px; white-space: normal; }
  .world-sec.live .lbl-layer .layer-items { justify-content: flex-start; max-width: 150px; }
  .world-sec.live .lbl-layer .chip { font-size: .72rem; padding: 6px 8px; }
}

/* ---------- rolling letters on menu links and link buttons (added by main.js) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.roll { display: inline-flex; white-space: pre; user-select: none; -webkit-user-select: none; }
.roll .ch { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25em; vertical-align: bottom; }
.roll .ch i { display: block; font-style: normal; transition: transform .5s cubic-bezier(.75, 0, .2, 1); transition-delay: calc(var(--i) * 22ms); }
.roll .ch i + i { color: var(--accent); }
.btn-primary .roll .ch i + i, .nav-cta .roll .ch i + i { color: inherit; }
a:hover .roll .ch i, a:focus-visible .roll .ch i { transform: translateY(-100%); }

/* ---------- Page worlds: Platform, Products, Principles, About, News, Contact (js/page-worlds.js) ----------
   The section marked data-world becomes one world: the real text in a reading column, and a sticky
   stage beside it (above it on phones) whose timeline is the scroll. Everything is scoped to
   .page-world.live, which the script adds; without JavaScript the page is an ordinary page. */
/* ---------- hero: the photo pushes in as you scroll away ---------- */
.page-hero.has-photo .hero-bg picture{transform:scale(var(--push,1));transform-origin:70% 50%}

/* ---------- the world: text column + sticky stage ---------- */
.page-world.live > .wrap{display:grid;grid-template-columns:minmax(0,44fr) minmax(0,56fr);gap:40px;align-items:start}
.page-world.live .w-text{min-width:0}
.page-world .w-pane{position:sticky;top:0;height:100vh;height:100svh;min-width:0}
.page-world .w-pane canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
/* scroll room for each act: space below it, so no bordered box ever stretches */
.page-world.live .w-act{margin-bottom:34vh;margin-bottom:34svh}
.page-world.live .w-text{padding-bottom:40vh;padding-bottom:40svh}
/* the photos now live in the world; screen readers keep them, with their alt text */
.page-world.live .w-text .photo{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
/* one reading column: two-column blocks stack */
.page-world.live .detail{grid-template-columns:minmax(0,1fr);gap:20px}
.page-world.live .principle .cols{grid-template-columns:minmax(0,1fr);gap:16px}
.page-world.live .grid-2,.page-world.live .grid-3{grid-template-columns:minmax(0,1fr)}
.page-world.live .post-list a{grid-template-columns:minmax(0,1fr);gap:8px}
.page-world.live .w-part{padding-top:56px;border-top:1px solid var(--line);margin-top:24px}
/* hover or focus on a chapter lights its object */
.page-world.live .w-act.hot > .eyebrow,.page-world.live .w-act.hot h2{color:var(--accent)}

/* labels pinned to objects */
.page-world .w-lbls{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.page-world .w-lbl{position:absolute;left:0;top:0;display:inline-flex;flex-direction:column;gap:4px;max-width:260px;padding:8px 10px;background:rgba(0,0,0,.84);border:1px solid var(--line-strong);border-radius:6px;font:700 .84rem/1.25 var(--font);color:var(--fg);text-decoration:none;white-space:normal;opacity:0;visibility:hidden;pointer-events:auto;will-change:transform;transition:border-color .2s}
.page-world .w-lbl.on{opacity:1;visibility:visible;transition:opacity .16s steps(2,end),border-color .2s}
.page-world .w-lbl .k{font:600 .62rem/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.page-world .w-lbl .m{font:400 .76rem/1.35 var(--font);color:var(--fg-muted)}
.page-world .w-lbl .mono{font:700 .8rem/1.2 var(--mono)}
.page-world a.w-lbl:hover,.page-world a.w-lbl:focus-visible{border-color:var(--accent);color:var(--fg)}
.page-world .w-lbl.plain{background:none;border-color:transparent;padding:0}

/* chapter rail: where you are, how much is left, jump anywhere */
.page-world .w-rail{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:grid;gap:4px;margin:0;padding:0;list-style:none;z-index:3}
.page-world .w-rail button{display:flex;align-items:center;justify-content:flex-end;gap:10px;background:none;border:0;padding:6px 0;cursor:pointer;font:600 11px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--fg-faint)}
.page-world .w-rail button i{display:block;width:16px;height:2px;background:var(--line-strong);transition:width .3s,background-color .3s}
.page-world .w-rail button span{opacity:0;transition:opacity .25s;background:rgba(0,0,0,.85);padding:3px 5px;border-radius:4px}
.page-world .w-rail:hover button span,.page-world .w-rail button:focus-visible span{opacity:1}
.page-world .w-rail button[aria-current="step"]{color:var(--accent)}
.page-world .w-rail button[aria-current="step"] i{width:30px;background:var(--accent)}
.page-world .w-rail button:hover{color:var(--fg)}

/* ---------- phones: the stage sits under the header, the text scrolls beneath it ---------- */
@media (max-width:860px){
  .page-world.live > .wrap{grid-template-columns:minmax(0,1fr);gap:0}
  .page-world .w-pane{order:-1;top:var(--hdr,64px);height:40vh;height:40svh;z-index:5;background:#000;border-bottom:1px solid var(--line-strong);margin:0 -24px 8px}
  .page-world.live{padding-top:0}
  .page-world.live .w-act{margin-bottom:20vh;margin-bottom:20svh}
  .page-world.live .w-text{padding-bottom:18vh;padding-bottom:18svh}
  .page-world.live [id]{scroll-margin-top:calc(var(--hdr,64px) + 40svh + 16px)}
  .page-world .w-rail{top:auto;bottom:6px;right:8px;transform:none;grid-auto-flow:column;gap:2px}
  .page-world .w-rail button span{display:none}
  .page-world .w-rail button{padding:8px 2px}
  .page-world .w-lbl{max-width:180px;padding:5px 7px;font-size:.7rem;gap:2px}
  .page-world .w-lbl .k{font-size:.55rem}
  .page-world .w-lbl .m{display:none}
}
@media (max-width:600px){.page-world .w-pane{margin:0 -16px 8px}}

/* chapter headings snap in on the beat (faint until their object lands; off with reduced motion) */
.page-world.live .w-act .w-beat{opacity:.14}
.page-world.live .w-act.beat .w-beat{opacity:1}
@media (prefers-reduced-motion:reduce){.page-world.live .w-act .w-beat{opacity:1;animation:none}}
/* Platform: headings stay readable before their slab lands (muted, not faded out); the beat turns
   the heading white and draws a short mint rule under it */
.page-world[data-world="platform"].live .w-act .w-beat{opacity:1}
.page-world[data-world="platform"].live .w-act h2.w-beat{color:var(--fg-muted);transition:color .12s steps(2,end)}
.page-world[data-world="platform"].live .w-act.beat h2.w-beat{color:var(--fg)}
.page-world[data-world="platform"].live .w-act h2.w-beat::after{content:"";display:block;width:48px;height:2px;margin-top:12px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .2s steps(3,end)}
.page-world[data-world="platform"].live .w-act.beat h2.w-beat::after{transform:scaleX(1)}
/* narrow two-column stage (tablets): smaller labels so they stay beside the slabs */
@media (min-width:861px) and (max-width:1100px){
  .page-world[data-world="platform"] .w-lbl{padding:5px 7px;font-size:.72rem;gap:2px}
  .page-world[data-world="platform"] .w-lbl .k{font-size:.56rem}
}
@media (prefers-reduced-motion:reduce){.page-world[data-world="platform"].live .w-act h2.w-beat,.page-world[data-world="platform"].live .w-act h2.w-beat::after{transition:none}}
