/* ============================================
   FRESH GROUND SOUND — Global Styles
   Dark Analog Warmth / Ventura Coast Recording
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@300;400&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --black:      #0a0908;
  --deep:       #111010;
  --warm-dark:  #1a1714;
  --tape:       #c17f3b;
  --amber:      #e8a84c;
  --cream:      #f0e6d3;
  --muted:      #8a7d6e;
  --hairline:   rgba(193,127,59,0.2);
  --glow:       rgba(232,168,76,0.08);
  --red:        #c0392b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Lora', serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── Grain Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.45;
}

/* ── Custom Cursor ── */
.cursor {
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid var(--tape);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.6;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 30px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10,9,8,0.97) 0%, transparent 100%);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(10,9,8,0.97);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.15em;
  color: var(--amber);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo span {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--muted);
  font-weight: 300;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-phone {
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--tape);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-phone:hover { color: var(--amber); }

/* ── Page Header (inner pages) ── */
.page-header {
  padding: 160px 48px 80px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, var(--glow), transparent);
}
.page-header-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--tape);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-header-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--tape);
}
.page-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 8vw, 100px);
  letter-spacing: 0.03em;
  line-height: 0.9;
  color: var(--cream);
  position: relative;
}
.page-header h1 .accent { color: var(--amber); }

/* ── Section Wrapper ── */
.section {
  padding: 96px 48px;
}
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--tape);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--tape);
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.03em;
  color: var(--cream);
  margin-bottom: 48px;
}
.section-title .accent { color: var(--amber); }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ── Buttons ── */
.btn-primary {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--amber);
  padding: 14px 32px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: none;
}
.btn-primary:hover { background: var(--cream); transform: translateY(-2px); }

.btn-ghost {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tape);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: none;
}
.btn-ghost:hover { color: var(--cream); }
.btn-ghost::after { content: '→'; }

/* ── Footer ── */
footer {
  background: var(--deep);
  border-top: 1px solid var(--hairline);
  padding: 64px 48px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 8px;
}
.footer-brand .tagline {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--tape);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-col p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.footer-bottom p {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hamburger Button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: none;
  z-index: 501;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--amber);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.25s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile Nav Overlay ── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 490;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 48px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-links {
  list-style: none;
  text-align: center;
  width: 100%;
}
.mobile-nav-links li {
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav-links li:first-child { border-top: 1px solid var(--hairline); }
.mobile-nav-links li a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 9vw, 52px);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  display: block;
  padding: 14px 0;
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1), color 0.3s;
}
.mobile-nav-overlay.is-open .mobile-nav-links li a { transform: translateY(0); }
.mobile-nav-links li:nth-child(1) a { transition-delay: 0.06s; }
.mobile-nav-links li:nth-child(2) a { transition-delay: 0.11s; }
.mobile-nav-links li:nth-child(3) a { transition-delay: 0.16s; }
.mobile-nav-links li:nth-child(4) a { transition-delay: 0.21s; }
.mobile-nav-links li:nth-child(5) a { transition-delay: 0.26s; }
.mobile-nav-links li a:hover { color: var(--cream); }
.mobile-nav-links li a.active { color: var(--amber); }
.mobile-nav-phone-link {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--tape);
  text-decoration: none;
  margin-top: 36px;
  opacity: 0;
  transition: opacity 0.4s ease 0.32s, color 0.3s;
}
.mobile-nav-overlay.is-open .mobile-nav-phone-link { opacity: 1; }
.mobile-nav-phone-link:hover { color: var(--amber); }

/* ── Mobile ── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 64px 24px; }
  .page-header { padding: 120px 24px 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (min-width: 769px) {
  .nav-hamburger { display: none !important; }
  .mobile-nav-overlay { display: none !important; }
}
