/* ==========================================================================
   ImageSound Now — Design System
   ==========================================================================

   Palette
   -------
   --ink     #0A0E17  base background — near-black indigo, a dark scoring stage
   --ink-2   #0E1422  slightly raised background (sections that alternate)
   --slate   #131A2A  panel / card background
   --paper   #ECEDF1  primary text — warm-cool off-white, not stark white
   --fog     #98A2B8  muted text / secondary copy
   --brass   #C6A15B  primary accent — muted gold (brass instruments, spotlight)
   --ember   #8C3A2B  secondary accent — deep red, used sparingly (stage light, VU peak)

   Type pairing
   ------------
   Display : "Fraunces" — a soft-serif with dramatic optical sizing and true
             italics; reads like a film title card, not a generic serif.
   Body    : "Inter" — clean, highly legible grotesque for body copy, labels,
             and UI chrome.

   Layout concept
   --------------
   Full-bleed, dark cinematic sections with generous vertical rhythm. Thin
   brass rule lines mark transitions instead of hard borders. Content sits in
   an asymmetric grid (not centered/boxed) to feel considered rather than
   templated. Sticky nav starts transparent over the hero and gains a
   blurred backing once the page scrolls.

   Signature visual element
   -------------------------
   The "waveform strip": a thin horizontal band of vertical bars, styled as
   a hybrid of an audio waveform and film-strip sprocket holes. It appears
   once, large and animated, in the hero, and recurs small and static as a
   section divider — the visual thread that ties the page together.
   ========================================================================== */

:root {
  --ink: #0a0e17;
  --ink-2: #0e1422;
  --slate: #131a2a;
  --slate-2: #1a2236;
  --paper: #ecedf1;
  --fog: #98a2b8;
  --brass: #c6a15b;
  --brass-bright: #ddbd7e;
  --ember: #8c3a2b;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 2px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  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;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--brass);
  color: var(--ink);
  padding: 0.75em 1.25em;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--gutter);
  top: 0.75rem;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.section-alt {
  background: var(--ink-2);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--fog);
  max-width: 38rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.9em;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--brass);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--brass-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(236, 237, 241, 0.25);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}

/* ---------- Waveform strip (signature element) ---------- */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
  width: 100%;
}

.waveform span {
  flex: 1 0 auto;
  background: var(--brass);
  border-radius: 1px;
  opacity: 0.85;
}

.waveform--hero {
  height: clamp(56px, 9vw, 96px);
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
}

.waveform--hero span {
  animation: wf-pulse 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.06s);
}

@keyframes wf-pulse {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

.waveform--divider {
  height: 18px;
  max-width: 220px;
  margin: 0 auto;
  opacity: 0.5;
}

.waveform--divider span {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .waveform--hero span {
    animation: none;
    transform: scaleY(0.7);
  }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.35rem 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 14, 23, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(198, 161, 91, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
}

.brand span {
  color: var(--brass);
}

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--fog);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--brass-bright);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    background: var(--ink-2);
    padding: 6rem var(--gutter) 3rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(198, 161, 91, 0.15);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 15%, rgba(198, 161, 91, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 100%, rgba(140, 58, 43, 0.12), transparent 60%),
    var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.42;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.35) 0%, rgba(10, 14, 23, 0.6) 55%, var(--ink) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.75rem;
}

.hero-kicker::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--brass);
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  max-width: 18ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--brass-bright);
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--fog);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.75rem;
}

.hero-location {
  margin-top: 3.5rem;
  font-size: 0.85rem;
  color: var(--fog);
  letter-spacing: 0.02em;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: clamp(150px, 18vw, 210px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-portrait {
  aspect-ratio: 4 / 5;
  background: var(--slate);
  border: 1px solid rgba(198, 161, 91, 0.2);
  overflow: hidden;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-copy p + p {
  margin-top: 1.3rem;
}

.about-copy p {
  color: var(--fog);
  font-size: 1.05rem;
}

.about-copy p:first-child {
  color: var(--paper);
  font-size: 1.15rem;
}

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

  .about-portrait {
    max-width: 22rem;
  }
}

/* ---------- Studio ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
}

.studio-media {
  position: relative;
}

.studio-media img:first-child {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(198, 161, 91, 0.2);
  display: block;
}

.studio-media img:last-child {
  position: absolute;
  width: 52%;
  right: -6%;
  bottom: -10%;
  border: 4px solid var(--ink-2);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

.gear-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
}

.gear-group {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(152, 162, 184, 0.18);
}

.gear-group dt {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.4rem;
}

.gear-group dd {
  margin: 0;
  color: var(--paper);
  font-size: 1.08rem;
}

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

  .studio-media {
    max-width: 26rem;
    margin: 0 auto 3rem;
  }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(152, 162, 184, 0.18);
  border: 1px solid rgba(152, 162, 184, 0.18);
}

.service-card {
  position: relative;
  background: var(--ink);
  padding: clamp(2rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-img);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  transition: opacity 0.3s var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.35) 0%, var(--ink) 88%);
}

.service-card:hover::before {
  opacity: 0.26;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--brass);
  letter-spacing: 0.05em;
}

.service-card h3 {
  color: var(--paper);
}

.service-card p {
  color: var(--fog);
  font-size: 0.98rem;
}

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

/* ---------- Listen ---------- */
#listen {
  padding-top: 0;
}

.listen-banner {
  position: relative;
  height: clamp(140px, 22vw, 220px);
  overflow: hidden;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.listen-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.55;
}

.listen-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.15) 0%, var(--ink) 96%);
}

.listen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.embed-card {
  background: var(--slate);
  border: 1px solid rgba(198, 161, 91, 0.18);
  padding: 1.25rem;
}

.embed-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 1rem;
}

.cue-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: 999px;
  padding: 0.25em 0.7em;
  margin-bottom: 0.75rem;
}

.embed-card audio {
  width: 100%;
  accent-color: var(--brass);
}

.embed-frame {
  position: relative;
  width: 100%;
  /* Standard SoundCloud track-embed aspect; adjust height per embed if needed. */
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
  border: 1px dashed rgba(198, 161, 91, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-placeholder-text {
  color: var(--fog);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.5rem;
  line-height: 1.7;
}

.listen-profile-link {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.listen-profile-link + .listen-profile-link {
  margin-top: 0.75rem;
}

.listen-profile-link a {
  color: var(--brass-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(198, 161, 91, 0.5);
}

.listen-profile-link a:hover {
  text-decoration-color: var(--brass-bright);
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.contact-card {
  background: var(--slate);
  border: 1px solid rgba(198, 161, 91, 0.2);
  padding: clamp(2rem, 4vw, 2.75rem);
}

.contact-card h3 {
  margin-bottom: 0.6rem;
}

.contact-card p {
  color: var(--fog);
}

.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brass-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 161, 91, 0.4);
  padding-bottom: 0.2rem;
}

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

.contact-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(152, 162, 184, 0.18);
  font-size: 0.85rem;
  color: var(--fog);
}

/* Contact form */
.contact-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid rgba(152, 162, 184, 0.28);
  border-radius: var(--radius);
  padding: 0.7em 0.85em;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%),
    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 1.15rem, calc(100% - 0.75rem) 1.15rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 2px rgba(198, 161, 91, 0.25);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
  border: 0;
  cursor: pointer;
}

/* Honeypot: hidden from real users, catches bots that fill every field. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--brass-bright);
}

.form-error a {
  color: inherit;
}

.form-success {
  border-left: 2px solid var(--brass);
  padding-left: 1.25rem;
}

.form-success:focus {
  outline: none;
}

.form-success h3 {
  color: var(--paper);
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--fog);
}

@media (max-width: 760px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(152, 162, 184, 0.15);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--fog);
}

.site-footer a {
  color: var(--fog);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brass-bright);
}

/* ---------- Placeholder callouts ---------- */
.placeholder {
  background: rgba(198, 161, 91, 0.08);
  border: 1px dashed rgba(198, 161, 91, 0.45);
  color: var(--brass-bright);
  font-size: 0.85rem;
  padding: 0.15em 0.5em;
}
