/* ============================================================
   Evergrace School — styles.css
   Design language: warm paper #F6F3F0 · deep brown #381D0F ·
   butter #FAE6B9 · gold #FFCD33 · mist #D8E3F1
   Fonts: Parkinsans (display+body) · Geist Mono (labels)
   Motion: reveal-on-scroll, parallax planes, 3D tilt cards,
   snap-center testimonial slider, drag carousels, SVG wave
   ribbon marquee, Ken Burns hero, floating doodles.
   ============================================================ */

:root {
  --paper: #f6f3f0;
  --brown: #381d0f;
  --brown-70: rgba(56, 29, 15, 0.7);
  --brown-55: rgba(56, 29, 15, 0.55);
  --brown-12: rgba(56, 29, 15, 0.12);
  --brown-06: rgba(56, 29, 15, 0.06);
  --butter: #fae6b9;
  --butter-deep: #f3d695;
  --gold: #ffcd33;
  --gold-deep: #d0af3c;
  --mist: #d8e3f1;
  --mist-deep: #c8d8ec;
  --white: #ffffff;
  --cream: #fffaf1;
  --scrim: rgba(56, 29, 15, 0.48);
  --night: #381d0f;

  --font: "Parkinsans", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --r-xl: 44px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --shadow-card: 0 24px 48px -30px rgba(56, 29, 15, 0.4);
  --shadow-pop: 0 32px 64px -32px rgba(56, 29, 15, 0.5);
  --nav-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--brown);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--brown);
}

h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--gold);
  color: var(--brown);
}

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

main {
  flex: 1;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -64px;
  z-index: 400;
  background: var(--brown);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 14px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: #d8cfc6;
  border-radius: 8px;
  border: 2px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brown-55);
}

/* ---------- Typography helpers ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-55);
  margin: 0 0 18px;
}

.display {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.12rem;
  color: var(--brown-70);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  box-shadow: 0 10px 24px -14px rgba(56, 29, 15, 0.4);
  margin-bottom: 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease,
    background 0.3s ease, color 0.3s ease;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-butter {
  background: var(--butter);
  color: var(--brown);
  box-shadow: 0 18px 34px -18px rgba(56, 29, 15, 0.55);
}

.btn-butter:hover {
  background: var(--butter-deep);
}

.btn-brown {
  background: var(--brown);
  color: var(--cream);
  box-shadow: 0 18px 34px -18px rgba(56, 29, 15, 0.7);
}

.btn-brown:hover {
  background: #4a2916;
}

.btn-white {
  background: var(--white);
  color: var(--brown);
  box-shadow: 0 18px 34px -18px rgba(56, 29, 15, 0.35);
}

.btn-white:hover {
  background: var(--cream);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brown);
}

.btn-lg {
  padding: 18px 34px;
  font-size: 1.05rem;
}

/* ---------- Floating pill navigation ---------- */
.nav-pill {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  width: min(1000px, 94vw);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 10px 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 18px 44px -22px rgba(56, 29, 15, 0.45);
  transition: box-shadow 0.35s ease, top 0.35s var(--ease);
}

.nav-pill.is-scrolled {
  top: 10px;
  box-shadow: 0 26px 54px -24px rgba(56, 29, 15, 0.55);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.07);
}

.brand-word {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brown);
  line-height: 1;
}

.brand-word small {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--brown-55);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--brown-06);
}

.nav-links a.active {
  background: var(--brown);
  color: var(--cream);
}

.nav-links a.btn {
  color: var(--cream);
}

.nav-cta {
  flex-shrink: 0;
  padding: 13px 24px !important;
  margin-left: 12px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 14px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--brown);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 74%;
}

.kenburns {
  animation: kenburns 28s var(--ease) infinite alternate;
  transform-origin: 60% 40%;
}

@keyframes kenburns {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.15) translate3d(-2%, 1.8%, 0);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(56, 29, 15, 0.38) 0%,
    rgba(56, 29, 15, 0.44) 55%,
    rgba(56, 29, 15, 0.62) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 0 120px;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  max-width: 820px;
  margin: 18px auto 30px;
  text-wrap: balance;
}

.newschip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 92%;
}

.chip-tag {
  background: rgba(255, 255, 255, 0.92);
  color: var(--brown);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  padding: 6px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

.newschip span:not(.chip-tag) {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.findus {
  position: absolute;
  z-index: 3;
  right: 30px;
  bottom: 80px;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 9px;
  box-shadow: var(--shadow-pop);
  text-align: center;
  transition: transform 0.35s var(--ease);
}

.findus:hover {
  transform: translateY(-4px) rotate(-2deg);
}

.findus img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.findus span {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-top: 8px;
  color: var(--brown);
}

/* ---------- Rounded sheet under hero ---------- */
.sheet {
  position: relative;
  z-index: 4;
  background: var(--paper);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: -46px;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(70px, 9vw, 120px) 0;
}

.section-butter {
  background: var(--butter);
}

.section-night {
  background: var(--night);
  color: var(--cream);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

/* ---------- Doodles ---------- */
.doodle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.float-a {
  animation: bob 5.5s ease-in-out infinite alternate;
}
.float-b {
  animation: bob 6.5s 0.8s ease-in-out infinite alternate;
}
.float-c {
  animation: spin-sway 9s ease-in-out infinite alternate;
}

@keyframes bob {
  from {
    transform: translateY(-6px) rotate(-2deg);
  }
  to {
    transform: translateY(7px) rotate(3deg);
  }
}

@keyframes spin-sway {
  from {
    transform: rotate(-6deg);
  }
  to {
    transform: rotate(8deg);
  }
}

/* ---------- Mini feature grid (4 columns) ---------- */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 44px);
  text-align: center;
}

.mini-grid .doodle-slot {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.mini-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mini-grid p {
  color: var(--brown-70);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Philosophy collage ---------- */
.duo {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.collage {
  position: relative;
  padding: 0 8% 10% 0;
}

.collage-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  aspect-ratio: 4 / 4.3;
}

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

.collage-card {
  position: absolute;
  top: -7%;
  right: -2%;
  width: 44%;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 10px;
  box-shadow: var(--shadow-pop);
  transform: rotate(4deg);
  transition: transform 0.45s var(--ease);
}

.collage:hover .collage-card {
  transform: rotate(1deg) translateY(-4px);
}

.collage-card img {
  border-radius: calc(var(--r-md) - 6px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.duo-body .badge {
  background: var(--white);
}

.duo-body p {
  color: var(--brown-70);
  max-width: 520px;
}

/* ---------- Film / video-style block ---------- */
.film-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 54px);
}

.film-head h2 {
  max-width: 520px;
}

.film-head p {
  color: var(--brown-70);
  max-width: 440px;
  margin: 0 0 6px;
}

.film-frame {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 21 / 10;
  box-shadow: var(--shadow-pop);
}

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.film-frame:hover img {
  transform: scale(1.045);
}

.film-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(56, 29, 15, 0) 55%,
    rgba(56, 29, 15, 0.45) 100%
  );
}

.film-pill {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 10px 24px 10px 10px;
  box-shadow: var(--shadow-pop);
  color: var(--brown);
}

.film-pill:hover {
  transform: translateX(-50%) translateY(-3px);
}

.play-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.film-pill strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.film-pill small {
  color: var(--brown-55);
  font-weight: 600;
  font-size: 0.84rem;
}

/* ---------- Testimonial slider ---------- */
.q-viewport {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 30px max(calc((100vw - 1180px) / 2), 4vw) 10px;
  scrollbar-width: none;
  cursor: grab;
}

.q-viewport::-webkit-scrollbar {
  display: none;
}

.q-viewport.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.q-card {
  flex: 0 0 min(600px, 86vw);
  scroll-snap-align: center;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-card);
  opacity: 0.2;
  transform: scale(0.95);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.q-card.is-center {
  opacity: 1;
  transform: scale(1);
}

.q-stars {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
}

.q-card blockquote {
  margin: 0 0 22px;
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.q-who {
  display: flex;
  align-items: center;
  gap: 14px;
}

.q-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--butter);
  color: var(--brown);
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.q-who strong {
  display: block;
  font-size: 1rem;
}

.q-who small {
  color: var(--brown-55);
  font-size: 0.88rem;
  font-weight: 600;
}

.q-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.round-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--brown-12);
  background: var(--white);
  color: var(--brown);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s var(--ease),
    border-color 0.25s ease;
}

.round-btn:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ---------- Stats band + wave ribbon ---------- */
.statsband {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  padding: clamp(130px, 18vw, 220px) 0 clamp(60px, 8vw, 100px);
}

.statsband-bg {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
}

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

.statsband::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(56, 29, 15, 0.55);
}

.ribbon {
  position: absolute;
  z-index: 2;
  top: clamp(60px, 10vw, 130px);
  left: 50%;
  transform: translateX(-50%);
  width: max(100vw, 1200px);
  pointer-events: none;
  padding: 0 10px;
  top: 10px;
}

.ribbon svg {
  display: block;
  width: 100%;
  height: auto;
}

.ribbon text {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.5px;
  fill: var(--brown);
}

.band-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 4vw, 40px);
  margin-top: clamp(70px, 10vw, 120px);
}

.band-stat .num {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.band-stat .label {
  color: rgba(255, 250, 241, 0.82);
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ---------- Discover (dark carousel) ---------- */
.discover-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(36px, 5vw, 54px);
}

.discover-head h2 {
  color: var(--cream);
  max-width: 620px;
  margin-bottom: 0;
}

.discover-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.discover-tools .all-link {
  font-weight: 700;
  color: var(--cream);
  margin-right: 8px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.discover-tools .all-link:hover {
  color: var(--gold);
}

.section-night .round-btn {
  background: transparent;
  border-color: rgba(255, 250, 241, 0.3);
  color: var(--cream);
}

.section-night .round-btn:hover {
  background: var(--butter);
  border-color: var(--butter);
  color: var(--brown);
}

.carousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px max(calc((100vw - 1180px) / 2), 4vw) 26px;
  scrollbar-width: none;
  cursor: grab;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.act-card {
  flex: 0 0 min(640px, 88vw);
  scroll-snap-align: center;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 1fr;
  box-shadow: var(--shadow-pop);
  transition: transform 0.4s var(--ease);
}

.act-card:hover {
  transform: translateY(-6px);
}

.act-media {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.act-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.act-card:hover .act-media img {
  transform: scale(1.07);
}

.act-body {
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.act-body .kicker {
  color: var(--brown-55);
  margin-bottom: 10px;
}

.act-body p {
  color: var(--brown-70);
  font-size: 1rem;
  margin-bottom: 20px;
}

.act-more {
  font-weight: 700;
  color: var(--brown);
}

.act-more::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s var(--ease);
}

.act-card:hover .act-more::after {
  transform: translateX(5px);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--butter);
  padding: calc(var(--nav-h) + clamp(60px, 9vw, 110px)) 0
    clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}

.page-hero .lead {
  max-width: 640px;
}

.page-hero h1 {
  max-width: 860px;
}

/* ---------- Photo cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 30px);
}

.photo-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s ease;
  height: 100%;
}

.photo-card:hover {
  box-shadow: var(--shadow-pop);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.photo-card:hover .card-media img {
  transform: scale(1.07);
}

.card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-body p {
  color: var(--brown-70);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.card-more {
  margin-top: auto;
  font-weight: 700;
  color: var(--brown);
}

.card-more::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s var(--ease);
}

.photo-card:hover .card-more::after {
  transform: translateX(5px);
}

/* ---------- Alternating facility rows ---------- */
.facility {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.facility--flip .facility-media {
  order: 2;
}

.facility--flip .facility-body {
  order: 1;
}

.facility-media {
  position: relative;
}

.facility-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  aspect-ratio: 4 / 3;
  position: relative;
}

.facility-photo img {
  position: absolute;
  left: 0;
  top: -9%;
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}

.dnum {
  position: absolute;
  z-index: 2;
  top: -26px;
  left: -14px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--brown);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pop);
  transform: rotate(-6deg);
}

.facility-body h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

.facility-body p {
  color: var(--brown-70);
}

.check-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
  color: var(--brown);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--butter);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 9px;
  height: 5px;
  border-left: 2.5px solid var(--brown);
  border-bottom: 2.5px solid var(--brown);
  transform: rotate(-45deg);
}

/* ---------- Achievements ---------- */
.news-list {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-inline: auto;
}

.news-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--mist);
  border-radius: var(--r-md);
  padding: 20px 26px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.news-item time {
  flex-shrink: 0;
  background: var(--white);
  border-radius: 12px;
  padding: 8px 13px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brown);
  min-width: 92px;
  text-align: center;
}

.news-item h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.news-item p {
  margin: 0;
  color: var(--brown-70);
  font-size: 0.96rem;
}

/* ---------- Big quote ---------- */
.bigquote {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.bigquote blockquote {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.bigquote cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-weight: 700;
  color: var(--brown-70);
  font-size: 1rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--butter);
  border-radius: var(--r-xl);
  padding: clamp(44px, 7vw, 84px) clamp(26px, 6vw, 80px);
  text-align: center;
}

.cta-banner .display {
  max-width: 680px;
  margin-inline: auto;
}

.cta-banner p {
  color: var(--brown-70);
  max-width: 540px;
  margin: 0 auto 30px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}

.gallery-item {
  margin: 0;
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gallery-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.gallery-item:hover .gallery-btn img {
  transform: scale(1.09);
}

.gallery-item figcaption {
  padding: 12px 16px 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery-item {
    transition: transform 0.5s var(--ease), box-shadow 0.4s ease;
  }
  .gallery-item:hover {
    transform: perspective(900px) rotateX(2.4deg) rotateY(-2.6deg) scale(1.022);
    box-shadow: var(--shadow-pop);
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 40px);
  background: rgba(40, 20, 10, 0.93);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox figure {
  margin: 0;
  max-width: min(1040px, 94vw);
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--r-md);
  margin-inline: auto;
}

.lightbox figcaption {
  margin-top: 16px;
  color: rgba(255, 250, 241, 0.92);
  font-weight: 700;
}

.lightbox-counter {
  color: rgba(255, 250, 241, 0.6);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 250, 241, 0.35);
  background: rgba(255, 250, 241, 0.08);
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brown);
  transform: scale(1.07);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.07);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.info-card,
.form-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}

.form-card {
  background: var(--mist);
}

.info-block {
  padding: 16px 0;
  border-bottom: 2px dashed var(--brown-12);
}

.info-block:last-of-type {
  border-bottom: 0;
}

.info-block h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-55);
  margin-bottom: 6px;
}

.info-block p {
  margin: 0;
  line-height: 1.8;
}

.info-block a {
  font-weight: 700;
  border-bottom: 2px solid var(--butter-deep);
}

.info-block a:hover {
  background: var(--butter);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  background: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--brown);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(208, 175, 60, 0.22);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--brown);
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brown);
}

.field.has-error .field-error {
  display: block;
}

.form-note {
  font-size: 0.88rem;
  color: var(--brown-70);
  margin: 0 0 20px;
}

/* FAQ */
.faq {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--mist);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 1.06rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-x {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.faq-x::before,
.faq-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--brown);
  transform: translate(-50%, -50%);
}

.faq-x::before {
  width: 14px;
  height: 2.5px;
}

.faq-x::after {
  width: 2.5px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}

.faq-item[open] .faq-x {
  transform: rotate(45deg);
}

.faq-item > p {
  padding: 0 26px 24px;
  margin: 0;
  color: var(--brown-70);
}

/* Map */
.map-embed {
  display: block;
  width: 100%;
  height: clamp(300px, 42vw, 420px);
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  background: var(--mist);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--night);
  color: var(--cream);
  margin-top: auto;
}

.footer-top {
  padding: clamp(54px, 8vw, 90px) 0 clamp(34px, 5vw, 54px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 5vw, 56px);
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer-mark span {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--butter);
}

.footer-about {
  color: rgba(255, 250, 241, 0.75);
  font-size: 0.98rem;
  max-width: 320px;
}

.footer h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 250, 241, 0.55);
  margin-bottom: 18px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 250, 241, 0.85);
  font-weight: 600;
  font-size: 0.98rem;
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer address {
  font-style: normal;
  line-height: 1.9;
  color: rgba(255, 250, 241, 0.85);
  font-size: 0.98rem;
}

.footer address a {
  color: var(--butter);
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 250, 241, 0.14);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 250, 241, 0.6);
  font-weight: 600;
}

.footer-motto {
  font-family: var(--mono);
  font-size: 0.7rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold) !important;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 150%);
  z-index: 600;
  background: var(--brown);
  color: var(--cream);
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-pop);
  transition: transform 0.5s var(--ease);
  max-width: 88vw;
  text-align: center;
}

.toast.is-show {
  transform: translate(-50%, 0);
}

.toast strong {
  color: var(--gold);
}

/* ---------- Reveal system ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal-left {
  transform: translateX(-38px);
}

.reveal-right {
  transform: translateX(38px);
}

.reveal-scale {
  transform: scale(0.93);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

[data-stagger] > .reveal:nth-child(1) {
  --d: 0ms;
}
[data-stagger] > .reveal:nth-child(2) {
  --d: 100ms;
}
[data-stagger] > .reveal:nth-child(3) {
  --d: 200ms;
}
[data-stagger] > .reveal:nth-child(4) {
  --d: 300ms;
}
[data-stagger] > .reveal:nth-child(5) {
  --d: 400ms;
}
[data-stagger] > .reveal:nth-child(6) {
  --d: 500ms;
}

/* ---------- Page transitions ---------- */
body.page-enter {
  animation: pageIn 0.55s var(--ease) both;
}

body.page-leaving {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links a {
    padding: 9px 9px;
    font-size: 0.88rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 880px) {
  :root {
    --nav-h: 76px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + 26px);
    left: 50%;
    transform: translateX(-50%) translateY(-14px);
    z-index: 299;
    width: min(430px, 92vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 14px;
    box-shadow: var(--shadow-pop);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease), opacity 0.3s ease,
      visibility 0.3s ease;
    max-height: calc(100vh - var(--nav-h) - 50px);
    overflow-y: auto;
  }

  body.nav-open .nav-links {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    padding: 14px 18px;
    font-size: 1.05rem;
    text-align: center;
  }

  .nav-cta {
    display: none;
  }

  .findus {
    display: none;
  }

  .duo,
  .facility,
  .film-head {
    grid-template-columns: 1fr;
  }

  .facility--flip .facility-media {
    order: 0;
  }
  .facility--flip .facility-body {
    order: 0;
  }

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

  .band-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  .discover-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .act-card {
    grid-template-columns: 1fr;
  }

  .act-media {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }

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

  .collage {
    padding-right: 4%;
  }

  .collage-card {
    width: 38%;
    top: -5%;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .nav-pill {
    padding: 7px 8px 7px 14px;
  }

  .brand-word {
    font-size: 1.1rem;
  }

  .brand-word small {
    letter-spacing: 0.26em;
  }

  .hero-content {
    padding-bottom: 90px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .mini-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .news-item {
    flex-direction: column;
    gap: 12px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom .container {
    justify-content: center;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }

  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

/* ---------- Reduced motion ---------- */
@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;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .kenburns,
  .float-a,
  .float-b,
  .float-c {
    animation: none;
  }

  .q-card {
    opacity: 1;
    transform: none;
  }
}
