﻿/* =========================================================
   KEGZI: styles.css
   ---------------------------------------------------------
   CHANGE COLOURS & FONTS HERE (design tokens).
   Brand colours come from the existing kegzi.co.uk:
   black base, hot-pink title, pink→orange photo ring.
   ========================================================= */
:root {
  /* Base */
  --bg:        #07070a;
  --bg-2:      #0f0f14;
  --surface:   #15151c;
  --line:      #26262f;

  /* Text */
  --text:      #f5f5f7;
  --text-dim:  #a7a7b3;

  /* Accents: swap these two to re-skin the whole site */
  --pink:      #ff2d78;
  --orange:    #ff8a1f;
  --grad:      linear-gradient(100deg, var(--pink) 0%, #ff4f5a 50%, var(--orange) 100%);

  /* Type */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --gutter: 20px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--pink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-body); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 6px 24px -8px rgba(255, 45, 120, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px -6px rgba(255, 45, 120, .85); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--pink); background: rgba(255, 45, 120, .08); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: .85rem; }
.btn--lg { --h: 56px; padding: 0 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Glitch text (intro + hero) ---------- */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
}
.glitch::before { color: var(--pink); transform: translateX(-3px); mix-blend-mode: screen; opacity: .8; animation: glitchA 3.2s infinite steps(1); }
.glitch::after  { color: var(--orange); transform: translateX(3px); mix-blend-mode: screen; opacity: .7; animation: glitchB 3.2s infinite steps(1); }
/* Logo image version: the coloured glitch layers are the logo shape (mask) filled pink/orange */
.logo-mark { line-height: 0; }
.logo-mark img { width: 100%; height: auto; }
.logo-mark.glitch::before, .logo-mark.glitch::after {
  content: "";
  -webkit-mask: url("../assets/images/kegzi-logo-white.svg") center / 100% 100% no-repeat;
          mask: url("../assets/images/kegzi-logo-white.svg") center / 100% 100% no-repeat;
}
.logo-mark.glitch::before { background: var(--pink); }
.logo-mark.glitch::after  { background: var(--orange); }
@keyframes glitchA {
  0%, 86%, 100% { clip-path: inset(0 0 100% 0); }
  88% { clip-path: inset(10% 0 60% 0); transform: translateX(-6px); }
  91% { clip-path: inset(55% 0 20% 0); transform: translateX(4px); }
  94% { clip-path: inset(30% 0 45% 0); transform: translateX(-3px); }
}
@keyframes glitchB {
  0%, 87%, 100% { clip-path: inset(100% 0 0 0); }
  89% { clip-path: inset(65% 0 10% 0); transform: translateX(6px); }
  92% { clip-path: inset(15% 0 70% 0); transform: translateX(-4px); }
  95% { clip-path: inset(40% 0 35% 0); transform: translateX(3px); }
}

/* =========================================================
   1. INTRO
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.intro.is-done { opacity: 0; visibility: hidden; }
.intro__wave {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 5px; height: 160px;
}
.intro__wave i {
  display: block; width: 5px; height: 100%; border-radius: 3px;
  background: var(--grad); transform: scaleY(.05);
  animation: bar 1.1s var(--ease) forwards, barOut .35s ease-in 1.15s forwards;
}
@keyframes bar { 0% { transform: scaleY(.05); } 40% { transform: scaleY(var(--s, .6)); } 70% { transform: scaleY(calc(var(--s, .6) * .4)); } 100% { transform: scaleY(var(--s2, .3)); } }
@keyframes barOut { to { transform: scaleY(0); opacity: 0; } }

.intro__logo {
  position: relative; width: clamp(220px, 62vw, 520px);
  opacity: 0; filter: blur(14px); transform: scaleX(1.4);
  animation: logoIn .55s var(--ease) 1.2s forwards;
}
.intro__logo::before, .intro__logo::after { animation-duration: .9s; animation-delay: 1.3s; animation-iteration-count: 2; }
@keyframes logoIn { to { opacity: 1; filter: blur(0); transform: scaleX(1); } }

/* The "drum hit": a single flash + bass ripple when the logo lands */
.intro__ripple {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; border: 2px solid var(--pink); opacity: 0;
  animation: ripple .9s ease-out 1.25s forwards;
}
@keyframes ripple { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(28); } }

.intro__skip {
  position: absolute; right: 20px; bottom: 20px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text-dim); font: 500 .85rem var(--font-body); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .3s, color .2s, border-color .2s;
}
.intro__skip.is-visible { opacity: 1; pointer-events: auto; }
.intro__skip:hover { color: #fff; border-color: var(--pink); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 7, 10, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: block; line-height: 0; text-decoration: none; }
.nav__logo img { height: 26px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--text-dim); transition: color .2s; position: relative; }
.nav__menu a:hover, .nav__menu a.is-active { color: #fff; }
.nav__menu a.is-active:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad); border-radius: 2px; }
.nav__cta { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: #fff !important; }
.nav__cta:hover { border-color: var(--pink); }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: #fff; cursor: pointer;
  }
  .nav__burger, .nav__burger::before, .nav__burger::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
  }
  .nav__burger { position: relative; }
  .nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
  .nav__burger::before { top: -7px; }
  .nav__burger::after  { top: 7px; }
  .nav__toggle[aria-expanded="true"] .nav__burger { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__burger::before { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__burger::after  { transform: translateY(-7px) rotate(-45deg); }

  .nav__menu {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    min-height: calc(100svh - 64px);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-open .nav__menu { opacity: 1; transform: none; visibility: visible; }
  .nav__menu a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav__menu a.is-active::after { display: none; }
  .nav__cta { margin-top: 16px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .25) !important; }
}

/* =========================================================
   2. HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 110px 0 90px; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero__glow--a { width: 60vmax; height: 60vmax; left: -20vmax; top: -25vmax; background: radial-gradient(circle, var(--pink), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.hero__glow--b { width: 50vmax; height: 50vmax; right: -18vmax; bottom: -25vmax; background: radial-gradient(circle, var(--orange), transparent 65%); opacity: .35; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.1); } }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
/* Looping spectrum bars along the bottom: the "bass pulse" */
.hero__bars { position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; display: flex; align-items: flex-end; gap: 3px; padding: 0 3px; opacity: .22; mask-image: linear-gradient(to top, #000, transparent); -webkit-mask-image: linear-gradient(to top, #000, transparent); }
.hero__bars i { flex: 1; height: 100%; background: var(--grad); transform-origin: bottom; transform: scaleY(.2); animation: eq var(--d, 1s) ease-in-out var(--dl, 0s) infinite alternate; border-radius: 2px 2px 0 0; }
@keyframes eq { from { transform: scaleY(var(--lo, .1)); } to { transform: scaleY(var(--hi, .7)); } }

.hero__content { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.03); font-size: .82rem; color: var(--text-dim); letter-spacing: .04em; text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255,45,120,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,45,120,0); } 100% { box-shadow: 0 0 0 0 rgba(255,45,120,0); } }

.hero__title {
  display: block; position: relative;
  width: clamp(240px, 72vw, 600px);
  margin: 26px 0 24px;
}
/* Logo + ringed profile photo side by side */
.hero__brand { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); margin: 26px 0 24px; }
.hero__brand .hero__title { margin: 0; flex: 0 1 auto; width: clamp(180px, 60vw, 600px); }
.hero__avatar {
  --size: clamp(84px, 21vw, 210px);
  position: relative; flex: none; width: var(--size); height: var(--size); border-radius: 50%;
  padding: calc(var(--size) * .035); /* ring thickness */
  isolation: isolate;
}
.hero__avatar::before { /* the gradient ring, slowly turning */
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 200deg, var(--orange), #ffd23f, var(--orange), var(--pink), #c218d4, var(--pink), var(--orange));
  animation: ringSpin 9s linear infinite;
}
.hero__avatar::after { /* soft glow behind */
  content: ""; position: absolute; inset: -18%; border-radius: 50%; z-index: -2;
  background: radial-gradient(circle, rgba(255,45,120,.45), transparent 65%); filter: blur(10px);
}
.hero__avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: calc(var(--size) * .025) solid var(--bg); /* thin dark gap between ring and photo */
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.hero__tag { font-size: clamp(.95rem, 2.4vw, 1.15rem); color: var(--text-dim); letter-spacing: .03em; margin-bottom: 6px; }
.hero__tag span { color: var(--pink); margin: 0 .2em; }
.hero__lead { font: 600 clamp(1.15rem, 3.4vw, 1.6rem)/1.3 var(--font-display); margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Hero reveal after intro */
.is-loading .hero__content > * { opacity: 0; transform: translateY(18px); }
.hero__content > * { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero__content > *:nth-child(2) { transition-delay: .08s; }
.hero__content > *:nth-child(3) { transition-delay: .16s; }
.hero__content > *:nth-child(4) { transition-delay: .24s; }
.hero__content > *:nth-child(5) { transition-delay: .32s; }

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section { position: relative; padding: clamp(80px, 12vw, 140px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 56px); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section__head--row h2 { margin-bottom: 0; }
.section__sub { color: var(--text-dim); font-size: clamp(1rem, 2vw, 1.15rem); }
.kicker { font: 600 .78rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--pink); margin-bottom: 18px; }

/* "As featured on" BBC Music Introducing badge (next to the hero buttons) */
.hero__ctas { align-items: center; }
.hero__featured { display: flex; align-items: center; gap: 12px; margin-left: 18px; }
.hero__featured-label { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); line-height: 1.3; }
.hero__featured img { height: 38px; width: auto; opacity: .92; }

/* Mobile: centre the whole hero */
@media (max-width: 560px) {
  .hero__content { text-align: center; }
  .hero__brand { justify-content: center; }
  .hero__ctas { justify-content: center; }
  .hero__featured { margin-left: 0; width: 100%; justify-content: center; margin-top: 10px; }
  .hero__featured img { height: 32px; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   3. TRACKS
   ========================================================= */
/* Flex rather than grid so an incomplete last row sits centred */
.tracks { --cols: 1; --gap: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.tracks > .track { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (min-width: 640px)  { .tracks { --cols: 2; } }
@media (min-width: 1000px) { .tracks { --cols: 3; } }

.track {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.track:hover { transform: translateY(-4px); border-color: rgba(255,45,120,.55); box-shadow: 0 18px 50px -20px rgba(255,45,120,.55); }
.track__media { position: relative; aspect-ratio: 1; background: #000; overflow: hidden; }
.track__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.track:hover .track__media img { transform: scale(1.05); }
.track__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Generated cover for tracks without artwork */
.track__cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,138,31,.55), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(255,45,120,.7), transparent 55%),
    #0b0b10;
}
.track__cover b { font: 900 clamp(1.6rem, 6vw, 2.4rem)/1 var(--font-display); word-break: break-word; }
.track__cover small { font: 700 .75rem var(--font-display); letter-spacing: .3em; opacity: .8; }

.track__play {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--grad); border: 0; color: #fff; cursor: pointer;
  box-shadow: 0 8px 26px -6px rgba(255,45,120,.8); transition: transform .25s var(--ease);
}
.track__play:hover { transform: scale(1.08); }
.track__play svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }

.track__progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s linear, opacity .3s; opacity: 0;
}
.track__media.is-playing .track__progress { opacity: 1; }
.track__media.is-playing img { filter: brightness(.85); }
.track__media.is-playing .track__play { animation: playPulse 1.4s ease-in-out infinite; }
@keyframes playPulse { 50% { box-shadow: 0 0 0 10px rgba(255,45,120,0), 0 8px 26px -6px rgba(255,45,120,.8); } 0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,120,.5), 0 8px 26px -6px rgba(255,45,120,.8); } }
.track__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.track__actions { margin-top: auto; padding-top: 8px; }
.track__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text-dim); }
.tag--hot { background: rgba(255,45,120,.15); color: #ff8fb4; }
.track__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 2px; }
.track__artist { color: var(--text-dim); font-size: .95rem; margin-bottom: 12px; }
.track__blurb { color: var(--text-dim); font-size: .92rem; flex: 1; }
.track__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Platform bar: each link sets its own --brand colour inline */
.platforms {
  margin-top: 48px; padding: 22px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(255,45,120,.08), rgba(255,138,31,.05) 60%, transparent), var(--bg-2);
  border: 1px solid var(--line);
}
.platforms__label { font: 600 .78rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 16px 4px; }
.platforms__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .platforms__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .platforms__list { grid-template-columns: repeat(4, 1fr); } }
.platform {
  position: relative; display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 14px 16px; border-radius: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.platform::before { /* brand-coloured wash on hover */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%);
}
.platform:hover, .platform:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 60%, transparent);
  box-shadow: 0 14px 34px -18px var(--brand);
}
.platform:hover::before, .platform:focus-visible::before { opacity: 1; }
.platform__icon {
  position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 14%, #0b0b10); color: var(--brand);
  transition: background .3s, color .3s;
}
.platform:hover .platform__icon { background: var(--brand); color: #fff; }
.platform__icon svg { width: 24px; height: 24px; fill: currentColor; }
.platform__text { position: relative; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.platform__text b { font-weight: 600; font-size: 1rem; }
.platform__text small { font-size: .8rem; color: var(--text-dim); }
.platform__arrow { position: relative; margin-left: auto; color: var(--text-dim); font-size: 1.05rem; transition: transform .3s var(--ease), color .3s; }
.platform:hover .platform__arrow { color: #fff; transform: translate(2px, -2px); }

/* =========================================================
   5. COLLAB
   ========================================================= */
.collab { background: var(--bg-2); overflow: hidden; }
.collab__stripe {
  position: absolute; left: -10%; right: -10%; top: 0; height: 4px; background: var(--grad);
  box-shadow: 0 0 40px 4px rgba(255,45,120,.5);
}
.collab__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .collab__grid { grid-template-columns: repeat(3, 1fr); } }
.panel { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel h3 { color: #fff; margin-bottom: 18px; }
.panel--accent { background: linear-gradient(160deg, rgba(255,45,120,.16), rgba(255,138,31,.08) 60%, var(--surface)); border-color: rgba(255,45,120,.35); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-dim); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: rotate(-45deg) translateY(-3px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 800 .95rem/38px var(--font-display); text-align: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); color: var(--orange); }
.steps b { font-weight: 600; }
.steps span { color: var(--text-dim); font-size: .9rem; }
.collab__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* =========================================================
   6. ABOUT
   ========================================================= */
.about__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 5fr 6fr; gap: 64px; } }
.about__photo { margin: 0; position: relative; isolation: isolate; }
.about__photo img { border-radius: 20px; width: 100%; background: var(--surface); border: 1px solid var(--line); }
.about__photo::after { content: ""; position: absolute; inset: 14% -6% -6% 14%; z-index: -1; border-radius: 22px; background: var(--grad); filter: blur(60px); opacity: .35; }
.about__text p { color: var(--text-dim); font-size: 1.05rem; }
.about__text p b { color: var(--text); }
.stats { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats li { padding: 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.stats b { display: block; font: 900 1.4rem/1 var(--font-display); margin-bottom: 6px; }
.stats span { font-size: .78rem; color: var(--text-dim); line-height: 1.3; display: block; }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* =========================================================
   4. INSTAGRAM
   ========================================================= */
.ig { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .ig { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
/* Tiles are 4:5 (Instagram's tallest feed shape). The real image is shown whole
   (contain, never cropped); a blurred copy fills any space around square/landscape posts. */
.ig__item { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--surface); }
.ig__item img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ig__fill { object-fit: cover; filter: blur(22px) brightness(.55) saturate(1.2); transform: scale(1.15); transition: transform .6s var(--ease); }
.ig__img { object-fit: contain; transition: filter .4s; }
.ig__item::after {
  content: attr(data-caption); position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(to top, rgba(7,7,10,.92), rgba(255,45,120,.15) 70%, transparent);
  font-size: .85rem; line-height: 1.4; opacity: 0; transition: opacity .35s;
}
.ig__item:hover .ig__fill, .ig__item:focus-visible .ig__fill { transform: scale(1.25); }
.ig__item:hover .ig__img, .ig__item:focus-visible .ig__img { filter: brightness(1.08); }
.ig__item:hover::after, .ig__item:focus-visible::after { opacity: 1; }
@media (hover: none) { .ig__item::after { display: none; } }
/* Placeholder tiles when the live feed isn't connected / can't load */
.ig__item--empty {
  display: grid; place-items: center; text-decoration: none; text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 15%, rgba(255,138,31,.18), transparent 50%),
    radial-gradient(circle at 15% 90%, rgba(255,45,120,.22), transparent 55%),
    var(--surface);
}
.ig__item--empty::after { display: none; }
.ig__item--empty span { font-size: .9rem; color: var(--text-dim); line-height: 1.5; }
.ig__item--empty b { font: 800 1.1rem var(--font-display); color: var(--text); }

/* =========================================================
   7. CONTACT
   ========================================================= */
.contact { background: var(--bg-2); }
.contact__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.mail { display: inline-block; font: 700 clamp(1.05rem, 3.6vw, 1.5rem) var(--font-display); text-decoration: none; margin: 6px 0 28px; border-bottom: 2px solid var(--pink); padding-bottom: 4px; word-break: break-all; }
.mail:hover { color: #ff8fb4; }
/* "Use the form" message: button colours, no glow */
.contact__lead { display: inline-block; margin: 6px 0 16px; padding: 14px 22px; border-radius: 24px; background: var(--grad); color: #fff; font: 600 1rem/1.45 var(--font-body); letter-spacing: .01em; }
/* Email fallback: small and quiet */
.mail-alt { font-size: .85rem; color: var(--text-dim); margin: 0 0 28px; overflow-wrap: anywhere; }
.mail-alt a { color: var(--text); text-decoration-color: var(--pink); text-underline-offset: 3px; }
.mail-alt a:hover { color: #ff8fb4; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.socials a:hover { border-color: var(--pink); transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }

.form { padding: clamp(22px, 4vw, 34px); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: 400 1rem var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,45,120,.2); }
.field [aria-invalid="true"] { border-color: #ff5a5a; }
.form__status { margin: 0; min-height: 1.4em; font-size: .9rem; color: var(--text-dim); }
.form__status.is-ok { color: #6ee7a8; }
.form__status.is-error { color: #ff8a8a; }
.form button[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .88rem; color: var(--text-dim); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
