/* ==========================================================================
   KremeFresh — Design System
   Industrial / 90s Acid-Techno Club Atmosphere. Dark, adult, precise.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --black: #000000;
  --near-black: #0a0a0a;
  --panel: #121212;
  --panel-raised: #171717;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --white: #f5f5f5;
  --grey: #9a9a9a;
  --grey-dim: #6b6b6b;
  --red: #d5171e;
  --red-bright: #ff2b32;
  --red-dim: #7a0d12;

  --font-display: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Film-grain / industrial noise overlay across the whole site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}

.lede {
  font-size: 1.15rem;
  color: var(--grey);
  max-width: 60ch;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: all 0.25s ease;
  background: transparent;
  color: var(--white);
}

.btn:hover {
  border-color: var(--red);
  color: var(--red-bright);
  box-shadow: 0 0 24px rgba(213, 23, 30, 0.35);
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: var(--white);
  box-shadow: 0 0 28px rgba(255, 43, 50, 0.5);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.brand-word {
  height: 18px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-bright);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 2;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span { top: 11px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); background: var(--red); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); background: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--near-black);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand .brand-mark { width: 48px; height: 48px; border-radius: 50%; }
.footer-brand .brand-word { height: 20px; margin-bottom: 6px; }

.footer-brand div { max-width: 320px; }

.footer-brand p { color: var(--grey-dim); font-size: 0.9rem; }

.social-row {
  display: flex;
  gap: 14px;
}

.social-row a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-row a:hover {
  border-color: var(--red);
  color: var(--red-bright);
  box-shadow: 0 0 16px rgba(213, 23, 30, 0.4);
}

.social-row svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--grey-dim);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--white); }

/* ---------- Page header (non-home pages) ---------- */
.page-hero {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(213, 23, 30, 0.14), transparent 70%);
}

.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-top: 14px; }
.page-hero .lede { margin-top: 18px; }

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover { border-color: var(--line-strong); }

/* ---------- Utility ---------- */
.section { padding: 100px 0; }
.section-tight { padding: 64px 0; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 78% 30%, rgba(213, 23, 30, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(213, 23, 30, 0.1), transparent 60%),
    var(--black);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-brand { display: flex; align-items: center; gap: 16px; }
.hero-brand .brand-mark { width: 56px; height: 56px; border-radius: 50%; }
.hero-brand .brand-word { height: 30px; }

.hero-title {
  font-size: clamp(3rem, 7vw, 5.6rem);
  margin-top: 18px;
  color: var(--white);
  text-shadow: 0 0 40px rgba(213, 23, 30, 0.35);
}

.hero-title br { }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  border-radius: 4px;
  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.hero-scroll span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--red);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 6px; }
}

/* ---------- Sound / Manifesto section ---------- */
.sound-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--near-black);
}

.sound-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 20ch;
  margin: 0 auto;
}

.sound-text {
  max-width: 640px;
  margin: 0 auto;
  color: var(--grey);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.sound-text strong { color: var(--white); }

.sound-line {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.sound-line-accent { color: var(--red-bright); }

.sound-tags {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sound-tags span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  color: var(--grey);
}

/* ---------- Projects teaser ---------- */
.projects-teaser h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 16ch; }

/* ---------- Music page ---------- */
.spotify-embed iframe { display: block; }

.release-label {
  font-size: 0.88rem;
  color: var(--grey);
  margin-bottom: 10px;
}

.release-label em { color: var(--white); font-style: normal; }

.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.link-card-title { font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.link-card-title em { color: var(--grey); font-style: normal; }

.link-card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--grey-dim);
  transition: color 0.2s ease, transform 0.2s ease;
}

.link-card:hover .link-card-arrow { color: var(--red-bright); transform: translate(3px, -3px); }
.link-card:hover { border-color: var(--red-dim); }

.project-block {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.project-block h3 { font-size: 1.8rem; }

@media (max-width: 860px) {
  .project-block { grid-template-columns: 1fr; }
}

/* ---------- About page ---------- */
.prose {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--grey);
  font-size: 1.05rem;
}

.prose strong { color: var(--white); }

.pull-quote {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--white);
  border-left: 3px solid var(--red);
  padding-left: 20px;
  margin: 10px 0;
}

.milestones {
  max-width: 720px;
  border-top: 1px solid var(--line);
}

.milestones li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.milestones li span {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.milestones li em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--red);
  text-align: right;
  white-space: nowrap;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-top: 14px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.contact-email:hover { color: var(--red-bright); }

.contact-side { border-left: 1px solid var(--line); padding-left: 40px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
}

/* ---------- Legal page ---------- */
.legal { max-width: 700px; color: var(--grey); }
.legal h2 { font-size: 1.6rem; color: var(--white); margin-bottom: 20px; }
.legal h3 { font-size: 1.05rem; color: var(--white); margin: 32px 0 12px; letter-spacing: 0.02em; }
.legal p { margin-bottom: 16px; }
.legal a { color: var(--red-bright); }
.legal-list { margin: 0 0 16px 20px; }
.legal-list li { list-style: disc; margin-bottom: 6px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 20px; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; margin-bottom: 20px; }
  .hero-actions { justify-content: center; }
  .hero-brand { justify-content: center; }
  .hero-photo { max-width: 300px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; left: 0; right: 0; height: 100vh; background: var(--black); flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 116px 24px 40px; gap: 28px; transform: translateX(100%); transition: transform 0.3s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 1rem; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
