/* TimeToWarp page.
   Two house rules: every colour is one of the 216 web-safe colours, and nothing
   eases or blurs. Hard shadows, bevels and instant state changes, as in 1998.
   The one exception is .intro and .clone, the AI look the page makes fun of. */

:root {
  --blue: #0000FF;
  --title: #000099;
  --navy: #000033;
  --yellow: #FFFF00;
  --magenta: #FF00FF;
  --cyan: #00FFFF;
  --grey: #CCCCCC;
  --shade: #666666;
  --white: #FFFFFF;
  --black: #000000;
  --teal-a: #006666;
  --teal-b: #009999;

  --serif: "Times New Roman", Tinos, Times, serif;
  --impact: Impact, Anton, "Arial Narrow", sans-serif;
  --ui: Tahoma, Verdana, Arial, sans-serif;
  --comic: "Comic Sans MS", "Comic Neue", cursive;

  --taskbar: 40px;
  --edge: max(clamp(20px, 5vw, 80px), env(safe-area-inset-left), env(safe-area-inset-right));
  --raised: inset -1px -1px 0 var(--black), inset 1px 1px 0 var(--white), inset -2px -2px 0 var(--shade), inset 2px 2px 0 var(--grey);
  --sunken: inset 1px 1px 0 var(--shade), inset -1px -1px 0 var(--white), inset 2px 2px 0 var(--black), inset -2px -2px 0 var(--grey);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--navy); scroll-padding-bottom: var(--taskbar); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-bottom: calc(var(--taskbar) + env(safe-area-inset-bottom));
  font: 400 1.25rem/1.45 var(--serif);
  color: var(--white);
  background: var(--navy);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.px { image-rendering: pixelated; }

a { color: inherit; }

:focus-visible { outline: 3px dotted currentColor; outline-offset: 3px; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--yellow); color: var(--black); }
.skip-link:focus { top: 8px; }

h2 {
  margin: 0;
  font: 400 clamp(3.1rem, 8.6vw, 8.5rem)/.94 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}

p { margin: 0; max-width: 58ch; text-wrap: pretty; }

section, footer { position: relative; }

/* One section dissolves into the next through the same ordered dither as the wormhole. */
.same::before, .compare::before, .how::before, .do::before, .inside::before, .faq::before, .again::before, footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 48px;
  background: var(--from);
  -webkit-mask: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAABgCAQAAADxhTn7AAAAcElEQVR42u3UMQ6AIBAF0V3j/a+MrRYW4ipE31SGwkn4ZDJaPMoSQfB1wVr2p9x9Nxv8SpBaRFBakENDztpy9dwGWuSKCLSIYECLil6ODbRIiwimaFHaQItuvygbaJEWEQBvo0UEwBwtqkKLtAjoZwORMCSMGFVoiQAAAABJRU5ErkJggg==") repeat-x 0 0 / 24px 48px;
  mask: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAABgCAQAAADxhTn7AAAAcElEQVR42u3UMQ6AIBAF0V3j/a+MrRYW4ipE31SGwkn4ZDJaPMoSQfB1wVr2p9x9Nxv8SpBaRFBakENDztpy9dwGWuSKCLSIYECLil6ODbRIiwimaFHaQItuvygbaJEWEQBvo0UEwBwtqkKLtAjoZwORMCSMGFVoiQAAAABJRU5ErkJggg==") repeat-x 0 0 / 24px 48px;
  pointer-events: none;
}
.same { --from: var(--blue); }
.compare { --from: var(--yellow); }
.how { --from: conic-gradient(var(--teal-a) 25%, var(--teal-b) 0 50%, var(--teal-a) 0 75%, var(--teal-b) 0) 0 0 / 2px 2px; }
.do { --from: var(--navy); }
.inside { --from: var(--magenta); padding-top: 48px; }
.faq { --from: var(--blue); }
.again { --from: var(--grey); }
footer { --from: var(--blue); }

/* Win98 parts -------------------------------------------------------- */
.win { background: var(--grey); color: var(--black); padding: 4px; box-shadow: var(--raised); font: 400 .875rem/1.35 var(--ui); }

.win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 3px 3px 6px;
  background: var(--title);
  color: var(--white);
  font-weight: 700;
  font-size: .8125rem;
  min-height: 24px;
}
.win-bar > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-btns { display: flex; gap: 2px; flex: none; }
.win-btns i {
  width: 18px; height: 16px;
  background: var(--grey);
  box-shadow: var(--raised);
  color: var(--black);
  font: 700 10px/16px var(--ui);
  text-align: center;
}

.btn98 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 0;
  background: var(--grey);
  color: var(--black);
  box-shadow: var(--raised);
  font: 700 1rem/1.1 var(--ui);
  text-decoration: none;
  cursor: pointer;
}
.btn98:hover { background: #FFFFCC; }
.btn98:active { box-shadow: var(--sunken); padding: 9px 19px 7px 21px; }
.btn98:focus-visible { outline: 2px dotted var(--black); outline-offset: -6px; }

.warp-form label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9375rem; }
.warp-form .row { display: flex; gap: 8px; }
.warp-form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 4px 10px;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--sunken);
  font: 400 1.0625rem var(--ui);
  -webkit-appearance: none;
  appearance: none;
}
.warp-form input::placeholder { color: var(--shade); opacity: 1; }
.warp-form input:focus-visible { outline: 2px dotted var(--black); outline-offset: -5px; }
.warp-form .btn98 { height: 48px; flex: none; }
.warp-form small { display: block; margin-top: 8px; font-size: .8125rem; }

/* WordArt: the banded fill is 256-colour mode on purpose. Fill and extrusion are
   pseudo-elements, so the real text stays on top for selecting and for readers. */
.wa {
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-family: var(--impact);
  font-weight: 400;
  letter-spacing: .005em;
  line-height: 1;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.wa::before, .wa::after { content: attr(data-t) / ""; position: absolute; inset: 0; }
.wa::before {
  z-index: -2;
  text-shadow:
    .006em .006em 0 var(--magenta), .012em .012em 0 var(--magenta), .018em .018em 0 #CC00CC,
    .024em .024em 0 #CC00CC, .03em .03em 0 #9900CC, .036em .036em 0 #9900CC,
    .042em .042em 0 #6600CC, .048em .048em 0 #6600CC, .054em .054em 0 #3300CC,
    .06em .06em 0 #3300CC, .066em .066em 0 var(--blue), .072em .072em 0 var(--blue),
    .078em .078em 0 var(--title), .084em .084em 0 var(--title), .09em .09em 0 var(--black), .096em .096em 0 var(--black);
}
.wa::after {
  z-index: -1;
  background: linear-gradient(180deg, var(--white) 0 14%, var(--yellow) 14% 36%, #FFCC00 36% 48%, #FF9900 48% 60%, #FF6600 60% 72%, #FF3300 72% 84%, #CC0066 84%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Hero: the wormhole ------------------------------------------------- */
.warp { background: var(--navy); }
.js .warp { height: 420vh; }

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--navy) url("../media/timetowarp/space-tile.png") 0 0 / 1152px;
  image-rendering: pixelated;
}

#wormhole { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }

.fleet { image-rendering: auto; position: absolute; inset: 0; overflow: hidden; pointer-events: none; transform-style: preserve-3d; perspective: 900px; }

.fly {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(230px, 25vw, 420px);
  padding: 3px;
  background: var(--grey);
  box-shadow: var(--raised);
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.fly-bar { padding: 2px 5px; background: var(--title); color: var(--white); font: 700 12px/1.3 var(--ui); white-space: nowrap; overflow: hidden; }
.fly img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--black); }
.fly.obj { width: clamp(150px, 17vw, 300px); padding: 0; background: none; box-shadow: none; }
.fly.obj img { aspect-ratio: 1; object-fit: contain; background: none; }

.hero-copy {
  position: absolute;
  inset: 0 auto calc(var(--taskbar) + env(safe-area-inset-bottom)) var(--edge);
  width: min(100% - 2 * var(--edge), 58vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 2.4vh, 26px);
  will-change: transform, opacity;
}

h1 { margin: 0; font-weight: 400; }

.h-a {
  display: block;
  font: 400 clamp(2.5rem, min(6.8vw, 11.5vh), 7rem)/.95 var(--serif);
  letter-spacing: -.025em;
  text-shadow: .035em .035em 0 var(--black);
  text-wrap: balance;
}

h1 .wa {
  font-size: clamp(7rem, min(24vw, 37vh), 24rem);
  margin-top: .02em;
  transform-origin: 0 60%;
  transform: perspective(1100px) rotateY(calc(-14deg + var(--mx, 0) * 7deg)) rotateX(calc(5deg + var(--my, 0) * -5deg));
}

.hero-win { width: min(100%, max(560px, 36vw)); }
.hero-win .warp-form { padding: 12px 10px 10px; }

.scroll-hint {
  position: absolute;
  right: var(--edge);
  bottom: calc(var(--taskbar) + env(safe-area-inset-bottom) + 18px);
  max-width: none;
  padding: 4px 10px;
  background: var(--black);
  color: var(--yellow);
  font: 700 1rem/1.3 var(--comic);
}

/* The sterile landing page that opens the show. Drawn by the shader behind it. */
.intro { display: none; position: absolute; inset: 0; pointer-events: none; user-select: none; color: #FFFFFF; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.intro-on .intro { display: block; }
.intro-nav { position: absolute; top: 22px; left: 5vw; right: 5vw; display: flex; align-items: center; gap: 32px; font-size: 15px; }
.intro-nav b { margin-right: auto; font-size: 19px; }
.intro-nav i { white-space: nowrap; padding: 8px 18px; border-radius: 999px; background: #FFFFFF; color: #6633FF; font-style: normal; font-weight: 600; }
.intro-main { position: absolute; left: 50%; top: 42%; width: min(90vw, 860px); transform: translate(-50%, -50%); text-align: center; }
.intro-main strong { display: block; font-size: clamp(36px, 5.6vw, 76px); line-height: 1.06; font-weight: 700; letter-spacing: -.03em; }
.intro-main span { display: block; margin: 20px auto 0; max-width: 34em; font-size: clamp(15px, 1.5vw, 20px); line-height: 1.5; }
.intro-main i { display: inline-block; margin-top: 28px; padding: 15px 30px; border-radius: 12px; background: #FFFFFF; color: #6633FF; font-style: normal; font-weight: 600; font-size: 17px; }
.intro-cards { position: absolute; left: 50%; bottom: 8vh; width: min(90vw, 980px); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.intro-cards div { padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .16); font-size: 15px; font-weight: 600; text-align: center; }

.intro-on .hero-copy, .intro-on .scroll-hint { visibility: hidden; animation: failsafe 0s 5s forwards; }
@keyframes failsafe { to { visibility: visible; } }

/* The flight: year and history, driven by scroll */
.era {
  position: absolute;
  inset: 0 0 calc(var(--taskbar) + env(safe-area-inset-bottom)) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
}
.era .wa { font-size: clamp(7rem, min(30vw, 44vh), 30rem); }
.era p {
  max-width: min(36ch, 100% - 2 * var(--edge));
  margin-top: .3em;
  padding: .2em .55em .25em;
  background: var(--black);
  font: 400 clamp(1.25rem, 2.6vw, 2.25rem)/1.12 var(--serif);
}

/* Arrival: hyperlink blue -------------------------------------------- */
.arrival {
  background: var(--blue);
  padding: clamp(32px, 6vh, 72px) var(--edge) clamp(56px, 9vh, 96px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
}
.arrival h2 { grid-column: 1 / -1; }
.arrival-crt { grid-column: 1 / span 5; grid-row: 2 / span 2; align-self: center; justify-self: center; width: clamp(240px, 29vw, 460px); margin-top: clamp(16px, 3vh, 32px); }
.arrival-copy { grid-column: 6 / -1; grid-row: 2; margin-top: clamp(24px, 4vh, 44px); display: grid; gap: 1em; font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.3; }
.counters { grid-column: 6 / -1; grid-row: 3; margin: clamp(24px, 4vh, 44px) 0 0; display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 20px clamp(16px, 2vw, 32px); }
@media (min-width: 1300px) { .counters { grid-template-columns: repeat(4, auto); } }
.counters div { display: flex; flex-direction: column-reverse; align-items: flex-start; }
.counters dd { margin: 0 0 6px; }
.counters dt { font-size: 1.0625rem; max-width: 8em; line-height: 1.2; }

.digits { display: inline-flex; gap: 2px; padding: 3px; background: var(--grey); box-shadow: var(--sunken); }
.digits b {
  display: block;
  width: 1.05em;
  background: var(--black);
  color: #00FF00;
  font: 400 clamp(1.5rem, 2.7vw, 2.5rem)/1.25 var(--impact);
  text-align: center;
}

/* The problem: yellow ------------------------------------------------ */
.same { background: var(--yellow); color: var(--black); padding-top: clamp(56px, 11vh, 128px); }
.nb { white-space: nowrap; }
.same-head { padding: 0 var(--edge); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 28px; align-items: end; }
.same-head h2 { grid-column: 1 / -1; }
.same-head p { grid-column: 7 / -1; font-size: clamp(1.25rem, 1.75vw, 1.625rem); line-height: 1.24; }

.clones { margin-top: clamp(36px, 7vh, 72px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-block: 4px solid var(--black); background: #6633FF; }
.clone {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6633FF, #3366FF 58%, #CC66FF);
  color: #FFFFFF;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}
.clone b { font-size: 8.5cqw; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.clone i { margin-top: 5cqw; padding: 3cqw 6cqw; border-radius: 3cqw; background: #FFFFFF; color: #6633FF; font-size: 5.5cqw; font-style: normal; font-weight: 600; }

.odd {
  position: relative;
  z-index: 2;
  display: block;
  background: var(--grey);
  padding: 3px;
  box-shadow: var(--raised), 10px 10px 0 var(--black);
  transform: scale(1.5) rotate(-4deg);
}
.odd:hover { transform: scale(1.62) rotate(-2deg); }
.odd img { width: 100%; height: 100%; object-fit: cover; object-position: top; aspect-ratio: 16 / 10; }

.same-after { padding: clamp(48px, 10vh, 112px) var(--edge) clamp(56px, 11vh, 128px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 1em; }
.same-after p { grid-column: 5 / -1; font-size: clamp(1.5rem, 3.1vw, 3rem); line-height: 1.12; letter-spacing: -.012em; max-width: 30em; }

/* Before and after: the desktop -------------------------------------- */
.compare {
  padding: clamp(56px, 11vh, 120px) var(--edge);
  background: conic-gradient(var(--teal-a) 25%, var(--teal-b) 0 50%, var(--teal-a) 0 75%, var(--teal-b) 0) 0 0 / 2px 2px;
}
.compare h2 { text-shadow: .03em .03em 0 var(--black); text-align: center; }
.compare-hint { margin: 18px auto 0; text-align: center; text-shadow: 1px 1px 0 var(--black); max-width: none; }

.compare-win { max-width: min(1240px, (100vh - 150px) * 1.5); margin: clamp(28px, 5vh, 48px) auto 0; }

.tabs { display: flex; gap: 2px; padding: 8px 4px 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none;
  min-height: 34px;
  padding: 6px 16px;
  border: 0;
  background: var(--grey);
  color: var(--black);
  box-shadow: inset 1px 1px 0 var(--white), inset -1px 0 0 var(--black), inset -2px 0 0 var(--shade);
  font: 400 .9375rem var(--ui);
  cursor: pointer;
}
.tabs button[aria-pressed="true"] { font-weight: 700; position: relative; top: 1px; min-height: 37px; margin-top: -3px; }
.tabs button:hover { background: #FFFFCC; }
.tabs button:focus-visible { outline: 1px dotted var(--black); outline-offset: -5px; }

.address { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: .875rem; }
.address output { flex: 1; min-width: 0; padding: 4px 8px; background: var(--white); box-shadow: var(--sunken); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.frame { position: relative; aspect-ratio: 16 / 10; box-shadow: var(--sunken); padding: 2px; background: var(--black); --pos: 50%; overflow: hidden; }
.frame img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: cover; object-position: top; }
.frame .now { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 10px;
  margin-left: -5px;
  background: conic-gradient(var(--magenta) 25%, var(--cyan) 0 50%, var(--magenta) 0 75%, var(--cyan) 0) 0 0 / 4px 4px;
  box-shadow: -2px 0 0 var(--black), 2px 0 0 var(--black);
  pointer-events: none;
}
.grip {
  position: absolute;
  left: var(--pos);
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  background: var(--grey);
  box-shadow: var(--raised);
  color: var(--black);
  font: 700 20px/52px var(--ui);
  text-align: center;
  pointer-events: none;
}
.stamp { position: absolute; top: 12px; padding: 2px 10px; background: var(--black); color: var(--white); font: 400 clamp(1.25rem, 2.6vw, 2.25rem)/1.15 var(--impact); pointer-events: none; }
.stamp.a { left: 12px; }
.stamp.b { right: 12px; background: var(--yellow); color: var(--black); }
.frame input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.frame:has(input:focus-visible) .grip { outline: 2px dotted var(--black); outline-offset: -6px; }

.compare-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 4px 4px; }
.compare-foot p { font-size: .8125rem; max-width: 62ch; }
.compare-foot .btn98 { font-size: .875rem; min-height: 38px; }

/* How it works: the starfield ---------------------------------------- */
.how {
  padding: clamp(56px, 11vh, 128px) var(--edge);
  background: var(--navy) url("../media/timetowarp/space-tile.png") 0 0 / 1152px;
  image-rendering: pixelated;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
  row-gap: clamp(32px, 6vh, 64px);
  align-items: start;
}
.how h2 { grid-column: 1 / -1; max-width: 12em; }
.steps { grid-column: 1 / span 6; margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(24px, 4vh, 40px); }
.steps li { display: grid; grid-template-columns: clamp(40px, 4.4vw, 64px) 1fr; column-gap: 16px; }
.steps .n { grid-row: span 2; text-align: center; font: 400 clamp(3.5rem, 6vw, 5.5rem)/.9 var(--impact); color: var(--yellow); }
.steps h3 { margin: 0 0 6px; font: 700 clamp(1.625rem, 2.6vw, 2.375rem)/1.08 var(--serif); }
.steps p { font-size: clamp(1.1875rem, 1.6vw, 1.4375rem); line-height: 1.32; }

.dial { grid-column: 8 / -1; position: sticky; top: 24px; }
.dial-body { padding: 14px 12px 12px; }
.dial-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.dial-top img { width: 40px; height: 40px; }
.dial-top b { display: block; }
.dial-log { height: 11.5em; margin: 0 0 10px; padding: 6px 8px; list-style: none; background: var(--white); box-shadow: var(--sunken); overflow: hidden; font-size: .875rem; line-height: 1.6; }
.dial-log li:last-child { font-weight: 700; }
.chunks { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; padding: 3px; height: 22px; background: var(--grey); box-shadow: var(--sunken); }
.chunks i { background: var(--title); visibility: hidden; }
.chunks i.on { visibility: visible; }
.dial-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.dial-foot .btn98 { font-size: .875rem; min-height: 38px; }

/* What you can do: the Start menu ------------------------------------ */
.do { background: var(--magenta); color: var(--black); padding: clamp(56px, 11vh, 128px) var(--edge); }
.do h2 { max-width: 9em; }

.start { display: grid; grid-template-columns: clamp(38px, 5vw, 64px) 1fr; margin-top: clamp(32px, 6vh, 56px); padding: 4px; background: var(--grey); box-shadow: var(--raised), 12px 12px 0 var(--black); max-width: 1320px; }
.start-strip { position: relative; overflow: hidden; background: var(--title); color: var(--white); }
.start-strip span { position: absolute; left: 50%; bottom: 14px; transform-origin: 0 100%; transform: rotate(-90deg) translateY(50%); font: 400 clamp(1.4rem, 3vw, 2.6rem)/1 var(--impact); letter-spacing: .02em; white-space: nowrap; }
.start-strip span b { font-weight: 400; color: var(--grey); }
.start ul { margin: 0; padding: 0; list-style: none; min-width: 0; }
.start li + li { border-top: 1px solid var(--shade); box-shadow: inset 0 1px 0 var(--white); }
.start a {
  display: grid;
  grid-template-columns: clamp(44px, 6vw, 72px) 1fr auto;
  align-items: center;
  column-gap: clamp(12px, 2vw, 24px);
  padding: clamp(12px, 2.2vh, 20px) clamp(10px, 2vw, 22px);
  color: var(--black);
  text-decoration: none;
}
.start a:hover, .start a:focus-visible { background: var(--title); color: var(--white); }
.start a:focus-visible { outline: 2px dotted var(--white); outline-offset: -4px; }
.start .icon { width: 100%; height: auto; }
.start b { display: block; font: 400 clamp(1.625rem, 3.3vw, 3rem)/1.02 var(--serif); letter-spacing: -.015em; }
.start small { display: block; margin-top: 5px; font: 400 clamp(.9375rem, 1.2vw, 1.0625rem)/1.32 var(--ui); max-width: 60ch; }
.start em { font: 700 1rem/1.2 var(--ui); font-style: normal; white-space: nowrap; text-align: right; }

.do-note { margin-top: 36px; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.2; }

/* What ends up on the page: the collage ------------------------------ */
.inside { background: var(--black); overflow: hidden; }

.tape { background: var(--yellow); color: var(--black); overflow: hidden; white-space: nowrap; border-block: 3px solid var(--black); font: 700 1.125rem/2 var(--comic); }
.tape span { display: inline-block; padding-left: 100%; animation: tape 26s linear infinite; }
@keyframes tape { to { transform: translateX(-100%); } }

.fire { width: 100%; height: 42px; object-fit: cover; }

.inside-head { padding: clamp(48px, 9vh, 96px) var(--edge) clamp(32px, 5vh, 56px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 24px; align-items: end; }
.inside-head h2 { grid-column: 1 / span 8; color: var(--cyan); }
.inside-head p { grid-column: 9 / -1; font-size: clamp(1.25rem, 1.75vw, 1.625rem); line-height: 1.24; }

.collage { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(150px, auto); gap: 4px; background: var(--black); padding: 4px; }
.tile { padding: clamp(14px, 2vw, 26px); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.tile h3 { margin: 0; font-weight: 400; }

.t-welcome { grid-column: span 5; background: var(--navy) url("../media/timetowarp/space-tile.png") 0 0 / 1152px; image-rendering: pixelated; align-items: center; justify-content: center; }
.t-welcome :is(img, canvas) { width: min(100%, 592px); }
.t-welcome p { font: 700 1.125rem/1.3 var(--comic); color: var(--cyan); text-align: center; }

.t-build { grid-column: span 3; background: var(--yellow); color: var(--black); }
.t-build h3 { font: 400 clamp(1.8rem, 3vw, 2.75rem)/1 var(--impact); }
.t-build .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.t-build :is(img, canvas) { width: 96px; }
.t-build p { font: 700 1rem/1.25 var(--comic); }

.t-counter { grid-column: span 4; background: var(--title); align-items: flex-start; justify-content: center; }
.t-counter h3 { font: 700 clamp(1.25rem, 2vw, 1.75rem)/1.1 var(--serif); }
.t-counter p { font-size: 1rem; line-height: 1.3; font-style: italic; }

.t-midi { grid-column: span 4; background: var(--grey); color: var(--black); padding: 0; }
.t-midi .win { height: 100%; display: flex; flex-direction: column; }
.midi-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px 12px; }
.midi-track { padding: 6px 8px; background: var(--black); color: #00FF00; font: 400 1.125rem/1.3 var(--ui); overflow: hidden; white-space: nowrap; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; padding: 2px; background: var(--black); box-shadow: var(--sunken); }
.bars i { flex: 1; height: 8%; background: #00FF00; }
.midi-body .btn98 { align-self: flex-start; font-size: .9375rem; min-height: 40px; }

.t-dolphin { grid-column: span 3; background: var(--cyan); color: var(--black); align-items: flex-start; }
.t-dolphin :is(img, canvas) { width: 180px; }
.t-dolphin h3 { font: italic 400 clamp(1.5rem, 2.3vw, 2.1rem)/1.05 var(--serif); }

.t-districts { grid-column: span 5; background: var(--white); color: var(--black); }
.t-districts h3 { font: 700 clamp(1.5rem, 2.2vw, 2rem)/1.1 var(--serif); display: flex; gap: 10px; align-items: center; }
.t-districts ul { margin: 0; padding: 0 0 0 1.2em; columns: 2; font-size: 1.25rem; line-height: 1.4; color: var(--blue); }
.t-districts a { color: var(--blue); }
.t-districts p { font-size: 1rem; }

.t-ring { grid-column: span 4; background: var(--navy); align-items: center; text-align: center; border: 4px ridge var(--grey); }
.t-ring :is(img, canvas) { width: 112px; }
.t-ring h3 { font: 700 1.375rem/1.15 var(--serif); }
.t-ring nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 1.125rem; }
.t-ring a { color: var(--cyan); }

.t-guest { grid-column: span 3; background: var(--magenta); color: var(--black); }
.t-guest h3 { font: 700 1.5rem/1.1 var(--comic); }
.t-guest p { font: 400 1.0625rem/1.3 var(--comic); }
.t-guest :is(img, canvas) { width: 72px; align-self: flex-end; }

.t-badges { grid-column: span 5; background: var(--grey); color: var(--black); justify-content: center; }
.t-badges p { font-size: 1rem; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badges img { height: 31px; width: auto; }

/* The wall of warped sites ------------------------------------------- */
.wall { background: var(--blue); padding: clamp(56px, 11vh, 120px) 0 clamp(64px, 12vh, 130px); overflow: hidden; }
.wall-head { padding: 0 var(--edge); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.wall-head div { display: grid; gap: 12px; }
.wall-rows { margin: clamp(48px, 9vh, 88px) -6vw 0; display: grid; gap: 14px; transform: rotate(-3deg); }
.wall-row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.wall-row a { flex: none; display: block; width: clamp(200px, 22vw, 340px); padding: 3px; background: var(--grey); box-shadow: var(--raised); color: var(--black); text-decoration: none; }
.wall-row a:hover { background: var(--yellow); }
.wall-row a:focus-visible { outline: 3px dotted var(--white); outline-offset: 2px; }
.wall-row span { display: block; padding: 2px 5px; background: var(--title); color: var(--white); font: 700 .8125rem/1.35 var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--black); }

/* FAQ: an unstyled page, grey like Netscape left it ------------------ */
.faq { background: var(--grey); color: var(--black); padding: clamp(56px, 11vh, 120px) var(--edge); font-size: 1.1875rem; }
.faq h2 { max-width: 10em; }
.faq a { color: var(--blue); }
.faq a:visited { color: #660099; }
.faq-list { max-width: 44em; margin-top: 36px; }
.faq hr { border: 0; border-top: 1px solid var(--shade); border-bottom: 1px solid var(--white); margin: 0; }
.faq summary { padding: 14px 0; cursor: pointer; font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.625rem); line-height: 1.15; color: var(--blue); text-decoration: underline; }
.faq details p { padding-bottom: 18px; max-width: 68ch; }

/* Your turn ---------------------------------------------------------- */
.again { background: var(--blue); padding: clamp(56px, 12vh, 140px) var(--edge) clamp(40px, 7vh, 72px); }
.again h2 { font-size: clamp(5rem, 19vw, 20rem); line-height: .86; }
.again-cd { position: absolute; right: 3vw; top: clamp(24px, 6vh, 64px); width: clamp(120px, 17vw, 300px); transform: rotate(-12deg); }
.again-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 24px; margin-top: clamp(32px, 6vh, 56px); align-items: start; }
.again-row .win { grid-column: 1 / span 7; }
.again-row .warp-form { padding: 12px 10px 10px; }
.again-links { grid-column: 9 / -1; display: grid; gap: 10px; font-size: 1.375rem; line-height: 1.2; }

footer { background: var(--black); padding: 28px var(--edge) 32px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 40px; font-size: 1rem; line-height: 1.35; }
footer p { max-width: 46ch; }
footer .digits b { font-size: 1.125rem; }
.visits { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Taskbar: the page's navigation ------------------------------------- */
.taskbar {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--taskbar) + env(safe-area-inset-bottom));
  padding: 4px max(4px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
  display: flex;
  align-items: stretch;
  gap: 4px;
  background: var(--grey);
  box-shadow: inset 0 1px 0 var(--white), inset 0 2px 0 var(--grey), 0 -1px 0 var(--shade);
  color: var(--black);
  font: 400 .8125rem/1 var(--ui);
}
.taskbar a, .taskbar button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  background: var(--grey);
  color: var(--black);
  box-shadow: var(--raised);
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.taskbar a:hover, .taskbar button:hover { background: #FFFFCC; }
.taskbar a:active, .taskbar button:active { box-shadow: var(--sunken); }
.taskbar :focus-visible { outline: 1px dotted var(--black); outline-offset: -5px; }
.task-start { font-weight: 700 !important; }
.task-start img { width: 22px; height: 22px; object-fit: cover; object-position: top; }
.task-nav { display: flex; gap: 4px; min-width: 0; flex: 1; }
.tray { display: flex; align-items: center; gap: 8px; padding: 0 10px; box-shadow: var(--sunken); white-space: nowrap; font-variant-numeric: tabular-nums; }
.task-pause { min-width: 72px; justify-content: center; }

/* Small screens ------------------------------------------------------ */
@media (max-width: 1000px) {
  .start a { grid-template-columns: clamp(44px, 6vw, 72px) minmax(0, 1fr); }
  .start em { grid-column: 2; text-align: left; margin-top: 6px; }
  .t-welcome, .t-counter, .t-midi, .t-districts, .t-badges, .t-ring { grid-column: span 6; }
  .t-build, .t-dolphin, .t-guest { grid-column: span 4; }
}

@media (max-width: 760px) {
  body { font-size: 1.1875rem; }
  .hero-copy { width: auto; right: var(--edge); justify-content: flex-start; padding-top: max(16px, 3vh); }
  .h-a { font-size: clamp(2.5rem, min(12.6vw, 7.4vh), 5rem); }
  h1 .wa { font-size: clamp(6rem, min(40vw, 22vh), 16rem); }
  .scroll-hint { display: none; }
  .fly { width: 44vw; }
  .intro-nav span { display: none; }
  .frame { aspect-ratio: 4 / 3; }

  .arrival-crt { grid-column: 1 / -1; grid-row: auto; width: min(76vw, 320px); }
  .arrival-copy, .counters { grid-row: auto; }
  .counters { grid-column: 1 / -1; }
  .arrival h2, .same-head h2, .same-head p, .arrival-copy, .inside-head h2, .inside-head p, .same-after p, .steps, .dial, .again-row .win, .again-links { grid-column: 1 / -1; }
  .clones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clone.opt { display: none; }
  .dial { position: static; }
  .collage > .tile { grid-column: 1 / -1; }
  .t-build, .t-dolphin, .t-guest { min-height: 180px; }
  .t-districts ul { columns: 1; }
  .warp-form .row { flex-wrap: wrap; }
  .warp-form input { flex-basis: 100%; }
  .warp-form .btn98 { flex: 1; }
  .again-cd { top: 12px; right: 12px; width: 88px; }
  .start small { font-size: .9375rem; }
  .task-nav a:not(.task-warp, .task-skip) { display: none; }
  .tray { padding: 0 8px; }
  .compare-hint { font-size: 1.0625rem; }
}

@media (max-width: 420px) {
  .task-start span { display: none; }
  .task-pause { min-width: 60px; padding: 0 6px; }
}

@media (max-height: 640px) and (min-width: 761px) {
  .scroll-hint { display: none; }
}

/* Thumbs get full-size targets */
@media (pointer: coarse) {
  :root { --taskbar: 52px; }
  .tabs button, .tabs button[aria-pressed="true"] { min-height: 44px; }
  .compare-foot .btn98, .dial-foot .btn98, .midi-body .btn98 { min-height: 44px; }
  .t-ring a, .t-districts a, .again-links a, .faq-list p a { display: inline-block; padding: 10px 0; }
  .t-districts ul { line-height: 1.1; }
  .again-links { gap: 2px; }
}

/* Phones in landscape and browsers zoomed far in: one tight stack */
@media (max-height: 500px) {
  .hero-copy { right: var(--edge); width: auto; justify-content: center; padding-top: 0; gap: 4px; }
  .h-a { font-size: 2rem; text-wrap: nowrap; }
  h1 .wa { font-size: 30vh; }
  .hero-win { width: min(100%, 520px); }
  .hero-win .win-bar, .hero-win small { display: none; }
  .hero-win .warp-form { padding: 6px 8px 8px; }
  .hero-win .warp-form label { margin-bottom: 3px; font-size: .8125rem; }
  .hero-win .warp-form .row { flex-wrap: nowrap; }
  .hero-win .warp-form input { flex: 1; height: 40px; }
  .hero-win .warp-form .btn98 { flex: none; height: 40px; min-height: 40px; }
  .era { gap: 2px; }
  .era .wa { font-size: 40vh; }
  .era p { font-size: 1.125rem; }
}

/* Fewer moving parts on request -------------------------------------- */
.is-paused .tape span { animation-play-state: paused; }
canvas.frozen { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }

@media (prefers-reduced-motion: reduce) {
  .js .warp { height: auto; }
  .stage { position: relative; }
  .era, .scroll-hint { display: none; }
  .tape span { animation: none; padding-left: var(--edge); }
  /* The wall only slides with motion on, so without it every site has to fit. */
  .wall-rows { margin-inline: var(--edge); transform: none; }
  .wall-row { width: auto; flex-wrap: wrap; }
  h1 .wa { transform: none; }
}
