/* EnderEye's page (endereye.html). Made to look like the software's own
   display: every word in Dotfield Mono, corner marked panels, the one accent.
   One idea to a screen, with room around it. Nothing here is used by another
   page; the top bar is the home page's (.nav, styles.css).

   A wide screen has one layout. A phone has four while one is being chosen
   (html[data-p], 1 to 4), all in the phone block near the end. */
.eepage {
  --ee-bg: #0b0b0b;
  --ee-ink: #ece7d6;            /* a little warmer than the home page's text, as a display's phosphor is */
  --ee-dim: #9d998e;
  --ee-line: rgba(236, 231, 214, 0.18);
  --ee-panel: rgba(236, 231, 214, 0.035);
  --ee-dot: rgba(236, 231, 214, 0.08);
  --ee-acc: var(--accent);
  --ee-on-acc: #0b0b0b;         /* text on a button */
  --map-cam: var(--ee-acc);
  --map-tgt: #5fd08a;
  --pad: clamp(16px, 4vw, 56px);  /* the site's own side room (styles.css), so the bar and what is under it share an edge with the home page's */
  font-family: 'Dotfield Mono', 'Geist Mono', ui-monospace, monospace;
  text-transform: uppercase;
  color: var(--ee-ink);
  background-color: var(--ee-bg);
  /* the dot grid: one faint dot every 22 px */
  background-image: radial-gradient(circle, var(--ee-dot) 1px, transparent 1.5px);
  background-size: 22px 22px;
}
.eepage ::selection { background: var(--ee-acc); color: var(--ee-on-acc); }
.eepage .nav { color: var(--ee-ink); }
.eepage .nav__links a[aria-current] { opacity: 1; color: var(--ee-acc); }
/* the bar is the home page's, so nothing moves going from one page to the other: its button in its own case, not this page's capitals */
.eepage .nav__cta { text-transform: none; }
.eepage .nav .btn--outline:hover { background: var(--ee-ink); color: var(--ee-bg); border-color: var(--ee-ink); }

/* Every piece of text: its size, dot size (the font's weight), spacing, line
   height, colour, brightness and slant come from values its kind sets here,
   which the adjuster (?adjust) overrides one text at a time. */
.eepage [data-t] {
  font-size: calc(var(--fs) * var(--k, 1));
  font-weight: var(--w, 800);
  letter-spacing: var(--ls, 0.08em);
  line-height: var(--lh, 1.3);
  color: var(--c, var(--ee-ink));
  opacity: var(--o, 1);
  font-style: var(--it, normal);
}
.eepage [data-k='label'] { --fs: 11.5px; --w: 800; --ls: 0.16em; --c: var(--ee-dim); }
.eepage [data-k='title'] { --fs: clamp(51px, 7.7vw, 131px); --w: 690; --ls: 0.02em; --lh: 0.9; }
.eepage [data-k='line'] { --fs: clamp(13.5px, 1.15vw, 17px); --w: 800; --ls: 0.1em; --lh: 1.6; --c: var(--ee-dim); }
.eepage [data-k='button'] { --fs: 13px; --w: 900; --ls: 0.14em; --lh: 1; }
.eepage [data-k='heading'] { --fs: clamp(34px, 4.6vw, 74px); --w: 710; --ls: 0.03em; --lh: 1; }
.eepage [data-k='stage'] { --fs: clamp(15px, 1.35vw, 21px); --w: 900; --ls: 0.08em; --lh: 1.1; --c: var(--ee-dim); }
.eepage [data-k='method'] { --fs: clamp(13px, 1.1vw, 16px); --w: 800; --ls: 0.1em; --lh: 1.6; }
.eepage [data-k='small'] { --fs: 11.5px; --w: 800; --ls: 0.1em; --lh: 1.5; --c: var(--ee-dim); }

/* corner marks, for the scope, the map and the form */
.ec { position: absolute; width: 16px; height: 16px; border: 2px solid var(--ee-acc); pointer-events: none; }
.ec--tl { left: -1px; top: -1px; border-right: 0; border-bottom: 0; } .ec--tr { right: -1px; top: -1px; border-left: 0; border-bottom: 0; }
.ec--bl { left: -1px; bottom: -1px; border-right: 0; border-top: 0; } .ec--br { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

/* the button: two corners cut, as the software's own */
.eebtn { display: inline-flex; align-items: center; justify-self: start; height: 46px; padding: 0 22px; background: var(--ee-acc); border: 0; cursor: pointer; font: inherit; text-transform: inherit;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: filter 0.2s, transform 0.08s; }
.eebtn [data-t] { color: var(--c, var(--ee-on-acc)); }
.eebtn:hover { filter: brightness(1.12); }
.eebtn:active { transform: translateY(1px); }

/* ---- a screen: one idea, set in the middle of its height, with room around it */
.es { position: relative; min-height: 92svh; display: grid; align-content: center; justify-items: start; gap: clamp(14px, 2.4vh, 26px); padding: clamp(72px, 12vh, 130px) var(--pad); }
.es__n { margin-bottom: -6px; }

/* ---- 01, 02 and 03: the clip stays put on the right while the name, the map, then the graphs pass on the left */
.estage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.estage > .es { grid-column: 1; padding-right: clamp(18px, 3vw, 48px); }
.es--hero { min-height: 100svh; }
/* the map and the readout are one flight's data, read together: no screen's height each, and little room between them */
.es--map { min-height: 0; padding-bottom: clamp(18px, 3.4vh, 36px); }
.es--read { min-height: 0; padding-top: clamp(18px, 3.4vh, 36px); }
.es--hero .eebtn { margin-top: clamp(10px, 2vh, 22px); }
.es__name { margin-left: -0.04em; }
/* the words come up one after another, as a display starting */
.es--hero > * { animation: eeup 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.es--hero > :nth-child(2) { animation-delay: 0.08s; } .es--hero > :nth-child(3) { animation-delay: 0.18s; } .es--hero > :nth-child(4) { animation-delay: 0.28s; }
@keyframes eeup { from { opacity: 0; transform: translateY(14px); } }

/* the scope: the clip in a frame with corner marks, its
   own time and frame number under it. As wide as its column, or as the height
   of the screen lets a 4:3 picture be. */
.scope { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: max(84px, calc(50svh - min(26vw, 36svh) - 30px)); z-index: 4; justify-self: center;
  width: min(calc(100% - var(--pad)), calc((100svh - 200px) * 4 / 3)); margin: 0 var(--pad) 0 0; padding: 10px; border: 1px solid var(--ee-line); background: var(--ee-panel); overflow: hidden;
  animation: eeon 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes eeon { from { opacity: 0; clip-path: inset(48% 0 48% 0); } to { clip-path: inset(0); } }
.scope video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
/* the examples: one flight's clip, map and graphs show at a time; the one coming in slides a little from the side it was called from */
.scope[hidden], .emap[hidden], .eread[hidden] { display: none; }
.ef-in { animation: efin 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes efin { from { opacity: 0; transform: translateX(calc(var(--from, 1) * 28px)); } }
/* their arrows: at the screen's two edges, half way down, while the examples are in view; chevrons of dots, as the letters are */
.earrow { position: fixed; top: 50%; z-index: 40; display: grid; place-items: center; width: 44px; height: 92px; margin-top: -46px; padding: 0; border: 0; background: none; color: var(--ee-ink); cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, color 0.2s, transform 0.2s; }
.earrow--prev { left: max(2px, calc(var(--pad) / 2 - 22px)); }
.earrow--next { right: max(2px, calc(var(--pad) / 2 - 22px)); }
.earrow--prev svg { transform: scaleX(-1); }
.earrow svg { display: block; width: 26px; height: 45.5px; fill: currentColor; }
.earrows.is-on .earrow { opacity: 0.8; visibility: visible; }
.earrows.is-on .earrow:hover { opacity: 1; color: var(--ee-acc); }
.earrow--prev:active { transform: translateX(-2px); } .earrow--next:active { transform: translateX(2px); }
.earrow:focus-visible { outline: 1px solid var(--ee-ink); outline-offset: -4px; }
.scope__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 2px 0; }
.scope__n { display: flex; gap: 16px; font-size: 11.5px; font-weight: 900; letter-spacing: 0.12em; color: var(--ee-acc); font-variant-numeric: tabular-nums; }
.scope__n b { font-weight: inherit; }

/* the 3D map: a canvas in a frame; the pointer turns it, a click on a path moves the clip */
.emap { position: relative; width: 100%; margin-top: 6px; border: 1px solid var(--ee-line); background: var(--ee-panel); }
.emap canvas { display: block; width: 100%; height: clamp(260px, 44svh, 460px); cursor: grab; touch-action: pan-y; }
.emap canvas:active { cursor: grabbing; }
.emap__read { position: absolute; left: 12px; right: 12px; bottom: 9px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none;
  font-size: 11.5px; font-weight: 900; letter-spacing: 0.12em; color: var(--ee-acc); font-variant-numeric: tabular-nums; }
.emap__none { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; pointer-events: none; }
.emap__none[hidden] { display: none; }
/* phones only: the clip again, small, in the map's corner */
.emap .emap__pip { display: none; position: absolute; right: 8px; top: 8px; width: 36%; height: auto; cursor: default; aspect-ratio: 4 / 3; border: 1px solid var(--ee-line); background: #000; pointer-events: none; }
.emap__key { display: flex; gap: 22px; }

/* ---- 03: the readout. Three graphs, one under another, the clip's moment a line across them */
.eread { position: relative; display: grid; gap: 12px; width: 100%; margin-top: 6px; }
.egraph { position: relative; margin: 0; border: 1px solid var(--ee-line); background: var(--ee-panel); }
.egraph figcaption { position: absolute; left: 12px; right: 12px; top: 9px; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.egraph figcaption b { font-size: 11.5px; font-weight: 900; letter-spacing: 0.12em; color: var(--ee-acc); font-variant-numeric: tabular-nums; }
.egraph canvas { display: block; width: 100%; height: clamp(84px, 13svh, 128px); cursor: crosshair; touch-action: pan-y; }

/* ---- the interface: a recording of the dashboard in a frame with corner marks, as wide as it reads well */
.eframe { position: relative; margin: 0; padding: 10px; border: 1px solid var(--ee-line); background: var(--ee-panel); }
.eframe video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.es--shot .eframe { width: min(100%, 1240px); margin-top: 6px; }
.emap__key .k::before { content: ''; display: inline-block; width: 14px; height: 2px; margin: 0 8px 3px 0; background: var(--map-cam); }
.emap__key .k--tgt::before { background: var(--map-tgt); }

/* ---- autonomy: its name, and its state in a chip */
.echip { display: inline-block; padding: 6px 10px; border: 1px solid var(--ee-acc); }
.eepage .echip[data-t] { --c: var(--ee-acc); }

/* ---- 05: access. Two ways, side by side: a card that opens the waitlist's form, and an email link */
.eeway { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(100%, 720px); margin-top: clamp(8px, 2vh, 20px); }
.eeway__c { display: grid; gap: 10px; align-content: start; padding: 18px 20px 20px; text-align: left; font: inherit; text-transform: inherit; color: inherit; cursor: pointer;
  background: var(--ee-panel); border: 1px solid var(--ee-line); transition: border-color 0.2s, background-color 0.2s; }
.eeway__c::before { content: ''; width: 7px; height: 7px; margin-bottom: 4px; background: var(--ee-dim); transition: background-color 0.25s, box-shadow 0.25s; }
.eeway__c:hover, .eeway__c[aria-expanded='true'] { border-color: var(--ee-acc); }
.eeway__c:hover::before, .eeway__c[aria-expanded='true']::before { background: var(--ee-acc); box-shadow: 0 0 10px var(--ee-acc); }
.eeway__c:focus-visible { outline: 1px solid var(--ee-ink); outline-offset: 3px; }
.eepage .eeway [data-k='stage'] { --c: var(--ee-ink); }
/* an address reads as it is written */
.eepage .eeway [data-t='way.bs'] { text-transform: none; }

/* the form: two questions to a row where there is room, every one required */
.eef { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(24px, 4vw, 56px); width: min(100%, 980px); margin-top: clamp(14px, 3vh, 30px); }
.eef[hidden], .eef__f[hidden] { display: none; }
.eef__f { display: grid; gap: 9px; align-content: start; margin: 0; padding: 0; border: 0; min-width: 0; }
.eef__f--wide, .eef__end { grid-column: 1 / -1; }
.eef__f legend { padding: 0; margin-bottom: 9px; }
/* what is typed is not put in capitals: an address should read as it was typed */
.eef input:is([type='email'], [type='text']), .eef textarea { width: 100%; padding: 10px 0 11px; font: inherit; font-size: 16px; font-weight: 900; letter-spacing: 0.06em; text-transform: none; color: var(--ee-ink);
  background: none; border: 0; border-bottom: 1px dotted var(--ee-dim); border-radius: 0; }
.eef textarea { display: block; resize: vertical; min-height: 4.2em; line-height: 1.5; }
.eef :is(input, textarea):focus-visible { outline: none; border-bottom: 1px solid var(--ee-acc); }
.eef ::placeholder { color: var(--ee-dim); opacity: 0.55; }
/* a question left without an answer when the form was sent */
.eepage .eef__f.is-missing [data-k='label'] { --c: var(--ee-acc); }
.eef__f.is-missing [data-k='label']::after { content: ' / needed'; }
.eef__f.is-missing :is(input:is([type='email'], [type='text']), textarea) { border-bottom-color: var(--ee-acc); }
/* examples under a question, quieter than the question itself */
.eepage .eef__hint { --o: 0.62; --lh: 1.6; margin-top: -3px; }
.eef__end { display: grid; gap: 14px; justify-items: start; }
.eef__go:disabled { opacity: 0.55; cursor: default; }
/* a field people never see or reach, which robots fill in (see endereye.js) */
.eef__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* in the form's place once it has been sent */
.eedone { margin: clamp(14px, 3vh, 30px) 0 0; padding: 16px 20px; border: 1px solid var(--ee-acc); outline: none; }
.eedone[hidden] { display: none; }
.eepage .eedone [data-k='stage'] { --c: var(--ee-acc); }
/* a small button of the quiet kind, after the two ways in: to the Discord server */
.eelink { display: inline-flex; align-items: center; gap: 10px; height: 38px; margin-top: clamp(10px, 2.4vh, 24px); padding: 0 15px; border: 1px solid var(--ee-line); transition: border-color 0.2s; }
.eelink::before { content: ''; width: 6px; height: 6px; background: var(--ee-dim); transition: background-color 0.2s; }
.eelink:hover { border-color: var(--ee-acc); }
.eelink:hover::before { background: var(--ee-acc); }
.eelink:focus-visible { outline: 1px solid var(--ee-ink); outline-offset: 3px; }
.eepage .eelink [data-t] { --fs: 11.5px; --c: var(--ee-ink); }
@media (max-width: 760px) {
  .eeway, .eef { grid-template-columns: 1fr; }
}
.eef__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eef__chips label { cursor: pointer; }
.eef__chips input { position: absolute; opacity: 0; pointer-events: none; }
.eef__chips span { display: block; padding: 10px 13px; border: 1px solid var(--ee-line); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; color: var(--ee-dim); transition: color 0.15s, border-color 0.15s, background-color 0.15s; }
.eef__chips label:hover span { color: var(--ee-ink); }
.eef__chips input:checked + span { color: var(--ee-acc); border-color: var(--ee-acc); background: color-mix(in srgb, var(--ee-acc) 10%, transparent); }
.eef__chips input:focus-visible + span { border-color: var(--ee-ink); }
.eef__say { min-height: 1.5em; }
.eepage .eef__say.is-bad { --c: var(--ee-acc); }

/* ---- the foot */
.eefoot { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding: 24px var(--pad); border-top: 1px solid var(--ee-line); }
.eefoot .nav__mark { color: var(--ee-ink); }
.eepage .eefoot a[data-t]:hover { --c: var(--ee-acc); }

/* ============================================================ phones
   One column. The clip does not stay over the page, except in the last of
   the four layouts kept while one is being chosen (html[data-p]):
   1 Flow      the name and the button first, then the clip in its frame, then the map; all scrolling away
   2 Backdrop  the clip filling the first screen behind the name
   3 Panels    every screen a framed panel with a title bar, as the software's own
   4 Pinned    the first one made: the clip staying at the top of the screen
   In the first three the map carries the clip again, small, in its corner. */
@media (max-width: 860px) {
  .estage { grid-template-columns: 1fr; }
  .estage > .es { grid-column: 1; grid-row: auto; padding-inline: var(--pad); }
  .scope { grid-column: 1; grid-row: auto; justify-self: stretch; }
  .es { min-height: 0; padding-block: clamp(48px, 9vh, 80px); }
  .eepage [data-k='title'] { --fs: 18vw; }
  .emap canvas { height: 38svh; }
  .egraph canvas { height: 92px; }
  .emap .emap__pip { display: block; }
  .es--map { padding-bottom: 14px; }
  .es--read { padding-top: 14px; }
  /* the arrows have no margin to stand in here: smaller, on a ground of their own, over the page's edges */
  .earrow { width: 30px; height: 64px; margin-top: -32px; background: color-mix(in srgb, var(--ee-bg) 72%, transparent); }
  .earrow--prev { left: 0; } .earrow--next { right: 0; }
  .earrow svg { width: 14px; height: 24.5px; }

  /* 1 Flow */
  /* the name, its line and the button come first (the hero is put ahead of the clip, which the page's order has before it); the clip follows, then the map */
  [data-p='1'] .es--hero { order: -1; min-height: 0; padding-top: 104px; padding-bottom: 34px; }
  [data-p='1'] .scope { position: static; width: auto; margin: 0 var(--pad); padding: 8px; }
  [data-p='1'] .es--map { padding-top: 44px; }

  /* 2 Backdrop: the clip is the first screen's ground, darkened towards the foot where the name stands */
  [data-p='2'] .estage { position: relative; }
  [data-p='2'] .scope { position: absolute; grid-area: auto; inset: 0 0 auto 0; width: 100%; height: 100svh; margin: 0; padding: 0; border: 0; background: #000; z-index: 0; animation: none; }
  [data-p='2'] .scope video { height: 100%; aspect-ratio: auto; opacity: 0.78; }
  [data-p='2'] .scope::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, color-mix(in srgb, var(--ee-bg) 70%, transparent), transparent 22%, transparent 38%, var(--ee-bg) 84%); }
  [data-p='2'] .scope .ec { display: none; }
  [data-p='2'] .scope__bar { position: absolute; z-index: 1; left: var(--pad); right: var(--pad); top: 66px; padding: 0; }
  [data-p='2'] .es--hero { position: relative; z-index: 1; min-height: 100svh; align-content: end; padding-bottom: 10svh; }

  /* 3 Panels */
  [data-p='3'] .scope { position: static; width: auto; margin: 10px 10px 0; padding: 8px; }
  [data-p='3'] .es, [data-p='3'] .estage > .es { margin: 10px 10px 0; padding: 20px 16px 22px; gap: 14px; border: 1px solid var(--ee-line); background: var(--ee-panel); }
  /* the name's panel first, under the bar; the clip after it */
  [data-p='3'] .es--hero, [data-p='3'] .estage > .es--hero { order: -1; min-height: 0; margin-top: 66px; }
  [data-p='3'] .eepage [data-k='title'] { --fs: 14vw; }
  /* a panel's title bar: its name small at the left, its number at the right, a rule under them */
  [data-p='3'] .eepage [data-k='heading'] { --fs: 17px; --w: 900; --ls: 0.14em; }
  [data-p='3'] .es h2 { justify-self: stretch; padding-bottom: 13px; border-bottom: 1px solid var(--ee-line); }
  [data-p='3'] .es__n { position: absolute; right: 16px; top: 22px; margin: 0; }
  [data-p='3'] .eefoot { margin-top: 10px; }

  /* 4 Pinned */
  [data-p='4'] .scope { top: 0; width: 100%; margin: 56px 0 0; padding: 6px; border-width: 0 0 1px; background: var(--ee-bg); }
  [data-p='4'] .scope video { aspect-ratio: auto; height: min(34svh, 75vw); }
  [data-p='4'] .scope .ec { display: none; }
  [data-p='4'] .es--hero { min-height: 52svh; }
  [data-p='4'] .emap .emap__pip { display: none; }
}

/* ============================================================ the text animations
   Six ways a text can arrive (html[data-a], 1 to 6, the first unless another is asked for; 0 is none), played by
   js/endereye.js on each text as it comes into view. While one plays, the text
   holds a copy of itself that is only looked at (.ea); --wait is its turn. */
@media (prefers-reduced-motion: no-preference) {
  /* a text waits unseen for its turn; the hero's own rise is left out, so the two do not play at once */
  html:not([data-a='0']) .eepage [data-t]:not(.ea-in) { visibility: hidden; }
  html:not([data-a='0']) .es--hero > * { animation: none; }
}
.ea { animation-delay: var(--wait, 0ms); animation-fill-mode: both; }

/* 1 Scramble: the letters still turning over are in the accent */
.ea__x { color: var(--ee-acc); }
.eebtn .ea__x { color: inherit; opacity: 0.6; }

/* 2 Highlight: a bar of the accent runs over the words, holds, and leaves them behind it.
   On a text of several lines it runs through them one after another, as a marker would. */
.ea--2 { background: linear-gradient(var(--ee-acc), var(--ee-acc)) no-repeat 0 0 / 0% 100%; padding: 0.14em 0.3em; margin: -0.14em -0.3em;
  animation: eamark 0.9s cubic-bezier(0.6, 0, 0.2, 1) var(--wait, 0ms) both; }
@keyframes eamark {
  from { background-size: 0% 100%; background-position: 0 0; color: transparent; }
  40% { background-size: 100% 100%; background-position: 0 0; color: transparent; }
  41% { color: var(--ee-on-acc); }
  68% { background-size: 100% 100%; background-position: 100% 0; color: var(--ee-on-acc); }
  69% { color: inherit; }
  to { background-size: 0% 100%; background-position: 100% 0; color: inherit; }
}
/* a button is the accent already: there the bar is the page's dark */
.eebtn .ea--2 { background-image: linear-gradient(var(--ee-on-acc), var(--ee-on-acc)); }
.eebtn .ea--2 { animation-name: eamarkbtn; }
@keyframes eamarkbtn {
  from { background-size: 0% 100%; background-position: 0 0; color: transparent; }
  40% { background-size: 100% 100%; background-position: 0 0; color: transparent; }
  41% { color: var(--ee-acc); }
  68% { background-size: 100% 100%; background-position: 100% 0; color: var(--ee-acc); }
  69% { color: inherit; }
  to { background-size: 0% 100%; background-position: 100% 0; color: inherit; }
}

/* 3 Type: a block cursor, taking no room of its own */
.ea__cur { position: relative; }
.ea__cur::after { content: ''; position: absolute; left: 0.06em; bottom: 0.14em; width: 0.56em; height: 0.86em; background: var(--ee-acc); }
.eebtn .ea__cur::after { background: currentColor; }

/* 4 Dot gain: the dots open from pinpoints, past their size, and settle (the font's weight is its dot size) */
.ea--4 { animation: eadots 0.8s cubic-bezier(0.3, 0.7, 0.2, 1) var(--wait, 0ms) both; }
@keyframes eadots { from { font-weight: 100; opacity: 0; } 25% { font-weight: 100; opacity: 0.7; } 70% { font-weight: 900; opacity: 1; } }

/* 5 Flicker: each letter comes on at its own moment (--d) */
.ea--5 b { font-weight: inherit; animation: eaflick 0.42s steps(1) calc(var(--wait, 0ms) + var(--d, 0s)) both; }
@keyframes eaflick { from { opacity: 0; } 30% { opacity: 1; } 45% { opacity: 0.15; } 60% { opacity: 1; } 75% { opacity: 0.4; } to { opacity: 1; } }

/* 6 Lock on: four corner marks close on the words, which then appear, as the software's box closes on a target */
.ea--6 { position: relative; display: inline-block; max-width: 100%; vertical-align: top; animation: ealockwords 0.9s steps(1) var(--wait, 0ms) both; }
.ea--6::before { content: ''; position: absolute; inset: -7px -11px; pointer-events: none; --m: var(--ee-acc);
  background:
    linear-gradient(var(--m), var(--m)) 0 0 / 11px 2px, linear-gradient(var(--m), var(--m)) 0 0 / 2px 11px,
    linear-gradient(var(--m), var(--m)) 100% 0 / 11px 2px, linear-gradient(var(--m), var(--m)) 100% 0 / 2px 11px,
    linear-gradient(var(--m), var(--m)) 0 100% / 11px 2px, linear-gradient(var(--m), var(--m)) 0 100% / 2px 11px,
    linear-gradient(var(--m), var(--m)) 100% 100% / 11px 2px, linear-gradient(var(--m), var(--m)) 100% 100% / 2px 11px;
  background-repeat: no-repeat; animation: ealock 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--wait, 0ms) both; }
.eebtn .ea--6::before { --m: var(--ee-on-acc); inset: -5px -8px; }
/* the words: unseen until the marks have closed, then a blink, as a lock is confirmed */
@keyframes ealockwords { from { color: transparent; } 46% { color: inherit; } 56% { color: transparent; } 64% { color: inherit; } }
@keyframes ealock { from { inset: -26px min(-14px, -3vw); opacity: 0; } 20% { opacity: 1; } 46% { inset: -7px -11px; opacity: 1; } 80% { inset: -7px -11px; opacity: 1; } to { inset: -7px -11px; opacity: 0; } }

/* ---- tools for shaping the page: the switcher (?versions) and the
   adjuster (?adjust). They are tools, so they are set in the site's plain
   mono, not in dots, and keep their own colours whatever the version. */
.eever, .eeadj { position: fixed; z-index: 90; background: #121212; border: 1px solid #e2b21c; font: 12px/1.3 'Geist Mono', ui-monospace, monospace; text-transform: none; letter-spacing: 0;
  color: #ecebe6; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7); }
.eever { left: 14px; bottom: 14px; display: grid; gap: 6px; padding: 8px 10px; }
.eever div { display: flex; align-items: center; gap: 6px; }
.eever b { width: 4.4em; font-weight: 500; color: #a7a49c; }
.eever span { margin-left: 6px; min-width: 8em; color: #e2b21c; }
.eever p { margin: 0; max-width: 30em; color: #a7a49c; }
.eever button, .eeadj button { padding: 6px 9px; font: inherit; color: #ecebe6; background: #1c1c1c; border: 1px solid #3a3a37; cursor: pointer; }
.eever button:hover, .eeadj button:hover { border-color: #e2b21c; }
.eever button.is-on { background: #e2b21c; border-color: #e2b21c; color: #0b0b0b; }
.is-adjusting [data-t] { cursor: crosshair; }
.is-adjusting [data-t].is-picked { outline: 1px dashed #e2b21c; outline-offset: 5px; }
.eeadj { right: 14px; bottom: 14px; width: 292px; display: grid; gap: 8px; padding: 12px; }
.eeadj header, .eeadj footer { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.eeadj label { display: grid; grid-template-columns: 78px 1fr 36px; gap: 8px; align-items: center; color: #a7a49c; }
.eeadj label.row { grid-template-columns: 16px 1fr; }
.eeadj label.wide { grid-template-columns: 78px 1fr 72px; }
.eeadj input[type='text'], .eeadj select { grid-column: 2 / -1; width: 100%; padding: 5px 6px; font: inherit; color: #ecebe6; background: #1c1c1c; border: 1px solid #3a3a37; }
.eeadj > select { grid-column: auto; }
.eeadj input[type='range'] { width: 100%; accent-color: #e2b21c; }
.eeadj output { text-align: right; color: #ecebe6; }
.eeadj.is-small > :not(header) { display: none; }
@media (max-width: 560px) {
  .eeadj { left: 8px; right: 8px; width: auto; bottom: 96px; }
  .eever { left: 8px; right: 8px; bottom: 8px; }
  .eever span { display: none; }
  .eever b { width: 3.6em; }
  .eever button { padding: 6px 7px; }
}
