/* Cheating Processing Unit. One system: night ground, cream paper, plum ink, pink accent, cyan for live and links,
   bulb yellow for the lamps. Gloock for the name, numbers and titles; Familjen Grotesk for everything else (tnum);
   JetBrains Mono only for addresses, hashes and memos. Spacing 8 / 16 / 24 / 32 / 48 / 64 / 96. */
@font-face { font-family: "Gloock"; src: url("../fonts/gloock.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --night: #0e1430; --night-2: #0a0f25; --night-3: #141b3d;
  --paper: #f4ead5; --ink: #2a2233; --ink-2: #5b4a5e;
  --pink: #ff4fa3; --pink-deep: #e0338a; --cyan: #3df5e0; --bulb: #ffd23f;
  --line: rgba(244, 234, 213, .18); --line-2: rgba(244, 234, 213, .32); --dim: rgba(244, 234, 213, .74);
  --display: "Gloock", "Georgia", serif; --text: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1240px; --gut: 48px; --radius: 4px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--night-2); color: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.55 var(--text); font-variant-numeric: tabular-nums; overflow-x: hidden; background: var(--night-2); }
img { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 700; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-variant-numeric: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- buttons, the contract bar, the link keys ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: var(--radius); font: 600 18px/1 var(--text); text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .12s ease-out, background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--pink); color: #1a0c18; }
.btn.primary:hover { background: #ff6db4; }
.btn.ghost { border-color: var(--line-2); color: var(--paper); background: rgba(14, 20, 48, .55); }
.btn.ghost:hover { border-color: var(--paper); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 1; color: rgba(244, 234, 213, .55); border-color: var(--line); background: rgba(14, 20, 48, .55); }
.btn[aria-disabled="true"] img { opacity: .55; }

.contract { display: flex; align-items: stretch; min-height: 52px; border: 1.5px solid var(--line-2); border-radius: var(--radius);
  background: rgba(10, 15, 37, .82); max-width: 560px; }
.contract .lab { display: flex; align-items: center; padding: 0 16px; font: 700 16px/1 var(--text); letter-spacing: .08em; color: var(--cyan); border-right: 1.5px solid var(--line); }
.contract .addr { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 16px; font: 400 16px/1.3 var(--mono); color: var(--paper);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.contract .addr.wait { font-family: var(--text); color: var(--dim); user-select: none; }
.contract .copy { border: 0; border-left: 1.5px solid var(--line); background: transparent; color: var(--paper); font: 600 16px/1 var(--text);
  padding: 0 24px; cursor: pointer; min-width: 96px; }
.contract .copy:hover:not([disabled]) { color: var(--cyan); }
.contract .copy[disabled] { color: rgba(244, 234, 213, .45); cursor: not-allowed; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; margin-top: 12px; }
.keys .btn { padding: 0 16px; font-size: 17px; }
.keys img { width: 22px; height: 22px; object-fit: contain; }

/* ---------- the hero: the front desk at night ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); height: clamp(680px, min(100vh, 56.25vw), 1120px); }
.stage { position: absolute; top: 0; right: 0; width: max(100%, calc(clamp(680px, min(100vh, 56.25vw), 1120px) * 16 / 9)); aspect-ratio: 16 / 9; }
.widebox { position: absolute; inset: 0; }
.widebox > img.scene, .tallbox > img.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.tallbox { display: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(to bottom, rgba(10, 15, 37, 0), var(--night-2)); pointer-events: none; }
.hero-copy { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 40px; }
.hero-copy .col { width: min(560px, 38.5vw); }
.nav { position: absolute; z-index: 4; top: 24px; left: 0; right: 0; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav a { display: inline-block; padding: 8px 0; font: 600 18px/1 var(--text); color: var(--paper); text-decoration: underline 2px transparent; text-underline-offset: 8px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration-color: var(--pink); }
.name { margin: 0; font: 400 clamp(64px, 6.9vw, 128px)/.9 var(--display); letter-spacing: -.012em; color: var(--paper); }
.name span { display: block; }
.headline { margin: 20px 0 0; font: 400 clamp(30px, 2.9vw, 44px)/1.08 var(--display); }
.headline em { font-style: normal; color: var(--pink); }
.lede { margin: 16px 0 0; max-width: min(520px, 34vw); color: var(--dim); }
@media (max-width: 1100px) { .lede { max-width: 640px; } }
.lede b { color: var(--paper); }
.actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero .contract { margin-top: 20px; }

/* overlays on the scene: positions in % of the 1672 x 941 picture */
.sign { position: absolute; left: 56.2%; top: 26.6%; width: 14.9%; height: 15.6%; pointer-events: none; }
.sign i { position: absolute; inset: 0; background: url("../img/neon-cpu-v1.webp") center / 100% 100% no-repeat; mix-blend-mode: screen; transition: opacity .06s steps(1); }
.sign .c { clip-path: inset(0 65% 18% 0); }
.sign .p { clip-path: inset(0 37% 18% 37%); }
.sign .u { clip-path: inset(0 7% 18% 64%); }
.sign .bar { clip-path: inset(74% 0 0 0); }
.sign i.off { opacity: .1; }
.novac { position: absolute; left: 86.4%; top: 16%; width: 11.6%; aspect-ratio: 16 / 9; background: url("../img/neon-novacancy-v1.webp") center / contain no-repeat; mix-blend-mode: screen; pointer-events: none; }
.novac.off { opacity: .12; }
.hooks { position: absolute; inset: 0; }
.hook { position: absolute; width: 2.1%; height: 5.4%; transform: translate(-50%, 0); display: block; }
.hook img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; transition: transform .35s ease-out, opacity .25s ease-out; }
.hook.empty img { opacity: 0; transform: translateY(-30%); }
.hook .glow { position: absolute; left: 50%; width: 260%; aspect-ratio: 1; top: -125%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 79, 163, .95) 0, rgba(255, 79, 163, .45) 22%, rgba(255, 79, 163, 0) 62%); mix-blend-mode: screen; opacity: 0; transition: opacity .3s ease-out; }
.hook.empty .glow { opacity: 1; }
.hook.lead .glow { opacity: .9; background: radial-gradient(circle, rgba(255, 210, 63, .9) 0, rgba(255, 210, 63, .35) 24%, rgba(255, 210, 63, 0) 62%); animation: lamp 1.6s steps(2) infinite; }
@keyframes lamp { 50% { opacity: .35; } }
.hook:focus-visible { outline-offset: 0; }
.roomcard { position: absolute; z-index: 2; padding: 12px 16px 12px; background: var(--paper); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); text-decoration: none; white-space: nowrap; transform: translate(-50%, 0); }
.roomcard .k { display: block; font: 600 16px/1.2 var(--text); color: var(--ink-2); }
.roomcard .v { display: block; font: 400 26px/1.1 var(--display); }

/* ---------- section system ---------- */
.sec { padding: 96px 0; position: relative; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.label { display: block; font: 700 16px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.sec-head h2 { margin: 8px 0 0; font: 400 clamp(36px, 3.6vw, 52px)/1.04 var(--display); }
.sec-head p { margin: 16px 0 0; color: var(--dim); max-width: 680px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 24px; border: 1.5px solid var(--pink); color: var(--pink); border-radius: var(--radius); font: 700 16px/1.2 var(--text); letter-spacing: .06em; }
.tag.live { border-color: var(--cyan); color: var(--cyan); }

/* ---------- the guest book (paper on the desk): rows sit on the ruled lines, sizes scale with the book ---------- */
.book { position: relative; container-type: inline-size; border-radius: 8px; box-shadow: 0 24px 64px rgba(0, 0, 0, .55); color: var(--ink); }
.book.wide { aspect-ratio: 1672 / 941; background: url("../img/guestbook-wide-v1.webp") center / 100% 100% no-repeat; }
.book.tall { display: none; aspect-ratio: 941 / 1672; background: url("../img/guestbook-tall-v1.webp") center / 100% 100% no-repeat; }
.book .page { position: absolute; top: 0; bottom: 0; }
.book .page.l { left: 5.4%; width: 42.6%; }
.book .page.r { left: 52.1%; width: 42.6%; }
.book .head, .book .row { position: absolute; left: 0; right: 0; display: grid; align-items: end; padding: 0 .4cqw .45cqw; text-decoration: none; color: inherit; }
.book .page.l .head, .book .page.l .row { grid-template-columns: 15% 55% 30%; }
.book .page.r .head, .book .page.r .row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.6cqw; }
.book .head { font: 700 max(16px, 1.15cqw)/1.1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.book .row { font: 400 max(16px, 1.75cqw)/1.1 var(--display); }
.book .page.l .row .mv { text-align: right; }
.book .page.l .head span:last-child { text-align: right; }
.book .row .room { color: var(--ink-2); }
.book .row .t { display: flex; align-items: baseline; gap: .8cqw; min-width: 0; }
.book .row .was { font: 600 max(16px, 1.05cqw)/1.1 var(--text); color: var(--ink-2); white-space: nowrap; }
.book .row .was s { text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.book .row .note { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.08; font-size: max(16px, 1.3cqw); }
.book .row .usd { font: 700 max(16px, 1.2cqw)/1.15 var(--text); color: var(--ink); text-align: right; }
.book .row .usd a { color: var(--ink); text-decoration-color: var(--pink); }
.book .row.next { color: rgba(42, 34, 51, .45); font-style: normal; }
.book .row.next span:nth-child(2) { font: 600 max(16px, 1.1cqw)/1.1 var(--text); }
a.row:hover .tt { color: var(--pink-deep); }
.book .row.ink .ink-run { animation: write 1.2s ease-out both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.book.tall .head, .book.tall .row { left: 7%; right: 4%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; padding: 0 0 1.4cqw; }
.book.tall .head { font-size: max(16px, 3.6cqw); }
.book.tall .row .l1 { display: flex; gap: 3cqw; align-items: baseline; font: 400 max(17px, 5.4cqw)/1.15 var(--display); white-space: nowrap; }
.book.tall .row .l1 .usd { margin-left: auto; font-size: max(16px, 4cqw); }
.book.tall .row .note { display: -webkit-box; margin-top: 4.2cqw; font: 400 max(16px, 4.1cqw)/1.2 var(--display); color: var(--ink); }
.book.tall .row.next .l1 { font: 600 max(16px, 4.2cqw)/1.2 var(--text); }
@media (max-width: 760px) { .book.wide { display: none; } .book.tall { display: block; } }
.underbook { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 24px; }
.underbook p { margin: 0; color: var(--dim); font-size: 17px; }

.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.total { padding: 24px 32px 24px; border: 1.5px solid var(--line); border-radius: var(--radius); background: rgba(20, 27, 61, .6); }
.total .k { display: block; font: 600 16px/1.3 var(--text); color: var(--dim); }
.total .v { display: block; margin-top: 8px; font: 400 clamp(40px, 3.8vw, 56px)/1 var(--display); color: var(--paper); }
.total .v small { font: 600 18px/1 var(--text); color: var(--dim); margin-left: 6px; }
.total .s { display: block; margin-top: 10px; font-size: 16px; color: var(--dim); }
.meter { height: 8px; margin-top: 14px; border-radius: 4px; background: rgba(244, 234, 213, .12); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--bulb); border-radius: 4px; transition: width .6s ease-out; }

/* ---------- the key board (rooms) ---------- */
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 16px; }
.fob { position: relative; display: block; text-decoration: none; color: var(--paper); padding: 16px 12px 16px; border-radius: var(--radius); background: rgba(20, 27, 61, .45); border: 1.5px solid transparent; transition: border-color .15s ease-out, background-color .15s ease-out; }
.fob:hover { border-color: var(--line-2); background: rgba(20, 27, 61, .8); }
.fob .lamp { width: 14px; height: 14px; margin: 0 auto 6px; border-radius: 50%; background: #6b5a2a; box-shadow: none; }
.fob.lead .lamp { background: var(--bulb); box-shadow: 0 0 16px 4px rgba(255, 210, 63, .7); }
.fob.in .lamp { background: var(--pink); box-shadow: 0 0 16px 4px rgba(255, 79, 163, .75); }
.fob .keyimg { position: relative; display: block; width: 66%; margin: 0 auto; aspect-ratio: 502 / 1015; }
.fob .lamp, .fob .d, .fob .st { display: block; }
.fob .keyimg img { width: 100%; height: 100%; }
.fob .keyimg b { position: absolute; left: 10%; right: 10%; top: 57%; text-align: center; font: 400 clamp(16px, 1.25vw, 19px)/1 var(--display); color: var(--ink); transform: translateY(-50%); white-space: nowrap; }
.fob.in .keyimg img { opacity: .16; }
.fob.in .keyimg b { color: var(--pink); top: 57%; font-size: clamp(18px, 1.5vw, 22px); }
.fob .hookonly { display: none; }
.fob .d { display: block; margin-top: 10px; text-align: center; font: 700 18px/1.2 var(--text); }
.fob .d.up { color: var(--cyan); } .fob .d.down { color: #ff8fc3; }
.fob .st { display: block; margin-top: 2px; text-align: center; font: 600 16px/1.25 var(--text); color: var(--dim); min-height: 1.25em; }
.fob.in .st { color: var(--pink); } .fob.lead .st { color: var(--bulb); }
.boardnote { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 24px; color: var(--dim); font-size: 17px; }
.boardnote p { margin: 0; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--night-3); }
.step figure img { width: 100%; height: 100%; object-fit: cover; }
.step h3 { margin: 16px 0 0; font: 400 26px/1.15 var(--display); }
.step h3::before { counter-increment: s; content: counter(s) ". "; color: var(--pink); }
.step p { margin: 8px 0 0; color: var(--dim); font-size: 17px; }

/* ---------- the register (every stay) ---------- */
.ledger { width: 100%; border-collapse: collapse; font-size: 17px; }
.ledger th { text-align: left; font: 600 16px/1.3 var(--text); color: var(--dim); padding: 12px 24px; border-bottom: 1.5px solid var(--line-2); white-space: nowrap; }
.ledger td { padding: 14px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger td.n { font: 400 22px/1.1 var(--display); color: var(--paper); white-space: nowrap; }
.ledger td.tk a { font: 400 21px/1.1 var(--display); color: var(--paper); text-decoration: underline 1px var(--line-2); text-underline-offset: 5px; }
.ledger td.tk s { display: block; margin-top: 4px; font: 600 16px/1.2 var(--text); color: var(--dim); text-decoration-color: var(--pink); }
.ledger td.num { text-align: right; white-space: nowrap; }
.ledger td.line { color: var(--dim); max-width: 380px; }
.ledger td.tx a { font: 400 16px/1.3 var(--mono); color: var(--cyan); text-decoration: none; }
.ledger td.tx span { font-size: 16px; color: var(--dim); }
.scrollx { overflow-x: auto; }
.more { margin-top: 24px; }

/* ---------- small print ---------- */
.fail { margin: 12px 0 0; font-size: 16px; color: #ff8fc3; }
.endnote { padding: 48px 0 64px; color: var(--dim); font-size: 16px; }
.endnote a { color: var(--paper); }

/* ---------- inner pages ---------- */
.page-top { position: relative; padding: 112px 0 48px; }
.page-top .nav { top: 24px; }
.page-top h1 { margin: 0; font: 400 clamp(56px, 7vw, 120px)/.95 var(--display); }
.page-top p { margin: 16px 0 0; color: var(--dim); max-width: 720px; }
.home-link { font-weight: 600; }

@media (max-width: 1100px) {
  :root { --gut: 32px; }
  .hero { height: auto; }
  .stage { position: relative; width: 100%; }
  .hero::after { display: none; }
  .hero-copy { height: auto; padding-top: 32px; padding-bottom: 48px; }
  .hero-copy .col { width: 100%; max-width: 640px; }
  .nav { position: absolute; top: 16px; }
  .board { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .totals { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  body { font-size: 17px; }
  .stage { aspect-ratio: 941 / 1100; overflow: hidden; }
  .widebox { display: none; }
  .tallbox { display: block; position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 941 / 1672; transform: translateY(-12%); }
  .stage::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto 0; height: 72px; background: linear-gradient(var(--night), rgba(14, 20, 48, 0)); pointer-events: none; }
  .tallbox .sign { left: 31.9%; top: 22.5%; width: 36.3%; height: 11.5%; }
  .tallbox .hook { width: 4.2%; height: 4.6%; }
  .name { font-size: clamp(46px, 13vw, 60px); }
  .headline { font-size: 30px; }
  .actions .btn { flex: 1 1 auto; }
  .keys .btn { font-size: 16px; padding: 0 12px; }
  .keys .btn span { display: none; }
  .hero-copy .links-first { order: -1; }
  .sec { padding: 64px 0; }
  .board { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .underbook, .boardnote { grid-template-columns: 1fr; }
  .contract .copy { min-width: 80px; padding: 0 16px; }
  .ledger th:nth-child(5), .ledger td:nth-child(5), .ledger th:nth-child(6), .ledger td:nth-child(6) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- the room page ---------- */
.roomgrid { display: grid; grid-template-columns: 160px 1fr; gap: 48px; align-items: start; }
.roomkey { position: relative; width: 150px; margin: 0 auto; }
.roomkey img { width: 100%; height: auto; }
.roomkey b { position: absolute; left: 8%; right: 8%; top: 57%; transform: translateY(-50%); text-align: center; font: 400 22px/1 var(--display); color: var(--ink); white-space: nowrap; }
.roomstats { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 16px; margin-top: 32px; }
.roomstats .v { font-size: 40px; }
.mintline { grid-column: 1 / -1; margin: 0; font-size: 16px; color: var(--dim); overflow-wrap: anywhere; }

/* ---------- docs ---------- */
.doc > * { max-width: 860px; }
.doc h2 { margin: 64px 0 16px; font: 400 40px/1.08 var(--display); }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--dim); }
.doc p b, .doc li b { color: var(--paper); }
.doc code, .doc pre { font-family: var(--mono); font-size: 16px; color: var(--paper); }
.doc pre { margin: 16px 0; padding: 16px 20px; border: 1.5px solid var(--line); border-radius: var(--radius); background: rgba(20, 27, 61, .6); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc .honest { margin: 24px 0; padding: 20px 24px; border-left: 4px solid var(--pink); background: rgba(255, 79, 163, .08); color: var(--paper); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 17px; }
.doc th { text-align: left; font: 600 16px/1.3 var(--text); color: var(--dim); padding: 10px 24px; border-bottom: 1.5px solid var(--line-2); }
.doc td { padding: 10px 24px; border-bottom: 1px solid var(--line); color: var(--paper); vertical-align: top; }
.doc td.mono { font-size: 16px; color: var(--dim); overflow-wrap: anywhere; }
.docsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0 8px; }
.docsteps figure { margin: 0; }
.docsteps img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.docsteps figcaption { margin-top: 10px; font: 600 16px/1.35 var(--text); color: var(--paper); }
.docsteps figcaption span { color: var(--pink); }
.toc { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.toc a { font-weight: 600; color: var(--paper); text-decoration: underline 1.5px var(--line-2); text-underline-offset: 6px; }

/* ---------- 404 ---------- */
.lost { position: relative; min-height: 100vh; background: var(--night) url("../img/lost-v1.webp") right center / cover no-repeat; display: flex; align-items: center; }
.lost .wrap { position: relative; }
.lostbook { width: min(560px, 100%); padding: 32px 32px 28px; background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: 0 24px 64px rgba(0, 0, 0, .55); }
.lostbook .rule { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: end; padding: 14px 0 10px; position: relative; font: 400 22px/1.2 var(--display); }
.lostbook .rule::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: rgba(42, 34, 51, .5); }
.lostbook .rule span:first-child { color: var(--ink-2); }
.lostbook .rule.blank span { color: transparent; }
.lostbook h1 { margin: 24px 0 0; font: 400 clamp(44px, 6vw, 72px)/1 var(--display); }
.lostbook p { margin: 12px 0 24px; color: var(--ink-2); }
.lostbook .btn.primary { color: #1a0c18; }

@media (max-width: 1100px) { .docsteps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .roomgrid { grid-template-columns: 1fr; gap: 24px; }
  .roomkey { width: 110px; margin: 0; }
  .roomkey b { font-size: 18px; }
  .roomstats { grid-template-columns: 1fr; }
  .doc h2 { font-size: 32px; }
  .lost { background-position: 70% center; align-items: flex-end; padding-bottom: 32px; }
  .lostbook { padding: 24px 20px 20px; }
}

/* the hero's copy sits on the calm left of the scene, so it follows the window edge, not the centred container */
.hero-copy.wrap, .hero .nav .wrap { max-width: none; padding-left: clamp(32px, 4.4vw, 96px); padding-right: 32px; }
@media (max-width: 1100px) { .hero-copy.wrap, .hero .nav .wrap { padding-left: var(--gut); padding-right: var(--gut); } }
@media (max-width: 760px) {
  .fob { padding: 8px 0; background: none; border: 0; border-radius: 0; }
  .fob:hover { background: none; border-color: transparent; }
  .fob .keyimg { width: 92%; }
  .fob .keyimg b { left: 4%; right: 4%; font-size: 16px; letter-spacing: -.01em; }
}
/* Gloock's dollar sign reads as an S at display sizes: the sign is set in the text face */
.dollar { font-family: var(--text); font-weight: 600; font-size: .86em; margin-right: .02em; }
/* on the scene the contract bar and the keys stay on the calm wall, left of the console */
@media (min-width: 1101px) { .hero .contract, .hero .keys { max-width: min(560px, 35vw); } }
