:root {
  --bg: #0a0a0f;
  --bg-soft: #0f1016;
  --surface: rgba(255, 255, 255, 0.045);
  --text: #f5f7fb;
  --muted: #9da3b1;
  --muted-strong: #d2d6df;
  --line: rgba(255, 255, 255, 0.1);
  --violet: #9a93d7;
  --blue: #8db7c3;
  --accent-soft: rgba(154, 147, 215, 0.14);
  --blue-soft: rgba(141, 183, 195, 0.11);
  --max-width: 1180px;
  --ease: 0.3s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 10%, rgba(141, 183, 195, 0.04), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 22rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 4rem 4rem;
  opacity: 0.22;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

.waveart-mark {
  color: #86d7e8;
  background-image: linear-gradient(135deg, #d7fbff 0%, #86d7e8 42%, #3fb7cf 100%);
  background-clip: text;
  text-shadow:
    0 0 1.4rem rgba(134, 215, 232, 0.18),
    0 0 3.2rem rgba(63, 183, 207, 0.1);
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.language-button {
  min-width: 2.2rem;
  height: 2rem;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    color var(--ease),
    background var(--ease);
}

.language-button:hover,
.language-button.is-active {
  color: #0a0a0f;
  background: rgba(245, 247, 251, 0.9);
}

.nav-links a {
  position: relative;
  transition: color var(--ease);
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(245, 247, 251, 0.75);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 96svh;
  padding: 8rem clamp(1rem, 5vw, 4rem) 5.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  overflow: hidden;
  background: var(--bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-position: var(--hero-position, center 44%);
  background-size: cover;
  filter: brightness(var(--hero-brightness, 1.08)) saturate(1.03);
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1.35s ease;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 10, 15, 0.84), rgba(10, 10, 15, 0.5) 48%, rgba(10, 10, 15, 0.72)),
    linear-gradient(180deg, rgba(10, 10, 15, 0.1), rgba(10, 10, 15, 0.88));
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 35%;
  content: "";
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-content {
  align-self: center;
  width: min(100%, 860px);
  margin: 0 auto;
  padding-top: 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted-strong);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  line-height: 0.95;
}

.hero h1 {
  max-width: 10.5ch;
  font-size: 3.2rem;
}

.hero h1 > span {
  display: block;
}

.hero-title-main {
  text-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.34);
}

.hero-title-secondary {
  max-width: 18ch;
  margin-top: 0.65rem;
  color: rgba(245, 247, 251, 0.56);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.1;
}

.hero-subline {
  max-width: 21rem;
  margin: 1.05rem 0 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  overflow: hidden;
  transition:
    transform var(--ease),
    border-color var(--ease),
    background var(--ease),
    box-shadow var(--ease),
    color var(--ease);
}

.button::before {
  position: absolute;
  inset: auto 0 0;
  height: 100%;
  content: "";
  transform: translateY(105%);
  transition: transform 0.38s ease;
}

.button::after {
  position: absolute;
  inset: 0;
  content: attr(data-label);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(105%);
  transition: transform 0.38s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(134, 215, 232, 0.28);
  color: #09090d;
  background: linear-gradient(135deg, #ffffff, #dfe7ea);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.28);
}

.button-primary::before {
  background: linear-gradient(180deg, #d7fbff 0%, #86d7e8 42%, #24bddb 100%);
}

.button-primary::after {
  color: #041014;
}

.button-primary:hover {
  color: transparent;
  box-shadow:
    0 1rem 2.2rem rgba(0, 0, 0, 0.24),
    0 0 1.15rem rgba(134, 215, 232, 0.18);
}

.button-primary:hover::before,
.button-primary:hover::after {
  transform: translateY(0);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.button-secondary:hover {
  border-color: rgba(245, 247, 251, 0.36);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.scroll-cue {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 1.4rem;
  display: grid;
  width: 2.2rem;
  height: 3.3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.scroll-cue span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 1rem var(--blue-soft);
  animation: scrollDot 1.7s ease-in-out infinite;
}

.section,
.section-band {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 5vw, 4rem);
}

.section {
  max-width: calc(var(--max-width) + 8rem);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  max-width: 760px;
  margin-bottom: clamp(2.4rem, 6vw, 4.5rem);
}

.section-heading > p:last-child {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-heading h2,
.about h2,
.contact h2 {
  font-size: 2.6rem;
}

.service-grid {
  display: grid;
  gap: 0.85rem;
}

.service-item {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 22rem;
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background-image: var(--service-image);
  background-position: center;
  background-size: cover;
  isolation: isolate;
  transition:
    transform var(--ease),
    box-shadow var(--ease);
}

.service-item::before,
.service-item::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  transition:
    opacity var(--ease),
    transform 0.7s ease;
}

.service-item h3,
.service-item p {
  position: relative;
  z-index: 1;
}

.service-item::before {
  background-image: var(--service-image);
  background-position: center;
  background-size: cover;
  filter: saturate(0.82) contrast(1.05) brightness(0.72);
}

.service-item::after {
  background:
    linear-gradient(180deg, rgba(10, 10, 15, 0.46), rgba(10, 10, 15, 0.9)),
    linear-gradient(135deg, rgba(10, 10, 15, 0.22), rgba(141, 183, 195, 0.07));
}

.service-mixing {
  --service-image: url("assets/services/mixing.JPG");
  background-position: center;
}

.service-mastering {
  --service-image: url("assets/services/mastering.png");
  background-position: center;
}

.service-production {
  --service-image: url("assets/services/production-2.png");
  background-position: center;
}

.service-recording {
  --service-image: url("assets/services/recording.png");
  background-position: center;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.4rem 3.8rem rgba(0, 0, 0, 0.24);
}

.service-item:hover::before {
  transform: scale(1.045);
}

.service-item:hover::after {
  opacity: 0.92;
}

.service-item h3 {
  margin: auto 0 0.8rem;
  font-size: 1.45rem;
  text-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
}

.service-item p,
.about p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.service-item p {
  color: rgba(245, 247, 251, 0.78);
}

.studio-story {
  display: grid;
  gap: clamp(1rem, 3vw, 1.8rem);
}

.studio-story-item {
  display: grid;
  gap: 0.85rem;
  align-items: stretch;
}

.studio-proof-line {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    var(--bg-soft);
}

.studio-proof-line p {
  max-width: 17rem;
  margin: 0;
  color: var(--text);
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.04;
}

.studio-story-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-soft);
  aspect-ratio: 16 / 10;
  isolation: isolate;
}

.studio-story-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(10, 10, 15, 0.34));
  opacity: 0;
  transition: opacity var(--ease);
}

.studio-story-image img {
  filter: saturate(0.95) contrast(1.04) brightness(0.78);
  transition:
    transform 0.7s ease,
    filter var(--ease);
}

.studio-story-image:hover {
  box-shadow:
    0 1.6rem 4rem rgba(0, 0, 0, 0.3),
    0 0 2.2rem rgba(123, 183, 201, 0.08);
}

.studio-story-image:hover::after {
  opacity: 1;
}

.studio-story-image:hover img {
  filter: saturate(1.02) contrast(1.05) brightness(0.88);
  transform: scale(1.045);
}

.references {
  max-width: calc(var(--max-width) + 8rem);
}

.references-heading p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.reference-grid {
  display: grid;
  gap: 0.85rem;
}

.reference-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: var(--bg-soft);
  aspect-ratio: 1;
  isolation: isolate;
}

.reference-card img {
  filter: saturate(0.96) contrast(1.03) brightness(0.88);
  transition:
    filter 0.5s ease,
    transform 0.7s ease;
}

.reference-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent 38%, rgba(10, 10, 15, 0.78));
  opacity: 1;
  transition: opacity var(--ease);
}

.reference-visible,
.reference-overlay {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
}

.reference-visible {
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.8rem;
  transition:
    opacity var(--ease),
    transform var(--ease);
}

.reference-visible span {
  max-width: 100%;
  padding: 0.42rem 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: rgba(245, 247, 251, 0.9);
  background: rgba(10, 10, 15, 0.58);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-overlay {
  inset: 0;
  overflow: hidden;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(10, 10, 15, 0.14), rgba(10, 10, 15, 0.92)),
    rgba(10, 10, 15, 0.28);
  opacity: 0;
  transform: translateY(0.6rem);
  transition:
    opacity var(--ease),
    transform var(--ease);
}

.reference-scroll {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-height: calc(100% - 2rem);
  padding-top: 2.5rem;
}

.reference-scroll p,
.reference-scroll h3,
.reference-scroll dl {
  margin: 0;
}

.reference-scroll p {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-shadow:
    0 0 1px rgba(10, 10, 15, 0.95),
    0 0 8px rgba(10, 10, 15, 0.55);
}

.reference-scroll h3 {
  margin-top: 0.25rem;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.05;
  text-shadow:
    0 0 1px rgba(10, 10, 15, 0.96),
    0 0 10px rgba(10, 10, 15, 0.58);
}

.reference-scroll dl {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.reference-scroll div {
  display: grid;
  gap: 0.12rem;
}

.reference-scroll dt {
  color: rgba(245, 247, 251, 0.55);
  font-size: 0.68rem;
  font-weight: 800;
}

.reference-scroll dd {
  margin: 0;
  color: rgba(245, 247, 251, 0.86);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.reference-scroll a {
  align-self: flex-start;
  margin-top: 1rem;
  padding-bottom: 0.18rem;
  border-bottom: 1px solid rgba(245, 247, 251, 0.62);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  transition:
    color var(--ease),
    border-color var(--ease);
}

.reference-scroll a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.reference-card:hover .reference-scroll,
.reference-card:focus-within .reference-scroll {
  animation: referenceAutoScroll var(--reference-scroll-duration, 8s) ease-in-out 0.45s infinite alternate;
}

.reference-card:hover img {
  filter: saturate(1) contrast(1.04) brightness(0.72);
  transform: scale(1.045);
}

.reference-card:hover::after,
.reference-card:hover .reference-visible {
  opacity: 0;
}

.reference-card:hover .reference-visible {
  transform: translateY(0.6rem);
}

.reference-card:hover .reference-overlay,
.reference-card:focus-within .reference-overlay {
  opacity: 1;
  transform: translateY(0);
}

.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-inner,
.contact-inner {
  max-width: var(--max-width);
}

.about p {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.location-content {
  display: grid;
  gap: 1rem;
}

.location-copy {
  display: grid;
  align-content: end;
  min-height: 24rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    var(--bg-soft);
}

.location-copy h2 {
  max-width: 11ch;
  margin: 0;
  color: var(--text);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.04;
}

.location-copy address {
  margin: 1.4rem 0 2rem;
  color: var(--muted-strong);
  font-style: normal;
  font-weight: 700;
}

.location-copy .button {
  justify-self: start;
}

.map-frame {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: var(--bg-soft);
}

.map-consent,
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.map-frame iframe {
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.92) brightness(0.72) saturate(0.65);
}

.map-consent {
  display: grid;
  align-content: end;
  padding: clamp(1.2rem, 4vw, 2rem);
  background:
    linear-gradient(180deg, rgba(10, 10, 15, 0.18), rgba(10, 10, 15, 0.9)),
    linear-gradient(135deg, rgba(141, 183, 195, 0.08), rgba(10, 10, 15, 0)),
    var(--bg-soft);
}

.map-consent::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 18%, rgba(141, 183, 195, 0.1), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 18rem);
  pointer-events: none;
}

.map-consent > * {
  position: relative;
  z-index: 1;
}

.map-consent-eyebrow {
  margin: 0 0 0.8rem;
  color: rgba(245, 247, 251, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.map-consent h3 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.04;
}

.map-consent p:last-of-type {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.55;
}

.map-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.map-consent-actions .button {
  width: auto;
}

.contact {
  min-height: 72svh;
  display: grid;
  align-items: center;
}

.contact-inner {
  width: 100%;
}

.reference-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.reference-modal.is-open {
  display: block;
}

.reference-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(16px);
}

.reference-modal-dialog {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-height: calc(100svh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    var(--bg-soft);
  box-shadow: 0 1.4rem 4rem rgba(0, 0, 0, 0.32);
}

.reference-modal-frame {
  display: grid;
  gap: 0.85rem;
  max-height: calc(100svh - 2rem);
  padding: 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.reference-modal-media-box,
.reference-modal-content-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.02);
}

.reference-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.reference-modal-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.95rem;
  height: 1.5px;
  background: var(--text);
}

.reference-modal-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.reference-modal-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.reference-modal-media {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg);
}

.reference-modal-content {
  display: grid;
  align-content: start;
  padding: 1rem;
}

.reference-modal-artist {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.reference-modal-title {
  margin: 0.28rem 0 0;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.05;
  word-break: break-word;
}

.reference-modal-details {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.reference-modal-details div {
  display: grid;
  gap: 0.12rem;
}

.reference-modal-details dt {
  color: rgba(245, 247, 251, 0.55);
  font-size: 0.7rem;
  font-weight: 800;
}

.reference-modal-details dd {
  margin: 0;
  color: rgba(245, 247, 251, 0.86);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
}

.reference-modal-link {
  margin-top: 1rem;
}

.legal-page {
  min-height: 100svh;
}

.legal-layout {
  width: min(100%, 78rem);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.legal-back {
  display: inline-flex;
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color var(--ease);
}

.legal-back:hover {
  color: var(--text);
}

.legal-card {
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--bg-soft);
}

.legal-card h1 {
  margin: 0 0 2rem;
  color: var(--text);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 0.98;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    color var(--ease),
    border-color var(--ease),
    background var(--ease);
}

.legal-links a:hover,
.legal-links a.is-active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.legal-grid {
  display: grid;
  gap: 0.85rem;
}

.legal-stack {
  display: grid;
  gap: 0.85rem;
}

.legal-copy-block {
  padding: clamp(1.1rem, 3vw, 1.45rem);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.legal-copy-block h2 {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.legal-copy-block p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.6;
}

.legal-copy-block a {
  transition: color var(--ease);
}

.legal-copy-block a:hover {
  color: var(--text);
}

.legal-block {
  min-height: 10rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.legal-label {
  margin: 0 0 0.85rem;
  color: rgba(245, 247, 251, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-block p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.legal-block a {
  transition: color var(--ease);
}

.legal-block a:hover {
  color: var(--text);
}

@media (max-width: 719px) {
  .legal-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0;
}

.contact-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.035);
  font-size: 1rem;
  font-weight: 700;
  overflow: hidden;
  transition:
    color var(--ease),
    border-color var(--ease),
    background var(--ease),
    box-shadow var(--ease),
    text-shadow var(--ease),
    transform var(--ease);
}

.contact-links a::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0;
  transition: opacity var(--ease);
}

.contact-links a:hover {
  transform: translateY(-2px);
  color: var(--text);
  box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.2);
  text-shadow: 0 0 1.1rem var(--blue-soft);
}

.contact-links a:hover::before {
  opacity: 1;
}

.email-link:hover {
  border-color: rgba(134, 215, 232, 0.52);
}

.email-link::before {
  background:
    linear-gradient(135deg, rgba(134, 215, 232, 0.18), rgba(63, 183, 207, 0.09)),
    rgba(255, 255, 255, 0.035);
}

.instagram-link:hover {
  border-color: rgba(225, 48, 108, 0.45);
  box-shadow:
    0 1rem 2.2rem rgba(0, 0, 0, 0.2),
    0 0 1.8rem rgba(225, 48, 108, 0.12);
}

.instagram-link::before {
  background:
    linear-gradient(135deg, rgba(245, 133, 41, 0.2), rgba(221, 42, 123, 0.18), rgba(81, 91, 212, 0.18)),
    rgba(255, 255, 255, 0.035);
}

.instagram-link svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.site-footer {
  display: grid;
  gap: 1.5rem;
  padding: 2rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
}

.footer-brand {
  display: inline-block;
  color: var(--text);
  font-weight: 900;
}

.site-footer p {
  margin: 0.45rem 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
}

.site-footer a {
  transition: color var(--ease);
}

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

.footer-meta {
  color: rgba(245, 247, 251, 0.52);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes scrollDot {
  0%,
  100% {
    transform: translateY(-0.55rem);
    opacity: 0.35;
  }

  50% {
    transform: translateY(0.55rem);
    opacity: 1;
  }
}

@keyframes referenceAutoScroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(var(--reference-scroll-distance, 0px));
  }
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

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

  .studio-story-item {
    grid-template-columns: minmax(12rem, 0.34fr) 1fr;
  }

  .studio-story-item-reverse {
    grid-template-columns: 1fr minmax(12rem, 0.34fr);
  }

  .studio-story-item-reverse .studio-proof-line {
    order: 2;
  }

  .studio-story-item-reverse .studio-story-image {
    order: 1;
  }

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

  .location-content {
    grid-template-columns: minmax(22rem, 0.46fr) 1fr;
  }

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

  .site-footer {
    grid-template-columns: 1fr auto auto;
    align-items: end;
  }

  .hero h1 {
    font-size: 4.8rem;
  }

  .hero-content {
    align-self: end;
    width: min(100%, 620px);
    margin: 0;
    padding: 0 0 1.2rem;
  }

  .hero-title-secondary {
    font-size: 1.25rem;
  }

  .hero-subline {
    font-size: 0.98rem;
  }

  .section-heading h2,
  .about h2,
  .contact h2 {
    font-size: 4.2rem;
  }

  .location-copy h2 {
    font-size: 2.6rem;
  }

  .service-item h3 {
    font-size: 1.8rem;
  }

  .about p,
  .references-heading p:last-child,
  .contact-links a {
    font-size: 1.18rem;
  }
}

@media (max-width: 719px) {
  .site-header {
    padding-block: 0.85rem;
  }

  .brand {
    max-width: 8rem;
  }

  .hero {
    padding-top: 7rem;
  }

  .button {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .service-item {
    min-height: 18rem;
  }

  .service-item h3 {
    margin-top: 3rem;
  }

  .reference-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-columns: calc((100% - 0.85rem) / 2);
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .reference-grid::-webkit-scrollbar {
    display: none;
  }

  .reference-card:nth-child(4n + 1) {
    scroll-snap-align: start;
  }

  .reference-card {
    min-width: 0;
    cursor: pointer;
  }

  .reference-overlay {
    opacity: 1;
    transform: translateY(0);
    padding: 0.85rem;
    background: linear-gradient(180deg, transparent 24%, rgba(10, 10, 15, 0.92));
  }

  .reference-scroll {
    right: 0.85rem;
    bottom: 0.85rem;
    left: 0.85rem;
    display: flex;
    max-height: none;
    min-height: calc(100% - 1.7rem);
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 0;
  }

  .reference-scroll p {
    font-size: 0.72rem;
  }

  .reference-scroll h3 {
    margin-top: 0.2rem;
    font-size: 1rem;
  }

  .reference-scroll dl,
  .reference-scroll a {
    display: none;
  }

  .reference-card::after,
  .reference-visible {
    display: none;
  }
}

.reference-modal-content {
  display: grid;
  align-content: start;
  overflow-wrap: anywhere;
}

.reference-modal-artist,
.reference-modal-title {
  max-width: 100%;
}

.reference-modal-title {
  word-break: break-word;
}

@media (min-width: 1100px) {
  .hero h1 {
    font-size: 5.7rem;
  }

  .hero-content {
    width: min(100%, 650px);
    padding-bottom: 1.8rem;
  }

  .hero-title-secondary {
    font-size: 1.35rem;
  }

  .hero-subline {
    font-size: 1rem;
  }

  .studio-proof-line p {
    font-size: 2.85rem;
  }

  .section-heading h2,
  .about h2,
  .contact h2 {
    font-size: 5.7rem;
  }

  .location-copy h2 {
    font-size: 2.85rem;
  }

  .service-item h3 {
    font-size: 2rem;
  }

  .about p {
    font-size: 1.3rem;
  }

  .contact-links a {
    font-size: 1.25rem;
  }

  .reference-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

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

}
