:root {
  --bg: #f4efe6;
  --bg-soft: #fbf7f0;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: #fffaf2;
  --line: rgba(48, 59, 86, 0.12);
  --text: #28324b;
  --text-soft: #5d6276;
  --navy: #233554;
  --navy-deep: #172339;
  --gold: #b58a4a;
  --gold-soft: #dcc39a;
  --brown: #88694f;
  --hero-image: url("assets/images/Screenshot 2026-04-09 153828.png");
  --gallery-1-image: url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1200&q=80");
  --gallery-2-image: url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1200&q=80");
  --gallery-3-image: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80");
  --gallery-4-image: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1200&q=80");
  --shadow: 0 24px 60px rgba(24, 31, 49, 0.14);
  --shadow-soft: 0 14px 38px rgba(24, 31, 49, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(219, 197, 154, 0.35), transparent 28%),
    radial-gradient(circle at top right, rgba(35, 53, 84, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f3ea 0%, #f3ede3 45%, #f8f4ed 100%);
}

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

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

button,
textarea {
  font: inherit;
}

.page-shell {
  overflow: clip;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(247, 241, 232, 0.78);
  border-bottom: 1px solid rgba(48, 59, 86, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--navy), #324d78);
  color: #fff6e7;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-soft);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-copy strong,
.nav-links a,
.button,
.like-pill,
.memory-card span,
.timeline-year,
.gallery-card span,
.card-label,
.eyebrow,
.section-kicker {
  letter-spacing: 0.06em;
}

.brand-copy strong {
  font-size: 0.98rem;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--text-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.82);
  color: var(--navy-deep);
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  position: relative;
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--navy-deep);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: transform 0.3s ease;
}

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

.hero-section {
  position: relative;
  padding: 5.5rem 0 4rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(17, 28, 45, 0.9) 15%, rgba(27, 43, 68, 0.48) 54%, rgba(17, 28, 45, 0.72) 100%),
    var(--hero-image) center/cover;
  filter: saturate(0.82);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 140px;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0) 0%, rgba(244, 239, 230, 0.96) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 2rem;
  align-items: end;
}

.hero-copy,
.hero-panel,
.video-card,
.video-sidebar,
.memory-card,
.quote-card,
.timeline-item,
.teachers-card,
.gallery-card,
.comments-card,
.comment-item,
.sidebar-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-copy {
  color: #fff6eb;
  padding: 1.25rem 0 3rem;
}

.eyebrow,
.section-kicker,
.card-label,
.gallery-card span,
.memory-card span,
.timeline-year {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255, 238, 206, 0.82);
}

.hero-copy h1,
.section-heading h2,
.memory-card h3,
.timeline-item h3,
.gallery-card h3,
.hero-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 10ch;
  margin-top: 1rem;
  font-size: clamp(3.9rem, 8vw, 6.8rem);
}

.hero-subtitle,
.hero-supporting {
  max-width: 42rem;
}

.hero-subtitle {
  margin: 1.1rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
}

.hero-supporting {
  margin: 0.75rem 0 0;
  font-size: 1.08rem;
  color: rgba(255, 240, 217, 0.88);
}

.hero-text {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  line-height: 1.8;
  color: rgba(255, 247, 233, 0.86);
}

.hero-actions,
.video-actions,
.comment-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

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

.button-primary {
  background: linear-gradient(135deg, #e7c68d, var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 18px 40px rgba(181, 138, 74, 0.28);
}

.button-secondary,
.button-like,
.carousel-button,
.nav-toggle {
  background: rgba(255, 250, 242, 0.8);
  color: var(--navy-deep);
  border-color: rgba(35, 53, 84, 0.16);
}

.button-like.is-liked {
  background: linear-gradient(135deg, #2d466f, #1f3150);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff5e4;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-card,
.video-card,
.video-sidebar,
.memory-card,
.quote-card,
.timeline-item,
.teachers-card,
.gallery-card,
.comments-card,
.comment-item,
.sidebar-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  background: linear-gradient(180deg, rgba(248, 241, 226, 0.16), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(18px);
  padding: 1.45rem;
}

.hero-card-large {
  min-height: 260px;
}

.hero-card h2 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff5e7;
}

.hero-card p,
.hero-card span {
  color: rgba(255, 243, 219, 0.82);
  line-height: 1.7;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  color: #fff6e8;
}

.stat-card span {
  font-size: 0.95rem;
}

.section {
  padding: 2rem 0 5.5rem;
}

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

.section-heading.narrow {
  max-width: 44rem;
}

.section-kicker {
  color: var(--gold);
}

.section-heading h2 {
  margin-top: 0.7rem;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--navy-deep);
}

.section-heading p:last-child,
.memories-story p,
.timeline-item p,
.teachers-card p,
.gallery-card h3,
.sidebar-card p,
.sidebar-card li,
.quote-card span,
.comment-item p {
  color: var(--text-soft);
  line-height: 1.8;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr);
  gap: 1.5rem;
  align-items: start;
}

.video-card {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.82), rgba(255, 250, 242, 0.94));
}

.video-frame {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  box-shadow: var(--shadow);
}

.video-frame video {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: #000;
}

.video-actions {
  align-items: center;
  margin-top: 1.2rem;
}

.like-pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(35, 53, 84, 0.06);
  border: 1px solid rgba(35, 53, 84, 0.08);
  color: var(--navy-deep);
}

.like-pill span {
  font-size: 1.2rem;
  font-weight: 800;
}

.video-sidebar {
  display: grid;
  gap: 1rem;
}

.sidebar-card {
  padding: 1.5rem;
  background: rgba(255, 252, 247, 0.82);
}

.sidebar-card ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.memories-layout {
  display: grid;
  gap: 1.5rem;
}

.memories-story {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.82), rgba(247, 241, 232, 0.9));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(35, 53, 84, 0.08);
}

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

.memory-card {
  padding: 1.5rem;
  background: rgba(255, 251, 245, 0.9);
}

.memory-card span,
.gallery-card span,
.card-label,
.timeline-year,
.section-kicker {
  color: var(--gold);
}

.memory-card h3,
.timeline-item h3,
.gallery-card h3 {
  margin-top: 0.75rem;
  font-size: 2rem;
  color: var(--navy-deep);
}

.gallery-card h3 {
  color: #fff6e7;
}

.quotes-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.quotes-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.3rem;
}

.quotes-track::-webkit-scrollbar {
  display: none;
}

.quote-card {
  min-height: 250px;
  scroll-snap-align: start;
  padding: 1.7rem;
  background:
    linear-gradient(135deg, rgba(33, 48, 76, 0.92), rgba(41, 63, 99, 0.88)),
    radial-gradient(circle at top right, rgba(229, 199, 145, 0.34), transparent 30%);
  color: #fff6e7;
}

.quote-card p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
}

.quote-card span {
  display: block;
  margin-top: 1.2rem;
  color: rgba(255, 241, 220, 0.76);
}

.carousel-button {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  cursor: pointer;
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

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

.timeline-item,
.teachers-card {
  padding: 1.6rem;
  background: rgba(255, 251, 245, 0.88);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-auto-rows: 240px;
  gap: 1rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(180deg, rgba(24, 37, 58, 0.08), rgba(24, 37, 58, 0.78)),
    var(--gallery-1-image) center/cover;
  color: #fff6e7;
}

.gallery-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(24, 37, 58, 0.08), rgba(24, 37, 58, 0.78)),
    var(--gallery-2-image) center/cover;
}

.gallery-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(24, 37, 58, 0.08), rgba(24, 37, 58, 0.78)),
    var(--gallery-3-image) center/cover;
}

.gallery-card:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(24, 37, 58, 0.08), rgba(24, 37, 58, 0.78)),
    var(--gallery-4-image) center/cover;
}

.gallery-card.tall {
  grid-row: span 2;
}

.gallery-card.wide {
  grid-column: span 2;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.tags-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(35, 53, 84, 0.08);
  box-shadow: var(--shadow-soft);
  color: var(--navy);
  font-weight: 700;
}

.comments-layout {
  display: grid;
  gap: 1.5rem;
}

.comments-card,
.comment-item {
  padding: 1.5rem;
  background: rgba(255, 252, 247, 0.88);
}

.comment-form {
  display: grid;
  gap: 1rem;
}

.comment-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 1rem 1.1rem;
  resize: vertical;
  border-radius: 20px;
  border: 1px solid rgba(35, 53, 84, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.comment-form textarea:focus {
  outline: none;
  border-color: rgba(181, 138, 74, 0.62);
  box-shadow: 0 0 0 4px rgba(181, 138, 74, 0.14);
}

.comment-form-footer {
  align-items: center;
  justify-content: space-between;
}

.comment-form-footer p {
  margin: 0;
  color: var(--text-soft);
}

.comments-feed {
  display: grid;
  gap: 1rem;
}

.comment-item {
  display: grid;
  gap: 0.45rem;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.comment-author {
  font-weight: 800;
  color: var(--navy-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.comment-date {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.empty-comments {
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(35, 53, 84, 0.16);
  color: var(--text-soft);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(35, 53, 84, 0.08);
}

.footer-content {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  text-align: center;
}

.footer-content p {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.footer-content small {
  color: var(--text-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .hero-grid,
  .video-layout,
  .timeline-layout,
  .memory-highlights,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

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

  .gallery-grid {
    grid-auto-rows: 220px;
  }

  .gallery-card.tall,
  .gallery-card.wide {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .navbar {
    min-height: 72px;
    flex-wrap: wrap;
    padding: 0.65rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.35rem 0 1rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-section {
    padding-top: 3.5rem;
  }

  .quotes-shell {
    grid-template-columns: 1fr;
  }

  .carousel-button {
    width: 100%;
    border-radius: 999px;
    height: 50px;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .comment-form-footer {
    align-items: stretch;
  }

  .comment-form-footer,
  .video-actions {
    flex-direction: column;
  }

  .video-actions > *,
  .comment-form-footer > * {
    width: 100%;
  }

  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(100% - 1.1rem, 100%);
    --radius-xl: 26px;
    --radius-lg: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(3.15rem, 16vw, 4.35rem);
  }

  .section-heading h2,
  .quote-card p,
  .memory-card h3,
  .timeline-item h3,
  .gallery-card h3,
  .footer-content p {
    line-height: 1.05;
  }

  .hero-card,
  .video-card,
  .sidebar-card,
  .memories-story,
  .memory-card,
  .quote-card,
  .timeline-item,
  .teachers-card,
  .gallery-card,
  .comments-card,
  .comment-item {
    padding: 1.2rem;
  }

  .hero-mini-grid {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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