/* ============================================================
   RENEE_OS : a live screen locked into a photographed desk
   ============================================================ */
:root{
  --ph:#B7FFE9;
  --ph-dim:#7FD6BA;
  --ph-deep:#0B2B23;
  --mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;

  /* ---- ARTBOARD COORDINATES ----
     measured from the artwork itself, expressed as a % of the artboard
     (never the viewport), so the UI and the art scale as one unit. ---- */
  --ar:1.5;                 /* 1536 x 1024 */
  /* the four corners of the lit glass, measured by fitting its edges in the
     artwork and intersecting them. the UI is mapped onto this quad with a
     homography, so it sits in the plane of the screen instead of floating
     over it as an axis-aligned box. inset 1.5% so the bezel always shows. */
  --gx0:50.6939%; --gy0:22.2836%;   /* top left     */
  --gx1:77.2079%; --gy1:20.1082%;   /* top right    */
  --gx2:76.3658%; --gy2:55.1516%;   /* bottom right */
  --gx3:49.5706%; --gy3:53.2173%;   /* bottom left  */
  --pwr-cx:70.833%;         /* LED centre x 1088 */
  --pwr-cy:60.596%;         /* LED centre y 620 */

}

*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;background:#050807;color:var(--ph);
  font-family:var(--mono);font-size:15px;line-height:1.6;
  overflow:hidden;-webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,p,dl,dd,ul,figure{margin:0;padding:0}
ul{list-style:none}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit}
:focus-visible{outline:2px solid var(--ph);outline-offset:2px}

/* ============================================================
   STAGE : cover the viewport but keep the artwork's own
   coordinate system, so the screen never drifts off the monitor
   ============================================================ */
.room{
  position:fixed;inset:0;overflow:hidden;
  display:grid;place-items:center;
  background:#07080A;
}
/* one coordinate system: the box carries the artwork's exact ratio, so
   nothing can stretch and nothing can drift. */
.scene{
  position:relative;
  width:min(100vw, calc(100svh * var(--ar)));
  height:min(100svh, calc(100vw / var(--ar)));
}
.scene__art{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:fill;          /* safe: the box already has the image ratio */
  user-select:none;pointer-events:none;
}
.room::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:6;
  background:radial-gradient(ellipse at 56% 42%,transparent 22%,rgba(0,0,0,.20) 62%,rgba(0,0,0,.62) 100%);
}

/* ============================================================
   THE SCREEN
   ============================================================ */
.crt{
  position:absolute;left:0;top:0;z-index:4;
  transform-origin:0 0;          /* JS maps this box onto the glass quad */
  will-change:transform;
}
.scr__off{
  position:absolute;inset:0;z-index:3;border-radius:2.5%/3.5%;
  background:
    linear-gradient(152deg,rgba(150,180,195,.13) 0%,rgba(120,150,165,.04) 26%,transparent 46%),
    radial-gradient(120% 100% at 46% 36%,#12191A 0%,#080C0D 62%,#050708 100%);
  transition:opacity .5s ease;
}
.is-on .scr__off{opacity:0;pointer-events:none}
.scr{
  position:absolute;inset:0;overflow:hidden;
  container-type:size;container-name:glass;
  border-radius:2.5%/3.5%;
  background:radial-gradient(ellipse at 50% 42%,#0E4736 0%,#073226 52%,#031A14 100%);
  box-shadow:inset 0 0 3vmin rgba(0,0,0,.7);
  opacity:0;transition:opacity .5s ease,box-shadow .6s ease;
}
.is-on .scr{opacity:1;box-shadow:inset 0 0 3.4vmin rgba(0,0,0,.72)}
.scr__fx,.scr__glass{position:absolute;inset:0;pointer-events:none;border-radius:2.5%/3.5%}
.scr__fx{
  z-index:8;opacity:0;transition:opacity .5s ease;
  background:repeating-linear-gradient(to bottom,rgba(255,255,255,.022) 0 1px,rgba(0,0,0,.10) 2px 4px);
  mix-blend-mode:overlay;
}
.is-on .scr__fx{opacity:1}

.scr__glass{
  z-index:9;
  background:
    linear-gradient(146deg,rgba(220,255,245,.045) 0%,transparent 30%),
    radial-gradient(122% 118% at 50% 48%,transparent 62%,rgba(0,0,0,.62) 100%);
}
.is-on .scr::after{
  content:"";position:absolute;inset:0;z-index:7;pointer-events:none;
  background:rgba(183,255,233,.05);opacity:0;animation:flick 9s steps(1,end) infinite;
}
@keyframes flick{0%,97%,100%{opacity:0}98%{opacity:.5}99%{opacity:.18}}

/* power lamp */
.pwr{
  position:absolute;z-index:7;
  left:69.99%;top:64.84%;            /* the physical button, not the LED */
  transform:translate(-50%,-50%);
  width:max(44px,3.2%);height:max(44px,2.6%);
  border-radius:14%;background:transparent;
  transition:transform .08s;
}
.pwr:active{transform:translate(-50%,-50%) scale(.92)}
.pwr:focus-visible{outline:2px solid var(--ph);outline-offset:2px}

/* a ring drawn on the button itself, so the affordance is in the scene */
.pwr-ring{
  position:absolute;z-index:6;pointer-events:none;
  left:69.99%;top:64.84%;transform:translate(-50%,-50%);
  width:3.4%;aspect-ratio:1.35;border-radius:16%;
  border:1px solid rgba(160,255,205,.75);
  box-shadow:0 0 .5em rgba(120,240,170,.35),inset 0 0 .4em rgba(120,240,170,.2);
  animation:ringpulse 2.4s ease-in-out infinite;
}
@keyframes ringpulse{
  0%,100%{opacity:.35;transform:translate(-50%,-50%) scale(1)}
  50%{opacity:1;transform:translate(-50%,-50%) scale(1.1)}
}
/* the label sits on the desk, clear of the glass and the bezel */
.pwr-say{
  position:absolute;z-index:6;pointer-events:none;
  left:46%;top:94%;transform:translate(-50%,-50%);
  font-size:min(1.35cqw,1.6vh);letter-spacing:.28em;
  color:rgba(183,255,233,.72);white-space:nowrap;
}
.is-on .pwr-ring,.is-on .pwr-say{opacity:0;animation:none;transition:opacity .4s}
.pwr__hint{
  position:absolute;left:50%;top:130%;transform:translateX(-50%);
  font-size:.6rem;letter-spacing:.2em;color:rgba(183,255,233,.75);white-space:nowrap;
}
.is-on .pwr__hint{display:none}

.flash{position:fixed;inset:0;z-index:60;background:#D8FFF5;opacity:0;pointer-events:none}
.flash.go{animation:flash .35s ease-out}
@keyframes flash{0%{opacity:0}15%{opacity:.75}100%{opacity:0}}
50%{opacity:.95}}

/* ============================================================
   OS
   ============================================================ */
.boot{
  position:absolute;inset:0;z-index:5;background:#04120E;
  padding:6% 7%;font-size:max(8px,3.1cqi);line-height:1.75;color:var(--ph);
}
.boot[hidden]{display:none}
.boot p{opacity:0;animation:bl .12s ease forwards}
@keyframes bl{to{opacity:1}}

.os{
  position:absolute;inset:0;z-index:4;
  display:flex;flex-direction:column;
  padding:5.5% 6% 0;
  opacity:0;pointer-events:none;transition:opacity .35s ease .1s;
  font-size:max(9.5px, 4.15cqi);
}
.is-on .os{opacity:1;pointer-events:auto}
.os__head{
  flex:0 0 auto;display:flex;justify-content:space-between;
  padding-bottom:2.5%;border-bottom:1px solid rgba(160,255,225,.5);
}

.icons{
  flex:1 1 auto;min-height:0;
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:8% 4%;align-content:start;padding-top:7%;
}
.ico{
  display:flex;flex-direction:column;align-items:center;gap:.5em;
  padding:.3em .1em;transition:transform .15s,filter .15s;
}
.ico__s{
  width:2.1em;height:2.1em;display:grid;place-items:center;
  border:1px solid var(--ph-dim);font-size:1.05em;
}
.ico__l{font-size:.92em;white-space:nowrap}
@media (hover:hover){
  .ico:hover{transform:translateY(-2px);filter:drop-shadow(0 0 4px rgba(116,255,216,.75))}
}
.ico:focus-visible{filter:drop-shadow(0 0 5px rgba(116,255,216,.9))}

.bar{
  position:absolute;left:0;right:0;bottom:0;z-index:5;
  display:flex;align-items:center;gap:.6em;
  height:8%;padding:0 3%;
  background:rgba(78,157,130,.4);
  border-top:1px solid rgba(180,255,230,.5);
  font-size:.9em;
}
.bar__start{border:1px solid rgba(180,255,230,.6);padding:.05em .6em}
.bar__sp{flex:1}
.bar__snd{border:1px solid rgba(180,255,230,.4);padding:.05em .45em}

/* window */to{opacity:1;transform:none}}

/* ---------- shared content blocks (styled full-size below) ---------- */
.page__body h2{font-size:1.75em;font-weight:500;margin-bottom:.6em;letter-spacing:.02em}
.page__body h3{font-size:1.05em;font-weight:500;margin:1.6em 0 .5em;color:var(--ph-dim);letter-spacing:.1em}
.page__body h4{font-size:.95em;font-weight:400;margin:1em 0 .35em;color:var(--ph-dim);letter-spacing:.12em}
.page__body p{margin-bottom:.75em}
.page__body .lead{font-size:1.15em;color:#DFFFF4}
.page__body .note{color:var(--ph-dim);font-size:.95em}
.page__body a{color:#DFFFF4;text-decoration:none;border-bottom:1px solid rgba(183,255,233,.35)}
.page__body a:hover{color:#fff;border-bottom-color:#fff}
.page__body figure{margin-top:1em}
.page__body figure img{border:1px solid var(--ph-dim);filter:saturate(.8) hue-rotate(-8deg) brightness(.92)}
.page__body figcaption{font-size:.9em;color:var(--ph-dim);margin-top:.4em}

.kv{display:grid;grid-template-columns:auto 1fr;gap:.1em 1.2em;margin-bottom:1em;font-size:.95em}
.kv dt{color:var(--ph-dim)}
.kv dd{color:#DFFFF4}

.list li{border-top:1px solid rgba(170,255,225,.22)}
.list li:last-child{border-bottom:1px solid rgba(170,255,225,.22)}
.list a{display:grid;grid-template-columns:1fr auto;gap:.1em .8em;padding:.65em .1em;border:0}
.list a:hover{background:rgba(183,255,233,.08)}
.list b{grid-column:1;font-weight:500}
.list span{grid-column:1;font-size:.9em;color:var(--ph-dim);line-height:1.45}
.list em{grid-column:2;grid-row:1;font-style:normal;font-size:.9em;color:#DFFFF4;text-align:right}
.list--m a{grid-template-columns:5em 1fr auto;align-items:start}
.list--m img{grid-column:1;grid-row:1/4;width:100%;aspect-ratio:16/9;object-fit:cover;border:1px solid var(--ph-dim);filter:saturate(.75) brightness(.9)}
.list--m b{grid-column:2;grid-row:1}
.list--m span{grid-column:2;grid-row:2}
.list--m em{grid-column:3;grid-row:1}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(10em,1fr));gap:.7em;margin-top:.3em}
.grid li{border:1px solid rgba(170,255,225,.22);padding:.6em .7em}
.grid b{display:block;font-weight:500}
.grid span{display:block;font-size:.85em;color:var(--ph-dim);margin:.1em 0 .35em}
.grid p{font-size:.92em;margin:0}

.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:rgba(170,255,225,.22);border:1px solid rgba(170,255,225,.22);margin-bottom:.5em}
.stats li{background:#052018;padding:.6em .7em}
.stats b{display:block;font-size:1.7em;line-height:1;color:#DFFFF4}
.stats span{display:block;font-size:.92em;margin-top:.2em}
.stats i{display:block;font-style:normal;font-size:.82em;color:var(--ph-dim)}

.bars p{display:grid;grid-template-columns:8em 1fr 2.6em;gap:.5em;align-items:center;margin-bottom:.25em;font-size:.92em}
.bars i{height:.6em;background:rgba(170,255,225,.18);position:relative;display:block}
.bars i::after{content:"";position:absolute;inset:0 auto 0 0;width:var(--w);background:var(--ph-dim)}
.bars em{font-style:normal;text-align:right;color:#DFFFF4}

.quotes li{font-size:1.05em;padding:.2em 0 .2em .7em;border-left:2px solid var(--ph-dim);margin-bottom:.4em;color:#DFFFF4}

/* ============================================================
   CALIBRATION  (?cal)
   ============================================================ */
.cal .crt{outline:2px solid #FF3B6B;outline-offset:0}
.cal .pwr{outline:2px solid #FFD23B}
.calbox{
  position:fixed;left:12px;bottom:12px;z-index:99;
  background:rgba(4,12,10,.94);border:1px solid var(--ph-dim);
  padding:10px 12px;font-size:12px;line-height:1.7;white-space:pre;
  max-width:92vw;overflow:auto;
}
.calbox b{color:#FFD23B;font-weight:400}

/* ============================================================
   SEMANTIC CONTENT (JS off = a plain readable site)
   ============================================================ */
.js .content{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html:not(.js) body{overflow:auto;background:#071411}
html:not(.js) .room{display:none}
html:not(.js) .content{max-width:44rem;margin:0 auto;padding:3rem 1.25rem 5rem}
html:not(.js) .content h1{font-size:2.4rem;font-weight:500;margin-bottom:1rem}
html:not(.js) .content h2{font-size:1.6rem;font-weight:500;margin:2.5rem 0 .75rem}
html:not(.js) .content li{margin-bottom:.4rem}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ---- MOBILE ARTBOARD ----
   portrait reframe of the same artwork (crop 700,120 -> 1255,1024).
   its own ratio and its own measured glass coordinates. ---- */
@media (max-aspect-ratio: 11/10){
  :root{
    --ar:1.371681;          /* 1240 x 904, the desk from the mug to the mouse */
    --gx0:62.798%; --gy0:11.969%;
    --gx1:95.637%; --gy1:9.502%;
    --gx2:94.597%; --gy2:49.204%;
    --gx3:61.403%; --gy3:47.002%;
    --pwr-cx:86.694%; --pwr-cy:60.177%;
  }
  /* fill the height and let the desk run wider than the phone, so the
     monitor stays big and the rest of the desk is reachable by dragging */
  .scene{
    height:100svh;
    width:calc(100svh * var(--ar));
    left:0;
    transform:translateX(var(--pan,0px));
    will-change:transform;
  }
  .room{justify-items:start;align-items:center;touch-action:pan-y}
  .room::after{background:radial-gradient(120% 90% at 50% 45%,transparent 40%,rgba(0,0,0,.45) 100%)}
}

@media (max-width:700px){
  body{font-size:14px}
  .os{font-size:clamp(7px,2.5vw,14px)}
  .icons{gap:9% 3%}
  .list--m a{grid-template-columns:4em 1fr}
  .list--m em{grid-column:2;grid-row:3;text-align:left}
  .stats{grid-template-columns:repeat(2,1fr)}
  .bars p{grid-template-columns:6.5em 1fr 2.4em}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
  .is-on .scr::after{display:none}
}
@media print{
  .room{display:none}
  body{overflow:visible;background:#fff;color:#000}
  .js .content{position:static!important;width:auto;height:auto;clip-path:none;white-space:normal}
}

/* ============================================================
   LAYER 2 : the portfolio, full screen
   same world as the CRT, but with room to actually read
   ============================================================ */
.page{
  position:fixed;inset:0;z-index:40;
  display:flex;flex-direction:column;
  background:#04100C;
  transform-origin:0 0;
  will-change:transform,opacity;
}
.page[hidden]{display:none}

.page__fx{
  position:absolute;inset:0;pointer-events:none;z-index:3;
  background:
    repeating-linear-gradient(to bottom,rgba(255,255,255,.016) 0 1px,rgba(0,0,0,.05) 2px 4px),
    radial-gradient(130% 110% at 50% 42%,transparent 56%,rgba(0,0,0,.55) 100%);
}

/* chrome: a game control, not a navbar */
.page__chrome{
  position:sticky;top:0;z-index:4;flex:0 0 auto;
  display:flex;align-items:center;gap:1.4em;
  padding:.85rem clamp(1rem,4vw,3.5rem);
  background:rgba(4,16,12,.92);
  border-bottom:1px solid rgba(155,255,225,.22);
  font-size:.78rem;letter-spacing:.16em;
  backdrop-filter:blur(6px);
}
.page__back{
  color:var(--ph);padding:.4em .8em;
  border:1px solid rgba(155,255,225,.35);
  transition:background .18s,border-color .18s;
}
.page__back:hover{background:rgba(155,255,225,.14);border-color:var(--ph)}
.page__id{color:var(--ph-dim)}
.page__esc{margin-left:auto;color:rgba(127,214,186,.55);font-size:.7rem}

.page__body{
  flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  padding:clamp(2rem,6vw,5rem) clamp(1rem,4vw,3.5rem) 6rem;
  scrollbar-width:thin;scrollbar-color:rgba(155,255,225,.3) transparent;
}
.page__body::-webkit-scrollbar{width:10px}
.page__body::-webkit-scrollbar-thumb{background:rgba(155,255,225,.28)}
.page__inner{max-width:70rem;margin:0 auto}

/* ---------- typography at full size ---------- */
.page__body h2{
  font-size:clamp(2.4rem,7vw,5rem);font-weight:500;line-height:.98;
  letter-spacing:-.02em;color:#DFFFF4;margin-bottom:.5em;
}
.page__body h3{
  font-size:clamp(.8rem,1.5vw,1rem);font-weight:500;letter-spacing:.22em;
  color:var(--ph-dim);margin:3.5rem 0 1.2rem;
  padding-bottom:.6rem;border-bottom:1px solid rgba(155,255,225,.2);
}
.page__body h4{font-size:.78rem;letter-spacing:.2em;color:var(--ph-dim);margin:1.8rem 0 .7rem}
.page__body p{margin-bottom:1em;max-width:62ch;font-size:clamp(.95rem,1.15vw,1.1rem);line-height:1.75}
.page__body .lead{
  font-size:clamp(1.3rem,2.6vw,2rem);line-height:1.35;color:#DFFFF4;
  max-width:26ch;margin-bottom:1.4em;
}
.page__body .note{color:var(--ph-dim);font-size:.95rem;max-width:62ch}
.page__body a{color:#DFFFF4;text-decoration:none;border-bottom:1px solid rgba(183,255,233,.3)}
.page__body a:hover{color:#fff;border-bottom-color:#fff}
.page__body figure{margin:2.5rem 0 0;max-width:52rem}
.page__body figure img{width:100%;border:1px solid rgba(155,255,225,.28)}
.page__body figcaption{font-size:.85rem;color:var(--ph-dim);margin-top:.8rem;max-width:60ch}

.page__body .kv{
  display:grid;grid-template-columns:auto 1fr;gap:.35rem 2.5rem;
  margin-bottom:2.5rem;font-size:.95rem;max-width:40rem;
}
.page__body .kv dt{color:var(--ph-dim);letter-spacing:.14em}
.page__body .kv dd{color:#DFFFF4}

/* ---------- records ---------- */
.page__body .list{margin-top:.5rem}
.page__body .list li{border-top:1px solid rgba(155,255,225,.18)}
.page__body .list li:last-child{border-bottom:1px solid rgba(155,255,225,.18)}
.page__body .list a{
  display:grid;grid-template-columns:1fr auto;gap:.3rem 2rem;align-items:baseline;
  padding:1.5rem .5rem;border:0;transition:background .2s,padding .2s;
}
.page__body .list a:hover{background:rgba(155,255,225,.07);padding-left:1.2rem}
.page__body .list b{grid-column:1;font-size:clamp(1.1rem,2.1vw,1.6rem);font-weight:500;line-height:1.25}
.page__body .list span{grid-column:1;font-size:.9rem;color:var(--ph-dim);line-height:1.55;max-width:60ch}
.page__body .list em{grid-column:2;grid-row:1;font-style:normal;font-size:.95rem;color:#DFFFF4;text-align:right;white-space:nowrap}

.page__body .list--m a{grid-template-columns:clamp(7rem,14vw,13rem) 1fr auto;align-items:start}
.page__body .list--m img{
  grid-column:1;grid-row:1/4;align-self:start;
  width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;
  border:1px solid rgba(155,255,225,.28);filter:saturate(.85) brightness(.95);
}
.page__body .list--m b{grid-column:2;grid-row:1}
.page__body .list--m span{grid-column:2;grid-row:2}
.page__body .list--m em{grid-column:3;grid-row:1}

/* ---------- grids ---------- */
.page__body .grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));
  gap:1px;background:rgba(155,255,225,.18);
  border:1px solid rgba(155,255,225,.18);margin-top:1rem;
}
.page__body .grid li{background:#04100C;padding:1.5rem 1.4rem}
.page__body .grid b{display:block;font-size:1.2rem;font-weight:500;margin-bottom:.2rem}
.page__body .grid span{display:block;font-size:.78rem;letter-spacing:.16em;color:var(--ph-dim);margin-bottom:.8rem}
.page__body .grid p{font-size:.92rem;margin:0;max-width:none}

.page__body .stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:rgba(155,255,225,.18);border:1px solid rgba(155,255,225,.18);
}
.page__body .stats li{background:#04100C;padding:1.6rem 1.4rem}
.page__body .stats b{display:block;font-size:clamp(2rem,4.4vw,3.4rem);line-height:1;color:#DFFFF4}
.page__body .stats span{display:block;font-size:1rem;margin-top:.5rem}
.page__body .stats i{display:block;font-style:normal;font-size:.78rem;letter-spacing:.12em;color:var(--ph-dim);margin-top:.2rem}

.page__body .bars{max-width:46rem}
.page__body .bars p{
  display:grid;grid-template-columns:12rem 1fr 3.5rem;gap:1rem;align-items:center;
  margin-bottom:.5rem;font-size:.92rem;max-width:none;
}
.page__body .bars i{height:.8rem;background:rgba(155,255,225,.15);position:relative;display:block}
.page__body .bars i::after{content:"";position:absolute;inset:0 auto 0 0;width:var(--w);background:var(--ph-dim)}
.page__body .bars em{font-style:normal;text-align:right;color:#DFFFF4}

.page__body .quotes{display:grid;grid-template-columns:repeat(auto-fit,minmax(18rem,1fr));gap:1.5rem;margin-top:1rem}
.page__body .quotes li{
  font-size:clamp(1.05rem,1.8vw,1.35rem);line-height:1.4;color:#DFFFF4;
  padding:.2rem 0 .2rem 1.2rem;border-left:2px solid var(--ph-dim);
}
.page__body pre{white-space:pre-wrap;font:inherit;font-size:1rem;line-height:1.8;color:#DFFFF4}

@media (max-width:700px){
  .page__chrome{font-size:.68rem;gap:.8em;padding:.7rem 1rem}
  .page__esc{display:none}
  .page__body .list a{grid-template-columns:1fr;padding:1.1rem .2rem}
  .page__body .list em{grid-column:1;grid-row:auto;text-align:left;margin-top:.3rem}
  .page__body .list--m a{grid-template-columns:5.5rem 1fr}
  .page__body .list--m img{grid-row:1/4;align-self:start}
  .page__body .list--m b,.page__body .list--m span{grid-column:2}
  .page__body .list--m em{grid-column:2;grid-row:3}
  .page__body .stats{grid-template-columns:repeat(2,1fr)}
  .page__body .bars p{grid-template-columns:8rem 1fr 3rem;gap:.6rem}
}

/* ---------- the transition: the screen expands into the world ---------- */
.page.is-anim{transition:transform .42s cubic-bezier(.2,.85,.25,1),opacity .3s ease}
.room.is-anim{transition:transform .42s cubic-bezier(.2,.85,.25,1),opacity .34s ease}
.room.is-gone{opacity:0;pointer-events:none}
.flash.go2{animation:flash2 .28s ease-out}
@keyframes flash2{0%{opacity:0}30%{opacity:.5}100%{opacity:0}}

@media (prefers-reduced-motion:reduce){
  .page.is-anim,.room.is-anim{transition:none}
}

/* ---------- media kit: the actual posts ---------- */
.page__body .posts{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(17rem,1fr));
  gap:1.6rem;margin-top:1.2rem;
}
.page__body .posts a{
  display:block;border:1px solid rgba(155,255,225,.2);border-bottom-width:1px;
  padding:0 0 1.1rem;text-decoration:none;
  transition:border-color .25s ease,transform .25s ease;
}
.page__body .posts a:hover{border-color:rgba(155,255,225,.6);transform:translateY(-3px)}
.page__body .posts img{
  width:100%;height:auto;display:block;
  border-bottom:1px solid rgba(155,255,225,.2);
  filter:saturate(.9) brightness(.94);transition:filter .25s ease;
}
.page__body .posts a:hover img{filter:saturate(1) brightness(1)}
.page__body .posts b{display:block;font-size:1.05rem;font-weight:500;line-height:1.3;padding:1rem 1.1rem .3rem}
.page__body .posts span{display:block;font-size:.82rem;color:var(--ph-dim);padding:0 1.1rem}
.page__body .posts em{
  display:block;font-style:normal;font-size:.95rem;color:#DFFFF4;
  padding:.6rem 1.1rem 0;letter-spacing:.04em;
}

/* ============================================================
   ENTRY MOTION : a one-shot CSS stagger. no observer, so content
   can never end up stuck invisible.
   ============================================================ */
.page__inner > *{animation:pin .5s cubic-bezier(.2,.8,.3,1) both}
.page__inner > *:nth-child(1){animation-delay:.02s}
.page__inner > *:nth-child(2){animation-delay:.07s}
.page__inner > *:nth-child(3){animation-delay:.12s}
.page__inner > *:nth-child(4){animation-delay:.17s}
.page__inner > *:nth-child(5){animation-delay:.22s}
.page__inner > *:nth-child(n+6){animation-delay:.26s}
@keyframes pin{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* work rows: a scanline sweeps the row, the number leans in */
/* work rows: a scanline sweeps the row and the number counts up */
.page__body .list li{position:relative;overflow:hidden}
.page__body .list a::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:2px;
  background:var(--ph);transform:scaleY(0);transform-origin:top;
  transition:transform .3s cubic-bezier(.2,.8,.3,1);
}
.page__body .list a:hover::before,.page__body .list a:focus-visible::before{transform:scaleY(1)}
.page__body .list em{transition:transform .3s cubic-bezier(.2,.8,.3,1),color .3s}
.page__body .list a:hover em{transform:scale(1.12);color:var(--ph)}

/* channel cards lift and light their label */
.page__body .grid li{transition:background .25s ease,transform .25s cubic-bezier(.2,.8,.3,1)}
.page__body .grid li:hover{background:#07201A;transform:translateY(-3px)}
.page__body .grid li span{transition:color .25s}
.page__body .grid li:hover span{color:var(--ph)}

/* stat tiles: a slow phosphor bloom on entry */
.page__body .stats li{position:relative}
.page__body .stats b{transition:text-shadow .4s ease}
.page__body .stats li:hover b{text-shadow:0 0 18px rgba(155,255,225,.45)}

/* audience bars fill from zero once they scroll in */
.page__body .bars i::after{width:0;animation:barfill .9s cubic-bezier(.2,.8,.25,1) .3s both}
@keyframes barfill{from{width:0}to{width:var(--w)}}
.page__body .bars i::after{width:var(--w)}

@media (prefers-reduced-motion:reduce){
  .page__inner > *{animation:none}
  .page__body .bars i::after{width:var(--w);animation:none}
  .page__body .posts a:hover,.page__body .grid li:hover{transform:none}
}

/* ============================================================
   SEARCH_RENEE_OS  : an OS find utility, not a website searchbar
   ============================================================ */
.bar__find{border:1px solid rgba(180,255,230,.4);padding:.05em .5em;margin-left:.4em}
.bar__find:hover,.bar__snd:hover,.bar__start:hover{background:rgba(183,255,233,.18)}
.bar__snd[aria-pressed="true"]{background:rgba(183,255,233,.26);color:#EDFFF8}

.find{
  position:fixed;inset:0;z-index:70;
  display:flex;align-items:flex-start;justify-content:center;
  padding:clamp(1rem,8vh,6rem) 1rem 1rem;
  background:rgba(2,10,8,.86);backdrop-filter:blur(4px);
  animation:findin .16s ease-out both;
}
.find[hidden]{display:none}
@keyframes findin{from{opacity:0}to{opacity:1}}
.find__box{
  width:min(46rem,100%);
  background:#04140F;border:1px solid rgba(155,255,225,.4);
  box-shadow:0 0 40px rgba(0,0,0,.7);
  display:flex;flex-direction:column;max-height:100%;
}
.find__head{
  display:flex;align-items:center;justify-content:space-between;
  padding:.6rem .9rem;border-bottom:1px solid rgba(155,255,225,.25);
  font-size:.7rem;letter-spacing:.2em;color:var(--ph-dim);
}
.find__input{
  width:100%;background:transparent;border:0;outline:0;
  color:#DFFFF4;font:inherit;font-size:clamp(1.1rem,3vw,1.5rem);
  padding:1rem .9rem;letter-spacing:.02em;
  border-bottom:1px solid rgba(155,255,225,.2);
}
.find__input::placeholder{color:rgba(127,214,186,.45)}
.find__results{flex:1 1 auto;overflow-y:auto;min-height:0}
.find__results li{border-bottom:1px solid rgba(155,255,225,.12)}
.find__hit{
  display:grid;grid-template-columns:1fr auto;gap:.15rem 1rem;
  width:100%;text-align:left;padding:.8rem .9rem;
  transition:background .12s;
}
.find__hit:hover,.find__hit[aria-selected="true"]{background:rgba(155,255,225,.13)}
.find__hit .p{grid-column:1;font-size:.68rem;letter-spacing:.18em;color:var(--ph-dim)}
.find__hit .t{grid-column:1;font-size:1rem;color:#DFFFF4;line-height:1.3}
.find__hit .d{grid-column:1;font-size:.8rem;color:var(--ph-dim);line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.find__hit .k{grid-column:2;grid-row:1/3;font-size:.65rem;letter-spacing:.16em;color:var(--ph-dim);align-self:center}
.find__empty{padding:1.4rem .9rem;font-size:.85rem;letter-spacing:.16em;color:var(--ph-dim)}
@media (max-width:700px){
  .find{padding:0}
  .find__box{width:100%;height:100%;max-height:none;border:0}
}

/* ============================================================
   TOOLTIPS + POWER CALLOUT : drawn in the screen's own language
   ============================================================ */
.tip{
  position:fixed;z-index:90;pointer-events:none;
  padding:.45em .7em;
  font-family:var(--mono);font-size:.68rem;letter-spacing:.14em;
  color:#DFFFF4;background:rgba(4,20,15,.95);
  border:1px solid rgba(155,255,225,.55);
  box-shadow:0 0 14px rgba(80,255,200,.18);
  white-space:nowrap;
  animation:tipin .12s ease-out both;
}
.tip[hidden]{display:none}
@keyframes tipin{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}

.pwr{cursor:pointer}
@media (prefers-reduced-motion:reduce){
  .pwr-ring{animation:none;opacity:.8}
  .tip{animation:none}
}

/* ============================================================
   THE ALARM CLOCK
   the baked digits were cleared from the artwork; these are real
   seven-segment digits, so they read as an LED panel rather than
   a font pretending to be one.
   ============================================================ */
.led{
  position:absolute;z-index:5;pointer-events:none;
  left:84.180%;               /* digits x 1293 */
  top:76.074%;                /* digits y 779  */
  width:9.766%;               /* w 150 */
  height:5.859%;              /* h 60  */
  display:flex;align-items:stretch;gap:1.2%;
}
.dig{position:relative;flex:0 0 17.5%}
.cln{position:relative;flex:0 0 6%}
.dig i,.cln i{
  position:absolute;display:block;
  background:#6FDE4F;
  box-shadow:0 0 .28em rgba(120,240,90,.55);
  opacity:0;transition:opacity .12s linear;
}
.dig i.on,.cln i{opacity:1}

/* bar geometry: 18% inset so the corners read as mitred */
.dig .a,.dig .g,.dig .d{left:17%;right:17%;height:13%}
.dig .a{top:0}
.dig .g{top:43.5%}
.dig .d{bottom:0}
.dig .f,.dig .b,.dig .e,.dig .c{width:15%;height:36%}
.dig .f{left:0;top:6%}
.dig .b{right:0;top:6%}
.dig .e{left:0;bottom:6%}
.dig .c{right:0;bottom:6%}

.cln i{left:22%;right:22%;height:11%}
.cln i:first-child{top:28%}
.cln i:last-child{bottom:28%}

.mer{
  align-self:flex-start;margin-left:4%;
  font-family:var(--mono);font-weight:500;
  font-size:min(1.9cqw,2.1vh);line-height:1.1;
  color:#6FDE4F;text-shadow:0 0 .3em rgba(120,240,90,.5);
}
/* the mobile crop starts at x=700, so the clock is not in frame there */
@media (max-aspect-ratio: 11/10){ .led{display:none} }

/* ============================================================
   THINGS ON THE DESK
   hit areas live in artboard coordinates, like the screen, so they
   stay stuck to their objects at every size. no glow, no badges:
   discovery is the point.
   ============================================================ */
.hit{
  position:absolute;z-index:6;display:block;
  background:transparent;border:0;padding:0;
  border-radius:6px;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .2s ease,box-shadow .2s ease;
}
@media (hover:hover){
  .hit:hover{background:rgba(155,255,225,.07);box-shadow:inset 0 0 0 1px rgba(155,255,225,.28)}
}
.hit:focus-visible{outline:2px solid var(--ph);outline-offset:2px}
.hit:active{background:rgba(155,255,225,.13)}
/* fingers are not mice: never let a target fall under 44px on touch */
@media (pointer:coarse){
  .hit{min-width:44px;min-height:44px}
}

.hit--mug    {left:0.326%;  top:71.777%; width:13.021%; height:20.996%}
.hit--fig    {left:26.563%; top:63.281%; width:4.818%;  height:7.227%}
.hit--poster {left:21.810%; top:0.488%;  width:24.740%; height:56.641%}
.hit--sticker{left:72.135%; top:58.398%; width:5.013%;  height:4.297%}
.hit--mouse  {left:67.708%; top:84.473%; width:11.393%; height:9.277%}

/* every object is in the mobile frame now; you pan to reach them */
@media (max-aspect-ratio: 11/10){
  .hit--mug    {left:0.403%;  top:68.031%; width:16.129%; height:23.783%; display:block}
  .hit--fig    {left:32.903%; top:58.407%; width:5.968%;  height:8.186%;  display:block}
  .hit--poster {left:27.016%; top:0%;      width:30.645%; height:51.438%; display:block}
  .hit--sticker{left:89.355%; top:52.876%; width:6.210%;  height:4.867%}
  .hit--mouse  {left:83.871%; top:82.412%; width:14.113%; height:10.509%}
  .fig-say{left:36%;top:56%;display:block;font-size:2.2vw}
}

/* the figure objects when annoyed */
.fig-shake{animation:figshake .42s cubic-bezier(.36,.07,.19,.97) both}
@keyframes figshake{
  10%,90%{transform:translateX(-1.5%)}
  20%,80%{transform:translateX(2.5%)}
  30%,50%,70%{transform:translateX(-3.5%)}
  40%,60%{transform:translateX(3.5%)}
}
.fig-say{
  position:absolute;z-index:7;pointer-events:none;
  left:29%;top:59.5%;transform:translate(-50%,-100%);
  padding:.35em .6em;white-space:nowrap;
  font-size:min(1.1cqw,1.35vh);letter-spacing:.16em;
  color:#FFC98A;background:rgba(12,8,4,.92);
  border:1px solid rgba(255,190,120,.5);
  opacity:0;transition:opacity .2s;
}
.fig-say.on{opacity:1}
@media (max-aspect-ratio: 11/10){ .fig-say{display:none} }

/* ============================================================
   DIALOGS  (found programs)
   ============================================================ */
.dlg{
  position:fixed;inset:0;z-index:80;
  display:flex;align-items:center;justify-content:center;padding:1rem;
  background:rgba(2,10,8,.82);backdrop-filter:blur(3px);
  animation:dlgin .15s ease-out both;
}
.dlg[hidden]{display:none}
@keyframes dlgin{from{opacity:0}to{opacity:1}}
.dlg__box{
  background:#04140F;border:1px solid rgba(155,255,225,.5);
  box-shadow:0 0 40px rgba(0,0,0,.75),0 0 24px rgba(70,255,200,.10);
  display:flex;flex-direction:column;max-height:100%;
  animation:dlgpop .18s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes dlgpop{from{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}
.dlg__box--sm{width:min(24rem,100%)}
.dlg__box--wide{width:min(80vw,72rem)}
.dlg__box--game{width:min(78vw,54rem)}
@media (max-width:760px){
  .dlg__box--wide,.dlg__box--game{width:95vw}
}
.dlg__bar{
  flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;
  gap:1rem;padding:.5rem .7rem;
  background:linear-gradient(90deg,#2B6A55,#54A488);color:#F2FBF6;
  font-size:.78rem;letter-spacing:.16em;
}
.dlg__x{
  width:1.7em;height:1.5em;line-height:1;font-size:.8rem;
  border:1px solid #061611;background:#CFE9DF;color:#061611;
}
.dlg__x:hover{background:#fff}
.dlg__body{padding:1.6rem 1.4rem}
.dlg__msg{
  font-size:clamp(1rem,2.4vw,1.25rem);line-height:1.5;letter-spacing:.1em;
  color:#DFFFF4;text-shadow:0 0 .6em rgba(120,240,190,.35);
}
.dlg__foot{
  flex:0 0 auto;display:flex;justify-content:flex-end;
  padding:.6rem .8rem;border-top:1px solid rgba(155,255,225,.22);
}
.dlg__foot--l{justify-content:flex-start;font-size:.72rem;letter-spacing:.18em;color:var(--ph-dim)}
.dlg__ok{
  padding:.35em 1.4em;font-size:.8rem;letter-spacing:.18em;
  color:#04140F;background:#8FE8C4;border:1px solid #DFFFF4;
}
.dlg__ok:hover{background:#DFFFF4}
.dlg__video{position:relative;width:100%;aspect-ratio:16/9;background:#000}
.dlg__video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* ============================================================
   INVADERS.EXE
   ============================================================ */
.game{display:flex;flex-direction:column;background:#03100C}
.game canvas{
  display:block;width:100%;height:auto;image-rendering:pixelated;
  background:#03100C;
  box-shadow:inset 0 0 60px rgba(0,0,0,.8);
}
.game__hud{
  display:flex;justify-content:space-between;gap:1rem;
  padding:.5rem .8rem;font-size:.72rem;letter-spacing:.16em;
  color:var(--ph);border-top:1px solid rgba(155,255,225,.22);
}
.game__pad{display:none;gap:.6rem;padding:.7rem .8rem 1rem}
.pad{
  flex:1;min-height:56px;font-size:1.1rem;
  color:var(--ph);background:rgba(155,255,225,.08);
  border:1px solid rgba(155,255,225,.4);
  -webkit-tap-highlight-color:transparent;
}
.pad:active{background:rgba(155,255,225,.24)}
.pad--fire{flex:1.4;letter-spacing:.2em;font-size:.85rem}
@media (pointer:coarse){ .game__pad{display:flex} }

@media (prefers-reduced-motion:reduce){
  .dlg,.dlg__box{animation:none}
  .fig-shake{animation:none}
}

/* ============================================================
   PAN HINT  (narrow screens only)
   fixed to the viewport, not the plate, so it does not pan away.
   shows once, then never again for the session.
   ============================================================ */
.pan-hint{
  position:fixed;z-index:9;pointer-events:none;
  left:50%;bottom:max(1.1rem,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  align-items:center;gap:.6em;
  padding:.5em .9em;white-space:nowrap;
  font-size:.7rem;letter-spacing:.2em;
  color:rgba(183,255,233,.82);
  background:rgba(4,14,11,.72);
  border:1px solid rgba(155,255,225,.28);
  backdrop-filter:blur(4px);
  opacity:0;transition:opacity .45s ease;
}
.pan-hint i{font-style:normal;opacity:.65;animation:hintdrift 2.4s ease-in-out infinite}
.pan-hint i:last-child{animation-delay:1.2s}
@keyframes hintdrift{0%,100%{transform:translateX(0);opacity:.4}50%{transform:translateX(-2px);opacity:1}}
.pan-hint.on{opacity:1}
.pan-hint.on{display:flex}
.pan-hint{display:none}
@media (prefers-reduced-motion:reduce){ .pan-hint i{animation:none} }
