/* ============================================================
   DJ Matucho — matucho1337.com
   Static landing · Brand Kit V1 (Automaty)
   Dark · cinematic · minimal
   ============================================================ */

/* ── Brand tokens ─────────────────────────────────────────── */
:root {
  /* Palette */
  --black-void:    #0A0A0A;
  --deep-graphite: #151515;
  --wet-asphalt:   #1C1C1E;
  --concrete-grey: #2B2B2E;
  --mist-white:    #F5F5F5;
  --steel-grey:    #6B7280;
  --neon-cyan:     #6FFFE9;
  --soft-cyan:     #A7FFF1;
  --ocean-teal:    #1F8A8A;

  /* Roles */
  --bg:        var(--black-void);
  --surface:   var(--deep-graphite);
  --surface-2: var(--wet-asphalt);
  --text:      var(--mist-white);
  --muted:     #8A8A92;
  --accent:    var(--neon-cyan);
  --accent-2:  var(--ocean-teal);
  --border:    rgba(245, 245, 245, 0.10);
  --border-strong: rgba(245, 245, 245, 0.18);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, 'Arial', sans-serif;
  --font-body:    'Inter', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'Courier New', monospace;

  /* Radii */
  --radius-m:    10px;
  --radius-l:    18px;
  --radius-pill: 999px;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--neon-cyan); color: var(--black-void); }

/* Cinematic film-grain + glow backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(111, 255, 233, 0.10), transparent 60%),
    radial-gradient(700px 700px at -10% 12%, rgba(31, 138, 138, 0.12), transparent 55%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Shared layout ────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

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

.section {
  padding-block: clamp(72px, 11vw, 140px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(30px, 5vw, 50px);
  margin-top: 20px;
}
.section-head p {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  margin-top: 16px;
  max-width: 60ch;
}

/* ── Navbar ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 16px;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mark { width: 24px; height: 24px; overflow: visible; }
.brand .mark rect { transition: transform .3s ease; }
.brand:hover .mark .bar-accent { filter: drop-shadow(0 0 6px var(--neon-cyan)); }
.brand .name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 16px;
}
.brand .name b { color: var(--accent); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { display: inline-flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .2s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--neon-cyan);
  color: var(--black-void);
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(111, 255, 233, 0.45);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px -6px rgba(111, 255, 233, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(245, 245, 245, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(245, 245, 245, 0.08);
  border-color: rgba(245, 245, 245, 0.34);
  transform: translateY(-2px);
}

.btn-line {
  background: transparent;
  color: var(--text);
  border-color: transparent;
  padding-inline: 4px;
}
.btn-line:hover { color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  width: 100%;
}
.hero-loc {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.hero-loc .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.94;
  font-size: clamp(54px, 12vw, 132px);
  margin-bottom: 22px;
}
.hero h1 .glow { color: var(--mist-white); position: relative; }

.hero-roles {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 3vw, 28px);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero-roles .sep { color: var(--accent); margin-inline: 8px; }

.hero-sub {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 46ch;
  margin-bottom: 38px;
}

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

/* Equalizer art (mirrors the brand isotype) */
.hero-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.6vw, 18px);
  height: clamp(220px, 34vw, 360px);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, rgba(245,245,245,0.04), rgba(245,245,245,0));
  width: 100%;
  justify-content: center;
}
.equalizer span {
  width: clamp(12px, 1.8vw, 20px);
  background: var(--mist-white);
  border-radius: 3px;
  transform-origin: bottom;
  animation: eq 1.6s ease-in-out infinite;
}
.equalizer span:nth-child(1) { height: 18%; animation-delay: -1.1s; }
.equalizer span:nth-child(2) { height: 54%; animation-delay: -0.4s; }
.equalizer span:nth-child(3) { height: 38%; animation-delay: -0.8s; }
.equalizer span:nth-child(4) {
  height: 100%;
  background: var(--neon-cyan);
  box-shadow: 0 0 24px rgba(111, 255, 233, 0.55);
  animation-delay: -0.2s;
}
.equalizer span:nth-child(5) { height: 44%; animation-delay: -0.6s; }
@keyframes eq { 0%,100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }

/* ── Services ─────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: 28px 24px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(245,245,245,0.035), rgba(245,245,245,0));
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(245,245,245,0.06), rgba(245,245,245,0));
}
.card:hover::after { transform: scaleX(1); }
.card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 18px 0 10px;
}
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ── Visual work / gallery ────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(150px, 18vw, 220px);
  gap: 14px;
}
.work {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--border);
  /* Elegant placeholder — shows when no photo is dropped in */
  background:
    linear-gradient(135deg, rgba(31,138,138,0.22), rgba(10,10,10,0.4)),
    repeating-linear-gradient(45deg, rgba(245,245,245,0.03) 0 2px, transparent 2px 12px),
    var(--surface-2);
  transition: transform .4s ease, border-color .4s ease;
}
/* Mosaic layout */
.work.span-2 { grid-column: span 2; }
.work.span-3 { grid-column: span 3; }
.work.tall   { grid-row: span 2; }
.work img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.work .work-tag {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-white);
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(10,10,10,0.55));
  opacity: 0;
  transition: opacity .4s ease;
}
.work:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.work:hover::after { opacity: 1; }

.gallery-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel-grey);
  letter-spacing: 0.04em;
}

/* ── Projects ─────────────────────────────────────────────── */
.projects-list {
  border-top: 1px solid var(--border);
}
.project {
  display: grid;
  grid-template-columns: 56px 1.1fr 2fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--border);
  transition: padding-left .3s ease, background .3s ease;
}
.project:hover { padding-left: 20px; background: rgba(245,245,245,0.02); }
.project .p-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel-grey);
}
.project .p-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.01em;
}
.project:hover .p-name { color: var(--accent); }
.project .p-desc { color: var(--muted); font-size: 15px; }
.project .p-tag {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* ── About ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.about-copy p {
  font-size: clamp(20px, 3vw, 30px);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.015em;
}
.about-copy p + p { margin-top: 22px; }
.about-copy .lead-accent { color: var(--accent); }
.about-meta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 100% at 70% 0%, rgba(111,255,233,0.14), transparent 55%),
    linear-gradient(160deg, var(--concrete-grey), var(--black-void));
}
.about-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-portrait .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-grey);
}

/* ── Contact ──────────────────────────────────────────────── */
.contact {
  border-top: 1px solid var(--border);
}
.contact-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-size: clamp(40px, 9vw, 104px);
  margin: 18px 0 10px;
}
.contact-head p { color: var(--muted); font-size: clamp(15px, 2vw, 19px); max-width: 48ch; }
.contact-links {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(245,245,245,0.03), transparent);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(111,255,233,0.06), transparent);
}
.contact-card .c-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-card .c-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: -0.01em;
}
.contact-card .c-meta { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.contact-card .c-meta svg { width: 15px; height: 15px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 40px 48px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer .brand .name { font-size: 15px; }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel-grey);
  letter-spacing: 0.04em;
}
.footer-meta a:hover { color: var(--accent); }

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .work.span-3 { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; }
  .project { grid-template-columns: 40px 1fr; gap: 6px 16px; padding-block: 22px; }
  .project .p-desc { grid-column: 2; }
  .project .p-tag { grid-column: 2; justify-self: start; margin-top: 6px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta .btn:not(.menu-toggle) { display: none; }
  .menu-toggle { display: inline-flex; }

  /* Mobile slide-down menu */
  .nav.open { background: rgba(10,10,10,0.96); backdrop-filter: blur(16px); }
  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 16px;
  }
  .nav.open .mobile-menu { display: flex; }
  .mobile-menu a {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    padding: 12px 2px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .mobile-menu .btn { margin-top: 14px; }

  .contact-links { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .work.span-2, .work.span-3 { grid-column: span 2; }
  .work.tall { grid-row: span 1; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
}

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

/* Desktop: hide mobile menu container */
@media (min-width: 721px) { .mobile-menu { display: none !important; } }
