/* ============ Palingen Studios ============ */
:root {
  --bg: #08080d;
  --bg-2: #0e0d17;
  --panel: #12111d;
  --text: #f4f4f6;
  --muted: #a4a3b4;
  --pink: #ec4899;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 20px;
  --nav-h: 76px;
  /* z-scale: 10 content chrome, 20 nav, 50 cursor glow */
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Archivo", system-ui, sans-serif; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.45rem; font-weight: 700; }

a { color: inherit; }
img, canvas { display: block; max-width: 100%; }

.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;
}

::selection { background: var(--pink); color: #fff; }

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

/* ============ Cursor glow ============ */
#glow {
  position: fixed;
  top: 0; left: 0;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  pointer-events: none;
  z-index: 50;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(236, 72, 153, 0.10) 0%,
    rgba(139, 92, 246, 0.06) 35%,
    transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
@media (pointer: coarse) { #glow { display: none; } }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 14px; left: 16px; right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(10, 9, 17, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.06rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-brand em { font-style: normal; color: var(--pink); }
.nav-mark { width: 26px; height: 26px; color: var(--pink); }
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-icon svg { width: 20px; height: 20px; }
.nav-icon:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 720px) {
  .nav-icon { display: none; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.btn-primary:hover {
  background: #f472b6;
  border-color: #f472b6;
  box-shadow: 0 6px 30px rgba(236, 72, 153, 0.35);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-big { padding: 18px 36px; font-size: clamp(1rem, 2.6vw, 1.3rem); }

/* ============ Sections shared ============ */
main > section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) 24px;
}
.kicker {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--pink);
  margin-bottom: 14px;
}
.section-head { margin-bottom: clamp(36px, 6vw, 64px); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  max-width: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 20% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(900px 550px at 85% 110%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--bg);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: calc(var(--nav-h) + 20px) 24px 90px;
  max-width: 860px;
  pointer-events: none;
}
.hero-inner a, .hero-inner .btn { pointer-events: auto; }
.eyebrow {
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.eyebrow-def { color: var(--pink); }
.hero-word-space { height: clamp(120px, 24vw, 260px); }
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-hint {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}
.hero-hint svg { width: 16px; height: 16px; }
@media (pointer: coarse) {
  .hero-hint { display: none; }
}
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--muted);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: color 0.2s ease;
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue svg { width: 26px; height: 26px; animation: cue-bob 2.2s ease-in-out infinite; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none; }
}

/* ============ Pillars ============ */
.pillars h2 { max-width: 600px; }
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; }
}
.pillar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.pillar-local:hover { border-color: rgba(236, 72, 153, 0.5); box-shadow: 0 18px 60px rgba(236, 72, 153, 0.12); }
.pillar-web:hover { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 18px 60px rgba(34, 211, 238, 0.10); }
.pillar-visual {
  position: relative;
  aspect-ratio: 16 / 8;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.pillar-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pillar-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-family: "Archivo", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(8, 8, 13, 0.65);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.pillar-local .pillar-tag { color: #f9a8d4; }
.pillar-web .pillar-tag { color: #a5f3fc; }
.pillar-body { padding: 30px 30px 34px; }
.pillar-body h3 { margin-bottom: 12px; }
.pillar-body > p { color: var(--muted); margin-bottom: 22px; }
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
}
.feature-list svg {
  width: 21px; height: 21px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pillar-local .feature-list svg { color: var(--pink); }
.pillar-web .feature-list svg { color: var(--cyan); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}
.stat strong {
  font-family: "Archivo", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--muted); font-size: 0.95rem; }

/* ============ Empty state ============ */
.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.98rem;
}

/* ============ Gallery ============ */
.gallery h2 { max-width: 640px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  aspect-ratio: 4 / 5;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 16px 14px;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(6, 6, 10, 0.92);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  max-width: min(1000px, 84vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox-img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 12px;
  margin: 0 auto;
  object-fit: contain;
}
.lightbox-caption {
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}
.lightbox-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.14); }
.lightbox-btn svg { width: 20px; height: 20px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
}

/* ============ Inspiration ============ */
.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.inspo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.inspo-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
}
.inspo-media img { width: 100%; height: 100%; object-fit: cover; }
.inspo-media iframe { width: 100%; height: 100%; border: 0; }
.inspo-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(8, 8, 13, 0.28);
  transition: background-color 0.2s ease;
}
.inspo-media--playing .inspo-play { display: none; }
.inspo-play svg { width: 46px; height: 46px; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)); }
.inspo-media:hover .inspo-play { background: rgba(8, 8, 13, 0.1); }
.inspo-body { padding: 18px 20px 22px; }
.inspo-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.inspo-body p { color: var(--muted); font-size: 0.92rem; }
.inspo-artist {
  display: block;
  padding: 24px 22px;
  text-decoration: none;
  min-height: 100%;
}
.inspo-artist h3 { font-size: 1.1rem; margin-bottom: 8px; }
.inspo-artist p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.inspo-tag {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
}
.inspo-artist:hover .inspo-tag { text-decoration: underline; }

/* ============ Links ============ */
.links-list { list-style: none; display: grid; gap: 12px; }
.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.link-item:hover { border-color: rgba(236, 72, 153, 0.45); background: #16141f; }
.link-label {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}
.link-desc { color: var(--muted); font-size: 0.92rem; flex: 1; }
.link-arrow { color: var(--pink); flex-shrink: 0; }
.link-arrow svg { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .link-item { flex-wrap: wrap; }
  .link-desc { order: 3; width: 100%; }
}

/* ============ Paint wall ============ */
.wall h2 { max-width: 640px; }
.wall-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
#wall-canvas {
  width: 100%;
  height: clamp(300px, 48vw, 460px);
  cursor: crosshair;
  touch-action: none;
}
.wall-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.wall-hint { color: var(--muted); font-size: 0.9rem; }

/* ============ Process ============ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 30px;
  background: var(--panel);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.step:hover { border-color: rgba(236, 72, 153, 0.45); background: #16141f; }
.step-num {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--pink);
  display: block;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ============ Contact ============ */
.contact {
  text-align: center;
  scroll-margin-top: var(--nav-h);
}
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.contact-sub {
  color: var(--muted);
  max-width: 560px;
  margin: 20px auto 40px;
}
.contact-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.contact-secondary svg { width: 18px; height: 18px; }
.contact-secondary:hover { color: var(--text); }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-def { opacity: 0.7; }
.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-instagram svg { width: 16px; height: 16px; }
.footer-instagram:hover { color: var(--text); }

/* ============ Small screens ============ */
@media (max-width: 1060px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.86rem; }
}
@media (max-width: 780px) {
  .nav { gap: 14px; padding: 10px 14px; }
  .nav-links { display: none; }
  .nav-brand span { font-size: 0.98rem; }
}
