/* ---------- Fonts (self-hosted, Google Fonts, OFL licence) ---------- */
@font-face { font-family: "Roboto"; src: url("assets/fonts/roboto-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("assets/fonts/raleway-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens: NYXILA brand palette ---------- */
:root {
  --nyx-midnight: #050608;
  --nyx-lilac:    #E0D3FE;
  --nyx-orchid:   #BF40FA;
  --nyx-indigo:   #4A28C4;
  --nyx-plum:     #5B2A62;
  --nyx-gold:     #F7DF80;

  --bg: var(--nyx-midnight);
  --bg-2: #1b1030;                      /* flat, solid deep-violet card surface */
  --line: rgba(224, 211, 254, 0.12);    /* lilac hairline */
  --text: var(--nyx-lilac);
  --muted: rgba(224, 211, 254, 0.8);   /* raised for readability on phones */
  --accent: var(--nyx-orchid);          /* buttons, links, highlights */
  --gold: var(--nyx-gold);              /* stars only */
  --violet: var(--nyx-orchid);
  --blue: var(--nyx-indigo);
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --label: "Raleway", "Roboto", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main, .footer { overflow-x: clip; } /* glows may bleed visually but never widen the page */
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(40px, 6.5vw, 92px); }
h3 { font-size: clamp(28px, 3vw, 40px); }
p { margin: 0 0 1em; }

.eyebrow { font-family: var(--label); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--text); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: "✦"; color: var(--gold); letter-spacing: 0; font-size: 14px; }
.lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--nyx-midnight); font: 600 16px var(--body); text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--nyx-lilac); }
.btn--small { padding: 10px 20px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--text); color: var(--nyx-midnight); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled { background: rgba(5, 6, 8, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .3s ease, top .3s ease; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; left: 18px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; left: 10px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--gutter);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--display); font-size: 52px; text-decoration: none; line-height: 1.15; }

/* ---------- Hero ---------- */
.hero {
  /* full screen, but never much taller than it is wide (tall narrow windows looked empty) */
  position: relative; height: min(100vh, max(700px, 130vw)); height: min(100svh, max(700px, 130vw)); min-height: 560px;
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
}
/* photo rows fade out softly at the top and bottom into the night-sky background (no hard band) */
.hero__bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 58%, transparent 92%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 58%, transparent 92%);
}
.hero__rows {
  position: absolute; inset: -20% -30%; z-index: -2;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 6vw, 90px);
  transform: rotate(-16deg);
}
.hero__row { overflow: visible; }
.hero__track {
  display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); width: max-content;
  animation: drift 70s linear infinite;
}
.hero__row--b .hero__track, .hero__row--d .hero__track { animation-direction: reverse; animation-duration: 80s; }
.hero__track img {
  width: clamp(120px, 13vw, 210px); aspect-ratio: 246 / 317; object-fit: cover;
  border-radius: var(--radius); filter: brightness(.8); /* solid (not see-through) so stars stay behind the photos */
}
.hero__track img:nth-child(3n+2) { width: clamp(160px, 18vw, 290px); aspect-ratio: 1; }
@keyframes drift { to { transform: translateX(-50%); } }

.hero::after { /* vignette for legibility */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(8,6,16,.1), rgba(8,6,16,.5) 100%);
  /* shading fades out toward the bottom so the hero melts into the next section */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 95%);
}
.hero__glow {
  position: absolute; z-index: -1; width: min(80vw, 900px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #BF40FA 0%, var(--violet) 18%, var(--blue) 42%, transparent 68%);
  filter: blur(50px); opacity: .95; mix-blend-mode: screen;
  animation: pulse 8s ease-in-out infinite alternate;
}
@keyframes pulse { from { transform: scale(.92) translateY(10px); } to { transform: scale(1.05) translateY(-10px); } }

.hero__content { text-align: center; padding: 0 var(--gutter); }
.hero__title { margin: 0; display: grid; justify-items: center; gap: clamp(14px, 1.6vw, 24px); }
.hero__wordmark { width: clamp(290px, 68vw, 1000px); height: auto; filter: drop-shadow(0 0 40px rgba(224,211,254,.18)); }
.hero__descriptor {
  font-family: var(--label); font-weight: 400; font-size: clamp(12px, 1.3vw, 18px);
  letter-spacing: .55em; margin-right: -.55em; text-transform: uppercase; color: var(--text);
}
.hero__tagline { margin-top: clamp(28px, 4vw, 48px); font-size: clamp(18px, 2vw, 26px); font-weight: 500; line-height: 1.3; }

.hero__scroll {
  position: absolute; bottom: calc(clamp(80px, 12vh, 140px) + 12px); left: 50%; translate: -50% 0; z-index: 2; /* sits above the bottom blur */
  width: 24px; height: 38px; border: 1.5px solid rgba(224,211,254,.6); border-radius: 14px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.ticker__track { display: flex; width: max-content; animation: drift 40s linear infinite; }
.ticker span { font-family: var(--display); font-size: clamp(26px, 3.4vw, 44px); padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.ticker span::after { content: "✦"; color: var(--gold); font-size: .6em; }

/* ---------- Sections ---------- */
.section { padding: clamp(120px, 14vw, 200px) var(--gutter); max-width: 1400px; margin: 0 auto; position: relative; }
.section__head { margin-bottom: clamp(56px, 7vw, 96px); }
.section__head h2 { margin-bottom: 24px; }

/* Offers */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.offer {
  background: #08070c; border: 1px solid rgba(224,211,254,.14); border-radius: var(--radius); /* black card on the purple glow */
  padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 22px;
  position: relative; overflow: hidden; transition: border-color .3s ease;
  will-change: transform;
}
.offer:hover { border-color: rgba(224,211,254,.32); }
.offer > * { position: relative; }
/* Pricing + contact: black cards sitting on a soft purple gradient glow */
#esitykset, #yhteys { isolation: isolate; }
#esitykset::before, #yhteys::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 58%; translate: -50% -50%; width: min(1300px, 140vw); height: 75%;
  background: radial-gradient(ellipse at center, rgba(191, 64, 250, .42) 0%, rgba(120, 52, 220, .26) 35%, rgba(74, 40, 196, .12) 60%, transparent 75%);
  filter: blur(40px);
}
#yhteys::before { left: 70%; top: 50%; width: min(1000px, 140vw); height: 85%; } /* glow sits behind the form */
@media (max-width: 900px) { #yhteys::before { left: 50%; top: 62%; } }
.form .btn { background: var(--nyx-lilac); color: var(--nyx-midnight); }
.form .btn:hover { background: #fff; }
.offer { --pad: clamp(28px, 3.5vw, 48px); }
.offer__media { /* photo runs edge to edge across the top of the card */
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 4px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.offer__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s cubic-bezier(.2,.7,.2,1); }
.offer:hover .offer__media img { scale: 1.04; }
.offer__top { display: flex; justify-content: flex-start; }
.chip { color: var(--nyx-lilac); font-size: 16px; font-weight: 700; letter-spacing: .01em; } /* plain text, no pill */
.offer p { color: rgba(224,211,254,.88); margin: 0; }
.offer__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(224,211,254,.2); }
.offer__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(224,211,254,.2); text-align: right; color: var(--nyx-lilac); font-weight: 500; }
.offer__list span { color: rgba(224,211,254,.78); font-weight: 400; text-align: left; }
.offer .btn { align-self: flex-start; margin-top: auto; }
.offer .btn { background: var(--nyx-lilac); color: var(--nyx-midnight); } /* light lilac pill */
.offer .btn:hover { background: #fff; }

.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__head--row h2 { margin-bottom: 0; }
.section__head--row .lead { margin: 0; max-width: 420px; }

/* Showreel */
.showreel { padding-top: clamp(40px, 6vw, 90px); }
.reel {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-2); color: var(--text);
}
.reel img, .reel video { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: scale 1s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.reel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(191,64,250,.22), transparent 60%), linear-gradient(to top, rgba(5,6,8,.75), transparent 40%); }
.reel video { opacity: .85; }
.reel:hover img, .reel:hover video { scale: 1.04; opacity: 1; }
.reel__label { position: absolute; z-index: 1; left: 28px; bottom: 24px; font-family: var(--display); font-size: clamp(20px, 2.4vw, 32px); }
.reel.is-soon { cursor: default; }
.reel.is-soon:hover img { scale: 1; opacity: .55; }

.video-modal { width: min(92vw, 1200px); padding: 0; border: 0; background: var(--nyx-midnight); border-radius: 20px; overflow: visible; }
.video-modal::backdrop { background: rgba(5,5,8,.88); backdrop-filter: blur(6px); }
.video-modal__frame { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; }
.video-modal__frame iframe, .video-modal__frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; width: 40px; height: 40px; }

/* Instagram */
.insta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } /* 6 posts = 2 rows of 3 */
.insta__grid a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--bg-2); }
.insta__grid img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s ease, opacity .3s; }
.insta__grid a::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: linear-gradient(135deg, rgba(191,64,250,.55), rgba(74,40,196,.35));
}
.insta__grid a:hover img { scale: 1.06; }
.insta__grid a:hover::after { opacity: 1; }

/* Members */
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; align-items: start; }
.member__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px;
  background: radial-gradient(circle at 50% 35%, rgba(191,64,250,.4), var(--nyx-midnight) 70%);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s cubic-bezier(.2,.7,.2,1); }
.member:hover .member__photo img { scale: 1.04; }
.member__photo--empty { display: grid; place-items: center; }
.member__photo--empty .member__placeholder { width: 60%; height: auto; object-fit: contain; opacity: .5; }
.member h3 { font-size: clamp(26px, 2.4vw, 34px); }
.member h3 + .member__bio { margin-top: 10px; }
.member__bio { color: var(--muted); font-size: 16px; margin: 0; }
.member__more { color: var(--muted); font-size: 16px; }
.member__more p { margin: 10px 0 0; animation: bio-in .35s ease; }
.member__toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 4px 0;
  background: none; border: 0; cursor: pointer;
  color: var(--gold); font: 500 15px var(--body);
}
.member__toggle::after { content: "+"; font-size: 18px; line-height: 1; transition: transform .3s ease; }
.member__toggle[aria-expanded="true"]::after { transform: rotate(45deg); }
.member__toggle .less, .member__toggle[aria-expanded="true"] .more { display: none; }
.member__toggle[aria-expanded="true"] .less { display: inline; }
.member__toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
@keyframes bio-in { from { opacity: 0; transform: translateY(-6px); } }

/* Instagram post cards (built by main.js from the live feed) */
.insta__grid.is-posts { gap: 20px; }
.insta__grid.is-posts a.ig-post { aspect-ratio: auto; border-radius: 16px; overflow: hidden; background: #08070c; border: 1px solid rgba(224,211,254,.14); text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: border-color .3s ease; }
.insta__grid.is-posts a.ig-post::after { display: none; }
.insta__grid.is-posts a.ig-post:hover { border-color: rgba(224,211,254,.35); }
.ig-post__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ig-post__avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, var(--gold), var(--nyx-orchid), var(--nyx-indigo)); }
.ig-post__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #08070c; }
.ig-post__user { font-weight: 600; font-size: 14px; }
.ig-post__more { margin-left: auto; color: var(--muted); letter-spacing: 1px; font-weight: 700; }
.ig-post__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.ig-post__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s ease; }
.ig-post:hover .ig-post__media img { scale: 1.04; }
.ig-post__type { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.ig-post__type svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.8; }
.ig-post__type svg path[d^="M8 5.5"] { fill: #fff; stroke: none; }
.ig-post__actions { display: flex; align-items: center; gap: 14px; padding: 12px 14px 6px; }
.ig-post__actions svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.ig-post__spacer { flex: 1; }
.ig-post__caption { margin: 0; padding: 0 14px 16px; font-size: 14px; line-height: 1.45; color: rgba(224,211,254,.85);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ig-post__caption strong { color: var(--text); font-weight: 600; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; position: relative; }
.about__text h2 { margin-bottom: 0; font-weight: 500; font-size: clamp(36px, 4.6vw, 72px); line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
.about__text p { color: var(--muted); font-size: 18px; max-width: 560px; }
.stats { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: clamp(20px, 4vw, 56px); margin: clamp(36px, 4vw, 56px) 0 0; }
.stats dt { white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.6vw, 88px); line-height: .95; letter-spacing: -0.03em; }
.stats dd { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* Gigs – sideways row that drifts on its own; swipe or drag to move faster (main.js) */
.gigs {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.gigs::-webkit-scrollbar { display: none; }
.gigs.is-dragging { cursor: grabbing; user-select: none; }
.gig {
  position: relative; flex: 0 0 auto; margin: 0;
  width: clamp(250px, 30vw, 420px); aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
}
.gig img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--mpos, 50% 50%);
  transition: scale .8s cubic-bezier(.2,.7,.2,1); pointer-events: none; -webkit-user-drag: none; user-select: none;
}
.gig:hover img { scale: 1.04; }
.gig__tag {
  position: absolute; top: 18px; right: 18px;
  background: rgba(5,6,8,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.gig__tag small { color: var(--accent); font-size: 13px; margin-left: 4px; }

/* FAQ – accordion */
.faq__list { max-width: 900px; border-top: 1px solid rgba(224,211,254,.16); }
.faq__item { border-bottom: 1px solid rgba(224,211,254,.16); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(224,211,254,.3); color: var(--nyx-lilac); font-size: 22px; font-weight: 400; line-height: 1;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.faq__item.is-open summary::after { transform: rotate(45deg); background: var(--nyx-lilac); color: var(--nyx-midnight); }
.faq__item summary:hover { color: #fff; }
.faq__item summary:focus-visible { outline: 2px solid var(--nyx-lilac); outline-offset: 4px; border-radius: 6px; }
.faq__answer { overflow: hidden; color: rgba(224,211,254,.82); font-size: 17px; }
.faq__answer p { padding: 0 60px 26px 0; }
.faq__answer p { margin: 0; max-width: 740px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro h2 { margin-bottom: 24px; }
.contact__links { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; }
.contact__links a { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.contact__links a:hover { color: var(--accent); border-color: var(--accent); }

.form { display: grid; gap: 18px; background: #08070c; border: 1px solid rgba(224,211,254,.14); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 44px); position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; color: rgba(224, 211, 254, .92); }
.form input, .form select, .form textarea {
  width: 100%; font: 16px var(--body); color: var(--text); background: #15131d;
  border: 1px solid rgba(224, 211, 254, .26); border-radius: 14px; padding: 14px 16px; outline: none;
  transition: border-color .2s; color-scheme: dark;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(224, 211, 254, .6); opacity: 1; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--violet); }
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; margin-top: 6px; }

/* Footer */
.footer { padding: 0 var(--gutter) calc(clamp(80px, 12vh, 140px) + 12px); overflow: hidden; } /* clears the bottom blur */
.footer__mark { margin: 0 0 28px; }
.footer__mark img {
  width: 100%; height: auto; opacity: .16;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%); mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
}
.footer__bar { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }
.footer__bar a { text-decoration: none; }
.footer__bar a:hover { color: var(--text); }

.hero__content { position: relative; z-index: 1; }

/* ---------- Intro: "seen on" line ---------- */
.about__intro { margin-top: clamp(24px, 2.6vw, 34px); max-width: 560px; }
.about__intro p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 0 .9em; }
.about__intro p:last-child { margin-bottom: 0; }
.seen-on { margin-top: clamp(28px, 3vw, 40px); }
.seen-on__label { font-family: var(--label); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.seen-on__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; color: var(--text); }
.seen-on__list span + span::before { content: "✦"; color: var(--gold); font-size: .7em; margin-right: 14px; }


/* ---------- Night-sky background: faint violet tint + soft starfield (fixed behind everything) ---------- */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before {
  z-index: -3;
  background:
    linear-gradient(180deg, #050608 0%, #07060b 45%, #09070e 75%, #050608 100%);
}
body::after {
  z-index: -2; opacity: .35;
  background-image:
    radial-gradient(1px 1px at 23px 41px, rgba(224, 211, 254, .9), transparent 60%),
    radial-gradient(1px 1px at 141px 97px, rgba(224, 211, 254, .6), transparent 60%),
    radial-gradient(1.3px 1.3px at 211px 233px, rgba(224, 211, 254, .8), transparent 60%),
    radial-gradient(1px 1px at 77px 281px, rgba(224, 211, 254, .5), transparent 60%),
    radial-gradient(1.2px 1.2px at 268px 152px, rgba(247, 223, 128, .7), transparent 60%),
    radial-gradient(1px 1px at 333px 61px, rgba(224, 211, 254, .7), transparent 60%),
    radial-gradient(1px 1px at 389px 320px, rgba(224, 211, 254, .6), transparent 60%);
  background-size: 420px 380px;
}

/* Glitter: tiny four-point sparkles behind the content. The layer drifts slower than the
   page when scrolling (parallax, main.js) so it reads as deep background; each sparkle pulses. */
.glitter { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glitter__tile { position: absolute; left: 0; top: 0; width: 100%; height: 200%; will-change: transform; }
.glitter i {
  position: absolute; width: var(--s); height: var(--s); translate: -50% -50%;
  background: #fff; opacity: .15;
  clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
  animation: glint var(--t) ease-in-out var(--d) infinite;
}
.glitter i.g { background: var(--gold); }
.glitter i.l { background: var(--nyx-lilac); }
@keyframes glint {
  0%, 100% { opacity: .12; scale: .45; }
  50% { opacity: 1; scale: 1; }
}
@media (prefers-reduced-motion: reduce) { .glitter i { animation: none; opacity: .4; } }

/* ---------- Progressive blur pinned to the bottom of the screen ---------- */
.edge-blur { position: fixed; left: 0; right: 0; bottom: 0; height: clamp(80px, 12vh, 140px); z-index: 30; pointer-events: none; }
.edge-blur span { position: absolute; inset: 0; }
.edge-blur span:nth-child(1) { backdrop-filter: blur(1px);  -webkit-backdrop-filter: blur(1px);  -webkit-mask: linear-gradient(to top, #000 0%, #000 60%, transparent 100%); mask: linear-gradient(to top, #000 0%, #000 60%, transparent 100%); }
.edge-blur span:nth-child(2) { backdrop-filter: blur(3px);  -webkit-backdrop-filter: blur(3px);  -webkit-mask: linear-gradient(to top, #000 0%, #000 40%, transparent 75%); mask: linear-gradient(to top, #000 0%, #000 40%, transparent 75%); }
.edge-blur span:nth-child(3) { backdrop-filter: blur(6px);  -webkit-backdrop-filter: blur(6px);  -webkit-mask: linear-gradient(to top, #000 0%, #000 20%, transparent 50%); mask: linear-gradient(to top, #000 0%, #000 20%, transparent 50%); }
.edge-blur span:nth-child(4) { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); -webkit-mask: linear-gradient(to top, #000 0%, transparent 30%); mask: linear-gradient(to top, #000 0%, transparent 30%); }
.edge-blur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 6, 8, .55), rgba(5, 6, 8, 0)); }

/* ---------- Animation support (animations.js) ---------- */
html.lenis, html.lenis body { height: auto; }
/* Lenis does the smooth scrolling; CSS smooth scrolling would make ScrollTrigger measure positions mid-glide after a resize */
html.lenis, html.gsap-on { scroll-behavior: auto !important; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.gsap-on .reveal { opacity: 1; transform: none; transition: none; }
.gsap-on .hero__track, .gsap-on .ticker__track { animation: none; }
h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
h2 .wi { display: inline-block; will-change: transform; }
.hero__descriptor .ch { display: inline-block; }
.about__media, .reel { will-change: clip-path; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .offers, .about, .contact { grid-template-columns: 1fr; }
  .about { gap: 36px; }
  /* phone order: heading, numbers, photo, "Nähty mm.", intro text */
  .about { align-items: stretch; }
  .about__text { display: contents; }
  .about__text h2 { order: 1; }
  .about__text .stats { order: 2; margin-top: 0; }
  .about__media { order: 3; }
  .about__text .seen-on { order: 4; margin-top: 0; }
  .about__text .about__intro { order: 5; margin-top: 0; }
  /* Mobile: every section fills the screen, content centred vertically */
  .hero { height: 100vh; height: 100svh; }
  .section {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding-block: 88px 56px;
  }
  .showreel { padding-top: 88px; }
  .contact > .contact__intro, .contact > .form { width: 100%; align-self: stretch; }
  .section__head { margin-bottom: 40px; }
  .hero__wordmark { width: 86vw; }
  .hero__track img { width: 28vw; }
  .hero__track img:nth-child(3n+2) { width: 38vw; }
  .hero__descriptor { font-size: clamp(13px, 2.6vw, 18px); }
  .hero__tagline { font-size: clamp(18px, 3.6vw, 26px); }
  .offer__list li { flex-direction: column; gap: 2px; text-align: left; }
  .reel { aspect-ratio: 9 / 16; width: min(100%, calc(82svh * 9 / 16)); margin-inline: auto; }
  .reel__label { left: 20px; right: 20px; bottom: 20px; text-align: center; }
  .about__media img { aspect-ratio: 4 / 5; object-position: 50% 45%; }
  .about__text p { font-size: 17px; }
  .ticker { padding: 14px 0; }
  .ticker span { font-size: 22px; padding: 0 18px; gap: 36px; }
  .insta__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .members { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__rows { gap: 16px; inset: -30% -70%; }
  .hero__track { gap: 16px; }
  .hero__track img { border-radius: 20px; }
  .hero__glow { width: 110vw; }
  .form__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, auto); justify-content: start; gap: 40px; }
  .stats dt { font-size: 12vw; }
  .stats dd { font-size: 13px; }
  .gig { border-radius: 20px; width: 72vw; }
  .gigs { gap: 12px; }
  .gig__tag { top: 12px; right: 12px; font-size: 13px; padding: 6px 12px; }
  .insta__grid a:nth-child(n+4) { display: none; }
  .member__photo { border-radius: 18px; margin-bottom: 14px; }
  /* phones: all dancers visible in a 2-column grid, cards as wide as possible */
  .members { grid-template-columns: 1fr 1fr; gap: 24px 10px; margin-inline: calc(var(--gutter) * -0.5); }
  .member h3 { font-size: 22px; }
  .member__bio { font-size: 14px; }
  .reel__label { left: 20px; bottom: 18px; }
  /* phones: newest post large on top, the next two side by side below */
  .insta__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .insta__grid a { border-radius: 16px; }
  .insta__grid a:first-child { grid-column: span 2; }
  .insta__grid.is-posts { gap: 12px; }
  .insta__grid.is-posts a.ig-post:nth-child(n+4) { display: none; } /* phones: 3 newest posts */
  .insta__grid.is-posts a.ig-post:not(:first-child) .ig-post__head { padding: 8px 10px; gap: 7px; }
  .insta__grid.is-posts a.ig-post:not(:first-child) .ig-post__avatar { width: 24px; height: 24px; }
  .insta__grid.is-posts a.ig-post:not(:first-child) .ig-post__user { font-size: 12px; }
  .insta__grid.is-posts a.ig-post:not(:first-child) .ig-post__more { display: none; }
  .insta__grid.is-posts a.ig-post:not(:first-child) .ig-post__actions { gap: 10px; padding: 8px 10px 10px; }
  .insta__grid.is-posts a.ig-post:not(:first-child) .ig-post__actions svg { width: 18px; height: 18px; }
  .insta__grid.is-posts a.ig-post:not(:first-child) .ig-post__caption { display: none; }
}

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