/* ============================================================
   Prime Tower Designs
   Palette is sampled from the studio mark:
   violet band, indigo band, near-black band, cream glow dots.
   ============================================================ */

:root {
  --ink: #141318;
  --panel: #1d1b27;
  --panel-edge: rgba(246, 242, 208, 0.10);
  --band-violet: #4a3185;
  --band-indigo: #2c2a5e;
  --glow: #f6f2d0;
  --glow-strong: #fffbe0;
  --text: #e9e7de;
  --muted: #aaa7b9;
  --display: "Syne", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --maxw: 1020px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--glow); }

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--glow);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(20, 19, 24, 0.85);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-edge);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.brand img { border-radius: 50%; }

.site-header nav {
  display: flex;
  gap: clamp(0.8rem, 2.5vw, 1.6rem);
  flex-wrap: wrap;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--glow); }

/* ---------- hero ---------- */

.hero {
  /* Three hard color bands, echoing the studio mark */
  background: linear-gradient(
    to bottom,
    var(--band-violet) 0%,
    var(--band-violet) 52%,
    var(--band-indigo) 52%,
    var(--band-indigo) 68%,
    var(--ink) 68%,
    var(--ink) 100%
  );
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6.5rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.hero .eyebrow { color: rgba(246, 242, 208, 0.75); }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  letter-spacing: -0.01em;
  color: var(--glow-strong);
}

.reveal-wrap {
  position: relative;
  width: min(640px, 92vw);
  height: clamp(110px, 22vw, 180px);
  margin: 0.5rem auto 1.5rem;
}
.reveal-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.reveal-fallback {
  display: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 6.5rem);
  color: var(--glow);
  text-shadow: 0 0 28px rgba(246, 242, 208, 0.45);
}
.no-canvas .reveal-fallback { display: inline-block; }
.no-canvas canvas { display: none; }

.hero .lede {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--text);
  font-size: 1.1rem;
}

/* ---------- buttons ---------- */

.cta-row {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-glow {
  background: var(--glow);
  color: #211c33;
  box-shadow: 0 0 22px rgba(246, 242, 208, 0.35);
}
.btn-glow:hover { box-shadow: 0 0 34px rgba(246, 242, 208, 0.55); }

.btn-line {
  color: var(--glow);
  border: 1px solid rgba(246, 242, 208, 0.45);
}
.btn-line:hover { background: rgba(246, 242, 208, 0.08); }

/* ---------- sections ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 2rem);
  scroll-margin-top: 5.5rem;
}

.section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  margin-bottom: 1.6rem;
  color: var(--glow-strong);
}

/* feature (Cryptatrope) */

.feature { border-top: 1px solid var(--panel-edge); }

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.feature-copy p { margin-bottom: 1rem; }

.feature-copy .soon {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--band-violet);
  padding-left: 0.9rem;
  margin: 1.3rem 0 1.6rem;
}

.feature-copy .cta-row { justify-content: flex-start; }

/* spinning dot ring standing in for product photography, for now */

.feature-art {
  display: grid;
  place-items: center;
  min-height: 260px;
}

.orbit {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(246, 242, 208, 0.18);
  animation: spin 14s linear infinite;
}

.orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 14px rgba(246, 242, 208, 0.7);
}
.orbit-dot.d1 { transform: rotate(0deg)   translate(110px) scale(1.0); }
.orbit-dot.d2 { transform: rotate(45deg)  translate(110px) scale(0.85); }
.orbit-dot.d3 { transform: rotate(90deg)  translate(110px) scale(0.7); }
.orbit-dot.d4 { transform: rotate(135deg) translate(110px) scale(0.55); }
.orbit-dot.d5 { transform: rotate(180deg) translate(110px) scale(0.45); }
.orbit-dot.d6 { transform: rotate(225deg) translate(110px) scale(0.55); }
.orbit-dot.d7 { transform: rotate(270deg) translate(110px) scale(0.7); }
.orbit-dot.d8 { transform: rotate(315deg) translate(110px) scale(0.85); }

@keyframes spin { to { transform: rotate(360deg); } }

/* cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.shop-grid { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: 1.4rem 1.3rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 242, 208, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.card-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--band-violet);
  background: rgba(246, 242, 208, 0.9);
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--glow-strong);
}

.card p { color: var(--muted); font-size: 0.95rem; }

.price {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--glow);
  margin-top: auto;
  padding-top: 0.5rem;
}

.shop-note {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

/* media list */

.media-list { list-style: none; }

.media-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.4rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--panel-edge);
}
.media-list li:first-child { border-top: 1px solid var(--panel-edge); }

.media-date {
  grid-row: 1 / 3;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.2rem;
}

.media-list a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--glow-strong);
  text-decoration: none;
}
.media-list a:hover { text-decoration: underline; }

.media-list p { color: var(--muted); font-size: 0.95rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--panel-edge);
  background: linear-gradient(to bottom, var(--ink), #100f17);
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
}

.footer-inner { max-width: var(--maxw); margin: 0 auto; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.3rem;
  margin-bottom: 1.4rem;
}
.footer-social a {
  color: var(--muted);
  transition: color 0.2s, transform 0.15s;
}
.footer-social a:hover { color: var(--glow); transform: translateY(-2px); }

.footer-line { color: var(--muted); font-size: 0.92rem; }
.footer-copy {
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(170, 167, 185, 0.7);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-art { min-height: 220px; order: -1; }
  .card-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .media-list li { grid-template-columns: 1fr; }
  .media-date { grid-row: auto; margin-bottom: 0.15rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit { animation: none; }
  .btn:hover, .card:hover, .footer-social a:hover { transform: none; }
}
