@font-face {
  font-family: "Geist";
  src: url("../assets/burst-clone/fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/burst-clone/fonts/poppins-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/burst-clone/fonts/poppins-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/burst-clone/fonts/poppins-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --foreground: #fafafa;
  --muted: #888;
  --faint: #666;
  --border: #1e1e1e;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Poppins", "Geist", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --background: #fafafa;
  --foreground: #0a0a0a;
  --muted: #6b6b6b;
  --faint: #8f8f8f;
  --border: #e5e5e5;
  --surface: #f1f1f1;
  --surface-2: #eaeaea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

::selection {
  color: var(--background);
  background: var(--foreground);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 14px;
  color: #0a0a0a;
  background: #fafafa;
  border-radius: 8px;
  transform: translateY(-140%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.pill-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 80;
  display: flex;
  height: 44px;
  padding: 0 7px;
  align-items: center;
  color: var(--foreground);
  background: color-mix(in srgb, var(--background) 70%, transparent);
  border-radius: 999px;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  transform: translateX(-50%);
}

.theme-switcher {
  display: inline-flex;
  height: 36px;
  padding: 4px;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--foreground) 7%, transparent);
  box-shadow: inset 0 0 0 1px var(--border);
}

.theme-switcher button {
  display: inline-flex;
  width: 28px;
  height: 28px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.theme-switcher button[aria-checked="true"] {
  color: var(--foreground);
  background: var(--background);
  box-shadow: inset 0 0 0 1px var(--border), 0 1px 3px rgba(0, 0, 0, .12);
}

.theme-switcher svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-switcher .theme-half {
  fill: currentColor;
  stroke: none;
}

.burst-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  isolation: isolate;
  overflow: hidden;
  color: var(--foreground);
  background: var(--background);
}

.folio-entry {
  --entry-gap: calc(clamp(16px, 3.8svh, 36px) + env(safe-area-inset-bottom, 0px));
  position: absolute;
  inset: 0 0 auto;
  z-index: 25;
  height: min(100%, 100svh);
  display: grid;
  place-items: end center;
  padding: 0 14px var(--entry-gap);
  pointer-events: none;
}

.folio-entry-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid #d5d88080;
  border-radius: 999px;
  background: #151713;
  color: #f2eee5;
  box-shadow: 0 6px 24px #0007;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: auto;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.folio-entry-link span {
  color: #d5d880;
  font-size: 18px;
}

.folio-entry-link:is(:hover, :focus-visible) {
  background: #282b1d;
  border-color: #d5d880;
}

.folio-entry-link:focus-visible {
  outline-color: #d5d880;
  box-shadow: 0 0 0 4px #151713, 0 6px 24px #0007;
}

.burst-credit-jump {
  position: absolute;
  inset-inline-end: max(clamp(14px, 3vw, 38px), env(safe-area-inset-right, 0px));
  inset-block-end: calc(var(--entry-gap) + 2px);
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  color: #e4e1da;
  font-size: 12px;
  text-shadow: 0 0 2px #0a0a0a, 0 1px 4px #0a0a0a;
  text-underline-offset: .25em;
  pointer-events: auto;
}

.burst-credit-jump:is(:hover, :focus-visible) {
  color: #fff;
  text-decoration: underline;
}

.burst-credit-jump:focus-visible {
  box-shadow: 0 0 0 4px #141414;
  outline-offset: 0;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background: radial-gradient(ellipse 92% 82% at 50% 50%, transparent 68%, color-mix(in srgb, var(--background) 70%, black) 100%);
}

.burst-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  perspective: 1350px;
  perspective-origin: 50% 50%;
  touch-action: none;
  cursor: grab;
  outline: none;
}

.burst-stage.is-dragging {
  cursor: grabbing;
}

.burst-stage:focus-visible::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2000;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--foreground) 45%, transparent);
  border-radius: 18px;
}

.burst-world {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.burst-slot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w);
  height: var(--card-h);
  padding: 0;
  visibility: hidden;
  pointer-events: none;
  transform-style: preserve-3d;
  background: transparent;
}

.burst-slot[data-visible] {
  visibility: visible;
}

.burst-slot[data-visible][data-interactive] {
  pointer-events: auto;
}

.card-face {
  position: absolute;
  inset: 0;
  background: #151515;
  overflow: hidden;
  backface-visibility: hidden;
}

.card-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.card-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: calc(var(--card-w) * .05);
  color: white;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}

.card-caption span {
  display: block;
  font-family: var(--font-heading);
  font-size: calc(var(--card-w) * .05);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
}

.burst-slot[data-hover="true"] .card-caption,
.burst-slot:focus-visible .card-caption {
  opacity: 1;
  transform: translateY(0);
}

.burst-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: color-mix(in srgb, var(--background) 70%, transparent);
  opacity: 0;
  transition: opacity .2s;
}

.burst-slot[data-hover="true"]::after,
.burst-slot:focus-visible::after {
  opacity: .08;
}

.wordmark {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  height: 82px;
  padding: 20px 24px;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(8px);
}

@media (min-width: 640px) {
  .wordmark {
    padding-inline: 36px;
  }
}

.burst-hero.is-ready .wordmark {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 1s var(--ease) 1.7s, transform 1s var(--ease) 1.7s, filter 1s var(--ease) 1.7s;
}

.glass-pill {
  display: inline-flex;
  height: 42px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, .7),
    inset 0 -2px 4px rgba(255, 255, 255, .14),
    inset 0 0 0 1px rgba(255, 255, 255, .26),
    0 8px 24px rgba(0, 0, 0, .4);
  backdrop-filter: blur(7px) saturate(1.5) brightness(1.06);
  -webkit-backdrop-filter: blur(7px) saturate(1.5) brightness(1.06);
}

.glass-pill span {
  display: inline-block;
  color: white;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  will-change: transform, opacity;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(18px, 4vw, 64px) max(22px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  font-size: 13px;
}
.site-footer p { margin: 0; }
.footer-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.footer-credits span { white-space: nowrap; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(8, 8, 9, .96);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.lightbox.is-open .lightbox-backdrop {
  opacity: 1;
}

.lightbox-image {
  position: absolute;
  z-index: 10;
  overflow: hidden;
  border-radius: 3px;
  background: #111;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  transition:
    left .58s cubic-bezier(.22, 1, .36, 1),
    top .58s cubic-bezier(.22, 1, .36, 1),
    width .58s cubic-bezier(.22, 1, .36, 1),
    height .58s cubic-bezier(.22, 1, .36, 1),
    opacity .3s var(--ease);
  cursor: zoom-out;
}

.lightbox-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path .62s var(--ease) .14s;
}

.lightbox.is-open .lightbox-image img {
  clip-path: inset(0 0 0 0);
}

.lightbox-copy {
  position: absolute;
  z-index: 11;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  pointer-events: none;
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease) .7s, transform .6s var(--ease) .7s;
}

.lightbox.is-open .lightbox-copy {
  opacity: 1;
  transform: translateY(0);
}

.lightbox.is-open .lightbox-text {
  pointer-events: auto;
  cursor: text;
}

.copy-line {
  display: block;
  width: 64px;
  height: 1px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, .45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease) .64s;
}

.lightbox.is-open .copy-line {
  transform: scaleX(1);
}

.lightbox-copy h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 500;
  line-height: 1.05;
}

.lightbox-description {
  max-width: 34ch;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
  line-height: 1.7;
}

.lightbox-date {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  letter-spacing: .08em;
}

.lightbox-close {
  position: absolute;
  top: 32px;
  right: 36px;
  z-index: 20;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .burst-hero {
    min-height: 480px;
  }

  .burst-stage {
    perspective: 1050px;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
  }

  .lightbox-description {
    margin-top: 18px;
  }

  .lightbox-date {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
