:root {
  color-scheme: dark;
  --black: #000;
  --gold: #d4af64;
  --gold-bright: #e3bd72;
  --gold-body: #c29e57;
  --gold-dim: #96763d;
  --heat: #a84127;
  --settle: cubic-bezier(.2,.72,.18,1);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { background: var(--black); }
body { margin: 0; background: var(--black); color: var(--gold); min-height: 100svh; }
button, input { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, input:focus-visible { outline: 1px solid var(--gold); outline-offset: 5px; border-radius: 4px; }
button, input { -webkit-appearance: none; }
.masthead { height: 94px; max-width: 1320px; margin: auto; padding: 20px 48px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .21em; font-weight: 450; padding: 14px 0; color: #c09b54; }
.brand-logo { display: block; width: 36px; height: 36px; flex: 0 0 36px; }
@media (max-width:350px) { .brand { gap: 6px; } .brand-logo { width: 28px; height: 28px; flex-basis: 28px; } }
#time { font-size: 21px; font-weight: 350; letter-spacing: -.04em; color: #cba65f; font-variant-numeric: tabular-nums; }
#time span { font-size: 12px; margin-left: 3px; letter-spacing: .04em; color: #a28244; }
main { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.constellation { position: relative; height: calc(100svh - 234px); min-height: 480px; max-height: 860px; isolation: isolate; }
.arrival-controls { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; z-index: 6; height: 44px; color: var(--gold-dim); }
.arrival-controls button { min-height: 44px; font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
.arrival-controls button:first-child span { margin-left: 8px; color: var(--gold); }
.icon-button { width: 44px; min-height: 44px; font-size: 23px!important; font-weight: 250; padding: 0; color: #ad8946; }
.brief-navigation { height: 44px; display: flex; align-items: center; justify-content: center; gap: 24px; }
#dots { display: flex; gap: 0; }
#dots button { width: 30px; height: 44px; padding: 20px 7px; }
#dots button::after { content: ''; display: block; height: 1px; width: 100%; background: #6f5128; transition: background .5s, box-shadow .5s; }
#dots button[aria-current='true']::after { background: #dbb364; box-shadow: 0 0 4px #bc78282b; }
#rotation { min-height: 44px; font-size: 12px; color: #a68445; }
#rotation span { margin-left: 9px; font-size: 11px; }
body:not(.briefing) .brief-navigation { visibility: hidden; }
body:not(.briefing) .arrival-controls { visibility: hidden; }
/* Every node is retained. Its boundary, content and feedback belong to one object. */
.intelligence { position: absolute; top: 0; left: 0; transform-origin: 0 0; isolation: isolate; will-change: transform, opacity; color: var(--gold); }
.shell { position: absolute; inset: 0; border-radius: var(--shape, 48%); pointer-events: none; transition: border-radius .65s var(--settle); }
.shell::before, .shell::after { content: ''; position: absolute; inset: 0; border: 1px solid transparent; border-radius: inherit; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.shell::before { background: linear-gradient(var(--light-angle, 135deg),#b18a40 0%,#e4be715e 18%,#b88b3b20 37%,#5d41191f 49%,#8c612529 64%,#ce9c483d 86%,#ce9f4c99 100%) border-box; opacity: var(--luminance,.65); transition: opacity .6s; }
.shell::after { background: conic-gradient(from var(--energy-angle),transparent 0deg,transparent 245deg,#ae622835 275deg,#c3924699 310deg,#edbc68 332deg,transparent 350deg) border-box; opacity: 0; }
.heat { position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .65s; }
.heat::before { content: ''; position: absolute; inset: 0; border: 1px solid transparent; border-radius: inherit; background: linear-gradient(145deg,transparent 55%,#8e2e192b 68%,#af462ec9 80%,transparent 94%) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0); mask-composite: exclude; }
.heat::after { content: ''; position: absolute; width: 45%; height: 34%; right: 0; bottom: 5%; border-radius: 50%; background: radial-gradient(ellipse,#8e2c1814,transparent 70%); }
.intelligence[data-urgent='true'] .heat { opacity: 1; }
.intelligence[data-urgent='true'] .object-value { color: #c89555; }
.intelligence.confirming .heat { opacity: 0; }
.intelligence.energized .shell::after, .intelligence.confirming .shell::after { animation: energy .65s linear both; }
@property --energy-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes energy { 0% { --energy-angle: 0deg; opacity: 0; } 12% { opacity: .85; } 78% { opacity: .85; } 100% { --energy-angle: 360deg; opacity: 0; } }
.rest-face { position: absolute; inset: 0; width: 100%; height: 100%; padding: 16px 14px; border-radius: var(--shape,48%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; user-select: none; transition: opacity .18s; }
.object-kicker { font-size: 11px; font-weight: 450; letter-spacing: .1em; color: #a98745; line-height: 1.2; text-transform: uppercase; }
.object-name { font-size: clamp(23px,2.4vw,32px); line-height: 1.1; font-weight: 350; letter-spacing: -.05em; color: #dab367; text-wrap: balance; }
.object-value { font-size: 14px; font-weight: 350; line-height: 1.4; color: #b28d49; text-wrap: balance; max-width: 180px; }
.object-note { font-size: 12px; line-height: 1.25; color: #96703a; max-width: 175px; }
.intelligence[data-rank='1'] .object-name { font-size: 25px; }
.intelligence[data-rank='1'] .object-value { font-size: 13px; }
.intelligence[data-domain='events'] .object-name { font-size: 27px; }
.intelligence[data-domain='events'][data-rank='4'] .object-name { font-size: 31px; }
.intelligence[data-domain='events'][data-rank='4'] .object-kicker { color: #bc9350; }
.intelligence[data-domain='events'][data-rank='4'] .object-value { color: #d0a354; }
.expanded-face { position: absolute; inset: 0; padding: 38px 42px 40px; opacity: 0; visibility: hidden; pointer-events: none; display: flex; flex-direction: column; transition: opacity .18s, visibility .18s; }
.intelligence.expanded { z-index: 4; }
.intelligence.expanded .shell { border-radius: 21% 19% 22% 18% / 20% 22% 18% 21%; background: #000; }
.intelligence.expanded .shell::before { opacity: .72; }
.intelligence.expanded .rest-face { opacity: 0; pointer-events: none; }
.intelligence.expanded .expanded-face { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .36s .12s, visibility 0s; }
.object-navigation { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 0 2px; margin: 0 0 8px; }
.object-navigation button:first-child { font-size: 12px; color: #a47e3d; min-height: 44px; padding: 0; }
.object-content { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #715126 transparent; padding: 0 4px 15px; }
.object-content h2 { font-size: 35px; font-weight: 350; letter-spacing: -.055em; line-height: 1.16; color: #dcb66b; margin: 4px 0 24px; }
.object-content .eyebrow { font-size: 12px; line-height: 1.4; font-weight: 400; color: #a98240; letter-spacing: .06em; margin: 10px 0 14px; }
.object-content p { font-size: 16px; line-height: 1.65; color: #bd9751; }
.object-content .detail { margin: 14px 0 22px; }
.object-content .scope { color: #94723a; font-size: 12px; margin-top: 24px; }
.fact { width: 100%; min-height: 48px; padding: 12px 0; text-align: left; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; line-height: 1.5; font-size: 16px; font-weight: 350; color: #c49c51; }
.fact + .fact { margin-top: 2px; }
.fact:hover, .fact:focus-visible { color: #e1b666; }
.brief-content .fact { font-size: 21px; font-weight: 350; line-height: 1.45; letter-spacing: -.02em; }
.brief-content h2 { font-size: 30px; margin-bottom: 16px; }
.confirmation-surface { width: 100%; border: 0; padding: 15px 0; min-height: 48px; text-align: left; color: #c8a253; font-size: 13px; letter-spacing: .01em; }
.confirmation-surface::before { content: '◦'; font-size: 22px; vertical-align: -1px; margin-right: 10px; color: #d8ad59; }
.confirmation-surface:hover { color: #e1b865; }
.load-distribution { margin: 20px 0; }
.load-distribution div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 10px 0; }
.load-distribution dt { font-size: 19px; font-weight: 350; color: #ba9450; }
.load-distribution dd { font-size: 15px; color: #a8803d; margin: 0; white-space: nowrap; }
.load-distribution div:first-child dt { color: #e0b66a; font-size: 27px; }
.load-distribution div:first-child dd { color: #d0a257; }
.reservation-list { margin: 12px 0 18px; }
.reservation-list div,.reservation-list button { width:100%; display: grid; grid-template-columns: 78px 1fr 28px; gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #4b361d; color: #bb9550; text-align:left; }
.reservation-list button:hover,.reservation-list button:focus-visible { color:#e1b666; }
.reservation-list time,.reservation-list small { color: #8f6d37; font-size: 12px; }
.reservation-list strong { color: #d6aa5c; font-weight: 400; text-align: right; }
.reservation-list small { grid-column: 2 / 4; }
.all-section + .all-section { margin-top: 27px; }
.all-section h3 { color: #d1a452; font-size: 14px; font-weight: 400; letter-spacing: .03em; margin: 12px 0; }
.feedback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center; color: #e2b86a; font-size: 19px; font-weight: 350; pointer-events: none; opacity: 0; z-index: 6; transition: opacity .2s; }
.intelligence.confirming .feedback { opacity: 1; transition-delay: .15s; }
.intelligence.confirming .rest-face, .intelligence.confirming .object-content { opacity: .08; transition: opacity .2s; }
.inline-message { color: #c4a05b; font-size: 13px; }
.welcome, .farewell, .quiet-state { position: absolute; top: 42%; left: 0; width: 100%; text-align: center; font-size: 29px; font-weight: 300; letter-spacing: -.04em; color: #caa157; pointer-events: none; }
.welcome { opacity: 0; transform: translateY(3px); transition: opacity .65s ease,transform .8s ease; }
body.intro .welcome { opacity: 1; transform: translateY(0); }
body.intro .intelligence { opacity: 0!important; visibility: hidden; pointer-events: none; }
body.intro .arrival-controls,body.intro .brief-navigation { opacity: 0; visibility: hidden; }
.arrival-controls,.brief-navigation { transition: opacity .55s ease; }
.quiet-state { font-size: 19px; color: #a17c3a; }
footer { position: relative; z-index: 7; width: min(100%,760px); padding: 7px 34px max(21px,env(safe-area-inset-bottom)); margin: auto; background: #000; }
#ask { display: flex; align-items: center; gap: 14px; padding: 0 0 7px; border: 0; background: none; }
#ask:focus-within { border: 0; }
.ask-mark { font-size: 22px; color: #c2984b; }
#query { min-width: 0; flex: 1; height: 44px; border: 0; outline: none; background: none; color: #d0a65c; font-size: 16px; font-weight: 350; }
#query::placeholder { color: #a68140; opacity: 1; }
#ask button { width: 44px; height: 44px; font-size: 19px; color: #ac843e; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #86632e; padding-top: 3px; }
.demo-controls button { min-height: 44px; font-size: 12px; padding: 0 2px; color: #a17b38; }
.demo-controls #advance { color: #b48c44; }
.demo-controls #reverse { color: #9d7738; }
.demo-controls button:disabled { color: #4d3a20!important; cursor: default; }
.shift-note-panel { position: absolute; left: 24px; right: 24px; bottom: 72px; z-index: 12; padding: 20px; border: 1px solid #77582d; border-radius: 18px; background: #050403; box-shadow: 0 -20px 60px #000; }
.shift-note-panel label { display: block; color: #d5aa5d; font-size: 14px; margin-bottom: 10px; }
.shift-note-panel textarea { width: 100%; resize: none; border: 1px solid #5e4525; border-radius: 10px; background: #000; color: #d6ad65; padding: 12px; font: inherit; font-size: 16px; outline: none; }
.shift-note-panel textarea:focus { border-color: #bd914a; }
.shift-note-panel div { display: flex; justify-content: flex-end; gap: 18px; margin-top: 8px; }
.shift-note-panel button { min-height: 44px; color: #bd9450; }
.note-saved { position: absolute; bottom: 68px; left: 0; right: 0; text-align: center; color: #c59d56; font-size: 12px; pointer-events: none; }
#shift-note-trigger { color: #aa8340; }
#advance span { margin-left: 9px; }
.separator { margin-inline: 5px; }
#replay { margin-left: auto; margin-right: 19px; }
body.briefing #replay { visibility: hidden; }
.answer { padding: 20px 10px 25px; max-height: 43svh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #705322 transparent; background: #000; }
.answer button { float: right; width: 44px; height: 44px; margin: -10px -10px 0 5px; font-size: 23px; color: #ad8239; }
.answer p { color: #bd9752; font-size: 16px; line-height: 1.6; }
.answer .question { color: #ddb064; font-size: 23px; font-weight: 350; letter-spacing: -.03em; }
.answer .answer-time { color: #96713a; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none!important; }
@media (min-width:1000px) { .constellation { min-height: 535px; } .object-value { font-size: 15px; } .object-note { font-size: 13px; } }
@media (max-width:600px) {
  .masthead { height: 78px; padding: 15px 24px; }
  .brand { font-size: 11px; letter-spacing: .15em; }
  #time { font-size: 20px; }
  #time span { font-size: 11px; }
  main { padding: 0 14px; }
  .constellation { height: calc(100svh - 222px); min-height: 430px; }
  .arrival-controls { top: 0; gap: 10px; }
  .arrival-controls button { font-size: 12px; }
  .rest-face { padding: 14px 10px; gap: 6px; }
  .object-name { font-size: 25px; }
  .object-kicker { font-size: 10px; letter-spacing: .06em; }
  .object-value { font-size: 13px; line-height: 1.35; max-width: 148px; }
  .object-note { font-size: 11px; line-height: 1.3; max-width: 150px; }
  .intelligence[data-rank='1'] .object-name { font-size: 22px; }
  .intelligence[data-rank='1'] .object-value { font-size: 12px; }
  .intelligence[data-domain='events'] .object-name { font-size: 22px; max-width: 145px; }
  .intelligence[data-domain='events'][data-rank='4'] .object-name { font-size: 28px; max-width: 180px; }
  .expanded-face { padding: 30px 25px; }
  .object-content h2 { font-size: 29px; margin-bottom: 19px; }
  .object-content .eyebrow { font-size: 12px; }
  .brief-content h2 { font-size: 29px; }
  .brief-content .fact { font-size: 19px; }
  .object-content p { font-size: 16px; }
  footer { padding-inline: 24px; }
  #query { font-size: 16px; }
  .demo-controls, .demo-controls button { font-size: 11px; }
  .demo-controls { flex-wrap: wrap; justify-content: center; column-gap: 16px; }
  .demo-controls #day { flex-basis: 100%; text-align: center; }
  #replay { margin-right: 9px; }
  .load-distribution { margin: 8px 0; }
  .load-distribution dt { font-size: 18px; }
  .load-distribution dd { font-size: 14px; }
}
@media (max-width:350px) { .masthead { padding-inline: 18px; } .brand { font-size: 10px; } main { padding-inline: 8px; } footer { padding-inline: 18px; } #replay { margin-right: 2px; } .object-value { font-size: 12px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration: .01ms!important; transition-duration: .01ms!important; scroll-behavior: auto!important; } .intelligence { will-change: auto; } }
.intelligence.receded .object-kicker,.intelligence.receded .object-note{display:none}.intelligence.receded .object-name,.intelligence.receded[data-domain='events'] .object-name{font-size:18px}.intelligence.receded .object-value{font-size:11px}.intelligence.receded .rest-face{gap:5px;padding:10px}
::selection{background:#62441f;color:#e1b66b}
@media(max-width:350px){.intelligence[data-domain='events'][data-rank='4'] .object-name{font-size:25px}.intelligence[data-domain='events'][data-rank='4'] .rest-face{padding:10px 9px;gap:5px}.intelligence[data-domain='events'][data-rank='4'] .object-note{font-size:10px}.intelligence[data-rank='1'] .rest-face{padding:9px}.intelligence[data-domain='events'][data-rank='1'] .object-name{font-size:20px}}
.constellation{height:calc(100svh - 264px)}footer{position:sticky;bottom:0}
@media(max-width:600px){.constellation{height:calc(100svh - 248px);min-height:390px}}
/* Contained energy: layered light, no continuous particles. */
html,body,main,.constellation{background:#000000}
.ask-space{height:51px;display:flex;align-items:center;justify-content:center}
#ask-trigger{min-height:44px;padding:0 12px;color:#b58e45;font-size:14px;font-weight:350;letter-spacing:-.01em}
#ask-trigger span{font-size:23px;vertical-align:-2px;margin-right:9px;color:#d8ad5e}
#ask{width:100%;border:0!important;box-shadow:none;background:none;outline:0}
.shell{animation:contained-breath var(--breath-duration,11s) ease-in-out infinite,perimeter-drift 27s ease-in-out infinite alternate;animation-delay:var(--phase,0s),var(--phase,0s);transform-origin:center;will-change:transform}
.shell::before{border-width:1.9px;background:linear-gradient(var(--light-angle,135deg),#f2c46bc7 0%,#f9db96 3%,#dbaa539e 10%,#bc853c4a 23%,#8d582428 38%,#8856221c 49%,#c28b3b55 66%,#e8b8629e 85%,#f5ce82c7 97%,#e5b7649e 100%) border-box;animation:core-luminance var(--breath-duration,11s) ease-in-out infinite;animation-delay:var(--phase,0s)}
.falloff,.filament{position:absolute;pointer-events:none;border-radius:inherit}
.falloff{inset:-2px;border:5px solid transparent;background:linear-gradient(var(--light-angle,135deg),#d8a044b3,#b9772940 31%,#8c55151c 52%,#e5b1519c 89%,#d5993594) border-box;-webkit-mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);mask-composite:exclude;filter:blur(2.3px);opacity:.23;animation:falloff-luminance var(--breath-duration,11s) ease-in-out infinite;animation-delay:var(--phase,0s)}
.filament{inset:2px -1px -1px 2px;border:.7px solid transparent;background:linear-gradient(235deg,transparent 6%,#e5b56038 18%,transparent 38%,#dca75242 59%,transparent 73%,#e3ae5261 95%) border-box;-webkit-mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);mask-composite:exclude;opacity:.8;animation:filament-drift 23s ease-in-out infinite alternate;animation-delay:var(--phase,0s)}
@keyframes contained-breath{0%,100%{transform:scale(1) rotate(-.12deg)}50%{transform:scale(1.014) rotate(.22deg)}}
@keyframes perimeter-drift{from{border-radius:var(--shape)}to{border-radius:var(--shape-drift,var(--shape))}}
@keyframes core-luminance{0%,100%{opacity:var(--luminance,.8)}50%{opacity:calc(var(--luminance,.8) * .89)}}
@keyframes falloff-luminance{0%,100%{opacity:.20}50%{opacity:.27}}
@keyframes filament-drift{from{transform:rotate(-.6deg) scale(1,.997)}to{transform:rotate(.55deg) scale(.995,1.004)}}
.intelligence.expanded .shell,.intelligence.confirming .shell{animation:none;transform:none}
.intelligence.expanded .falloff{opacity:.13;animation:none}
.intelligence.expanded .filament{animation:none;opacity:.4}
.sparks{position:absolute;inset:0;pointer-events:none;z-index:8}
.spark{position:absolute;width:1.7px;height:1.7px;border-radius:50%;background:#f3cd7d;box-shadow:0 0 2px #d4933866;opacity:0;animation:change-spark 390ms ease-out both}
@keyframes change-spark{0%{opacity:0;transform:translate(0,0) scale(.6)}18%{opacity:.85;transform:translate(0,0) scale(1)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.3)}}
.intelligence[data-rank='4'] .falloff{filter:blur(2.6px)}
@media(prefers-reduced-motion:reduce){.shell,.shell::before,.falloff,.filament,.spark{animation:none!important}.spark{display:none}.shell{will-change:auto}}
/* Compact banner: roughly 70% of its former vertical footprint, without scaling text. */
footer { padding-top: 5px; padding-bottom: max(14px,env(safe-area-inset-bottom)); }
.ask-space { height: 36px; }
#ask-trigger { min-height: 32px; }
#ask { padding-bottom: 0; }
#query, #ask button { height: 32px; }
.demo-controls { padding-top: 2px; gap: 8px; }
.demo-controls button { min-height: 32px; }
.constellation { height: calc(100svh - 226px); }
@media(max-width:600px) {
  .demo-controls { column-gap: 10px; row-gap: 4px; }
  #replay { margin-left: 0; margin-right: 0; }
  .constellation { height: calc(100svh - 210px); }
}
