@font-face {
  font-family: "Dripdrop";
  src: url("/assets/fonts/dripdrop.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: "Gloock";
  src: url("/assets/fonts/gloock.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: "Gabarito";
  src: url("/assets/fonts/gabarito.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: block;
}
@font-face {
  font-family: "BagelFatOne";
  src: url("/assets/fonts/bagel.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: block;
}

:root {
  --bg: #e9e9e7;
  --ink: #111;
  --ui: #111;
}

html[data-mode="metal"] {
  --bg: #000;
  --ink: #e9e9e7;
  --ui: #e9e9e7;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  transition: background-color .5s ease;
}

.sr-only {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px; height: 1px;
  position: absolute;
  overflow: hidden;
}

/* ------------------------------------------------------------------ hero */
.hero {
  isolation: isolate;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}

.hero__visual {
  transform-origin: 50% 42%;
  will-change: opacity;
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* Short fade only — the entrance itself is the letters popping in one by one,
   so the canvas gets out of the way quickly rather than cross-fading over
   the top of them. */
.hero__visual[data-ready="true"] {
  opacity: 1;
  transition: opacity .3s linear;
}

.hero__visual canvas { display: block; width: 100%; height: 100%; }

/* ------------------------------------------------------------------ ui */
.ui {
  position: fixed;
  z-index: 10;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 24px 28px;
  pointer-events: none;
}

.ui__set {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  pointer-events: auto;
}

.ui button {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .38;
  transition: opacity .25s ease, color .5s ease;
}

.ui button:hover { opacity: .72; }
.ui button[aria-pressed="true"] { opacity: 1; }

.ui button:focus-visible {
  outline: 2px solid var(--ui);
  outline-offset: 5px;
  opacity: 1;
}

@media (max-width: 640px) {
  .ui {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
  }
  .ui__set { gap: 14px; }
  .ui button { font-size: 10px; }
}

/* ------------------------------------------------------------------ showcase */
/* Pro Display XDR frame borrowed from the Murashka portfolio. The SVG's screen
   is a solid black rect, so compositing it with `lighten` lets the case art
   below show through while the silver stand still lifts off the black page. */
.showcase {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  height: clamp(190px, 62vh, 660px);
  aspect-ratio: 3082 / 2287;
  z-index: 3;
  opacity: 0;
  transform: scale(.94);
  pointer-events: none;
  transition: opacity .45s cubic-bezier(.16, 1, .3, 1),
              transform .6s cubic-bezier(.16, 1, .3, 1);
}

html[data-view="case"] .showcase {
  opacity: 1;
  transform: scale(1);
}

.showcase__screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 77.394%; /* 1770 / 2287 — the black panel in the frame */
  border-radius: 0.65%; /* rx 20 on a 3082 viewBox */
  overflow: hidden;
  background: #000;
}

.showcase__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}

.showcase__slide.is-active { opacity: 1; }

.showcase__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: lighten;
  user-select: none;
}

@media (max-width: 640px) {
  .showcase { height: auto; width: 92vw; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual[data-ready="true"] { transition: none; }
  body { transition: none; }
  .showcase { transition: none; }
  .showcase__slide { transition: none; }
}
