/* ==========================================================================
   MILDENHALL STUDIOS — design tokens
   Palette pulled from the hardware itself: anodized enclosure blacks,
   brushed steel panels, copper trace, amber VU-meter glow.
   ========================================================================== */

:root {
  --ink: #14120F;
  --panel: #1E1B17;
  --panel-raised: #26221C;
  --steel: #8B8478;
  --steel-light: #C9C2B4;
  --copper: #A8623A;
  --amber: #E8A33D;
  --cream: #EDE6D6;
  --line: rgba(237, 230, 214, 0.12);
  --line-strong: rgba(237, 230, 214, 0.22);

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --wrap: 1140px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

/* ==========================================================================
   Signature elements: power LED + rack rail
   ========================================================================== */

.led {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px 1px rgba(232, 163, 61, 0.7);
  margin-right: 10px;
  position: relative;
  top: -1px;
  animation: pulse 3.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.rack-rail {
  height: 28px;
  background-image: radial-gradient(circle, var(--line-strong) 2.5px, transparent 2.6px);
  background-size: 28px 28px;
  background-position: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--steel-light);
  display: flex;
  align-items: center;
  margin: 0 0 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
  max-width: 18ch;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 18, 15, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

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

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wordmark-led {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px 1px rgba(232, 163, 61, 0.7);
  flex-shrink: 0;
}

.wordmark-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark-sub {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--steel-light);
  margin-top: 3px;
}

.wordmark-small .wordmark-text { font-size: 17px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.primary-nav a {
  color: var(--steel-light);
  transition: color 0.15s ease;
}
.primary-nav a:hover { color: var(--cream); }

.nav-shop {
  color: var(--amber) !important;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--cream);
  margin: 0 8px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 96px 0 72px;
  background:
    radial-gradient(circle at 82% 12%, rgba(232, 163, 61, 0.09), transparent 45%),
    var(--panel);
  border-bottom: 1px solid var(--line);
}

.hero-inner { position: relative; max-width: 720px; }

.panel-screws { position: absolute; inset: 0; pointer-events: none; }
.panel-screws span {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.3);
}
.panel-screws span:nth-child(1) { top: 20px; left: 20px; }
.panel-screws span:nth-child(2) { top: 20px; right: 20px; }
.panel-screws span:nth-child(3) { bottom: 20px; left: 20px; }
.panel-screws span:nth-child(4) { bottom: 20px; right: 20px; }

.hero-title {
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 17px;
  color: var(--steel-light);
  max-width: 54ch;
  margin-bottom: 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--ink);
  font-weight: 500;
}
.btn-primary:hover { background: #f0b458; }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.hero-specs {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-specs dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-specs dd {
  margin: 0;
  font-size: 14px;
  color: var(--steel-light);
}

/* ==========================================================================
   Collection
   ========================================================================== */

.collection { padding: 80px 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.product-plate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.product-led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 5px 1px rgba(232, 163, 61, 0.6);
}
.product-model {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.product-card h3 {
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--copper);
  margin-bottom: 14px;
}

.product-desc {
  font-size: 14px;
  color: var(--steel-light);
  margin-bottom: 18px;
}

.product-specs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel-light);
  margin-bottom: 20px;
}
.product-specs li {
  padding: 5px 0;
  border-top: 1px solid var(--line);
}
.product-specs li:first-child { border-top: none; }

.card-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
}
.card-link:hover { text-decoration: underline; }

/* ==========================================================================
   The Sound
   ========================================================================== */

.sound { padding: 88px 0; }

.sound-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: center;
}

.sound-copy p {
  color: var(--steel-light);
  font-size: 15px;
  max-width: 56ch;
}

.sound-meter {
  display: flex;
  justify-content: center;
}

.meter-face {
  position: relative;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.meter-arc {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--amber);
  border-right-color: var(--amber);
  transform: rotate(45deg);
}

.meter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--steel);
}

/* ==========================================================================
   About
   ========================================================================== */

.about { padding: 88px 0; }
.about-inner { max-width: 900px; }
.about-lede {
  font-size: 16px;
  color: var(--steel-light);
  max-width: 66ch;
  margin-bottom: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.about-grid h3 {
  font-size: 18px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
}
.about-grid p {
  font-size: 14px;
  color: var(--steel-light);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { padding: 88px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact p { color: var(--steel-light); font-size: 15px; max-width: 42ch; }

.contact-details { margin-top: 28px; }
.contact-details div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.contact-details dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
  text-transform: uppercase;
}
.contact-details dd { margin: 0; }
.contact-details a:hover { color: var(--amber); }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.contact-form label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  margin-bottom: 18px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--amber);
  outline: none;
}
.contact-form .btn { align-self: flex-start; margin-top: 4px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--steel-light);
}
.footer-nav a:hover { color: var(--amber); }
.footer-legal {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  margin-top: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
  .sound-inner { grid-template-columns: 1fr; }
  .sound-meter { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 0; width: 100%; border-top: 1px solid var(--line); }
  .primary-nav a:first-child { border-top: none; }
  .hero { padding: 64px 0 48px; }
  .hero-specs { gap: 24px; }
}
