/* Nexus page (v2). Own stylesheet, matched to css/home.css; the old pages keep css/site.css.
   No italic face here: the Nexus page must not download it. */
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url(../fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces.woff2) format('woff2'); }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0b0a09; --bg-2: #110f0d; --surface: #161311;
  --line: rgba(255,236,214,.08); --line-2: rgba(255,236,214,.14); --field-line: #706659;
  --text: #f5efe6; --text-2: #c9c0b4; --text-3: #968c80;
  --ember: #ff9d1a; --ember-2: #ff6a00; --ember-line: rgba(255,157,26,.38);
  --radius-lg: 22px; --maxw: 1180px;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', system-ui, sans-serif;
  --nav-h: 72px;
  --strike-run: 110px;
}
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { background: var(--bg); color: var(--text-2); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Focus and skip link */
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ember); color: #1a0e00; font-weight: 600; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Embers */
.embers { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.ember { position: absolute; bottom: -10px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px 1px rgba(255,157,26,.6); opacity: 0; animation: rise linear infinite; }
.ember.spark { background: #ffd08a; box-shadow: 0 0 12px 3px rgba(255,140,20,.75); }
@keyframes rise { 0% { transform: translate(0,0); opacity: 0; } 12% { opacity: .8; } 60% { transform: translate(calc(var(--drift, 24px) * .55), -60vh); } 85% { opacity: .25; } 100% { transform: translate(var(--drift, 24px), -100vh); opacity: 0; } }
.embers::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -120px; height: 260px; background: radial-gradient(60% 100% at 50% 100%, rgba(255,106,0,.16), rgba(255,106,0,.05) 55%, transparent 75%); animation: smolder 7s ease-in-out infinite alternate; }
@keyframes smolder { from { opacity: .7; } to { opacity: 1; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 2rem; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img { height: 38px; width: auto; }
.brand span { font-weight: 700; letter-spacing: .22em; font-size: .95rem; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; font-size: .95rem; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current] { color: var(--text); box-shadow: 0 2px 0 var(--ember); }
.menu-btn { display: none; font: inherit; font-size: .95rem; font-weight: 600; color: var(--text); background: none; border: 1px solid var(--line-2); border-radius: 9px; padding: .45rem .9rem; cursor: pointer; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: .98rem; font-family: var(--sans); border: 0; cursor: pointer; transition: background .2s, border-color .2s; }
.btn-primary { color: #1a0e00; background: var(--ember); }
.btn-primary:hover { background: #ffb04a; }
.btn-ghost { color: var(--text); background: transparent; border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ember-line); }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; border-radius: 9px; }
.link { color: var(--ember); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ember-line); text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-thickness .2s, text-decoration-color .2s; }
.link:hover, .link:focus-visible { text-decoration-color: var(--ember); text-decoration-thickness: 3px; }

/* Type */
h1, h2, h3 { color: var(--text); font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.12; }
h3 { font-size: 1.35rem; line-height: 1.25; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.26rem); max-width: 52ch; }
.dateline { font-size: .95rem; color: var(--text-3); }
.dateline strong { color: var(--ember); font-weight: 600; }
.copytag { display: inline-block; font: .78rem/1.4 var(--sans); font-style: normal; color: var(--text-3); border: 1px dashed var(--line-2); border-radius: 6px; padding: 2px 8px; vertical-align: middle; }

.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 { margin-bottom: 1rem; }
.section-sub { font-size: 1.1rem; max-width: 60ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .92rem; color: var(--text-3); position: relative; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .fl { color: var(--text); font-family: var(--serif); font-size: 1.05rem; margin-bottom: .8rem; font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: .5rem; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer .tag { max-width: 38ch; margin-top: .9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 24px; }


/* Nexus page */
.hero { padding: 72px 0 36px; }
.hero h1 { margin: .7rem 0 1.2rem; max-width: 18ch; }
.hero .copytag { margin-top: .4rem; }
.subnav { position: sticky; top: var(--nav-h); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 6px 26px; flex-wrap: wrap; padding: 14px 0; }
.subnav a { color: var(--text-2); font-weight: 600; font-size: .92rem; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="true"] { color: var(--ember); }
html { scroll-padding-top: calc(var(--nav-h) + 64px); }
.sheet { padding: 90px 0 30px; }
.plate { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .85rem; color: var(--text-3); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 9px 0; margin-bottom: 28px; }
.plate b { color: var(--ember); font-weight: 600; }
.sheet h2, .tools-sec h2 { max-width: 22ch; margin-bottom: 1rem; }
.sheet .intro { max-width: 62ch; margin-bottom: 30px; }
/* Pinned screens: callouts sit in the margins, leaders drawn in image pixels */
.pinned { margin: 0; }
.stage { position: relative; padding: 0 6.897%; }
.crop { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.crop img { width: 100%; }
.pins { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.stack { display: none; list-style: none; }
.notes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 26px 6.897% 0; }
.notes li, .stack p { display: grid; grid-template-columns: 28px 1fr; gap: 14px; font-size: 1rem; align-items: start; }
.n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--ember); color: #1a0e00; }
.also { margin: 34px 6.897% 0; border-top: 1px solid var(--line); padding-top: 22px; display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
.also h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--text-3); padding-top: 2px; letter-spacing: 0; }
.also ul { list-style: none; columns: 2; column-gap: 40px; }
.also li { break-inside: avoid; padding: 0 0 .7rem 18px; position: relative; color: var(--text); }
.also li::before { content: '\25C6'; position: absolute; left: 0; top: .1rem; color: var(--ember); font-size: .62rem; }
.standin { margin: 14px 6.897% 0; }
.tools-sec { padding: 110px 0 30px; }
.tools-sec .plate { margin-bottom: 28px; }
.tools-sec h2 { margin-bottom: 40px; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.spec > div { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); }
.spec > div:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.spec.four { grid-template-columns: repeat(4, 1fr); }
.spec.four > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
.spec.four > div:not(:nth-child(4n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.spec dt { color: var(--text); font-weight: 600; font-size: 1.05rem; margin-bottom: .35rem; display: flex; gap: .6rem; align-items: baseline; }
.spec dt::before { content: '\25C6'; color: var(--ember); font-size: .62rem; transform: translateY(-2px); }
.spec dd { font-size: .97rem; margin: 0; }
.close { padding: 110px 0 100px; border-top: 1px solid var(--line); margin-top: 90px; }
.close h2 { max-width: 20ch; margin-bottom: 1rem; }
.close p { max-width: 52ch; }
.close-cta { margin-top: 1.8rem; }
@media (max-width: 1000px) { .spec.four { grid-template-columns: 1fr 1fr; } .spec.four > div:nth-child(odd) { padding-left: 0; border-left: 0; } .spec.four > div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); } }
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav .wrap { gap: 1rem; flex-wrap: wrap; height: auto; min-height: var(--nav-h); }
  html.no-js .nav-links { order: 3; width: 100%; gap: 1.4rem; padding: 0 0 14px; }
  html:not(.no-js) .nav .wrap { height: var(--nav-h); }
  html:not(.no-js) .menu-btn { display: inline-block; }
  html:not(.no-js) .nav-links { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  html:not(.no-js) .nav-links.open { display: flex; }
  html:not(.no-js) .nav-links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  html:not(.no-js) .nav-links a[aria-current] { box-shadow: none; color: var(--ember); }
  .hero { padding: 48px 0 28px; }
  .subnav { position: static; }
  .subnav ul { flex-wrap: nowrap; overflow-x: auto; gap: 22px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }
  .subnav a { white-space: nowrap; }
  .notes { grid-template-columns: 1fr; gap: 18px; }
  .also { grid-template-columns: 1fr; gap: 10px; }
  .also ul { columns: 1; }
  .spec, .spec.four { grid-template-columns: 1fr; } .spec > div, .spec.four > div { padding: 20px 0 !important; border-left: 0 !important; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .sheet { padding-top: 70px; } .tools-sec { padding-top: 80px; } .close { padding: 80px 0; margin-top: 60px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .stage, .notes { display: none; }
  .stack { display: grid; gap: 22px; }
  .pc { position: relative; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
  .pc img { width: 100%; }
  .stack p { margin-top: 10px; }
  .also, .standin { margin-left: 0; margin-right: 0; }
  .cta-row .btn, .close-cta .btn { width: 100%; }
}
@media (max-width: 420px) { .brand span { letter-spacing: .14em; font-size: .85rem; } .brand img { height: 32px; } .nav .wrap { gap: .6rem; } }
@media (prefers-reduced-motion: reduce) { .ember { display: none; } .embers::after { animation: none; } .btn, .link { transition: none; } }

/* Footer social links (Facebook, LinkedIn) */
.footer .social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer .social a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text-2); }
.footer .social a:hover { color: var(--text); border-color: var(--ember-line); }
.footer .social svg { width: 18px; height: 18px; }

/* "Watch the tour" link, shown once the overview video is live (Video Guides in build.py) */
.watch-row { margin-top: 1.1rem; }
.watch-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 600; text-decoration: none; }
.watch-link .play { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ember-line); color: var(--ember); background: rgba(255,157,26,.08); transition: background .2s, border-color .2s; }
.watch-link .play svg { width: 14px; height: 14px; margin-left: 2px; }
.watch-link:hover { color: var(--ember); }
.watch-link:hover .play { background: rgba(255,157,26,.18); border-color: var(--ember); }
.watch-link:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 6px; }

/* Join the beta after the four parts (2026-11-09) */
.mid-cta-sec { padding: 8px 0 56px; }
.mid-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.mid-cta-sec .mid-cta { margin: 0 6.897%; }
@media (max-width: 640px) { .mid-cta-sec .mid-cta { margin: 0; } }
