/* ============================================================
   MUCH × LOVES — Premium Creative
   Dark editorial · Yellow accent · Permanent Marker + DM Sans
   ============================================================ */

:root {
  --yellow:       #F5FF28;
  --yellow-hi:    #fbffaa;
  --yellow-dim:   #b8c100;
  --black:        #080807;
  --surface:      #101010;
  --surface-2:    #181817;
  --border:       #282826;
  --white:        #f0f0e8;
  --muted:        #7a7a72;
  --faint:        #3a3a36;

  --graffiti: 'Permanent Marker', 'Boogaloo', cursive;
  --serif:    'Playfair Display', Georgia, serif;
  --sans:     'DM Sans', 'Helvetica Neue', sans-serif;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Logo size — scales with viewport */
  --logo: clamp(280px, 52vmin, 520px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--sans);
  background: #0a0015;
  color: var(--white);
  min-height: 100dvh;
  overflow: hidden;
}
@media (max-width: 600px) { body { overflow-y: auto; } }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 3px; }

/* ── CANVAS BG ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* ── GRAIN TEXTURE ── */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  animation: grain-shift 8s steps(10) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-2%, -3%); }
  20%  { transform: translate(3%, 1%); }
  30%  { transform: translate(-1%, 4%); }
  40%  { transform: translate(2%, -2%); }
  50%  { transform: translate(-3%, 2%); }
  60%  { transform: translate(1%, -4%); }
  70%  { transform: translate(-2%, 3%); }
  80%  { transform: translate(3%, -1%); }
  90%  { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ── AMBIENT GLOW ── */
.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 52%, rgba(255,182,18,0.09) 0%, transparent 70%);
}

/* ── SITE HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Edit 4: tighten top padding so header is closer to logo */
  padding: clamp(0.6rem, 1.5vw, 1rem) 1.5rem 0;
  pointer-events: none;
}

/* ── GRAFFITI WORDMARK (Edit 3) ── */
.wordmark {
  font-family: var(--graffiti);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400; /* Permanent Marker has built-in bold weight */
  letter-spacing: 0.02em;
  line-height: 1;
  /* Yellow spray-paint with shadow for depth */
  color: var(--yellow);
  text-shadow:
    3px 3px 0px rgba(0,0,0,0.9),
    -1px -1px 0px rgba(0,0,0,0.6),
    0 0 30px rgba(255,182,18,0.5),
    0 0 60px rgba(255,182,18,0.2);
  /* Slight tilt like a real tag */
  transform: rotate(-1.5deg);
  display: inline-block;
}

.tagline {
  margin-top: 0.3rem;
  font-size: clamp(0.55rem, 1.1vw, 0.7rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SLOGAN ── */
.slogan {
  font-family: var(--serif);
  font-size: clamp(0.65rem, 1.3vw, 0.88rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 182, 18, 0.6);
  letter-spacing: 0.05em;
  text-align: center;
  margin-top: 0.25rem;
  pointer-events: none;
}

/* ── STAGE ── */
.stage {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Edit 4: reduced gap so logo is closer to header */
  gap: 0.75rem;
  /* Push content down enough to clear the header */
  padding-top: clamp(5rem, 12vw, 8rem);
}

/* ── HEART STAGE ── */
.heart-stage {
  position: relative;
  width: var(--logo);
  height: var(--logo);
  flex-shrink: 0;
}

/* ── LOGO CANVAS (Edit 1: replaces img, white bg removed in JS) ── */
.logo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  animation: float 5s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 32px rgba(255,182,18,0.3)) drop-shadow(0 4px 60px rgba(0,0,0,0.7));
  transition: filter 0.4s ease;
}
.heart-stage:hover .logo-canvas {
  filter: drop-shadow(0 0 52px rgba(255,182,18,0.5)) drop-shadow(0 4px 80px rgba(0,0,0,0.9));
  animation-play-state: paused;
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-8px) rotate(0.3deg); }
  66%       { transform: translateY(-4px) rotate(-0.2deg); }
}

/* ── QUADRANT LABELS (Edit 2) ──
   Absolutely positioned HTML labels in each quadrant of the heart.
   Each is placed to follow the heart perimeter in its quadrant.
   Using letter-spacing + transform to arc along the heart edge naturally.
*/
.qlabel {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ql-text {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.18em;
  /* Dark fill with yellow outline — readable over heart */
  color: #1a1000;
  -webkit-text-stroke: 1.5px rgba(255, 200, 30, 0.9);
  text-stroke: 1.5px rgba(255, 200, 30, 0.9);
  text-shadow:
    0 0 8px rgba(255,182,18,0.6),
    0 1px 0 rgba(255,200,50,0.4);
  transition: color 0.25s ease, text-shadow 0.25s ease, -webkit-text-stroke 0.25s ease;
  white-space: nowrap;
}

/* Hover highlight (triggered via JS class) */
.qlabel.hovered .ql-text {
  color: #fff700;
  -webkit-text-stroke: 1.5px #ff9900;
  text-shadow:
    0 0 16px rgba(255,220,0,0.9),
    0 0 32px rgba(255,150,0,0.6);
}

/*
  TOP-LEFT: MUSIC
  Positioned along upper-left lobe — arc upward from inner to outer.
  Rotated to follow the lobe curve (approx -30deg going top-left).
*/
.qlabel--music {
  top: 10%;
  left: 5%;
  width: 44%;
  height: 22%;
  align-items: flex-start;
  justify-content: center;
}
.qlabel--music .ql-text {
  font-size: clamp(0.85rem, 2.2vmin, 1.4rem);
  transform: rotate(-20deg) translateY(20%);
  transform-origin: center center;
}

/*
  TOP-RIGHT: FITNESS
  Upper-right lobe — mirror of music, tilted the other way.
*/
.qlabel--fitness {
  top: 10%;
  right: 5%;
  width: 44%;
  height: 22%;
  align-items: flex-start;
  justify-content: center;
}
.qlabel--fitness .ql-text {
  font-size: clamp(0.85rem, 2.2vmin, 1.4rem);
  transform: rotate(20deg) translateY(20%);
  transform-origin: center center;
}

/*
  BOTTOM-LEFT: ART & WRITING
  Lower-left — angled down-left following the bottom curve.
*/
.qlabel--art {
  bottom: 10%;
  left: 4%;
  width: 46%;
  height: 22%;
  align-items: flex-end;
  justify-content: center;
}
.qlabel--art .ql-text {
  font-size: clamp(0.65rem, 1.7vmin, 1.05rem);
  letter-spacing: 0.1em;
  transform: rotate(22deg) translateY(-15%);
  transform-origin: center center;
}

/*
  BOTTOM-RIGHT: EDUCATION
  Lower-right — angled down-right.
*/
.qlabel--education {
  bottom: 10%;
  right: 4%;
  width: 46%;
  height: 22%;
  align-items: flex-end;
  justify-content: center;
}
.qlabel--education .ql-text {
  font-size: clamp(0.65rem, 1.7vmin, 1.05rem);
  transform: rotate(-22deg) translateY(-15%);
  transform-origin: center center;
}

/* ── ZONE BUTTONS ── */
.zone {
  position: absolute;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Quadrant zones */
.zone--tl { top: 5%;   left: 3%;  width: 44%; height: 46%; }
.zone--tr { top: 5%;   right: 3%; width: 44%; height: 46%; }
.zone--bl { bottom: 8%; left: 3%;  width: 44%; height: 42%; }
.zone--br { bottom: 8%; right: 3%; width: 44%; height: 42%; }

/* Center zone — over the ML letters */
.zone--center {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  height: 30%;
  border-radius: 50%;
  z-index: 25;
  flex-direction: column;
  gap: 0.2rem;
}

/* Center ring */
.center-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1.5px solid rgba(255,182,18,0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}
.zone--center:hover .center-ring {
  border-color: rgba(255,182,18,0.6);
  box-shadow: 0 0 16px rgba(255,182,18,0.4) inset, 0 0 24px rgba(255,182,18,0.3);
}

/* "DM ME" center text — hidden until hover */
.center-text {
  font-family: var(--graffiti);
  font-size: clamp(0.7rem, 2vmin, 1.1rem);
  font-weight: 400;
  color: transparent;
  text-shadow: none;
  letter-spacing: 0.06em;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.zone--center:hover .center-text {
  color: #fff700;
  text-shadow:
    0 0 10px rgba(255,220,0,0.9),
    0 0 20px rgba(255,150,0,0.7),
    2px 2px 0 rgba(0,0,0,0.8);
}

/* ── INSTRUCTION HINT ── */
.hint {
  font-size: clamp(0.58rem, 1.1vw, 0.7rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
  user-select: none;
  transition: opacity 0.5s ease;
}

/* ════════════════════════════════
   SECTION PANELS
════════════════════════════════ */
.panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.panel-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,8,7,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.panel-overlay.open::before { opacity: 1; }

.panel {
  position: relative;
  width: min(480px, 92vw);
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: -20px 0 80px rgba(0,0,0,0.7);
}
.panel-overlay.open .panel { transform: translateX(0); }

.panel-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
}
.panel-close:hover { background: var(--yellow); color: var(--black); }

.panel-header {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem) 1.5rem;
  border-bottom: 1px solid var(--border);
}
.panel-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}
.panel-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  font-style: italic;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
}

.panel-body {
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

/* ── LINK GROUPS ── */
.link-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.link-group-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.plink {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.plink:hover {
  background: var(--surface-2);
  border-color: var(--border);
  transform: translateX(4px);
}

.plink-icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1; }
.stream-svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }

.plink-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.plink-text strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.plink-text em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

.plink--stream .plink-text strong { font-size: 0.9rem; }
.plink--stream:hover .stream-svg { color: var(--yellow); }

.plink-arrow {
  font-size: 0.85rem;
  color: var(--faint);
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.plink:hover .plink-arrow { color: var(--yellow); transform: translateX(3px); }

.coming-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  padding: 0.5rem 0;
}

.notify-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--yellow);
  color: var(--black);
  border-radius: 99px;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.notify-btn:hover {
  background: var(--yellow-hi);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,182,18,0.3);
}

/* ════════════════════════════════
   CONTACT MODAL
════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8,8,7,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  width: 100%;
  max-width: 500px;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: 0 32px 100px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,182,18,0.08);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.32s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal--sm {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
  align-items: center;
}
.modal--sm .form-submit { width: 100%; margin-top: 0.25rem; }

.modal-close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close-btn:hover { background: var(--yellow); color: var(--black); }

.modal-logo-wrap { display: flex; justify-content: center; margin-bottom: 0.5rem; }
.modal-logo-canvas {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 20px rgba(255,182,18,0.25);
}

.modal-heading {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 900;
  font-style: italic;
  color: var(--yellow);
  letter-spacing: -0.01em;
  margin-bottom: 0.1rem;
}
.modal-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.modal-detail {
  font-size: 0.88rem;
  color: rgba(240,240,232,0.65);
  line-height: 1.65;
}

/* ── FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 440px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.28rem; }
.form-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,182,18,0.12);
}
.form-input::placeholder { color: var(--faint); }
select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a72' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}
select.form-input option, select.form-input optgroup { background: #181817; color: #f0f0e8; }
.form-textarea { resize: vertical; min-height: 105px; line-height: 1.6; }

.form-submit {
  width: 100%;
  padding: 0.82rem 1.5rem;
  background: var(--yellow);
  color: var(--black);
  border-radius: 99px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.form-submit:hover {
  background: var(--yellow-hi);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,182,18,0.28);
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status {
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
  min-height: 1em;
  color: #6daa45;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }

/* ── MOBILE ── */
@media (max-width: 600px) {
  :root { --logo: 86vw; }
  .panel { width: 100vw; height: 100dvh; border-left: none; }
  .hint { padding: 0 1rem; }
  .ql-text { font-size: clamp(0.6rem, 3.5vw, 0.85rem) !important; }
}
