/* Floor. One bare concrete room whose floor only rises.
   Every surface on this page is a generated picture: the wall, the slab, the bronze
   nosing strip, the treads, the chute. There are no CSS panels anywhere. */

@font-face {
  font-family: "Handjet";
  src: url("/fonts/Handjet-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/MartianMono-var.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  --air: #04161a;
  --wall: #0c2a30;
  --concrete: #1b444b;
  --concrete-dark: #0f2e34;
  --cast-ink: #cfe9ea;
  --cast-hi: rgba(0, 0, 0, 0.55);
  --bronze: #c2913c;
  --bronze-lit: #f0d089;
  --cyan: #3fe2f2;
  --ink: #dff2f3;
  --ink-dim: #7fa6ab;

  --f-display: "Handjet", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* how high the floor stands. JS raises it from the live reserve. */
  --level: 34vh;
  --gutter: clamp(20px, 5vw, 96px);

  font-synthesis: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* nothing on this site is ever smoothed: every picture is a real pixel grid */
img,
.air,
.slab,
.corridor,
.nosing,
.tread,
.copy,
.back,
.room-list a {
  image-rendering: pixelated;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--air);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 18px;
  line-height: 1.62;
  font-variation-settings: "wdth" 100;
  -webkit-text-size-adjust: 100%;
}

body { overflow-x: hidden; }

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 40;
  background: var(--concrete);
  color: #101112;
  padding: 14px 22px;
  font-size: 16px;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- the room ---------------------------------------------------- */

.stage {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.air {
  position: relative;
  flex: 0 0 auto;
  min-height: calc(100svh - var(--level));
  background-color: var(--wall);
  background-image: url("/img/wall.png");
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: center top;
  overflow: hidden;
}

/* the lamp that lights the room, hanging at the upper left, breathing on its own clock */
.lamp {
  display: none;
  position: absolute;
  top: -14vh;
  left: clamp(-24px, 1.5vw, 34px);
  width: clamp(104px, 9vw, 152px);
  height: auto;
  transform-origin: 50% 0;
  animation: sway 13s ease-in-out infinite;
  filter: drop-shadow(0 0 70px rgba(63, 226, 242, 0.3));
  pointer-events: none;
}
@keyframes sway {
  0%, 100% { transform: rotate(-0.8deg); }
  50% { transform: rotate(0.9deg); }
}

.wall {
  position: absolute;
  left: clamp(150px, 19vw, 340px);
  bottom: clamp(64px, 10vh, 104px);
  max-width: min(760px, 46vw);
}

.wordmark {
  display: block;
  width: min(440px, 30vw);
  height: auto;
  opacity: 0.94;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.6));
}

.premise {
  margin: 24px 0 0;
  font-size: clamp(19px, 1.5vw, 25px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 30ch;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 34px rgba(0, 0, 0, 0.85);
}

/* the board bolted to the wall: the live instrument of the whole pad */
.board {
  position: absolute;
  right: clamp(250px, 24vw, 520px);
  bottom: clamp(112px, 17vh, 196px);
  width: clamp(300px, 26vw, 440px);
  padding: 20px clamp(22px, 1.8vw, 32px);
  border-image: url("/img/tread.png") 22 30 fill / 18px 24px / 0 stretch;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.45));
}
.board-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 7px 0;
  min-width: 0;
}
.board-line + .board-line { border-top: 2px solid rgba(40, 26, 6, 0.28); }
.board-label {
  font-size: 15px;
  line-height: 1.25;
  color: #3d2c0b;
  max-width: 62%;
}
.board-value {
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 700;
  color: #1a1204;
  text-align: right;
  white-space: nowrap;
}

/* the doorway to the corridor: the site's only navigation object */
.door {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 9vh, 96px);
  width: clamp(120px, 11vw, 190px);
  text-decoration: none;
  display: block;
  transition: transform 220ms ease, filter 220ms ease;
}
.door img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(87, 224, 255, 0.18));
}
.door-word {
  position: absolute;
  right: calc(100% + 14px);
  bottom: 14px;
  left: auto;
  transform: none;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
.door:hover, .door:focus-visible {
  transform: scale(1.03);
  filter: drop-shadow(0 0 26px rgba(87, 224, 255, 0.5));
}
.door:hover .door-word, .door:focus-visible .door-word { color: var(--cyan); }

/* ---------- the slab ---------------------------------------------------- */

.slab {
  position: relative;
  min-height: var(--level);
  background-color: var(--concrete-dark);
  background-image: url("/img/slab-top.png"), url("/img/slab-tile.png");
  background-repeat: no-repeat, repeat-y;
  background-position: top center, top calc(100vw * 0.208) center;
  background-size: 100% auto, 100% auto;
  transition: min-height 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* the bronze nosing strip that caps the top edge: the contract block lives on it */
.nosing {
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  transform: translateY(-54%);
  border-image: url("/img/nosing.png") 84 90 fill / 26px 30px / 0 stretch;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
}
.nosing-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  padding: 16px 46px;
  min-width: 0;
}

.mint-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  min-width: 0;
}
.mint-label {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2a1e06;
  text-shadow: 0 1px 0 rgba(255, 214, 158, 0.34);
}
.mint {
  font-size: 17px;
  font-weight: 700;
  color: #170f04;
  text-shadow: 0 1px 0 rgba(255, 214, 158, 0.3);
  overflow-wrap: anywhere;
  min-width: 0;
  user-select: all;
}
.mint.empty { color: #453208; font-weight: 500; }

.copy {
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.04em;
  min-height: 48px;
  padding: 0 22px;
  color: #22180a;
  background: none;
  border: 0;
  border-image: url("/img/tread.png") 120 150 fill / 20px 26px / 0 stretch;
  cursor: pointer;
  transition: transform 120ms ease, filter 200ms ease;
}
.copy:hover:not(:disabled) { filter: brightness(1.14); }
.copy:active:not(:disabled) { transform: translateY(2px); }
.copy:disabled { cursor: not-allowed; filter: grayscale(0.5) brightness(0.8); color: #4a3417; }
.copy.done { color: #143b17; filter: brightness(1.2); }

.acts {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  flex-wrap: wrap;
}
.tread {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: #1d1408;
  border-image: url("/img/tread.png") 120 150 fill / 24px 30px / 0 stretch;
  transition: transform 120ms ease, filter 200ms ease;
}
.tread img { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(255,255,255,.45)); }
.tread-buy img { width: 26px; height: 26px; }
.tread-buy { font-weight: 700; }
.tread:hover { filter: brightness(1.15); }
.tread:active { transform: translateY(2px); }
.tread[aria-disabled="true"] {
  filter: grayscale(0.55) brightness(0.78);
  color: #4a3417;
  cursor: not-allowed;
  pointer-events: none;
}
.tread[aria-disabled="true"] img { opacity: 0.55; }

/* everything printed on the slab is cast into it */
.face {
  position: relative;
  padding: 0 var(--gutter) clamp(80px, 12vh, 160px);
  color: var(--cast-ink);
}

.cast {
  min-height: calc(var(--level) - 90px);
  padding-top: clamp(70px, 9vh, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cast-label, .head, .step p b, .cast-sub, .face p, .face li {
  text-shadow: 0 2px 0 var(--cast-hi), 0 0 18px rgba(0, 0, 0, 0.5);
}
.cast-label {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #79a5ab;
}
.big {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "ELGR" 1, "ELSH" 0;
  font-size: clamp(64px, 10vw, 168px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: #d8f2f3;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6), 0 0 26px rgba(63, 226, 242, 0.25);
}
.big .unit {
  font-size: 0.34em;
  letter-spacing: 0.04em;
  margin-left: 0.22em;
  vertical-align: baseline;
}
.cast-sub {
  margin: 18px 0 0;
  font-size: 18px;
  max-width: 62ch;
  color: #bcd9dc;
}

.head {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "ELGR" 1, "ELSH" 0;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 28px;
  color: #e4f6f7;
}

.steps { padding-top: clamp(70px, 10vh, 130px); }
.step-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 44px);
  align-items: start;
}
.step img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.step p {
  margin: 20px 0 0;
  font-size: 17px;
  color: #b3d3d7;
}
.step p b { color: #f0fbfb; }

.redeem {
  padding-top: clamp(70px, 10vh, 130px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
}
.redeem-copy p { margin: 0 0 16px; font-size: 18px; max-width: 54ch; color: #b3d3d7; }
.state {
  display: inline-block;
  margin-top: 6px !important;
  font-size: 17px;
  font-weight: 700;
  color: var(--cyan);
}
.chute { width: 100%; height: auto; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35)); }

.split { padding-top: clamp(70px, 10vh, 130px); }
.split-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
.plate {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
  padding: 24px clamp(20px, 1.6vw, 30px);
  border-image: url("/img/tread.png") 22 30 fill / 18px 24px / 0 stretch;
}
.plate-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "ELGR" 1, "ELSH" 0;
  font-size: clamp(38px, 3.6vw, 56px);
  line-height: 1;
  color: #1a1204;
}
.plate-word { font-size: 16px; line-height: 1.4; color: #3d2c0b; }
.split-note { margin: 26px 0 0; font-size: 17px; max-width: 76ch; color: #b3d3d7; }

.rooms-strip { padding-top: clamp(70px, 10vh, 130px); }
.strip-copy { margin: 0 0 30px; font-size: 18px; max-width: 70ch; color: #b3d3d7; }
.strip-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 30px);
  align-items: end;
}
.strip-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.strip-row img {
  width: 100%;
  max-width: 148px;
  height: auto;
  opacity: 0.42;
  filter: grayscale(0.4);
}
.strip-row span {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fa6ab;
}
.strip-row li.filled img { opacity: 1; filter: none; }
.strip-row li.filled span { color: var(--cyan); }
.strip-state { margin: 26px 0 0; font-size: 17px; color: var(--cyan); }
.strip-state a { color: var(--cyan); text-underline-offset: 4px; }

.terms { padding-top: clamp(70px, 10vh, 130px); }
.terms p { margin: 0 0 18px; font-size: 18px; max-width: 78ch; color: #b3d3d7; }
.chain-line { color: #7fa6ab !important; font-size: 17px !important; }

/* ---------- the corridor and the empty room ----------------------------- */

.corridor {
  position: relative;
  min-height: 100svh;
  background: var(--air) url("/img/corridor.png") 50% 46% / 175% auto no-repeat;
  padding: clamp(40px, 8vh, 110px) var(--gutter) clamp(60px, 10vh, 140px);
}
.corridor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 13, 0.7) 0%, rgba(10, 12, 13, 0.18) 48%, rgba(10, 12, 13, 0.82) 100%);
  pointer-events: none;
}
.corridor > * { position: relative; z-index: 1; }
.corridor .head { color: var(--ink); text-shadow: 0 2px 20px rgba(0,0,0,.85); }
.corridor p { color: var(--ink-dim); font-size: 18px; max-width: 64ch; }

.back {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 28px;
  margin-top: 36px;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #1d1408;
  border-image: url("/img/tread.png") 120 150 fill / 24px 30px / 0 stretch;
}
.back:hover { filter: brightness(1.15); }

.room-shot {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 38px 0 0;
}

.corridor .state-dark {
  color: var(--cyan);
  font-size: 18px;
  margin: 26px 0 0;
}

.room-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px 28px;
}
.room-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 28px;
  text-decoration: none;
  color: #1d1408;
  border-image: url("/img/tread.png") 120 150 fill / 24px 30px / 0 stretch;
}
.room-list a:hover { filter: brightness(1.14); }
.room-name { font-size: 17px; font-weight: 700; }
.room-num { font-size: 17px; }

.corridor .back + .back { margin-left: 16px; }

/* ---------- widths ------------------------------------------------------ */

@media (max-width: 1100px) {
  .step-row { grid-template-columns: 1fr; gap: 40px; }
  .redeem { grid-template-columns: 1fr; }
  .split-row { grid-template-columns: 1fr; }
  .strip-row { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .board { right: var(--gutter); width: clamp(280px, 40vw, 420px); }
}

@media (max-width: 760px) {
  :root { --level: 32vh; --gutter: 18px; }
  html, body { font-size: 17px; }

  /* the wall's own lamps fill the top of the room, so the block sits under them */
  .wall { top: 13%; bottom: auto; left: var(--gutter); max-width: none; }
  .wordmark { width: min(176px, 48vw); }
  .premise { font-size: 16px; margin-top: 12px; max-width: 268px; }

  .board {
    right: var(--gutter);
    left: var(--gutter);
    bottom: 42px;
    width: auto;
    padding: 10px 24px;
  }
  .board-label { font-size: 13px; line-height: 1.2; max-width: 56%; }
  .board-value { font-size: 15px; }
  .board-line { padding: 5px 0; }

  .door { display: none; }
  .door-word {
    left: calc(100% + 10px);
    right: auto;
    bottom: 14px;
    transform: none;
    font-size: 15px;
  }

  /* the strip stops hanging off the edge and becomes a plate laid on the floor */
  .nosing {
    position: relative;
    left: auto;
    right: auto;
    transform: translateY(-24px);
    margin: 0 10px -8px;
  }
  .nosing-in { padding: 18px 34px; gap: 14px; }
  .mint-line { width: 100%; }
  .mint { font-size: 16px; }
  .acts { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .tread { width: 100%; justify-content: center; padding: 0 18px; }

  .cast { min-height: 0; padding-top: 30px; }
  .big { font-size: clamp(42px, 13vw, 74px); }
  .big .soon { font-size: clamp(30px, 8.6vw, 46px); }
  .cast-sub { font-size: 17px; }
  .step img { aspect-ratio: 4 / 3; }
  .plate { min-height: 0; }
  .strip-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .chute { max-width: 420px; }
  .corridor { background-size: auto 110%; background-position: 50% 50%; }
  .corridor .back + .back { margin-left: 0; margin-top: 12px; }
  .back { width: 100%; justify-content: center; }
}

/* short laptop viewports: the wall block sits higher so the premise never reaches the strip */
@media (min-width: 761px) and (max-height: 780px) {
  .wordmark { width: min(300px, 22vw); }
  .premise { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .slab { transition: none; }
}

.big .soon {
  font-size: clamp(34px, 4.6vw, 76px);
  color: #9cc5ca;
}
