/* thanford.com content in 星际天宫 style, shared by the layered and three.js builds. Tokens come from kit/thanford.css;
   every element here is one of the kit's named candidates, noted beside it.
   Bright scene, dark type (Hubert 2026-10-03 19:12): copy sits in dark ink on frosted marble panels, so it reads the same
   over the night sky, the moon, or the white cloud sea. Gold stays in the belts, the rules, and the primary buttons. */
:root {
  --ink: color-mix(in oklab, var(--blue) 86%, black);
  --ink-2: color-mix(in oklab, var(--blue) 72%, var(--marble));
  --gold-ink: color-mix(in oklab, var(--yellow) 58%, black);
  --paper: color-mix(in oklab, var(--marble) 80%, transparent);
  --paper-strong: color-mix(in oklab, var(--marble) 90%, transparent);
  --rule: color-mix(in oklab, var(--blue) 18%, transparent);
}
body { font: 17px/1.62 var(--text); color: var(--ink); background: var(--ground); overflow-x: hidden; }
main { position: relative; z-index: 2; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Header: Veil Bar, in marble. Nav: Gold Current. */
html { scroll-padding-top: 62px; }  /* nav links land a scene below the sticky header; shared/autoscroll.js does the rest */
.hd { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 12px clamp(16px, 4vw, 56px);
  background: url("../assets/marble.webp") 0 0 / 512px 512px; box-shadow: 0 1px 0 var(--rule), 0 10px 24px -18px color-mix(in oklab, var(--blue) 60%, transparent); }
.hd-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.hd-brand img { border-radius: 50%; }
.hd-brand b { font: 600 14px/1 var(--caps); letter-spacing: .24em; color: var(--blue); }
.hd-nav { margin-left: auto; display: flex; gap: clamp(12px, 2.2vw, 28px); font: 500 15px/1 var(--text); }
.hd-nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.hd-nav a:hover, .hd-nav a[aria-current] { color: var(--blue); background: repeating-linear-gradient(to bottom, var(--yellow) 0 1px, transparent 1px 3px) left bottom / 100% 4px no-repeat; }
@media (max-width: 1000px) { .hd-nav { display: none; } .hd .btn-sm { margin-left: auto; } }  /* two header buttons need the room (was 760px) */
.hd .btn-sm + .btn-sm { margin-left: 0; }  /* two header buttons (Open GaRyu, Get Glyphew) sit together */
@media (max-width: 480px) { .hd { gap: 10px; } .hd-brand b { display: none; } }  /* the round mark alone, so both buttons fit */

/* Buttons: Gold Ingot (primary) and Hairline Ghost in ink (secondary). Refactoring UI rule 06: one primary per view. */
.btn { display: inline-block; padding: 15px 28px; font: 600 13px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: box-shadow .4s var(--ease), background .3s, color .3s; }
.btn-gold { background: var(--yellow); color: var(--blue); box-shadow: 0 0 0 1px var(--gold-ink), 0 6px 18px -8px var(--gold-ink); }
.btn-gold:hover { box-shadow: 0 0 0 1px var(--gold-ink), 0 0 22px 2px var(--glow-gold); }
.btn-ghost { padding: 14px 26px; border: 1px solid var(--blue); color: var(--blue); }
.btn-ghost:hover { background: color-mix(in oklab, var(--blue) 8%, transparent); }
.btn-sm { padding: 10px 16px; font-size: 11px; letter-spacing: .16em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-copy .lead { max-width: none; }
.hero-copy .actions { gap: 10px; }
.hero-copy .actions .btn { padding-left: 20px; padding-right: 20px; }

/* Panels: Veil Tablet in marble. Refactoring UI rules 16 and 19: a gold accent on top, a background step, no hairline box. */
/* Panels are polished 和田玉 (Hubert 2026-10-05 11:42): a celadon-milk body, a soft glow from inside (translucency), and a
   broad waxy highlight; the gold belt still sits on top. */
.panel { background:
    repeating-linear-gradient(to bottom, var(--yellow) 0 1px, transparent 1px 3px) top / 100% 5px no-repeat,
    radial-gradient(120% 90% at 30% 15%, color-mix(in oklab, white 42%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in oklab, var(--jade) 6%, transparent), transparent 45%, color-mix(in oklab, var(--jade) 16%, transparent)),
    url("../assets/marble.webp") 0 0 / 512px 512px;
  box-shadow: inset 0 0 28px color-mix(in oklab, white 55%, transparent), inset 0 -10px 24px -12px color-mix(in oklab, var(--jade) 22%, transparent),
    0 1px 0 color-mix(in oklab, white 70%, transparent) inset, 0 20px 44px -28px color-mix(in oklab, var(--blue) 70%, transparent); }

/* Eyebrow Caps, H1 Marble Seam, H2 Left Belt, Serif Lead, all in ink. */
.eyebrow { margin: 0 0 14px; font: 600 12px/1.4 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-ink); }
.h1 { margin: 0; font: 600 clamp(36px, 6vw, 80px)/1.04 var(--display); color: var(--ink); letter-spacing: .005em; }
.h1::after { content: ""; display: block; width: min(320px, 62%); height: 5px; margin-top: 22px;
  background: repeating-linear-gradient(to bottom, var(--yellow) 0 1px, transparent 1px 2px);
  -webkit-mask: linear-gradient(90deg, black 60%, transparent); mask: linear-gradient(90deg, black 60%, transparent); }
.lead { margin: 22px 0 0; max-width: 38ch; font: 500 clamp(19px, 1.9vw, 22px)/1.5 var(--display); color: var(--ink-2); }
.h2 { margin: 0; display: flex; align-items: center; gap: 16px; font: 600 clamp(28px, 4vw, 46px)/1.12 var(--display); color: var(--ink); }
.h2::before { content: ""; flex: none; width: 44px; height: 5px; background: repeating-linear-gradient(to bottom, var(--yellow) 0 1px, transparent 1px 2px); }
.blurb { margin: 12px 0 0; max-width: 56ch; color: var(--ink-2); }

/* Hero: the copy on a marble panel at the left, the Glyphew logo loop at the right; stacked on phones. */
.hero { display: flex; align-items: center; min-height: calc(100vh - 62px); padding: clamp(32px, 6vh, 80px) clamp(16px, 5vw, 80px); overflow-x: clip; }  /* the header takes the rest of the first screen */
.hero-copy { max-width: 640px; }
/* The floating Glyphew orb (as on thanford.com): the round logo loop drifting over the page; it scrolls to the product. */
#glyphew-orb { position: fixed; left: 0; top: 0; z-index: 9; width: 240px; height: 240px; cursor: pointer; will-change: transform; }
#glyphew-orb canvas, #glyphew-orb img { display: block; width: 100%; height: 100%; }
@media (max-width: 600px) { #glyphew-orb { width: 150px; height: 150px; } }
/* The floating GaRyu orb: the GaRyu app's own orb (garyu-dragon-loop.js, the dragon3d model), the Glyphew orb's size.
   As in the app (GaRyu mock.css .orb), the loop's canvas is 2.8 orbs wide so the dragon flies large around a logo that
   keeps the orb's size; only the orb itself takes clicks, and it links to garyu.app. */
#garyu-orb { position: fixed; left: 0; top: 0; z-index: 9; width: 240px; height: 240px; cursor: pointer; will-change: transform; }
#garyu-orb canvas { position: absolute; width: 280%; height: 280%; left: -90%; top: -90%; display: block; pointer-events: none; }
/* The still logo while the loop loads, drawn at the size the loop draws it: the disc is 2*1.15*0.298 = 0.68 scene units
   across, the 672px canvas (2.8 orbs) shows 2*9.4*tan(15deg) = 5.04, so the disc is 0.68/5.04*2.8 = 38.0% of the orb.
   At the orb's full size it looked big at first and then shrank (Hubert 2026-11-18). */
#garyu-orb .orb-poster { position: absolute; left: 31%; top: 31%; width: 38%; height: 38%; border-radius: 50%; }
#garyu-orb.dragon-ready .orb-poster { display: none; }
@media (max-width: 600px) { #garyu-orb { width: 150px; height: 150px; } }
/* Refactoring UI rule 05: no labels where the data speaks for itself. */
.facts-strip { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 34px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--rule); }
.facts-strip li { display: flex; align-items: baseline; gap: 10px; font: 15px/1.4 var(--text); color: var(--ink); }
.facts-strip b { font: italic 600 20px/1 var(--display); color: var(--gold-ink); }

/* Sections (Hubert 2026-10-05 22:33): each section is one 天宫 picture that scrolls with the page. Its plate (sky and
   cloud, the buildings lifted out) covers the section, so it can crop with the screen; its buildings are their own layer,
   always shown whole and anchored at the bottom centre, so they hold their place at any width. The text sits on one
   和田玉 slab, alternating sides so the buildings stay in view. */
.hero, .band { position: relative; isolation: isolate; min-height: 100vh; }
.band { display: flex; align-items: center; padding: clamp(64px, 12vh, 140px) clamp(16px, 5vw, 80px); scroll-margin-top: 0; }
.sec-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: url(../assets/depth/sky.webp) 0 0 / 768px repeat, var(--ground); }  /* paints before any script: the first screen's largest picture */
/* Depth layers (shared/depth.js, Hubert 2026-10-06 13:54): galaxy, moon, far buildings, far cloud, the main building,
   near cloud. Galaxy and cloud tile left to right without a seam; depth.js drifts them. */
.dl-galaxy { position: absolute; inset: 0; background: var(--ground) 0 0 / 768px repeat; }  /* the star tile (tools/site.py sky), drifting */
.dl-cloud { position: absolute; left: 0; right: 0; background-repeat: repeat-x; background-size: auto 100%; }
.dl-cloud.far { top: 58%; bottom: 0; }
.dl-cloud.near { top: 80%; bottom: -1%; }
.dl-bld { position: absolute; }
@media (max-width: 760px) { .hero, .band { padding-bottom: min(96vw, 70vh); } }  /* room for the building below the text */
.dl-bld img { display: block; width: 100%; height: 100%; }
.dl-bld.far { filter: saturate(.92) brightness(.92); }
.dl-bld i { position: absolute; inset: 0; -webkit-mask: var(--mask) 0 0 / 100% 100% no-repeat; mask: var(--mask) 0 0 / 100% 100% no-repeat; pointer-events: none; }
/* Light flows along the belts painted on the building. */
.dl-bld i.belt { background: linear-gradient(105deg, transparent 40%, color-mix(in oklab, var(--marble) 70%, var(--yellow)) 50%, transparent 60%) 0 0 / 320% 100%;
  mix-blend-mode: screen; animation: belt-flow 7s linear infinite; }
@keyframes belt-flow { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* Waterfalls run: bright streaks fall through each waterfall's own shape. */
.dl-bld i.fall { background: repeating-linear-gradient(to bottom, transparent 0 9px, color-mix(in oklab, white 70%, transparent) 9px 12px, transparent 12px 20px) 0 0 / 100% 20px;
  mix-blend-mode: screen; opacity: .85; animation: fall .7s linear infinite; }
.dl-bld:nth-of-type(odd) i.fall { animation-duration: .85s; }
@keyframes fall { to { background-position: 0 20px; } }
@media (prefers-reduced-motion: reduce) { .dl-bld i { animation: none; } }
.slab { width: 100%; max-width: 760px; padding: clamp(24px, 3.4vw, 48px); }
main > section:nth-child(even) .slab { margin-left: auto; }
.band-head { margin-bottom: 26px; }

/* Product: Live Dot badge, Belt Ticks list, Keyboard Keys for combos. */
.product { display: grid; grid-template-columns: 1fr; gap: 28px; }
.live { display: inline-flex; align-items: center; gap: 9px; margin: 0; font: 500 13px/1 var(--text); color: var(--ink-2); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px var(--gold-ink); animation: tg-breathe 4s var(--ease) infinite; }
.product-name { margin: 16px 0 0; font: 600 clamp(36px, 4vw, 52px)/1 var(--display); color: var(--ink); }
.tagline { margin: 6px 0 18px; font: italic 500 22px/1.3 var(--display); color: var(--gold-ink); }
.belts { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 15px; color: var(--ink-2); }
.belts li { padding-left: 28px; position: relative; }
.belts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 3px; border-block: 1px solid var(--gold-ink); }
.belts b { color: var(--ink); font-weight: 600; }

/* Principles: three Veil Tablets with gold serif numbers. */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 22px; }
.rule { padding: 16px 0 0; border-top: 1px solid var(--rule); }
.rule-n { font: italic 600 26px/1 var(--display); color: var(--gold-ink); }
.rule h3 { margin: 14px 0 10px; font: 600 24px/1.2 var(--display); color: var(--ink); }
.rule p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Story: Timeline Rail on a marble panel. */
.timeline { margin: 0; padding: 4px 0 4px 34px; list-style: none; display: grid; gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; border-left: 1px solid var(--gold-ink); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--gold-ink); background: var(--marble); }
.timeline li:last-child::before { background: var(--yellow); }
.year { font: 600 12px/1 var(--caps); letter-spacing: .24em; color: var(--gold-ink); }
.timeline h3 { margin: 6px 0 6px; font: 600 24px/1.2 var(--display); color: var(--ink); }
.timeline p { margin: 0; color: var(--ink-2); max-width: 60ch; }

/* About: prose panel and Spec Sheet. */
.about { display: grid; grid-template-columns: 1fr; gap: 22px; }
.prose { padding: 0; }
.prose p { margin: 0 0 16px; font: 500 19px/1.55 var(--display); color: var(--ink); }
.prose p:last-child { margin: 0; color: var(--gold-ink); font-style: italic; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; padding: 10px 0; }
.spec th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 11px 16px; border-bottom: 1px dotted var(--rule); white-space: nowrap; vertical-align: top; }
.spec td { padding: 11px 16px; border-bottom: 1px dotted var(--rule); color: var(--ink); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.link { color: var(--ink); text-decoration: none; background: linear-gradient(var(--gold-ink), var(--gold-ink)) left bottom / 100% 1px no-repeat; transition: color .3s; }
.link:hover { color: var(--gold-ink); }

/* Contact: three doors with Arrow Caps. */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.door { display: flex; flex-direction: column; gap: 6px; padding: 18px 0 0; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 17px; transition: transform .4s var(--ease); }
.door small { font: 600 11px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.door span { color: var(--gold-ink); transition: transform .3s var(--ease); }
.door:hover span { transform: translateX(6px); }

/* Footer: Three Columns under a Meander Hem, on solid marble. */
.ft { position: relative; z-index: 2; margin-top: 40px; padding: 0 clamp(16px, 4vw, 56px) 36px; background: url("../assets/marble.webp") 0 0 / 512px 512px; }
.ft::before { content: ""; display: block; height: 12px; margin-bottom: 40px; background: var(--meander) center / 12px 12px repeat-x; opacity: .9; filter: brightness(.6); }
.ft-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.ft-grid p { margin: 14px 0 0; max-width: 32ch; font-size: 14px; color: var(--ink-2); }
.ft h4 { margin: 0 0 12px; font: 600 11px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.ft-grid > div > a:not(.hd-brand) { display: block; margin: 0 0 8px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.ft-grid > div > a:not(.hd-brand):hover { color: var(--ink); }
.ft-bottom { max-width: 1200px; margin: 36px auto 0; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-grid > div:first-child { grid-column: 1 / -1; } }

/* Glyphew's own pages (shared/page.src.html): the Glyphew page, support, privacy, terms. A hero band with its own
   building over the moving depth layers, then the text on 和田玉 slabs; legal pages keep a contents list in view. */
.gpage { background: var(--ground) url(../assets/depth/sky.webp) 0 0 / 768px repeat fixed; }
.gpage::before { content: ""; position: fixed; inset: auto 0 0; height: 40vh; z-index: -1; pointer-events: none;
  background: url(../assets/depth/cloud-far.webp) 0 0 / auto 100% repeat-x; }
.gp-hero { min-height: min(78vh, 760px); }
.gp-head { max-width: 680px; }
.gp-head .h1 em, .gp-main .h2 em { font-style: italic; color: var(--gold-ink); }
.gp-meta { margin: 18px 0 0; font: 500 13px/1.5 var(--text); letter-spacing: .06em; color: var(--gold-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; font: 500 12px/1.4 var(--text); letter-spacing: .08em; }
.crumbs a, .crumbs span { color: var(--ink-2); text-decoration: none; }
.crumbs a::after { content: "›"; margin-left: 6px; color: var(--gold-ink); }
.crumbs a:hover { color: var(--ink); }
.gp-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 80px) clamp(72px, 16vh, 180px); }
.gpage-legal .gp-body { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
.gp-toc { position: sticky; top: 84px; padding: 22px 22px 18px; }
.gp-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.gp-toc li { counter-increment: toc; }
.gp-toc a { display: flex; gap: 10px; padding: 6px 0; font: 14px/1.35 var(--text); color: var(--ink-2); text-decoration: none; }
.gp-toc a::before { content: counter(toc, decimal-leading-zero); font: italic 600 14px/1.35 var(--display); color: var(--gold-ink); }
.gp-toc a:hover { color: var(--ink); }
.gp-main { max-width: none; color: var(--ink); }
.gp-main section + section, .gp-block + .gp-block { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--rule); }
.gp-main .h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 14px; scroll-margin-top: 84px; }
.gp-main .h2 .sec-n { font: italic 600 .8em/1 var(--display); color: var(--gold-ink); margin-right: -4px; }
.gp-main h3 { margin: 24px 0 8px; font: 600 21px/1.25 var(--display); color: var(--ink); }
.gp-main p, .gp-main li, .gp-main td, .gp-main th, .gp-main dd { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.gp-main ul, .gp-main ol:not(.timeline) { padding-left: 1.3em; }
.gp-main a { color: var(--gold-ink); }
.gp-main code { font: .9em var(--mono, "JetBrains Mono", monospace); }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.legal-table th { font: 600 12px/1.4 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.no-collect { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 20px; }
.no-collect li::before { content: "✕"; margin-right: 10px; color: var(--gold-ink); }
.legal-contact { font-style: normal; padding: 16px 20px; border-left: 2px solid var(--gold-ink); background: var(--paper); }
.gp-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.gp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; margin: 30px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); }
.gp-facts dt { font: 600 11px/1.4 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.gp-facts dd { margin: 4px 0 0; font: 500 17px/1.4 var(--display); color: var(--ink); }
.gp-log .year { font: 600 12px/1.4 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
@media (max-width: 900px) {
  .gpage-legal .gp-body { grid-template-columns: minmax(0, 1fr); }
  .gp-toc { position: static; }
  .gp-split { grid-template-columns: minmax(0, 1fr); }
}
/* The support page's combo demo keeps Glyphew's own dark panel, like the product visual on the home page. */
.combo-demo { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 24px 36px; margin: 28px 0 8px;
  border: 1px solid var(--gw-border); border-radius: var(--gw-radius); background: var(--gw-surface); }
.combo-stage { height: 200px; display: grid; place-items: center; }
.combo-stage .hub { transform: scale(1.55); }
.combo-name { font-size: 22px; font-weight: 600; color: var(--gw-text); letter-spacing: -0.01em; min-height: 1em; }
.combo-cap { font-family: var(--gw-font-mono); font-size: 13px; letter-spacing: .14em; color: var(--gw-accent); text-transform: uppercase; }
.combo-ref { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gp-main .combo-ref li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 16px;
  border: 1px solid var(--rule); border-radius: 10px; background: color-mix(in oklab, var(--paper) 70%, transparent); color: var(--ink); font-size: 15px; }
.combo-ref .path { font-family: "JetBrains Mono", monospace; font-size: 16px; color: var(--gold-ink); white-space: nowrap; }
@media (max-width: 640px) { .combo-ref { grid-template-columns: 1fr; } }
.ft-credit, .ft-credit a { font-size: 12px; color: inherit; opacity: .75; }  /* the night sky photo's required credit */
