/* Nexus page layer */
html { scroll-snap-type: none; }
@media (min-width: 1024px) and (min-height: 700px) {
  html { scroll-snap-type: y proximity; }
  main > section:not([data-moment]), footer.closing { scroll-snap-align: start; }
}

.section.alt { background: var(--p-surface); }

/* nav mark: the logo's striped X */
.nav__logo { display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0.02em; font-weight: 600; }
.xmark { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* hero: horizontal slats wipe open on load, like the studio blinds */
.hero--place { position: relative; }
@property --open { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
.hero--place > .hero__bg { -webkit-mask-image: linear-gradient(to bottom, #000 var(--open), transparent var(--open)); mask-image: linear-gradient(to bottom, #000 var(--open), transparent var(--open)); -webkit-mask-size: 100% 12.5%; mask-size: 100% 12.5%; -webkit-mask-repeat: repeat-y; mask-repeat: repeat-y; animation: blinds 1.1s cubic-bezier(.65,0,.25,1) .1s both; }
@keyframes blinds { from { --open: 6%; } to { --open: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero--place > .hero__bg { animation: none; } }

/* contact: list left, large map right */
#contact .grid { align-items: stretch; height: 100%; }
.contact { display: flex; flex-direction: column; gap: var(--s-5); }
.contact__head { display: grid; gap: var(--s-2); }
.contact__head > * { margin: 0; }
.contact__address { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); font-style: normal; max-width: 18ch; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; }
.contact__list > li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-4); padding-block: 12px; border-top: 1px solid var(--line); }
.contact__list > li > span:first-child { color: var(--muted); }
.contact__list a:hover { color: var(--action); }
.contact__social { display: flex; gap: var(--s-5); }
.map { min-height: max(420px, calc(100svh - 72px - 112px)); border-radius: var(--r-lg); overflow: hidden; background: var(--p-bg); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* training */
.rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); margin-top: 2px; }
.review { margin: var(--s-7) 0 0; display: grid; gap: var(--s-3); max-width: 52ch; }
.review blockquote { margin: 0; font-size: var(--t-lead); line-height: 1.4; }
.film { margin: 0; display: grid; justify-items: end; gap: var(--s-3); align-content: start; }
.film video { height: min(70svh, 640px); width: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-lg); background: var(--p-inv-bg); }

/* photo chapters: no counters */
[data-moment="photo-chapters"] [class*="__num"], [data-moment="photo-chapters"] [class*="__count"] { display: none !important; }

/* images open in the lightbox */
img[data-lightbox] { cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4vmin; background: rgb(10 10 10 / 0.92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-md); }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.3); background: rgb(255 255 255 / 0.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }


@media (max-width: 1023px) {
  .contact, .map { grid-column: 1 / -1; }
  .map { min-height: 320px; }
  .training, .film { grid-column: 1 / -1; }
  .film video { max-height: 60svh; width: auto; margin-inline: auto; }
}
.footer__social { margin-left: auto; display: flex; gap: var(--s-6); }
.map iframe { height: 100%; position: absolute; inset: 0; }
.map { position: relative; }
@media (max-width: 1023px) { .map { min-height: 320px; } }
.closing__cta.close--type > .btn { align-self: flex-start; }
@media (max-width: 1023px) {
  #contact .grid { display: flex; flex-direction: column; gap: var(--s-6); }
  #contact .map { flex: 1 1 auto; }
}
@media (max-width: 639px) { #contact .map { min-height: 300px; flex: none; } }
