﻿/* =======================
   RESET
======================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

/* =======================
   VARIABLES
======================= */
:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #151515;
  --muted: #66615a;
  --line: rgba(0, 0, 0, 0.14);
  --soft-line: rgba(0, 0, 0, 0.08);
  --accent: #9b6a3c;
}

html[data-theme="dark"] {
  --bg: #0d0d0c;
  --surface: #151514;
  --text: #ededed;
  --muted: #a39d94;
  --line: rgba(255, 255, 255, 0.18);
  --soft-line: rgba(255, 255, 255, 0.09);
  --accent: #d0a06d;
}

/* =======================
   BASE
======================= */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  padding-top: 64px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

/* =======================
   NAV
======================= */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  min-height: 64px;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  z-index: 1000;
}

.brand {
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0;
  text-decoration: none;
}

.menu-toggle {
  display: none;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.theme-toggle,
.lang-toggle,
.menu-toggle {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle:hover,
.lang-toggle:hover,
.menu-toggle:hover {
  border-color: var(--text);
}

/* =======================
   COMMON
======================= */
.eyebrow {
  color: var(--accent);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.button:hover,
.button.primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* =======================
   HOME
======================= */
.artist-hero {
  max-width: 1180px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-copy h1 {
  max-width: 640px;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.02;
  font-weight: 500;
}

.gallery-intro h1,
.contact-intro h1,
.sound-intro h1 {
  max-width: 760px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.08;
  font-weight: 500;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.32;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero-visual {
  min-width: 0;
  width: 100%;
  max-width: 420px;
  justify-self: end;
}

.mini-slider {
  position: relative;
  width: 100%;
  min-height: 420px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.mini-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.mini-slider img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.about {
  max-width: 1080px;
  margin: 0 auto 70px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 54px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  min-height: 112px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--soft-line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  font-size: 34px;
  font-weight: 500;
}

.stats span,
.about-text p,
.credentials p,
.credentials li,
.gallery-intro p,
.contact-intro p,
.sound-intro p:not(.eyebrow),
.contact-links p {
  color: var(--muted);
}

.about-top {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.section-heading h2,
.credentials h2 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inline-link {
  width: fit-content;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.inline-link:hover {
  color: var(--text);
  border-color: var(--text);
}

.seo-profile {
  max-width: 760px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.seo-profile h2 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 6px;
}

.seo-profile p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
}

.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.credentials section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.credentials ul {
  list-style: none;
}

.credentials li,
.credentials p {
  margin-top: 8px;
  font-size: 14px;
}

/* =======================
   GALLERY
======================= */
.gallery-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px 20px;
}

.gallery-intro,
.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.gallery-intro p,
.contact-intro p {
  max-width: 720px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 42px;
}

.art {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.media {
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--soft-line);
  background: var(--surface);
}

.media img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.media img:hover {
  transform: scale(1.025);
}

.caption {
  width: 100%;
}

.caption h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}

.caption p {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.buy,
.saatchi-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transition: border-color 0.2s, color 0.2s;
}

.buy:hover,
.saatchi-link:hover {
  color: var(--text);
  border-color: var(--text);
}

/* =======================
   LIGHTBOX
======================= */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
}

#close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* =======================
   CONTACT
======================= */
.contact-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 76px 24px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.contact-block {
  border: 1px solid var(--line);
  padding: 24px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-title {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  padding: 11px 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  margin-bottom: 16px;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
}

button[type="submit"]:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.success,
.error {
  display: none;
  margin-top: 14px;
  font-size: 14px;
}

.success {
  color: var(--accent);
}

.error {
  color: #d45c4c;
}

.honeypot {
  display: none;
}

/* =======================
   SOUND MAP
======================= */
.sound-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px 20px;
}

.sound-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.sound-intro p:not(.eyebrow),
.sound-caption,
.sound-toolbar p {
  max-width: 760px;
  color: var(--muted);
}

.sound-work {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sound-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.sound-toolbar p {
  font-size: 14px;
}

.sound-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: none;
}

#soundCanvas,
.sound-hotspots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#soundCanvas {
  display: block;
}

.sound-hotspots path {
  fill: rgba(255, 255, 255, 0);
  pointer-events: all;
  stroke: transparent;
  stroke-width: 5;
  transition: fill 0.25s ease, stroke 0.25s ease, filter 0.25s ease;
}

.sound-hotspots path.is-waiting {
  fill: rgba(208, 160, 109, 0.13);
  stroke: rgba(208, 160, 109, 0.58);
  filter: drop-shadow(0 0 10px rgba(208, 160, 109, 0.42));
}

.sound-hotspots path.is-playing {
  animation: sound-area-pulse 0.75s ease-out;
}

.sound-cursor {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--text) 55%, transparent);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.sound-canvas-wrap:hover .sound-cursor {
  opacity: 1;
}

.sound-cursor.loading {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  border-top-color: var(--accent);
  animation: sound-spin 0.75s linear infinite;
}

.sound-caption {
  min-height: 24px;
  font-size: 14px;
}

@keyframes sound-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes sound-area-pulse {
  0% {
    fill: rgba(208, 160, 109, 0.24);
    stroke: rgba(237, 237, 237, 0.74);
    filter: drop-shadow(0 0 16px rgba(208, 160, 109, 0.62));
  }

  100% {
    fill: rgba(208, 160, 109, 0);
    stroke: rgba(208, 160, 109, 0);
    filter: drop-shadow(0 0 0 rgba(208, 160, 109, 0));
  }
}

/* =======================
   FOOTER
======================= */
footer {
  margin-top: 70px;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* =======================
   MOBILE
======================= */
@media (max-width: 840px) {
  body {
    padding-top: 58px;
  }

  .nav {
    min-height: 58px;
    padding: 12px 16px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 12px;
    top: 58px;
    left: 16px;
    right: 16px;
    transform: none;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 16px 20px;
    text-align: left;
  }

  .nav-links.active {
    display: flex;
  }

  .brand {
    max-width: 130px;
  }

  .artist-hero,
  .about-top,
  .credentials,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .artist-hero {
    min-height: auto;
    padding: 48px 20px 44px;
    gap: 34px;
  }

  .hero-visual {
    justify-self: center;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .gallery-intro h1,
  .contact-intro h1,
  .sound-intro h1 {
    font-size: 34px;
  }

  .mini-slider {
    min-height: 340px;
  }

  .about,
  .gallery-page,
  .contact-page,
  .sound-page {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  .stats div {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .media {
    height: 300px;
  }
}

@media (max-width: 460px) {
  .controls {
    gap: 8px;
  }

  .theme-toggle,
  .lang-toggle,
  .menu-toggle {
    min-width: 32px;
    height: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .gallery-intro h1,
  .contact-intro h1,
  .sound-intro h1 {
    font-size: 31px;
  }

  .mini-slider {
    min-height: 280px;
  }

  .media {
    height: 250px;
  }
}
