:root {
  color-scheme: light;
  --pearl: #faf6ef;
  --paper: #fffbf3;
  --ink: #34261d;
  --muted: #675244;
  --gold: #785631;
  --line: #d9c5ac;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--pearl); color: var(--ink); font: 400 16px/1.7 var(--sans); }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
figure, p, dl { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; line-height: .96; }
h2 { font-size: clamp(3rem, 6vw, 6rem); }
h3 { font-size: clamp(1.9rem, 3.15vw, 3.15rem); line-height: 1.04; }
h1 em, h2 em { font-weight: 400; color: var(--gold); }
section[id] { scroll-margin-top: 20px; }
:focus-visible { outline: 2px solid #966028; outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: clamp(65px, 9vw, 126px); }
.eyebrow { color: var(--gold); font-size: .71rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.skip { position: fixed; z-index: 9; top: 12px; left: 12px; padding: 9px 14px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; min-height: max(660px, min(100svh, 1100px)); overflow: clip; background: #f5ead8; }
.sky, .sky-image, .sky-light, #stars { position: absolute; inset: 0; pointer-events: none; }
.sky {
  z-index: -1; overflow: hidden;
  background: radial-gradient(ellipse at 50% 49%, #fffaf2ef 2%, #fff8ed8c 52%, #f2e2cb20 100%),
              url("galya-prisme.jpg") center 43% / cover, #f6eee2;
}
.sky-image {
  left: 50%;
  right: auto;
  height: 100%;
  aspect-ratio: 736 / 1308;
  transform: translateX(-50%);
  background: url("galya-ciel.jpg") center / 100% 100% no-repeat;
  filter: sepia(.24) saturate(1.12);
  mask-image: linear-gradient(90deg, transparent, #000 23%, #000 77%, transparent);
  opacity: .85;
}
.sky-light {
  background: radial-gradient(ellipse at 50% 47%, #fffaf0db 0%, #fff8eab8 23%, #fff6e453 43%, transparent 72%),
              radial-gradient(ellipse at var(--glow-x, 74%) var(--glow-y, 28%), #fff0ba85, transparent 49%);
  animation: shimmer 12s ease-in-out infinite alternate;
}
@keyframes shimmer { from { opacity: .78; transform: scale(1); } to { opacity: 1; transform: scale(1.08) translate(-1%, 1%); } }
#stars { width: 100%; height: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; border-bottom: 1px solid #a7825340; }
.brand { display: block; width: 122px; flex: none; }
.topbar nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); font-size: .82rem; font-weight: 600; }
.topbar a, .discover, .button { text-decoration: none; }
.topbar nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.topbar .nav-cta { border: 1px solid #956f4880; border-radius: 99px; padding: 8px 15px; }
.nav-cta span { margin-left: .35em; }
.hero-copy { align-self: center; text-align: center; padding-block: 36px 52px; }
.hero h1 { font-size: clamp(4rem, 10.6vw, 10.4rem); margin-top: 13px; text-wrap: balance; line-height: .84; }
.hero-subtitle { display: block; max-width: 22ch; margin: 24px auto 0; font: 500 clamp(1.6rem, 3.35vw, 3.15rem)/1.02 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.hero-date { margin: 0 0 24px; }
.hero-date span { display: block; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero-date strong, .application-date { display: block; color: var(--ink); font: 600 clamp(1.5rem, 3vw, 2.7rem)/1.1 var(--serif); }
.hero-credit { margin-top: 16px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  color: #fff9eb; background: #503623; border: 1px solid #503623; border-radius: 99px;
  padding: 12px 21px; min-height: 48px; margin-top: 23px; font-size: .87rem; font-weight: 700;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.button:hover { background: #704b32; box-shadow: 0 8px 26px #6b421c38; transform: translateY(-2px); }
.discover { justify-self: center; display: grid; gap: 4px; text-align: center; padding: 10px 12px 19px; font-size: .71rem; font-weight: 700; letter-spacing: .11em; color: var(--ink); }
.discover span { font-size: 1.25rem; line-height: 1; }

.intro, .section-heading { text-align: center; }
.intro h2, .section-heading h2, .profile h2, .community h2, .apply h2, .venue h2 { margin: 10px 0 18px; }
.lead { max-width: 59ch; margin-inline: auto; color: var(--muted); font-size: clamp(1rem, 1.75vw, 1.2rem); }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 37px auto; max-width: 790px; border-block: 1px solid var(--line); padding-block: 18px; text-align: center; }
.metrics div { padding-inline: 6px; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics dt { color: var(--gold); font: 500 clamp(2rem, 5.1vw, 4.1rem)/.95 var(--serif); white-space: nowrap; letter-spacing: -.055em; }
.metrics dd { margin: 7px 0 0; color: var(--muted); font-size: clamp(.71rem, 1.2vw, .92rem); line-height: 1.35; }
.facilitation-mosaic { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
.gallery video { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center; background: #e5d4bb; }
main { background: linear-gradient(#fffaf1d1, #fffaf1c4), url("galya-nacre.png") center 28% / 100% auto repeat-y, var(--pearl); }
.curriculum { background: linear-gradient(135deg, #fff8ecbf, #fffbf375), url("galya-nacre.png") center 39% / cover, var(--pearl); }
.pillars { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin: 35px 0 56px; }
.pillars article { border-top: 1px solid #bc9f7d; padding-top: 18px; }
.pillars h3 { margin: 7px 0 10px; }
.pillars p, .accordions p, .faculty p:not(.eyebrow), .certification p, .profile p:not(.eyebrow), .community p:not(.eyebrow) { color: var(--muted); }
.lead, .pillars p, .accordions p, .faculty p:not(.eyebrow), .certification p,
.profile p:not(.eyebrow), .venue-copy > p, .community p:not(.eyebrow) {
  line-height: 1.65;
  text-align: justify;
  hyphens: auto;
  text-wrap: pretty;
}
.modules { max-width: 52rem; margin-inline: auto; }
.modules .section-heading { margin-bottom: clamp(24px, 4vw, 40px); }
.standalone-cta { grid-column: 1 / -1; text-align: center; margin-top: clamp(18px, 3vw, 32px); }
.accordions { border-top: 1px solid #cbb196; }
details { border-bottom: 1px solid #cbb196; }
summary { cursor: pointer; list-style: none; position: relative; font-weight: 600; padding: 16px 35px 16px 0; line-height: 1.42; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; top: 13px; color: var(--gold); font: 500 1.55rem/1 var(--serif); }
details[open] summary::after { content: "−"; }
.accordions summary { display: grid; grid-template-columns: 26px 1fr; gap: 8px; }
.accordions summary span { color: var(--gold); font-size: .77rem; align-self: center; }
.accordions details p { margin: 0 20px 16px 34px; }
.intro-copy p + p { margin-top: 12px; }
.faculty { margin-top: clamp(48px, 8vw, 100px); }
.faculty-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 26px; }
.faculty-grid article {
  display: grid;
  grid-template-columns: clamp(65px, 8vw, 96px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 20px);
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid #bc9f7d;
}
.faculty-portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #d8c4a6; }
.faculty-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
.faculty-portrait--staiv img, .faculty-portrait--antonia img { position: absolute; max-width: none; height: auto; }
.faculty-portrait--staiv img { width: 310%; left: -204%; top: -4%; }
.faculty-portrait--antonia img { width: 220%; left: -96%; top: -132%; }
.faculty h3 { margin-bottom: 10px; }
.faculty a { color: var(--gold); text-underline-offset: 4px; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.faculty-grid a { display: inline-block; margin-top: 9px; }
.certification {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 50px);
  align-items: center;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #bc9f7d;
}
.certification p { max-width: 77ch; margin-top: 10px; }
.certification-visual {
  position: relative;
  isolation: isolate;
  width: min(100%, 168px);
  margin: 6px auto;
}
.certification-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 63%;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
              linear-gradient(to bottom, transparent, #000 15%, #000 87%, transparent);
  mask-composite: intersect;
}
.certification-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8% -4%;
  background: radial-gradient(ellipse, #edbe65a0, #edbe6538 35%, transparent 68%);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .certification-visual.awaiting-reveal { opacity: 0; }
  .certification-visual.revealed img { animation: parchemin-reveal 1.45s cubic-bezier(.2,.75,.3,1) both; }
  .certification-visual.revealed::before { animation: parchemin-glow 1.8s ease-out both; }
}
@keyframes parchemin-reveal {
  from { opacity: 0; transform: translateY(22px) scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes parchemin-glow {
  0%, 100% { opacity: 0; transform: scale(.82); }
  38% { opacity: .9; transform: scale(1.08); }
}

.profile, .community, .apply-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(25px, 7vw, 100px); align-items: start; }
.profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(30px, 5vw, 70px); }
.profile-media { display: grid; grid-template-columns: minmax(0, 64fr) minmax(0, 45fr); gap: 20px; align-items: center; }
.portrait { position: relative; }
.portrait::before { position: absolute; content: ""; inset: -10px -11px 11px 11px; border: 1px solid #b28a59; pointer-events: none; }
.portrait img { position: relative; aspect-ratio: 4/5; object-fit: cover; }
.profile p + p, .community p + p { margin-top: 13px; }
.profile-metrics { margin-block: 23px 17px; }
.profile-metrics dt { font-size: clamp(1.8rem, 4.1vw, 3.7rem); }
.profile-media video { display: block; width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #34261d; }
.venue { background: #f0e6d8a8; }
.venue-copy { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: clamp(15px, 5vw, 70px); margin-bottom: 27px; }
.venue h2 { margin-bottom: 0; }
.venue-copy > p { color: var(--muted); }
.venue-gallery { display: grid; grid-template-columns: 2.05fr 1fr 1fr; gap: 8px; }
.venue-gallery img { width: 100%; height: clamp(235px, 29vw, 420px); object-fit: cover; }
.venue-gallery img:last-child { object-position: 55% center; }
.community { align-items: center; }
.community img { aspect-ratio: 1.18; object-fit: cover; }
.testimonials { background: #fffaf250; border-top: 1px solid var(--line); }
.testimonials h2 { text-align: center; text-wrap: balance; margin-bottom: clamp(24px, 5vw, 50px); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px clamp(16px, 3vw, 42px);
  max-width: 880px;
  margin-inline: auto;
}
.testimonial video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #34261d;
}
.testimonial h3 {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: clamp(.84rem, 1.3vw, 1rem);
  line-height: 1.4;
  font-weight: 600;
  text-wrap: pretty;
}
@media (max-width: 740px) {
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 12px; }
}
.apply { position: relative; isolation: isolate; background: linear-gradient(90deg, #fffaf1cb, #fffaec78), url("galya-prisme.jpg") center 38% / cover, var(--pearl); }
.apply-layout { align-items: center; }
.price { font: 500 clamp(2.7rem, 5.6vw, 5.2rem)/1 var(--serif); color: var(--gold); margin-bottom: 4px; }
.application-date { margin: 4px 0 15px; }
.included-label { margin-top: 15px; font-weight: 700; }
.included { margin: 5px 0 0; padding-left: 19px; color: var(--muted); line-height: 1.5; }
.included li + li { margin-top: 4px; }
.included li::marker { color: var(--gold); }
.email { display: block; width: fit-content; margin-top: 10px; text-underline-offset: 4px; font-size: .88rem; }
.questions { border: 1px solid #cab195; background: #fffcf4d9; padding: clamp(22px, 4vw, 42px); }
.questions p { margin-top: 10px; color: var(--muted); }
.questions ol { margin: 12px 0 0; padding-left: 21px; }
.questions li { margin-top: 6px; padding-left: 5px; }
.questions li::marker { color: var(--gold); font-weight: 700; }
.footer { display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; align-items: center; gap: 16px; min-height: 95px; padding-block: 14px; font-size: .8rem; color: var(--muted); }
.footer p { text-align: center; text-wrap: balance; }
.footer > a:last-child { justify-self: end; }
.footer a { text-underline-offset: 4px; }

@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .topbar { min-height: 72px; }
  .topbar nav { gap: 12px; font-size: .75rem; }
  .topbar nav a:nth-child(2) { display: none; }
  .brand { width: 99px; }
  .topbar .nav-cta { padding: 7px 9px; }
  .hero { min-height: max(570px, 89svh); }
  .hero h1 { font-size: clamp(3.8rem, 12vw, 6.3rem); }
  .sky-image { opacity: .68; }
  .hero-copy { padding-block: 28px 37px; }
  .hero-subtitle { margin-top: 19px; }
  .discover { padding-bottom: 9px; }
  .metrics { margin-block: 26px; }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; }
  .pillars, .profile, .community, .venue-copy, .apply-layout { grid-template-columns: 1fr; }
  .pillars { gap: 19px; margin-block: 26px 38px; }
  .faculty-grid, .certification { grid-template-columns: 1fr; }
  .certification-visual { width: min(100%, 145px); }
  .profile-media { grid-template-columns: 1fr; justify-items: center; gap: 25px; }
  .portrait { width: min(100% - 24px, 305px); }
  .profile-media video { width: min(100%, 215px); }
  .venue-gallery { grid-template-columns: 1fr 1fr; gap: 5px; }
  .venue-gallery img { height: auto; aspect-ratio: 4/5; }
  .venue-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 5/3; }
  .footer { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .footer p { grid-column: 1 / -1; grid-row: 2; text-align: start; }
}
@media (max-width: 360px) {
  .topbar nav a:first-child { display: none; }
  .hero h1 { font-size: 3.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky-light { animation: none; }
  .button { transition: none; }
}
