/* ============================================
   Emma Saunders Dance — stylesheet
   ============================================ */

:root {
  --ink: #111111;
  --paper: #ffffff;
  --paper-dim: #ffffff;
  --accent: #e22443;
  --accent-dim: #c81b38;
  --yellow: #fedc00;
  --coral: #e22443;
  --coral-dim: #c81b38;
  --line: rgba(23, 23, 26, 0.12);
  --max: 1180px;
  --max-wide: 1400px;
  --font-display: "Fraunces", Georgia, serif;
  --font-shout: "Work Sans", Helvetica, Arial, sans-serif;
  --font-body: "Work Sans", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dim);
  font-weight: 600;
  margin: 0 0 14px;
  display: block;
}

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

p { margin: 0 0 1.1em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  background: transparent;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand .logo-mark {
  width: 64px;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.brand .role {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #3a3a36;
}

.footer-logo {
  width: 56px;
  height: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent-dim);
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------- hero video ---------- */

.hero-video {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 460px;
  max-height: 820px;
  overflow: hidden;
  background: var(--ink);
}

.hero-video video,
.hero-video img.fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.55) 100%);
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 28px 44px;
  color: #fff;
}

.hero-caption .wrap-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero-caption h1 {
  font-size: clamp(32px, 5vw, 58px);
  color: #fff;
  max-width: 720px;
}

/* ---------- generic section ---------- */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.section-alt { background: var(--paper-dim); }

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}

.lede {
  font-size: 20px;
  color: #3a3a36;
}

/* ---------- photo gallery grid ---------- */

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

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-caption {
  margin-top: 28px;
  font-size: 15px;
  color: #55554f;
  max-width: 780px;
}

/* ---------- feature (video + text) rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.feature-media video,
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text .credit {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  color: #7a7a72;
}

.event-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 40px;
}

.event-card .event-date {
  font-family: var(--font-display);
  font-size: 30px;
  margin-bottom: 4px;
}

.event-card .event-meta {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8d3c6;
  margin-bottom: 26px;
}

.event-card .btn { border-color: var(--paper); color: var(--paper); }
.event-card .btn:hover { background: var(--paper); color: var(--ink); }

/* ---------- project cards ---------- */

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

.project-card { display: block; }

.project-card .thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 18px;
  background: var(--paper-dim);
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .thumb img { transform: scale(1.05); }

.project-card h3 {
  font-size: 21px;
  margin-bottom: 4px;
}

.project-card .tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

/* ---------- bio page ---------- */

.bio-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
  padding: 72px 0 40px;
}

.bio-hero img {
  border-radius: 8px;
  width: 100%;
}

.bio-body p { color: #2c2c28; }
.bio-body { max-width: 760px; }

/* ---------- contact ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  padding: 72px 0 100px;
}

.contact-info h1 { font-size: clamp(34px, 4.5vw, 52px); }

.contact-info .social {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

form.contact-form { display: grid; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #55554f;
  font-weight: 600;
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 14px;
  color: #6f6f68;
  margin-top: -4px;
}

.form-status {
  font-size: 14px;
  margin-top: 6px;
  display: none;
}
.form-status.visible { display: block; }
.form-status.ok { color: #3f6b2f; }
.form-status.err { color: var(--accent-dim); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 34px;
  margin-top: 0;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.site-footer .wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: lowercase;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(246,243,238,0.3);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; fill: var(--paper); }

.site-footer .fine-print {
  font-size: 12px;
  color: #9c9c93;
  letter-spacing: 0.04em;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-hero { grid-template-columns: 1fr; }
  .bio-hero img { max-width: 320px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
}

@media (max-width: 680px) {
  .main-nav { position: fixed; inset: 68px 0 0 0; background: var(--paper); transform: translateY(-110%); transition: transform 0.25s ease; z-index: 40; overflow-y: auto; }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 20px 28px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 18px 0; }
  .nav-toggle { display: block; }

  section { padding: 56px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-video { height: 68vh; }
  .event-card { padding: 28px; }
}

/* ============================================
   Full-bleed overlay sections (hero, WE ARE HERE, Encounter)
   ============================================ */

.hero-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 74vh;
}

.hero-split .mosaic,
.hero-split .media-pane {
  min-height: 320px;
  height: 100%;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  height: 100%;
}

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

.media-pane {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.media-pane video,
.media-pane img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption-plain {
  padding: 22px 28px;
  font-size: 14px;
  color: #55554f;
  max-width: 980px;
}

/* Reusable full-bleed section with background media + dark scrim + overlaid content */

.bleed-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.bleed-section .bleed-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bleed-section .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
}

.bleed-section.centered .scrim {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.72) 75%);
}

.bleed-section .bleed-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 64px 28px;
}

.shout {
  font-family: var(--font-shout);
  font-weight: 700;
  font-style: italic;
  color: var(--yellow);
  line-height: 1.06;
  margin: 0 0 0.15em;
  letter-spacing: -0.01em;
}

.shout.lg { font-size: clamp(30px, 4.2vw, 52px); }
.shout.xl { font-size: clamp(34px, 6vw, 64px); text-transform: uppercase; }

.text-box-dark {
  background: rgba(0,0,0,0.82);
  color: var(--yellow);
  padding: 22px 26px;
  max-width: 480px;
  margin: 22px 0 26px;
  font-size: 15.5px;
  line-height: 1.55;
}
.text-box-dark p { margin: 0 0 0.8em; color: var(--yellow); }
.text-box-dark p:last-child { margin-bottom: 0; }

.pill-coral {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 14px 22px;
  margin: 0 10px 10px 0;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.pill-coral:hover { background: var(--coral-dim); }

.credit-line {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.bleed-social {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 8px;
}
.bleed-social img { width: 100%; height: 100%; object-fit: cover; }

.encounter-stack {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.encounter-stack .shout { display: block; }

.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-top: 22px;
  border: 3px solid rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}
.btn-circle:hover { transform: scale(1.06); }

/* Contact page photo */

.contact-photo {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.contact-photo img { width: 100%; display: block; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .mosaic { height: 62vw; }
  .hero-split .media-pane { height: 62vw; }
  .bleed-section { min-height: 520px; }
  .text-box-dark { max-width: 100%; }
}

@media (max-width: 680px) {
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .bleed-section .bleed-content { padding: 40px 20px; }
  .btn-circle { width: 88px; height: 88px; font-size: 12px; }
  .brand .logo-mark { width: 52px; }
}

/* ---------- click-to-play video facade ---------- */

.video-facade {
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-facade .play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.video-facade .play-btn svg { width: 28px; height: 28px; fill: var(--ink); margin-left: 4px; }
.video-facade:hover .play-btn { transform: scale(1.08); background: #fff; }

.video-facade .video-label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.video-facade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 35%);
}

.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
