/* teodolite · fosforo.css · sistema completo */
/* --hot is not a second colour: same hue as --amb (39.0deg against 41.4deg),
   same saturation (1.0), only the luminance moves (0.50 -> 0.80). It is the
   phosphor overdriven, which is what the core of a bright stroke does on a real
   tube while the halo around it stays fully saturated amber. One phosphor, two
   temperatures -- and it is the only axis the single-colour rule leaves open. */
:root{--bg:#070806;--amb:#FFB000;--dim:#7A5A10;--mid:#B8860B;--hot:#FFDC9B}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--amb);font-family:"IBM Plex Mono",monospace;font-size:15px;line-height:1.8;position:relative}
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:100;opacity:.12;
 background:repeating-linear-gradient(0deg,transparent 0 2px,#000 2px 3px)}
a{color:var(--amb)}
/* ---- fosforo: il tubo ----
   Amber and black only, per the kit: no chromatic fringe, which is the usual CRT
   trick but would be a second colour. The life comes from four things instead —
   a multi-radius bloom, an irregular flicker, a roll band and the vignette that
   makes the screen read as curved glass. Every animated layer is fixed and moves
   only opacity/transform, so it is composited and the text is never repainted. */
/* The slow pulse is the tube's high-voltage supply breathing, so it is one event
   on one machine: every glowing thing shares the same 8s period and runs IN
   PHASE. Staggering them would read as a page full of independent little lamps.
   It stays deliberately apart from the flicker, which is short, irregular and
   lives on the vignette layer -- beam noise and supply sag are not the same
   phenomenon and must not beat against each other. */
.glow{text-shadow:0 0 2px rgba(255,176,0,.55),0 0 10px rgba(255,176,0,.3),0 0 26px rgba(255,176,0,.16)}
/* The pulse is NOT keyframed per element. Animating text-shadow on the claim
   measured 40.0ms a frame on its own, against 0.7ms for every other layer here
   combined: a 112px blur repainted sixty times a second. It was also the wrong
   model. The supply sag lifts the whole tube at once, so it is one brightness
   filter on the frame -- and brightness is MULTIPLICATIVE, which is what the
   phosphor does: black paper stays black, only what is already lit comes up.
   will-change promotes the frame so the filter animates on the compositor. */
.frame,.frame-page{will-change:filter;animation:sag 8s ease-in-out infinite}
@keyframes sag{50%{filter:brightness(1.22)}}
.bigglow{text-shadow:0 0 3px rgba(255,176,0,.62),0 0 18px rgba(255,176,0,.44),0 0 46px rgba(255,176,0,.22),0 0 96px rgba(255,176,0,.1)}
/* Only the claims run hot. On a tube it is the dense, bright strokes that
   saturate the phosphor: the chrome and the small .glow labels are faint traces
   and would not bloom, so washing them out would be a look rather than a reading
   of the machine. */
.claim.glow,.claim.bigglow{color:var(--hot)}
/* Vignette on a layer whose opacity jitters: the dips read as the beam's own
   unevenness. steps(1) keeps them abrupt the way a tube's are, and the timings
   are deliberately not regular so it never reads as a loop. */
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:98;
 background:radial-gradient(ellipse at 50% 48%,transparent 38%,rgba(0,0,0,.30) 78%,rgba(0,0,0,.55) 100%);
 animation:flick 7.3s steps(1) infinite}
@keyframes flick{0%,7%,9%,31%,33%,58%,61%,79%,81%,100%{opacity:1}8%{opacity:.9}32%{opacity:.96}59%{opacity:.87}80%{opacity:.94}}
/* The roll band: a vertical hold just off sync. Slow and faint on purpose — it
   is peripheral, and text has to stay readable while it passes over. */
html::after{content:"";position:fixed;left:0;right:0;top:0;height:34vh;pointer-events:none;z-index:99;
 background:linear-gradient(180deg,transparent,rgba(255,176,0,.028) 46%,rgba(255,176,0,.045) 52%,transparent);
 animation:roll 11s linear infinite}
@keyframes roll{from{transform:translateY(-36vh)}to{transform:translateY(102vh)}}
/* Reduced motion keeps the tube and drops the movement: bloom and vignette are
   static, so the look survives, while the flicker and the travelling band — the
   two that actually move across the whole screen — stop. The caret still blinks,
   which is a caret behaving like a caret. */
@media (prefers-reduced-motion: reduce){
 body::before{animation:none}
 html::after{animation:none;opacity:0}
 .frame,.frame-page{animation:none;will-change:auto}
 .cur{animation:bl 1.1s steps(1) infinite}
}
.dim{color:var(--dim)}
.topbar{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;justify-content:space-between;align-items:center;
 padding:12px 22px;font-size:12px;letter-spacing:.14em;background:rgba(7,8,6,.92);border-bottom:1px solid #1E1806}
.topbar nav{display:flex;gap:12px}
.topbar a{color:var(--dim);text-decoration:none}
.topbar a:hover{color:var(--amb)}
.scr{min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding:96px 24px 64px}
.frame{max-width:960px;margin:0 auto;width:100%}
.hd{display:flex;justify-content:space-between;color:var(--dim);font-size:12.5px;letter-spacing:.1em;
 border-bottom:1px solid #1E1806;padding-bottom:10px;margin-bottom:34px}
.claim{font-size:clamp(24px,4vw,44px);font-weight:600;line-height:1.3;letter-spacing:-.01em;margin-bottom:30px}
.prose{color:var(--mid);max-width:44em;font-size:15px}
.prose b{color:var(--amb);font-weight:600}
.cta{margin-top:34px;font-size:15px}
.cta .p{color:var(--amb)}
/* The caret is the densest lit area on the screen, so it is the one thing that
   would run hottest: pale core, amber bleeding off its edges. */
.cur{display:inline-block;width:.6em;height:1.15em;vertical-align:text-bottom;
 background:radial-gradient(ellipse at 50% 45%,var(--hot) 0 38%,var(--amb) 100%);
 box-shadow:0 0 6px rgba(255,176,0,.65),0 0 20px rgba(255,176,0,.35);
 animation:bl 1.1s steps(1) infinite}
@keyframes bl{50%{opacity:0}}
/* The caret blinks under reduced motion too, on purpose: the platform's own text
   caret does exactly the same under that preference, so this is the expected
   behaviour of a caret rather than decoration. It is one glyph at 0.9 Hz, far
   under the flash thresholds, and a block frozen solid reads as a dead page
   instead of a session waiting for input. */
.ln{line-height:2.1}
/* S2 shots */
.shots{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:12px;margin-top:30px}
.shot{border:1px solid #2A2108;min-height:150px;padding:12px;display:flex;flex-direction:column;justify-content:space-between}
.shot .ph{font-size:10px;letter-spacing:.18em;color:#4A3A0C}
.shot .cap{font-size:11.5px;color:var(--dim);letter-spacing:.08em;line-height:1.7}
.shot img{width:100%;height:150px;object-fit:cover;display:block;margin-bottom:8px;filter:contrast(1.02)}
.shot .tmp{color:#4A3A0C}
.env{display:flex;gap:22px;margin-top:14px;font-size:12.5px;color:var(--dim);letter-spacing:.1em}
.env b{color:var(--amb);font-weight:500}
/* S3 quote */
.quote{border-left:2px solid #4A3A0C;padding-left:20px;margin:8px 0 8px 2px;color:var(--mid)}
.quote b{color:var(--amb)}
.qb{margin-top:26px}
/* S4 cron */
.cron{margin-top:26px;font-size:13.5px;line-height:2.2;color:var(--dim)}
.cron b{color:var(--mid);font-weight:500}
.cron .hu{color:var(--amb)}
/* S6 log */
.log{margin-top:26px;font-size:13.5px}
.log .e{display:grid;grid-template-columns:96px 1fr;gap:16px;padding:8px 0;border-top:1px solid #1E1806;color:var(--mid)}
.log .e:last-child{border-bottom:1px solid #1E1806;color:var(--dim)}
.log .d{color:var(--amb);font-size:12.5px}
.log .e:last-child .d{color:var(--dim)}
/* S7 kit */
.kit{margin-top:26px;font-size:13.5px;color:var(--mid);line-height:2.1}
.kit b{color:var(--amb);font-weight:500}
/* S8 */
.doms{margin:24px 0;font-size:14px;color:var(--mid);letter-spacing:.06em}
.sig{margin-top:40px;padding-top:14px;border-top:1px solid #1E1806;color:var(--dim);font-size:12.5px;letter-spacing:.1em}
@media(max-width:700px){.shots{grid-template-columns:1fr}.scr{padding:80px 18px 48px}}
/* ---- crew components ---- */
.frame-page{max-width:1000px;margin:0 auto;padding:70px 24px 60px}
.roster{margin:40px 0 10px;border-top:1px solid #1E1806}
.crew{display:grid;grid-template-columns:96px 200px 1fr;gap:20px;padding:18px 0;border-bottom:1px solid #1E1806;align-items:center}
.face{width:96px;height:112px;border:1px solid #1E1806}
.face svg{display:block;width:100%;height:100%}
.crew .role{font-weight:700;letter-spacing:.06em}
.crew .role .st{display:block;font-weight:400;font-size:11px;letter-spacing:.16em;color:var(--dim);margin-top:4px}
.crew p{color:var(--mid);font-size:13.5px}
.crew p b{color:var(--amb);font-weight:600}
.crew.human{background:linear-gradient(90deg,rgba(255,176,0,.06),transparent);padding-left:12px;margin-left:-12px}
.tmpnote{font-size:11px;color:#4A3A0C;letter-spacing:.1em;margin-top:8px}
@media(max-width:760px){.crew{grid-template-columns:72px 1fr;grid-template-rows:auto auto}.crew p{grid-column:1/3}.face{width:72px;height:86px}}
