.subpage-hero {
  position: relative;
  isolation: isolate;
  min-height: 68svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--warm);
  background-position: center;
  background-size: cover;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18, 17, 16, 0.84) 0%, rgba(18, 17, 16, 0.56) 52%, rgba(18, 17, 16, 0.26) 100%);
}

.events-hero { background-image: url("back-room-final.jpg"); }
.story-hero { background-image: url("front-bar-final.jpg"); }

.subpage-hero__inner {
  padding-top: 176px;
  padding-bottom: 72px;
}

.subpage-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.96;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 249, 237, 0.9);
  font-size: 1.15rem;
}

.content-section { padding: 80px 0; }
.content-section.white { background: var(--warm); }
.content-section.ivory { background: var(--ivory); }
.content-section.dark { color: var(--warm); background: #1b1b1a; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1;
}

.section-heading p,
.section-copy {
  margin: 0;
  color: #655f55;
  font-size: 1.06rem;
}

.content-section.dark .section-heading p { color: rgba(255, 249, 237, 0.76); }

.event-space-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.space-card,
.story-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(18, 17, 16, 0.18);
}

.space-card { min-height: 520px; }

.space-card img,
.story-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-card figcaption,
.story-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 20px 18px;
  color: var(--warm);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0));
  font-weight: 900;
}

.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.request-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}

.request-copy p { color: rgba(255, 249, 237, 0.78); }
.request-copy a { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.event-form {
  padding: 30px;
  border: 1px solid rgba(255, 249, 237, 0.18);
  border-radius: 10px;
  background: rgba(255, 249, 237, 0.08);
}

.form-honeypot { display: none; }

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

.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  color: var(--warm);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 249, 237, 0.32);
  border-radius: 6px;
  color: var(--ink);
  background: var(--warm);
  font: inherit;
}

.form-field textarea { min-height: 132px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 3px solid #e9c7a7; outline-offset: 2px; }

.form-actions { margin-top: 20px; }

.submit-button {
  min-height: 50px;
  padding: 13px 20px;
  border: 0;
  border-radius: 7px;
  color: var(--green-deep);
  background: var(--warm);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.submit-button:hover { background: #e9c7a7; }
.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-note,
.form-status { margin: 14px 0 0; color: rgba(255, 249, 237, 0.72); font-size: 0.9rem; }

.form-status:empty { display: none; }
.form-status.is-success { color: #f1cfad; font-weight: 800; }
.form-status.is-error { color: #ffd0c7; font-weight: 800; }
.form-status:focus { outline: none; }

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

.concept-card {
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(18, 17, 16, 0.15);
  border-radius: 8px;
  background: var(--ivory);
}

.concept-card h3 { margin: 0 0 10px; font-size: 1.22rem; }
.concept-card p { margin: 0; color: #655f55; }

.phase-block { margin-top: 58px; }
.phase-block:first-of-type { margin-top: 0; }

.phase-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(18, 17, 16, 0.16);
}

.phase-heading h3 { margin: 0; font-size: 1.35rem; }
.phase-heading span { color: var(--copper); font-size: 0.82rem; font-weight: 900; text-transform: uppercase; }

.story-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 290px;
  gap: 14px;
}

.story-gallery .large,
.story-gallery .wide { grid-column: span 2; }

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.subpage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 249, 237, 0.58);
  border-radius: 8px;
  color: var(--warm);
  font-weight: 900;
}

.subpage-button.primary { color: var(--green-deep); background: var(--warm); }
.mobile-nav a[aria-current="page"] { color: var(--green-deep); background: var(--warm); }

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 960px) {
  .section-heading,
  .request-grid { grid-template-columns: 1fr; gap: 24px; }
  .space-card { min-height: 430px; }
  .story-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .subpage-hero { min-height: 62svh; }
  .subpage-hero__inner { padding-top: 132px; padding-bottom: 46px; }
  .subpage-hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero-lead { font-size: 1rem; }
  .content-section { padding: 52px 0; }
  .event-space-grid,
  .concept-grid,
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .space-card { min-height: 360px; }
  .event-form { padding: 20px; }
  .story-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .story-gallery figure,
  .story-gallery .large,
  .story-gallery .wide {
    flex: 0 0 82%;
    min-height: 320px;
    grid-column: auto;
    scroll-snap-align: start;
  }
  .phase-heading { display: grid; gap: 5px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 420px) {
  .mobile-nav a { font-size: 0.68rem; white-space: nowrap; }
  .space-card { min-height: 320px; }
}
