/* quirk.bar — Y2K Futurism, Hexagonal Honeycomb, Duotone */

:root {
  --c-lilac: #B388EB;
  --c-teal: #3DD6D0;
  --c-white: #F8F0FF;
  --c-pink: #FF69B4;
  --c-silver: #C8C8D0;
  --c-deep: #2D1B4E;
  --c-frost: rgba(255,255,255,0.3);
  --hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

html, body {
  background: var(--c-white);
  color: var(--c-deep);
  font-family: "Lexend", sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Signika Negative", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Parallax Layers ---------- */
.parallax-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.layer-bg {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(179,136,235,0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(61,214,208,0.18), transparent 45%),
    repeating-linear-gradient(60deg, rgba(179,136,235,0.05) 0 4px, transparent 4px 30px);
}
.layer-mid {
  background-image:
    repeating-linear-gradient(120deg,
      rgba(255,105,180,0.04) 0 2px,
      transparent 2px 60px),
    repeating-linear-gradient(-30deg,
      rgba(61,214,208,0.06) 0 1px,
      transparent 1px 80px);
}

/* ---------- Hex Gateway ---------- */
.hex-gateway {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.duotone-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--c-lilac) 0%, var(--c-teal) 100%);
  z-index: -2;
}
.duotone-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(248,240,255,0.35), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(255,105,180,0.25), transparent 55%);
  mix-blend-mode: screen;
}

/* hex ring */
.hex-ring {
  position: absolute;
  width: min(80vmin, 720px);
  height: min(80vmin, 720px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringSpin 30s linear infinite;
  opacity: 0;
  transition: opacity 1.2s ease-out;
  z-index: -1;
}
.hex-ring.is-visible { opacity: 1; }

@keyframes ringSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hex-cell {
  position: absolute;
  width: 22%;
  aspect-ratio: 1 / 1.155;
  top: 50%;
  left: 50%;
  margin-left: -11%;
  margin-top: -11%;
  clip-path: var(--hex-clip);
  background: var(--c-frost);
  backdrop-filter: blur(6px);
}
.hex-cell-1 { transform: rotate(0deg)   translateY(-200%) rotate(0deg); }
.hex-cell-2 { transform: rotate(60deg)  translateY(-200%) rotate(-60deg); }
.hex-cell-3 { transform: rotate(120deg) translateY(-200%) rotate(-120deg); }
.hex-cell-4 { transform: rotate(180deg) translateY(-200%) rotate(-180deg); }
.hex-cell-5 { transform: rotate(240deg) translateY(-200%) rotate(-240deg); }
.hex-cell-6 { transform: rotate(300deg) translateY(-200%) rotate(-300deg); }

.hex-photo {
  position: absolute;
  inset: 0;
  filter: grayscale(1) contrast(1.1);
  background-blend-mode: multiply;
}
.hex-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(179,136,235,0.7), rgba(61,214,208,0.7));
  mix-blend-mode: multiply;
}
.photo-1 { background: repeating-linear-gradient(45deg,  #888 0 8px, #ccc 8px 16px); }
.photo-2 { background: radial-gradient(circle at 30% 30%, #ddd, #555 80%); }
.photo-3 { background: repeating-linear-gradient(0deg,   #999 0 6px, #ddd 6px 12px); }
.photo-4 { background: linear-gradient(135deg, #aaa, #444); }
.photo-5 { background: repeating-linear-gradient(90deg,  #777 0 10px, #bbb 10px 20px); }
.photo-6 { background: radial-gradient(ellipse at 70% 50%, #ccc, #333 75%); }

/* wordmark */
.wordmark {
  position: relative;
  z-index: 2;
  font-size: clamp(56px, 12vw, 160px);
  line-height: 0.9;
  text-align: center;
  color: var(--c-white);
  text-shadow: 0 4px 0 rgba(45,27,78,0.25), 0 8px 32px rgba(45,27,78,0.4);
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease-out;
}
.wordmark.is-in {
  transform: scale(1);
  opacity: 1;
}
.wordmark-q {
  display: inline-block;
  font-family: "Comfortaa", sans-serif;
  color: var(--c-pink);
  text-shadow: 0 4px 0 var(--c-deep);
}
.wordmark-rest {
  font-family: "Signika Negative", sans-serif;
}
.wordmark-dot {
  display: inline-block;
  color: var(--c-teal);
  transform: translateY(0.05em);
  font-family: "Comfortaa", sans-serif;
}
.wordmark-tld {
  font-family: "Comfortaa", sans-serif;
  font-size: 0.7em;
  color: var(--c-white);
  background: var(--c-deep);
  padding: 0 0.18em;
  border-radius: 0.18em;
  margin-left: 0.06em;
  display: inline-block;
}

.tagline {
  position: relative;
  z-index: 2;
  margin-top: 1.4em;
  color: var(--c-white);
  font-family: "Comfortaa", sans-serif;
  letter-spacing: 0.06em;
  font-size: clamp(13px, 1.4vw, 16px);
  text-shadow: 0 2px 12px rgba(45,27,78,0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease 1.1s, transform 0.8s ease 1.1s;
}
.tagline.is-in { opacity: 1; transform: translateY(0); }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Comfortaa", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-white);
  z-index: 2;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue span { display: inline-block; transform: translateY(2px); }
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Honeycomb Grid ---------- */
.honeycomb-section {
  position: relative;
  z-index: 1;
  padding: 120px 6vw 80px;
}
.section-head {
  text-align: center;
  margin-bottom: 70px;
}
.section-title {
  font-size: clamp(28px, 4vw, 52px);
  color: var(--c-deep);
  margin-bottom: 8px;
}
.section-sub {
  font-family: "Comfortaa", sans-serif;
  letter-spacing: 0.05em;
  color: var(--c-lilac);
  font-size: 14px;
}

.honeycomb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 12px;
  justify-content: center;
  max-width: 1320px;
  margin: 0 auto;
}
.hex-card {
  position: relative;
  width: 220px;
  height: 254px;
  clip-path: var(--hex-clip);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.hex-card.large {
  width: 320px;
  height: 369px;
}
.hex-card:nth-child(even) {
  margin-top: 60px;
}
.hex-card.large:nth-child(even) {
  margin-top: 90px;
}
.hex-card:hover {
  transform: translateY(-6px) scale(1.03);
}
.hex-card-photo {
  position: absolute;
  inset: 0;
  filter: grayscale(1) contrast(1.05);
  background-blend-mode: multiply;
}
.hex-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(179,136,235,0.7), rgba(61,214,208,0.7));
  mix-blend-mode: multiply;
}
.hex-card:hover .hex-card-photo::after {
  background: linear-gradient(135deg, rgba(255,105,180,0.7), rgba(61,214,208,0.7));
}
.bg-1 { background: linear-gradient(135deg, #888, #ddd); }
.bg-2 { background: radial-gradient(circle at 25% 30%, #eee, #444); }
.bg-3 { background: repeating-linear-gradient(45deg, #777 0 10px, #ccc 10px 20px); }
.bg-4 { background: linear-gradient(45deg, #555, #bbb); }
.bg-5 { background: radial-gradient(ellipse at 60% 40%, #ddd, #333); }
.bg-6 { background: repeating-linear-gradient(90deg, #999 0 8px, #ddd 8px 16px); }

.hex-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20% 14%;
  color: var(--c-white);
  z-index: 2;
}
.hex-card.large .hex-card-content { padding: 22% 14%; }

.hex-tag {
  font-family: "Comfortaa", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  background: var(--c-frost);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.4);
}
.hex-card-content h3 {
  font-size: 18px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(45,27,78,0.5);
}
.hex-card.large .hex-card-content h3 {
  font-size: 24px;
}
.hex-card-content p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(45,27,78,0.5);
  max-width: 80%;
}

/* ---------- Depth Section ---------- */
.depth-section {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--c-deep);
  isolation: isolate;
}
.depth-stripe {
  position: absolute;
  left: -10%;
  width: 120%;
  will-change: transform;
}
.stripe-1 {
  top: 10%;
  height: 38%;
  background: linear-gradient(135deg, var(--c-lilac), var(--c-teal));
  filter: blur(2px);
  opacity: 0.55;
  transform: skewY(-4deg);
}
.stripe-2 {
  top: 35%;
  height: 30%;
  background:
    linear-gradient(135deg, rgba(255,105,180,0.8), rgba(179,136,235,0.8));
  transform: skewY(3deg);
  mix-blend-mode: screen;
}
.stripe-3 {
  bottom: 8%;
  height: 26%;
  background: linear-gradient(135deg, var(--c-teal), var(--c-pink));
  opacity: 0.7;
  transform: skewY(-2deg);
}
.depth-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 6vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--c-white);
}
.depth-title {
  font-size: clamp(28px, 4vw, 52px);
  margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.depth-text {
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 540px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* ---------- Jukebox Footer ---------- */
.jukebox-footer {
  position: relative;
  background: var(--c-deep);
  border-radius: 24px 24px 0 0;
  padding: 40px 6vw 32px;
  margin-top: 60px;
  color: var(--c-white);
  overflow: hidden;
}
.jukebox-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(179,136,235,0.5), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(61,214,208,0.5), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(255,105,180,0.3), transparent 60%);
  pointer-events: none;
}
.jukebox-screen {
  position: relative;
  margin: 0 auto 28px;
  max-width: 880px;
  height: 56px;
  background: rgba(0,0,0,0.4);
  border: 2px solid var(--c-silver);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.6),
    inset 0 -1px 2px rgba(179,136,235,0.3);
  display: flex;
  align-items: center;
}
.jukebox-marquee {
  display: inline-block;
  white-space: nowrap;
  font-family: "Comfortaa", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--c-teal);
  padding-left: 100%;
  animation: marquee 22s linear infinite;
  text-shadow: 0 0 8px rgba(61,214,208,0.6);
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}

.jukebox-buttons {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 24px;
}
.juke-btn {
  background: var(--c-frost);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 12px 24px;
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--c-white);
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
}
.juke-btn:hover {
  background: rgba(255,105,180,0.3);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.5),
    0 6px 18px rgba(255,105,180,0.4);
}
.juke-btn-play {
  background: var(--c-pink);
  border-color: rgba(255,255,255,0.6);
}
.juke-btn-play:hover {
  background: var(--c-lilac);
}
.juke-btn.is-active {
  background: var(--c-teal);
  color: var(--c-deep);
}

.jukebox-meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: "Comfortaa", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-silver);
}
.juke-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-pink);
  box-shadow: 0 0 8px var(--c-pink);
}

/* ---------- Reveal animations ---------- */
.hex-card {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hex-card.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.hex-card.is-in:hover {
  transform: translateY(-6px) scale(1.03);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hex-card { width: 160px; height: 185px; }
  .hex-card.large { width: 200px; height: 231px; }
  .hex-card-content h3 { font-size: 14px; }
  .hex-card.large .hex-card-content h3 { font-size: 16px; }
  .hex-card-content p { font-size: 10px; }
  .honeycomb-section { padding: 80px 4vw 60px; }
  .jukebox-buttons { gap: 8px; }
  .juke-btn { padding: 10px 16px; font-size: 12px; }
  .hex-ring { width: 90vmin; height: 90vmin; }
}
