/* ============================================
   Becoming Eliza — Anna O'Byrne
   Elegant, sophisticated, understated.
   ============================================ */

:root {
  --cream: #f5f3f0;
  --cream-warm: #efe9e3;
  --mauve: #8d8899;          /* official — primary accent, buttons, links */
  --mauve-deep: #46444c;     /* darkened mauve for text on cream (contrast) */
  --pink: #e8b4c8;           /* secondary accent */
  --coral: #fd5183;          /* official — warm coral, image borders, hover states */
  --blue: #a8c5d9;           /* tertiary accent, teal-leaning */
  --dark-blue-grey: #272d39; /* official — body text */
  --dark-brown: #1c1d18;     /* official — heading text, dark section grounds */
  --black: #040000;          /* official — scrims, overlays */
  --ink: var(--dark-blue-grey);
  --ink-heading: var(--dark-brown);
  --white: #ffffff;
  --hairline: #e2dad8;

  --font-serif: 'IvyJournal', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --margin-desktop: 40px;
  --margin-mobile: 20px;
  --section-pad-desktop: 80px;
  --section-pad-mobile: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 { margin: 0; font-weight: 500; font-family: var(--font-serif); color: var(--ink-heading); }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

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

/* Focus states — a single mid-tone works against both the cream sections and the dark hero/reviews backgrounds */
:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--mauve);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Respect reduced-motion preference: kill smooth scroll and CSS transitions */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Scroll reveal — JS adds .reveal on load, .reveal--visible once a section enters view.
   Skipped entirely under prefers-reduced-motion (see main.js). */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal--visible { opacity: 1; transform: translateY(0); }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}
@media (min-width: 900px) {
  .section-inner { padding: 0 var(--margin-desktop); }
}

.section {
  padding: var(--section-pad-mobile) 0;
}
@media (min-width: 900px) {
  .section { padding: var(--section-pad-desktop) 0; }
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--pink); }
.eyebrow--center { text-align: center; }

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  color: var(--ink-heading);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  max-width: 32ch;
}
.section-title--center { text-align: center; margin-left: auto; margin-right: auto; }

/* Logo — official title lockup (image asset), pale colourway designed for a dark ground */
.site-logo { display: block; }
.site-logo img { height: 46px; width: auto; display: block; }
.site-logo--footer img { height: 34px; margin: 0 auto; }
.site-logo--footer { opacity: 0.92; transition: opacity 0.2s ease; }
.site-logo--footer:hover { opacity: 1; }
.hero__logo { margin: 0 0 1.6rem; }
.hero__logo img { width: min(78vw, 460px); height: auto; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: var(--white);
  background: rgba(4, 0, 0, 0.35);
}
.site-header.is-scrolled {
  background: rgba(4, 0, 0, 0.82);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

/* Fixed header is ~81px tall at every breakpoint (only horizontal padding
   changes); offset in-page anchor targets so #links land clear of it. */
main > section[id] { scroll-margin-top: 96px; }

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--margin-mobile);
}
@media (min-width: 900px) {
  .site-header__inner { padding: 1.1rem var(--margin-desktop); }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}
.site-nav a, .nav-link-button {
  position: relative;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.site-nav a::after, .nav-link-button::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 1px;
  background: currentColor;
  transition: right 0.25s ease;
}
.site-nav a:hover, .nav-link-button:hover { opacity: 1; color: var(--pink); }
.site-nav a:hover::after, .nav-link-button:hover::after { right: 0; }
.nav-link-button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 1.5px; width: 100%; background: currentColor; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--cream);
  padding: 0.5rem var(--margin-mobile) 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
}
.mobile-nav a, .mobile-nav .nav-link-button { display: block; width: 100%; text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--hairline); color: var(--ink-heading); font-size: inherit; }
.mobile-nav.is-open { display: flex; }

/* ============ Buttons ============ */
.btn {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  border: 1px solid transparent;
  min-height: 48px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: scale(1.03); }
.btn--primary { background: var(--mauve); color: var(--white); }
.btn--primary:hover { background: var(--coral); }
.btn--outline { background: transparent; border-color: var(--mauve); color: var(--mauve-deep); }
.btn--outline:hover { background: var(--coral); border-color: var(--coral); color: var(--white); }
.btn--outline:disabled { border-color: var(--hairline); color: #9b9490; cursor: not-allowed; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink-heading);
}
@media (min-width: 900px) {
  .hero { min-height: 840px; }
}
.hero__media { position: absolute; inset: 0; }
.hero__video, .hero__still { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__still { display: none; }

/* Reduced motion: show the still frame, hide the video entirely */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__still { display: block; }
}

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,0,0,0.62) 0%, rgba(4,0,0,0.28) 42%, rgba(4,0,0,0) 68%),
    linear-gradient(180deg, rgba(4,0,0,0.32) 0%, rgba(4,0,0,0.06) 28%, rgba(4,0,0,0.88) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--margin-mobile) clamp(3rem, 8vw, 5.5rem);
  max-width: 960px;
}
@media (min-width: 900px) {
  .hero__content { padding-left: var(--margin-desktop); padding-right: var(--margin-desktop); }
}

.hero__logo { margin: 0 0 1.4rem; }
.hero__logo img {
  width: clamp(210px, 34vw, 520px);
  height: auto;
  filter: drop-shadow(0 6px 28px rgba(0,0,0,0.45));
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.125rem, 2.2vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  margin: 0;
  max-width: 560px;
}
.hero__tagline em { font-style: italic; }

/* ============ Story ============ */

/* ---- 2a. Story mini-hero ---- */
.story-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    radial-gradient(ellipse 900px 700px at 72% 40%, rgba(157,150,173,0.55) 0%, rgba(157,150,173,0) 62%),
    linear-gradient(135deg, #2c2833 0%, #443e50 28%, #5b5468 52%, #756e83 66%, #423c4d 82%, #2a2631 100%);
}
.story-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas:
    "quote   quote"
    "content portrait";
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .story-hero__inner { padding: 0 var(--margin-desktop); }
}
.story-hero__content { grid-area: content; }
.story-hero__content .eyebrow { margin-bottom: 1rem; }
.story-hero__heading {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.3rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.story-hero__intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cream);
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
  margin: 0 0 1em;
}
.story-hero__intro:last-of-type { margin-bottom: 0; }

/* Full-width banner above the text/photo columns, not part of either. */
.story-hero__pullquote {
  grid-area: quote;
  position: relative;
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.25rem 2rem;
  text-align: left;
  border: 2px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(var(--dark-blue-grey), var(--dark-blue-grey)) padding-box,
    linear-gradient(120deg, var(--pink), var(--coral), var(--pink), var(--coral)) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: pullquote-border-flow 14s linear infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
@keyframes pullquote-border-flow {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .story-hero__pullquote { animation: none; }
}
.story-hero__pullquote p {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--white);
  margin: 0;
}
.story-hero__pullquote p em { font-style: italic; }
.story-hero__pullquote footer {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--pink);
  margin-top: 0.8rem;
}

.story-hero__portrait {
  grid-area: portrait;
  position: relative;
  margin: 0;
}
.story-hero__portrait::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at center, rgba(141,136,153,0.45) 0%, rgba(141,136,153,0) 70%);
  filter: blur(20px);
  z-index: 0;
}
.story-hero__portrait-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.55);
}

@media (max-width: 768px) {
  .story-hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "quote" "content" "portrait";
  }
  .story-hero__portrait { max-width: 340px; margin: 0 auto; }
  .story-hero__pullquote { padding: 1.1rem 1.25rem; }
  .story-hero__pullquote p { font-size: 1.15rem; }
  .story-hero__pullquote footer { font-size: 0.95rem; }
}

/* Staggered fade/slide reveal — see initStoryReveal() in main.js */
.story-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.story-reveal--visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .story-reveal { opacity: 1; transform: none; }
}

/* ============ Two Elizas ============ */
.eras {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0;
  color: var(--white);
  background:
    radial-gradient(ellipse at 12% 8%, rgba(141,136,153,0.30) 0%, rgba(141,136,153,0) 55%),
    radial-gradient(ellipse at 92% 88%, rgba(253,81,131,0.16) 0%, rgba(253,81,131,0) 50%),
    var(--ink-heading);
}
.eras .section-title--center { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.eras__diptych {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 860px;
  margin: 0 auto;
}

.eras__photo {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.55);
  background: var(--ink-heading);
  justify-self: center;
  width: 100%;
  max-width: 360px;
}
.eras__photo--julie { justify-self: end; }
.eras__photo--anna { justify-self: start; }
.eras__photo img { display: block; width: 100%; height: auto; }
.eras__photo figcaption {
  background: var(--ink-heading);
  color: var(--pink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.6rem 0 0.2rem;
}

.eras__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.eras__divider-line {
  width: 1px;
  flex: 1;
  min-height: 32px;
  background: linear-gradient(to bottom, rgba(253,81,131,0), rgba(253,81,131,0.65), rgba(253,81,131,0));
}
.eras__divider-years {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--coral);
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.eras__body {
  max-width: 640px;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--cream);
}

/* ============ Acclaim ============ */
.acclaim {
  padding: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(141,136,153,0.35) 0%, rgba(141,136,153,0) 55%),
    radial-gradient(ellipse at 85% 90%, rgba(232,180,200,0.16) 0%, rgba(232,180,200,0) 50%),
    var(--ink-heading);
}
.eyebrow--on-dark { color: var(--pink); }
.section-title--on-dark { color: var(--cream); }

.reviews-marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  height: auto;
  background: var(--dark-blue-grey);
  padding: 2rem 0;
}
.reviews-marquee__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 4rem;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.review-item {
  position: relative;
  flex: 0 0 auto;
  width: min(420px, 80vw);
  padding-left: 0.2rem;
}
.review-item::before {
  content: '\201C';
  position: absolute;
  top: -0.4em; left: -0.35em;
  font-family: var(--font-serif);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--mauve);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}
.review-item p, .review-item cite, .review-item__stars { position: relative; z-index: 1; }
.review-item p {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.35;
  color: var(--white);
}
.review-item p em { font-style: italic; }
.review-item cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 0.9rem;
}
.review-item__stars { display: block; color: var(--coral); font-size: 1rem; letter-spacing: 0.2em; margin-top: 0.5rem; }

@media (max-width: 768px) {
  .reviews-marquee__track { gap: 2rem; animation-duration: 60s; }
  .review-item { width: min(320px, 75vw); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-marquee { overflow-x: auto; }
  .reviews-marquee__track { animation: none; transform: none; }
}

/* ============ Gallery (uncropped, unequal columns) ============ */
.gallery-uncropped {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(141,136,153,0.30) 0%, rgba(141,136,153,0) 55%),
    radial-gradient(ellipse at 90% 90%, rgba(253,81,131,0.14) 0%, rgba(253,81,131,0) 50%),
    var(--dark-blue-grey);
  padding: 2rem 0;
}
@media (min-width: 900px) {
  .gallery-uncropped { padding: 4rem 0; }
}
.gallery-uncropped .section-inner { padding: 0 2rem; }

.gallery-uncropped__grid {
  display: grid;
  grid-template-columns: 1.625fr 1fr;
  align-items: stretch;
  gap: 1rem;
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  justify-content: center;
}
.gallery-uncropped__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 900px) {
  .gallery-uncropped__grid { gap: 1rem; }
}
@media (max-width: 599px) {
  .gallery-uncropped__grid { grid-template-columns: 1fr; }
  .gallery-uncropped__col { gap: 1rem; }
}

.gallery-uncropped__item {
  padding: 0; border: none; background: none; cursor: pointer;
  display: flex;
  align-items: flex-start;
  width: 100%;
}
.gallery-uncropped__item--bottom { align-items: flex-end; }
.gallery-uncropped__item img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gallery-uncropped__credit {
  text-align: center;
  margin: 1.5rem 0 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--cream);
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(4,0,0,0.95);
  padding: 3rem 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: none; border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.6rem;
  opacity: 0.75;
}
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 1.5rem; right: 1.5rem; font-size: 2.2rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ============ Team ============ */
.team { background: var(--cream-warm); }

.artist {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--hairline);
}
.artist__photo { position: relative; }
.artist__photo::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at center, rgba(141,136,153,0.45) 0%, rgba(141,136,153,0) 70%);
  filter: blur(20px);
  z-index: 0;
}
.artist__photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.55);
}
.artist__text h3 { font-size: clamp(2rem, 3.5vw, 2.6rem); margin: 0.2rem 0 1.2rem; }
.artist__lede { font-size: 1.15rem; color: var(--ink); }
.artist__text p { color: var(--ink); font-size: 1.02rem; }

.creative-team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 1000px;
  margin: 0 auto;
}
.team__card {
  display: block;
  align-self: start;
  width: 100%;
  text-align: left;
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.25s ease;
}
.team__card:hover { transform: translateY(-4px); }
.team__card:hover .team__card-photo img { box-shadow: 0 30px 65px -15px rgba(0,0,0,0.6); }
.team__card-photo { margin-bottom: 1.3rem; }
.team__card-photo img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 25px 60px -15px rgba(0,0,0,0.55); aspect-ratio: 4/5; object-fit: cover; transition: box-shadow 0.25s ease; }
.team__role {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  margin: 0.3rem 0 1rem !important;
}
.team__card h3 { font-size: 1.5rem; font-weight: 600; }
.team__excerpt { color: var(--ink); font-size: 0.98rem; }
.team__card-cta {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--coral);
  border-bottom: 1px solid transparent;
}
.team__card:hover .team__card-cta,
.team__card:focus-visible .team__card-cta { border-bottom-color: var(--coral); }

/* ============ Mailing list ============ */
.mailing-list {
  padding: 2rem 0 1.45rem;
  background:
    radial-gradient(ellipse at 18% 10%, rgba(141,136,153,0.20) 0%, rgba(141,136,153,0) 54%),
    var(--cream-warm);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.mailing-list__inner {
  max-width: 1080px;
}
.newsletter-form {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.newsletter-form__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.35vw, 1rem);
  width: 100%;
}
.newsletter-form__bar h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.25vw, 2.05rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  color: var(--ink-heading);
  margin: 0 clamp(0.45rem, 1.2vw, 0.9rem) 0 0;
}
.newsletter-form__bar .form-field {
  flex: 0 1 auto;
  margin-bottom: 0;
}
.newsletter-form__bar .form-field:nth-of-type(1) { width: clamp(170px, 16vw, 250px); }
.newsletter-form__bar .form-field:nth-of-type(2) { width: clamp(240px, 24vw, 360px); }
.newsletter-form__bar .form-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.newsletter-form__bar .btn {
  flex: 0 0 auto;
  min-height: 45px;
  margin-top: 0;
  white-space: nowrap;
}
.mailing-list__consent {
  margin: 0.65rem auto 0;
  color: #6b6560;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
  max-width: 58ch;
  text-wrap: balance;
}
@supports not (text-wrap: balance) {
  .mailing-list__consent { max-width: 52ch; }
}
.newsletter-form--compact .btn { width: 100%; justify-content: center; }

.newsletter-slideout {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 250;
  width: min(360px, calc(100vw - 2rem));
  padding: 1.6rem;
  background: rgba(245,243,240,0.98);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: 0 28px 70px -24px rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}
.newsletter-slideout.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .newsletter-slideout { transition: none; }
}
.newsletter-slideout__close {
  position: absolute;
  top: 0.65rem;
  right: 0.8rem;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.58;
}
.newsletter-slideout__close:hover { opacity: 1; }
.newsletter-slideout .eyebrow {
  margin-bottom: 0.6rem;
  padding-right: 2rem;
}
.newsletter-slideout h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  padding-right: 2rem;
  text-transform: none;
}
.newsletter-slideout > p:not(.eyebrow) {
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.newsletter-slideout .form-field { margin-bottom: 0.85rem; }
.newsletter-slideout .form-field label { font-size: 0.78rem; }
.newsletter-slideout .form-field input { padding: 0.68em 0.82em; }

/* ============ Forms (shared) ============ */
.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-heading);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 0.75em 0.9em;
}
.form-field textarea { resize: vertical; min-height: 7em; }
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #b3453f; }
.form-field__error {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #b3453f;
  margin: 0.4rem 0 0;
  min-height: 1em;
}
.form-field--honeypot { display: none; }
[hidden] { display: none !important; }

.form-status {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-top: 0.8rem;
  min-height: 1.2em;
}
.form-status--success { color: #3f7a4f; }
.form-status--error { color: #b3453f; }
.signup__done {
  text-align: center;
  margin: 0.8rem auto 0;
}
.newsletter-slideout > .signup__done {
  margin: 1rem 0 0;
  font-size: 1rem;
}

/* ============ Presenter Enquiries ============ */
.presenter__inner { max-width: 760px; }
.presenter__intro { color: var(--ink); margin-bottom: clamp(2rem, 4vw, 3rem); }
.presenter-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1.5rem;
}
.presenter-form__privacy {
  font-size: 0.85rem;
  color: #6b6560;
  font-style: italic;
  margin: 0.5rem 0 1.5rem;
}

/* ============ Modal ============ */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: fixed; inset: 0;
  background: rgba(4,0,0,0.75);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border-radius: 6px;
  max-width: 720px;
  width: 100%;
  padding: clamp(2rem, 5vw, 3rem);
  margin: 2vh auto;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.modal.is-open .modal__dialog { opacity: 1; transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none; border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  opacity: 0.6;
}
.modal__close:hover { opacity: 1; }

/* ============ Team bio modal ============ */
.modal--team { padding: 4vh var(--margin-mobile); }
.modal--team .modal__dialog {
  background: var(--cream-warm);
  max-width: 800px;
  padding: 2rem;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.45);
}
@media (min-width: 640px) {
  .modal--team .modal__dialog { padding: 3rem; }
}
.modal--team .modal__close { color: var(--mauve); opacity: 0.8; }
.modal--team .modal__close:hover { color: var(--mauve-deep); opacity: 1; }
.team-modal__role {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve-deep);
  margin: 0 0 0.5rem;
}
.team-modal__name {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 1.5rem;
}
.team-modal__bio {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
}
.team-modal__bio p { margin: 0 0 1em; }
.team-modal__bio p:last-child { margin-bottom: 0; }

/* ============ Footer ============ */
.site-footer { padding: 3.25rem 0 2rem; background: var(--ink-heading); color: var(--cream); }
.site-footer__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.site-logo--footer { margin-bottom: 0.5rem; }
.site-footer__copyright { font-family: var(--font-sans); font-size: 0.78rem; opacity: 0.55; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
}
.site-footer__legal a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(245,243,240,0.4);
  text-underline-offset: 0.25em;
}
.site-footer__legal a:hover { text-decoration-color: var(--coral); }
.site-footer__legal button {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(245,243,240,0.4);
  text-underline-offset: 0.25em;
}
.site-footer__legal button:hover { text-decoration-color: var(--coral); }
.site-footer__credits { font-family: var(--font-sans); font-size: 0.7rem; opacity: 0.5; margin-top: 0.3rem; }
.site-footer__credits p { margin: 0; }
.site-footer__credits p + p { margin-top: 0.2rem; }

/* ============ Legal pages ============ */
.legal-page {
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
}
.legal-header {
  padding: 1.1rem var(--margin-mobile);
  background: var(--ink-heading);
}
.legal-header__inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}
.legal-header img {
  display: block;
  width: min(250px, 70vw);
  height: auto;
}
.legal-main {
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.legal-main h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  margin-bottom: 0.35rem;
}
.legal-main h2 {
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  margin: 2.25rem 0 0.65rem;
}
.legal-main p,
.legal-main li {
  font-size: 1rem;
  line-height: 1.75;
}
.legal-main ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0 1.25rem;
}
.legal-main li + li { margin-top: 0.45rem; }
.legal-main a {
  color: var(--mauve-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.legal-main__updated {
  color: #6b6560;
  font-family: var(--font-sans);
  font-size: 0.82rem !important;
  margin-bottom: 2rem;
}
.legal-main__back {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

/* ============ Cookie consent ============ */
.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 500;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.3);
}
.cookie-consent__copy { flex: 1 1 auto; }
.cookie-consent h2 {
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
}
.cookie-consent p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.55;
}
.cookie-consent p a {
  color: var(--mauve-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.cookie-consent__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 0.65rem;
}
.cookie-consent__actions .btn {
  min-height: 42px;
  padding: 0.7em 1em;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .cookie-consent {
    align-items: stretch;
    flex-direction: column;
  }
  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* ============ Responsive ============ */
@media (max-width: 899px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .artist { grid-template-columns: 1fr; }
  .artist__photo { max-width: 420px; margin: 0 auto; }
  .creative-team__grid { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
  .newsletter-form__bar { flex-wrap: wrap; }
  .newsletter-form__bar h2 { flex-basis: 100%; text-align: center; margin: 0 0 0.1rem; }
  .presenter-form__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .eras__diptych { grid-template-columns: 1fr; max-width: 360px; }
  .eras__photo--julie, .eras__photo--anna { justify-self: center; max-width: 340px; }
  .eras__divider { flex-direction: row; align-self: auto; padding: 0.25rem 0; }
  .eras__divider-line { width: auto; height: 1px; flex: 1; min-height: 0; background: linear-gradient(to right, rgba(253,81,131,0), rgba(253,81,131,0.65), rgba(253,81,131,0)); }
  .eras__divider-years { writing-mode: horizontal-tb; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .creative-team__grid { grid-template-columns: 1fr; max-width: 380px; }
  .btn { justify-content: center; }
  .newsletter-form__bar { flex-direction: column; align-items: stretch; }
  .newsletter-form__bar h2 { flex-basis: auto; text-align: center; }
  .newsletter-form__bar .form-field,
  .newsletter-form__bar .form-field:nth-of-type(1),
  .newsletter-form__bar .form-field:nth-of-type(2) { width: 100%; }
  .newsletter-slideout {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    padding: 1.35rem;
  }
}
