:root {
  --black: #030303;
  --white: #f7f7f2;
  --paper: #efefeb;
  --ink: #111;
  --muted: #a5a5a0;
  --blue: #073cff;
  --acid: #dfff1e;
  --red: #ff1212;
  --green: #21ff2c;
  --yellow: #fff000;
  --orange: #ff5a13;
  --shadow: 0 24px 54px rgb(0 0 0 / 48%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100%;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  height: 100svh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  color: var(--white);
  mix-blend-mode: difference;
}

.brand,
.topbar a {
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar nav {
  display: flex;
  gap: clamp(.8rem, 2vw, 1.5rem);
}

.hero {
  position: relative;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 3.5rem 1rem 1.5rem;
  overflow: hidden;
}

.stage {
  position: relative;
  width: min(76rem, 100%);
  aspect-ratio: 3 / 2;
  max-height: calc(100svh - 5rem);
  isolation: isolate;
}

.window {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: min(var(--w), 42vw);
  min-width: 16rem;
  border-radius: 9px;
  overflow: hidden;
  background: #ddd;
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(var(--r));
  touch-action: none;
  user-select: none;
  animation: float 6s ease-in-out infinite;
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    width 220ms ease,
    height 220ms ease,
    left 220ms ease,
    top 220ms ease;
}

.window:nth-child(2n) {
  animation-delay: -1.5s;
}

.window:nth-child(3n) {
  animation-delay: -3s;
}

.window.is-front {
  z-index: 12;
}

.window:hover,
.window:focus-within {
  animation-play-state: paused;
}

.window.is-dragging {
  transition: none;
}

.window.is-closed {
  display: none;
}

.window.is-minimized {
  opacity: 0;
  pointer-events: none;
  transform: translateY(28rem) scale(.18) rotate(0deg) !important;
  animation: none;
}

.window.is-fullscreen {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  transform: none !important;
  animation: none;
}

.window.is-fullscreen .window-content {
  height: calc(100% - 1.45rem);
  min-height: 0;
}

.chrome {
  position: relative;
  height: 1.45rem;
  display: flex;
  align-items: center;
  gap: .22rem;
  padding: 0 .65rem;
  background: linear-gradient(#f3f3f1, #d6d6d2);
  border-bottom: 1px solid rgb(0 0 0 / 9%);
  cursor: grab;
  touch-action: none;
}

.chrome:active {
  cursor: grabbing;
}

.window-control {
  width: .72rem;
  height: .72rem;
  border-radius: 50%;
  display: block;
  padding: 0;
  border: 0;
  appearance: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 16%);
}

.window-control.close {
  background: var(--red);
}

.window-control.minimize {
  background: var(--yellow);
}

.window-control.fullscreen {
  background: var(--green);
}

.window-control:focus-visible,
.dock-item:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.chrome strong {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: .5rem;
  font-weight: 900;
  pointer-events: none;
}

.window-dock {
  position: absolute;
  z-index: 1000;
  left: 50%;
  bottom: .5rem;
  display: flex;
  gap: .38rem;
  min-height: 2rem;
  padding: .32rem;
  border-radius: 10px;
  background: rgb(247 247 242 / 18%);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgb(0 0 0 / 28%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(.6rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.window-dock:has(.dock-item) {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
}

.dock-item {
  width: 2rem;
  height: 1.42rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 5px;
  background: var(--dock-color, #ddd);
  cursor: pointer;
  box-shadow: 0 8px 16px rgb(0 0 0 / 26%);
}

.dock-item:hover {
  translate: 0 -.15rem;
}

.window-content {
  position: relative;
  min-height: 11.5rem;
  padding: 1rem;
  overflow: hidden;
}

.window-content > :not(.media-fill) {
  position: relative;
  z-index: 1;
}

.media-fill {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.window-content.has-custom-media {
  background: #050505 !important;
}

.window-content.has-custom-media .silhouette,
.window-content.has-custom-media .texture-balls,
.window-content.has-custom-media .mini-image {
  display: none;
}

.window-content.has-custom-media::before,
.window-content.has-custom-media::after {
  display: none;
}

.window-blue .window-content {
  min-height: 16rem;
  color: #fff;
  background:
    radial-gradient(circle at 64% 70%, rgb(0 0 0 / 70%) 0 18%, transparent 19%),
    linear-gradient(115deg, #004dff, #0d21fb 42%, #000 100%);
}

.window-blue h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 1000;
}

.window-blue nav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: .75rem;
}

.window-blue a {
  font-size: .44rem;
  font-weight: 800;
}

.silhouette {
  position: absolute;
  inset: 24% 15% 0 25%;
  background: radial-gradient(ellipse at 50% 34%, #0b0b0b 0 16%, transparent 17%),
    linear-gradient(90deg, transparent 0 28%, #080808 29% 62%, transparent 63%);
  filter: blur(1px);
}

.image-red {
  min-height: 16rem;
  background:
    radial-gradient(circle at 78% 38%, #090909 0 12%, transparent 13%),
    radial-gradient(circle at 48% 48%, #d5d3d0 0 18%, transparent 19%),
    linear-gradient(90deg, #7a1834, #cfcac9 45%, #2c1122 100%);
}

.texture-balls {
  position: absolute;
  width: 15rem;
  height: 9rem;
  top: 2.7rem;
  left: 5rem;
  background:
    radial-gradient(circle at 18% 50%, #cfcfcf 0 16%, #777 17% 18%, transparent 19%),
    radial-gradient(circle at 47% 45%, #f0f0f0 0 16%, #777 17% 18%, transparent 19%),
    radial-gradient(circle at 73% 50%, #dedede 0 16%, #777 17% 18%, transparent 19%);
  filter: contrast(1.2);
}

.error-window {
  z-index: 5;
  background: #222;
  color: #fff;
}

.error-window .window-content {
  display: grid;
  place-items: center;
  min-height: 13rem;
  background: #232323;
}

.jumbo {
  margin: 0;
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: .78;
  font-weight: 1000;
}

.editorial {
  display: grid;
  grid-template-columns: .65fr 1fr 1fr;
  gap: .9rem;
  min-height: 9.6rem;
  background: rgb(246 248 248 / 92%);
  backdrop-filter: blur(8px);
}

.editorial h2 {
  margin: 0;
  font-size: 2.3rem;
  font-weight: 1000;
}

.editorial p {
  margin: 0;
  font-size: .66rem;
  line-height: 1.25;
}

.speakers {
  min-height: 10rem;
  background:
    radial-gradient(circle at 28% 48%, #5c5c57 0 8%, #dcc87b 9% 23%, #1b1b19 24% 26%, transparent 27%),
    radial-gradient(circle at 68% 48%, #5c5c57 0 8%, #dcc87b 9% 23%, #1b1b19 24% 26%, transparent 27%),
    linear-gradient(90deg, #e6e2d7, #8d8b83);
}

.showcase {
  min-height: 13rem;
  background: #fff;
}

.showcase h2 {
  position: relative;
  z-index: 2;
  margin: 2.8rem 0 0 1.2rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .86;
  font-weight: 900;
  white-space: pre-line;
}

.mini-image {
  position: absolute;
  inset: 3.2rem 35% 2rem 42%;
  background:
    radial-gradient(circle at 52% 5%, #111 0 14%, transparent 15%),
    linear-gradient(#ddd, #f5f5f5);
}

.heat {
  min-height: 15rem;
  color: #fff;
  background:
    radial-gradient(circle at 32% 35%, #ff8841 0 9%, transparent 26%),
    radial-gradient(circle at 68% 43%, #101010 0 11%, transparent 28%),
    linear-gradient(135deg, #ff5b12, #d13b11 42%, #1a0704 100%);
}

.heat h2 {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .8rem;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: .83;
  font-weight: 1000;
  letter-spacing: 0;
  white-space: pre-line;
}

.eye {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-size: 3rem;
  color: rgb(255 255 255 / 75%);
}

.dark-window {
  background: #292929;
  color: #fff;
}

.linework {
  min-height: 15rem;
  background: #2a2a2a;
}

.linework h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 2.25rem;
  line-height: .88;
  white-space: pre-line;
}

.linework p {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: 12rem;
  margin: 0;
  color: #d7d7d0;
  font-size: .7rem;
  white-space: pre-line;
}

.linework::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  bottom: 3.1rem;
  width: 10rem;
  height: 4rem;
  border: 2px solid #d8d8d8;
  clip-path: polygon(0 20%, 80% 0, 100% 50%, 80% 100%, 0 80%);
  opacity: .75;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@media (max-width: 900px) {
  .hero {
    height: 100svh;
  }

  .stage {
    width: min(33rem, 100%);
    aspect-ratio: auto;
    height: min(42rem, calc(100svh - 5rem));
  }

  .window {
    width: min(var(--w), 72vw);
    min-width: 13rem;
  }

  .window-blue {
    --x: 1% !important;
    --y: 5% !important;
  }

  .media-window {
    --x: 38% !important;
    --y: 2% !important;
  }

  .error-window {
    --x: 9% !important;
    --y: 20% !important;
  }

  .white-window {
    --x: 30% !important;
    --y: 29% !important;
  }

  .audio-window {
    --x: 45% !important;
    --y: 43% !important;
  }

  .showcase-window {
    --x: 4% !important;
    --y: 50% !important;
  }

  .soon-window {
    --x: 18% !important;
    --y: 61% !important;
  }

  .dark-window {
    --x: 42% !important;
    --y: 67% !important;
  }

  .editorial {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .topbar {
    position: absolute;
    align-items: flex-start;
  }

  .topbar nav {
    flex-direction: column;
    align-items: flex-end;
    gap: .45rem;
  }

  .stage {
    scale: .88;
    transform-origin: top center;
    height: min(40rem, calc(100svh - 2rem));
  }

  .window {
    width: min(var(--w), 82vw);
  }

  .window-content {
    min-height: 8rem;
  }

  .hero {
    padding: 4.5rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  /* suppress minimize/restore transition separately — animation-duration doesn't cover CSS transitions */
  .window.is-minimized {
    transition: none;
  }
}
