@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8f4ec;
  --bg-deep: #efe7d7;
  --surface: rgba(255, 251, 244, 0.82);
  --surface-strong: rgba(255, 252, 247, 0.94);
  --text: #3f291c;
  --muted: #725745;
  --gold: #ba7a1a;
  --gold-dark: #8b5610;
  --leaf: #5b7d1f;
  --leaf-soft: #8fa53f;
  --teal: #0f95a7;
  --red: #ba1d22;
  --blue: #255eb7;
  --line: rgba(186, 122, 26, 0.16);
  --shadow: 0 24px 80px rgba(63, 41, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(15, 149, 167, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(186, 29, 34, 0.12), transparent 26%),
    radial-gradient(circle at bottom center, rgba(37, 94, 183, 0.12), transparent 24%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 55%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
}

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

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-header,
.section {
  position: relative;
  z-index: 1;
}

.page-header {
  padding: 1.25rem clamp(1.1rem, 3vw, 2.5rem) 2.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.paint,
.music-note {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  opacity: 0.14;
}

.paint {
  filter: blur(4px);
}

.paint-one {
  top: 3rem;
  right: -2rem;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle at 30% 30%, rgba(15, 149, 167, 0.7), rgba(15, 149, 167, 0.04) 70%);
  border-radius: 46% 54% 64% 36% / 48% 33% 67% 52%;
}

.paint-two {
  top: 42rem;
  left: -4rem;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle at 40% 40%, rgba(186, 29, 34, 0.55), rgba(186, 29, 34, 0.04) 72%);
  border-radius: 59% 41% 52% 48% / 38% 49% 51% 62%;
}

.paint-three {
  bottom: 12rem;
  right: 8%;
  width: 11rem;
  height: 11rem;
  background: radial-gradient(circle at 35% 35%, rgba(37, 94, 183, 0.5), rgba(37, 94, 183, 0.03) 72%);
  border-radius: 58% 42% 70% 30% / 34% 52% 48% 66%;
}

.paint-four {
  top: 20rem;
  left: 40%;
  width: 8rem;
  height: 8rem;
  background: radial-gradient(circle at 35% 35%, rgba(186, 122, 26, 0.55), rgba(186, 122, 26, 0.03) 72%);
  border-radius: 44% 56% 41% 59% / 52% 38% 62% 48%;
}

.paint-five {
  top: 88rem;
  right: -2rem;
  width: 13rem;
  height: 13rem;
  background: radial-gradient(circle at 30% 30%, rgba(91, 125, 31, 0.58), rgba(91, 125, 31, 0.04) 70%);
  border-radius: 62% 38% 55% 45% / 41% 63% 37% 59%;
}

.paint-six {
  bottom: 24rem;
  left: -2rem;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle at 45% 45%, rgba(15, 149, 167, 0.45), rgba(15, 149, 167, 0.03) 72%);
  border-radius: 53% 47% 66% 34% / 58% 37% 63% 42%;
}

.music-note {
  font-size: clamp(2rem, 4vw, 4.5rem);
  color: var(--gold);
}

.note-one {
  top: 16rem;
  left: 4%;
  transform: rotate(-10deg);
}

.note-two {
  top: 58rem;
  right: 6%;
  transform: rotate(8deg);
}

.note-three {
  bottom: 9rem;
  left: 8%;
}

.note-four {
  top: 28rem;
  right: 16%;
  transform: rotate(-6deg);
}

.note-five {
  top: 76rem;
  left: 12%;
  transform: rotate(12deg);
}

.note-six {
  bottom: 32rem;
  right: 10%;
  transform: rotate(-14deg);
}

.note-seven {
  bottom: 15rem;
  left: 46%;
  transform: rotate(10deg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(186, 122, 26, 0.12);
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(63, 41, 28, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 4.3rem;
  height: 4.3rem;
  object-fit: contain;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.26rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(186, 122, 26, 0.16);
  border-radius: 999px;
  background: rgba(255, 251, 247, 0.88);
  cursor: pointer;
}

.menu-toggle span {
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-dark);
}

.menu a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.menu a:hover,
.menu a:focus-visible,
.menu a.is-active {
  color: #fff8ef;
  background: linear-gradient(135deg, var(--gold) 0%, var(--teal) 100%);
  transform: translateY(-1px);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: 1180px;
  margin: 2.5rem auto 0;
}

.hero-content-compact {
  margin-top: 1.8rem;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 10ch;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold-dark);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead,
.section-text,
.story-card p,
.class-card p,
.front-card p,
.quote-card p,
.link-card p,
.hero-card-text span,
.contact-card p,
.site-footer p,
.site-footer a,
.feature-list li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.lead {
  max-width: 58ch;
  margin: 1.5rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--red) 100%);
  color: #fff7f0;
  box-shadow: 0 16px 40px rgba(186, 122, 26, 0.24);
}

.button.secondary {
  border-color: rgba(15, 149, 167, 0.2);
  background: rgba(255, 251, 247, 0.76);
}

.hero-card,
.story-card,
.class-card,
.front-card,
.quote-card,
.link-card,
.event-panel,
.notice-card,
.map-card,
.contact-card,
.site-footer {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(63, 41, 28, 0.05);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(247, 240, 230, 0.88)),
    rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: min(100%, 420px);
  margin: 0 auto;
}

.hero-card-text {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.hero-card-text strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.hero-list,
.feature-list {
  margin: 1.2rem 0 0;
  padding-left: 1.2rem;
}

.hero-list li,
.feature-list li {
  margin-bottom: 0.7rem;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem clamp(1.1rem, 3vw, 2.5rem) 4rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2.35rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.story-grid,
.class-grid,
.front-grid,
.quote-grid,
.links-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.story-grid,
.front-grid,
.quote-grid,
.links-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.story-card,
.class-card,
.front-card,
.quote-card,
.link-card,
.event-panel,
.notice-card {
  padding: 1.45rem;
  border-radius: 1.6rem;
}

.notice-card {
  background: linear-gradient(135deg, rgba(255, 251, 244, 0.92), rgba(242, 236, 224, 0.92));
}

.story-card h3,
.class-card h3,
.front-card h3,
.link-card h3 {
  margin: 0 0 0.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
}

.class-audience {
  margin-top: -0.15rem;
  font-weight: 700;
  color: var(--red);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.split-copy {
  margin-bottom: 0;
}

.front-card .eyebrow {
  margin-bottom: 0.6rem;
}

.quote-card {
  margin: 0;
}

.quote-card footer {
  margin-top: 1rem;
  color: var(--gold-dark);
  font-weight: 700;
}

.link-card {
  display: block;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.link-card span {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--teal);
  font-weight: 700;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(15, 149, 167, 0.3);
  box-shadow: 0 16px 36px rgba(63, 41, 28, 0.09);
}

.carousel {
  position: relative;
  padding: 0 3.6rem 3.3rem;
}

.carousel-viewport {
  position: relative;
  min-height: clamp(260px, 52vw, 620px);
  border-radius: 2rem;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(15, 149, 167, 0.12), rgba(186, 122, 26, 0.1));
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoomable-image {
  cursor: zoom-in;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.88);
  color: var(--gold-dark);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(63, 41, 28, 0.15);
  transform: translateY(-50%);
}

.carousel-control.prev {
  left: 0.5rem;
}

.carousel-control.next {
  right: 0.5rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.dot {
  width: 0.8rem;
  height: 0.8rem;
  border: none;
  border-radius: 999px;
  background: rgba(63, 41, 28, 0.18);
  cursor: pointer;
  transition:
    width 220ms ease,
    background 220ms ease;
}

.dot.is-active {
  width: 2rem;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 8, 0.84);
  backdrop-filter: blur(6px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
}

.lightbox-content img {
  width: auto;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 1.4rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.94);
  color: var(--gold-dark);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.map-card,
.contact-card {
  border-radius: 1.8rem;
  overflow: hidden;
}

.map-card iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.contact-card {
  padding: 1.5rem;
}

.contact-card h3,
.site-footer h3,
.site-footer h4 {
  margin: 0 0 0.75rem;
  font-family: 'Cormorant Garamond', serif;
}

.contact-card h3 {
  font-size: 2rem;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto 2.5rem;
  padding: 1.6rem clamp(1.1rem, 3vw, 2.5rem);
  border-radius: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .topbar,
  .hero-content,
  .story-grid,
  .class-grid,
  .front-grid,
  .quote-grid,
  .links-grid,
  .gallery-grid,
  .split-section,
  .map-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 1.6rem;
    padding: 1rem;
    align-items: start;
  }

  .topbar,
  .hero-content {
    display: grid;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    grid-row: 1;
    grid-column: 2;
  }

  .menu {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding-top: 0.75rem;
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    width: 100%;
    text-align: left;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .hero-card {
    max-width: 38rem;
    margin: 0 auto;
  }

  .map-card iframe {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .page-header {
    padding-top: 0.8rem;
  }

  .brand {
    font-size: 1.45rem;
  }

  .brand img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .menu {
    gap: 0.55rem 0.7rem;
    font-size: 0.92rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .section-heading h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .carousel {
    padding: 0 0 3rem;
  }

  .carousel-control {
    top: auto;
    bottom: 0;
    transform: none;
    width: 2.75rem;
    height: 2.75rem;
  }

  .carousel-control.prev {
    left: calc(50% - 3.4rem);
  }

  .carousel-control.next {
    right: calc(50% - 3.4rem);
  }

  .carousel-viewport {
    min-height: 240px;
    border-radius: 1.4rem;
  }

  .paint-one,
  .paint-two,
  .paint-three,
  .paint-four,
  .paint-five,
  .paint-six,
  .music-note {
    opacity: 0.1;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .slide,
  .dot,
  .menu a,
  .link-card {
    transition: none;
  }
}
