/* css/brain-hero.css — deep space and the case-law brain: /attorneys and /brain.
 * Loaded after css/skins.css and css/attorneys-nyc.css, read on the attorney skin. The night sky
 * replaces the Manhattan stills; the glass windows, sample cards, nav and footer are the shared
 * attorney components. Everything that moves has a finished still state (no script, reduced
 * motion, Save-Data, "Pause motion"), and every box that holds a canvas or a video reserves its
 * size before anything loads, so nothing shifts.
 */

[data-audience="attorney"] {
  --sp-deep: #03050F;
  --sp-night: #070B1E;
  --sp-ink: #0B1426;
  --sp-blue: #6EA8FF;
  --sp-violet: #8F8CFF;
  --sp-cyan: #5FD3F3;
  --sp-gold: #F2C46B;
  --sp-glass: rgba(14, 22, 48, 0.62);
  --sp-line: rgba(200, 214, 255, 0.14);
}

body.space { background: var(--sp-deep); }
/* A faint fixed sky behind the whole page, so the scroll keeps the star theme without a script. */
body.space::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(235,240,255,.7), transparent 60%),
    radial-gradient(1px 1px at 68% 8%, rgba(235,240,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 42%, rgba(255,214,170,.6), transparent 60%),
    radial-gradient(1px 1px at 33% 64%, rgba(190,210,255,.55), transparent 60%),
    radial-gradient(1px 1px at 52% 88%, rgba(235,240,255,.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 6% 82%, rgba(235,240,255,.5), transparent 60%),
    radial-gradient(1px 1px at 92% 76%, rgba(190,210,255,.5), transparent 60%),
    radial-gradient(1px 1px at 44% 30%, rgba(235,240,255,.35), transparent 60%);
  background-size: 520px 520px;
}
body.space .nyc-chapter, body.space .bh-sec { overflow-x: clip; }
body.space .tcd-nav { background: rgba(5, 8, 22, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body.space .attorney-advertising { background: #070B1E; }
body.space .tcd-footer { background: transparent; }

/* ── The hero ───────────────────────────────────────────────────────────────────────────── */
.bh-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 6vh, 72px) 0 clamp(40px, 7vh, 84px);
  background:
    radial-gradient(70% 60% at 72% 42%, rgba(70, 92, 210, 0.26), transparent 62%),
    radial-gradient(45% 40% at 86% 18%, rgba(143, 140, 255, 0.14), transparent 70%),
    radial-gradient(50% 45% at 8% 92%, rgba(232, 119, 34, 0.10), transparent 70%),
    linear-gradient(180deg, #04060F 0%, #060A1C 55%, var(--sp-deep) 100%); }
/* The still sky (first paint, and what stays without the script). */
.bh-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 12%, #fff, transparent 60%), radial-gradient(1px 1px at 22% 38%, #dfe7ff, transparent 60%),
    radial-gradient(1.4px 1.4px at 41% 9%, #fff, transparent 60%), radial-gradient(1px 1px at 57% 27%, #cfdcff, transparent 60%),
    radial-gradient(1px 1px at 73% 7%, #fff, transparent 60%), radial-gradient(1.6px 1.6px at 91% 22%, #ffe3c2, transparent 60%),
    radial-gradient(1px 1px at 14% 71%, #dfe7ff, transparent 60%), radial-gradient(1.3px 1.3px at 35% 86%, #fff, transparent 60%),
    radial-gradient(1px 1px at 62% 66%, #cfdcff, transparent 60%), radial-gradient(1px 1px at 82% 91%, #fff, transparent 60%),
    radial-gradient(1px 1px at 48% 50%, #e9eeff, transparent 60%), radial-gradient(1.2px 1.2px at 96% 58%, #fff, transparent 60%);
  background-size: 640px 420px; }
.bh-hero.js-sky::before { opacity: 0; transition: opacity 1.2s ease; }
.bh-hero > canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bh-hero > .wrap { position: relative; z-index: 1; width: 100%; }
body.tcd-skinned .bh-hero > .wrap { max-width: 1360px; }
.bh-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 3.5vw, 56px); align-items: center; }
@media (max-width: 980px) { .bh-grid { grid-template-columns: 1fr; } }

.bh-copy .eyebrow-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px;
  font: 700 12px/1.25 var(--font-body); letter-spacing: 0.04em; color: #DCE6FF;
  background: rgba(110, 168, 255, 0.10); box-shadow: inset 0 0 0 1px rgba(110, 168, 255, 0.32); }
.bh-copy .eyebrow-pill .dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--sp-gold); box-shadow: 0 0 12px 2px rgba(242,196,107,.75); }
html.nyc-motion .bh-copy .eyebrow-pill .dot { animation: bh-pulse 2.8s ease-in-out infinite; }
@keyframes bh-pulse { 50% { box-shadow: 0 0 4px 1px rgba(242,196,107,.35); opacity: .7; } }
.bh-copy h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.9vw, 72px); line-height: 0.98; letter-spacing: -0.04em;
  margin: 20px 0 22px; color: #F6F2EA; text-wrap: balance; }
.bh-copy h1 .serif { display: block; width: fit-content; font-family: var(--nyc-serif); font-style: italic; font-weight: 600; letter-spacing: -0.015em;
  background: linear-gradient(100deg, #FFB46B 0%, #F2A65A 35%, #FFD7A8 60%, #C9B8FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em; }
.bh-copy .lede { font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.62; color: #CFD8EA; max-width: 54ch; margin: 0 0 28px; }
.bh-copy .trust-line { display: flex; gap: 12px; align-items: flex-start; max-width: 54ch; margin: -8px 0 26px; padding: 12px 16px 12px 14px;
  border-radius: 14px; font-size: 15px; line-height: 1.5; color: #CFD8EA; background: rgba(95, 211, 243, 0.08); box-shadow: inset 0 0 0 1px rgba(95, 211, 243, 0.38); }
.bh-copy .trust-line strong { color: #F6F2EA; font-weight: 700; }
.bh-copy .trust-line .tick { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--sp-cyan);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm-1.6 15.6-4.3-4.3 1.6-1.6 2.7 2.7 6-6 1.6 1.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm-1.6 15.6-4.3-4.3 1.6-1.6 2.7 2.7 6-6 1.6 1.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.bh-copy .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bh-copy .btn.ghost.glow { box-shadow: inset 0 0 0 1px rgba(143, 140, 255, 0.55), 0 0 30px -8px rgba(143, 140, 255, 0.6); }
.bh-copy .fineprint { margin-top: 18px; font-size: 13px; color: var(--skin-text-muted); }
.bh-copy .fineprint a { color: var(--skin-text-soft); }

/* ── The brain stage ────────────────────────────────────────────────────────────────────── */
.bh-figure { margin: 0; position: relative; }
.bh-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 680px; margin: 0 auto; border-radius: 50%; touch-action: pan-y; }
.bh-stage::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(110, 140, 255, 0.20), rgba(110, 140, 255, 0.06) 55%, transparent 72%); }
.bh-stage > img.bh-poster, .bh-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bh-stage > img.bh-poster { object-fit: contain; transition: opacity .8s ease; }
.bh-stage > canvas { opacity: 0; transition: opacity .8s ease; cursor: grab; border-radius: 12px; }
.bh-stage.bh-live > canvas { opacity: 1; }
.bh-stage.bh-live > img.bh-poster { opacity: 0; }
.bh-stage > canvas:focus-visible { outline: 2px solid var(--skin-accent); outline-offset: 4px; }
.bh-stage > canvas:active { cursor: grabbing; }

/* The topic card that opens when a topic is chosen. */
.bh-card { position: absolute; left: 0; bottom: 4%; max-width: min(320px, 78%); padding: 14px 16px 14px; border-radius: 14px;
  background: rgba(7, 11, 30, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--sp-line), 0 24px 60px -24px rgba(0,0,0,.9); z-index: 2; }
.bh-card[hidden] { display: none; }
.bh-card .k { font: 800 10.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-gold); }
.bh-card h3 { margin: 8px 28px 6px 0; font: 800 18px/1.2 var(--font-display); color: #fff; letter-spacing: -0.01em; }
.bh-card p { margin: 0; font-size: 13px; line-height: 1.5; color: #C3CCE0; }
.bh-card .chip { display: inline-block; margin-top: 10px; padding: 6px 10px; border-radius: 999px; font: 700 11.5px/1 var(--font-body);
  color: #FFD7A8; background: rgba(232,119,34,.14); box-shadow: inset 0 0 0 1px rgba(232,119,34,.45); }
.bh-card button { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(240,235,224,.08); color: #E9EEFA; font: 700 16px/1 var(--font-body); }
.bh-card button:focus-visible { outline: 2px solid var(--skin-accent); outline-offset: 2px; }

/* Controls under the stage. */
.bh-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 10px; }
.bh-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(9, 14, 34, 0.78); box-shadow: inset 0 0 0 1px var(--sp-line); }
.bh-seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #B9C4DB; cursor: pointer;
  font: 700 12.5px/1 var(--font-body); letter-spacing: .02em; white-space: nowrap; }
.bh-seg button[aria-pressed="true"] { background: linear-gradient(180deg, rgba(110,168,255,.30), rgba(143,140,255,.22)); color: #fff; box-shadow: inset 0 0 0 1px rgba(160,190,255,.45); }
.bh-seg button:focus-visible, .bh-topic select:focus-visible { outline: 2px solid var(--skin-accent); outline-offset: 2px; }
.bh-seg .sym { display: inline-block; margin-right: 6px; color: var(--sp-blue); }
.bh-seg .sym.dia { color: var(--sp-gold); }
.bh-topic { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--font-body); color: #B9C4DB; }
.bh-topic select { min-height: 38px; max-width: 220px; padding: 0 30px 0 12px; border-radius: 999px; border: 0; color: #fff; cursor: pointer;
  background: rgba(9,14,34,.78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23B9C4DB'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none; appearance: none; box-shadow: inset 0 0 0 1px var(--sp-line); font: 600 13px/1 var(--font-body); }
.bh-topic select option { color: #0B1426; background: #fff; }
.bh-caption { margin: 12px auto 0; max-width: 62ch; text-align: center; font-size: 12.5px; line-height: 1.55; color: #9FAAC2; }
.bh-caption b { color: #DCE4F5; font-weight: 700; }
.bh-hint { display: block; margin-top: 4px; color: #7F8AA6; }
@media (hover: none) { .bh-hint .mouse { display: none; } }
@media (hover: hover) { .bh-hint .touch { display: none; } }

/* ── Counts band ────────────────────────────────────────────────────────────────────────── */
.bh-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 auto; max-width: 1100px; }
.bh-counts div { padding: 16px 14px; border-radius: 14px; text-align: center; background: var(--sp-glass); box-shadow: inset 0 0 0 1px var(--sp-line); }
.bh-counts b { display: block; font: 800 clamp(26px, 3vw, 34px)/1 var(--font-display); color: #fff; letter-spacing: -0.02em; }
.bh-counts span { display: block; margin-top: 6px; font-size: 12.5px; color: #AEB9D0; line-height: 1.35; }

/* ── Constellation chapter heads (the star theme, kept subtle down the page) ─────────────── */
.cst { position: relative; }
.cst .num { display: inline-flex; align-items: center; gap: 10px; }
.cst .num::before { content: ""; width: 36px; height: 10px; flex: 0 0 auto;
  background:
    radial-gradient(circle at 3px 5px, #F2C46B 2px, transparent 2.6px),
    radial-gradient(circle at 18px 2px, #9FB8FF 1.6px, transparent 2.2px),
    radial-gradient(circle at 33px 7px, #9FB8FF 1.6px, transparent 2.2px),
    linear-gradient(17deg, transparent 46%, rgba(160,184,255,.45) 47%, rgba(160,184,255,.45) 53%, transparent 54%) 3px 0 / 15px 10px no-repeat,
    linear-gradient(-18deg, transparent 46%, rgba(160,184,255,.45) 47%, rgba(160,184,255,.45) 53%, transparent 54%) 18px 0 / 15px 10px no-repeat; }
body.space .nyc-chapter { background: transparent; }
body.space .nyc-chapter + .nyc-chapter { border-top: 1px solid rgba(200,214,255,0.06); }
.glow-ring { position: absolute; z-index: 0; width: 680px; height: 680px; border-radius: 50%; pointer-events: none; filter: blur(10px);
  background: radial-gradient(closest-side, rgba(90,110,230,.16), transparent 70%); }

/* Feature cards on a dark glass. */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.sp-card { position: relative; border-radius: 16px; padding: 20px 20px 22px; background: linear-gradient(160deg, rgba(20,30,62,.82), rgba(10,16,38,.82));
  box-shadow: inset 0 0 0 1px var(--sp-line), 0 30px 60px -40px rgba(0,0,0,.9); overflow: hidden; }
.sp-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(143,140,255,.18), transparent); }
.sp-card .ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 12px;
  font: 800 15px/1 var(--font-numeric); color: #fff; background: linear-gradient(140deg, rgba(110,168,255,.35), rgba(143,140,255,.18)); box-shadow: inset 0 0 0 1px rgba(160,190,255,.35); }
.sp-card .ico.warm { background: linear-gradient(140deg, rgba(232,119,34,.45), rgba(242,166,90,.18)); box-shadow: inset 0 0 0 1px rgba(242,166,90,.45); }
.sp-card h3 { margin: 0 0 8px; font: 800 17px/1.25 var(--font-display) !important; color: #fff; letter-spacing: -0.01em; }
.sp-card p { margin: 0; font-size: 14px; line-height: 1.55; color: #B9C3D8; }
.sp-card .tag { display: inline-block; margin-top: 12px; font: 800 10.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sp-gold); }

/* Calculator chips. */
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.calc-chips li { padding: 8px 12px; border-radius: 999px; font: 700 12.5px/1.2 var(--font-body); color: #DCE4F5; background: rgba(14,22,48,.8); box-shadow: inset 0 0 0 1px var(--sp-line); }
.calc-chips li b { color: var(--skin-accent); font-family: var(--font-numeric); margin-right: 6px; }
.calc-chips .beta { font: 800 9.5px/1 var(--font-body); letter-spacing: .1em; color: var(--nyc-amber); margin-left: 6px; }

/* The skills list. */
.skill-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.skill-list li { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4; color: #DCE4F5; background: rgba(14,22,48,.66); box-shadow: inset 0 0 0 1px var(--sp-line); }
.skill-list li::before { content: "✦"; color: var(--sp-gold); font-size: 12px; }

/* Languages as a constellation. Each name is in its own script (CSS content, so the i18n flow
   leaves it alone); the sentence beside it lists them in the page's language for screen readers. */
.lang-sky { position: relative; min-height: 300px; border-radius: 20px; overflow: hidden; background: radial-gradient(80% 70% at 50% 50%, rgba(70,92,210,.18), transparent 70%), rgba(8,12,30,.7); box-shadow: inset 0 0 0 1px var(--sp-line); }
.lang-sky span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font: 700 15px/1 var(--font-body); color: #E7ECFA; text-shadow: 0 0 18px rgba(110,168,255,.55); }
.lang-sky span::before { content: attr(data-n); }
.lang-sky span::after { content: ""; position: absolute; left: 50%; top: -10px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--sp-gold); box-shadow: 0 0 10px 2px rgba(242,196,107,.7); }
.lang-sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
html.nyc-motion .lang-sky span { animation: bh-twinkle 6s ease-in-out infinite; }
html.nyc-motion .lang-sky span:nth-child(3n) { animation-delay: -2s; } html.nyc-motion .lang-sky span:nth-child(3n+1) { animation-delay: -4s; }
@keyframes bh-twinkle { 50% { opacity: .72; } }
@media (max-width: 560px) { .lang-sky { min-height: 340px; } .lang-sky span { font-size: 13px; } }

/* The brain teaser on the attorney home. */
.brain-teaser { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(60% 80% at 85% 50%, rgba(110,140,255,.24), transparent 70%), linear-gradient(160deg, #0B1230, #060918);
  box-shadow: inset 0 0 0 1px rgba(160,190,255,.22), 0 60px 120px -60px rgba(80,100,255,.5); }
.brain-teaser .chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font: 800 11px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  color: #FFD7A8; background: rgba(232,119,34,.14); box-shadow: inset 0 0 0 1px rgba(232,119,34,.45); }

/* The "Ask the brain" demonstration frame and the statute quote. */
.demo-label { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 8px; font: 800 11.5px/1.3 var(--font-body); letter-spacing: .06em;
  color: #1B1205; background: #F2C46B; }
.statute { margin: 16px 0 0; padding: 16px 18px; border-radius: 12px; background: rgba(242,196,107,.07); box-shadow: inset 3px 0 0 #F2C46B, inset 0 0 0 1px rgba(242,196,107,.22);
  font: 400 14.5px/1.65 var(--nyc-serif); color: #EDE6D6; }
.statute cite { display: block; margin-top: 10px; font: 700 12px/1.3 var(--font-body); font-style: normal; color: #F2C46B; letter-spacing: .04em; }

/* How an answer is built: a path of four stars. */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: flow; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }
.flow li { position: relative; padding: 20px 18px; border-radius: 16px; background: var(--sp-glass); box-shadow: inset 0 0 0 1px var(--sp-line); counter-increment: flow; }
.flow li::before { content: counter(flow); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 12px;
  font: 800 13px/1 var(--font-numeric); color: #0B1426; background: radial-gradient(circle at 35% 35%, #fff, #F2C46B); box-shadow: 0 0 18px rgba(242,196,107,.6); }
.flow h3 { margin: 0 0 6px; font: 800 16px/1.3 var(--font-display) !important; color: #fff; }
.flow p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #B9C3D8; }

/* Video windows on the brain page: 16:9 recordings. */
.win.wide .win-media { aspect-ratio: 16 / 9; }
.vid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); align-items: start; }
@media (max-width: 900px) { .vid-grid { grid-template-columns: 1fr; } }
.vid-grid h3 { margin: 18px 0 6px; font: 800 20px/1.25 var(--font-display) !important; color: #fff; }
.vid-grid p { margin: 0; color: #B9C3D8; font-size: 14.5px; line-height: 1.6; }
.win-cap .demo { color: #F2C46B; font-weight: 800; }

/* A "Pro" lock line. */
.lockline { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font: 700 12.5px/1.3 var(--font-body); color: #FFD7A8; }

/* Section spacing on the brain page. */
.bh-sec { position: relative; padding: clamp(48px, 8vh, 96px) 0; }
body.tcd-skinned .bh-sec > .wrap { max-width: 1200px; }

/* Phones. */
@media (max-width: 980px) {
  .bh-stage { max-width: 560px; }
  .bh-copy { text-align: left; }
}
@media (max-width: 560px) {
  body.tcd-skinned.space .wrap { padding-left: 16px; padding-right: 16px; }
  .bh-copy .eyebrow-pill { font-size: 10.5px; letter-spacing: 0.02em; padding: 7px 11px 7px 10px; gap: 8px; }
  .bh-copy h1 { font-size: clamp(36px, 10.4vw, 46px); }
  .bh-stage { aspect-ratio: 1 / 1.02; }
  .bh-controls { gap: 8px; }
  .bh-seg button { padding: 0 11px; font-size: 12px; }
  .bh-topic { width: 100%; justify-content: center; }
  .bh-topic select { max-width: none; flex: 1 1 auto; }
  .bh-card { left: 0; right: 0; max-width: none; bottom: 0; }
}
html:not([lang="en"]) .bh-copy h1 { font-size: clamp(34px, 4.4vw, 62px); overflow-wrap: break-word; hyphens: auto; }

@media (prefers-reduced-motion: reduce) {
  .bh-stage > canvas, .bh-stage > img.bh-poster { transition: none; }
}

/* The closing CTA: a nebula instead of the bridge still. */
.nyc-cta .world.space-world { background:
    radial-gradient(1px 1px at 12% 30%, #fff, transparent 60%), radial-gradient(1.4px 1.4px at 78% 22%, #ffe3c2, transparent 60%),
    radial-gradient(1px 1px at 44% 74%, #dfe7ff, transparent 60%), radial-gradient(1px 1px at 90% 80%, #fff, transparent 60%),
    radial-gradient(60% 90% at 80% 20%, rgba(143,140,255,.30), transparent 70%),
    radial-gradient(50% 80% at 10% 90%, rgba(232,119,34,.20), transparent 70%),
    linear-gradient(160deg, #0B1230, #05081A); background-size: 380px 260px, 380px 260px, 380px 260px, 380px 260px, auto, auto, auto; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The poster is an opaque still of the stage; its edges fade into whatever sky is behind it. */
.bh-stage > img.bh-poster { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }

/* The hero melts into the page instead of ending on a line. */
.bh-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,5,15,0), var(--sp-deep)); }
/* Six cards: three across on a desktop. Ten on /brain: the last two share the final row. */
@media (min-width: 980px) {
  .sp-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-grid.ten { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sp-grid.ten > :nth-child(9), .sp-grid.ten > :nth-child(10) { grid-column: span 2; }
  .brain-teaser .chap-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.nw { white-space: nowrap; }
