/* Quiet waterfront palette. Fireworks provide the light, the interface stays subdued. */
:root {
  --ink: #292923; --ink-2: #34352f; --night: #0b0e11; --night-soft: #111619;
  --paper: #eeece5; --paper-2: #e5e2d9; --white: #f7f4ed; --muted: #82867f;
  --coral: #c7a477; --orange: #d3ae7e; --gold: #e6c697; --cyan: #a5b4ad;
  --blue: #919eac; --violet: #a89aab; --line: rgba(50,47,39,.15);
  --line-light: rgba(232,221,201,.13); --pad: clamp(22px,5vw,84px);
}
body { background: var(--paper); }
button, a, input, select { touch-action: manipulation; }
button, a { transition: color .2s, background .2s, border-color .2s; }
:focus-visible { outline: 2px solid #d9b88a; outline-offset: 4px; }
section[id] { scroll-margin-top: 36px; }
.site-header { height: 88px; border-bottom-color: rgba(232,221,201,.13); background: transparent; }
.brand { font-size: 18px; letter-spacing: .09em; }
.brand strong { color: #eee8de; }
.brand-mark::after { background: var(--gold); box-shadow: none; }
.main-nav a { font-size: 14px; font-weight: 500; }
.header-cta { padding: 12px 18px; font-size: 13px; font-weight: 500; border-radius: 3px; }
.hero { display: flex; align-items: center; min-height: 790px; height: min(900px,100svh); padding-top: 135px; padding-bottom: 105px; background: #0b0e11; }
.hero::before { z-index: 1; opacity: 1; background: linear-gradient(90deg,rgba(9,12,15,.97) 0%,rgba(9,12,15,.9) 25%,rgba(9,12,15,.52) 47%,transparent 70%); mask-image: none; pointer-events: none; }
.hero::after { inset: auto 0 0; width: 100%; height: 145px; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; background: linear-gradient(transparent,#0b0e11); pointer-events: none; }
.hero-sky { position: absolute; inset: 0; }
#heroCanvas { width: 100%; height: 100%; }
.hero-copy { width: 60%; max-width: 760px; }
.eyebrow { margin-bottom: 32px; color: #c7bba7; font-size: 11px; letter-spacing: .24em; }
.hero h1 { font-size: clamp(42px,4.7vw,72px); line-height: 1.3; font-weight: 500; letter-spacing: -.055em; word-break: keep-all; }
.hero h1 em { display: inline-block; margin-top: 4px; color: #d8b786; -webkit-text-stroke: 0; font-weight: 400; }
.hero-lead { margin-top: 28px; color: #b4b6b3; font-size: 17px; line-height: 1.95; font-weight: 400; }
.hero-actions { margin-top: 34px; gap: 27px; }
.button { min-height: 52px; padding: 0 24px; font-size: 14px; font-weight: 600; border-radius: 3px; }
.button-primary { color: #211e18; background: #dcc099; box-shadow: none; }
.button-primary:hover { background: #ead3b1; transform: none; }
.text-link { font-size: 13px; font-weight: 400; border-color: #696861; }
.hero-stats { gap: 35px; margin-top: 52px; }
.hero-stats div { gap: 10px; padding-right: 27px; border-right: 1px solid var(--line-light); }
.hero-stats div:last-child { border: 0; padding-right: 0; }
.hero-stats dt { font-size: 26px; color: #dad5ca; }
.hero-stats dd { color: #969a96; font-size: 12px; }
.hero-scene-note { position: absolute; z-index: 2; right: var(--pad); bottom: 75px; text-align: right; color: #b8ad97; }
.hero-scene-note span { font: 10px var(--mono); letter-spacing: .2em; }
.hero-scene-note p { margin: 9px 0; color: #d4ccbd; font-size: 13px; }
.sky-pause { position: absolute; z-index: 3; right: var(--pad); bottom: 30px; padding: 8px 0 8px 12px; border: 0; color: #aba99f; background: transparent; font-size: 12px; }
.sky-pause span { margin-left: 6px; }
.festival-ribbon { height: 54px; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: #101518; color: #969b97; }
.ribbon-track { justify-content: space-around; width: 100%; gap: 18px; padding: 0 22px; font-size: 10px; letter-spacing: .18em; animation: none; }
.ribbon-track i { color: #8c775c; font-size: 7px; }
.ribbon-track [aria-hidden] { display: none; }
.section-pad { padding-top: 100px; padding-bottom: 100px; }
.hero.section-pad { padding-top: 135px; padding-bottom: 105px; }
.section-heading { margin-bottom: 42px; }
.kicker { font-size: 11px; font-weight: 400; letter-spacing: .16em; }
.section-heading h2, .science-copy h2, .composition-intro h2 { font-size: clamp(34px,3.6vw,54px); line-height: 1.28; font-weight: 500; letter-spacing: -.045em; }
.section-heading > p { max-width: 470px; font-size: 15px; line-height: 1.85; }
.light-heading > p { color: #a2a6a3; }
.dark-heading .kicker { color: #806b4c; }
.simulator-section { background: #0b0e11; }
.simulator-frame, .drone-studio-frame { grid-template-columns: minmax(0,1fr) 335px; border: 1px solid var(--line-light); border-radius: 7px; overflow: hidden; background: #141a1d; box-shadow: 0 20px 70px #0003; }
.sim-stage, .drone-stage { min-height: 700px; background: #090d10; }
.control-panel, .drone-controls { padding: 25px; background: #141a1d; border-color: var(--line-light); }
.control-head div strong { font-size: 19px; font-weight: 500; }
.control-head div span { font-size: 10px; color: #969b97; }
.status-pill { color: #b6c4b3; border-color: #b6c4b333; background: transparent; font-size: 9px; }
.field-label, .control-fieldset legend { font-size: 14px; font-weight: 500; }
.field-label span, .control-fieldset legend span, .range-control label i { font-size: 10px; }
.select-wrap select { height: 45px; font-size: 14px; background: #0e1316; }
.range-control label { font-size: 13px; font-weight: 400; }
.range-control output { font-size: 12px; color: #d9c3a4; }
.range-control input, .rack-range input { min-height: 20px; margin-top: 5px; accent-color: #c7a477; }
.segmented button { height: 38px; font-size: 12px; background: #101518; }
.segmented button.active { color: #e8d2ae; background: #c7a47719; }
.toggle-row { flex-wrap: wrap; gap: 12px; }
.toggle-row label { color: #adb0aa; font-size: 12px; }
.toggle-row input:checked + span { background: #7c694c; }
.toggle-row input:focus-visible + span, .hybrid-switch input:focus-visible + span { outline: 2px solid #dcc099; outline-offset: 4px; }
.launch-button, .random-button { height: 48px; border-radius: 3px; font-size: 16px; font-weight: 500; }
.launch-button { background: #d5b589; color: #242018; }
.launch-button kbd { color: #534b40; border-color: #534b4040; font-size: 10px; }
.control-note { color: #949b95; font-size: 11px; line-height: 1.7; }
.live-badge { font-size: 10px; color: #aaa; }
.live-badge i { background: #c5b18e; box-shadow: none; animation: none; }
.scene-name span { font-size: 10px; }.scene-name strong { font-size: 14px; font-weight: 500; }
.stage-legend { font-size: 10px; }.launch-guide { font-size: 12px; }
.transport-bar { background: #0b0e11dc; }
.transport-bar > span, .speed-button { font-size: 11px; }
.fire-program-rack { display: grid; grid-column: 1/-1; grid-template-columns: 190px 1fr 160px 160px; gap: 0; border-bottom: 1px solid var(--line-light); background: #171c1e; }
.program-rack-title { display: flex; justify-content: center; flex-direction: column; gap: 8px; padding: 18px 22px; }
.program-rack-title span { color: #b9a17f; font: 9px var(--mono); letter-spacing: .1em; }
.program-rack-title strong { font-size: 14px; font-weight: 500; }
.fire-mode-switch { display: flex; align-items: center; gap: 4px; padding: 15px; }
.fire-mode-switch button { flex: 1; min-height: 40px; padding: 8px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #a5a9a5; font-size: 12px; }
.fire-mode-switch button.active { color: #e2c69e; border-color: #bc9b683d; background: #c7a47712; }
.sim-program-list { display: grid; grid-column: 1/4; grid-row: 2; grid-template-columns: repeat(6,1fr); border-top: 1px solid var(--line-light); }
.sim-program-chip { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 10px; border: 0; border-right: 1px solid var(--line-light); color: #9b9f9b; background: #111619; }
.sim-program-chip span { font-size: 17px; filter: saturate(.5); }.sim-program-chip b { font: 10px var(--mono); }
.sim-program-chip.active { color: #e4caa4; background: #242421; box-shadow: inset 0 -2px #c7a477; }
.rack-range { display: flex; justify-content: center; flex-direction: column; padding: 14px 18px; border-left: 1px solid var(--line-light); font-size: 11px; color: #afb1aa; }
.rack-range span { display: flex; justify-content: space-between; gap: 8px; }.rack-range output { color: #dfc9a8; font: 11px var(--mono); }
.rack-range input { width: 100%; }
.random-auto-button { grid-row: 2; grid-column: 4; border: 0; border-top: 1px solid var(--line-light); background: #282820; color: #ddc8a5; font-size: 12px; }
.random-auto-button.active { background: #c7a477; color: #211e18; }
.drone-section { background: #101619; }.drone-section::before { display: none; }
.drone-grid-overlay { display: none; }.drone-controls .control-head { border-color: var(--line-light); }
.drone-live, .drone-pattern-readout span { color: #adbbb0; }.drone-live i { background: #a9baa9; box-shadow: none; }
.drone-pattern-readout small { display: block; margin-top: 7px; color: #b1ab9b; font: 10px var(--mono); }
.drone-morph-meter { position: absolute; z-index: 5; top: 100px; right: 24px; display: flex; align-items: center; gap: 10px; font: 9px var(--mono); color: #a5aaa4; }
.drone-morph-meter i { width: 100px; height: 2px; background: #ffffff20; }.drone-morph-meter b { display: block; height: 100%; background: #b6ac95; }.drone-morph-meter em { font-style: normal; }
.drone-pattern-buttons button { min-height: 65px; color: #b7bcb6; font-size: 12px; background: #101518; }
.drone-pattern-buttons button.active, .drone-pattern-buttons button:hover { color: #e0c49b; border-color: #c7a477; background: #c7a47715; box-shadow: none; }
.drone-pattern-buttons button i { color: #b8bcaf; }.drone-palettes button { font-size: 11px; color: #aeb3ad; }
.drone-show-button { color: #211e18; background: #c7ad87; font-size: 14px; }
.drone-show-cues button { background: #151b1e; }.drone-show-cues button.active { border-color: #c7a477; background: #c7a47712; }
.drone-show-cues b { font-size: 14px; }.drone-show-cues small { font-size: 11px; }
.hybrid-switch b { font-size: 13px; }.hybrid-switch small { font-size: 11px; }
.drone-knowledge, .atlas-section, .festivals-section { background: #eeece5; }
.drone-knowledge { border-bottom: 1px solid var(--line); }
.space-pixel-panel, .drone-safety-balance { background: #151b1d; }.pixel-visual { background-color: #0e1417; }
.pixel-copy > p { font-size: 16px; }.drone-process p, .formation-atlas p, .history-line p, .drone-cases p { font-size: 14px; line-height: 1.85; }
.formation-atlas-head p, .history-copy p { font-size: 15px; }.comparison-row p { font-size: 13px; }
.drone-cases article { background: #f7f5ef; }.drone-safety-balance li span { font-size: 13px; }.safety-source p { font-size: 12px; }
.filter-chips button { min-height: 42px; font-size: 13px; border-radius: 3px; }.filter-chips button.active { background: #343831; border-color: #343831; }
.search-box { height: 44px; background: #f8f6f0; }.search-box input { font-size: 14px; }
.effect-grid { gap: 18px; border: 0; }.effect-card { padding: 20px; background: #f7f5ef; border: 1px solid #d8d5cb; border-radius: 5px; }
.effect-card:hover { z-index: 1; transform: translateY(-3px); box-shadow: 0 8px 25px #2221; }
.effect-preview { border-radius: 3px; background: #12191d; filter: saturate(.7); }.effect-card p { min-height: 75px; font-size: 14px; line-height: 1.8; }
.effect-index, .effect-en { font-size: 11px; }.effect-tag { font-size: 10px; }.effect-action { font-size: 13px; color: #716044; }
.science-section { background: #141a1d; }.science-copy > p { font-size: 16px; color: #b0b4ad; }.science-warning p { font-size: 12px; }
.quality-grid p { font-size: 14px; }.quality-grid h3 { font-weight: 500; }
.show-lab { background: #0e1316; }.preset-grid { gap: 12px; border: 0; }.preset-card { border: 1px solid var(--line-light); border-radius: 4px; background: #151b1e; }
.preset-card:hover, .preset-card.active { background: #262720; }.preset-card p, .preset-card .preset-key { font-size: 12px; }
.program-console { background: #141a1d; }.program-actions button { min-height: 44px; font-size: 13px; }.program-actions button:first-child { color: #211e18; }
.timeline-phase { color: #e5dccb; border: 0; border-top: 3px solid var(--phase); background: #242a29; filter: saturate(.45); font-size: 12px; }
.timeline-phase span { writing-mode: horizontal-tb; transform: none; }.cue-item p { font-size: 13px; }.adaptation-note { font-size: 12px; }
.timeline-scale, .cue-item span, .program-head p { font-size: 11px; }
.drone-main-play, .drone-next { font-size: 12px; }.drone-sequence-progress i.active { box-shadow: none; }
#droneSequenceTime, .drone-show-cues span { font-size: 10px; }.drone-palettes button.active { border-color: #c7a477; }
.drone-palettes button i { filter: saturate(.5); }.pixel-visual { background: #10171a; }
.world-board { background: #f7f5ef; }.festival-note p { font-size: 14px; }.festival-note a { color: #766247; font-size: 13px; }
.composition-section { background: #e4e1d7; }.grammar-grid p { font-size: 14px; }.grammar-grid article { background: #f1efe7; }
.site-footer { background: #0b1013; }.footer-brand p { font-size: 14px; }.footer-links a { font-size: 13px; }.footer-bottom { font-size: 10px; }
.sim-program-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
.sim-program-chip { min-height: 43px; border-bottom: 1px solid var(--line-light); }
.preset-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.drone-program-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; max-width: 1440px; margin: 0 auto 30px; }
.drone-program-card { position: relative; display: flex; min-width: 0; min-height: 236px; flex-direction: column; align-items: stretch; padding: 22px; border: 1px solid #ffffff1c; border-radius: 5px; background: linear-gradient(145deg,#19252b,#11191d); color: #e8e4d9; text-align: left; overflow: hidden; }
.drone-program-card:nth-child(2) { background: linear-gradient(145deg,#253039,#131b21); }
.drone-program-card:nth-child(3) { background: linear-gradient(145deg,#342823,#1b1715); }
.drone-program-card:nth-child(4) { background: linear-gradient(145deg,#302d23,#171b1b); }
.drone-program-card:hover, .drone-program-card.active { border-color: #c7a477; }
.drone-program-card.active { box-shadow: inset 0 -2px #c7a477; }
.drone-program-meta { display: flex; justify-content: space-between; gap: 8px; font: 10px var(--mono); letter-spacing: .05em; color: #b3b7b1; }
.drone-program-meta b { color: #ceb692; font-weight: 400; }
.drone-program-preview { display: block; width: calc(100% + 44px); max-width: none; height: auto; aspect-ratio: 1.75; margin: 16px -22px 5px; object-fit: contain; background: #0c1216; }
.drone-program-card strong { margin: 8px 0; font-size: 19px; font-weight: 500; letter-spacing: -.025em; line-height: 1.5; }
.drone-program-key { font-size: 12px; color: #a9afa9; line-height: 1.7; }
.drone-program-start { display: flex; margin-top: auto; padding-top: 22px; justify-content: space-between; font-size: 12px; color: #d5bc96; }
.drone-program-start i { font-style: normal; }
.drone-program-summary { display: flex; max-width: 1440px; margin: 40px auto 24px; align-items: center; justify-content: space-between; gap: 30px; }
.drone-program-summary h3 { margin: 12px 0 8px; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.drone-program-summary p { max-width: 760px; margin: 0; font-size: 14px; line-height: 1.8; color: #a5aea7; word-break: keep-all; }
.drone-watch-button { flex-shrink: 0; padding: 13px 20px; border: 1px solid #c7a47760; border-radius: 3px; background: #c7a47712; color: #dfc7a5; font-size: 13px; }
.drone-stage { min-height: 840px; }
.drone-pattern-buttons { grid-template-columns: repeat(3,1fr); }
.drone-pattern-buttons button { min-height: 48px; gap: 4px; padding: 5px 2px; font-size: 11px; }
.drone-pattern-buttons button i { font-size: 19px; }
.drone-story-caption { position: absolute; z-index: 5; left: 28px; right: 28px; bottom: 110px; pointer-events: none; text-shadow: 0 2px 12px #000; }
.drone-story-caption > span { display: block; color: #b3b7aa; font: 10px var(--mono); letter-spacing: .1em; }
.drone-story-caption strong { display: block; margin-top: 8px; color: #ede3cf; font-size: 23px; font-weight: 500; }
.drone-story-caption p { max-width: 650px; margin: 7px 0 0; color: #b4b9b0; font-size: 12px; line-height: 1.7; }
.drone-axis-labels { display: none; }
.drone-show-cues { grid-template-columns: repeat(var(--chapters,6),minmax(0,1fr)); }
.drone-show-cues button { min-width: 0; padding: 17px 13px; }
.drone-show-cues b { line-height: 1.5; font-weight: 500; }
.drone-show-cues small { color: #9ca79d; font-size: 10px; line-height: 1.6; }
.show-reference { max-width: 1440px; margin: 24px auto 0; padding: 18px 0; border-top: 1px solid var(--line-light); color: #a6aea6; font-size: 12px; line-height: 1.8; }
.show-reference summary { width: fit-content; cursor: pointer; color: #c6b899; }
.show-reference p { max-width: 1000px; }
.show-reference a { display: block; margin-top: 12px; color: #d1c6b0; overflow-wrap: anywhere; }
.show-reference a span { display: block; color: #899b9b; font: 11px/1.8 var(--mono); }
.fire-reference { margin: 0 24px; }
@media (max-width:1120px) {
  .main-nav { background: #141a1df5; border-color: var(--line-light); backdrop-filter: blur(16px); box-shadow: 0 10px 35px #0005; }
  .main-nav a { font-size: 13px; }.hero-copy { width: 70%; }
  .simulator-frame, .drone-studio-frame { grid-template-columns: 1fr; }
  .fire-program-rack { grid-template-columns: 165px 1fr 145px; }.rack-range:last-of-type { grid-row: 2; grid-column: 3; }
  .sim-program-list { grid-column: 1/3; }.random-auto-button { grid-row: 3; grid-column: 1/-1; min-height: 44px; }
  .control-panel, .drone-controls { display: flex; }.sim-stage, .drone-stage { min-height: 610px; }
  .drone-program-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .drone-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .drone-pattern-fieldset, .drone-show-button, .drone-controls .control-note { grid-column: 1/-1; }
  .drone-pattern-buttons { grid-template-columns: repeat(6,1fr); }
  .drone-show-cues { grid-template-columns: repeat(var(--chapters,6),minmax(140px,1fr)); overflow-x: auto; }
}
@media (max-width:760px) {
  .site-header { height: 72px; }.brand { font-size: 16px; }
  .main-nav { justify-content: space-around; gap: 4px; padding: 10px; }.main-nav a { font-size: 11px; padding: 8px 5px; }
  .hero.section-pad { height: auto; min-height: 840px; padding-top: 270px; padding-bottom: 80px; align-items: flex-start; }
  .hero::before { background: linear-gradient(0deg,#0b0e11 0%,rgba(11,14,17,.94) 26%,rgba(11,14,17,.6) 49%,transparent 80%); }
  .hero-copy { width: 100%; }.eyebrow { font-size: 10px; margin-bottom: 20px; }.hero h1 { font-size: clamp(34px,8.5vw,55px); line-height: 1.35; }
  .hero-lead { margin-top: 22px; font-size: 15px; line-height: 1.85; }.hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
  .button { padding: 0 17px; font-size: 13px; }.text-link { font-size: 12px; }.hero-stats { gap: 20px; margin-top: 35px; }
  .hero-stats div { padding-right: 19px; }.hero-stats dt { font-size: 24px; }.hero-stats dd { font-size: 10px; margin-top: 10px; }
  .hero-scene-note { display: none; }.sky-pause { bottom: 22px; font-size: 11px; }
  .festival-ribbon { height: 42px; }.ribbon-track { width: max-content; gap: 22px; font-size: 9px; }
  .section-pad { padding-top: 66px; padding-bottom: 66px; }.section-heading > p { font-size: 14px; }.section-heading h2 { font-size: 34px; }
  .fire-program-rack { grid-template-columns: 1fr 1fr; }.program-rack-title { grid-column: 1/-1; padding: 18px; flex-direction: row; justify-content: space-between; align-items: center; }
  .program-rack-title strong { font-size: 13px; }.fire-mode-switch { grid-column: 1/-1; padding: 0 12px 14px; }
  .sim-program-list { grid-column: 1/-1; grid-row: auto; grid-template-columns: repeat(4,minmax(0,1fr)); }.sim-program-chip { min-height: 45px; border-bottom: 1px solid var(--line-light); gap: 4px; padding: 6px 2px; }.sim-program-chip b { font-size: 8px; }
  .rack-range, .rack-range:last-of-type { grid-row: auto; grid-column: auto; }.random-auto-button { grid-column: 1/-1; grid-row: auto; min-height: 46px; }
  .sim-stage, .drone-stage { min-height: 540px; }.simulator-frame, .drone-studio-frame { border-radius: 0; }.control-panel, .drone-controls { padding: 24px; }
  .transport-bar { grid-template-columns: 32px 36px 1fr 36px 28px 28px; gap: 5px; }.reset-button { display: block; }
  .drone-pattern-readout { display: none; }.drone-morph-meter { top: 74px; }.drone-live { font-size: 10px; }
  .effect-grid { gap: 12px; }.effect-card p { font-size: 14px; }.effect-card { min-height: 360px; }
  .quality-grid p { font-size: 13px; }.preset-card h3 { font-size: 16px; }.preset-card p { line-height: 1.7; }
  .science-copy > p { font-size: 15px; }.drone-cases p { min-height: auto; }.footer-links { gap: 24px; }
  .hero-stats { gap: 15px; }.hero-stats div { padding-right: 13px; }.hero-stats dt { font-size: 22px; }
  .drone-program-grid { margin: 0 20px 24px; gap: 10px; }.drone-program-card { padding: 15px; min-height: 235px; }
  .drone-program-preview { width: calc(100% + 30px); margin: 14px -15px 5px; }
  .drone-program-meta { font-size: 8px; }.drone-program-card strong { font-size: 16px; }.drone-program-key { font-size: 11px; }
  .drone-program-summary { margin: 32px 20px 24px; align-items: flex-start; flex-direction: column; gap: 18px; }.drone-program-summary h3 { font-size: 23px; }
  .drone-controls { display: flex; }.drone-pattern-buttons { grid-template-columns: repeat(4,1fr); }
  .drone-story-caption { left: 20px; right: 20px; bottom: 84px; }.drone-story-caption strong { font-size: 19px; }.drone-story-caption p { font-size: 11px; }
  .drone-next { display: block; font-size: 10px; padding: 0 5px; }.drone-sequence-bar { grid-template-columns: auto 1fr auto; }.drone-sequence-progress { display: none; }
  .drone-main-play { font-size: 11px; }.show-reference { margin: 24px 20px 0; }.preset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
