/* ═══════════════════════════════════════════════════
   Daniel Sulimani — Coffee Experience Consulting
   Cinematic espresso-dark design system
   ═══════════════════════════════════════════════════ */

:root {
  --ink: #14100c;
  --ink-soft: #241d17;
  --espresso: #0d0a08;
  --cream: #f4eee5;
  --cream-soft: #e9e0d2;
  --caramel: #c2955f;
  --caramel-deep: #a97c46;
  --muted: #8d8378;
  --muted-dark: #6f665c;
  --line: rgba(20, 16, 12, .12);
  --line-light: rgba(244, 238, 229, .16);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .8, .3, 1);
  --container: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: clamp(5rem, 10vw, 8.5rem); }

/* ─────────── Typography helpers ─────────── */

.section__eyebrow {
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--caramel-deep);
  margin-bottom: 1.2rem;
}
.section__eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: var(--caramel);
  vertical-align: middle;
  margin-right: .9rem;
}
.section__eyebrow--light { color: var(--caramel); }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  max-width: 20ch;
}
.section__title em { font-style: italic; color: var(--caramel-deep); }
.section__title--light { color: var(--cream); }
.section__title--light em { color: var(--caramel); }

.section__intro {
  margin-top: 1.4rem;
  max-width: 54ch;
  font-size: 1.05rem;
  color: var(--muted-dark);
}
.section__intro--light { color: rgba(244, 238, 229, .66); }

.section__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* ─────────── Buttons ─────────── */

.btn {
  display: inline-block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  transition: all .45s var(--ease);
  border: 1px solid transparent;
}
.btn--solid {
  background: var(--cream);
  color: var(--ink);
}
.btn--solid:hover { background: var(--caramel); color: var(--espresso); letter-spacing: .28em; }
.btn--ghost {
  border-color: rgba(244, 238, 229, .45);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--cream); background: rgba(244, 238, 229, .08); letter-spacing: .28em; }
.btn--light { background: var(--caramel); color: var(--espresso); }
.btn--light:hover { background: var(--cream); }

/* ─────────── Preloader ─────────── */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__mark { text-align: center; color: var(--cream); }
.preloader__initials {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  letter-spacing: .14em;
  white-space: nowrap;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
.preloader__line {
  display: block;
  width: 0;
  height: 1px;
  margin: 1rem auto;
  background: var(--caramel);
  animation: preloaderLine 1.8s var(--ease) forwards;
}
.preloader__sub {
  font-size: .66rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes preloaderPulse { 50% { opacity: .55; } }
@keyframes preloaderLine { to { width: 130px; } }

/* ─────────── Navigation ─────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .5s var(--ease), box-shadow .5s, padding .5s;
  padding-block: 1.4rem;
}
.nav.is-scrolled {
  background: rgba(13, 10, 8, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: .8rem;
  box-shadow: 0 1px 0 rgba(244, 238, 229, .08);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; gap: .85rem; color: var(--cream); }
.nav__logo-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .12em;
  border: 1px solid rgba(244, 238, 229, .4);
  padding: .18rem .55rem .1rem;
  transition: border-color .4s, color .4s;
}
.nav__logo:hover .nav__logo-mark { border-color: var(--caramel); color: var(--caramel); }
.nav__logo-text {
  display: flex;
  flex-direction: column;
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.35;
}
.nav__logo-text em {
  font-style: normal;
  font-size: .58rem;
  letter-spacing: .32em;
  color: var(--muted);
}
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.nav__link {
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(244, 238, 229, .82);
  position: relative;
  padding-block: .3rem;
  transition: color .35s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--caramel);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover { color: var(--cream); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--espresso);
  background: var(--caramel);
  padding: .7rem 1.5rem;
  transition: background .4s, color .4s;
}
.nav__cta:hover { background: var(--cream); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  padding: .5rem;
  z-index: 110;
}
.nav__burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--cream);
  transition: transform .4s var(--ease), opacity .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); }

/* ─────────── Hero ─────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; background: var(--espresso); }
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 2s var(--ease), transform 9s linear;
}
.hero__video.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 10, 8, .62) 0%, rgba(13, 10, 8, .38) 40%, rgba(13, 10, 8, .78) 100%),
    radial-gradient(ellipse at center, rgba(13, 10, 8, .1) 0%, rgba(13, 10, 8, .55) 100%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-inline: 1.5rem;
  max-width: 900px;
}
.hero__eyebrow {
  font-size: .72rem;
  letter-spacing: .46em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--caramel);
  margin-bottom: 2rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.hero__title-line { display: block; }
.hero__title-line--italic { font-style: italic; color: var(--cream-soft); }
.hero__sub {
  margin: 2rem auto 0;
  max-width: 56ch;
  font-size: clamp(.98rem, 1.6vw, 1.12rem);
  font-weight: 300;
  color: rgba(244, 238, 229, .78);
}
.hero__actions {
  margin-top: 2.8rem;
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}
.hero__scroll-text {
  font-size: .62rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(244, 238, 229, .6);
}
.hero__scroll-line {
  width: 1px;
  height: 52px;
  background: rgba(244, 238, 229, .35);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--caramel);
  animation: scrollDrip 2.2s var(--ease) infinite;
}
@keyframes scrollDrip { 60%, 100% { top: 100%; } }

/* Hero entrance animation */
.reveal-hero {
  opacity: 0;
  transform: translateY(26px);
  animation: heroIn 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ─────────── Stats ─────────── */

.stats {
  background: var(--espresso);
  color: var(--cream);
  border-top: 1px solid var(--line-light);
  padding-block: clamp(2.8rem, 5vw, 4rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 300;
  color: var(--caramel);
  line-height: 1.1;
  display: block;
}
.stat__label {
  display: block;
  margin-top: .5rem;
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(244, 238, 229, .55);
}

/* ─────────── About ─────────── */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__img-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about__img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.about__media:hover .about__img-frame img { transform: scale(1.045); }
.about__img-accent {
  position: absolute;
  right: -1.4rem;
  bottom: -2.4rem;
  width: 42%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 6px solid var(--cream);
  box-shadow: 0 30px 60px rgba(20, 16, 12, .22);
}
.about__img-accent img { width: 100%; height: 100%; object-fit: cover; }

.about__text { margin-top: 1.4rem; color: var(--muted-dark); font-size: 1.02rem; max-width: 58ch; }
.about__facts {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.about__facts dt {
  font-size: .64rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  font-weight: 500;
  margin-bottom: .2rem;
}
.about__facts dd { font-size: .95rem; color: var(--ink-soft); }

/* ─────────── Video interlude ─────────── */

.interlude {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--espresso);
}
.interlude__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.interlude__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,10,8,.55), rgba(13,10,8,.35) 50%, rgba(13,10,8,.6));
}
.interlude__quote {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
}
.interlude__quote p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.3;
}
.interlude__quote em { font-style: italic; color: var(--caramel); }

/* ─────────── Programs ─────────── */

.programs { background: var(--cream); }
.programs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.program {
  background: #fdfbf7;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.program:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 64px rgba(20, 16, 12, .14);
}
.program__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.program__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease);
}
.program:hover .program__media img { transform: scale(1.07); }
.program__tag {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  background: rgba(13, 10, 8, .78);
  backdrop-filter: blur(6px);
  color: var(--caramel);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 500;
  padding: .5rem .95rem;
}
.program__body {
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.program__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.2;
}
.program__tagline {
  margin-top: .55rem;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--caramel-deep);
  font-weight: 400;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.program__desc { margin-top: .9rem; font-size: .93rem; color: var(--muted-dark); }
.program__list { margin-top: 1.2rem; display: grid; gap: .45rem; }
.program__list li {
  font-size: .88rem;
  color: var(--ink-soft);
  padding-left: 1.3rem;
  position: relative;
}
.program__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .55rem;
  height: 1px;
  background: var(--caramel);
}
.program__link {
  margin-top: auto;
  padding-top: 1.6rem;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: color .35s;
}
.program__link::after {
  content: "→";
  transition: transform .4s var(--ease);
}
.program__link:hover { color: var(--caramel-deep); }
.program__link:hover::after { transform: translateX(6px); }

/* ─────────── Signature Course ─────────── */

.course {
  position: relative;
  background: var(--espresso);
  color: var(--cream);
  overflow: hidden;
}
.course__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(194, 149, 95, .1), transparent),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(194, 149, 95, .06), transparent);
}
.course .container { position: relative; z-index: 2; }
.course__context {
  margin-top: 1rem;
  font-size: .92rem;
  color: rgba(244, 238, 229, .5);
  max-width: 54ch;
}

.syllabus { max-width: 820px; }
.syllabus__item { border-bottom: 1px solid var(--line-light); }
.syllabus__item:first-child { border-top: 1px solid var(--line-light); }
.syllabus__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  padding: 1.5rem .2rem;
  text-align: left;
  transition: padding-left .45s var(--ease);
}
.syllabus__head:hover { padding-left: .8rem; }
.syllabus__num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--caramel);
  min-width: 2.2rem;
}
.syllabus__title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--cream);
}
.syllabus__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.syllabus__icon::before, .syllabus__icon::after {
  content: "";
  position: absolute;
  background: var(--caramel);
  transition: transform .45s var(--ease);
}
.syllabus__icon::before { top: 50%; left: 0; width: 100%; height: 1px; }
.syllabus__icon::after { left: 50%; top: 0; height: 100%; width: 1px; }
.syllabus__item.is-open .syllabus__icon::after { transform: rotate(90deg); }
.syllabus__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .6s var(--ease);
}
.syllabus__body ul {
  padding: 0 .2rem 1.7rem calc(2.2rem + clamp(1.2rem, 3vw, 2.2rem));
  display: grid;
  gap: .55rem;
}
.syllabus__body li {
  font-size: .93rem;
  color: rgba(244, 238, 229, .68);
  position: relative;
  padding-left: 1.2rem;
}
.syllabus__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: .5rem;
  height: 1px;
  background: var(--caramel-deep);
}
.syllabus__break {
  font-style: italic;
  color: var(--caramel) !important;
  font-family: var(--font-display);
  font-size: 1rem !important;
  letter-spacing: .04em;
}
.course__cta { margin-top: 3rem; }

/* ─────────── Gallery ─────────── */

.gallery { background: var(--cream); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}
.gallery__item {
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 10, 8, .45));
  opacity: 0;
  transition: opacity .6s;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }

/* ─────────── Contact ─────────── */

.contact {
  position: relative;
  padding-block: clamp(6rem, 12vw, 10rem);
  color: var(--cream);
  overflow: hidden;
  background: var(--espresso);
}
.contact__media { position: absolute; inset: 0; }
.contact__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
}
.contact__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,10,8,.82), rgba(13,10,8,.6) 45%, rgba(13,10,8,.9));
}
.contact__inner { position: relative; z-index: 2; text-align: center; }
.contact__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.14;
  max-width: 22ch;
  margin-inline: auto;
}
.contact__title em { font-style: italic; color: var(--caramel); }
.contact__text {
  margin: 1.6rem auto 0;
  max-width: 52ch;
  color: rgba(244, 238, 229, .72);
  font-size: 1.04rem;
}
.contact__actions {
  margin-top: 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.contact__phone {
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(244, 238, 229, .5);
}
.contact__areas {
  margin: 4rem auto 0;
  max-width: 620px;
  border-top: 1px solid var(--line-light);
  padding-top: 2.4rem;
}
.contact__areas-title {
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.contact__areas ul { display: grid; gap: .6rem; }
.contact__areas li { font-size: .95rem; color: rgba(244, 238, 229, .68); }
.contact__location {
  margin-top: 3rem;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(244, 238, 229, .42);
}

/* ─────────── Footer ─────────── */

.footer {
  background: #080605;
  color: rgba(244, 238, 229, .5);
  padding-block: 2.2rem;
  border-top: 1px solid rgba(244, 238, 229, .06);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .14em;
  color: var(--cream);
  border: 1px solid rgba(244, 238, 229, .25);
  padding: .1rem .5rem;
  transition: border-color .4s, color .4s;
}
.footer__logo:hover { border-color: var(--caramel); color: var(--caramel); }
.footer__copy { font-size: .8rem; letter-spacing: .04em; }
.footer__nav { display: flex; gap: 1.6rem; }
.footer__nav a {
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  transition: color .35s;
}
.footer__nav a:hover { color: var(--caramel); }

/* ─────────── Lightbox ─────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 6, 5, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(88vw, 1100px);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.8rem;
  font-size: 2.6rem;
  font-weight: 200;
  color: var(--cream);
  line-height: 1;
  transition: color .3s, transform .3s;
}
.lightbox__close:hover { color: var(--caramel); transform: rotate(90deg); }
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.4rem;
  font-weight: 200;
  color: rgba(244, 238, 229, .6);
  padding: 1rem;
  transition: color .3s;
}
.lightbox__arrow:hover { color: var(--caramel); }
.lightbox__arrow--prev { left: 1rem; }
.lightbox__arrow--next { right: 1rem; }

/* ─────────── Scroll reveal ─────────── */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-hero { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .hero__video { transition: opacity .5s; transform: none; }
}

/* ─────────── Responsive ─────────── */

@media (max-width: 1020px) {
  .programs__grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  .about__img-accent { right: -.6rem; }
}

@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(13, 10, 8, .97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__link { font-size: 1rem; }
  .nav__cta { margin-top: 1rem; }
  .nav__burger { display: flex; }
  .nav__logo-text em { display: none; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1rem; }
  .hero__actions .btn { padding: .95rem 1.8rem; }
}

@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .gallery__item--wide { grid-column: span 1; }
  .gallery__item--tall { grid-row: span 1; }
  .about__facts { grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
  .footer__inner { justify-content: center; text-align: center; }
  .syllabus__body ul { padding-left: 2.4rem; }
}
