:root {
  --meadow: #efe58f;
  --navy: #11182a;
  --cream: #f6f0d7;
  --red: #e73121;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Climate Crisis", "Arial Black", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--meadow); }

body {
  margin: 0;
  color: var(--navy);
  background: var(--meadow);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

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

.pastel-trail {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.flying-dragonfly {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 91;
  width: clamp(54px, 5.2vw, 82px);
  filter: drop-shadow(0 4px 3px rgba(10, 42, 35, 0.18));
  pointer-events: none;
  transform: translate3d(-120px, -120px, 0) rotate(8deg);
  transform-origin: 52% 58%;
  will-change: transform;
}

.artwork-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--navy);
  background: url("assets/dragonflies-2026.jpg") center / cover no-repeat;
}

.artwork-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(239, 229, 143, 0.34) 0%, transparent 23%, transparent 70%, rgba(6, 22, 18, 0.32) 100%);
  pointer-events: none;
}

.artist-name {
  position: absolute;
  z-index: 2;
  top: clamp(20px, 3.4vw, 52px);
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06em;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(3rem, 7.6vw, 8.4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.artist-name span { display: block; }

.work-caption {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 3vw, 48px);
  bottom: clamp(18px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  max-width: min(720px, 72vw);
  color: var(--cream);
  font-size: 0.8rem;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 3vw, 48px);
  bottom: clamp(18px, 3vw, 42px);
  display: flex;
  gap: 18px;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.studio {
  min-height: 100svh;
  padding: 0 clamp(20px, 4.5vw, 78px);
  background: var(--meadow);
}

.section-nav {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 7vw, 110px);
  border-bottom: 1px solid rgba(17, 24, 42, 0.34);
}

.section-nav a,
.studio-email,
footer a {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.section-nav a:hover,
.section-nav a:focus-visible,
.studio-email:hover,
.studio-email:focus-visible,
footer a:hover,
footer a:focus-visible { color: var(--red); }

.section {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 180px) 0;
  border-bottom: 1px solid rgba(17, 24, 42, 0.34);
}

.section-label {
  margin: 0 0 26px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

h2 { font-size: clamp(3rem, 6.4vw, 7.2rem); }

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
}

.gallery__image {
  margin: 0;
  overflow: hidden;
  background: var(--cream);
}

.gallery__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery__content h2 { font-size: clamp(2.9rem, 5.7vw, 6.5rem); }

.gallery__subheading {
  margin: 30px 0 0;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
}

.release-form {
  margin-top: clamp(36px, 5vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
}

.release-form input[type="email"] {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--navy);
  border-radius: 0;
  outline: 0;
}

.release-form input[type="email"]::placeholder { color: rgba(17, 24, 42, 0.65); }
.release-form input[type="email"]:focus { border-bottom-color: var(--red); }

.release-form button,
.enquiry-form button {
  width: max-content;
  padding: 0 0 5px;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  cursor: pointer;
}

.release-form .form-note { grid-column: 1 / -1; }

.about__content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: clamp(54px, 9vw, 140px);
  align-items: end;
}

.about__copy { padding-bottom: 8px; font-size: clamp(1.08rem, 1.45vw, 1.35rem); }
.about__copy p { margin: 0 0 1.2em; }

.contact__content {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: flex-end;
}

.contact__intro {
  display: grid;
  gap: clamp(28px, 3vw, 42px);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(24px, 3vw, 42px);
}

.social-links a {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.social-links a:hover,
.social-links a:focus-visible { color: var(--red); }

.studio-email { flex: 0 0 auto; margin-bottom: 10px; }

.enquiry-form {
  margin-top: clamp(64px, 9vw, 130px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px clamp(24px, 5vw, 80px);
}

.enquiry-form label { display: block; }

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.enquiry-form__message { grid-column: 1 / -1; }

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  padding: 12px 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--navy);
  border-radius: 0;
  outline: 0;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus { border-bottom-color: var(--red); }

.enquiry-form button:disabled,
.release-form button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.form-note { margin: 0; font-size: 0.82rem; }
.form-note[data-state="success"] { color: #155b35; }
.form-note[data-state="error"] { color: #9f281f; }

.pastel-squiggle {
  position: fixed;
  z-index: 92;
  width: var(--mark-size);
  height: auto;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(0.28) rotate(var(--start-rotation));
  transform-origin: center;
  will-change: transform, opacity;
  animation: pastel-squiggle-flight var(--duration) cubic-bezier(0.16, 0.76, 0.24, 1) var(--delay) forwards;
}

@keyframes pastel-squiggle-flight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(0.28) rotate(var(--start-rotation));
  }
  14% { opacity: 1; }
  58% { opacity: 0.92; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(var(--dx), var(--dy), 0) scale(var(--end-scale)) rotate(var(--end-rotation));
  }
}

footer {
  width: min(1500px, 100%);
  min-height: 130px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
}

footer a { font-size: 0.82rem; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .artwork-hero { background-position: 52% center; }
  .artist-name { top: 22px; font-size: clamp(2.5rem, 12vw, 4.2rem); }
  .section-nav { min-height: 96px; gap: 28px; }
  .section-nav a { font-size: 1rem; }
  .gallery, .about__content, .enquiry-form { grid-template-columns: 1fr; }
  .gallery { gap: 48px; }
  .gallery__content { max-width: 640px; }
  .about__content { gap: 48px; }
  .contact__content { display: grid; gap: 34px; }
  .enquiry-form__message { grid-column: auto; }
}

@media (max-width: 520px) {
  .work-caption span:last-child { display: none; }
  .hero-scroll span:first-child { display: none; }
  .section-nav { justify-content: space-between; gap: 12px; }
  .release-form { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .flying-dragonfly, .pastel-trail, .pastel-squiggle { display: none; }
  .reveal { opacity: 1; transform: none; }
}
