/* Silicon Bird. Palette and wordmark rules: brand/palette.md */
:root {
  --night: #07061a; --indigo: #120f3a; --violet: #2a1f66; --plum: #1b1440;
  --ink: #fff7ec; --soft: #cfc6ea; --gold: #ffd08a; --rose: #ff9fb0; --ice: #a9dcff;
  --line: rgba(207, 198, 234, .16); --line2: rgba(207, 198, 234, .3);
  --brand: linear-gradient(95deg, var(--gold), var(--rose) 50%, var(--ice));
  --serif: "Instrument Serif", "Noto Serif SC", "Songti SC", serif;
  --sans: "Geist", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 56px); --step: clamp(88px, 12vw, 168px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration-color: var(--line2); text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
figure { margin: 0; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
i.grad, .mark i { font-style: italic; padding-right: .08em; }
:lang(zh-Hans) i.grad { font-style: normal; padding-right: 0; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px var(--gutter); }
.hero .top { position: absolute; inset: 0 0 auto 0; z-index: 3; }
.mark { font-family: "Instrument Serif", serif; font-size: 32px; line-height: 1; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.mark i { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 15px; }
.top nav a { text-decoration: none; color: var(--soft); white-space: nowrap; }
.top nav a:hover { color: var(--ink); }
.top nav a.lang { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.top nav a.pill { color: var(--plum); background: var(--ink); padding: 11px 20px; border-radius: 999px; font-weight: 600; }
.top nav a.pill:hover { background: var(--gold); }
.btn { display: inline-block; text-decoration: none; padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.btn.a { background: var(--ink); color: var(--plum); }
.btn.a:hover { background: var(--gold); }
.btn.b { border: 1px solid rgba(255, 247, 236, .55); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.b:hover { border-color: var(--ink); }

/* hero */
.hero { position: relative; height: 100svh; min-height: 680px; max-height: 1100px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(130% 78% at 50% 112%, #ffb27a 0%, #e0809a 22%, rgba(120, 78, 180, .8) 46%, rgba(40, 30, 110, .35) 68%, rgba(20, 16, 60, 0) 86%),
    radial-gradient(60% 50% at 82% 8%, rgba(70, 90, 220, .35), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--indigo) 45%, var(--violet) 100%); }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>"); }
.veil { position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 6, 26, 0) 0%, rgba(7, 6, 26, .28) 100%); }
.copy { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 7vh, 84px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; }
h1 { margin: 0; flex: 1 1 560px; font-family: var(--serif); font-weight: 400; font-size: clamp(60px, 10.5vw, 172px); line-height: .86; letter-spacing: -.028em; text-shadow: 0 2px 40px rgba(7, 6, 26, .45); }
:lang(zh-Hans) h1 { font-size: clamp(46px, 7.6vw, 124px); line-height: 1.08; letter-spacing: 0; font-weight: 500; }
.side { flex: 0 1 380px; }
.side p { margin: 0 0 22px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: #ece4ff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { position: absolute; z-index: 2; left: 41.5%; top: 25%; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
.tag b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 46px); line-height: 1; }
.tag span { font-size: 13px; line-height: 1.4; color: var(--soft); display: block; margin-top: 6px; }
.tag::before { content: ""; position: absolute; left: -18px; top: -34px; bottom: -44px; width: 1px; background: linear-gradient(180deg, var(--gold), var(--ice)); }

/* sections */
.band { padding-top: var(--step); }
h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 92px); line-height: .94; letter-spacing: -.022em; text-wrap: balance; }
:lang(zh-Hans) h2 { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.16; letter-spacing: 0; font-weight: 500; }
.head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.head p { margin: 0; color: var(--soft); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; max-width: 30em; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pillar { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 2.8vw, 38px); min-height: 380px; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); }
.pillar::before { content: ""; position: absolute; inset: auto -20% -45% -20%; height: 75%; background: radial-gradient(50% 60% at 50% 60%, var(--glow), transparent 70%); opacity: .34; pointer-events: none; }
.pillar:nth-child(1) { --glow: var(--gold); } .pillar:nth-child(2) { --glow: var(--rose); } .pillar:nth-child(3) { --glow: var(--ice); }
.pillar h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.6vw, 68px); line-height: 1; letter-spacing: -.02em; }
:lang(zh-Hans) .pillar h3 { font-size: clamp(36px, 3.6vw, 52px); font-weight: 500; }
.pillar p { margin: 0; color: var(--soft); max-width: 30em; position: relative; }
.pillar span { margin-top: auto; padding-top: 28px; font-size: 15px; color: var(--glow); position: relative; }

/* model */
.model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 4px 12px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 44px; line-height: .9; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; grid-row: span 2; }
.steps h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; }
:lang(zh-Hans) .steps h3 { font-size: 26px; font-weight: 500; line-height: 1.3; }
.steps p { margin: 0; color: var(--soft); }
.plot { border: 1px solid var(--line); border-radius: 28px; padding: clamp(16px, 2.4vw, 30px); background: linear-gradient(180deg, rgba(42, 31, 102, .55), rgba(18, 15, 58, .5)); }
.plot svg { display: block; width: 100%; height: auto; }
.plot figcaption { margin-top: 12px; font-size: 13px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 6px 20px; }
.plot figcaption i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 7px; }

/* research */
.topics { list-style: none; margin: 0; padding: 0; }
.topics li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px clamp(24px, 6vw, 96px); padding: 28px 0; border-top: 1px solid var(--line); }
.topics li:last-child { border-bottom: 1px solid var(--line); }
.topics h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.1vw, 44px); line-height: 1.04; letter-spacing: -.01em; }
:lang(zh-Hans) .topics h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; line-height: 1.3; }
.topics p { margin: 0; color: var(--soft); max-width: 34em; }
.topics li:hover h3 { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.after { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; color: var(--soft); }

/* who + facts */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.who div { padding-top: 22px; border-top: 2px solid var(--gold); }
.who div:nth-child(2) { border-color: var(--rose); } .who div:nth-child(3) { border-color: var(--ice); }
.who h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; }
:lang(zh-Hans) .who h3 { font-size: 26px; font-weight: 500; line-height: 1.3; }
.who p { margin: 0; color: var(--soft); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 7vw, 100px); padding-top: 36px; border-top: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: .9; letter-spacing: -.02em; }
.facts span { display: block; margin-top: 12px; color: var(--soft); font-size: 15px; max-width: 16em; }

/* cta: the sunset returns */
.cta { margin-top: var(--step); padding: clamp(88px, 12vw, 170px) var(--gutter) clamp(72px, 9vw, 130px); text-align: center;
  background: radial-gradient(120% 95% at 50% 118%, #ffb27a 0%, #e0809a 24%, rgba(120, 78, 180, .85) 50%, rgba(40, 30, 110, .3) 74%, rgba(7, 6, 26, 0) 92%); }
.cta h2 { margin-inline: auto; max-width: 12em; font-size: clamp(48px, 7.6vw, 124px); line-height: .9; }
:lang(zh-Hans) .cta h2 { font-size: clamp(38px, 5.6vw, 84px); line-height: 1.14; }
.cta p { margin: 26px auto 0; max-width: 34em; color: #f3ebff; }
.cta .btns { justify-content: center; margin-top: 34px; }

footer { background: #e98f8f; background: linear-gradient(180deg, #f2a583, #ffb27a); color: var(--plum); padding: 28px 0 40px; font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px; }
footer address { font-style: normal; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { text-decoration-color: rgba(27, 20, 64, .4); }
footer .fine { margin: 20px 0 0; max-width: 80ch; font-size: 13px; }

/* legal pages */
.inner { border-bottom: 1px solid var(--line); }
.doc { padding-block: clamp(48px, 7vw, 96px) var(--step); max-width: 860px; }
.doc h1 { flex: none; font-size: clamp(48px, 7vw, 96px); line-height: .95; margin: 0 0 .25em; text-shadow: none; }
.doc .date { color: var(--soft); margin: 0 0 2.5em; }
.doc h2 { font-size: 30px; line-height: 1.1; margin: 1.8em 0 .45em; letter-spacing: -.01em; }
.doc p, .doc li { color: #e2daf5; max-width: 66ch; }
.docfoot { margin-top: 0; }

@media (max-width: 900px) {
  .head, .model, .topics li { grid-template-columns: 1fr; }
  .pillars, .who { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav a.opt { display: none; }
  .tag { left: 44%; top: 22%; }
}

/* capability bands with particle scenes */
.capgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.cap.flip .captext { order: 2; }
.captext p { margin: 22px 0 0; color: var(--soft); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; max-width: 30em; }
.captext ul { list-style: none; margin: 28px 0 0; padding: 0; }
.captext li { padding: 14px 0 14px 26px; border-top: 1px solid var(--line); position: relative; }
.captext li:last-child { border-bottom: 1px solid var(--line); }
.captext li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 10px; height: 2px; background: var(--brand); }
.fx { position: relative; }
.fx canvas { display: block; width: 100%; aspect-ratio: 1.12 / 1; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 50% 110%, rgba(120, 78, 180, .38), rgba(18, 15, 58, .55) 55%, rgba(7, 6, 26, .2)); }
.fx figcaption { margin-top: 14px; font-size: 14px; color: var(--soft); max-width: 36em; }

/* case study */
.case { position: relative; overflow: hidden; border: 1px solid var(--line2); border-radius: 32px; padding: clamp(28px, 5vw, 72px);
  background: radial-gradient(80% 90% at 100% 0%, rgba(169, 220, 255, .13), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(255, 178, 122, .16), transparent 60%), linear-gradient(180deg, rgba(42, 31, 102, .6), rgba(18, 15, 58, .6)); }
.case .kicker { margin: 0 0 18px; font-size: 15px; color: var(--gold); }
.case h2 { max-width: 14em; }
.case .lead { margin: 24px 0 0; max-width: 40em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: #e6defa; }
.fracs { display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(20px, 4vw, 56px); margin-top: clamp(32px, 5vw, 60px); }
.frac { display: grid; justify-items: center; text-align: center; min-width: 220px; }
.frac .num { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; padding: 0 28px 8px; border-bottom: 2px solid var(--ink); }
.frac .den { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 62px); line-height: 1.1; padding-top: 8px; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.frac small { margin-top: 10px; max-width: 20em; font-size: 14px; color: var(--soft); }
.vs { font-family: var(--serif); font-size: clamp(48px, 6vw, 88px); line-height: 1; color: var(--rose); }
.eq { margin: 28px 0 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; }
.cstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 52px); padding-top: 28px; border-top: 1px solid var(--line); }
.cstats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 40px); line-height: 1; overflow-wrap: anywhere; }
.cstats span { display: block; margin-top: 10px; font-size: 14px; color: var(--soft); }
.case .btns { margin-top: 36px; }
.case .note { margin: 22px 0 0; font-size: 13px; color: var(--soft); }
@media (max-width: 900px) {
  .capgrid { grid-template-columns: 1fr; }
  .cap.flip .captext { order: 0; }
  .cstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* hero scenes */
#live { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.scenes { position: absolute; z-index: 3; left: var(--gutter); top: 96px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.scenes button { font: inherit; font-size: 13px; color: rgba(207, 198, 234, .55); background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0 5px; cursor: pointer; transition: color .5s ease, border-color .5s ease; }
.scenes button:hover { color: var(--ink); }
.scenes button.on { color: var(--ink); border-bottom-color: var(--gold); }
/* case study page */
.casepage { padding-block: clamp(36px, 5vw, 72px) var(--step); }
.case h1 { flex: none; max-width: 14em; font-size: clamp(42px, 6vw, 92px); line-height: .94; letter-spacing: -.022em; text-shadow: none; }
:lang(zh-Hans) .case h1 { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.16; letter-spacing: 0; }
@media (max-width: 700px) { .scenes { top: 84px; gap: 2px 14px; } .scenes button { font-size: 12px; } }

/* cross-cutting stack and coverage lists */
.who.trio div { border-top-color: var(--line2); }
.lists { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.lists div { padding-top: 22px; border-top: 1px solid var(--line2); }
.lists h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
:lang(zh-Hans) .lists h3 { font-size: 26px; font-weight: 500; line-height: 1.3; }
.lists p { margin: 0; color: #e2daf5; line-height: 1.6; }
/* the AI band: a curve that bends upward into the closing sunset */
.ai { padding-bottom: 0; }
.aiwrap { position: relative; }
.ai canvas { display: block; width: 100%; aspect-ratio: 2.05 / 1; min-height: 520px; }
.aitext { position: absolute; left: var(--gutter); top: 0; max-width: min(34em, 56%); }
.aitext p { margin: 24px 0 0; color: #e2daf5; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; }
.aitext ul { list-style: none; margin: 26px 0 0; padding: 0; }
.aitext li { padding: 12px 0 12px 26px; border-top: 1px solid var(--line); position: relative; }
.aitext li::before { content: ""; position: absolute; left: 2px; top: 1.35em; width: 10px; height: 2px; background: var(--brand); }
.ai + .cta { margin-top: 0; }
@media (max-width: 900px) {
  .lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aitext { position: static; max-width: none; }
  .aiwrap { display: flex; flex-direction: column; }
  .ai canvas { order: 2; min-height: 0; aspect-ratio: 1.3 / 1; margin-top: 8px; }
}

/* ---------- monochrome theme (default). Add ?theme=dusk to any URL to compare with the colour version. ---------- */
html[data-theme="mono"] { --night: #000; --indigo: #070707; --violet: #111; --plum: #000; --ink: #fff; --soft: #a3a3a3; --gold: #fff; --rose: #8f8f8f; --ice: #cfcfcf;
  --line: rgba(255, 255, 255, .14); --line2: rgba(255, 255, 255, .3); --brand: linear-gradient(#fff, #fff); background: #000; }
html[data-theme="mono"] .hero { background: radial-gradient(130% 78% at 50% 112%, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .12) 30%, rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, #000 0%, #050505 60%, #0c0c0c 100%); }
html[data-theme="mono"] .veil { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .3) 100%); }
html[data-theme="mono"] h1 { text-shadow: 0 2px 40px rgba(0, 0, 0, .6); }
html[data-theme="mono"] .side p, html[data-theme="mono"] .cta p, html[data-theme="mono"] .doc p, html[data-theme="mono"] .doc li,
html[data-theme="mono"] .lists p, html[data-theme="mono"] .aitext p, html[data-theme="mono"] .case .lead { color: #d6d6d6; }
html[data-theme="mono"] .btn.a:hover, html[data-theme="mono"] .top nav a.pill:hover { background: #d4d4d4; }
html[data-theme="mono"] .fx canvas { background: radial-gradient(90% 80% at 50% 110%, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02) 55%, rgba(255, 255, 255, 0)); }
html[data-theme="mono"] .case { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); }
html[data-theme="mono"] .cta { background: radial-gradient(120% 95% at 50% 122%, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .34) 22%, rgba(255, 255, 255, .10) 46%, rgba(255, 255, 255, 0) 76%); }
html[data-theme="mono"] footer { background: #fff; color: #000; }
html[data-theme="mono"] footer a { text-decoration-color: rgba(0, 0, 0, .4); }
html[data-theme="mono"] .grad, html[data-theme="mono"] .mark i, html[data-theme="mono"] .lists h3, html[data-theme="mono"] .frac .den { background: none; color: #fff; }
html[data-theme="mono"] .captext li::before, html[data-theme="mono"] .aitext li::before { background: #fff; }

/* ---------- plain theme (default): unbleached paper, warm charcoal, pale market red and green. ?theme=mono and ?theme=dusk show the others. ---------- */
html[data-theme="muji"] { --night: #f2efe8; --indigo: #ece8df; --violet: #e4dfd3; --plum: #f2efe8; --ink: #3b3835; --soft: #6e6962; --gold: #7e9c86; --rose: #c08a82; --ice: #7c8a96;
  --line: rgba(59, 56, 53, .13); --line2: rgba(59, 56, 53, .26); --brand: linear-gradient(#3b3835, #3b3835); background: #f2efe8; }
html[data-theme="muji"] .hero { background: linear-gradient(180deg, #f2efe8 0%, #f2efe8 62%, #eae6dc 100%); }
html[data-theme="muji"] #sky, html[data-theme="muji"] .veil { display: none; }
html[data-theme="muji"] .grain { opacity: .28; mix-blend-mode: multiply; }
html[data-theme="muji"] h1 { text-shadow: none; }
html[data-theme="muji"] .side p, html[data-theme="muji"] .cta p, html[data-theme="muji"] .doc p, html[data-theme="muji"] .doc li,
html[data-theme="muji"] .lists p, html[data-theme="muji"] .aitext p, html[data-theme="muji"] .case .lead { color: #55504b; }
html[data-theme="muji"] .btn.b { border-color: rgba(59, 56, 53, .38); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="muji"] .btn.b:hover { border-color: #3b3835; }
html[data-theme="muji"] .btn.a:hover, html[data-theme="muji"] .top nav a.pill:hover { background: #55504b; }
html[data-theme="muji"] .scenes button { color: #a39d93; }
html[data-theme="muji"] .scenes button:hover, html[data-theme="muji"] .scenes button.on { color: #3b3835; }
html[data-theme="muji"] .scenes button.on { border-bottom-color: #3b3835; }
html[data-theme="muji"] .fx canvas, html[data-theme="muji"] .case { background: #ece8df; border-color: var(--line); }
html[data-theme="muji"] .cta { background: linear-gradient(180deg, #f2efe8 0%, #e4dfd3 100%); }
html[data-theme="muji"] footer { background: #e4dfd3; color: #3b3835; }
html[data-theme="muji"] footer a { text-decoration-color: rgba(59, 56, 53, .35); }
html[data-theme="muji"] .grad, html[data-theme="muji"] .mark i, html[data-theme="muji"] .lists h3, html[data-theme="muji"] .frac .den { background: none; color: #3b3835; }
html[data-theme="muji"] .captext li::before, html[data-theme="muji"] .aitext li::before { background: #3b3835; }
html[data-theme="muji"] .who.trio div { border-top-color: var(--line2); }

/* contact form */
.lead { position: relative; max-width: 680px; margin: clamp(36px, 5vw, 60px) auto 0; text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; }
.lead .f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lead .wide, .lead .act, .cta .lead .msg, .cta .lead .note { grid-column: 1 / -1; }
.lead label { font-size: 14px; color: var(--soft); }
.lead label b { font-weight: 400; color: var(--rose); }
.lead input, .lead textarea { width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 32%, transparent); border-radius: 0; padding: 7px 0 10px; outline: none; }
.lead textarea { resize: vertical; min-height: 5.4em; line-height: 1.5; }
.lead input::placeholder { color: color-mix(in srgb, var(--ink) 30%, transparent); }
.lead input:focus-visible, .lead textarea:focus-visible { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.lead [aria-invalid="true"] { border-bottom-color: var(--rose); box-shadow: 0 1px 0 var(--rose); }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead .act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; font-size: 15px; color: var(--soft); }
.lead .act a { color: inherit; }
.lead button.btn { border: 0; cursor: pointer; font-family: inherit; min-width: 7.5em; }
.lead button[disabled] { opacity: .55; cursor: default; }
.cta .lead .msg, .cta .lead .note { margin: 0; max-width: none; }
.cta .lead .msg { font-size: 15px; min-height: 1.5em; margin-top: -10px; }
.cta .lead .note { font-size: 13px; color: var(--soft); margin-top: -14px; }
.lead .note a { color: inherit; }
.lead.done { display: block; text-align: center; }
.lead.done .f, .lead.done .act, .lead.done .note { display: none; }
.cta .lead.done .msg { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); }
@media (max-width: 640px) { .lead { grid-template-columns: 1fr; gap: 22px; } }

/* wordmark glyph: four dots, one out of place */
.mark { display: inline-flex; align-items: center; gap: .34em; }
.mark .glyph { height: .62em; width: auto; flex: none; overflow: visible; fill: currentColor; }
.mark .glyph .ball { fill: var(--rose); }
footer .mark { font-size: 26px; margin-bottom: 20px; color: inherit; }
.orbit { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 60; overflow: visible; }
.orbit circle { fill: var(--rose); }
.orbit polyline { fill: none; stroke: var(--rose); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

/* header on phones: the wordmark, language link and request button must share one row */
.top nav a.pill .s { display: none; }
@media (max-width: 520px) {
  .top { gap: 12px; padding-top: 22px; padding-bottom: 22px; }
  .mark { font-size: 26px; }
  .top nav { gap: 12px; font-size: 14px; }
  .top nav a.pill { padding: 9px 14px; }
  .top nav a.pill .l { display: none; }
  .top nav a.pill .s { display: inline; }
}
@media (max-width: 350px) { .mark { font-size: 23px; } .top nav { gap: 9px; } .top nav a.pill { padding: 8px 12px; } }

/* language menu: globe opens a list */
.langsel { position: relative; }
.langsel summary { display: inline-flex; align-items: center; gap: 5px; padding: 6px 4px; color: var(--ink); cursor: pointer; list-style: none; border-radius: 8px; }
.langsel summary::-webkit-details-marker { display: none; }
.langsel .chev { opacity: .6; transition: transform .15s; }
.langsel[open] .chev { transform: rotate(180deg); }
.langsel ul { position: absolute; z-index: 30; right: -6px; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 136px; background: var(--night); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 12px; }
.langsel li a, .langsel li span { display: block; padding: 9px 12px; border-radius: 7px; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.top nav .langsel li a { color: var(--soft); }
.top nav .langsel li a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.langsel li span { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
