/* Experiments, the way in: a list of projects, the stand under the cursor. Loaded after x/base.css (typefaces, the six colours,
   the header). Nothing here has a colour of its own; the stand's material keeps its own
   colours and is set back into the page's ground.
   One screen: a small sign, three lines set in the heading face, each with a mono passport on the right. The material
   of the chosen line stands behind the list, full screen. Changing the line changes only colours and opacities, so
   nothing on the screen moves. */
.en{--wide:max(var(--gut),calc((100% - 1680px)/2));--fs:clamp(56px,min(9.4vw,15vh),152px);
  /* How far the stand is set back: its own strength, then the ground laid over it, lighter above the list. */
  --dim:.56}
.en-screen{position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:100vh;min-height:100svh;overflow:hidden}

/* ---------- The stand ---------- */
.en-stage{position:absolute;inset:0;z-index:-1;background:var(--paper);pointer-events:none}
.en-mat{position:absolute;inset:0;opacity:0;transition:opacity .9s cubic-bezier(.45,0,.3,1)}
.en-mat.is-on{opacity:var(--dim)}
.en-mat video,.en-mat img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.en-stage::after{content:'';position:absolute;inset:0 0 auto;height:170px;background:linear-gradient(to bottom,
  color-mix(in srgb,var(--paper) 84%,transparent) 0,
  color-mix(in srgb,var(--paper) 76%,transparent) 56px,
  color-mix(in srgb,var(--paper) 0%,transparent) 100%)}

/* ---------- The list ---------- */
.en-main{flex:1;display:flex;flex-direction:column;justify-content:flex-end;min-height:0;padding:0 var(--wide)}
.en-list{position:relative;z-index:0;list-style:none}
/* The ground laid over the stand where the list is: it starts above the first line and holds to the end of the
   screen, wherever the list stands. Above it the stand is seen at its own strength. */
.en-list::before{content:'';position:absolute;z-index:-1;left:50%;width:100vw;margin-left:-50vw;top:-150px;bottom:-240px;pointer-events:none;background:linear-gradient(to bottom,
  color-mix(in srgb,var(--paper) 0%,transparent) 0,
  color-mix(in srgb,var(--paper) 80%,transparent) 150px,
  color-mix(in srgb,var(--paper) 88%,transparent) 100%)}
.en-row{border-top:1px solid var(--line)}
.en-row:last-child{border-bottom:1px solid var(--line)}
.en-item{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;column-gap:0;padding:22px 0 28px;color:var(--muted);cursor:default;transition:color .25s cubic-bezier(.22,1,.36,1);-webkit-tap-highlight-color:transparent}
a.en-item{cursor:pointer}
/* Focus from the keyboard: the line is chosen, and an accent bar stands at its left edge. */
.en-item{position:relative}
.en-item:focus-visible{outline:none}
.en-item:focus-visible::before{content:'';position:absolute;left:-14px;top:-1px;bottom:-1px;width:3px;background:var(--accent)}
.en-n{font:11px/1.4 var(--mono);letter-spacing:.07em;transition:color .25s cubic-bezier(.22,1,.36,1)}
.en-name{margin:0 0 0 -.055em;font-size:var(--fs);line-height:.84;font-weight:600;letter-spacing:-.065em;white-space:nowrap}
/* The arrow of a line that opens: seen only while the line is chosen. */
.en-go{display:inline-block;margin-left:.16em;color:var(--accent);font-size:.42em;font-weight:400;letter-spacing:0;line-height:1;vertical-align:.78em;opacity:0;transform:translate(-8px,8px);transition:opacity .25s cubic-bezier(.22,1,.36,1),transform .35s cubic-bezier(.22,1,.36,1)}
.en-pass{display:grid;justify-items:end;row-gap:7px;font:11px/1.4 var(--mono);letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}
/* The status with its dot, as in the case's passport: a ring leaves the dot every two seconds. */
.en-status{position:relative;display:flex;align-items:center;gap:9px}
.en-status::before{content:'';flex:none;width:8px;height:8px;border-radius:50%;background:var(--accent)}
.en-status::after{content:'';position:absolute;left:0;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:var(--accent);opacity:0;pointer-events:none;animation:en-pulse 2s cubic-bezier(.22,1,.36,1) infinite}
@keyframes en-pulse{0%{transform:scale(1);opacity:.6}70%,100%{transform:scale(3.25);opacity:0}}
.en-note{font-size:10px;line-height:1.5}
.en-note i{display:inline-block;margin-left:4px;color:var(--accent);font-style:normal;font-size:13px;line-height:1}

/* The chosen line */
.en-row.is-sel .en-item{color:var(--ink)}
.en-row.is-sel .en-n{color:var(--accent)}
.en-row.is-sel .en-go{opacity:1;transform:none}

/* ---------- Under the list: how to choose, and what stands behind ---------- */
.en-strip{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:52px;padding:0 var(--wide);color:var(--muted);font:10px/1.5 var(--mono);letter-spacing:.07em;text-transform:uppercase}
.en-keys-fine{display:flex;align-items:center;gap:6px}
.en-keys-fine span{margin-right:14px}
.en-keys kbd{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border:1px solid var(--line);color:var(--ink);font:inherit}
.en-keys-touch{display:none}
@media(hover:none),(pointer:coarse){.en-keys-fine{display:none}.en-keys-touch{display:block}}
.en-cap{display:grid;justify-items:end;margin-left:auto;text-align:right}
.en-cap span{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .4s cubic-bezier(.45,0,.3,1),visibility 0s .4s}
.en-cap .is-on{opacity:1;visibility:visible;transition:opacity .4s cubic-bezier(.45,0,.3,1)}

.en-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:80px;padding:0 var(--wide);border-top:1px solid var(--line)}

@media(max-width:900px){
  .en{--fs:clamp(40px,min(16.4vw,9.2vh),96px)}
  .en-item{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n status" "name name" "note note";row-gap:9px;padding:15px 0 17px}
  .en-n{grid-area:n}
  .en-name{grid-area:name}
  .en-pass{display:contents}
  .en-status,.en-count{grid-area:status;justify-self:end}
  .en-note{grid-area:note;display:flex;align-items:center;min-height:15px}
  .en-go{display:none}
  .en-strip{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:60px}
  .en-cap{justify-items:start;margin-left:0;text-align:left}
}

/* The first screen comes in the way the case's blocks do: from clear and blurred to sharp, once, line after line.
   The state is on <html> (the script in the head); entry.js starts the move when the loading screen clears and takes both classes off when it is
   over, so nothing keeps a filter. Only opacity, filter and transform move. */
.en-rv [data-rv]{opacity:0;filter:blur(10px);transform:translateY(12px);will-change:opacity,filter,transform}
.en-rv .en-bar,.en-rv .en-strip{transform:none}
.en-rv .en-mat.is-on{opacity:0}
.en-rv.en-in [data-rv]{opacity:1;filter:blur(0);transform:none;transition:opacity 1.1s cubic-bezier(.45,0,.3,1) var(--rv-d,0ms),filter .8s cubic-bezier(.3,0,.3,1) var(--rv-d,0ms),transform .8s cubic-bezier(.22,1,.36,1) var(--rv-d,0ms)}
.en-rv.en-in .en-mat.is-on{opacity:var(--dim);transition:opacity 1.4s cubic-bezier(.45,0,.3,1)}
@media(prefers-reduced-motion:reduce){.en-status::after{display:none}}
@media print{.en-rv [data-rv]{opacity:1!important;filter:none!important;transform:none!important}}
