/* Mriya Basel. Linen, Ukrainian blue and sunflower gold, with the red and black
   thread of the vyshyvka. Mobile first; the layout opens up at 700, 960 and 1080px. */

:root {
  --linen: #f6f1e7;
  --linen-deep: #ede3d0;
  --paper: #fffcf5;
  --ink: #1c2333;
  --ink-soft: #4b5468;
  --line: #dccfb8;
  --blue: #0d3f8f;
  --blue-deep: #0a2c66;
  --blue-night: #071e47;
  --gold: #f2c230;
  --red: #b3202a;
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --text: "Arsenal", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4.5vw, 44px);
  --max: 1200px;
  --header: 68px;
  --shadow-sm: 0 14px 30px -22px rgba(10, 44, 102, 0.45);
  --shadow: 0 30px 60px -32px rgba(7, 30, 71, 0.55);
  /* Aida cloth: the fine grid that cross-stitch is counted on. */
  --weave: repeating-linear-gradient(0deg, rgba(120, 96, 60, 0.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(120, 96, 60, 0.03) 0 1px, transparent 1px 4px);
}

*, *::before, *::after { box-sizing: border-box; }
/* Lining figures everywhere: Cormorant's old-style "1" reads like a Roman "I". Marked
   important because every "font:" shorthand would otherwise reset it to old-style. */
* { font-variant-numeric: lining-nums !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--linen);
  background-image: var(--weave);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
::selection { background: var(--gold); color: var(--blue-night); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header) + 16px); }
figure { margin: 0; }

.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; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding: clamp(80px, 11vw, 148px) 0; position: relative; }

/* ---- Type ----------------------------------------------------------------------- */

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 0.78rem/1.25 var(--text); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); margin: 0 0 16px;
}
.kicker__star { flex: none; width: 17px; height: 17px; background: url(/assets/svg/star.svg) center / contain no-repeat; }
.kicker--gold { color: var(--gold); }
.kicker--gold .kicker__star { background-image: url(/assets/svg/star-blue.svg); }

.h2 {
  font: 600 clamp(2.3rem, 7vw, 4rem)/1.02 var(--display);
  letter-spacing: -0.012em; margin: 0; text-wrap: balance;
}
.h2 em, .hero__title em { font-style: italic; color: var(--blue); position: relative; z-index: 0; white-space: nowrap; }
.h2 em::after, .hero__title em::after {
  content: ""; position: absolute; z-index: -1; left: 0.02em; right: 0.06em; bottom: 0.1em; height: 0.17em;
  background: var(--gold); border-radius: 2px; transform: skewX(-14deg); opacity: 0.9;
}
.section-head { margin-bottom: 8px; }
.section-head--center { text-align: center; }
.section-head--center .kicker { justify-content: center; }
.lead { font-size: 1.14rem; line-height: 1.6; color: var(--ink-soft); max-width: 34em; margin: 22px 0 0; text-wrap: pretty; }
@media (min-width: 960px) { .lead { font-size: 1.22rem; } }

.link {
  display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 700;
  text-decoration: underline; text-decoration-style: dashed; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.link:hover { color: var(--red); }

.pill {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
  font: 700 0.72rem/1.2 var(--text); letter-spacing: 0.1em; text-transform: uppercase;
}
.pill--gold { background: var(--gold); color: var(--blue-night); }

/* ---- Buttons ------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1 var(--text); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  padding: 17px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn .icon { transition: transform 0.2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -14px rgba(13, 63, 143, 0.85); }
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(28, 35, 51, 0.3); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(28, 35, 51, 0.04); }
.btn--small { padding: 12px 18px; font-size: 0.93rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---- Embroidered bands ------------------------------------------------------------ */

.band { height: var(--band-h, 72px); background: url(/assets/svg/band.svg) repeat-x left center / auto 100%; }
.band--wide { --band-h: clamp(62px, 8vw, 92px); margin: 0 0 4px; }
.band--blue { --band-h: clamp(58px, 7vw, 84px); background-image: url(/assets/svg/band-blue.svg); }
.band--thin-blue { --band-h: 34px; background-image: url(/assets/svg/band-thin-blue.svg); }

/* ---- Header ------------------------------------------------------------------------ */

.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
/* The blur sits on a pseudo-element: on the header itself it would trap the fixed mobile menu inside it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 241, 231, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; gap: 10px; min-height: var(--header);
  max-width: 1320px; margin: 0 auto; padding: 10px var(--gutter);
}

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 34px; height: 34px; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.brand:hover .brand__mark { transform: rotate(45deg); }
.brand__words { display: grid; }
.brand__name { font: 700 1.62rem/0.92 var(--display); letter-spacing: 0.01em; }
.brand__place { font: 700 0.6rem/1 var(--text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); margin-top: 4px; }
.brand--light { color: #fff; }
.brand--light .brand__place { color: var(--gold); }

/* Language: the current flag in the header, the three languages in a small menu under it. */
.lang { position: relative; z-index: 3; }
.lang__current {
  list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px 0 9px;
  border-radius: 999px; border: 1.5px solid rgba(28, 35, 51, 0.2); background: rgba(255, 252, 245, 0.7);
  font: 700 0.8rem/1 var(--text); letter-spacing: 0.06em; color: var(--ink); cursor: pointer; user-select: none;
}
.lang__current::-webkit-details-marker { display: none; }
.lang__current:hover, .lang[open] .lang__current { border-color: var(--ink); }
.lang__flag { flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(28, 35, 51, 0.14); }
.lang__chev { transition: transform 0.2s ease; }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.lang__item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.97rem;
}
.lang__item:hover { background: var(--linen); }
.lang__item[aria-current="true"] { color: var(--blue); }
.lang__item .icon { margin-left: auto; }

.nav-toggle {
  position: relative; z-index: 2; flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--ink); border: 1.5px solid rgba(28, 35, 51, 0.22);
}
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.nav-toggle__open, .nav-toggle__close { display: grid; place-items: center; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: grid; }

.nav {
  position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column;
  padding: calc(var(--header) + 28px) var(--gutter) 28px;
  background: var(--linen); background-image: var(--weave);
  transform: translateY(-102%); visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.5s;
}
.nav.is-open { transform: none; visibility: visible; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav__link { display: block; font: 600 2.4rem/1.15 var(--display); color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav__link:hover { color: var(--blue); }
.nav__cta { align-self: flex-start; margin-top: 26px; }
.nav__band { margin: auto calc(var(--gutter) * -1) 0; height: 74px; background: url(/assets/svg/band.svg) repeat-x left center / auto 100%; }
body.nav-open { overflow: hidden; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; transform: none; visibility: visible; transition: none;
    flex-direction: row; align-items: center; gap: 6px; padding: 0; background: none; margin-right: 10px;
  }
  .nav__list { display: flex; gap: 0; }
  .nav__link { font: 700 0.95rem/1 var(--text); padding: 11px 12px; border-radius: 999px; color: var(--ink); }
  .nav__link:hover { background: rgba(13, 63, 143, 0.07); }
  .nav__cta { margin: 0 0 0 8px; }
  .nav__band { display: none; }
}

/* ---- Hero ------------------------------------------------------------------------- */

/* Every one-column grid gets an explicit minmax(0, 1fr) track. Without it Safari sizes the
   implicit column from the photo frame's aspect ratio and the hero runs off the screen. */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "art" "body";
  max-width: var(--max); margin: 0 auto; padding: 26px var(--gutter) 64px;
}
.hero__head { grid-area: head; }
.hero__art { grid-area: art; position: relative; aspect-ratio: 1 / 1.12; margin: 30px 0 34px; }
.hero__body { grid-area: body; }
.hero__title {
  font: 600 clamp(2.9rem, 12.4vw, 6rem)/0.97 var(--display);
  letter-spacing: -0.018em; margin: 0; text-wrap: balance;
}
.hero__lead { margin-top: 0; }

.arch { border-radius: 999px 999px 20px 20px; overflow: hidden; background: var(--linen-deep); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.disc { border-radius: 50%; overflow: hidden; border: 7px solid var(--linen); box-shadow: var(--shadow); }
.disc img { width: 100%; height: 100%; object-fit: cover; }

.hero__main { position: absolute; right: 0; top: 0; width: 80%; height: 93%; box-shadow: var(--shadow); }
.hero__main img { object-position: 46% 24%; }
.hero__disc { position: absolute; left: 0; bottom: 0; width: 40%; aspect-ratio: 1; }
.hero__disc::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.6px dashed rgba(255, 255, 255, 0.85); pointer-events: none; }
.hero__band {
  position: absolute; left: 4%; top: 7%; bottom: 30%; width: 30px;
  background: url(/assets/svg/band-v.svg) repeat-y center top / 100% auto;
}
.hero__word { display: none; }

.next {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; max-width: 460px; margin-top: 30px;
  padding: 18px 20px 18px 26px; color: inherit; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.next:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.next::before {
  content: ""; position: absolute; left: 10px; top: 16px; bottom: 16px; width: 3px; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, var(--red) 0 7px, transparent 7px 11px);
}
.next__top { display: flex; align-items: center; gap: 10px; }
.next__kicker { font: 700 0.74rem/1.2 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.next__title { font: 600 1.6rem/1.1 var(--display); }
.next__line { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.35; }
.next__line .icon { flex: none; color: var(--blue); }

@media (min-width: 700px) {
  .hero__art { aspect-ratio: 1 / 0.95; max-width: 640px; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); grid-template-areas: "head art" "body art";
    grid-template-rows: auto 1fr; column-gap: clamp(40px, 5vw, 84px);
    min-height: min(calc(100svh - var(--header)), 860px); padding-top: 64px; padding-bottom: 96px;
  }
  .hero__head { align-self: end; }
  .hero__body { align-self: start; padding-top: 30px; }
  .hero__art { margin: 0; align-self: center; aspect-ratio: 1 / 1.16; max-width: none; }
  .hero__title { font-size: clamp(3.4rem, 5.1vw, 5.5rem); }
  .hero__band { left: 3%; width: 36px; }
  .hero__word {
    display: block; position: absolute; right: -0.16em; bottom: -0.5em; z-index: -1;
    font: italic 600 clamp(7rem, 13vw, 12rem)/1 var(--display); color: transparent;
    -webkit-text-stroke: 1.3px rgba(13, 63, 143, 0.22); pointer-events: none; user-select: none;
  }
}

/* ---- About ------------------------------------------------------------------------ */

.about__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.about__p { color: var(--ink-soft); max-width: 35em; font-size: 1.1rem; }
.about__p--first { margin-top: 28px; }
.about__p--first::first-letter {
  float: left; font: 600 4.4em/0.78 var(--display); color: var(--blue); margin: 0.07em 0.1em 0 0;
}
.leader {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  margin-top: 34px; padding: 22px 22px 22px 20px; max-width: 34em;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.leader__mark { width: 52px; height: 52px; background: url(/assets/svg/star.svg) center / contain no-repeat; }
.leader__name { font: 600 1.7rem/1.05 var(--display); margin: 0; }
.leader__role { font: 700 0.74rem/1.35 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin: 7px 0 10px; }
.leader__text { margin: 0; color: var(--ink-soft); }
.about__note { margin: 26px 0 0; font-size: 0.95rem; max-width: 34em; }
.about__note a { color: var(--ink-soft); text-decoration: underline dashed 1.2px; text-underline-offset: 4px; }
.about__note a:hover { color: var(--blue); }

.about__art { position: relative; padding-bottom: 22%; }
.about__main { width: 74%; margin-left: auto; }
.about__main .arch { aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.about__main .arch img { object-position: 50% 30%; }
.about__first { position: absolute; left: 0; bottom: 0; width: 58%; }
.frame { border: 8px solid var(--paper); border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); transform: rotate(-3deg); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.about__art figcaption { font: italic 500 1.05rem/1.3 var(--display); color: var(--ink-soft); margin-top: 12px; }
.about__first figcaption { padding-left: 6px; }

@media (min-width: 960px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 104px); align-items: center; }
  .about__art { order: -1; }
}

/* ---- Quotes ----------------------------------------------------------------------- */

.quotes { position: relative; background: var(--linen-deep); background-image: var(--weave); padding: clamp(88px, 11vw, 136px) 0 clamp(72px, 9vw, 112px); }
.quotes::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px;
  background: url(/assets/svg/band-thin.svg) repeat-x left center / auto 100%;
}
.quotes__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 52px; }
.quote { position: relative; padding-top: 58px; }
.quote__mark { position: absolute; top: 0; left: 0; width: 38px; height: 38px; background: url(/assets/svg/star.svg) center / contain no-repeat; }
.quote__text { margin: 0; }
.quote__text p { font: italic 500 clamp(1.55rem, 4.4vw, 2.2rem)/1.24 var(--display); color: var(--ink); margin: 0; text-wrap: pretty; }
.quote__by { display: flex; flex-direction: column; gap: 5px; margin-top: 20px; }
.quote__who { font: 700 0.8rem/1.3 var(--text); letter-spacing: 0.13em; text-transform: uppercase; color: var(--blue); }
.quote__when { font-size: 0.95rem; color: var(--ink-soft); }
.quotes__note { margin: 40px 0 0; font-size: 0.86rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .quotes__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
  .quote:nth-child(2) { margin-top: 64px; }
}

/* ---- Tradition -------------------------------------------------------------------- */

.trad-list { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 18px; }
.trad { text-align: center; }
.trad__photo {
  width: min(100%, 220px); aspect-ratio: 1; margin: 0 auto 20px; padding: 7px;
  border-radius: 50%; border: 1.7px dashed var(--red); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.trad:nth-child(even) .trad__photo { border-color: var(--blue); }
.trad__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.trad:hover .trad__photo { transform: rotate(-4deg) scale(1.02); }
.trad__word { font: 600 clamp(1.65rem, 5vw, 2.2rem)/1.05 var(--display); margin: 0; }
.trad__latin { font: italic 500 1.08rem/1.2 var(--display); color: var(--red); margin: 4px 0 0; }
.trad__text { font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft); margin: 12px 0 0; text-wrap: pretty; }
@media (min-width: 960px) { .trad-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; } }

/* ---- Performances ------------------------------------------------------------------- */

.events { background: var(--paper); }
.events__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; margin-top: 48px; }
.events__label {
  font: 700 0.8rem/1.2 var(--text); letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1.5px dashed var(--line);
}
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); }
.event {
  display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 18px; padding: 20px;
  background: var(--linen); background-image: var(--weave);
  border: 1px solid var(--line); border-radius: 22px;
}
.event--today { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 194, 48, 0.4); }
.event--slot { background: transparent; border: 1.6px dashed var(--line); align-content: start; }
.event--slot .event__badge { background: transparent; color: var(--blue); border: 1.6px dashed var(--blue); padding: 22px 0 18px; }
.event--slot .event__title { margin-top: 8px; }
.event--slot .event__desc { margin-top: 0; color: var(--ink-soft); }
.event__badge {
  display: grid; justify-items: center; align-content: center; gap: 2px; align-self: start;
  padding: 18px 0 14px; border-radius: 999px 999px 14px 14px; background: var(--blue); color: #fff;
}
.event__day { font: 600 2.6rem/0.95 var(--display); }
.event__month { font: 700 0.72rem/1.2 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.event__weekday { font-size: 0.78rem; opacity: 0.78; }
.event__body .pill { margin-bottom: 8px; }
.event__title { font: 600 1.75rem/1.08 var(--display); margin: 0 0 12px; }
.event__meta { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-soft); margin: 0 0 6px; font-size: 0.98rem; line-height: 1.4; }
.event__meta .icon { flex: none; margin-top: 1px; color: var(--blue); }
.event__desc { margin: 14px 0 0; font-size: 0.98rem; line-height: 1.55; }
.event__actions { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; }
.event__actions .link { font-size: 0.95rem; }

.empty { padding: 30px 26px; border-radius: 22px; border: 1.5px dashed var(--line); background: var(--linen); }
.empty__head { font: 600 1.6rem/1.15 var(--display); margin: 0; }
.empty__detail { margin: 8px 0 0; color: var(--ink-soft); }
.empty .actions { margin-top: 20px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 18px; border-left: 2px dashed var(--line); }
.timeline__item { position: relative; padding-bottom: 28px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -30px; top: 2px; width: 18px; height: 18px;
  background: var(--paper) url(/assets/svg/star.svg) center / 16px no-repeat; border-radius: 50%;
}
.timeline__date { font: 700 0.76rem/1.3 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin: 0 0 5px; }
.timeline__title { font: 600 1.4rem/1.12 var(--display); margin: 0; }
.timeline__place { color: var(--ink-soft); margin: 4px 0 0; font-size: 0.95rem; }
.timeline__desc { margin: 6px 0 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }

@media (min-width: 700px) {
  .event { grid-template-columns: 92px minmax(0, 1fr); gap: 24px; padding: 26px; }
  .event__day { font-size: 3rem; }
}
@media (min-width: 900px) {
  .timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px 32px; padding: 0; }
  .timeline::before { left: 0; right: 0; top: 8px; bottom: auto; border-left: 0; border-top: 2px dashed var(--line); }
  .timeline__item { padding: 34px 0 0; }
  .timeline__item::before { left: 0; top: 0; }
}

.strip { height: clamp(260px, 46vw, 560px); overflow: hidden; background: var(--blue-night); }
.strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

/* ---- Booking (deep blue) --------------------------------------------------------------- */

.book { background: var(--blue-night); color: #e9edf6; padding-top: 0; }
.book .h2 { color: #fff; }
.book .h2 em { color: var(--gold); }
.book .h2 em::after { background: var(--blue); opacity: 1; }
.book .lead { color: rgba(233, 237, 246, 0.82); }
.book__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 52px; padding-top: clamp(72px, 10vw, 128px); }
.steps { list-style: none; padding: 0; margin: 40px 0 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.step { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; align-items: start; }
.step__n {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font: 600 1.7rem/1 var(--display); color: var(--gold); border: 1.6px dashed rgba(242, 194, 48, 0.75);
}
.step__title { font: 600 1.45rem/1.15 var(--display); color: #fff; margin: 5px 0 5px; }
.step__text { margin: 0; color: rgba(233, 237, 246, 0.74); }
.book__figure { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 26px; align-items: center; }
.book__figure .arch { aspect-ratio: 3 / 4; background: var(--blue-deep); }
.book__figure .arch img { object-position: 45% 30%; }
.book__quote { margin: 0; }
.book__quote p { font: italic 500 clamp(1.16rem, 3.6vw, 1.36rem)/1.35 var(--display); color: #fff; margin: 0; text-wrap: pretty; }
.book__quote footer { margin-top: 14px; font: 700 0.74rem/1.3 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
@media (min-width: 960px) {
  .book__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(56px, 6vw, 96px); align-items: start; }
  .book__card { position: sticky; top: calc(var(--header) + 24px); }
}

/* ---- Cards and forms ---------------------------------------------------------------- */

.card {
  position: relative; background: var(--paper); color: var(--ink);
  border-radius: 26px; padding: clamp(22px, 4.5vw, 42px); box-shadow: var(--shadow);
}
.card__title { font: 600 clamp(1.8rem, 5vw, 2.2rem)/1.05 var(--display); margin: 0 0 24px; }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; } }
.field { min-width: 0; }
.field--full, .field-reveal { grid-column: 1 / -1; }
.field > label, .choice legend {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-weight: 700; font-size: 0.92rem; line-height: 1.3; margin-bottom: 7px; padding: 0;
}
.field__opt { font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; }
.field__hint { font-size: 0.85rem; color: var(--ink-soft); margin: 6px 0 0; }
.field__error { font-size: 0.88rem; font-weight: 700; color: var(--red); margin: 7px 0 0; }

.card input, .card select, .card textarea {
  width: 100%; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease; appearance: none; -webkit-appearance: none;
}
.card textarea { resize: vertical; min-height: 110px; }
.card input[type="date"] { min-height: 51px; }
.card select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230d3f8f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.card input::placeholder, .card textarea::placeholder { color: #9aa1b0; }
.card input:focus, .card select:focus, .card textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(13, 63, 143, 0.14); }
.card [aria-invalid="true"] { border-color: var(--red); }
.card [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179, 32, 42, 0.14); }

.choice { border: 0; margin: 0; padding: 0; }
.choice__row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__opt span {
  display: inline-flex; padding: 11px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.choice__opt input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.choice__opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.form__end { display: grid; gap: 12px; margin-top: 24px; }
.form__privacy { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.form__privacy a { color: inherit; }
.form__status { margin: 0; font-weight: 700; color: var(--red); }
.form__status:empty { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; padding: 36px 10px 26px; }
.done[hidden] { display: none; }
.done__mark { display: block; width: 78px; height: 78px; margin: 0 auto 20px; background: url(/assets/svg/star.svg) center / contain no-repeat; }
.done__head { font: 600 1.85rem/1.12 var(--display); margin: 0; text-wrap: balance; }
.done__detail { margin: 12px auto 0; color: var(--ink-soft); max-width: 26em; }
@media (prefers-reduced-motion: no-preference) {
  .done:not([hidden]) .done__mark { animation: spin-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}

.notice { padding: 16px 18px; border-radius: 14px; background: rgba(242, 194, 48, 0.2); margin-bottom: 20px; }
.notice__head { font-weight: 700; margin: 0; }
.notice__detail { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---- Join ------------------------------------------------------------------------- */

.join__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.join__art { position: relative; aspect-ratio: 1 / 0.98; max-width: 540px; }
.join__a { position: absolute; left: 0; top: 0; width: 58%; height: 84%; box-shadow: var(--shadow); }
.join__a img { object-position: 50% 22%; }
.join__b { position: absolute; right: 0; bottom: 0; width: 49%; height: 70%; border: 7px solid var(--linen); box-shadow: var(--shadow); }
.join__b img { object-position: 52% 30%; }
.join__field { position: absolute; right: 7%; top: 2%; width: 25%; aspect-ratio: 1; background: url(/assets/svg/field.svg) center / contain no-repeat; }

.classes { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.class-card {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 15px; padding: 18px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
}
.class-card__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(13, 63, 143, 0.09); color: var(--blue); }
.class-card__icon--kids { background: rgba(179, 32, 42, 0.09); color: var(--red); }
.class-card__name { font: 600 1.5rem/1.1 var(--display); margin: 2px 0 8px; }
.class-card__line { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 0.96rem; margin: 0 0 4px; }
.class-card__line .icon { flex: none; color: var(--blue); }
.class-card__line--soft { padding-left: 24px; }
.class-card__note { margin: 8px 0 0; font-size: 0.93rem; color: var(--ink-soft); }
.join__address { margin: 14px 0 0; font-size: 0.93rem; color: var(--ink-soft); }
.join__card { margin-top: 32px; }

@media (min-width: 640px) { .classes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 960px) {
  .join__grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(56px, 6vw, 96px); align-items: start; }
  .join__art { position: sticky; top: calc(var(--header) + 32px); }
}

/* ---- Gallery ---------------------------------------------------------------------- */

.gallery { background: var(--linen-deep); background-image: var(--weave); }
.gallery .wrap { container-type: inline-size; }
.gallery__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.gallery__lead { color: var(--ink-soft); margin: 18px 0 0; max-width: 30em; }
.gallery__intro .btn { margin-top: 26px; }
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
@media (min-width: 960px) { .gallery__top { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(48px, 6vw, 96px); align-items: center; } }
.video { margin: 0; }
.video__el { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: var(--blue-night); box-shadow: var(--shadow-sm); }
.video__cap { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.video__title { font: italic 600 1.15rem/1.2 var(--display); color: var(--ink); }
.video__when { font-size: 0.86rem; color: var(--ink-soft); }
@media (min-width: 700px) { .videos { gap: 16px; } }
.masonry {
  --cols: 2; --gap: 12px;
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--gap);
  /* One row is a 3:2 landscape cell; portraits take two rows, so they come out close to 3:4. */
  grid-auto-rows: calc((100cqw - var(--gap) * (var(--cols) - 1)) / var(--cols) * 0.6667);
}
.masonry__cell { min-width: 0; }
.masonry__cell--tall { grid-row: span 2; }
.masonry__cell--wide { grid-column: span 2; }
.masonry__item { display: block; position: relative; height: 100%; border-radius: 16px; overflow: hidden; background: var(--line); }
.masonry__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.masonry__cell--wide img { object-position: 50% 32%; }
.masonry__item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(28, 35, 51, 0.08); pointer-events: none; }
.masonry__item:hover img { transform: scale(1.045); }
.gallery__credit { margin: 26px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
@media (min-width: 700px) { .masonry { --cols: 3; --gap: 16px; } }
@media (min-width: 1100px) { .masonry { --cols: 4; } }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(7, 30, 71, 0.97); }
.lightbox__figure { display: grid; justify-items: center; gap: 14px; padding: 64px 16px 24px; }
.lightbox__img { max-width: min(92vw, 1400px); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 12px; object-fit: contain; }
.lightbox__caption { max-width: 60ch; text-align: center; font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }
.lightbox__btn {
  position: fixed; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.13); color: #fff;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__btn--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--close { right: 14px; top: 14px; }
@media (max-width: 699px) { .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 18px; transform: none; } }

/* ---- Footer ------------------------------------------------------------------------- */

.site-footer { background: var(--blue-deep); color: #e7ebf4; }
.site-footer .h2 { color: #fff; }
.site-footer .lead { color: rgba(231, 235, 244, 0.8); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 104px); }
.footer__links { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.footer__links a { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-weight: 700; }
.footer__links a:hover { color: var(--gold); }
.footer__links .icon { flex: none; color: var(--gold); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  padding-top: 26px; padding-bottom: 40px; border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.9rem; color: rgba(231, 235, 244, 0.7);
}
.footer__bottom p { margin: 0; }
.footer__bottom .brand { margin-right: 8px; }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a, .footer__made a { color: inherit; text-underline-offset: 4px; }
.footer__legal a:hover, .footer__made a:hover { color: #fff; }
@media (min-width: 960px) {
  .footer__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(56px, 6vw, 96px); align-items: start; }
  .footer__made { margin-left: auto; }
}

/* ---- Legal pages ----------------------------------------------------------------------- */

.legal { padding-top: clamp(40px, 6vw, 72px); }
.legal__back { margin-bottom: 36px; }
.legal__section { margin-top: 38px; }
.legal__h { font: 600 1.65rem/1.15 var(--display); margin: 0 0 12px; }
.legal p { color: var(--ink-soft); max-width: 40em; }
.legal__updated { margin-top: 52px; font-size: 0.9rem; }

.banner { margin: 0; padding: 14px var(--gutter); background: var(--gold); color: var(--blue-night); font-weight: 700; text-align: center; }

/* ---- Motion ----------------------------------------------------------------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.09); } to { opacity: 1; transform: none; } }
@keyframes stitch-across { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes stitch-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes drift { from { transform: scale(1.14) translateY(-5%); } to { transform: scale(1.14) translateY(5%); } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-120deg) scale(0.4); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__head { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__body { animation: rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__main img { animation: settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__disc { animation: rise 1s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__band { animation: stitch-down 1.8s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both; }

  @supports (animation-timeline: view()) {
    .section-head, .about__p, .leader, .quote, .trad, .event, .empty, .timeline__item, .step,
    .book__figure, .class-card, .card, .masonry__cell, .about__art figure {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 32%;
    }
    .band--wide, .band--blue { animation: stitch-across linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .strip img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
