:root {
  --bg: #0E0C0A;
  --bone: #F2EBDD;
  --muted: #A89F90;
  --soft: #C9BFAF;
  --amber: #E8A33D;
  --line: #2A241E;
  --ink: #140F0A;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  /* ring geometry — set by js/hero.js */
  --S: 760px;
  --R: 310px;
  --T: 100px;
  --D: 400px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--bone); font-family: var(--body); }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: var(--bone); text-decoration: none; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* ---------- header ---------- */
.top {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 80px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.04em;
}
.nav { display: flex; gap: 40px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}
.btn-solid { background: var(--amber); color: var(--ink); }
.btn-solid:hover { color: var(--ink); filter: brightness(1.08); }
.btn-line { border: 1px solid var(--bone); }
.btn-top { height: 44px; padding: 0 22px; }

/* ---------- hero ---------- */
.hero {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 24px;
  align-items: center;
  padding: 0 48px 0 96px;
  overflow-x: hidden;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 132px;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hook { margin: 0; font-size: 24px; font-style: italic; line-height: 1.3; }
.proof { margin: 0; max-width: 440px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- ring ---------- */
.stage-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.stage { position: relative; width: var(--S); height: var(--S); }
.ring { position: absolute; inset: 0; animation: lowry-spin 140s linear infinite; }
.upright { position: relative; width: 100%; height: 100%; animation: lowry-spin 140s linear infinite reverse; }
.stage:hover .ring, .stage:hover .upright,
.stage.is-active .ring, .stage.is-active .upright { animation-play-state: paused; }
@keyframes lowry-spin { to { transform: rotate(360deg); } }

.string {
  position: absolute;
  left: calc(var(--S) / 2 - var(--R));
  top: calc(var(--S) / 2 - var(--R));
  width: calc(var(--R) * 2);
  height: calc(var(--R) * 2);
  border: 1px solid var(--amber);
  border-radius: 50%;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
.stage.is-active .string { opacity: 1; }

.tile { position: absolute; width: var(--T); height: var(--T); transition: transform 0.25s ease, opacity 0.25s ease; }
.stage.is-active .tile { opacity: 0.3; }
.stage.is-active .tile.is-active { opacity: 1; transform: scale(1.14); z-index: 4; }

.pluck {
  position: absolute;
  inset: -10px;
  border: 1px solid var(--amber);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
}
.tile.is-active .pluck { animation: lowry-pluck 0.9s ease-out infinite; }
@keyframes lowry-pluck { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }

.tile-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: calc(var(--T) * 0.1);
  border: 1px solid rgba(242, 235, 221, 0.08);
  border-radius: 4px;
  color: var(--bone);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  -webkit-tap-highlight-color: transparent;
}
.tile-photo { padding: 0; overflow: hidden; background: #241C15; border-color: #4A3B2C; }
.tile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vinyl { align-self: flex-end; width: 18px; height: 18px; border: 1px solid var(--soft); border-radius: 50%; }
.tile-text { display: flex; flex-direction: column; gap: 3px; }
.tile-artist { font-family: var(--display); font-size: 14px; line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; }
.tile-song { font-size: 10px; font-style: italic; line-height: 1.2; color: var(--soft); }

.duo { filter: grayscale(1) sepia(0.3) contrast(1.05) brightness(0.92); }

/* ---------- center circle ---------- */
.center {
  position: absolute;
  left: calc(50% - var(--D) / 2);
  top: calc(50% - var(--D) / 2);
  width: var(--D);
  height: var(--D);
  border-radius: 50%;
  overflow: hidden;
  background: #15110D;
  box-shadow: 0 0 0 1px #3A322A, 0 24px 60px rgba(0, 0, 0, 0.6);
  z-index: 6;
  /* Safari: keep overflow clipping on a rounded, composited box */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.center > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.stage.show-record .center > img { opacity: 0.16; }

.center-record {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--D) * 0.03);
  padding: 0 calc(var(--D) * 0.1);
  text-align: center;
}
.cr-kicker { font-family: var(--mono); font-size: max(9px, calc(var(--D) * 0.0275)); letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.cr-song { font-size: max(13px, calc(var(--D) * 0.065)); font-style: italic; line-height: 1.15; }
.cr-artist { font-family: var(--display); font-size: max(15px, calc(var(--D) * 0.09)); line-height: 1; text-transform: uppercase; }
.cr-part {
  padding: 5px 10px;
  border: 1px solid #6B6156;
  border-radius: 14px;
  font-family: var(--mono);
  font-size: max(9px, calc(var(--D) * 0.025));
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cr-spotify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: max(34px, calc(var(--D) * 0.11));
  margin-top: 6px;
  padding: 0 18px;
  background: var(--amber);
  color: var(--ink);
  border-radius: 999px;
  font-size: max(10px, calc(var(--D) * 0.03));
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cr-spotify:hover { color: var(--ink); filter: brightness(1.08); }

.center-photo { position: absolute; left: 0; right: 0; bottom: 14%; display: flex; justify-content: center; }
.cp-label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 18px; background: rgba(14, 12, 10, 0.82); border-radius: 4px; }
.cp-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.cp-name { font-family: var(--display); font-size: max(16px, calc(var(--D) * 0.065)); line-height: 1; text-transform: uppercase; }

.touch-hint { display: none; }

/* ---------- bottom strip ---------- */
.strip {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 64px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip a { color: var(--amber); }
.scroll { display: flex; align-items: center; gap: 10px; }
.scroll::after { content: ""; width: 40px; height: 1px; background: var(--muted); }

/* ---------- smaller desktops ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 420px 1fr; padding: 0 32px 0 48px; }
  .hero h1 { font-size: 104px; }
}

/* ---------- phones and small tablets ---------- */
@media (max-width: 900px) {
  .top { height: 64px; padding: 0 16px; }
  .nav { display: none; }
  .btn-top { height: 40px; padding: 0 16px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 8px 16px 32px; text-align: center; }
  .stage-wrap { order: -1; }
  .hero-copy { align-items: center; gap: 14px; }
  .kicker { font-size: 10px; }
  .hero h1 { font-size: 74px; line-height: 0.9; }
  .hook { font-size: 17px; }
  .proof { font-size: 13px; }
  .ctas { flex-direction: column; width: 100%; }
  .ctas .btn { width: 100%; height: 48px; font-size: 13px; }
  .tile-text { display: none; }
  .vinyl { width: 12px; height: 12px; }
  .tile-btn { justify-content: flex-start; }
  .pluck { inset: -6px; }
  .cr-spotify { padding: 0 14px; gap: 6px; }
  .touch-hint {
    display: block;
    margin: 12px 0 0;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .strip { height: 56px; padding: 0 16px; font-size: 10px; }
  .strip .hint, .strip .scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ring, .upright, .tile.is-active .pluck { animation: none; }
  .tile, .center > img, .string { transition: none; }
}
