/* StellarGen site styles. Every value comes from tokens.css (a copy of handoff/design-tokens.css)
   or from a component spec in handoff/design-brief.md, noted where used. */

/* Base */
/* Night shades mixed from the tokens (design review, option B): hairlines and raised cards on night. */
:root {
  --color-night-line: color-mix(in srgb, var(--color-on-night) 16%, var(--color-night));
  --color-night-raised: color-mix(in srgb, var(--color-on-night) 5%, var(--color-night));
  /* review-colours:start (old site's R&D palette, Karan's design review round 7; for night backgrounds only) */
  --color-gold-bright: #e8b84b;
  --color-status-green: #2ed17a;
  --color-status-blue: #4db2ff;
  --color-status-purple: #b084ff;
  /* review-colours:end */
  --sheet-r: var(--space-6);
  /* Depth (design review round 8): soft shadows on light, a gold glow for things you can act on, deep shadow on night. */
  --shadow-soft: 0 1px 2px color-mix(in srgb, var(--color-ink) 6%, transparent), 0 14px 32px -16px color-mix(in srgb, var(--color-ink) 22%, transparent);
  --shadow-glow: 0 18px 40px -18px color-mix(in srgb, var(--color-gold) 55%, transparent);
  --shadow-deep: 0 30px 60px -28px color-mix(in srgb, var(--color-night) 90%, transparent);
}
@media (min-width: 900px) { :root { --sheet-r: var(--space-12); } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-ground);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  line-height: var(--text-body-lh);
  font-weight: var(--text-body-weight);
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
button, input, select, textarea { font: inherit; }
a { color: var(--color-gold-text); text-underline-offset: 3px; }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.night :focus-visible { outline: var(--focus-ring-on-night); }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-6); }
li + li { margin-top: var(--space-1); }

.skip { position: absolute; left: var(--space-4); top: calc(-1 * var(--space-24)); z-index: 45; }
.skip:focus { top: var(--space-4); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Type */
h1, h2, h3, .display { font-family: var(--font-display); margin: 0 0 var(--space-4); }
.display { font-size: var(--text-display-size); line-height: var(--text-display-lh); font-weight: var(--text-display-weight); letter-spacing: var(--text-display-tracking); }
h1 { font-size: var(--text-h1-size); line-height: var(--text-h1-lh); font-weight: var(--text-h1-weight); letter-spacing: var(--text-h1-tracking); }
h2 { font-size: var(--text-h2-size); line-height: var(--text-h2-lh); font-weight: var(--text-h2-weight); }
h3 { font-size: var(--text-h3-size); line-height: var(--text-h3-lh); font-weight: var(--text-h3-weight); }
h4 { font-family: var(--font-sans); font-size: var(--text-h4-size); line-height: var(--text-h4-lh); font-weight: var(--text-h4-weight); margin: 0 0 var(--space-2); }
.lead { font-size: var(--text-lead-size); line-height: var(--text-lead-lh); font-weight: var(--text-lead-weight); max-width: var(--measure); }
.small { font-size: var(--text-small-size); line-height: var(--text-small-lh); }
.eyebrow { font-size: var(--text-eyebrow-size); line-height: var(--text-eyebrow-lh); font-weight: var(--text-eyebrow-weight); color: var(--color-gold-text); margin: 0 0 var(--space-2); }
.night .eyebrow { color: var(--color-gold); }
.muted { color: var(--color-ink-muted); }
.night .muted { color: var(--color-on-night-muted); }
.measure { max-width: var(--measure); }
.spec { font-family: var(--font-mono); font-size: var(--text-spec-size); line-height: var(--text-spec-lh); font-weight: var(--text-spec-weight); font-variant-numeric: tabular-nums; }

/* Layout */
.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
/* Section padding 48px, 64px from 900px (Karan, design review 16 October 2026: tighter than --section-gap). */
:root { --pad: var(--space-12); }
@media (min-width: 900px) { :root { --pad: var(--space-16); } }
.band { padding: var(--pad) 0; }
.band-alt { background: var(--color-surface); }
.night { background: var(--color-night); color: var(--color-on-night); }
.night a { color: var(--color-on-night); }
.cols { display: grid; gap: var(--space-12); }
/* Flex so the last row fills the width instead of leaving one card on the left. */
.grid { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.grid > * { flex: 1 1 260px; min-width: 0; }
.grid > li:not(.card) { display: flex; }
.grid > li:not(.card) > * { flex: 1; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }
.section-head { margin-bottom: var(--space-8); }
.stack > * + * { margin-top: var(--space-6); }

/* Buttons (design-brief: padding 12px 20px, radius 4px) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-3) 20px;
  font-family: var(--font-sans); font-size: var(--text-button-size); line-height: var(--text-button-lh); font-weight: var(--text-button-weight);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}
.btn-primary, .night .btn-primary { background: var(--color-gold); color: var(--color-on-gold); }
.btn-primary:hover, .night .btn-primary:hover { background: var(--color-gold-hover); }
.btn-secondary { background: var(--color-ground); color: var(--color-ink); border-color: var(--color-border-strong); }
.btn-secondary:hover { background: var(--color-surface); }
.night .btn-secondary { background: transparent; color: var(--color-on-night); border-color: var(--color-night-border); }
.night .btn-secondary:hover { border-color: var(--color-on-night); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--color-surface-raised); color: var(--color-ink-muted); border-color: transparent; cursor: not-allowed; }
.btn-text { font-weight: var(--text-button-weight); color: var(--color-gold-text); text-decoration: underline; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* Header (night, 72px, logo 40px) */
.site-header { position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-6); min-height: var(--header-height); }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 40px; width: auto; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-4); }
.tel { color: var(--color-on-night-muted); text-decoration: none; font-size: var(--text-small-size); line-height: var(--text-small-lh); white-space: nowrap; }
.night a.tel { color: var(--color-on-night-muted); }
.tel:hover { color: var(--color-on-night); }

.nav { display: none; }
.nav > ul { display: flex; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav li + li { margin-top: 0; }
.nav-top {
  display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; padding: 0 var(--space-2);
  background: none; border: 0; color: var(--color-on-night); cursor: pointer;
  font-family: var(--font-sans); font-size: var(--text-label-size); line-height: var(--text-label-lh); font-weight: var(--text-label-weight);
  text-decoration: none; white-space: nowrap;
}
.nav-top:hover, .nav-top[aria-expanded="true"] { color: var(--color-gold); }
.nav-top svg { width: 12px; height: 12px; transition: transform var(--motion-fast) var(--ease-out); }
.nav-group { display: flex; align-items: center; min-height: var(--header-height); }
.nav-link { padding-right: 0; }
.nav-toggle { padding: 0 var(--space-2) 0 var(--space-1); }
.nav-top[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Mega-menu panel: night band under the header, with stars (design review; was light). */
.mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-night) url("/images/stars.svg"); color: var(--color-on-night);
  border-top: 1px solid var(--color-night-line); border-bottom: 1px solid var(--color-gold);
}
.mega .wrap { display: block; min-height: 0; padding-top: var(--space-8); padding-bottom: var(--space-8); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-2) var(--space-6); }
.mega li + li { margin-top: 0; }
.mega a, .night .mega a { display: block; padding: var(--space-2) 0; color: var(--color-on-night); text-decoration: none; font-weight: var(--text-label-weight); }
.mega a:hover, .night .mega a:hover { color: var(--color-gold); text-decoration: underline; }
.mega .cat { display: block; font-size: var(--text-small-size); line-height: var(--text-small-lh); font-weight: var(--text-body-weight); color: var(--color-on-night-muted); }
.mega .all a, .night .mega .all a { color: var(--color-gold); text-decoration: underline; }
.mega :focus-visible { outline: var(--focus-ring-on-night); }
/* With JavaScript: the button's aria-expanded drives the panel. Without it: hover and focus-within. */
.js .nav-top[aria-expanded="true"] + .mega { display: block; }
html:not(.js) .nav-group:hover > .mega, html:not(.js) .nav-group:focus-within > .mega { display: block; }

/* Mobile menu (below 900px): details element, works without JavaScript */
.mnav > summary { list-style: none; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav-panel {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-height); overflow-y: auto;
  background: var(--color-night); color: var(--color-on-night); padding: var(--space-4) var(--gutter) var(--space-12);
}
.mnav-panel ul { list-style: none; margin: 0; padding: 0; }
.mnav-panel li + li { margin-top: 0; }
.mnav-panel a, .mnav-group > summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px;
  color: var(--color-on-night); text-decoration: none; font-weight: var(--text-label-weight); cursor: pointer;
  border-bottom: 1px solid var(--color-night-border);
}
.mnav-group > summary { list-style: none; }
.mnav-group > summary::-webkit-details-marker { display: none; }
.mnav-group > summary svg { width: 14px; height: 14px; transition: transform var(--motion-fast) var(--ease-out); }
.mnav-group[open] > summary svg { transform: rotate(180deg); }
.mnav-group ul { padding: var(--space-2) 0 var(--space-2) var(--space-4); }
.mnav-group ul a { font-weight: var(--text-body-weight); border-bottom: 0; min-height: 44px; }
.mnav-group .cat { color: var(--color-on-night-muted); font-size: var(--text-small-size); margin-right: var(--space-2); }
.mnav-contact { margin-top: var(--space-6); }
.mnav-contact a { border-bottom: 0; color: var(--color-gold); }
.night .mnav-contact a { color: var(--color-gold); }
body:has(.mnav[open]) { overflow: hidden; }

@media (min-width: 900px) {
  .nav { display: block; }
  .mnav { display: none; }
}
@media (max-width: 1099px) and (min-width: 900px) {
  .tel { display: none; }
  .site-header .wrap { gap: var(--space-3); }
}
@media (max-width: 899px) {
  .tel { display: none; }
  .header-right { gap: var(--space-2); }
}

/* Hero bands */
/* Home hero: centred over the sky, as on the old site (design review). */
.hero { position: relative; overflow-x: clip; }
.hero .galaxy { z-index: 0; }
main > .night:not(.hero) > .wrap { position: relative; z-index: 1; }
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-6); text-align: center; padding-top: var(--space-16); padding-bottom: var(--space-16); }
.hero .wrap > * { margin: 0; }
.hero h1 { max-width: 22ch; }
.hero-tag { display: grid; gap: var(--space-2); }
.hero-tag p { margin: 0; }
.hero .lead { max-width: var(--measure); }
@media (min-width: 900px) { .hero .wrap { gap: var(--space-8); padding-top: var(--space-24); padding-bottom: var(--space-24); } }
.hero .btn-row { justify-content: center; }
.tagline { font-family: var(--font-display); font-size: var(--text-h3-size); line-height: var(--text-h3-lh); font-weight: var(--text-h3-weight); color: var(--color-gold); margin: var(--space-4) 0 0; }
.tagline-2 { color: var(--color-on-night-muted); margin: 0; }
.seal { width: 96px; height: 96px; margin-top: var(--space-8); }
.hero-art { width: 100%; max-width: 420px; justify-self: center; color: var(--color-gold); }
.page-hero { padding: var(--space-12) 0 var(--space-16); }
.page-hero h1 { margin-top: var(--space-4); }
.page-hero .breadcrumb { margin-bottom: var(--space-8); }

/* Breadcrumbs */
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-small-size); line-height: var(--text-small-lh); }
.breadcrumb li + li { margin-top: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--color-ink-muted); margin-right: var(--space-2); }
.night .breadcrumb li + li::before { color: var(--color-on-night-muted); }
.breadcrumb [aria-current="page"] { color: var(--color-ink-muted); }
.night .breadcrumb [aria-current="page"] { color: var(--color-on-night-muted); }

/* Figures strip */
/* Figures (design review round 12): like the product facts, centred, no boxes, hairline dividers, gold numbers. */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-8); margin: 0; padding-top: var(--space-8); border-top: 1px solid var(--color-line); text-align: center; }
.figures > div { margin: 0; padding: 0 var(--space-4); }
.figures > div:nth-child(even) { border-left: 1px solid var(--color-line); }
@media (min-width: 900px) {
  .figures { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .figures > div + div { border-left: 1px solid var(--color-line); }
}
.figures .figure-n { color: var(--color-gold-text); }
.night .figures, .night .figures > div { border-color: var(--color-night-line); }
.night .figures .figure-n { color: var(--color-gold-bright); }
.night .figures dd { color: var(--color-on-night-muted); }
.figure-n { display: block; font-family: var(--font-display); font-size: var(--text-numeric-size); line-height: var(--text-numeric-lh); font-weight: var(--text-numeric-weight); font-variant-numeric: tabular-nums; margin-bottom: var(--space-2); }
.figures dd { margin: 0; }

/* Cards */
.card { background: var(--color-ground); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.card h3 { margin: 0; }
.card p { margin: 0; }
.card .slot { margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-4); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.card .card-link { margin-top: auto; padding-top: var(--space-2); font-weight: var(--text-button-weight); }
@media (max-width: 599px) { .card { padding: var(--space-4); } .card .slot { margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-4); } }

/* Image slots: fixed aspect ratio, surface-raised placeholder */
.slot { position: relative; aspect-ratio: 4 / 3; background: var(--color-surface-raised); overflow: hidden; }
.slot-portrait { aspect-ratio: 4 / 5; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: var(--text-h1-size); font-weight: var(--text-h1-weight); color: var(--color-ink-muted); }

/* Tag and highlight panel */
.tag { display: inline-block; background: var(--color-gold-tint); color: var(--color-gold-text); font-size: var(--text-min-size); line-height: var(--text-eyebrow-lh); font-weight: 600; padding: 0 var(--space-3); border-radius: var(--radius-pill); }
/* Highlight panel: gold rule on the left, no fill (design review). */
.panel { border-left: 2px solid var(--color-gold-text); padding: var(--space-2) 0 var(--space-2) var(--space-6); }
.panel p { font-size: var(--text-lead-size); line-height: var(--text-lead-lh); }
.night .panel { border-left-color: var(--color-gold); }

/* Tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-label-size); line-height: var(--text-label-lh); font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: var(--text-small-size); line-height: var(--text-small-lh); font-weight: 600; color: var(--color-ink-muted); padding-bottom: var(--space-2); }
th, td { text-align: left; vertical-align: top; padding: var(--space-3); border-bottom: 1px solid var(--color-line); }
thead th { background: var(--color-surface-raised); font-weight: var(--text-label-weight); border-bottom-color: var(--color-border-strong); }
tbody th { font-weight: var(--text-label-weight); }
tbody tr:hover { background: var(--color-surface); }
td.spec { font-family: var(--font-mono); }

/* Forms (design-brief: inputs 16px, padding 10px 12px, radius 4px) */
fieldset { border: 0; padding: 0; margin: 0 0 var(--space-6); min-width: 0; }
legend { font-size: var(--text-h4-size); line-height: var(--text-h4-lh); font-weight: var(--text-h4-weight); margin-bottom: var(--space-3); padding: 0; }
.field { margin-bottom: var(--space-4); }
.field label, .label { display: block; font-size: var(--text-label-size); line-height: var(--text-label-lh); font-weight: var(--text-label-weight); margin-bottom: var(--space-1); }
.hint { display: block; font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--color-ink-muted); margin-top: var(--space-1); }
.input {
  width: 100%; font-family: var(--font-sans); font-size: var(--text-button-size); line-height: var(--text-button-lh); color: var(--color-ink);
  background: var(--color-ground); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); padding: 10px var(--space-3);
}
textarea.input { min-height: calc(var(--space-24) + var(--space-12)); resize: vertical; }
.input[aria-invalid="true"] { border: 2px solid var(--color-danger); }
.field-error { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--color-danger); font-size: var(--text-small-size); line-height: var(--text-small-lh); font-weight: 600; margin-top: var(--space-1); }
.field-error svg { flex: none; width: 20px; height: 20px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); }
.choice { display: flex; gap: var(--space-3); align-items: flex-start; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); background: var(--color-ground); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--color-gold-text); background: var(--color-gold-tint); }
.choice input { margin-top: var(--space-1); accent-color: var(--color-gold-text); width: 20px; height: 20px; flex: none; }
.choice b { display: block; }
.choice span span { display: block; font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--color-ink-muted); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: var(--space-1); flex: none; accent-color: var(--color-gold-text); }

/* Messages: tint, matching text, icon, bold first word */
.msg { display: flex; gap: var(--space-3); align-items: flex-start; border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-4); font-size: var(--text-label-size); line-height: var(--text-label-lh); }
.msg svg { flex: none; width: 20px; height: 20px; }
.msg b { display: block; }
.msg-success { background: var(--color-success-tint); color: var(--color-success); }
.msg-warning { background: var(--color-warning-tint); color: var(--color-warning); }
.msg-danger { background: var(--color-danger-tint); color: var(--color-danger); }
.msg-info { background: var(--color-surface); color: var(--color-info); }

/* Footer */
.site-footer .wrap { display: grid; gap: var(--space-8); padding-top: var(--space-12); padding-bottom: var(--space-8); }
.site-footer .wrap { grid-template-columns: 1fr 1fr; }
.footer-brand, .footer-contact { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; }
  .footer-brand, .footer-contact { grid-column: auto; }
}
.site-footer h2 { font-family: var(--font-sans); font-size: var(--text-label-size); line-height: var(--text-label-lh); font-weight: var(--text-label-weight); margin: 0 0 var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: var(--space-2); }
.site-footer p { margin: 0 0 var(--space-2); }
.site-footer .small { color: var(--color-on-night-muted); }
.site-footer a { text-decoration-color: var(--color-night-border); }
.site-footer .footer-gap { margin-top: var(--space-4); }
.site-footer .footer-strong { color: var(--color-on-night); font-weight: var(--text-label-weight); }
.footer-logo { height: 34px; width: auto; }
.origin { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-top: var(--space-4); }
.mii-slot { width: 72px; height: 72px; }
.flag { width: 72px; height: 48px; }
.footer-seal { width: 96px; height: 96px; margin-top: var(--space-4); }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--color-night-border); padding-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: space-between; }
.legal ul { display: flex; gap: var(--space-6); }
.legal li + li { margin-top: 0; }
.site-footer .legal { color: var(--color-on-night-muted); }

/* Footer spacing and gold column headings (design review). */
.site-footer .wrap { padding-top: var(--space-16); row-gap: var(--space-12); }
@media (min-width: 900px) { .site-footer .wrap { column-gap: var(--space-12); } }
.site-footer h2 { color: var(--color-gold); margin-bottom: var(--space-4); }
.site-footer ul li + li { margin-top: var(--space-3); }
.site-footer .legal li + li { margin-top: 0; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-logo { height: 40px; }
.site-footer .origin { margin-top: var(--space-6); gap: var(--space-4); }
.site-footer .footer-seal { margin-top: var(--space-4); }
.site-footer .legal { margin-top: var(--space-4); padding-top: var(--space-6); border-top-color: var(--color-night-line); }

/* Home partner marquee (design review): bordered logo tiles in one row, white logos on a night tile. */
.center { text-align: center; }
h2.center::before { margin-left: auto; margin-right: auto; }
.marquee-box { position: relative; margin: var(--space-8) 0; }
.marquee { overflow: hidden; border-top: 1px solid var(--color-gold); border-bottom: 1px solid var(--color-gold); }
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee-list li { flex: none; margin: 0; width: 240px; height: 160px; display: grid; place-items: center; padding: var(--space-6); border-right: 1px solid var(--color-gold); background: var(--color-ground); }
.marquee-list li.dark { background: var(--color-night); }
.marquee-list img { width: auto; height: auto; max-width: 100%; max-height: 96px; }
.marquee-list .partner-name { font-family: var(--font-display); font-size: var(--text-h3-size); line-height: var(--text-h3-lh); text-align: center; }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee-list[aria-hidden] { display: none; } }

/* WhatsApp link: fixed bottom-left, icon and text */
.wa {
  position: fixed; left: var(--space-4); bottom: var(--space-4); z-index: 15;
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-4);
  background: var(--color-ground); color: var(--color-ink); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill);
  font-size: var(--text-label-size); line-height: var(--text-label-lh); font-weight: var(--text-label-weight); text-decoration: none;
}
.wa:hover { background: var(--color-surface); }
.wa svg { width: 20px; height: 20px; flex: none; color: var(--color-success); }
body:has(.mnav[open]) .wa { display: none; }
main { display: block; }
[hidden] { display: none !important; }
.site-footer { padding-bottom: var(--space-16); }

/* Page sections (Phase 3) */
.h3 { font-family: var(--font-display); font-size: var(--text-h3-size); line-height: var(--text-h3-lh); font-weight: var(--text-h3-weight); }
.narrow { max-width: 880px; }
@media (min-width: 900px) {
  .grid-3 > * { flex-basis: calc((100% - 2 * var(--space-6)) / 3); }
  .grid-4 > * { flex-basis: calc((100% - 3 * var(--space-6)) / 4); }
}
ul.grid, ol.grid { list-style: none; padding: 0; margin: 0 0 var(--space-6); }
.grid > li + li { margin-top: 0; }
.band h2 + .grid, .band h2 + .cols { margin-top: var(--space-6); }
.grid + .grid { margin-top: var(--space-6); }
.card ul { margin: 0; }
.card-button { align-self: flex-start; margin-top: auto; }
.card .tag + * { margin-top: 0; }
.columns { columns: 2 260px; column-gap: var(--space-12); }
.columns li { break-inside: avoid; }

.page-hero .lead { margin-bottom: var(--space-6); }
.page-hero ul { max-width: var(--measure); }
.link-row { list-style: none; padding: 0; }
.link-row li + li { margin-top: 0; }

.missions { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.missions li + li { margin-top: 0; }

.rows { display: grid; gap: 0; margin: var(--space-6) 0 var(--space-8); }
.row { display: grid; gap: var(--space-2) var(--space-12); padding: var(--space-6) 0; border-top: 1px solid var(--color-line); }
.row p:last-child, .row ul:last-child, .row ol:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .row { grid-template-columns: 1fr 2fr; } }

.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: var(--space-3); max-width: var(--measure); }
.steps li { counter-increment: step; display: flex; gap: var(--space-3); align-items: baseline; margin: 0; }
.steps li::before { content: counter(step); flex: none; display: inline-grid; place-items: center; width: var(--space-8); height: var(--space-8); border-radius: var(--radius-pill); background: var(--color-gold-tint); color: var(--color-gold-text); font-weight: 600; }


.partner-group { margin-top: var(--space-8); }
.partners { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4); }
.partners li { margin: 0; border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-4); background: var(--color-ground); display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); min-height: var(--space-16); }
.partners img { max-height: 80px; max-width: 100%; width: auto; height: auto; align-self: flex-start; }
.partners li.dark { background: var(--color-night); color: var(--color-on-night); }
.partners li.dark .muted { color: var(--color-on-night-muted); }
.partners p { margin: 0; }
.partner-name { font-weight: 600; }

/* Home product tabs: the tab list appears only with JavaScript */
.tablist { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: var(--space-2); border-bottom: 1px solid var(--color-line); margin: var(--space-6) 0; }
.tablist [role="tab"] { min-height: 44px; padding: var(--space-2) var(--space-4); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--color-ink-muted); font-weight: 600; cursor: pointer; }
.tablist [role="tab"][aria-selected="true"] { color: var(--color-ink); border-bottom-color: var(--color-gold-text); }
.tablist [role="tab"]:hover { color: var(--color-ink); }
.tabpanel { margin-top: var(--space-8); align-items: start; }
.js .tabpanel { margin-top: 0; }
.js .tab-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Product catalogue */
.filter-line { font-weight: 600; }
.catalogue-group + .catalogue-group { margin-top: var(--space-12); }
.catalogue-group h2 { margin-bottom: var(--space-6); }

/* Product hero (night band) */
.product-hero { padding: var(--space-8) 0 var(--space-16); }
.product-hero-grid { display: grid; gap: var(--space-8); margin-top: var(--space-8); align-items: center; }
@media (min-width: 900px) { .product-hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-12); } }
.product-hero h1 { margin-bottom: 0; }
.product-hero h1 .tag { vertical-align: middle; }
.product-hero .tagline-2 { margin-bottom: var(--space-4); }
.product-hero .btn-row { margin-top: var(--space-6); }
.product-hero .slot { border-radius: var(--radius-none); }
/* Product facts (design review round 9): centred, no boxes; hairline dividers between them, two across on phones. */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--space-12) 0 0; padding-top: var(--space-8); border-top: 1px solid var(--color-night-line); row-gap: var(--space-8); text-align: center; }
.facts > div { padding: 0 var(--space-4); }
.facts > div:nth-child(even) { border-left: 1px solid var(--color-night-line); }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts > div + div { border-left: 1px solid var(--color-night-line); }
}
.facts .fact-n { color: var(--color-gold-bright); }
.facts dd { color: var(--color-on-night-muted); }
.facts dd { margin: 0; }
.fact-n { font-family: var(--font-display); font-size: var(--text-h2-size); line-height: var(--text-h2-lh); font-weight: var(--text-numeric-weight); font-variant-numeric: tabular-nums; margin-bottom: var(--space-2); }

.variant { border-top: 1px solid var(--color-line); padding-top: var(--space-8); margin-top: var(--space-8); scroll-margin-top: var(--space-4); }
.variant .cols { gap: var(--space-6); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); align-content: start; }
.tags li { margin: 0; background: var(--color-gold-tint); color: var(--color-gold-text); font-size: var(--text-min-size); line-height: var(--text-eyebrow-lh); font-weight: 600; padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); }
.link-card { max-width: 560px; }
.link-card h2 { margin: 0; }
.table-scroll { margin-top: var(--space-6); }
.table-scroll:focus-visible { outline: var(--focus-ring); }

/* Sticky quote (C-403): at the end of the page without JavaScript, fixed bottom-right with it */
.sticky-quote { padding: 0 var(--gutter) var(--space-8); text-align: right; }
.js .sticky-quote { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 14; padding: 0; visibility: hidden; opacity: 0; }
.js .sticky-quote.is-visible { visibility: visible; opacity: 1; transition: opacity var(--motion-base) var(--ease-out); }
@media (max-width: 599px) {
  .js .sticky-quote { left: 0; right: 0; bottom: 0; padding: var(--space-2) var(--space-4); background: var(--color-ground); border-top: 1px solid var(--color-line); }
  .js .sticky-quote .btn { width: 100%; }
  body:has(.sticky-quote.is-visible) .wa { bottom: calc(44px + var(--space-6)); }
}

/* Electronics in-page links */
.in-page ul { list-style: none; margin: 0; padding: var(--space-3) 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-6); }
.in-page li + li { margin-top: 0; }
.in-page a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
[id] { scroll-margin-top: calc(var(--header-height) + var(--space-4)); }

/* R&D status: icon, word and colour together (C-1602) */
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.legend li + li { margin-top: 0; }
.status { display: flex; align-items: flex-start; gap: var(--space-2); font-weight: 600; font-size: var(--text-label-size); line-height: var(--text-label-lh); }
.status svg { flex: none; width: 20px; height: 20px; }
.status-completed { color: var(--color-success); }
.status-active { color: var(--color-gold-text); }
.status-roadmap-1 { color: var(--color-info); }
.status-roadmap-3 { color: var(--color-ink-muted); }
.board .spec { margin: 0; }
/* R&D page, all night like the old site (design review): status pills, cards with a gold edge, a timeline, the
   doctrine as a large centred quote. Night status colours are mixed from the tokens towards on-night. */
.night .status-completed { color: var(--color-status-green); }
.night .status-active { color: var(--color-gold-bright); }
.night .status-roadmap-1 { color: var(--color-status-blue); }
.night .status-roadmap-3 { color: var(--color-status-purple); }
.night .legend .status, .night .board .status { border: 1px solid currentColor; border-radius: var(--radius-pill); padding: var(--space-1) var(--space-3); align-items: center; }
.night .board .status { border-radius: var(--radius-md); font-size: var(--text-small-size); line-height: var(--text-small-lh); }
.board .card { position: relative; border-top: 2px solid var(--color-gold-bright); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.board .card h3 { color: var(--color-on-night); }
.board .card p.small { color: var(--color-on-night-muted); }
.board-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-2); }
.board-top .status { margin: 0; }
.board-top .spec { flex: none; }
.timeline { display: grid; gap: var(--space-8); margin-top: var(--space-8); }
.timeline > div { position: relative; text-align: center; padding: var(--space-8) var(--space-4) 0; border-top: 1px solid var(--color-night-line); }
.timeline > div::before { content: ""; position: absolute; top: -6px; left: 50%; width: 11px; height: 11px; margin-left: -5px; border-radius: var(--radius-pill); background: var(--color-gold-bright); }
.timeline h3 { color: var(--color-gold-bright); }
.timeline ul { list-style: none; padding: 0; color: var(--color-on-night-muted); }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .timeline > div + div { border-left: 1px solid var(--color-night-line); }
}
.doctrine { margin: var(--space-8) auto 0; max-width: 900px; text-align: center; }
.doctrine p { font-family: var(--font-display); font-size: var(--text-h1-size); line-height: var(--text-h1-lh); font-weight: var(--text-h1-weight); margin: 0; }
.doctrine .accent { color: var(--color-gold-bright); }

/* Contact */
.contact-grid { display: grid; gap: var(--space-12); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.6fr; } }
address { font-style: normal; }
.map { margin: var(--space-4) 0; border-radius: var(--radius-md); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-3); padding: var(--space-4); text-align: center; }
.map-placeholder p { margin: 0; color: var(--color-ink-muted); }
.choice-link { text-decoration: none; color: var(--color-ink); }
.choice-link:hover { background: var(--color-surface); }
.form-cols { gap: 0 var(--space-4); }
.js .team-fields[hidden] { display: none; }

/* Resources filters */
.filters ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); align-items: center; }
.filters li + li { margin-top: 0; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); color: var(--color-ink); text-decoration: none; font-weight: 600; background: var(--color-ground); }
.filters a:hover { background: var(--color-surface); }
.filters a[aria-current="page"] { background: var(--color-gold-tint); border-color: var(--color-gold-text); color: var(--color-gold-text); }
.filters-label { font-weight: 600; margin-right: var(--space-2); }
.datasheets { margin-top: var(--space-12); }

/* Long-form text: articles, privacy, terms */
.prose { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.prose h2 { margin-top: var(--space-12); }
.prose h3 { margin-top: var(--space-8); }
.prose table { margin: var(--space-6) 0; }
.sources { font-size: var(--text-small-size); line-height: var(--text-small-lh); overflow-wrap: anywhere; }

/* FAQ disclosure list */
.faq { max-width: var(--measure); margin-top: var(--space-6); border-top: 1px solid var(--color-line); }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--space-4); min-height: 44px; padding: var(--space-4) 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--color-gold-text); font-weight: 600; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 var(--space-4); }

.role summary { cursor: pointer; }
.role h3 { display: inline; }

/* Home products as tiles (design review round 11): one row per group, dark starry tiles with the name and one
   line, a gold corner mark, lifting and glowing on hover. */
.tile-group + .tile-group { margin-top: var(--space-8); }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin: var(--space-6) 0 var(--space-3); }
.tile-head h3 { margin: 0; }
.tile-head a { font-weight: var(--text-label-weight); white-space: nowrap; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-3); }
.tiles li { margin: 0; display: flex; }
.tile { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: var(--space-1); min-height: 120px; padding: var(--space-4); border: 1px solid var(--color-night-line); border-radius: var(--radius-md); background: var(--color-night) url("/images/stars.svg"); color: var(--color-on-night); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out); }
.tile::before { content: ""; position: absolute; top: var(--space-3); right: var(--space-3); width: var(--space-3); height: var(--space-3); border: 0 solid var(--color-gold-bright); border-width: 1px 1px 0 0; }
.tile:hover { border-color: var(--color-gold-bright); box-shadow: var(--shadow-soft), var(--shadow-glow); }
.tile:focus-visible { outline: var(--focus-ring-on-night); }
.tile-name { font-family: var(--font-display); font-size: var(--text-h3-size); line-height: var(--text-h3-lh); font-weight: var(--text-h3-weight); }
.tile-line { font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--color-on-night-muted); }
.tile .tag { align-self: center; }
@media (prefers-reduced-motion: no-preference) { .tile:hover { transform: translateY(-3px); } }

/* Home: Why StellarGen in two columns, and the supply-chain band with the map (round 10). */
@media (min-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; column-gap: var(--space-12); }
  .why-grid .row { grid-template-columns: none; align-content: start; }
}
.supply-points { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-8); max-width: 960px; text-align: center; color: var(--color-on-night-muted); }
.supply-points li { margin: 0; }
.supply-points li::before { content: "\2726"; margin-right: var(--space-2); color: var(--color-gold-bright); font-size: var(--text-small-size); }
.night .map-panel { background: none; box-shadow: none; padding: 0; }

/* About: supply-chain map on a night panel (design review round 9): dotted land, gold source countries, blips. */
.map-panel { margin-top: var(--space-8); padding: var(--space-6); border-radius: var(--sheet-r); background: var(--color-night) url("/images/stars.svg"); color: var(--color-on-night); box-shadow: var(--shadow-deep); }
.supply-map { display: block; width: 100%; height: auto; }
.supply-map .links path { fill: none; stroke: var(--color-gold-bright); stroke-width: 1.5; stroke-opacity: .7; stroke-dasharray: 6 6; }
.supply-map .markers circle { fill: var(--color-gold-bright); stroke: var(--color-night); stroke-width: 2; }
.supply-map .pulses circle { fill: none; stroke: var(--color-gold-bright); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map-labels { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-3); }
.map-labels li { margin: 0; padding: var(--space-1) var(--space-4); border: 1px solid color-mix(in srgb, var(--color-gold-bright) 60%, transparent); border-radius: var(--radius-pill); font-weight: var(--text-label-weight); font-size: var(--text-label-size); line-height: var(--text-label-lh); }


/* Design review (Karan, 16 October 2026, option B): engineering grid on night bands, more night bands,
   two-column sections, larger headings and drone tiles in empty image slots. */
/* Night sky on every dark band (design review round 4: stars instead of the grid). The home hero has its own sky. */
.night, .mnav-panel { background-image: url("/images/stars.svg"); }
main .hero { background-image: none; }
@media (min-width: 900px) { .hero .wrap { min-height: min(calc(100vh - var(--header-height)), 760px); } }
.hero .accent { color: var(--color-gold); white-space: nowrap; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky .stars { fill: var(--color-on-night); }
.sky .const polyline { fill: none; stroke: var(--color-gold); stroke-opacity: .35; stroke-width: 1; }
.sky .const circle { fill: var(--color-gold); }
.sky .const .halo { fill-opacity: .15; }
.hero .galaxy { position: absolute; right: -6%; bottom: -22%; width: clamp(360px, 46vw, 720px); aspect-ratio: 1; transform: rotate(-28deg) scaleY(.42); pointer-events: none; }
.hero .galaxy img { display: block; width: 100%; height: 100%; }
@media (max-width: 899px) { .hero .galaxy { right: -45%; bottom: -12%; width: 110vw; opacity: .55; } }
.sky .shoot { opacity: 0; }
.sky .shoot line { stroke-width: 2; stroke-linecap: round; }
.sky .shoot circle { fill: var(--color-on-night); }

.hero .tagline { font-size: var(--text-h2-size); line-height: var(--text-h2-lh); }
.hero .eyebrow, .page-hero .eyebrow, .product-hero .eyebrow { display: flex; align-items: center; gap: var(--space-3); }
.hero .eyebrow::before, .page-hero .eyebrow::before, .product-hero .eyebrow::before { content: ""; flex: none; width: var(--space-8); height: 1px; background: currentColor; }

/* Headings: page H1 at display size, section H2 at H1 size with a short gold rule above. */
.page-hero h1, .product-hero h1 { font-size: var(--text-display-size); line-height: var(--text-display-lh); letter-spacing: var(--text-display-tracking); }
h2 { font-size: var(--text-h1-size); line-height: var(--text-h1-lh); font-weight: var(--text-h1-weight); letter-spacing: var(--text-h1-tracking); }
.prose h2 { font-size: var(--text-h2-size); line-height: var(--text-h2-lh); font-weight: var(--text-h2-weight); letter-spacing: normal; }
.band:not(.prose-band) h2:not(.h3)::before { content: ""; display: block; width: var(--space-12); height: 2px; background: var(--color-gold-text); margin-bottom: var(--space-4); }
.night.band h2:not(.h3)::before { background: var(--color-gold); }
.band:not(.prose-band) .eyebrow + h2:not(.h3)::before { display: none; }
.page-hero { border-bottom: 1px solid var(--color-line); }
.page-hero.night { border-bottom: 0; }

/* Panels in orbit (design review round 7): the night is one continuous sky and light sections float on it as panels
   with rounded corners, overlapping the dark band next to them, instead of hard stripes. */
main > :not(.night):not(.sticky-quote):not(.band-alt) { background-color: var(--color-ground); }
main > .night + :not(.night):not(.sticky-quote) { position: relative; z-index: 1; margin-top: calc(-1 * var(--sheet-r)); border-top-left-radius: var(--sheet-r); border-top-right-radius: var(--sheet-r); }
main > :not(.night):not(.sticky-quote):has(+ .night), main > :not(.night):not(.sticky-quote):nth-last-child(1 of :not(.sticky-quote)) { position: relative; z-index: 1; margin-bottom: calc(-1 * var(--sheet-r)); border-bottom-left-radius: var(--sheet-r); border-bottom-right-radius: var(--sheet-r); }
main > .night:not(.hero):has(+ :not(.night):not(.sticky-quote)) { padding-bottom: calc(var(--pad) + var(--sheet-r)); }
main > :not(.night):not(.sticky-quote) + .night { padding-top: calc(var(--pad) + var(--sheet-r)); }
main:has(> :not(.night):not(.sticky-quote):nth-last-child(1 of :not(.sticky-quote))) + .site-footer { padding-top: var(--sheet-r); }
/* Night bands that follow each other read as one sky: no second full gap between them. */
main > .night + .night.band { padding-top: var(--space-6); }
main > .night.band:has(+ .night) { padding-bottom: var(--space-6); }

/* Sticky glass header, as on the old site (design review round 8): stays in view while scrolling, the page shows
   blurred through it. Browsers without backdrop blur get a near-solid night background. */
.site-header.night { position: sticky; top: 0; z-index: 30; background-color: var(--color-night); background-image: none; transition: background-color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out); }
/* Round 10: at the top of the page the header is see-through and lies over the night hero, so the sky runs behind
   it with no line. Once the page scrolls (the script adds .is-scrolled) it turns into dark blurred glass. Without
   JavaScript, or on a page that does not open with a night band, it stays solid night. */
.js .site-header.night { background-color: color-mix(in srgb, var(--color-night) 90%, transparent); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 12px 32px -20px color-mix(in srgb, var(--color-night) 90%, transparent); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .js .site-header.night { background-color: var(--color-night); } }
.js body:has(main > .night:first-child) .site-header.night { margin-bottom: calc(-1 * var(--header-height)); }
.js body:has(main > .night:first-child) main > .night:first-child:not(.hero) { border-top: var(--header-height) solid transparent; }
.js body:has(main > .hero:first-child) main > .hero { padding-top: var(--header-height); }
.js:not(.is-scrolled) body:has(main > .night:first-child):not(:has(.nav-top[aria-expanded="true"], .mnav[open])) .site-header.night { background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }

/* Depth: cards and tiles lift off the page; buttons and linked cards glow gold on hover; light panels catch a gold
   rim where they meet the night. */
.card, .partners li, .tabpanel li a, .choice, .wa { box-shadow: var(--shadow-soft); }
.night .card { box-shadow: var(--shadow-deep); }
.card:has(a):hover, .tabpanel li a:hover { box-shadow: var(--shadow-soft), var(--shadow-glow); }
.night .card:has(a):hover { box-shadow: var(--shadow-deep), var(--shadow-glow); }
.btn-primary:hover { box-shadow: var(--shadow-glow); }
.product-hero .slot { box-shadow: var(--shadow-deep); }
main > .night + :not(.night):not(.sticky-quote) { box-shadow: 0 -1px 0 color-mix(in srgb, var(--color-gold) 40%, transparent), 0 -30px 70px -40px color-mix(in srgb, var(--color-gold) 35%, transparent); }

/* Vision and mission (design review round 8): a night panel with the galaxy in its corner, the two statements in
   display type side by side with a gold divider. Used on the home page (large) and the about page. */
.vm { position: relative; overflow: hidden; display: grid; gap: var(--space-8); margin: 0 0 var(--space-16); padding: var(--space-12) var(--space-6); border-radius: var(--sheet-r); background: var(--color-night) url("/images/stars.svg"); color: var(--color-on-night); box-shadow: var(--shadow-deep); }
.vm::after { content: ""; position: absolute; right: -140px; bottom: -200px; width: 480px; aspect-ratio: 1; background: url("/images/galaxy.webp") center / contain no-repeat; opacity: .4; transform: rotate(-24deg) scaleY(.45); pointer-events: none; }
.vm > div { position: relative; z-index: 1; margin: 0; }
.vm:last-child { margin-bottom: 0; }
.vm dt { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); font-family: var(--font-display); font-size: var(--text-h3-size); line-height: var(--text-h3-lh); font-weight: var(--text-h3-weight); color: var(--color-gold-bright); }
.vm dt::before { content: "\2726"; font-size: var(--text-small-size); }
.vm dd { margin: 0; font-family: var(--font-display); font-size: var(--text-h3-size); line-height: var(--text-h3-lh); font-weight: var(--text-h3-weight); }
.vm-lg dd { font-size: var(--text-h2-size); line-height: var(--text-h2-lh); }
.vm dd ul { font-family: var(--font-sans); font-size: var(--text-body-size); line-height: var(--text-body-lh); font-weight: var(--text-body-weight); color: var(--color-on-night-muted); list-style: none; padding: 0; margin: 0; }
.vm dd li { position: relative; padding-left: var(--space-6); }
.vm dd li::before { content: "\2726"; position: absolute; left: 0; color: var(--color-gold-bright); font-size: var(--text-small-size); }
@media (min-width: 900px) {
  .vm { grid-template-columns: 1fr 1fr; column-gap: var(--space-24); padding: var(--space-16) var(--space-12); }
  .vm::before { content: ""; position: absolute; left: 50%; top: var(--space-16); bottom: var(--space-16); width: 1px; background: color-mix(in srgb, var(--color-gold-bright) 45%, transparent); }
}

/* Two-column section: heading on the left, content on the right, from 900px. */
@media (min-width: 900px) {
  .split > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--space-16); row-gap: 0; align-items: start; }
  .split > .wrap > * { grid-column: 2; }
  .split > .wrap > h2:first-child { grid-column: 1; grid-row: 1 / span 12; }
  .split .faq, .split .missions { margin-top: 0; }
}
.band.join { padding-top: 0; }

/* Night bands: raised cards, gold links. */
.night .card { background: var(--color-night-raised); border-color: var(--color-night-line); color: var(--color-on-night); }
.night .card a { color: var(--color-gold); }
.night .card:has(a):hover { border-color: var(--color-gold); }
.contact-strip a:not(.btn) { color: var(--color-gold); }

/* Empty image slots: dark tile with the drone line drawing until a photo is uploaded. */
.slot:not(:has(img)):not(.map) { background: var(--color-night-raised) url("/images/slot-drone.svg") center / auto 64% no-repeat; border: 1px solid var(--color-night-line); }
.slot-portrait:not(:has(img)):not(.map) { background-image: url("/images/stars.svg"); background-size: auto; }
.slot .initials { color: var(--color-gold); }
.card .slot { aspect-ratio: auto; height: 184px; }
.card .slot-portrait { height: 240px; }

/* Home product tabs: links as compact rows. */
.tabpanel ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.tabpanel li + li { margin-top: 0; }
.tabpanel li a { display: block; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-ground); color: var(--color-ink); text-decoration: none; font-weight: var(--text-label-weight); font-size: var(--text-label-size); line-height: var(--text-label-lh); }
.tabpanel li a:hover { border-color: var(--color-gold-text); }
.tablist [role="tab"] { flex: none; white-space: nowrap; }

/* Motion (Phase 5, D-11, design-brief § Motion). Every effect sits behind prefers-reduced-motion: no-preference,
   and nothing hides content unless the script has run (C-011). */
@media (prefers-reduced-motion: no-preference) {
  /* H-1 hero drawing: frame, motors, rotor arcs, flight controller, RTK module, battery, lock brackets, then an
     8px lift; 1.8s in all (C-101). The text beside it shows at once. */
  .drone .p { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw var(--motion-slow) var(--ease-out) forwards; }
  .drone .p3 { stroke-dasharray: 4 7; stroke-dashoffset: 0; opacity: 0; animation: fade 300ms var(--ease-out) forwards; }
  .drone .p2 { animation-delay: 250ms; } .drone .p3 { animation-delay: 500ms; } .drone .p4 { animation-delay: 700ms; }
  .drone .p5 { animation-delay: 900ms; } .drone .p6 { animation-delay: 1100ms; }
  .drone .lock { opacity: 0; animation: fade 200ms var(--ease-out) 1450ms forwards; }
  .drone { animation: lift 200ms var(--ease-out) 1600ms forwards; }

  /* Hero sky: constellations draw in over 1.6 s, stars twinkle, a shooting star crosses every few seconds. */
  .sky .const polyline { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1300ms var(--ease-out) 200ms forwards; }
  .sky .const + .const polyline { animation-delay: 500ms; }
  .sky .const circle { opacity: 0; animation: fade 400ms var(--ease-out) 900ms forwards; }
  .sky .stars circle:nth-child(4n) { animation: twinkle 3.2s ease-in-out infinite; }
  .sky .stars circle:nth-child(4n+1) { animation: twinkle 4.6s ease-in-out 1.2s infinite; }
  .sky .shoot { animation: shoot 9s linear infinite; }
  .sky .s1 { --x0: 1500px; --y0: 40px; --x1: 860px; --y1: 360px; animation-duration: 7s; animation-delay: 1.2s; }
  .sky .s2 { --x0: 1100px; --y0: -60px; --x1: 420px; --y1: 280px; animation-duration: 9s; animation-delay: 3.5s; }
  .sky .s3 { --x0: 760px; --y0: -40px; --x1: 140px; --y1: 270px; animation-duration: 11s; animation-delay: 6s; }
  .sky .s4 { --x0: 1560px; --y0: 300px; --x1: 1000px; --y1: 580px; animation-duration: 8s; animation-delay: 8.5s; }
  .hero .galaxy img { animation: spin 300s linear infinite; }
  .marquee-track { animation: marquee 45s linear infinite; }
  .supply-map .links path { animation: flow 1.6s linear infinite; }
  .supply-map .pulses circle { animation: blip 2.4s ease-out infinite; }
  .supply-map .pulses circle:nth-child(2) { animation-delay: .4s; } .supply-map .pulses circle:nth-child(3) { animation-delay: .8s; }
  .supply-map .pulses circle:nth-child(4) { animation-delay: 1.2s; } .supply-map .pulses circle:nth-child(5) { animation-delay: 1.6s; }
  .supply-map .pulses circle:nth-child(6) { animation-delay: 2s; }
  .marquee-track:hover, .marquee:focus .marquee-track { animation-play-state: paused; }

  /* Fade and rise on scroll: only elements below the fold at load, marked by the script. */
  .reveal { transition: opacity var(--motion-slow) var(--ease-out), transform var(--motion-slow) var(--ease-out); }
  .reveal:not(.is-in) { opacity: 0; transform: translateY(var(--space-4)); }

  /* Card lift: 2px with a 1px gold-text edge. */
  .card { transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out); }
  .card:has(a) { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
  .card:has(a):hover { transform: perspective(900px) translateY(-2px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); border-color: var(--color-gold-text); }

  /* Design review: cards in a row arrive one after another; heading rules and figure corner marks draw in. */
  .grid > .reveal:nth-child(3n+2), .figures > .reveal:nth-child(2) { transition-delay: 90ms; }
  .grid > .reveal:nth-child(3n), .figures > .reveal:nth-child(3) { transition-delay: 180ms; }
  .figures > .reveal:nth-child(4) { transition-delay: 270ms; }
  h2.reveal::before { transform-origin: left; transition: transform 700ms var(--ease-out) 250ms; }
  h2.reveal:not(.is-in)::before { transform: scaleX(0); }

  /* Mega menu slides open. */
  .js .nav-top[aria-expanded="true"] + .mega { animation: slide var(--motion-base) var(--ease-out); }

  /* Icon draw-in (R&D status icons) and divider draw-in (rows, variants). */
  .reveal .status svg * { stroke-dasharray: 60; stroke-dashoffset: 60; }
  .reveal.is-in .status svg * { animation: draw var(--motion-slow) var(--ease-out) forwards; }
  .row.reveal, .variant.reveal { position: relative; border-top-color: transparent; }
  .row.reveal::before, .variant.reveal::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--color-line); transform: scaleX(0); transform-origin: left; }
  .row.reveal.is-in::before, .variant.reveal.is-in::before { animation: divider var(--motion-slow) var(--ease-out) forwards; }

  /* Product image tilt toward the pointer (desktop). The script sets --tilt-x and --tilt-y. */
  .product-hero .slot { transition: transform var(--motion-base) var(--ease-out); transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes twinkle { 50% { opacity: .15; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes blip { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes shoot {
  0% { transform: translate(var(--x0), var(--y0)); opacity: 0; }
  2% { opacity: 1; }
  12% { transform: translate(var(--x1), var(--y1)); opacity: 0; }
  100% { transform: translate(var(--x1), var(--y1)); opacity: 0; }
}
@keyframes fade { to { opacity: 1; } }
@keyframes lift { to { transform: translateY(-8px); } }
@keyframes slide { from { opacity: 0; transform: translateY(calc(-1 * var(--space-2))); } }
@keyframes divider { to { transform: scaleX(1); } }

/* RTK lock cursor (C-010): a ring that trails the arrow; four corner brackets around links and buttons.
   Created by the script only for a fine pointer with hover and no reduced motion. The arrow is never hidden. */
.rtk { position: fixed; left: 0; top: 0; z-index: 40; width: var(--space-6); height: var(--space-6); pointer-events: none; border: 2px solid var(--color-gold); border-radius: var(--radius-pill); opacity: 0; transition: width var(--motion-fast) var(--ease-out), height var(--motion-fast) var(--ease-out), border-radius var(--motion-fast) var(--ease-out), opacity var(--motion-fast); }
.rtk.is-on { opacity: 1; }
.rtk.is-lock { border-color: transparent; border-radius: 0; }
.rtk i { position: absolute; width: var(--space-2); height: var(--space-2); border: 0 solid var(--color-gold); opacity: 0; transition: opacity var(--motion-fast); }
.rtk.is-lock i { opacity: 1; }
.rtk i:nth-child(1) { left: -2px; top: -2px; border-width: 2px 0 0 2px; }
.rtk i:nth-child(2) { right: -2px; top: -2px; border-width: 2px 2px 0 0; }
.rtk i:nth-child(3) { left: -2px; bottom: -2px; border-width: 0 0 2px 2px; }
.rtk i:nth-child(4) { right: -2px; bottom: -2px; border-width: 0 2px 2px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

code { font-family: var(--font-mono); font-size: var(--text-spec-size); }
