/* SkillsTV Airing Soon holding page.
   Source of truth for look and feel:
   docs/foyer/2026-09-20-skillstv-coming-soon/design/direction-chosen.html
   (see design.md, 'What the real build must preserve'). This file is that
   page's <style> block verbatim, with the brick URL repointed at the
   compressed WebP. scripts/test_skillstv_site.py compares the two, so a
   change here that is not also made there fails the build on purpose. */
:root{
  --canvas:#121118; --surface:#1E1B26; --ember:#E05A2B; --ember-hover:#F06A3B;
  --ember-hot:#FF7A45; --phosphor:#3FA9F5; --phosphor-hot:#6BC4FF;
  --tally:#E3041F; --tally-hot:#FF2439; --chrome:#A6A1B3; --paper:#F0EBE3;
  --muted:#6E6A7A; --border:#2A2640;

  /* Screen rect, measured off scene.png. Do not guess these. */
  --screen-l:23.70%; --screen-t:16.62%; --screen-w:52.47%; --screen-h:44.09%;
  /* Tape slot rect, measured off scene.png. */
  --slot-l:40.7%; --slot-t:71.5%; --slot-w:19.0%; --slot-h:3.6%;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;overflow-x:clip;overscroll-behavior-x:none}
body{
  background:var(--canvas);
  color:var(--paper);
  font-family:Inter,system-ui,sans-serif;
  min-height:100vh;
  overflow-x:hidden;
}

/* ---- The wall ------------------------------------------------------ */
.wall{
  position:relative;
  min-height:100vh;
  background:
    radial-gradient(120% 70% at 50% 8%, rgba(224,90,43,.20), transparent 55%),
    url("../assets/brick.webp") center/cover no-repeat,
    var(--canvas);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:clamp(20px,5vw,56px) 16px clamp(28px,6vw,64px);
  /* The neon's glow is wider than the sign; clip it here, not on <body>,
     so it cannot open a horizontal scrollbar on a phone. */
  overflow:hidden;
}
/* Darken the brick away from the neon so the room has one light source. */
.wall::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(100% 62% at 50% 16%, transparent 10%, rgba(10,9,14,.55) 62%, rgba(10,9,14,.9) 100%);
}
.wall > *{position:relative;z-index:1}

/* ---- Neon wordmark, and the light it throws ------------------------- */
.neon{
  position:relative;
  width:min(84vw,430px);
  margin-bottom:clamp(-6px,-1vw,0px);
}
.neon img{display:block;width:100%;height:auto}
/* The sign's own spill on the brick behind it. */
.neon::before{
  content:"";position:absolute;
  left:-35%;top:-30%;width:170%;height:175%;
  background:
    radial-gradient(52% 44% at 38% 52%, rgba(255,122,69,.34), transparent 70%),
    radial-gradient(44% 40% at 70% 50%, rgba(107,196,255,.22), transparent 72%);
  filter:blur(26px);
  z-index:-1;pointer-events:none;
}

.kicker{
  font-family:"JetBrains Mono",monospace;
  font-size:11px;letter-spacing:.34em;text-transform:uppercase;
  color:var(--chrome);margin:4px 0 0;
}

/* ---- The set ------------------------------------------------------- */
.scene{
  position:relative;
  width:min(100%,680px);
  aspect-ratio:810/728;
  margin-top:clamp(-18px,-2vw,-8px);
  isolation:isolate;
}
.scene__photo{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;
  /* Feather the photo's own darkness into the wall - no hard edge, no cutout. */
  /* Hug the set and its table, then dissolve. Anything further out is the
     photo's empty black, which would read as a box laid on the brick. */
  -webkit-mask-image:radial-gradient(62% 66% at 50% 50%, #000 46%, rgba(0,0,0,.82) 68%, rgba(0,0,0,.3) 84%, transparent 97%);
  mask-image:radial-gradient(62% 66% at 50% 50%, #000 46%, rgba(0,0,0,.82) 68%, rgba(0,0,0,.3) 84%, transparent 97%);
}

/* ---- The tube ------------------------------------------------------ */
.tube{
  position:absolute;
  left:var(--screen-l);top:var(--screen-t);
  width:var(--screen-w);height:var(--screen-h);
  border-radius:8% / 10.6%;
  overflow:hidden;
  isolation:isolate;
  box-shadow:0 0 34px 6px rgba(63,169,245,.16);
}
/* Live content. Sits UNDER the real glass. */
.tube__content{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:6%;
  /* Transparent on purpose. The photo's own glass shows straight through,
     so the reflections and grime are real, not simulated. */
  background:transparent;
  container-type:inline-size;
}
.tube__title{
  font-family:Oswald,sans-serif;font-weight:600;
  font-size:9cqw;letter-spacing:.06em;text-transform:uppercase;
  margin:0;color:var(--paper);
  text-shadow:0 0 .35em rgba(240,235,227,.42), 0 0 1.1em rgba(255,122,69,.28);
}
.clock{display:flex;align-items:flex-start;gap:3.2cqw;margin:0;padding:0;list-style:none}
.clock li{text-align:center}
.clock .v{
  display:block;
  font-family:"JetBrains Mono",monospace;font-weight:500;
  font-size:15cqw;line-height:1;
  color:var(--phosphor-hot);
  text-shadow:0 0 .22em rgba(107,196,255,.85), 0 0 .7em rgba(63,169,245,.55), 0 0 1.6em rgba(63,169,245,.3);
  font-variant-numeric:tabular-nums;
}
.clock .u{
  display:block;margin-top:.5cqw;
  font-family:"JetBrains Mono",monospace;
  font-size:3.1cqw;letter-spacing:.24em;text-transform:uppercase;
  color:rgba(166,161,179,.82);
}
.chyron{
  display:flex;align-items:stretch;
  font-family:Oswald,sans-serif;text-transform:uppercase;
  font-size:3.6cqw;letter-spacing:.1em;
  box-shadow:0 0 1.4em rgba(224,90,43,.5);
}
/* Both halves carry the same border and padding and centre their own text,
   so the time and the date sit on one line. A border on only one half shifts
   its text by the border width, which is exactly the misalignment this fixes. */
.chyron b,.chyron span{
  display:flex;align-items:center;
  box-sizing:border-box;
  line-height:1;
  padding:.5em .85em;
  border:1px solid transparent;
}
.chyron b{background:var(--ember);border-color:var(--ember);color:#160d08;font-weight:600;letter-spacing:.1em;white-space:nowrap}
.chyron span{background:rgba(12,10,16,.9);color:var(--paper);font-weight:500;letter-spacing:.06em;border-color:rgba(224,90,43,.6);border-left:0;white-space:nowrap}

/* The tube is on and showing a dark picture. Multiply keeps the photo's
   reflection streak and dust riding over the top of whatever we draw. */
.tube__tint{
  position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(74% 74% at 50% 46%, rgba(20,30,44,.68), rgba(9,13,20,.88) 80%);
  mix-blend-mode:multiply;
}
/* Tube falloff - a CRT is never evenly lit to its corners. */
.tube__vignette{
  position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(88% 88% at 50% 48%, transparent 48%, rgba(4,5,8,.42) 84%, rgba(3,4,6,.74) 100%);
}
/* Bezel shadow falling onto the glass from the moulding above. */
.tube__lip{
  position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,.55), transparent 16%, transparent 88%, rgba(0,0,0,.4));
}
.tube__scan{
  position:absolute;inset:0;pointer-events:none;opacity:.34;
  background:repeating-linear-gradient(180deg, rgba(0,0,0,.42) 0 1px, transparent 1px 3px);
}
/* The tube lighting the plastic around it. Sits OVER the bezel. */
.bloom{
  position:absolute;
  left:calc(var(--screen-l) - 5%);top:calc(var(--screen-t) - 6%);
  width:calc(var(--screen-w) + 10%);height:calc(var(--screen-h) + 12%);
  background:radial-gradient(54% 54% at 50% 46%, rgba(63,169,245,.5), rgba(63,169,245,.16) 60%, transparent 76%);
  filter:blur(20px);
  mix-blend-mode:screen;pointer-events:none;z-index:2;
}

/* ---- Email capture, plain ------------------------------------------ */
.capture{
  width:min(94vw,480px);
  margin-top:clamp(6px,2vw,22px);
  z-index:3;
}
.capture__cap{
  display:block;
  font-family:"JetBrains Mono",monospace;font-size:11px;
  letter-spacing:.26em;text-transform:uppercase;color:var(--chrome);
  text-align:center;margin-bottom:12px;
}
.capture__row{display:flex;gap:10px}
.capture input{
  flex:1;min-width:0;min-height:48px;
  background:rgba(12,11,17,.72);
  border:1px solid var(--border);border-radius:3px;
  color:var(--paper);font-family:Inter,sans-serif;font-size:16px;
  padding:0 14px;
}
.capture input::placeholder{color:var(--muted)}
.capture input:focus{outline:2px solid var(--ember);outline-offset:2px;border-color:var(--ember)}
.capture button{
  min-height:48px;padding:0 24px;border:0;border-radius:3px;cursor:pointer;
  font-family:Oswald,sans-serif;font-weight:600;font-size:15px;
  letter-spacing:.12em;text-transform:uppercase;
  color:#160d08;background:var(--ember);
  box-shadow:0 0 22px rgba(224,90,43,.32);
}
.capture button:hover{background:var(--ember-hover)}
.capture__note{margin:12px 0 0;text-align:center;font-size:13px;color:var(--chrome)}

/* Bottom mark. Same grammar as the overlays' brand rail and wall card:
   Oswald 600, wide tracking, phosphor domain, ember + warm white tagline. */
.mark{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:clamp(26px,4vw,40px)}
.mark__badge{width:clamp(44px,7vw,58px);height:auto;display:block;filter:drop-shadow(0 0 14px rgba(224,90,43,.3))}
.mark__domain{
  margin:0;font-family:Oswald,sans-serif;font-weight:600;font-size:16px;
  letter-spacing:.24em;text-transform:uppercase;color:var(--phosphor-hot);
}
.mark__tag{
  margin:0;font-family:Oswald,sans-serif;font-weight:600;font-size:15px;
  letter-spacing:.26em;text-transform:uppercase;
}
.mark__tag .u{color:var(--ember-hot);text-shadow:0 0 16px rgba(224,90,43,.45)}
.mark__tag .t{color:var(--paper);text-shadow:0 2px 12px rgba(0,0,0,.85)}

/* R12 / R13. The tube carries the outcome, because the tube is where the
   page has been talking all along. Every state is also a plain sentence in
   the status line under the form, so it is never colour or imagery alone. */
.screen{position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:6%;padding:0 6%;text-align:center}
[data-state="idle"] .screen--done,[data-state="idle"] .screen--fail{display:none}
[data-state="done"] .screen--idle,[data-state="done"] .screen--fail{display:none}
[data-state="fail"] .screen--idle,[data-state="fail"] .screen--done{display:none}
.screen__big{
  font-family:Oswald,sans-serif;font-weight:600;font-size:11cqw;
  letter-spacing:.06em;text-transform:uppercase;margin:0;color:var(--paper);
  text-shadow:0 0 .3em rgba(240,235,227,.4), 0 0 1em rgba(107,196,255,.4);
}
.screen--fail .screen__big{text-shadow:0 0 .3em rgba(255,36,57,.5), 0 0 1em rgba(227,4,31,.4)}
.screen__sub{
  font-family:Inter,sans-serif;font-size:4.2cqw;line-height:1.4;margin:0;
  color:rgba(240,235,227,.9);max-width:32ch;
}
.screen__lamp{
  width:3cqw;height:3cqw;border-radius:50%;background:var(--phosphor-hot);
  box-shadow:0 0 2.2cqw var(--phosphor-hot);
}
.screen--fail .screen__lamp{background:var(--tally-hot);box-shadow:0 0 2.2cqw var(--tally-hot)}

.capture__status{margin:12px 0 0;text-align:center;font-size:14px;min-height:1.3em}
.capture__status[data-tone="ok"]{color:var(--phosphor-hot)}
.capture__status[data-tone="err"]{color:var(--tally-hot)}
[data-state="done"] .capture__row{display:none}

.tagline{font-family:Oswald,sans-serif;font-weight:400;text-transform:uppercase;letter-spacing:.3em;font-size:13px;color:var(--chrome);margin:26px 0 0}

@media (prefers-reduced-motion:no-preference){
  .neon{animation:warm 9s steps(1,end) infinite}
  @keyframes warm{0%,96.5%,100%{opacity:1}97%{opacity:.72}97.6%{opacity:1}98.2%{opacity:.8}98.6%{opacity:1}}
}
