/* ═══════════════════════════════════════════════════════════════
   future.css — ÁRIÐ 2099

   Set the clock to 2099 and the workshop is gone: this is what a
   repair shop in 2001 thought the future would look like. Chrome,
   a grid horizon, a synthetic sun and far too much cyan.

   Everything here hangs off html.future-mode, so the normal site is
   untouched and the visitor can set the year back.
   ═══════════════════════════════════════════════════════════════ */

html.future-mode{
  --panel:      #c6d2e6;
  --panel-hi:   #e4ecf8;
  --ink:        #0b1226;
  --blue:       #4632a8;
  --teal:       #00b3c8;
  --black:      #070b1a;
  --red:        #ff4f8b;
  --green:      #4df0ff;
  --amber:      #ff5fd0;
  --amber-text: #ffb0ea;
  --cream:      #eaf3ff;
  --desk:       #0d1030;
  --desk-2:     #05060f;

  --bevel-hi:   #ffffff;
  --bevel-lo:   #7d8cb0;
  --bevel-sh:   #232c4d;

  --titlebar:     linear-gradient(90deg, #2a1c6e 0%, #6f4bd8 55%, #00b3c8 100%);
  --titlebar-off: linear-gradient(90deg, #2b3050 0%, #4d5680 100%);
}

/* ── the room is replaced by a horizon ── */
html.future-mode .workshop{
  background-image:none;
  background-color:#05060f;
  filter:none;
}
html.future-mode .workshop::before{
  content:""; position:absolute; inset:0;
  background:
    /* stars */
    radial-gradient(1.6px 1.6px at 12% 14%, #cfe6ff 50%, transparent 50%),
    radial-gradient(1.4px 1.4px at 78% 8%,  #cfe6ff 50%, transparent 50%),
    radial-gradient(1.2px 1.2px at 34% 22%, #9fd4ff 50%, transparent 50%),
    radial-gradient(1.6px 1.6px at 62% 26%, #cfe6ff 50%, transparent 50%),
    radial-gradient(1.2px 1.2px at 88% 30%, #9fd4ff 50%, transparent 50%),
    radial-gradient(1.4px 1.4px at 22% 34%, #cfe6ff 50%, transparent 50%),
    /* the sun, sitting on the horizon */
    radial-gradient(34vmin 34vmin at 50% 63%,
      #c98b3f 0%, #a8407e 36%, rgba(110,40,140,.4) 56%, transparent 74%),
    /* sky */
    linear-gradient(180deg, #04050c 0%, #120a2e 42%, #260e42 58%, #07081a 100%);
}
/* the grid floor, running to the horizon */
html.future-mode .workshop::after{
  content:""; position:absolute; left:-60%; right:-60%; bottom:-14%; top:58%;
  background:
    repeating-linear-gradient(90deg, rgba(77,240,255,.42) 0 2px, transparent 2px 92px),
    repeating-linear-gradient(0deg,  rgba(255,95,208,.32) 0 2px, transparent 2px 64px);
  transform:perspective(340px) rotateX(74deg);
  transform-origin:50% 0;
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, #000 26%, #000 100%);
  mask-image:linear-gradient(to bottom, transparent 0%, #000 26%, #000 100%);
}
/* a separate scrim, since ::after is now the floor */
html.future-mode body{
  background:
    linear-gradient(90deg, rgba(5,7,20,.42) 0%, rgba(5,7,20,.86) 18%,
                           rgba(5,7,20,.88) 82%, rgba(5,7,20,.42) 100%),
    linear-gradient(180deg, rgba(5,7,20,.74) 0%, rgba(5,7,20,.64) 28%, rgba(4,5,14,.86) 100%);
}

/* ── chrome ── */
html.future-mode .menubar,
html.future-mode .taskbar{
  background:linear-gradient(180deg, #e8eef8 0%, #aebbd4 48%, #8593b4 52%, #ccd7ea 100%);
  border-bottom-color:#2a3358;
  box-shadow:inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.2), 0 3px 18px rgba(0,179,200,.28);
}
html.future-mode .taskbar{ border-top:1px solid #fff; }
html.future-mode .crt__curve{
  box-shadow:
    0 0 0 var(--bezel) #b9c6dc,
    0 0 0 calc(var(--bezel) + 2px) #5d6b8c,
    0 0 0 calc(var(--bezel) + 3px) rgba(0,179,200,.55),
    inset 0 0 26px 8px rgba(0,0,0,.5),
    inset 0 0 90px 30px rgba(70,50,168,.28);
}
html.future-mode .crt__scan{
  background:repeating-linear-gradient(to bottom,
    rgba(0,60,90,.24) 0 1px, rgba(0,0,0,0) 1px 3px);
}
html.future-mode .crt__glow{
  background:radial-gradient(70% 55% at 50% 38%, rgba(77,240,255,.09), transparent 70%);
}

/* ── the headline goes chrome ── */
html.future-mode .hero__title{
  background:linear-gradient(180deg, #ffffff 0%, #9fe9ff 38%, #4db4ff 52%, #d9b6ff 74%, #ffffff 100%);
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
  text-shadow:none;
  filter:drop-shadow(0 0 14px rgba(77,240,255,.45)) drop-shadow(3px 3px 0 rgba(10,6,40,.6));
}
html.future-mode .shead__title{
  color:#eaf3ff;
  border-bottom-color:var(--teal);
  text-shadow:0 0 12px rgba(0,179,200,.55), 3px 3px 0 rgba(5,7,20,.7);
}
html.future-mode .hero__copy::before{
  background:radial-gradient(ellipse 82% 62% at 30% 50%,
    rgba(5,7,22,.9) 0%, rgba(7,10,30,.8) 34%, rgba(9,12,36,.42) 62%, rgba(9,12,36,0) 100%);
}

/* The sun sits behind whatever you scroll past, so blocks of light text
   carry their own shade — the same trick the hero copy uses. */
html.future-mode .shead,
html.future-mode .probnote,
html.future-mode .hero__facts{ position:relative; }
html.future-mode .shead::before,
html.future-mode .probnote::before,
html.future-mode .hero__facts::before{
  content:""; position:absolute; z-index:-1; pointer-events:none;
  inset:-1rem clamp(-2.2rem, -2vw, -1rem);
  background:radial-gradient(ellipse 80% 74% at 32% 50%,
    rgba(4,6,18,.94) 0%, rgba(4,6,18,.86) 42%, rgba(4,6,18,.4) 74%, rgba(4,6,18,0) 100%);
}
html.future-mode .shead::before{ inset:-1.4rem clamp(-2.2rem, -2vw, -1rem); }

/* ── panels get a glass-and-chrome finish ── */
html.future-mode .win,
html.future-mode .fwin,
html.future-mode .panelbox,
html.future-mode .probcard,
html.future-mode .module,
html.future-mode .review{
  background:linear-gradient(180deg, rgba(232,239,250,.96), rgba(184,198,222,.94));
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 var(--bevel-lo),
    0 0 0 1px rgba(0,179,200,.35),
    6px 8px 0 rgba(3,5,16,.5),
    0 0 24px rgba(0,179,200,.18);
}
html.future-mode .btn{
  background:linear-gradient(180deg, #f4f8ff 0%, #cbd7ea 48%, #a9b8d4 52%, #e6eefb 100%);
  border-color:#33406b;
}
html.future-mode .btn--primary{
  background:linear-gradient(180deg, #9df4ff 0%, #35c8e8 48%, #1c9fd0 52%, #b6f6ff 100%);
  color:#05203a;
}
html.future-mode .btn:hover{ box-shadow:0 0 14px rgba(0,179,200,.7), inset 1px 1px 0 #fff; }

html.future-mode .diagpanel,
html.future-mode .inventory,
html.future-mode .fwin__term,
html.future-mode .finalcta{
  background:linear-gradient(180deg, rgba(10,14,40,.94), rgba(6,8,24,.96));
  border-color:rgba(0,179,200,.45);
}
html.future-mode .footer{
  background:linear-gradient(180deg, rgba(10,13,38,.92), rgba(4,6,18,.96));
  border-top-color:rgba(0,179,200,.5);
}
html.future-mode .serialplate{ background:rgba(3,4,14,.92); }
html.future-mode .inventory__foot,
html.future-mode .serialplate__inner{ color:#c2d3e8; }
html.future-mode .ticker{ background:rgba(5,8,24,.8); }
html.future-mode .pixmap{ background:#04060f; }
html.future-mode .sticker{
  background:repeating-linear-gradient(-8deg,#dfe9fb 0 6px,#c7d5ee 6px 12px);
  border-color:#6f7fa6; color:#16204a;
}

/* the pixel icons pick up the new palette */
html.future-mode{ --icon-mid:#6f7fa6; }
html.future-mode .footer,
html.future-mode .diagpanel,
html.future-mode .inventory{ --icon-ink:#cfe4ff; --icon-fill:#22305c; --icon-mid:#7d8cb0; }

/* ── a badge, so it is obvious how to get back ── */
.yearbadge{
  position:fixed; right:calc(var(--bezel) + 14px); top:calc(var(--menubar-h) + 10px);
  z-index:610;
  display:flex; align-items:center; gap:.6rem;
  font-family:var(--f-term); font-size:.9rem; letter-spacing:.12em;
  color:#eaf3ff;
  background:rgba(6,9,28,.82);
  border:1px solid rgba(0,179,200,.6);
  box-shadow:0 0 18px rgba(0,179,200,.35);
  padding:.3rem .6rem;
}
.yearbadge[hidden]{ display:none; }
.yearbadge button{
  font-family:var(--f-ui); font-size:.66rem; font-weight:700; letter-spacing:.06em;
  color:#05203a; cursor:pointer;
  background:linear-gradient(180deg,#9df4ff,#35c8e8);
  border:1px solid #1c9fd0; padding:.2rem .5rem;
}
@media (max-width:640px){
  /* on a phone the top right corner belongs to the headline, so the badge
     sits above the taskbar and the toast steps up out of its way */
  .yearbadge{
    top:auto; bottom:calc(var(--taskbar-h) + 8px);
    left:8px; right:8px;
    justify-content:space-between; font-size:.82rem;
  }
  html.future-mode .toast{ bottom:calc(var(--taskbar-h) + 56px); }
}

/* the year control in the clock window */
.yearset{
  display:flex; align-items:center; gap:.4rem; flex-wrap:wrap;
  border-top:1px dotted var(--bevel-lo); margin-top:.8rem; padding-top:.8rem;
}
.yearset label{ font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; width:100%; }
.yearset input{
  width:6.5ch; text-align:center; font-family:var(--f-term); font-size:1.15rem;
  padding:.25rem .3rem;
}
.yearset__step{
  width:30px; height:30px; padding:0; cursor:pointer;
  font-family:var(--f-ui); font-weight:700; font-size:1rem; line-height:1;
  color:var(--ink);
  background:linear-gradient(180deg,#ded5bd,#c6bda5);
  border:1px solid var(--bevel-sh);
  box-shadow:inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo);
}
.yearset__step:active{ box-shadow:inset 1px 1px 0 var(--bevel-lo); }
.yearset__hint{ width:100%; font-size:.74rem; color:#5c5a4f; }

/* arriving in 2099 should feel like the picture rolls over */
html.future-mode:not([data-motion="reduce"]) .crt__glow{ animation:none; }
@keyframes warp{
  0%   { opacity:0; transform:scaleY(.02); filter:blur(2px); }
  55%  { opacity:1; transform:scaleY(1.04); }
  100% { opacity:1; transform:scaleY(1); filter:blur(0); }
}
html.future-mode.is-warping:not([data-motion="reduce"]) body > *:not(.crt):not(.workshop){
  animation:warp .5s steps(6,end);
}
