/* Fonts are self-hosted (SIL OFL, see fonts/OFL-*.txt). Jost is a variable font, one file covers 300 and 400. */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(/fonts/jost-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(/fonts/jost-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/cormorant-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/cormorant-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Layout: one door on one screen, no scrolling - keyhole, name, claim and company details on a single centre axis. */
:root {
  color-scheme: dark;
  --night: #2B211C;
  --brass: #B08D57;
  --travertine: #E9E1D4;
  --line: rgba(233, 225, 212, .22);
  --quiet: rgba(233, 225, 212, .72);
  --display: 'Jost', system-ui, sans-serif;
  --voice: 'Cormorant Garamond', Georgia, serif;
  --left: max(clamp(16px, 5vw, 72px), env(safe-area-inset-left, 0px));
  --right: max(clamp(16px, 5vw, 72px), env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--travertine);
  font-family: var(--display);
}
.wall {
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) clamp(16px, 6vh, 56px);
  padding-top: clamp(12px, 4vh, 44px);
}
.door {
  position: relative;
  justify-self: center;
  height: 100%;
  aspect-ratio: 56 / 100;
  max-width: calc(100% - var(--left) - var(--right));
  container-type: size;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}
.door-face {
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 12px;
  text-align: center;
}
.keyhole {
  width: min(24cqw, 13cqh);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 4px;
}
.keyhole svg { display: block; width: 100%; height: auto; }
.keyhole:focus-visible { outline: 1px solid var(--brass); outline-offset: 6px; }
.name {
  margin: clamp(12px, 5cqh, 48px) 0 0;
  padding-left: .24em;
  font-size: clamp(16px, min(8.6cqw, 5.2cqh), 46px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.name span { display: block; }
#line {
  margin: clamp(4px, 1.6cqh, 18px) 0 0;
  min-height: 1.2em;
  font-family: var(--voice);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, min(5.6cqw, 3.6cqh), 28px);
  line-height: 1.2;
  text-wrap: balance;
  transition: opacity .5s ease;
}
#line.out { opacity: 0; }
.details {
  display: grid;
  gap: 1px;
  margin-top: clamp(12px, 5cqh, 48px);
  font-style: normal;
  font-size: clamp(12px, min(3.4cqw, 1.9cqh), 14px);
  line-height: 1.4;
  color: var(--quiet);
}
.details .whole { white-space: nowrap; }
.details small { font-size: 11px; }
.light {
  position: absolute;
  inset: auto -1px 0;
  height: 3px;
  overflow: hidden;
  background: var(--brass);
  transition: opacity .35s ease;
}
.light.held { opacity: .3; }
.feet {
  position: absolute;
  inset: 0 auto 0 -40px;
  display: flex;
  gap: 7px;
  animation: passing 47s linear 9s infinite;
}
.feet i { width: 13px; background: var(--night); }
@keyframes passing {
  0% { left: -40px; }
  26%, 100% { left: 100%; }
}
.floor {
  border-top: 1px solid var(--line);
  background: radial-gradient(34% 100% at 50% 0, rgba(176, 141, 87, .24), transparent);
}

.light, .keyhole, .sign, .details { animation: arrive 1.4s ease both; }
.light { animation-delay: .1s; }
.keyhole { animation-delay: .6s; }
.sign { animation-delay: 1s; }
.details { animation-delay: 1.6s; }
@keyframes arrive { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .light, .keyhole, .sign, .details { animation: none; }
  .feet { display: none; }
  #line, .light { transition: none; }
}
