/* ============================================================
   GOWER SUN — Composer · Producer · Violinist
   Design system: near-black "ink" + electric cyan signal.
   Signature: a living bowed-string waveform threading the page.
   ============================================================ */

:root {
  /* Cinematic galaxy — deep space indigo with nebula pink/blue */
  --ink:      #08061A;   /* deep space */
  --ink-2:    #0C0A24;
  --panel:    #141034;   /* indigo panel */
  --panel-2:  #1C1547;
  --cyan:     #CC54D0;   /* nebula orchid — primary (var name kept for legacy refs) */
  --cyan-dim: #8E3AA0;
  --electric: #6AAFF2;   /* sky/periwinkle blue — secondary */
  --amber:    #EBA4D2;   /* soft nebula pink highlight */
  --indigo:   #4A42AE;   /* deep indigo */
  --indigo-lt:#6E66DE;   /* lighter indigo — same hue, brighter */
  --bone:     #EEE9F7;   /* soft lavender-white */
  --slate:    #9A93BE;
  --slate-2:  #6B6493;
  --line:     rgba(255,255,255,0.08);
  --line-2:   rgba(255,255,255,0.15);

  --shadow-glow: 0 0 0 1px rgba(204,84,208,0.25), 0 18px 60px -20px rgba(204,84,208,0.35);

  --font-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --font-serif:   "Fraunces", Georgia, serif;
  --font-body:    "Space Grotesk", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 72px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--ink);
  /* deep-space nebula clouds (fixed) + a dense multi-layer starfield */
  background-image:
    radial-gradient(120% 85% at 82% -10%, rgba(74,66,174,0.42), transparent 55%),
    radial-gradient(95% 75% at -5% 20%, rgba(204,84,208,0.22), transparent 55%),
    radial-gradient(90% 80% at 55% 118%, rgba(106,175,242,0.20), transparent 55%),
    radial-gradient(70% 60% at 28% 62%, rgba(138,110,220,0.16), transparent 60%),
    radial-gradient(60% 55% at 95% 72%, rgba(204,84,208,0.12), transparent 62%),
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.85), transparent),
    radial-gradient(1.5px 1.5px at 150px 90px, rgba(235,164,210,0.7), transparent),
    radial-gradient(1px 1px at 210px 180px, rgba(106,175,242,0.65), transparent),
    radial-gradient(1px 1px at 90px 220px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 130px 60px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 60px 150px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 250px 250px, rgba(235,164,210,0.55), transparent),
    radial-gradient(1.5px 1.5px at 300px 40px, rgba(160,190,255,0.7), transparent);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat;
  background-size: auto, auto, auto, auto, auto, 260px 260px, 340px 340px, 220px 220px, 300px 300px, 180px 180px, 420px 420px, 280px 280px, 500px 500px;
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* a second, brighter starfield that gently twinkles (opacity = GPU-composited) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 40px 60px, rgba(255,255,255,0.95), transparent),
    radial-gradient(2px 2px at 200px 120px, rgba(190,210,255,0.85), transparent),
    radial-gradient(1.5px 1.5px at 320px 300px, rgba(255,235,250,0.8), transparent),
    radial-gradient(1px 1px at 120px 260px, rgba(255,255,255,0.8), transparent);
  background-size: 400px 400px, 520px 520px, 360px 360px, 300px 300px;
  background-repeat: repeat;
  animation: twinkle 5.5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .4; } to { opacity: .95; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--cyan); color: var(--ink); }

/* ---- Utility ---- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow--slate { color: var(--slate); }

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--cyan); color: var(--ink); padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* focus visibility */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), padding .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8,6,26,0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -0.02em; font-size: 1.28rem;
}
/* violin favicon (self-contained SVG, already tinted #6AAFF2) */
.nav__mark {
  width: 30px; height: 30px; flex: 0 0 auto;
  object-fit: contain;
}
.nav__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.nav__link {
  position: relative;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate); font-weight: 500;
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--cyan); transition: width .3s var(--ease-out);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--bone); }
.nav__link:hover::after, .nav__link:focus-visible::after { width: 100%; }
.nav__link--cta {
  color: var(--bone);
  border: 1px solid var(--line-2);
  padding: 9px 18px; border-radius: 999px;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
  color: var(--cyan);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(48px, 9vh, 120px);
  overflow: hidden;
  isolation: isolate;
}

/* studio backdrop */
.hero__bg {
  position: absolute; inset: 0; z-index: -3;
  will-change: transform;
}
.hero__bg img {
  /* over-the-shoulder studio shot — subject sits on the right, studio fills
     the left/centre behind the text (darkened by the vignette) */
  width: 100%; max-width: none; height: 100%; object-fit: cover;
  object-position: center 50%;
  filter: saturate(0.92) contrast(1.06) brightness(0.66);
}

/* darkening scrims so text always reads (accessibility) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    /* left shade for the text — near-opaque on the far left so nothing shows
       through behind the words, fading out before the face on the right */
    linear-gradient(90deg, rgba(8,6,26,0.99) 0%, rgba(8,6,26,0.95) 30%, rgba(8,6,26,0.55) 48%, transparent 66%),
    /* gentle bottom grounding */
    linear-gradient(180deg, transparent 42%, rgba(8,6,26,0.32) 78%, rgba(8,6,26,0.9) 100%),
    /* soft vignette darkening the edges/corners, brightest over the face */
    radial-gradient(120% 125% at 68% 38%, transparent 40%, rgba(8,6,26,0.62) 100%);
}
.hero::after { /* warm neon atmosphere: magenta + violet + a lick of amber */
  content: ""; position: absolute; z-index: -2; inset: auto -10% -34% -10%; height: 70%;
  background:
    radial-gradient(55% 100% at 22% 100%, rgba(204,84,208,0.26), transparent 68%),
    radial-gradient(50% 90% at 78% 100%, rgba(106,175,242,0.22), transparent 70%),
    radial-gradient(40% 70% at 50% 100%, rgba(235,164,210,0.12), transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative; width: 100%;
  /* shift the text block ~10% of the page width to the left, but never past the
     left gutter on smaller screens (clamps to the available space) */
  transform: translateX(calc(-1 * min(10vw, max(0px, (100vw - var(--wrap)) / 2))));
}

.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(18px, 3vw, 28px);
}
.hero__eyebrow .serif-accent { color: var(--bone); font-size: 1.05rem; }
.hero__eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
/* one consistent typeface for the whole role line, a few points larger */
.hero__roles {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--bone); font-size: 1.35rem; line-height: 1.2; letter-spacing: 0.005em;
}
.hero__roles .dotsep {
  color: var(--cyan); font-style: normal; margin: 0 0.45em;
  vertical-align: middle; /* sits at mid-height between words */
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.86;
  font-size: clamp(4rem, 17vw, 15rem);
  margin: 0;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title .accent { color: var(--indigo-lt); } /* lighter indigo */

.hero__meta {
  margin-top: clamp(22px, 4vw, 38px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  max-width: 620px;
}
.hero__lede {
  color: var(--slate); font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  max-width: 440px;
}

/* the living string canvas */
.string-field {
  position: absolute; left: 0; right: 0; z-index: -1;
  height: 220px; pointer-events: none;
}
.string-field--hero { bottom: 22%; }

/* scroll cue */
.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 26px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  color: var(--slate); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.scroll-cue__rail { width: 1px; height: 42px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue__rail::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--cyan); animation: cueDrop 2.2s var(--ease-out) infinite;
}
@keyframes cueDrop { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(300%); } }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { position: relative; padding-block: clamp(80px, 12vh, 160px); }
.section--tight { padding-block: clamp(60px, 8vh, 110px); }

.section-head {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 900px;
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(2.4rem, 6vw, 5rem);
  margin: 0;
}
.section-head__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cyan); }
.section-head__sub { color: var(--slate); max-width: 520px; }
.section-index {
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.3em;
  color: var(--slate-2); text-transform: uppercase;
}

/* clear straight divider between sections */
.section-rule {
  border: none; height: 1px; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--cyan-dim) 50%, var(--line-2) 88%, transparent);
  opacity: 0.75;
}

/* string divider between sections */
.divider-string { display: block; width: 100%; height: 60px; overflow: visible; }
.divider-string path { fill: none; stroke: var(--cyan-dim); stroke-width: 1.5; }

/* ============================================================
   WORK / SELECTED RELEASES
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 cols × 3 rows = 15 covers */
  gap: 14px;
}
.release { border-radius: 8px; }
.release {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
  will-change: transform;
}
.release:hover, .release:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(204,84,208,0.4);
  box-shadow: 0 24px 60px -30px rgba(204,84,208,0.5);
}
.release img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .6s; filter: saturate(0.95); }
.release:hover img, .release:focus-visible img { transform: scale(1.06); filter: saturate(1.12); }
.release::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,6,26,0.55));
  opacity: 0; transition: opacity .4s;
}
.release:hover::after, .release:focus-visible::after { opacity: 1; }
.release__play { display: none; } /* no play button on hover */

/* ============================================================
   ABOUT
   ============================================================ */
/* body column ~25% narrower so the bio takes a bit more vertical space */
.about { display: grid; grid-template-columns: 1fr 0.78fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__portrait {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--panel);
  border: 1px solid var(--line);
}
.about__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 32%;
  /* subtle cool colour-correction, keeps skin tones readable */
  filter: saturate(0.9) contrast(1.05) brightness(0.98);
}
.about__portrait::after { /* gentle grade: cyan lift up top, darken toward the base */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 55% at 70% 0%, rgba(204,84,208,0.16), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(8,6,26,0.45));
}
.about__portrait::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 70px -18px rgba(8,6,26,0.85);
}
.about__body p { color: #D8CCDA; margin: 0 0 1.1em; font-size: 1.12rem; line-height: 1.7; }
.about__pull {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.3; color: var(--bone);
  border-left: 2px solid var(--cyan); padding-left: 22px; margin: 28px 0;
}
.clients { margin-top: 30px; }
.clients p { margin: 10px 0 0; color: #D8CCDA; font-size: 0.98rem; letter-spacing: 0.01em; }
.credits { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 26px; }
.credit__k { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--cyan); }
.credit__v { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-top: 4px; }

/* ============================================================
   THE PLAYER — looping video section
   ============================================================ */
.player {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(64px, 10.5vh, 120px); /* ~15% taller */
  /* tall cinematic band, content vertically centred */
  display: grid; align-content: center;
  min-height: clamp(460px, 66vh, 660px);
}
.player__wrap { width: 100%; }
.player__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}
.player__scrim {
  position: absolute; inset: 0; z-index: -1;
  /* darker toward the right so the text (now on the right two-thirds) stays legible */
  background:
    /* fade ALL four edges into the page colour so the video has no hard border */
    linear-gradient(180deg, var(--ink) 0%, transparent 24%),
    linear-gradient(0deg,   var(--ink) 0%, transparent 26%),
    linear-gradient(90deg,  var(--ink) 0%, transparent 18%),
    linear-gradient(270deg, var(--ink) 0%, transparent 16%),
    /* keep the right two-thirds darker so the text stays legible */
    linear-gradient(90deg, rgba(8,6,26,0.12) 0%, rgba(8,6,26,0.35) 30%, rgba(8,6,26,0.82) 62%, rgba(8,6,26,0.95) 100%),
    radial-gradient(70% 120% at 92% 40%, rgba(204,84,208,0.18), transparent 60%);
}
.player__inner { position: relative; max-width: 460px; margin-left: auto; } /* right third */
/* dark translucent card around the body text only (not the title) */
.player__body {
  background: rgba(8,6,26,0.55);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: 0 34px 80px -34px rgba(0,0,0,0.85);
}
.player__body p { color: #EADFEC; margin: 0 0 1.1em; font-size: 1.12rem; line-height: 1.7; }
.player__body p:last-child { margin-bottom: 0; }
.player__body p:first-of-type { color: var(--bone); }
.player__body .about__pull { color: var(--bone); }
.player__body .credit__v { color: #C7B7CE; }

/* ============================================================
   PARTNERS / CLIENTS
   ============================================================ */
.section-head--center { margin-inline: auto; text-align: center; align-items: center; justify-items: center; }
/* smaller heading for the partners wall */
#partners .section-head__title { font-size: clamp(1.9rem, 4vw, 3.2rem); }
/* three tidy rows (3 · 4 · 3), logos close together */
.logo-wall {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  max-width: 760px; margin: 0 auto;
}
.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(22px, 3vw, 40px);
}
.logo-wall__logo {
  height: clamp(46px, 6.4vw, 72px); width: auto;
  max-width: clamp(180px, 24vw, 280px); object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity .3s, transform .3s var(--ease-out);
}
.logo-wall__logo:hover { opacity: 1; transform: translateY(-3px); }
/* EON a little larger */
.logo-wall__logo--eon {
  height: clamp(74px, 10.4vw, 118px);
  max-width: clamp(240px, 32vw, 380px);
}
/* VMO 1.5× larger than EON */
.logo-wall__logo--vmo {
  height: clamp(111px, 15.6vw, 177px);
  max-width: clamp(320px, 44vw, 520px);
}
/* miHoYo + apm read small, matched to the wordmark logos */
.logo-wall__logo--mihoyo { height: clamp(30px, 4.2vw, 46px); }
.logo-wall__logo--apm    { height: clamp(38px, 5.2vw, 58px); }

/* ============================================================
   CTA / FOOTER
   ============================================================ */
.cta {
  text-align: center; padding-block: clamp(90px, 16vh, 200px);
  position: relative; overflow: hidden;
}
.cta__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 9vw, 8rem); line-height: 0.9; margin: 0 0 8px;
}
.cta__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cyan); }
.cta__lead { color: var(--slate); max-width: 440px; margin: 18px auto 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 16px 30px; border-radius: 999px;
  background: var(--cyan); color: var(--ink);
  transition: transform .3s var(--ease-out), box-shadow .3s, background .3s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-3px); box-shadow: 0 20px 50px -18px rgba(204,84,208,0.7); }
.btn--ghost { background: transparent; color: var(--bone); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: none; }
.btn svg { transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.footer {
  border-top: 1px solid var(--line);
  padding-block: 46px;
}
.footer__grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer__brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.65rem; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate);
  border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px;
  transition: .25s;
}
.social:hover, .social:focus-visible { color: var(--cyan); border-color: rgba(204,84,208,0.4); }
.footer__legal { color: var(--slate-2); font-size: 0.74rem; letter-spacing: 0.04em; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-main { min-height: 100svh; display: flex; align-items: center; padding-top: 90px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 7vw, 90px); align-items: center; width: 100%; }
.contact-lead__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.9; margin: 18px 0 24px;
}
.contact-lead__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cyan); }
.contact-lead p { color: var(--slate); max-width: 420px; }

/* email box sits on the right, beside the "Let's talk music" text
   (contact form removed — static site has no backend) */
.contact-email .gate { margin: 0; }

.gate {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8);
}
.gate__label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); }
.gate__q {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: 14px 0 20px;
  display: flex; align-items: center; gap: 12px;
}
.gate__q .op { color: var(--cyan); }
.gate__input {
  width: 100%; background: var(--ink); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--bone); font-family: var(--font-body); font-size: 1.05rem; padding: 14px 16px;
  transition: border-color .25s, box-shadow .25s;
}
.gate__input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(204,84,208,0.18); }
.gate__row { display: flex; gap: 12px; margin-top: 14px; }
.gate__btn {
  flex: 0 0 auto; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: 0.95rem;
  padding: 14px 24px; border-radius: 10px; background: var(--cyan); color: var(--ink);
  transition: transform .2s, box-shadow .25s, opacity .2s;
}
.gate__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(204,84,208,0.7); }
.gate__hint { margin-top: 14px; font-size: 0.8rem; color: var(--slate-2); min-height: 1.2em; }
.gate__hint.is-error { color: #FF6B6B; }

.reveal-card { display: none; }
.reveal-card.is-open { display: block; animation: fadeUp .6s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal-card__email {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ink); border: 1px solid rgba(204,84,208,0.35); border-radius: 12px;
  padding: 18px 20px; margin-top: 6px;
}
.reveal-card__addr { font-family: var(--font-body); font-size: clamp(0.95rem, 2.2vw, 1.2rem); color: var(--cyan); word-break: break-all; }
.copy-btn {
  border: 1px solid var(--line-2); background: transparent; color: var(--bone);
  border-radius: 8px; padding: 9px 14px; cursor: pointer; font-family: var(--font-body); font-size: 0.8rem;
  transition: .2s; white-space: nowrap;
}
.copy-btn:hover { border-color: var(--cyan); color: var(--cyan); }

/* social icon buttons — just the round logo, no wrapping circle */
.social--icon {
  padding: 0; width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: none; border: none;
}
.social--icon img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.social--icon:hover, .social--icon:focus-visible {
  transform: translateY(-2px);
}
/* all three social glyphs fill their frames equally — no per-icon scaling needed */
/* centre the social row (e.g. under the contact captcha) */
.socials--center { justify-content: center; }

/* compact email-reveal gate (in contact lead) */
.gate__q {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--bone); white-space: nowrap;
}

/* contact form */
.cform-wrap {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(22px, 3.5vw, 36px);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,0.8);
}
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cfield { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cfield label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }
.cfield input, .cfield textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--bone); font-family: var(--font-body); font-size: 1rem; padding: 13px 15px;
  transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.cfield input:focus, .cfield textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(204,84,208,0.18);
}
.cform__submit { margin-top: 4px; border: none; cursor: pointer; }
.cform__note { margin-top: 14px; font-size: 0.85rem; color: var(--slate); min-height: 1.2em; }
.cform__note.is-error { color: #FF8080; }
.cform__note.is-ok { color: var(--electric); }

/* ============================================================
   REVEAL ANIMATION STATES (JS toggles) + reduced motion
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(24px); }
.no-anim [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .scroll-cue__rail::after { animation: none; }
  .release__art img, .release { transition: none; }
  body::before { animation: none; opacity: .7; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .collage { grid-template-columns: repeat(4, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 420px; }
  .player { min-height: 0; }
  .player__inner { margin-left: 0; max-width: none; }
  .contact-grid { grid-template-columns: 1fr; }
  /* on narrow screens use the full-bleed photo */
  .hero__bg { inset: 0; }
  .hero__bg img { width: 100%; object-position: center 46%; }
}
@media (max-width: 620px) {
  .nav__links .nav__link:not(.nav__link--cta) { display: none; }
  .collage { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { align-items: flex-end; }
  .credits { grid-template-columns: 1fr 1fr; }
  .footer__grid { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SUBPAGES  (links · stream · sheet music · project)
   ============================================================ */
.subpage { padding-top: clamp(96px, 14vh, 140px); padding-bottom: clamp(60px, 9vh, 110px); min-height: 78vh; }
.subpage .wrap { max-width: 960px; }
.backlink {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate);
  transition: color .25s;
}
.backlink:hover { color: var(--cyan); }

/* --- hub (links / stream) --- */
.hub { max-width: 540px; margin-inline: auto; text-align: center; }
.hub__art {
  width: 128px; height: 128px; border-radius: 26px; object-fit: cover;
  margin: 0 auto 22px; border: 1px solid var(--line-2); box-shadow: var(--shadow-glow);
}
.hub__eyebrow { display: block; margin-bottom: 10px; }
.hub__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.02; margin: 0 0 8px;
}
.hub__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cyan); }
.hub__tagline { color: var(--slate); margin: 0 auto 30px; max-width: 420px; }
.hub__list { display: flex; flex-direction: column; gap: 13px; text-align: left; }
.hub__grouplabel {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--slate-2);
  margin: 20px 0 -2px; padding-left: 4px;
}

.linkbtn {
  display: flex; align-items: center; gap: 15px;
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px;
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s;
}
.linkbtn:hover, .linkbtn:focus-visible {
  transform: translateY(-3px); border-color: rgba(204,84,208,0.45);
  box-shadow: 0 20px 44px -24px rgba(204,84,208,0.6);
}
.icon-chip {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  background: #fff; display: grid; place-items: center; overflow: hidden;
}
.icon-chip img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.linkbtn__text { display: flex; flex-direction: column; line-height: 1.25; }
.linkbtn__label { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--bone); }
.linkbtn__sub { font-size: 0.76rem; color: var(--slate); }
.linkbtn__arrow { margin-left: auto; color: var(--slate-2); transition: transform .25s, color .25s; }
.linkbtn:hover .linkbtn__arrow { color: var(--cyan); transform: translateX(3px); }

/* --- streaming icon row --- */
.streaming-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.streaming-row a {
  width: 48px; height: 48px; border-radius: 50%; background: #fff; overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--line);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.streaming-row a:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(204,84,208,0.6); }
.streaming-row img { width: 100%; height: 100%; object-fit: contain; padding: 9px; }

/* --- sheet-music page --- */
.sheet { max-width: 700px; margin-inline: auto; text-align: center; }
.sheet__banner {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px;
  border: 1px solid var(--line); margin-bottom: 30px; box-shadow: 0 40px 90px -50px #000;
}
.sheet__eyebrow { display: block; margin-bottom: 12px; }
.sheet__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.04; margin: 0 0 8px;
}
.sheet__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cyan); }
.sheet__kind { color: var(--slate); margin: 0 0 30px; }
.sheet__license {
  font-size: 0.8rem; color: var(--slate-2); line-height: 1.6;
  max-width: 560px; margin: 30px auto 0; padding-top: 22px; border-top: 1px solid var(--line);
}
/* responsive YouTube embed */
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 34px 80px -44px #000; margin: 4px 0 8px;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* clear, visible licence terms (centred, with the download button inside) */
.terms {
  text-align: center;
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line-2); border-radius: 16px;
  padding: clamp(22px, 3.4vw, 34px); margin: 34px auto 0; max-width: 620px;
  color: #D8CCDA; font-size: 0.96rem; line-height: 1.7;
}
.terms strong { color: var(--bone); display: block; margin-bottom: 12px; font-size: 1.02rem; }
.terms p { margin: 0 0 0.85em; }
.terms p:last-of-type { margin-bottom: 0; color: var(--slate); }
.terms__download { margin-top: 20px; }
.streaming-block { margin-top: 40px; }
.streaming-block__label {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 16px;
}

/* --- project (arduino) --- */
.project { max-width: 820px; margin-inline: auto; }
.project__head { margin-bottom: 40px; }
.project__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1; margin: 6px 0 8px;
}
.project__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cyan); }
.project__sub { color: var(--slate); font-size: 1.05rem; }
.project__body { color: #D8CCDA; font-size: 1.08rem; line-height: 1.75; }
.project__body h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--bone);
  margin: 48px 0 16px; padding-top: 26px; border-top: 1px solid var(--line);
}
.project__body p { margin: 0 0 1.1em; }
.project__body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.project__body a:hover { color: var(--electric); }
.credits-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.credits-list li { color: #D8CCDA; padding-left: 20px; position: relative; }
.credits-list li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); }
.codeblock {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 4px;
}
.project__gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px;
}
.project__gallery a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.project__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.project__gallery a:hover img { transform: scale(1.07); }
@media (max-width: 620px) {
  .project__gallery { grid-template-columns: repeat(2, 1fr); }
}
