:root {
  --color-bg: #070707;
  --color-bg-alt: #0e0e0e;
  --color-surface: #121212;
  --color-border: #262626;
  --color-border-strong: #3c3c3c;
  --color-text: #f2f2ef;
  --color-text-muted: #a3a3a0;
  --color-text-faint: #63635f;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-width: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius: 2px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@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;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

p {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  max-width: 62ch;
}

p:last-child {
  margin-bottom: 0;
}

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

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

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

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.85rem 1.75rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--color-text);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: transparent;
  color: var(--color-text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
}

.brand__logo {
  height: 50px;
  width: auto;
}

.brand__fallback {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand--logo-missing .brand__logo {
  display: none;
}

.brand--logo-missing .brand__fallback {
  display: block;
}

.brand--footer .brand__logo {
  height: 34px;
}

.brand--hero {
  margin-bottom: var(--space-4);
}

.brand__fallback--hero {
  font-size: 1.4rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.95rem;
}

.primary-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.primary-nav a:hover {
  color: var(--color-text);
}

.primary-nav__cta {
  color: var(--color-text) !important;
  border: 1px solid var(--color-border-strong);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
}

.primary-nav__cta:hover {
  border-color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 0 8px;
  background: var(--color-text);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: var(--header-height);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero__mark {
  position: absolute;
  right: -8%;
  bottom: 0;
  width: 60%;
  max-width: 720px;
  height: auto;
  stroke: var(--color-border-strong);
  stroke-width: 1;
  fill: none;
  opacity: 0.7;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
  max-width: 640px;
}

.hero__logo {
  height: 92px;
  width: auto;
}

.hero__title {
  font-size: clamp(2.4rem, 4.4vw + 1rem, 4.2rem);
  margin-bottom: var(--space-3);
}

.hero__subtitle {
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
  max-width: 46ch;
}

.eq {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 0 var(--space-3);
}

.eq span {
  flex: 1 1 auto;
  background: var(--color-border-strong);
  min-width: 2px;
  transform-origin: bottom;
  animation: eq-pulse 2.6s ease-in-out infinite;
}

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

.section {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem);
  margin-bottom: var(--space-4);
}

.section__title + .section__lead {
  margin-top: calc(var(--space-4) * -1 + var(--space-2));
}

.section__lead {
  font-size: 1.05rem;
  margin-bottom: var(--space-4);
}

.section__grid {
  display: grid;
  gap: var(--space-4);
}

.section__grid--intro {
  grid-template-columns: minmax(0, 260px) 1fr;
  align-items: start;
  gap: var(--space-5);
}

.section__body p {
  max-width: 68ch;
}

.section__body p + p {
  margin-top: var(--space-2);
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.service {
  background: var(--color-bg-alt);
  padding: var(--space-4);
}

.service__icon {
  width: 40px;
  height: 40px;
  stroke: var(--color-text);
  stroke-width: 1.4;
  fill: none;
  margin-bottom: var(--space-3);
}

.service h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-1);
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: var(--space-2);
}

.studio-grid__item {
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.studio-grid__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.studio-grid__item--tall {
  grid-row: span 2;
}

.placeholder-img {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  object-fit: cover;
  object-position: center;
}

.placeholder-img--top {
  object-position: top;
}

.placeholder-img--bottom {
  object-position: center 75%;
}

.studio-grid__item figcaption {
  margin-top: var(--space-1);
  font-size: 0.85rem;
  color: var(--color-text-faint);
}

.gallery {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.gallery__track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-2);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}

.gallery__track::-webkit-scrollbar {
  height: 8px;
}

.gallery__track::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: var(--radius);
}

.portfolio-card {
  flex: 0 0 clamp(220px, 28vw, 300px);
  scroll-snap-align: start;
  border: 1px solid var(--color-border);
  padding: var(--space-3);
}

.portfolio-card__img-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.portfolio-card__img-btn:has(video)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.placeholder-img--square {
  aspect-ratio: 1 / 1;
  margin-bottom: var(--space-2);
}

.portfolio-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.portfolio-card p {
  font-size: 0.9rem;
}

.gallery__arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gallery__arrow:hover {
  background: var(--color-bg);
  border-color: var(--color-border-strong);
}

.gallery__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.song-links {
  margin-top: var(--space-4);
}

.song-links__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
}

.song-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.song-links__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.song-links__item:hover {
  color: var(--color-text-muted);
}

.song-links__icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: rgba(0, 0, 0, 0.92);
  padding: var(--space-3);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__image {
  max-width: min(85vw, 1100px);
  max-height: 85vh;
  border: 1px solid var(--color-border-strong);
  object-fit: contain;
  background: var(--color-surface);
}

.lightbox__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.lightbox__arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox__arrow:hover {
  background: var(--color-bg-alt);
}

.lightbox__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section__grid--contact {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.studio-grid + .section__grid--contact {
  margin-top: var(--space-5);
}

.contact-details {
  margin: var(--space-3) 0 var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.contact-details div {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-1);
}

.contact-details dt {
  font-size: 0.85rem;
  color: var(--color-text-faint);
}

.contact-details dd {
  margin: 0;
  font-size: 1rem;
}

.contact-details a {
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.socials {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.socials a {
  text-decoration: none;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-strong);
  padding-bottom: 2px;
  font-size: 0.9rem;
}

.socials a:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.map {
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 10;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(92%) contrast(90%);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

.field label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.field input,
.field textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-text-muted);
}

.contact-form .button {
  align-self: flex-start;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.form-status.is-success {
  color: var(--color-text);
}

.site-footer {
  padding: var(--space-4) 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.site-footer p {
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 900px) {
  .section__grid--intro,
  .section__grid--contact {
    grid-template-columns: 1fr;
  }

  .services {
    grid-template-columns: 1fr;
  }

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

  .studio-grid__item--large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }

  .studio-grid__item--large .placeholder-img {
    aspect-ratio: auto;
  }

  .portfolio-card {
    flex-basis: clamp(200px, 40vw, 260px);
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .primary-nav a {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--color-border);
  }

  .primary-nav__cta {
    border: none;
  }

  .hero__logo {
    height: 64px;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .studio-grid__item--large {
    grid-column: span 1;
  }

  .portfolio-card {
    flex-basis: 78vw;
  }

  .gallery__arrow {
    display: none;
  }

  .lightbox__arrow {
    width: 40px;
    height: 40px;
  }

  .eq {
    height: 32px;
  }
}
