:root {
  --heading: #403633;
  --ink: #5e514c;
  --muted: #887872;
  --saffron: #dc6a28;
  --vermilion: #a93426;
  --marigold: #efa944;
  --cream: #fff8ed;
  --paper: #f7ecdb;
  --line: rgba(74, 42, 29, 0.16);
  --shadow-soft: 0 8px 22px rgba(63, 31, 19, 0.1);
  --shadow-card: 0 14px 30px rgba(63, 31, 19, 0.14);
  --shadow-raised: 0 18px 42px rgba(42, 20, 13, 0.2);
}

* {
  box-sizing: border-box;
}
::selection {
  background: var(--marigold);
  color: var(--ink);
}
::-moz-selection {
  background: var(--marigold);
  color: var(--ink);
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.topline {
  --topline-height: 32px;
  position: fixed;
  top: calc(var(--topline-height) * -1);
  left: 0;
  z-index: 4;
  width: 100%;
  background: var(--vermilion);
  color: #fff1d6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  visibility: hidden;
  transition:
    top 0.25s ease,
    visibility 0s linear 0.25s;
}
.topline.is-visible {
  top: 0;
  visibility: visible;
  transition: top 0.25s ease;
}
.topline:not(.is-visible) {
  pointer-events: none;
}
.topline .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}
.timetable-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.timetable-link:hover {
  color: #fff;
}
.timetable-link:focus-visible {
  outline: 2px solid #fff1d6;
  outline-offset: 4px;
}
header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  background: #3a1a15;
  color: white;
  box-shadow: 0 5px 18px rgba(42, 20, 13, 0.22);
  transition: top 0.25s ease;
}
header.topline-visible {
  top: var(--topline-height, 32px);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  transition: opacity 0.2s;
}
.brand:hover {
  opacity: 0.82;
}
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.brand-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.brand-name span {
  display: block;
  color: #ffd695;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a,
.nav-timetable {
  opacity: 0.84;
  transition:
    opacity 0.2s,
    color 0.2s;
}
.nav-timetable {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.nav-links a:hover,
.nav-timetable:hover {
  color: #ffd695;
  opacity: 1;
}
.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 11px 17px;
  box-shadow: 0 4px 12px rgba(18, 7, 4, 0.2);
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    color 0.2s,
    transform 0.2s;
}
.nav-links a.nav-cta:hover {
  background: var(--marigold);
  border-color: var(--marigold);
  box-shadow: 0 7px 16px rgba(18, 7, 4, 0.28);
  color: var(--ink);
  transform: translateY(-2px);
}
.menu-button {
  display: none;
  border: 0;
  background: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition:
    color 0.2s,
    transform 0.2s;
}
.menu-button:hover {
  color: #ffd695;
  transform: scale(1.08);
}

.hero {
  position: relative;
  min-height: 735px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
  background: #361b16;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(27, 12, 8, 0.8) 0%,
      rgba(38, 15, 10, 0.46) 48%,
      rgba(39, 11, 8, 0.2) 100%
    ),
    url("img/hero.webp") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(26, 11, 7, 0.7));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 92px 0 110px;
  max-width: 680px;
  text-shadow: 0 2px 16px rgb(49 41 38 / 42%);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffd18a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--marigold);
}
h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--heading);
}
h1 {
  max-width: 650px;
  margin: 24px 0 20px;
  font-size: clamp(54px, 8vw, 102px);
  line-height: 0.82;
  letter-spacing: -0.04em;
}
.hero h1,
.event-card h3 {
  color: white;
}
.hero-content p {
  max-width: 450px;
  margin: 0;
  color: #f5ddc5;
  font-size: 16px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 21px;
  background: var(--marigold);
  color: #351b10;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 9px 20px rgba(26, 11, 7, 0.28);
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  background: #ffc568;
  box-shadow: 0 13px 26px rgba(26, 11, 7, 0.34);
  transform: translateY(-3px);
}
.text-link {
  position: relative;
  color: #ffe2ae;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 0.2s,
    transform 0.2s;
}
.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.2s;
}
.text-link:hover {
  color: white;
  transform: translateX(3px);
}
.text-link:hover::after {
  transform: scaleX(1);
}
.timetable-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.scroll-note {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 42px;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: rgb(53 27 16 / 48%);
  border: 1px solid rgb(255 226 174 / 35%);
  border-radius: 4px 0 0 4px;
  box-shadow: -8px 8px 22px rgba(22, 8, 4, 0.2);
  color: #f8dcb8;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 10px rgb(49 41 38 / 55%);
}

.intro {
  padding: 92px 0 86px;
  background: var(--cream);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 110px;
  align-items: center;
}
.section-kicker {
  color: var(--saffron);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h2 {
  margin: 13px 0 18px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 0.94;
  letter-spacing: -0.03em;
}
.intro p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.ornament {
  position: relative;
  width: 210px;
  height: 210px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--vermilion);
  box-shadow: none;
  transform: none;
}
.ornament img {
  position: relative;
  z-index: 1;
  width: 64%;
  height: 64%;
  object-fit: contain;
}
.ornament picture {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}
.ornament::before {
  content: "";
  position: absolute;
  width: 144px;
  height: 144px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.om {
  position: relative;
  z-index: 1;
  font-family: Georgia, serif;
  font-size: 67px;
}
.promise {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
  padding: 17px 0;
  color: var(--vermilion);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-style: italic;
}

.events {
  padding: 83px 0 58px;
  background: var(--paper);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 {
  margin-bottom: 0;
}
.section-head p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}
.section-link {
  display: inline-flex;
  gap: 10px;
  margin: 0 0 30px;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 5px;
  background: transparent;
  color: var(--vermilion);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.section-link:hover {
  color: var(--saffron);
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.event-card {
  position: relative;
  min-height: 270px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  color: white;
  background: #4a2419;
  box-shadow:
    0 14px 28px rgba(63, 31, 19, 0.16),
    0 3px 8px rgba(63, 31, 19, 0.1);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.event-card:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 4px;
}
.event-card:nth-child(1) {
  --card-image: url("img/sasthi.webp");
}
.event-card:nth-child(2) {
  --card-image: url("img/saptami.webp");
}
.event-card:nth-child(3) {
  --card-image: url("img/ashtami.webp");
}
.event-card:nth-child(4) {
  --card-image: url("img/kumari%20puja.webp");
}
.event-card:nth-child(5) {
  --card-image: url("img/navami.webp");
}
.event-card:nth-child(6) {
  --card-image: url("img/bijoya%20dashami.webp");
}
.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-image) center / cover;
  transition: transform 0.4s;
}
.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, rgba(26, 11, 7, 0.83));
}
.event-card:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-4px);
}
.events-bottom-button {
  display: flex;
  width: fit-content;
  margin: 44px auto 0;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.event-card:hover::before {
  transform: scale(1.06);
}
.event-card > * {
  position: relative;
  z-index: 1;
}
.event-date {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 7px 9px;
  background: var(--marigold);
  color: #3d1c0d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.event-card h3 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 0.95;
}
.event-card p {
  margin: 0;
  color: #f4d9bc;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.event-card-hint {
  align-self: flex-start;
  margin-top: 17px;
  color: #ffe2ae;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.event-card-hint span {
  display: inline-block;
  margin-left: 5px;
  font-size: 14px;
  transition: transform 0.2s;
}
.event-card:hover .event-card-hint span,
.event-card:focus-visible .event-card-hint span {
  transform: translate(2px, -2px);
}

.members {
  padding: 105px 0 112px;
  background: var(--cream);
  overflow: hidden;
  scroll-margin-top: 92px;
}
.member-section {
  margin-top: 72px;
}
.member-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.member-section-number {
  color: var(--saffron);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.member-section h3 {
  margin: 7px 0 4px;
  font-size: 34px;
  line-height: 0.95;
}
.member-section-head p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pillar-card,
.member-card {
  min-width: 0;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.pillar-card img,
.member-card img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}
.member-card img {
  filter: saturate(0.82);
  transition:
    filter 0.3s,
    transform 0.45s;
}
.pillar-card img {
  aspect-ratio: 0.87;
  filter: none;
}
.pillar-card {
  overflow: hidden;
}
.pillar-card > div {
  padding: 17px 18px 20px;
}
.pillar-card h4,
.member-card h4 {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--heading);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}
.pillar-card span,
.member-card span {
  color: var(--vermilion);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.pillar-card:hover img,
.member-card:hover img {
  transform: scale(1.04);
}
.member-card:hover img {
  filter: saturate(1);
}
.pillar-card:hover,
.pillar-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.member-card:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-3px);
}
.member-viewport {
  overflow: hidden;
}
.member-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s ease;
  will-change: transform;
}
.member-card {
  flex: 0 0 calc((100% - 48px) / 4);
  overflow: hidden;
}
.member-card img {
  aspect-ratio: 0.8;
}
.member-card h4 {
  padding: 14px 15px 0;
  font-size: 21px;
}
.member-card span {
  display: block;
  padding: 0 15px 17px;
  margin-top: 5px;
  font-size: 10px;
}
.member-track-names .member-card h4 {
  padding-bottom: 17px;
}
.carousel-controls {
  display: flex;
  gap: 8px;
}
.carousel-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--vermilion);
  box-shadow: var(--shadow-soft);
  font-size: 25px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.carousel-button:hover {
  background: var(--vermilion);
  box-shadow: var(--shadow-card);
  color: white;
  transform: translateY(-2px);
}

.contact {
  padding: 92px 0 98px;
  background: var(--paper);
  color: var(--ink);
}
.contact-intro {
  max-width: 620px;
}
.contact .section-kicker {
  color: var(--saffron);
}
.contact h2 {
  margin-bottom: 14px;
}
.contact-intro p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}
.contact-card {
  min-height: 180px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-top: 3px solid var(--saffron);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
.contact-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.contact-label {
  color: var(--vermilion);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.contact-values {
  display: grid;
  gap: 5px;
}
.contact-values a,
.contact-action {
  color: var(--heading);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.contact-action span {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}
.contact-values a:hover,
.contact-action:hover {
  color: var(--vermilion);
}

footer {
  padding: 50px 0 25px;
  background: #2b1b18;
  color: #f8dfc2;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 45px;
}
footer h2 {
  margin: 0 0 10px;
  color: white;
  font-size: 40px;
}
.footer-logo {
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
  object-fit: contain;
}
footer p {
  max-width: 320px;
  margin: 0;
  color: #bd9d85;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  color: #edc296;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links a,
.footer-links .footer-timetable {
  position: relative;
  display: inline-block;
  line-height: 1;
  transition:
    color 0.2s,
    transform 0.2s;
}
.footer-links a::after,
.footer-links .footer-timetable::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.footer-links a:hover,
.footer-links .footer-timetable:hover {
  color: white;
  transform: translateY(-2px);
}
.footer-links a:hover::after,
.footer-links .footer-timetable:hover::after {
  transform: scaleX(1);
}
.footer-timetable {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.footer-timetable:hover {
  color: white;
}
.modal-open {
  overflow: hidden;
}
.timetable-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(38, 15, 10, 0.76);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.timetable-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.timetable-dialog {
  position: relative;
  width: min(820px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: 42px;
  background: var(--cream);
  box-shadow: var(--shadow-raised);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--vermilion);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.2s,
    transform 0.2s;
}
.modal-close:hover,
.modal-close:focus-visible {
  color: var(--saffron);
  transform: rotate(90deg) scale(1.08);
}
.timetable-dialog h2 {
  margin-bottom: 10px;
}
.timetable-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.timetable-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.timetable-option {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--paper);
  color: var(--heading);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.timetable-option:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.timetable-option span:last-child {
  color: var(--vermilion);
}
.modal-back {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--vermilion);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.2s,
    transform 0.2s;
}
.modal-back::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.modal-back:hover,
.modal-back:focus-visible {
  color: var(--saffron);
  transform: translateX(-3px);
}
.modal-back:hover::after,
.modal-back:focus-visible::after {
  transform: scaleX(1);
}
.timetable-viewer h2 {
  font-size: 36px;
}
.timetable-viewer img {
  width: 100%;
  height: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
}
.event-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(38, 15, 10, 0.76);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.event-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.event-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 42px;
  background: var(--cream);
  box-shadow: var(--shadow-raised);
}
.event-dialog h2 {
  max-width: 480px;
  margin-bottom: 14px;
}
.event-modal-summary {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.event-modal-details {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.event-modal-detail-label {
  color: var(--vermilion);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.event-modal-details ul {
  display: grid;
  gap: 13px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.55;
}
.copyright {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  color: #927563;
  font-size: 12px;
  font-weight: 500;
}

@media (min-width: 1440px) {
  .wrap {
    width: min(1392px, calc(100% - 48px));
  }
  nav {
    padding: 22px 0;
  }
  .hero {
    min-height: min(720px, calc(100svh - 145px));
  }
  .hero-content {
    max-width: 760px;
    padding: 82px 0 92px;
  }
  h1 {
    max-width: 730px;
    font-size: 96px;
  }
  .hero-content p {
    max-width: 500px;
    font-size: 16px;
  }
  .intro {
    padding: 115px 0 105px;
  }
  .intro-grid {
    gap: 145px;
  }
  h2 {
    font-size: 64px;
  }
  .ornament {
    width: 240px;
    height: 240px;
  }
  .ornament::before {
    width: 165px;
    height: 165px;
  }
  .ornament::after {
    width: 82px;
    height: 82px;
  }
  .events {
    padding: 105px 0 80px;
  }
  .event-grid,
  .gallery-grid {
    gap: 28px;
  }
  .event-card {
    min-height: 320px;
    padding: 25px;
  }
  .event-card h3 {
    font-size: 34px;
  }
  .members,
  .gallery {
    padding: 120px 0;
  }
  footer {
    padding-top: 65px;
  }
}

@media (min-width: 1900px) {
  .wrap {
    width: min(1600px, calc(100% - 80px));
  }
  .hero {
    min-height: min(720px, calc(100svh - 135px));
  }
  .hero-content {
    max-width: 760px;
    padding: 82px 0 92px;
  }
  h1 {
    max-width: 730px;
    font-size: 96px;
  }
  .hero-content p {
    max-width: 500px;
    font-size: 16px;
  }
  .intro {
    padding: 130px 0 120px;
  }
  .intro-grid {
    gap: 170px;
  }
  h2 {
    font-size: 70px;
  }
  .events {
    padding: 120px 0 90px;
  }
  .event-grid,
  .gallery-grid {
    gap: 30px;
  }
  .event-card {
    min-height: 355px;
    padding: 28px;
  }
  .event-card h3 {
    font-size: 38px;
  }
  .members,
  .gallery {
    padding: 135px 0;
  }
  footer {
    padding-top: 72px;
  }
}

@media (min-width: 2550px) {
  .wrap {
    width: min(1800px, calc(100% - 96px));
  }
  footer .wrap {
    width: calc(100% - 96px);
  }
  .topline .wrap {
    width: calc(100% - 96px);
  }
  header .wrap {
    width: calc(100% - 96px);
  }
  nav {
    padding: 26px 0;
  }
  .hero {
    min-height: min(850px, calc(100svh - 135px));
  }
  .hero-content {
    max-width: 820px;
    padding: 105px 0 120px;
  }
  h1 {
    max-width: 800px;
    font-size: 112px;
  }
  .hero-content p {
    max-width: 560px;
    font-size: 18px;
  }
  .intro {
    padding: 145px 0 135px;
  }
  .intro-grid {
    gap: 190px;
  }
  h2 {
    font-size: 78px;
  }
  .events {
    padding: 135px 0 100px;
  }
  .event-grid,
  .gallery-grid {
    gap: 34px;
  }
  .event-card {
    min-height: 390px;
    padding: 32px;
  }
  .event-card h3 {
    font-size: 42px;
  }
  .members,
  .gallery {
    padding: 150px 0;
  }
  footer {
    padding-top: 80px;
  }
}

@media (min-width: 3600px) {
  .wrap {
    width: min(2500px, calc(100% - 140px));
  }
  nav {
    padding: 48px 0;
  }
  .hero {
    min-height: 1300px;
  }
  .hero-content {
    max-width: 1180px;
    padding: 190px 0 220px;
  }
  h1 {
    max-width: 1120px;
    font-size: 190px;
  }
  .hero-content p {
    max-width: 780px;
    font-size: 25px;
  }
  .intro {
    padding: 190px 0 175px;
  }
  .intro-grid {
    gap: 260px;
  }
  h2 {
    font-size: 104px;
  }
  .ornament {
    width: 310px;
    height: 310px;
  }
  .ornament::before {
    width: 215px;
    height: 215px;
  }
  .ornament::after {
    width: 106px;
    height: 106px;
  }
  .events {
    padding: 175px 0 125px;
  }
  .event-grid,
  .gallery-grid {
    gap: 44px;
  }
  .event-card {
    min-height: 500px;
    padding: 40px;
  }
  .event-card h3 {
    font-size: 54px;
  }
  .members,
  .gallery {
    padding: 195px 0;
  }
  footer {
    padding-top: 105px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 32px, 560px);
  }
  .topline .wrap {
    justify-content: center;
    text-align: center;
  }
  .topline .wrap span:last-child {
    display: none;
  }
  nav {
    padding: 18px 0;
  }
  .menu-button {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 78px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #3a1a15;
    box-shadow: 0 12px 30px rgba(57, 48, 44, 0.25);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a,
  .nav-timetable {
    padding: 13px 10px;
  }
  .nav-cta {
    border: 0;
  }
  .hero {
    min-height: min(680px, 100svh);
  }
  .hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(27, 12, 8, 0.9) 0%,
        rgba(38, 15, 10, 0.68) 58%,
        rgba(39, 11, 8, 0.38) 100%
      ),
      url("img/hero.webp") center / cover no-repeat;
    background-position: center;
  }
  .hero-content {
    padding-bottom: 95px;
    text-shadow: 0 2px 20px rgb(49 41 38 / 68%);
  }
  .hero-content p {
    color: #fff1dc;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .text-link {
    color: #fff0c8;
  }
  .scroll-note {
    right: auto;
    left: 50%;
    bottom: 14px;
    width: max-content;
    max-width: calc(100% - 32px);
    justify-content: center;
    border-radius: 4px;
    text-align: center;
    font-size: clamp(9px, 3.2vw, 13px);
    white-space: nowrap;
    transform: translateX(-50%);
  }
  .intro,
  .events,
  .members,
  .gallery,
  .contact {
    padding: 65px 0;
  }
  .intro-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .ornament {
    margin: 0 auto;
    width: 170px;
    height: 170px;
  }
  .ornament::before {
    width: 118px;
    height: 118px;
  }
  .ornament::after {
    width: 60px;
    height: 60px;
  }
  .section-head,
  .footer-top {
    display: block;
  }
  .section-head p {
    margin-top: 15px;
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
  }
  .event-card {
    min-height: 230px;
  }
  .event-dialog {
    padding: 38px 24px 28px;
  }
  .member-section {
    margin-top: 52px;
  }
  .member-section-head {
    align-items: start;
  }
  .member-section h3 {
    font-size: 31px;
  }
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .pillar-card > div {
    padding: 13px 13px 16px;
  }
  .pillar-card h4 {
    font-size: 22px;
  }
  .member-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }
  .member-viewport::-webkit-scrollbar {
    display: none;
  }
  .member-track {
    gap: 10px;
    width: max-content;
    transform: none !important;
  }
  .member-card {
    flex-basis: 164px;
    scroll-snap-align: start;
  }
  .carousel-controls {
    display: none;
  }
  .footer-links {
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .timetable-dialog {
    padding: 34px 20px 22px;
  }
  .timetable-options {
    grid-template-columns: 1fr;
  }
  .copyright {
    gap: 15px;
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  nav {
    padding: 12px 0;
  }
  .brand {
    gap: 9px;
  }
  .brand-logo {
    width: 44px;
    height: 44px;
  }
  .brand-name {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .brand-name span {
    font-size: 9px;
    letter-spacing: 0.18em;
  }
  .menu-button {
    padding: 4px;
    font-size: 22px;
  }
  .nav-links {
    top: 68px;
    right: 12px;
    left: 12px;
  }
}

@media (max-width: 380px) {
  .topline-message {
    display: none;
  }
}

@media (max-width: 359px) {
  .wrap {
    width: calc(100% - 24px);
  }
  header.topline-visible {
    top: 0;
  }
}
