@font-face {
  font-family: Inter;
  src: url("./assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: #0c0c0d;
  --inset-x: clamp(1.5rem, 3.6vw, 5.5rem);
  --inset-y: clamp(1.25rem, 4.4vh, 3.85rem);
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { color: #f1f0ec; }
.poster {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #0c0c0d url("./assets/exposure.webp") center / 100% 100% no-repeat;
}
.masthead {
  position: absolute;
  z-index: 2;
  top: max(var(--inset-y), env(safe-area-inset-top));
  left: max(var(--inset-x), env(safe-area-inset-left));
  right: max(var(--inset-x), env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.signature {
  width: clamp(6.75rem, 9vw, 11rem);
  display: flex;
  align-items: center;
  position: relative;
  min-height: 44px;
  opacity: .96;
}
.signature img { display: block; width: 100%; height: auto; filter: invert(1); }
.signature:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.logo-reel {
  position: absolute; width: 100%; aspect-ratio: 1714/292;
  top: 50%; left: 0; transform: translateY(-50%); visibility: hidden;
}
.logo-reel > span {
  position: absolute; top: 0; height: 100%; overflow: hidden;
}
.logo-reel > span > span {
  display: block; width: 100%; height: 200%;
  background-image: url("./assets/hitlist.webp"); background-repeat: repeat-y;
  filter: invert(1);
}
.rolling .logo-reel { visibility: visible; }
.rolling img { visibility: hidden; }
.clock {
  display: flex; align-items: center; gap: .65rem;
  font-size: .8125rem; line-height: 1.2; white-space: nowrap;
}
.clock[hidden] { display: none; }
.city { color: #b2b0ac; letter-spacing: -.025em; }
.clock time {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums; letter-spacing: .015em;
}
.dial {
  position: relative; display: block; width: 15px; height: 15px;
  border: 1px solid #aaa6a0; border-radius: 50%;
}
.dial::before, .dial::after {
  content: ""; position: absolute; left: 50%; bottom: 50%; width: 1px;
  height: 32%; background: #ddd9d2; transform-origin: bottom center;
  transform: translateX(-50%) rotate(var(--minute));
}
.dial::after { height: 24%; transform: translateX(-50%) rotate(var(--hour)); }
.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.42em;
  border-radius: 100vw;
  border: 1px solid rgba(238,236,230,.47);
  color: inherit;
  text-decoration: none;
  font-size: .97rem;
  font-weight: 480;
  letter-spacing: -.035em;
  line-height: 1;
  transition: background-color .22s, color .22s, border-color .22s;
}
.contact:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
@media (hover: hover) {
  .contact:hover { background: #eeede8; color: #111; border-color: #eeede8; }
}
.sculpture {
  position: absolute;
  width: min(100vw, 198vh);
  width: min(100vw, 198dvh);
  aspect-ratio: 20 / 9;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pinch-zoom;
}
.sculpture picture, .sculpture img, .sculpture canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.sculpture picture, .sculpture canvas { pointer-events: none; }
.sculpture picture { transition: transform .28s ease-out, filter .28s ease-out; }
.sculpture canvas { visibility: hidden; }
.sculpture.rendered canvas { visibility: visible; }
.sculpture.rendered picture { visibility: hidden; }
.lower-edge {
  position: absolute; z-index: 2; display: flex;
  align-items: flex-end; justify-content: space-between;
  gap: clamp(.75rem, 2.5vw, 3rem);
  left: max(var(--inset-x), env(safe-area-inset-left));
  right: max(var(--inset-x), env(safe-area-inset-right));
  bottom: max(calc(var(--inset-y) + 5px), calc(env(safe-area-inset-bottom) + 12px));
}
.lower-edge .contact { flex: none; margin-bottom: .18rem; }
h1 {
  min-width: 0;
  margin: 0;
  font-size: clamp(2.1rem, min(5.5vw, 8.55vh), 7rem);
  font-weight: 480;
  letter-spacing: -.055em;
  line-height: .99;
}
.word {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0 .065em .11em; margin: 0 -.065em -.11em;
}
.word > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .sculpture { animation: sculpture-settle 1.35s cubic-bezier(.19,.72,.19,1) backwards; }
  .word > span {
    animation: word-arrive .73s cubic-bezier(.19,.82,.2,1) both;
    animation-delay: calc(55ms + 45ms * var(--i));
  }
}
@keyframes sculpture-settle {
  from { transform: translate(-50.5%, -48.8%) perspective(1150px) rotateY(-4deg) rotateZ(-1.35deg); }
  to { transform: translate(-50%, -50%) perspective(1150px) rotateY(0) rotateZ(0); }
}
@keyframes word-arrive {
  from { transform: translateY(133%) rotate(1.8deg); }
  to { transform: translateY(0) rotate(0); }
}
.desktop-break { display: block; }
.last-phrase { white-space: nowrap; }
@media (max-aspect-ratio: 4/5) {
  :root { --inset-x: clamp(1.25rem, 5.35vw, 3.8rem); --inset-y: clamp(1.4rem, 4vh, 3.25rem); }
  .poster { background-image: url("./assets/exposure-tall.webp"); }
  .signature { width: clamp(6.15rem, 23vw, 9.25rem); }
  .contact { font-size: .9rem; padding-inline: 1.05em; }
  .clock { gap: .4rem; }
  .sculpture { width: 100vw; aspect-ratio: 25/28; top: 44%; }
  h1 { font-size: clamp(2.15rem, min(11.85vw, 9vh), 5.6rem); max-width: 11.1em; line-height: .99; }
  .desktop-break { display: inline; }
}
@media (max-height: 460px) and (min-aspect-ratio: 4/5) {
  :root { --inset-y: .8rem; }
  .signature { width: 6rem; }
  .sculpture { top: 46%; width: min(96vw, 161dvh); }
  h1 { font-size: clamp(1.55rem, 6.65dvh, 2.2rem); }
  .desktop-break { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 360px) {
  .clock { font-size: .75rem; }
  .lower-edge { gap: .55rem; }
  h1 { font-size: clamp(1.7rem, 10.7vw, 2.4rem); }
}
@media (forced-colors: active) {
  .poster, .signature { cursor: auto; }
  .contact { cursor: pointer; }
  .signature img, .logo-reel, .sculpture { forced-color-adjust: none; }
}
