:root {
  --primary-red: #c1121f;
  --dark-red: #780000;
  --soft-red: #f8d7da;
  --black: #111111;
  --dark-gray: #2b2b2b;
  --gray: #666666;
  --light-gray: #f5f5f5;
  --line: #e7e7e7;
  --white: #ffffff;
  --off-white: #fafafa;
  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: "Inter", "Segoe UI", sans-serif;
  --max-width: 1180px;
  --header-height: 86px;
  --radius: 8px;
  --shadow-soft: 0 18px 45px rgba(17, 17, 17, 0.08);
  --shadow-card: 0 10px 24px rgba(17, 17, 17, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  color: var(--black);
  background:
    linear-gradient(180deg, rgba(245, 245, 245, 0.72) 0%, transparent 420px),
    var(--white);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(193, 18, 31, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.7;
}

body::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 5px;
  height: 100vh;
  background: var(--primary-red);
  pointer-events: none;
}

main {
  overflow: clip;
}

.page-shell {
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-wipe {
  display: none;
}

body.is-ready .page-wipe {
  display: none;
}

.topline,
.nav-bar,
.hero-home,
.page-hero,
.hours-band,
.section,
.footer-grid {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(17, 17, 17, 0.12);
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.06);
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0 0;
  color: var(--gray);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
  padding: 12px 0 18px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 132px;
}

.brand-mark {
  color: var(--primary-red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-sub {
  color: var(--black);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--dark-gray);
  font-size: 0.86rem;
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--primary-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
}

.nav-cta,
.button,
.button-secondary,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-cta,
.button {
  background: var(--primary-red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(193, 18, 31, 0.2);
}

.button-secondary,
.menu-toggle {
  background: var(--white);
  color: var(--black);
  border-color: rgba(17, 17, 17, 0.16);
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.06);
}

.nav-cta:hover,
.button:hover,
.button-secondary:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.12);
}

.nav-cta:hover,
.button:hover {
  background: var(--dark-red);
}

.menu-toggle {
  display: none;
}

.hero-home,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  gap: 64px;
  align-items: center;
  padding: 64px 0 72px;
}

.page-hero {
  min-height: 520px;
}

.hero-copy,
.page-hero-copy,
.hero-visual,
.page-hero-media {
  position: relative;
}

.hero-copy > *,
.page-hero-copy > * {
  opacity: 1;
  transform: none;
}

body.is-ready .hero-copy > *,
body.is-ready .page-hero-copy > * {
  animation: none;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  color: var(--primary-red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.footer-lead {
  margin: 0;
}

h1,
h2 {
  font-family: var(--heading-font);
  color: var(--black);
  font-weight: 700;
  overflow-wrap: normal;
  word-break: normal;
}

h1 {
  max-width: 8.5ch;
  font-size: 4.5rem;
  line-height: 1;
}

.hero-title-wide {
  max-width: 13.5ch;
  font-size: clamp(3.65rem, 5.1vw, 4.5rem);
}

.hero-title-wide span {
  display: block;
}

.page-hero h1 {
  font-size: 4rem;
}

h2 {
  max-width: 13ch;
  font-size: 2.6rem;
  line-height: 1.08;
}

h3 {
  color: var(--black);
  font-family: var(--heading-font);
  font-size: 1.24rem;
  line-height: 1.2;
}

.hero-text,
.section-intro p,
.split-copy p,
.info-block p,
.policy-list p,
.directory-copy span,
.support-note,
.form-note,
.form-status,
.number-list {
  color: var(--gray);
}

.hero-text {
  max-width: 600px;
  margin: 20px 0 0;
  font-size: 1.12rem;
  line-height: 1.75;
}

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

.catalog-search {
  max-width: 640px;
  margin-top: 30px;
}

.catalog-search label {
  display: block;
  margin-bottom: 9px;
  color: var(--dark-gray);
  font-size: 0.84rem;
  font-weight: 800;
}

.catalog-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.catalog-search input {
  min-width: 0;
  border: 0;
  padding: 0 12px;
  color: var(--black);
  background: transparent;
  outline: 0;
}

.catalog-search input:focus-visible {
  outline: 3px solid rgba(193, 18, 31, 0.16);
  outline-offset: 2px;
}

.hero-notes,
.detail-list,
.event-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-notes li {
  padding: 9px 12px;
  border: 1px solid rgba(193, 18, 31, 0.24);
  border-radius: 999px;
  background: rgba(248, 215, 218, 0.52);
  color: var(--dark-red);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-visual {
  min-height: 520px;
}

.hero-visual::before,
.page-hero-media::before,
.split-media::before,
.promo-art::before,
.media-stack::before,
.form-shell::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 16px;
  background: var(--light-gray);
  border: 1px solid var(--line);
}

.hero-visual::after {
  content: "427 Water St.";
  position: absolute;
  right: -8px;
  top: 28px;
  z-index: 5;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--dark-gray);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: var(--shadow-card);
}

.hero-visual .photo-panel,
.hero-visual .poster-panel,
.page-hero-media img,
.editorial-photo,
.promo-art img {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.hero-visual img,
.page-hero-media img,
.editorial-photo img,
.promo-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-panel-primary {
  inset: 16px 70px 70px 0;
  transform: translateY(var(--parallax-shift, 0));
}

.photo-panel-secondary {
  right: 0;
  top: 92px;
  width: 46%;
  aspect-ratio: 1 / 0.82;
  transform: translateY(var(--parallax-shift, 0));
}

.poster-panel {
  left: 42px;
  bottom: 0;
  width: 34%;
  aspect-ratio: 0.78 / 1;
}

.page-hero-media {
  min-height: 430px;
}

.page-hero-media img {
  inset: 0;
}

.stat-bubble,
.accent-badge {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -24px;
  z-index: 2;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-card);
  font-weight: 800;
  line-height: 1.45;
}

.stat-bubble-dark {
  background: var(--dark-gray);
  color: var(--white);
}

.hours-band {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.hours-band-copy {
  padding: 34px;
  background: var(--dark-gray);
}

.hours-band-copy .eyebrow,
.hours-band-copy h2 {
  color: var(--white);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.hours-item {
  padding: 22px;
  background: var(--white);
}

.hours-item:nth-child(odd) {
  background: var(--off-white);
}

.hours-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-red);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hours-item strong {
  display: block;
  color: var(--black);
  font-size: 0.94rem;
}

.section {
  padding: 88px 0;
}

.section-intro {
  max-width: 760px;
}

.section-intro p {
  max-width: 620px;
  margin-top: 14px;
  line-height: 1.75;
}

.directory-rail {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.directory-link {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.directory-link:hover {
  transform: translateY(-3px);
  border-color: rgba(193, 18, 31, 0.34);
  box-shadow: var(--shadow-soft);
}

.directory-number {
  color: var(--primary-red);
  font-family: var(--heading-font);
  font-size: 2.4rem;
  font-weight: 700;
}

.directory-copy strong {
  display: block;
  margin-bottom: 6px;
  color: var(--black);
  font-size: 1.28rem;
  font-weight: 800;
}

.directory-copy span {
  display: block;
  max-width: 760px;
  line-height: 1.65;
}

.split-section,
.community-promo {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}

.split-section-reverse .split-copy {
  order: 2;
}

.split-section-reverse .split-media,
.split-section-reverse .media-stack {
  order: 1;
}

.split-copy p {
  max-width: 660px;
  margin: 16px 0 0;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--primary-red);
  font-weight: 800;
}

.text-link:hover,
.detail-list-links a:hover,
.info-block a:hover,
.split-copy a:hover,
.footer-grid a:hover {
  color: var(--dark-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.split-media,
.promo-art,
.media-stack,
.form-shell {
  position: relative;
  min-height: 380px;
}

.editorial-photo,
.promo-art img {
  inset: 0;
  position: relative;
  min-height: 380px;
}

.editorial-photo-tall {
  aspect-ratio: 0.74 / 1;
}

.editorial-photo-wide {
  aspect-ratio: 1 / 0.74;
}

.media-stack {
  display: grid;
  gap: 18px;
}

.media-stack .editorial-photo {
  z-index: 1;
}

.media-stack-offset {
  width: min(76%, 340px);
  margin-left: auto;
}

.promo-panel {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.promo-panel p {
  color: var(--gray);
  line-height: 1.75;
}

.quote-strip {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.quote-strip p {
  margin: 0;
  padding: 18px;
  border-left: 4px solid var(--primary-red);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--dark-gray);
  line-height: 1.65;
}

.section-nav {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  z-index: 18;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.section-nav a {
  flex: 0 0 auto;
  min-width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--dark-gray);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  background: var(--primary-red);
  color: var(--white);
}

.info-grid,
.policy-grid,
.board-grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.info-grid,
.policy-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-block,
.policy-list,
.note-card,
.board-member {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.info-block,
.policy-list,
.note-card {
  padding: 24px;
}

.info-block h3,
.policy-list h3 {
  margin-bottom: 12px;
}

.info-block p,
.policy-list p {
  margin: 10px 0 0;
  line-height: 1.7;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 18px;
  color: var(--gray);
  line-height: 1.65;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary-red);
}

.detail-list-links a,
.info-block a,
.split-copy a {
  color: var(--primary-red);
  font-weight: 700;
}

.number-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.number-list li {
  line-height: 1.65;
}

.support-note {
  margin-top: 14px;
  line-height: 1.7;
}

.board-member {
  padding: 18px;
  color: var(--dark-gray);
  font-weight: 800;
  text-align: center;
}

.form-shell {
  min-height: auto;
}

.contact-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  color: var(--dark-gray);
  font-size: 0.78rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--white);
  color: var(--black);
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid rgba(193, 18, 31, 0.2);
  border-color: var(--primary-red);
}

.form-note,
.form-status {
  margin: 0;
  line-height: 1.65;
}

.form-status {
  min-height: 24px;
  color: var(--primary-red);
  font-weight: 700;
}

.site-footer {
  margin-top: 72px;
  background: var(--black);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.7fr));
  gap: 32px;
  padding: 46px 0 56px;
}

.footer-grid p,
.footer-grid a {
  margin: 0;
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid .eyebrow {
  color: var(--soft-red);
}

.footer-lead {
  color: var(--white);
  font-weight: 800;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 560ms ease, transform 560ms ease;
}

body.is-ready [data-reveal] {
  opacity: 1;
  transform: none;
}

body.is-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .page-wipe {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero-home,
  .page-hero,
  .split-section,
  .community-promo,
  .hours-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .page-hero-media {
    min-height: 460px;
  }

  .hours-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section-reverse .split-copy,
  .split-section-reverse .split-media,
  .split-section-reverse .media-stack {
    order: initial;
  }
}

@media (max-width: 960px) {
  .nav-bar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding-top: 10px;
  }

  .site-header.is-nav-open .site-nav {
    display: flex;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 74px;
  }

  .topline {
    display: none;
  }

  .nav-bar {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .brand-sub {
    font-size: 1.32rem;
  }

  .topline,
  .nav-bar,
  .hero-home,
  .page-hero,
  .hours-band,
  .section,
  .footer-grid,
  .section-nav {
    width: min(100% - 28px, var(--max-width));
  }

  .hero-home,
  .page-hero {
    gap: 34px;
    padding: 42px 0 54px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.5rem;
  }

  .hero-title-wide {
    font-size: 2.18rem;
    max-width: 100%;
  }

  h2 {
    font-size: 1.95rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-visual,
  .page-hero-media {
    min-height: 360px;
  }

  .photo-panel-primary {
    inset: 0 42px 62px 0;
  }

  .photo-panel-secondary {
    top: 118px;
    width: 48%;
  }

  .poster-panel {
    left: 20px;
    width: 38%;
  }

  .stat-bubble {
    left: 18px;
    right: 18px;
    bottom: -18px;
    font-size: 0.9rem;
  }

  .section-nav {
    top: calc(var(--header-height) + 8px);
    border-radius: 12px;
  }

  .hours-grid,
  .info-grid,
  .policy-grid,
  .quote-strip,
  .board-grid,
  .form-row,
  .catalog-search-row {
    grid-template-columns: 1fr;
  }

  .catalog-search-row .button {
    width: 100%;
  }

  .hours-band-copy {
    padding: 26px;
  }

  .section {
    padding: 62px 0;
  }

  .directory-link {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .directory-number {
    font-size: 2rem;
  }

  .media-stack-offset {
    width: 88%;
  }

  .contact-form,
  .promo-panel {
    padding: 22px;
  }
}
