/* =========================================================
   PERSONAL ARCHIVE INITIATIVE
   Final landing baseline

   Locked interaction rules:
   - approved 2D lamp
   - cabinet / drawer / handle are NOT clickable
   - drawer opens visually on the second scroll/swipe
   - ONLY white drawer card is app CTA
   - record folders animate out with the drawer
   - desktop folders: loose horizontal plane above drawer
   - mobile folders: circle around white CTA card
   ========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --black: #050605;

  --room-top: #20231f;
  --room-mid: #151815;
  --room-bottom: #0c0e0c;

  --steel-1: #30342f;
  --steel-2: #242824;

  --folder: #292c28;
  --folder-hover: #353a34;

  --paper: #d7d2c6;
  --paper-dark: #c6c0b4;

  --text: #e9ece7;
  --soft: #a8aea7;
  --muted: #727972;

  --line: #343934;
  --stamp: #9f554d;

  --mono:
    "Cascadia Code",
    "JetBrains Mono",
    "IBM Plex Mono",
    Consolas,
    monospace;

  --hand:
    "Segoe Print",
    "Bradley Hand",
    cursive;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  overscroll-behavior: none;

  background: var(--black);
  color: var(--text);

  font-family:
    "Helvetica Neue",
    Arial,
    sans-serif;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

body::after {
  content: "";

  position: fixed;
  z-index: 9999;
  inset: 0;

  pointer-events: none;

  opacity: .065;

  background-image:
    radial-gradient(
      rgba(255,255,255,.22) .45px,
      transparent .7px
    );

  background-size: 5px 5px;
}


/* =========================================================
   INTRO
   ========================================================= */

.intro {
  position: fixed;
  z-index: 500;
  inset: 0;

  overflow: hidden;

  background: #010201;

  transition:
    transform 1.4s cubic-bezier(.66,0,.2,1),
    opacity .82s ease .36s;
}

.intro-wall {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      ellipse at 50% 28%,
      rgba(255,214,110,0),
      transparent 64%
    );

  transition: background 1s ease;
}

.enter-note {
  position: absolute;

  left: 50%;
  bottom: calc(8vh + env(safe-area-inset-bottom));

  transform: translateX(-50%);

  white-space: nowrap;

  color: #292c28;

  font-family: var(--mono);
  font-size: 8px;

  letter-spacing: .18em;
  text-transform: uppercase;

  transition: color .72s ease;
}


/* =========================================================
   APPROVED 2D LAMP
   Kept intentionally simple.
   ========================================================= */

.intro-lamp {
  position: absolute;
  z-index: 6;

  left: 50%;
  top: 0;

  width: 260px;
  height: 360px;

  transform: translateX(-50%);
}

.intro-lamp .cable {
  position: absolute;

  left: 50%;
  top: 0;

  width: 3px;
  height: 128px;

  transform: translateX(-50%);

  background:
    linear-gradient(
      90deg,
      #080908,
      #242520,
      #080908
    );

  z-index: 10;
}

.intro-lamp .socket {
  position: absolute;

  left: 50%;
  top: 116px;

  width: 38px;
  height: 58px;

  transform: translateX(-50%);

  border-radius: 5px 5px 9px 9px;

  background:
    linear-gradient(
      90deg,
      #090a09,
      #24251f 48%,
      #090a09
    );

  border: 1px solid #2b2e28;

  z-index: 10;
}

.intro-lamp .socket::before {
  content: "";

  position: absolute;

  left: 7px;
  right: 7px;
  top: 15px;

  height: 1px;

  background: #3b3e36;

  box-shadow:
    0 8px #3b3e36,
    0 16px #3b3e36;
}

.intro-lamp .bulb {
  position: absolute;

  left: 50%;
  top: 232px;

  width: 76px;
  height: 76px;

  transform: translateX(-50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 37% 30%,
      #fffef0 0%,
      #fff4c6 18%,
      #ffdb76 45%,
      #d99b34 72%,
      #6f4a12 100%
    );

  border:
    1px solid rgba(255,231,158,.6);

  box-shadow:
    0 0 16px rgba(255,211,84,.72),
    0 0 48px rgba(255,198,42,.28);

  z-index: 20;

  opacity: .07;

  transition: opacity .7s ease;
}

.intro-lamp .filament {
  position: absolute;

  left: 50%;
  top: 30px;

  width: 26px;
  height: 26px;

  transform: translateX(-50%);

  z-index: 2;
}

.intro-lamp .filament::before,
.intro-lamp .filament::after {
  content: "";

  position: absolute;

  bottom: 0;

  width: 1px;
  height: 21px;

  background: #f0c65f;
}

.intro-lamp .filament::before {
  left: 5px;
  transform: rotate(-8deg);
}

.intro-lamp .filament::after {
  right: 5px;
  transform: rotate(8deg);
}

.intro-lamp .filament span {
  position: absolute;

  left: 5px;
  right: 5px;
  top: 3px;

  height: 9px;

  border-bottom: 2px solid #ffd36b;

  border-radius: 50%;

  filter:
    drop-shadow(
      0 0 3px #ffb829
    );
}

.intro-lamp .bulb::after {
  content: "";

  position: absolute;

  left: 15px;
  top: 20px;

  width: 9px;
  height: 22px;

  border-left:
    2px solid rgba(255,255,255,.32);

  border-radius: 50%;

  transform: rotate(14deg);

  opacity: .72;
}

.intro-lamp .cover {
  position: absolute;

  left: 50%;
  top: 158px;

  width: 220px;
  height: 105px;

  transform: translateX(-50%);

  clip-path:
    polygon(
      39% 0,
      61% 0,
      100% 100%,
      0 100%
    );

  background:
    linear-gradient(
      180deg,
      #282b25 0%,
      #141612 55%,
      #070807 100%
    );

  filter:
    drop-shadow(
      0 16px 18px rgba(0,0,0,.58)
    );

  z-index: 30;
}

.intro-lamp .cover::before {
  content: "";

  position: absolute;

  left: 38px;
  right: 38px;
  top: 16px;

  height: 1px;

  background:
    rgba(255,255,255,.05);
}

.intro-light {
  position: absolute;
  z-index: 1;

  left: 50%;
  top: 273px;

  width: min(900px,120vw);
  height: 72vh;

  transform: translateX(-50%);

  clip-path:
    polygon(
      44% 0,
      56% 0,
      100% 100%,
      0 100%
    );

  background:
    linear-gradient(
      180deg,
      rgba(255,217,102,.15),
      rgba(255,210,73,.04) 45%,
      transparent 100%
    );

  filter: blur(9px);

  opacity: 0;

  transition: opacity 1s ease;
}

body.light-on .intro-wall {
  background:
    radial-gradient(
      ellipse at 50% 29%,
      rgba(255,217,118,.10),
      rgba(255,215,108,.018) 43%,
      transparent 70%
    );
}

body.light-on .intro-lamp .bulb {
  opacity: 1;
}

body.light-on .intro-light {
  opacity: 1;
}

body.light-on .enter-note {
  color: #827653;
}

body.archive-entered .intro {
  transform:
    translateY(-110vh)
    scale(1.035);

  opacity: 0;

  pointer-events: none;
}


/* =========================================================
   ARCHIVE STAGE
   ========================================================= */

.stage {
  position: fixed;
  inset: 0;

  overflow: hidden;

  opacity: 0;

  transform:
    translateY(18px)
    scale(1.012);

  transition:
    opacity .78s ease .46s,
    transform 1.05s ease .38s;
}

body.archive-entered .stage {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

.room {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      var(--room-top),
      var(--room-mid) 58%,
      var(--room-bottom)
    );
}

.room::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      ellipse at 50% -5%,
      rgba(255,222,142,.055),
      transparent 47%
    );
}

.room::after {
  content: "";

  position: absolute;

  left: -10%;
  right: -10%;
  top: 69%;

  height: 1px;

  background: #2b302b;
}


/* =========================================================
   REGISTER
   ========================================================= */

.register {
  position: absolute;
  z-index: 90;

  left: 0;
  right: 0;
  top: 0;

  height:
    calc(
      56px +
      env(safe-area-inset-top)
    );

  display: flex;
  align-items: center;

  padding:
    env(safe-area-inset-top)
    21px
    0;

  background:
    rgba(5,7,5,.87);

  border-bottom:
    1px solid var(--line);

  backdrop-filter: blur(8px);
}

.mark {
  position: relative;

  width: 22px;
  height: 29px;

  margin-right: 11px;

  border:
    1px solid #bbc0ba;
}

.mark::before,
.mark::after {
  content: "";

  position: absolute;

  left: 5px;
  right: 5px;

  height: 1px;

  background:
    #bbc0ba;
}

.mark::before {
  top: 9px;
}

.mark::after {
  top: 17px;
}

.registry-name {
  font-family: var(--mono);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: .13em;
}

.registry-meta {
  margin-left: auto;

  display: flex;

  gap: 26px;

  color: #646a64;

  font-family: var(--mono);
  font-size: 7px;

  letter-spacing: .09em;
}

.registry-meta strong {
  color: #b8beb8;
  font-weight: 500;
}


/* =========================================================
   COLLECTION NOTE
   ========================================================= */

.collection-note {
  position: absolute;
  z-index: 20;

  left: 30px;
  top: 88px;

  width: 255px;

  font-family: var(--mono);
}

.collection-note small {
  display: block;

  color: #666d66;

  font-size: 7px;

  letter-spacing: .16em;
}

.collection-note strong {
  display: block;

  margin-top: 10px;

  color: #dfe3dd;

  font-size: 12px;
  line-height: 1.35;
}

.collection-note span {
  display: block;

  margin-top: 12px;

  color: #717871;

  font-size: 8px;
  line-height: 1.55;
}


/* =========================================================
   CABINET — VISUAL ONLY / NOT CLICKABLE
   ========================================================= */

.cabinet {
  position: absolute;
  z-index: 30;

  pointer-events: none;

  left: 50%;
  top: 56%;

  width:
    min(
      780px,
      71vw
    );

  height:
    min(
      560px,
      64vh
    );

  transform:
    translate(-50%,-50%);

  background:
    linear-gradient(
      180deg,
      #30342f,
      #242824
    );

  border:
    1px solid #414641;

  box-shadow:
    0 50px 110px rgba(0,0,0,.57),
    inset 0 0 0 4px rgba(255,255,255,.015);
}

.cabinet::before {
  content: "";

  position: absolute;
  inset: 13px;

  border:
    1px solid #141714;
}

.cabinet-label {
  position: absolute;

  top: 29px;
  left: 29px;

  padding: 7px 10px;

  background: #171a18;

  border:
    1px solid #4b514b;

  color: #a6aca6;

  font-family: var(--mono);
  font-size: 7px;

  letter-spacing: .1em;
}

.cabinet-no {
  position: absolute;

  right: 28px;
  top: 31px;

  color: #656b65;

  font-family: var(--mono);
  font-size: 8px;
}

.drawer-frame {
  position: absolute;

  left: 8%;
  right: 8%;
  top: 22%;
  bottom: 14%;

  perspective: 1200px;

  overflow: visible;

  background: #121512;

  border:
    1px solid #454b45;

  pointer-events: none;
}

.drawer {
  position: absolute;
  inset: 7px;

  transform-style: preserve-3d;
  transform-origin: top center;

  transform:
    translateZ(0)
    translateY(0)
    rotateX(0deg);

  transition:
    transform
      1.08s
      cubic-bezier(.17,.86,.22,1);

  pointer-events: none;
}

/*
  The drawer VISUALLY opens.
  It is still not clickable.
*/
.stage.drawer-open .drawer {
  transform:
    translateZ(360px)
    translateY(122px)
    rotateX(-4deg);
}

.drawer-front {
  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      #30342f,
      #252925
    );

  border:
    1px solid #444944;

  box-shadow:
    inset 0 1px rgba(255,255,255,.04),
    0 12px 25px rgba(0,0,0,.28);
}

.drawer-handle {
  position: absolute;

  pointer-events: none;

  left: 50%;
  top: 23%;

  width: 150px;
  height: 38px;

  transform:
    translateX(-50%);

  background:
    #1b1f1c;

  border:
    1px solid #575e57;
}

.drawer-handle::before {
  content: "";

  position: absolute;

  left: 18px;
  right: 18px;
  top: 11px;

  height: 10px;

  border:
    1px solid #515851;
}


/* =========================================================
   WHITE ARCHIVAL CARD = ONLY APP BUTTON
   ========================================================= */

.drawer-label {
  position: absolute;
  z-index: 40;

  left: 50%;
  bottom: 18%;

  width: 270px;

  transform:
    translateX(-50%);

  padding:
    13px 16px 12px;

  background:
    var(--paper);

  color:
    #181a18;

  border:
    1px solid #73776f;

  text-align: center;
  text-decoration: none;

  box-shadow:
    0 4px 13px rgba(0,0,0,.18);

  cursor: pointer;

  pointer-events: auto;

  transition:
    background .14s ease,
    box-shadow .14s ease;
}

.drawer-label:hover,
.drawer-label:active,
.drawer-label:focus-visible {
  background: #e7e3d9;

  box-shadow:
    0 7px 18px rgba(0,0,0,.24);
}

.drawer-label:focus-visible {
  outline:
    2px solid #f1f2ee;

  outline-offset:
    4px;
}

.drawer-label small {
  display: block;

  color: #656961;

  font-family: var(--mono);
  font-size: 7px;

  letter-spacing: .13em;
}

.drawer-label strong {
  display: block;

  margin-top: 7px;

  font-family: var(--mono);
  font-size: 10px;

  letter-spacing: .045em;
}

.drawer-domain {
  position: relative;

  width: 84%;
  height: 24px;

  margin:
    8px auto 0;
}

.drawer-domain-line {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 5px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(62,65,59,.16),
      rgba(62,65,59,.72) 10%,
      rgba(62,65,59,.72) 90%,
      rgba(62,65,59,.16)
    );
}

.drawer-domain-hand {
  position: absolute;

  right: 7px;
  bottom: 3px;

  padding:
    0 4px;

  background:
    var(--paper);

  color:
    #5d5748;

  font-family:
    var(--hand);

  font-size:
    10px;

  line-height: 1;

  letter-spacing: -.02em;

  transform:
    rotate(-2.4deg);

  opacity: .9;
}

.drawer-label:hover .drawer-domain-hand,
.drawer-label:active .drawer-domain-hand,
.drawer-label:focus-visible .drawer-domain-hand {
  background:
    #e7e3d9;
}


/* =========================================================
   RECORD FOLDERS — THE ONLY MOVING OBJECTS IN ARCHIVE ROOM
   ========================================================= */

.records {
  position: absolute;
  z-index: 55;
  inset: 0;

  pointer-events: none;
}

.record-card {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 220px;
  height: 146px;

  padding:
    18px 16px;

  opacity: 1;
  visibility: hidden;

  background:
    var(--folder);

  border:
    1px solid #505650;

  box-shadow:
    0 10px 25px rgba(0,0,0,.28);

  cursor: pointer;

  pointer-events: none;

  /*
    Cards start stacked behind the drawer/white card.
    No fading. Only transform moves them out.
  */
  transform:
    translate(
      calc(-50% + var(--origin-x, 0px)),
      calc(-50% + var(--origin-y, 0px))
    )
    rotate(0deg);

  transition:
    transform
      .88s
      cubic-bezier(.17,.84,.24,1),
    background
      .12s ease,
    border-color
      .12s ease,
    box-shadow
      .12s ease;
}

.record-card::before {
  content: "";

  position: absolute;

  left: -1px;
  top: -19px;

  width: 92px;
  height: 19px;

  background:
    var(--folder);

  border:
    1px solid #505650;

  border-bottom:
    0;

  transition:
    background .12s ease,
    border-color .12s ease;
}

.stage.records-open .record-card {
  visibility: visible;
  pointer-events: auto;

  transform:
    translate(
      calc(-50% + var(--card-x, 0px)),
      calc(-50% + var(--card-y, 0px))
    )
    rotate(var(--card-r, 0deg));
}

.record-card:hover,
.record-card:active,
.record-card.is-pressed {
  background:
    var(--folder-hover);

  border-color:
    #858c85;

  box-shadow:
    0 15px 36px rgba(0,0,0,.38);
}

.record-card:hover::before,
.record-card:active::before,
.record-card.is-pressed::before {
  background:
    var(--folder-hover);

  border-color:
    #858c85;
}

.record-id {
  color: #747b74;

  font-family: var(--mono);
  font-size: 6px;

  letter-spacing: .14em;
}

.record-title {
  margin-top: 14px;

  color: #e4e7e2;

  font-size: 17px;
  font-weight: 600;

  line-height: 1.02;
  letter-spacing: -.04em;
}

.record-subtitle {
  max-width: 180px;

  margin-top: 7px;

  color: #8c938c;

  font-size: 8px;
  line-height: 1.4;
}

.record-hand {
  position: absolute;

  right: 11px;
  top: 10px;

  max-width: 90px;

  color: #c0b9a4;

  font-family: var(--hand);

  font-size: 8px;
  line-height: 1.18;

  text-align: right;

  transform:
    rotate(var(--hand-r,-4deg));

  opacity: .9;
}

.record-hand::after {
  content: "";

  display: block;

  width: 92%;
  height: 1px;

  margin:
    3px 0 0 auto;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(186,180,159,.42)
    );
}

.record-code {
  position: absolute;

  left: 15px;
  bottom: 12px;

  color: #616861;

  font-family: var(--mono);
  font-size: 5px;

  letter-spacing: .08em;
}

.record-stamp {
  position: absolute;

  right: 12px;
  bottom: 11px;

  color:
    var(--stamp);

  font-family: var(--mono);

  font-size: 6px;
  font-weight: 700;

  transform:
    rotate(-6deg);
}


/* =========================================================
   SCROLL HINT
   ========================================================= */

.scroll-hint {
  position: absolute;
  z-index: 80;

  left: 50%;
  bottom: 22px;

  transform:
    translateX(-50%);

  color: #626962;

  font-family: var(--mono);
  font-size: 7px;

  letter-spacing: .16em;

  white-space: nowrap;

  text-transform: uppercase;

  transition: opacity .2s ease;
}

.scroll-hint::before {
  content: "↓";

  display: block;

  margin-bottom: 7px;

  text-align: center;

  color: #9ca29c;

  font-size: 11px;
}

.stage.records-open .scroll-hint {
  opacity: 0;
  visibility: hidden;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  position: fixed;
  z-index: 12000;

  left: 50%;
  bottom:
    calc(
      18px +
      env(safe-area-inset-bottom)
    );

  width:
    min(
      560px,
      calc(100vw - 32px)
    );

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transform:
    translateX(-50%)
    translateY(8px);

  text-align: center;

  font-family: var(--mono);

  pointer-events: none;
  user-select: none;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity .35s ease,
    transform .35s ease,
    visibility .35s ease;
}


/* SHOW ONLY AFTER DRAWER OPENS */

body.records-open .site-footer {
  opacity: 1;
  visibility: visible;

  transform:
    translateX(-50%)
    translateY(0);
}


/* LINE 1 */

.site-footer-line {
  margin-bottom: 7px;

  color: rgba(225,230,222,.72);

  font-size: 9px;
  font-weight: 600;

  line-height: 1.2;

  letter-spacing: .08em;
}


/* LINE 2 */

.site-footer-product {
  margin-bottom: 5px;

  color: rgba(205,212,202,.55);

  font-size: 8px;
  font-weight: 700;

  line-height: 1.2;

  letter-spacing: .11em;
}


/* LINE 3 */

.site-footer-studio {
  color: rgba(195,202,192,.48);

  font-size: 8px;
  font-weight: 600;

  line-height: 1.2;

  letter-spacing: .06em;
}


.site-footer-studio a {
  color: rgba(232,237,226,.78);

  text-decoration: none;

  pointer-events: auto;

  cursor: pointer;

  transition:
    color .14s ease,
    text-shadow .14s ease;
}


.site-footer-studio a:hover,
.site-footer-studio a:focus-visible {
  color: #ffffff;

  text-shadow:
    0 0 9px rgba(230,235,222,.22);
}


/* =========================================================
   RECORD DOCUMENT
   ========================================================= */

.record-overlay {
  position: fixed;
  z-index: 5000;
  inset: 0;

  display: none;
  place-items: center;

  padding:
    max(12px,env(safe-area-inset-top))
    12px
    max(12px,env(safe-area-inset-bottom));

  background:
    rgba(1,2,1,.83);
}

.record-overlay.open {
  display: grid;
}

.record-sheet {
  position: relative;

  width:
    min(
      820px,
      90vw
    );

  max-height:
    min(
      680px,
      88dvh
    );

  overflow: auto;

  padding:
    48px 52px 54px;

  background:
    var(--paper);

  color:
    #181a18;

  border:
    1px solid #868278;

  box-shadow:
    0 45px 140px rgba(0,0,0,.72);
}

.sheet-kicker {
  color: #696b64;

  font-family: var(--mono);
  font-size: 7px;

  letter-spacing: .14em;
}

.sheet-id {
  margin-top: 11px;

  color: #6f716a;

  font-family: var(--mono);
  font-size: 7px;
}

.record-sheet h2 {
  max-width: 640px;

  margin:
    22px 0 13px;

  color:
    #171917;

  font-size:
    clamp(38px,5vw,58px);

  line-height: .94;
  letter-spacing: -.055em;
}

.sheet-subtitle {
  max-width: 600px;

  margin-bottom: 30px;

  color: #61645e;

  font-family: var(--mono);

  font-size: 9px;
  line-height: 1.55;
}

.sheet-copy {
  max-width: 610px;

  color: #343834;

  font-size: 15px;
  line-height: 1.68;
}

.sheet-hand {
  max-width: 610px;

  margin-top: 40px;
  padding-top: 18px;

  border-top:
    1px solid #aaa59a;

  color: #6f594b;

  font-family: var(--hand);
  font-size: 12px;

  transform:
    rotate(-1deg);
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.close {
  position: absolute;

  right: 14px;
  top: 14px;

  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  background:
    transparent;

  border:
    1px solid #8e8a80;

  color:
    #4f534e;
}

.close:hover,
.close:focus-visible {
  background:
    #161816;

  color:
    #f0eee7;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:760px) {

  .registry-meta span:not(:first-child) {
    display: none;
  }

  .registry-name {
    font-size: 8px;
  }

  .collection-note {
    top:
      calc(
        75px +
        env(safe-area-inset-top)
      );

    left: 17px;

    width: 210px;
  }

  .collection-note span {
    display: none;
  }

  .cabinet {
    top: 56%;

    width: 92vw;
    height: 39vh;

    min-height: 290px;
  }

  .cabinet-label {
    top: 18px;
    left: 17px;
  }

  .cabinet-no {
    top: 20px;
    right: 17px;
  }

  .drawer-frame {
    left: 6%;
    right: 6%;
    top: 22%;
    bottom: 11%;
  }

  .stage.drawer-open .drawer {
    transform:
      translateZ(185px)
      translateY(62px)
      rotateX(-3deg);
  }

  .drawer-handle {
    width: 118px;
    height: 34px;
  }

  /*
    Smaller white CTA card leaves enough room
    for 5 folders on a true circle around it.
  */
  .drawer-label {
    width: 164px;

    bottom: 17%;

    padding:
      11px 10px 9px;
  }

  .drawer-label small {
    font-size: 5.5px;
  }

  .drawer-label strong {
    font-size: 7.5px;
    line-height: 1.3;
  }

  .drawer-domain {
    width: 92%;
    height: 19px;

    margin-top: 6px;
  }

  .drawer-domain-hand {
    right: 3px;
    bottom: 2px;

    font-size: 8px;
  }

  /*
    Phone cards: compact enough for a real circle.
  */
  .record-card {
    width: 104px;
    height: 84px;

    padding:
      9px 8px;
  }

  .record-card::before {
    top: -12px;

    width: 55px;
    height: 12px;
  }

  .record-title {
    margin-top: 7px;

    font-size: 10px;
  }

  .record-subtitle {
    display: none;
  }

  .record-id {
    font-size: 4.4px;
  }

  .record-hand {
    top: 5px;
    right: 6px;

    max-width: 47px;

    font-size: 5.4px;
  }

  .record-code {
    left: 7px;
    bottom: 6px;

    font-size: 3.8px;
  }

  .record-stamp {
    right: 6px;
    bottom: 6px;

    font-size: 4px;
  }

  .scroll-hint {
    bottom:
      calc(
        20px +
        env(safe-area-inset-bottom)
      );
  }

  .record-sheet {
    width:
      calc(
        100vw -
        20px
      );

    max-height:
      calc(
        100dvh -
        24px -
        env(safe-area-inset-top) -
        env(safe-area-inset-bottom)
      );

    padding:
      44px 24px 46px;
  }

  .record-sheet h2 {
    font-size:
      clamp(
        34px,
        10vw,
        46px
      );
  }

  .manifest-paper {
    width:
      calc(
        100vw -
        20px
      );

    max-height:
      calc(
        100dvh -
        24px -
        env(safe-area-inset-top) -
        env(safe-area-inset-bottom)
      );

    padding:
      42px 24px 45px;
  }

  .manifest-paper h2 {
    font-size: 34px;
  }

  .intro-lamp {
    transform:
      translateX(-50%)
      scale(.88);

    transform-origin:
      top center;
  }

  .intro-light {
    top: 240px;

    width: 125vw;
  }




}


/* =========================================================
   SHORT / LANDSCAPE VIEWPORTS
   ========================================================= */

@media
(max-width:900px)
and
(max-height:520px)
and
(orientation:landscape) {

  .collection-note {
    display: none;
  }

  .cabinet {
    top: 52%;

    width: 68vw;
    height: 68vh;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration:
      .01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      .01ms !important;
  }

}













@media (max-width:760px) {

  .site-footer {
  bottom:
    calc(
      18px +
      env(safe-area-inset-bottom)
    );

  width: calc(100% - 24px);
}


.site-footer-line {
  font-size: 9px;
}


.site-footer-product {
  font-size: 8px;
}


.site-footer-studio {
  font-size: 8px;
}

}