/* ============================================
   Radial Gallery — minimal premium
   ============================================ */

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

:root {
  --rg-bg: #0a0a0a;
  --rg-text: #f5f5f5;
  --rg-muted: #9a9a9a;
  --rg-border: rgba(255, 255, 255, 0.18);
  --rg-border-hover: rgba(255, 255, 255, 0.4);
  --rg-radius-tile: 6px;
  --rg-radius-btn: 999px;
  --rg-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    sans-serif;
  background: var(--rg-bg);
  color: var(--rg-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app {
  min-height: 100vh;
  width: 100%;
}

/* --------------------------------------------
   Section — quiet gradient only
   -------------------------------------------- */

.radial-gallery {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #161616 0%, transparent 70%),
    linear-gradient(180deg, #111111 0%, #0a0a0a 55%, #070707 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
}

/* --------------------------------------------
   Orbit ring wrappers
   -------------------------------------------- */

.radial-gallery__ring {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.radial-gallery__probe {
  position: absolute;
  visibility: hidden;
  height: 0;
  pointer-events: none;
}

.radial-gallery__orbit {
  position: absolute;
  top: 50%;
  width: var(--rg-diameter, min(180vw, 1040px));
  height: var(--rg-diameter, min(180vw, 1040px));
  perspective: 1600px;
}

.radial-gallery__ring[data-rg-mode="right"] .radial-gallery__orbit {
  right: 0;
  transform: translate(50%, -50%);
}

.radial-gallery__ring[data-rg-mode="left"] .radial-gallery__orbit {
  left: 0;
  transform: translate(-50%, -50%);
}

.radial-gallery__ring[data-rg-mode="center"] .radial-gallery__orbit {
  left: 50%;
  transform: translate(-50%, -50%);
}

.radial-gallery__track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------
   Tiles
   -------------------------------------------- */

.radial-gallery__tile {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--rg-tile-w, 166px);
  height: var(--rg-tile-h, 94px);
  margin-left: calc(var(--rg-tile-w, 166px) / -2);
  margin-top: calc(var(--rg-tile-h, 94px) / -2);
  overflow: visible;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform;
}

.radial-gallery__tile-inner {
  width: 100%;
  height: 100%;
  transform: rotate(var(--rg-tilt, 0deg))
    translateY(calc(var(--rg-out, 0px) * -1))
    rotate(calc(var(--rg-tilt, 0deg) * -1));
  will-change: transform;
}

.radial-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--rg-radius-tile);
  pointer-events: none;
  background: #1a1a1a;
}

/* --------------------------------------------
   Center CTA
   -------------------------------------------- */

.radial-gallery__content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  text-align: center;
  color: var(--rg-text);
}

.radial-gallery__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--rg-text);
}

.radial-gallery__subtitle {
  margin: 0 auto 36px;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.5;
  color: var(--rg-muted);
}

.radial-gallery__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* Buttons — color / border only, no scale */
.radial-gallery__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--rg-radius-btn);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.35s var(--rg-ease),
    color 0.35s var(--rg-ease),
    border-color 0.35s var(--rg-ease);
}

.radial-gallery__button--primary {
  background-color: #f5f5f5;
  color: #0a0a0a;
  border-color: #f5f5f5;
}

.radial-gallery__button--primary:hover {
  background-color: #ffffff;
  border-color: #ffffff;
}

.radial-gallery__button--ghost {
  background-color: transparent;
  color: var(--rg-text);
  border-color: var(--rg-border);
}

.radial-gallery__button--ghost:hover {
  border-color: var(--rg-border-hover);
  background-color: rgba(255, 255, 255, 0.04);
}

/* --------------------------------------------
   Responsive
   -------------------------------------------- */

@media (max-width: 640px) {
  .radial-gallery {
    padding: 72px 20px;
  }

  .radial-gallery__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .radial-gallery__button {
    width: 100%;
  }
}
