/* Jost, self-hosted (latin subset, variable 300–800) */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(assets/fonts/jost-latin.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 300 800; font-display: swap; src: url(assets/fonts/jost-latin-italic.woff2) format("woff2"); }

:root {
  --night: #0f1a28;
  --navy: #233245;
  --slate: #4d5d71;
  --brand: #07617c;   /* the logo's teal: buttons, fills, accents on light backgrounds */
  --ice: #62beda;     /* lighter shade of the same teal, for accent text/lines on the dark film */
  --blue: var(--brand);
  --snow: #f4f8fb;
  --mist: #b5cfea;
  --ink: #0f1a28;
  --radius: 22px;
  --pad: clamp(16px, 5vw, 80px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  font-family: "Jost", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--snow);
  background: var(--night);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; font-weight: 300; color: var(--ice); }
::selection { background: var(--ice); color: var(--night); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ice); color: var(--night); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  margin: 0 0 22px;
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ice);
}
.h2 {
  margin: 0;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.03em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: 500 16px/1 "Jost", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); background: #fff; border-color: #fff; color: var(--brand); }
.btn--ghost { background: transparent; color: var(--snow); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: var(--snow); color: var(--night); }
.btn--small { padding: 11px 20px; font-size: 14px; }
.btn--wa { gap: .55em; }
.btn--wa svg { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  background: rgba(15,26,40,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .4s, padding .4s, transform .5s var(--ease);
}
.nav.is-scrolled { padding-block: 12px; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; text-decoration: none; }
.nav__logo img { display: block; width: auto; height: 62px; transition: height .4s; }
.nav.is-scrolled .nav__logo img { height: 54px; }
@media (max-width: 600px) { .nav__logo img, .nav.is-scrolled .nav__logo img { height: 50px; } }
.nav__links { display: flex; gap: clamp(16px, 1.8vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 15px; white-space: nowrap; opacity: .8; transition: opacity .3s; }
.nav__links a:hover { opacity: 1; color: var(--ice); }
.nav__toggle { display: none; }
/* Below 1180px the links move into a drop-down opened by the ☰ button (only with JS; without it they wrap) */
@media (max-width: 1180px) {
  .nav__links { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  .js .nav { flex-wrap: wrap; }
  .js .nav__toggle {
    display: grid; place-content: center; gap: 5px; order: 3; width: 44px; height: 44px; margin-left: 10px;
    border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; cursor: pointer;
  }
  .js .nav__toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--snow); transition: transform .3s, opacity .3s; }
  .js .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .js .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .js .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .js .nav > nav { order: 4; flex-basis: 100%; display: none; }
  .js .nav.is-open > nav { display: block; }
  .js .nav__links { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 10px 0 6px; }
  .js .nav__links a { display: block; padding: 12px 0; font-size: 18px; opacity: .9; border-top: 1px solid rgba(255,255,255,.1); }
  .js .nav .btn--wa { margin-left: auto; }
}
@media (max-width: 600px) {
  .nav { gap: 10px; }
  .nav .btn--wa { padding: 11px 14px; font-size: 13px; }
  .js .nav__toggle { margin-left: 0; width: 42px; height: 42px; }
}
@media (max-width: 360px) { .nav .btn--wa { font-size: 0; gap: 0; padding: 11px; } .nav .btn--wa svg { width: 20px; height: 20px; } }

/* Hero */
.hero { position: relative; height: 260vh; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: end start;
}
.hero__sticky::before {
  content: ""; position: absolute; inset: 0;
  /* light tint over the whole film + darker towards the text at the bottom */
  background: linear-gradient(0deg, rgba(15,26,40,.88) 0%, rgba(15,26,40,.4) 50%, rgba(15,26,40,.22) 100%);
}
@media (max-width: 900px) {
  .hero__sticky::before { background: linear-gradient(0deg, rgba(15,26,40,.92) 0%, rgba(15,26,40,.6) 50%, rgba(15,26,40,.35) 100%); }
}
.hero__content { position: relative; padding: 0 var(--pad) clamp(70px, 12vh, 130px); max-width: 1100px; }
.hero__title {
  margin: 0 0 24px;
  font-size: clamp(46px, min(8.5vw, 14vh), 136px);
  line-height: .86;
  font-weight: 800;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .08em .24em; margin: 0 -.08em -.2em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { color: var(--ice); font-weight: 300; text-transform: none; letter-spacing: -.04em; }
.hero__brand {
  position: absolute; z-index: 1; top: 50%; right: calc(var(--pad) + 80px); transform: translateY(-50%);
  width: clamp(220px, 22vw, 360px); text-align: center;
}
.hero__brand img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 24px rgba(5,10,18,.35)); }
.hero__location { margin: 14px 0 0; font-size: clamp(14px, 1.2vw, 17px); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; line-height: 1.6; text-shadow: 0 2px 16px rgba(5,10,18,.5); }
.hero__location span { display: block; }
.hero__location svg { display: none; }
/* Phones/tablets: the header already shows the logo, so the hero keeps just the location, as a small frosted pill */
@media (max-width: 900px) {
  .hero__brand { top: 104px; right: var(--pad); left: var(--pad); transform: none; width: auto; text-align: left; }
  .hero__brand img { display: none; }
  .hero__location {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; padding: 8px 14px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
    background: rgba(15,26,40,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-size: 11px; letter-spacing: .12em; line-height: 1.4; text-shadow: none;
  }
  .hero__location span { display: inline; }
  .hero__location span + span::before { content: "· "; }
  .hero__location svg { display: block; width: 13px; height: 13px; fill: var(--ice); flex: none; }
}
@media (max-width: 600px) {
  .nav { padding-block: 12px; }
  .hero__brand { top: 90px; }
  .hero .eyebrow { font-size: 13px; letter-spacing: .14em; margin-bottom: 14px; }
  .hero__lead { font-size: 16px; margin-bottom: 24px; }
  .hero__ctas .btn { padding: 14px 22px; font-size: 15px; }
}
.hero__lead { max-width: 520px; margin: 0 0 32px; font-size: clamp(17px, 1.6vw, 21px); color: var(--mist); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll {
  position: absolute; right: var(--pad); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .7;
}
.hero__scroll span { width: 1px; height: 60px; background: linear-gradient(var(--ice), transparent); animation: drip 2s infinite var(--ease); transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 600px) { .hero__scroll { display: none; } }

/* Marquee */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid rgba(255,255,255,.14); background: rgba(15,26,40,.45); }
.marquee__track { display: flex; gap: 40px; width: max-content; font-size: clamp(28px, 4vw, 56px); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5); }
.marquee__track i { color: var(--ice); font-style: normal; font-size: .5em; align-self: center; }

/* Intro */
.intro { padding: clamp(100px, 18vh, 200px) var(--pad); max-width: 1300px; margin: 0 auto; }
.intro__text { margin: 0; font-size: clamp(30px, 4.6vw, 68px); line-height: 1.12; font-weight: 500; letter-spacing: -.02em; }
.intro__text .w { opacity: .15; transition: none; }

/* Programs */
.programs { position: relative; }
.programs__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0; overflow: hidden; }
.programs__head { padding: 0 var(--pad) 50px; }
.programs__track { display: flex; gap: 24px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.card {
  position: relative; flex: 0 0 auto;
  width: min(420px, 80vw); min-height: 460px;
  display: flex; flex-direction: column;
  padding: 36px 32px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 100% 0%, hsla(var(--hue), 80%, 60%, .28), transparent 60%),
    linear-gradient(160deg, rgba(15,26,40,.8), rgba(15,26,40,.62));
  border: 1px solid rgba(255,255,255,.16);
  transition: transform .5s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(98,190,218,.5); }
.card__num { font-size: 14px; letter-spacing: .2em; color: var(--ice); }
.card h3 { margin: auto 0 14px; font-size: 34px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
.card p { margin: 0 0 20px; color: var(--mist); }
.card ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.card li { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); }
.card__link { color: var(--ice); text-decoration: none; font-weight: 500; }
.card--accent { background: linear-gradient(160deg, #0b86a8, var(--brand)); color: #fff; border: 0; }
.card--accent p, .card--accent .card__num, .card--accent .card__link { color: #fff; }
.card--accent li { border-color: rgba(255,255,255,.3); }

@media (max-width: 899px) {
  .programs__track { flex-direction: column; width: auto; }
  .card { width: 100%; min-height: 0; }
  .card h3 { margin-top: 40px; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 120px var(--pad); gap: 24px; }
.stat strong { display: block; font-size: clamp(48px, 7vw, 110px); line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--ice); font-variant-numeric: tabular-nums; }
.stat span { color: var(--mist); font-size: 15px; letter-spacing: .05em; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 50px; } }

/* Journey */
.journey { padding: 140px var(--pad) 120px; }
.journey__wrap { margin-top: clamp(40px, 10vw, 140px); }
.journey__head { margin-bottom: 60px; }
.journey__wrap { position: relative; aspect-ratio: 5 / 3; max-height: 80vh; width: 100%; }
.journey__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ridge { fill: rgba(15,26,40,.35); stroke: rgba(255,255,255,.35); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.trail { fill: none; stroke: var(--ice); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; filter: drop-shadow(0 0 8px rgba(98,190,218,.7)); }
.journey__steps { list-style: none; margin: 0; padding: 0; }
.journey__steps li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.journey__steps li::before { content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 7px rgba(98,190,218,.2), 0 0 24px var(--ice); }
.journey__steps div {
  position: absolute; bottom: 22px; left: -16px; width: 230px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(15,26,40,.88); border: 1px solid rgba(98,190,218,.25);
}
.journey__steps li.is-left div { left: auto; right: -16px; text-align: right; }
.journey__steps b { display: block; font-size: 20px; font-weight: 600; }
.journey__steps span { display: block; font-size: 15px; line-height: 1.4; color: var(--mist); }
@media (max-width: 760px) {
  .journey__wrap { aspect-ratio: auto; max-height: none; }
  .journey__svg { display: none; }
  .journey__steps { display: grid; gap: 18px; border-left: 2px solid rgba(98,190,218,.4); padding-left: 24px; }
  .journey__steps li { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .journey__steps li::before { left: -32px; top: 22px; }
  .journey__steps div, .journey__steps li.is-left div { position: static; width: auto; text-align: left; }
}

/* Features */
.features { margin: 0 clamp(8px, 2vw, 32px); padding: 110px var(--pad); background: rgba(244,248,251,.95); color: var(--ink); border-radius: 40px; }
.features .h2 em { color: var(--blue); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.feature { padding: 32px 26px; border-radius: var(--radius); background: rgba(255,255,255,.85); box-shadow: 0 20px 50px -30px rgba(15,26,40,.35); }
.feature__icon { color: var(--blue); font-size: 22px; }
.feature__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.feature__icon.is-emoji { font-size: 34px; line-height: 1; }
.feature__img { display: block; height: 52px; width: auto; max-width: 140px; object-fit: contain; }
.feature__badge { padding: 5px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.feature h3 { margin: 18px 0 8px; font-size: 22px; font-weight: 600; }
.feature p { margin: 0; color: var(--slate); font-size: 16px; }
@media (max-width: 1000px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features__grid { grid-template-columns: 1fr; } }

/* Quotes */
/* Areas: panels side by side; the active one widens (flex-grow), closed ones show a sideways name.
   main.js moves .is-active on hover/focus/tap. Stacked, all open, below 900px */
.areas { padding: 140px var(--pad); }
.areas__head { max-width: 820px; margin-bottom: 56px; }
.areas__intro { margin: 24px 0 0; max-width: 640px; font-size: clamp(17px, 1.6vw, 21px); color: var(--mist); }
.areas__list { display: flex; gap: 16px; height: min(640px, 80vh); }
.area {
  position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--navy); cursor: pointer;
  transition: flex-grow .6s cubic-bezier(.65, 0, .35, 1);
}
.area.is-active { flex-grow: 3.4; cursor: default; }
.area__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease-out; }
.area:hover .area__img { transform: scale(1.05); }
.area::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,18,30,.95) 0%, rgba(10,18,30,.55) 45%, rgba(10,18,30,.1) 100%); }
.area__num { display: block; font-size: 14px; font-weight: 600; letter-spacing: .2em; color: var(--ice); }
.area__label { position: absolute; inset: auto 0 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; transition: opacity .3s; }
.area__name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(28px, 2.6vw, 40px); font-weight: 700; line-height: 1; white-space: nowrap; }
.area.is-active .area__label { opacity: 0; }
.area__details {
  position: absolute; left: 0; bottom: 0; width: min(100%, 34rem); min-width: 26rem; padding: 32px;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .5s var(--ease);
}
.area.is-active .area__details { opacity: 1; transform: none; pointer-events: auto; transition-delay: .25s; }
.area__details h3 { margin: 8px 0 16px; font-size: clamp(36px, 4vw, 60px); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.area__levels { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.area__levels li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(15,26,40,.45); font-size: 13px; font-weight: 500; }
.lvl i { display: block; width: 10px; height: 10px; flex: none; background: var(--ice); border-radius: 2px; }
.lvl--beginner i { background: #2fb65d; border-radius: 50%; }
.lvl--intermediate i { background: #2f7bf5; }
.lvl--advanced i { background: #e5322d; transform: rotate(45deg) scale(.85); }
.lvl--expert i { background: #000; outline: 1px solid #fff; transform: rotate(45deg) scale(.85); }
.area__details p { margin: 0 0 16px; font-size: 17px; line-height: 1.55; color: #dfe8f2; }
.area__details .area__meet { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--mist); }
.area__meet b { color: #fff; font-weight: 600; }
.area__meet svg { width: 18px; height: 18px; flex: none; color: var(--ice); }
.area__cta { margin-top: 6px; }
@media (max-width: 899px) {
  .areas { padding-block: 100px; }
  .areas__list { flex-direction: column; height: auto; }
  .area { flex: none; min-height: 440px; display: flex; align-items: flex-end; cursor: default; }
  .area__label { display: none; }
  .area__details { position: relative; width: 100%; min-width: 0; padding: 26px; opacity: 1; transform: none; pointer-events: auto; }
}

/* Program card with a background photo (WordPress: Programs → Background photo) */
.card--photo { isolation: isolate; overflow: hidden; background: var(--navy); }
.card--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,18,30,.92) 0%, rgba(10,18,30,.6) 50%, rgba(10,18,30,.25) 100%); }
.card__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease-out; }
.card--photo:hover .card__img { transform: scale(1.05); }

/* Left where a section is switched off in WordPress, so its film chapter still plays */
.scene-spacer { height: 70vh; }

/* Reviews: two rows of cards scrolling sideways forever. Without JS (or with reduced motion) each row
   just scrolls by hand; main.js fills the rows, duplicates them and adds .is-looping */
.reviews { padding: 40px 0 150px; }
.reviews__title { padding: 0 var(--pad); margin-bottom: 30px; }
.reviews__row { overflow-x: auto; scrollbar-width: none; padding: 12px 0; }
.reviews__row::-webkit-scrollbar { display: none; }
.reviews__track { display: flex; align-items: center; gap: 16px; width: max-content; padding: 0 var(--pad); }
.reviews.is-looping .reviews__row { overflow: hidden; }
.reviews.is-looping .reviews__track { gap: 0; padding: 0; animation: reviews-loop var(--dur, 40s) linear infinite; }
.reviews.is-looping .review { margin-right: 16px; }
.reviews__row[data-reverse] .reviews__track { animation-direction: reverse; }
.reviews__row:hover .reviews__track, .reviews__row:focus-within .reviews__track { animation-play-state: paused; }
@keyframes reviews-loop { to { transform: translateX(-50%); } }
.review {
  flex: none; width: min(84vw, 380px); margin: 0; padding: 26px 28px;
  display: flex; flex-direction: column; border-radius: 28px;
  background: #fff; color: var(--ink); font-size: 16px;
  box-shadow: 0 1px 2px rgba(12,14,17,.04), 0 8px 24px rgba(12,14,17,.06);
}
.review__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.review__stars { color: #fbbc05; font-size: 19px; letter-spacing: 3px; line-height: 1; }
.review__g { width: 26px; height: 26px; flex: none; }
.review blockquote { margin: 0; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review figcaption { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: 14px; }
.review figcaption b { color: var(--brand); font-weight: 600; font-size: 15px; }
.review figcaption span { color: #6b7684; }


/* FAQ */
.faq { padding: 60px var(--pad) 140px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; max-width: 1400px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(255,255,255,.12); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 40px 26px 0; position: relative; font-size: 21px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: var(--ice); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--mist); max-width: 640px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 30px; } }

/* Booking */
.book { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 120px var(--pad); }
.book__inner { position: relative; width: 100%; max-width: 1200px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.book__title { margin: 0; font-size: clamp(54px, 9vw, 140px); line-height: .9; font-weight: 800; letter-spacing: -.05em; text-transform: uppercase; }
.book__title em { text-transform: none; }
.book__chat { display: grid; gap: 22px; justify-items: start; padding: 40px; border-radius: var(--radius); background: rgba(15,26,40,.82); border: 1px solid rgba(255,255,255,.14); }
.book__chat p { margin: 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--mist); }
.book__chat .btn { padding: 18px 32px; font-size: 18px; }
.book__chat small { font-size: 14px; color: var(--mist); opacity: .8; }
/* phone numbers never break in the middle */
.book__chat small a, .footer address a { white-space: nowrap; }
@media (max-width: 900px) { .book__inner { grid-template-columns: 1fr; } }

/* Footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 50px var(--pad); font-size: 15px; color: var(--mist); border-top: 1px solid rgba(255,255,255,.14); background: rgba(15,26,40,.8); }
.footer__brand { display: block; width: auto; height: 96px; }
.footer address { font-style: normal; }
.footer p { margin: 0; }

/* Motion is opt-in: only hide things once JS confirms animation is running */
.js-anim .reveal { opacity: 0; transform: translateY(40px); }

@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Full-page film ---------- */
main, .footer { position: relative; z-index: 1; }
.stage {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(120% 70% at 70% 0%, #3b5a7c 0%, transparent 60%), linear-gradient(180deg, #1a2b40, var(--night));
}
.stage__inner { position: absolute; inset: -3%; }
.scene, .scene__fx { position: absolute; inset: 0; }
/* Only the showing scene is composited: the rest are visibility:hidden until their crossfade (main.js) */
.scene { opacity: 0; visibility: hidden; }
.scene:first-child { opacity: 1; visibility: visible; }
.stage video, .stage canvas, .stage__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__shade { position: absolute; inset: 0; background: var(--night); opacity: .15; }
.stage__vignette { position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(5,10,18,.75) 100%); }
.stage__grain {
  position: absolute; inset: 0; opacity: .045; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Chapter rail */
.chapters {
  position: fixed; right: clamp(14px, 2.4vw, 36px); top: 50%; z-index: 40; transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: ch;
}
.chapters li {
  counter-increment: ch; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.45);
  transition: color .5s;
}
.chapters li span { opacity: 0; transform: translateX(8px); transition: opacity .5s, transform .5s var(--ease); }
.chapters li::after { content: "0" counter(ch); font-variant-numeric: tabular-nums; }
.chapters li.is-active { color: var(--ice); }
.chapters li.is-active span { opacity: 1; transform: none; }
@media (max-width: 900px) { .chapters { display: none; } }

.progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--ice)); transform-origin: left; transform: scaleX(0); }

/* Hero intro: plain CSS, so it plays on first paint instead of waiting for the scripts */
.js .hero__title .line > span { animation: hero-rise 1.3s cubic-bezier(.16, 1, .3, 1) both .1s; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .22s; }
.js .hero .eyebrow, .js .hero__lead, .js .hero__ctas, .js .hero__brand > * { animation: hero-fade 1.1s cubic-bezier(.22, 1, .36, 1) both .35s; }
.js .hero__lead { animation-delay: .43s; }
.js .hero__ctas { animation-delay: .51s; }
.js .hero__brand > * { animation-delay: .6s; }
@keyframes hero-rise { from { transform: translateY(115%); } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(24px); } }

/* Honeypot field: hidden from people, filled in by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Headings split into words for reveal */
/* The mask is padded (and pulled back with negative margins) so descenders (g, y, j) and italic
   overhangs stay inside it; otherwise they get clipped */
.split .wd { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .26em; margin: 0 -.08em -.26em; }
.split .wd > span { display: inline-block; }

/* Readability over moving footage */
.intro__text, .h2, .book__title, .stat strong { text-shadow: 0 2px 30px rgba(5,10,18,.35); }
.features .h2 { text-shadow: none; }

@media (prefers-reduced-motion: reduce) { .js .hero__title .line > span, .js .hero .eyebrow, .js .hero__lead, .js .hero__ctas, .js .hero__brand > * { animation: none; } }

/* ---------- Menu drop-downs (WordPress: Avalanche Landing → Menu, "Put it in a drop-down") ---------- */
.nav__links > li { position: relative; }
.nav__links a[aria-current="page"] { opacity: 1; color: var(--ice); }
.has-sub > a::after { content: ""; display: inline-block; width: .38em; height: .38em; margin: 0 0 .2em .45em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .7; }
.nav__sub { list-style: none; margin: 0; padding: 0; }
@media (min-width: 1181px) {
  .nav__sub {
    position: absolute; top: 100%; left: -18px; min-width: 210px; padding: 10px; margin-top: 12px;
    border-radius: 16px; background: rgba(15,26,40,.94); border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav__sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; } /* hover bridge */
  .has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__sub a { display: block; padding: 9px 12px; border-radius: 10px; }
  .nav__sub a:hover { background: rgba(255,255,255,.07); }
}
@media (max-width: 1180px) {
  .has-sub > a::after { display: none; }
  .nav__sub { display: contents; }
  .js .nav__sub { display: block; }
  .js .nav__sub a { padding-left: 20px; font-size: 16px; }
}
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* Footer quick links */
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; max-width: 460px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ice); }

/* ---------- Sections added in WordPress (Avalanche Landing → Sections) ---------- */
.xsec { padding: clamp(90px, 14vh, 150px) var(--pad); }
.xsec__head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 60px); }
.xsec__more { margin: 40px 0 0; text-align: center; }
.xsec__text p { margin: 0 0 1em; font-size: clamp(17px, 1.5vw, 20px); color: var(--mist); }
.xsec__text--center { max-width: 760px; margin: 32px auto 0; text-align: center; }
.xsec__inner { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1300px; margin: 0 auto; }
.xsec--text .xsec__body > .h2 { margin-bottom: 28px; }
.xsec--text .xsec__text { margin-bottom: 30px; max-width: 640px; }
.xsec--text.has-img .xsec__inner { grid-template-columns: 1fr 1fr; }
.xsec--text.img-left .xsec__img { order: -1; }
.xsec__img { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 80vh; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.xsec__img img { width: 100%; height: 100%; object-fit: cover; }
.xsec--light .xsec__inner { padding: clamp(32px, 6vw, 90px); border-radius: 40px; background: rgba(244,248,251,.96); color: var(--ink); }
.xsec--light .h2 { text-shadow: none; }
.xsec--light .h2 em { color: var(--brand); }
.xsec--light .eyebrow { color: var(--brand); }
.xsec--light .xsec__text p { color: var(--slate); }
@media (max-width: 899px) {
  .xsec--text.has-img .xsec__inner { grid-template-columns: 1fr; }
  .xsec--text.img-left .xsec__img { order: 0; }
  .xsec__img { aspect-ratio: 4 / 3; }
}

/* Photo mosaic (homepage gallery section): first photo big, the rest in a grid */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 17vw, 260px); grid-auto-flow: dense; gap: 12px; }
.mosaic .photo:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic .photo:nth-child(6n + 4) { grid-row: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 8px; } .mosaic .photo:nth-child(6n + 4) { grid-row: auto; } }
.photo { position: relative; display: block; overflow: hidden; border-radius: 16px; background: var(--navy); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo:hover img { transform: scale(1.05); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,18,30,.7), transparent 45%); opacity: 0; transition: opacity .4s; }
.photo:hover::after, .photo:focus-visible::after { opacity: 1; }
.photo__cap { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; font-size: 14px; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.photo:hover .photo__cap, .photo:focus-visible .photo__cap { opacity: 1; transform: none; }

/* Call-to-action banner (homepage section, and the box at the bottom of every other page) */
.xsec--cta { display: grid; place-items: center; }
.cta-box { width: 100%; max-width: 1100px; padding: clamp(40px, 7vw, 100px) clamp(24px, 6vw, 90px); text-align: center; border-radius: 40px; background: radial-gradient(120% 120% at 50% 0%, rgba(98,190,218,.25), transparent 60%), rgba(15,26,40,.82); border: 1px solid rgba(255,255,255,.14); }
.cta-box .book__title { font-size: clamp(40px, 7vw, 110px); }
.cta-box__text { max-width: 620px; margin: 26px auto 34px; }
.cta-box__text p { margin: 0 0 .6em; font-size: clamp(17px, 1.5vw, 20px); color: var(--mist); }
.cta-box .btn { padding: 18px 32px; font-size: 18px; }
.cta-box .book__title + .btn { margin-top: 34px; }

/* Video */
.xsec--video .xsec__head { margin-inline: auto; text-align: center; }
.video-frame { position: relative; max-width: 1200px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Blog post cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.post-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: rgba(15,26,40,.78); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), border-color .3s;
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(98,190,218,.5); }
.post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(150deg, #1d3a55, var(--brand)); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__img.is-empty { display: grid; place-items: center; font-size: 46px; color: rgba(255,255,255,.5); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.post-card__meta { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.post-card h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; } /* the whole card is clickable */
.post-card__body > p:not(.post-card__meta) { margin: 0 0 18px; font-size: 16px; color: var(--mist); }
.post-card__more { margin-top: auto; color: var(--ice); font-weight: 500; font-size: 15px; }
@media (min-width: 900px) {
  .post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
  .post-card--featured .post-card__img { aspect-ratio: auto; min-height: 380px; }
  .post-card--featured .post-card__body { justify-content: center; padding: 44px; }
  .post-card--featured h3 { font-size: clamp(30px, 3vw, 44px); }
}

/* ---------- Pages other than the homepage (blog, gallery, pages) ---------- */
.inner-bg { position: fixed; inset: 0; z-index: 0; background: var(--night); }
.inner-bg img { width: 100%; height: 100%; object-fit: cover; }
.inner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,26,40,.5) 0%, rgba(15,26,40,.85) 60vh, rgba(15,26,40,.94) 100%); }
.inner-main { position: relative; z-index: 1; min-height: 70vh; }
.page-hero { padding: clamp(150px, 24vh, 240px) var(--pad) clamp(40px, 6vh, 70px); max-width: 1300px; }
.page-hero--center { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; margin: 0 auto; }
.page-title { margin: 0; font-size: clamp(46px, 8vw, 120px); line-height: .92; font-weight: 800; letter-spacing: -.045em; text-transform: uppercase; text-shadow: 0 2px 30px rgba(5,10,18,.35); overflow-wrap: anywhere; }
.page-title em { text-transform: none; letter-spacing: -.03em; }
.page-title--article { font-size: clamp(36px, 5.6vw, 84px); line-height: 1; text-transform: none; letter-spacing: -.035em; max-width: 1100px; }
.page-lead { max-width: 640px; margin: 26px 0 0; font-size: clamp(17px, 1.6vw, 21px); color: var(--mist); }
.page-lead p { margin: 0 0 .6em; }
.page-hero--center .page-lead { margin-inline: auto; }
.page-actions { margin: 34px 0 0; }
.back { display: inline-block; margin-bottom: 26px; color: var(--ice); text-decoration: none; font-weight: 500; }
.back:hover { text-decoration: underline; }
.article__meta { margin: 22px 0 0; color: var(--mist); font-size: 15px; letter-spacing: .04em; }
.page-body { position: relative; padding: 0 var(--pad) clamp(70px, 10vh, 120px); max-width: 1400px; margin: 0 auto; }
.page-body--wide { max-width: 1600px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.chips a { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); text-decoration: none; font-size: 14px; transition: background .3s, border-color .3s; }
.chips a:hover { border-color: var(--ice); }
.chips a[aria-current="page"] { background: var(--brand); border-color: var(--brand); }
.chips--small { margin: 0 0 18px; }
.chips--small a { padding: 5px 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ice); border-color: rgba(98,190,218,.4); }
.empty { padding: 60px 30px; text-align: center; border-radius: var(--radius); border: 1px dashed rgba(255,255,255,.25); color: var(--mist); }
.empty .btn { margin-top: 10px; }
.screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search { display: flex; gap: 8px; max-width: 520px; margin: 30px 0 0; }
.page-hero--center .search { margin-inline: auto; width: 100%; }
.search input { flex: 1; min-width: 0; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(15,26,40,.6); color: inherit; font: inherit; font-size: 16px; }

/* Pagination (the_posts_pagination) */
.pagination { margin-top: 50px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); text-align: center; text-decoration: none; font-size: 15px; }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); }
.pagination .page-numbers.dots { border: 0; }
.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Post / page text: a white sheet, easy to read */
.paper { position: relative; max-width: 860px; margin: 0 auto clamp(50px, 8vh, 90px); padding: clamp(28px, 6vw, 72px); border-radius: 32px; background: rgba(250,252,253,.98); color: var(--ink); box-shadow: 0 40px 100px -50px rgba(0,0,0,.8); }
@media (max-width: 900px) { .paper { margin-inline: 10px; border-radius: 24px; } }
.prose { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.prose::after { content: ""; display: table; clear: both; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose table, .prose pre { margin: 0 0 1.4em; }
.prose h2, .prose h3, .prose h4 { margin: 1.8em 0 .6em; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--night); }
.prose h2 { font-size: clamp(26px, 3vw, 34px); }
.prose h3 { font-size: clamp(21px, 2.2vw, 25px); }
.prose h4 { font-size: 19px; }
.prose a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose em { color: inherit; font-weight: inherit; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { padding: 6px 0 6px 24px; border-left: 3px solid var(--brand); font-size: 1.12em; font-style: italic; color: var(--navy); }
.prose blockquote p:last-child { margin: 0; }
.prose img { height: auto; border-radius: 16px; }
.prose figure { max-width: 100%; }
.prose figcaption, .prose .wp-caption-text { margin-top: 10px; font-size: 14px; color: #6b7684; text-align: center; }
.prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid #dfe5ec; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid #dfe5ec; text-align: left; }
.prose code { padding: .1em .35em; border-radius: 6px; background: #eef2f6; font-size: .9em; }
.prose pre { padding: 18px; border-radius: 14px; background: var(--night); color: var(--snow); overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose iframe { max-width: 100%; }
.prose .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.prose .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; }
.prose .wp-block-button__link { display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; }
@media (max-width: 600px) { .prose .alignleft, .prose .alignright { float: none; margin: 0 0 1.4em; max-width: 100%; } }
.tags { margin: 36px 0 0; font-size: 15px; }
.tags a { color: var(--brand); text-decoration: none; margin-right: 10px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 28px; border-top: 1px solid #dfe5ec; font-size: 15px; }
.share span { font-weight: 600; margin-right: 6px; }
.share a, .share button { padding: 8px 16px; border-radius: 999px; border: 1px solid #cfd8e2; background: none; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.share a:hover, .share button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.share__copy { display: none; }
.js .share__copy { display: inline-block; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; margin: 0 auto clamp(60px, 9vh, 100px); padding: 0 var(--pad); box-sizing: content-box; }
.prevnext a { display: block; padding: 22px 24px; border-radius: 18px; background: rgba(15,26,40,.7); border: 1px solid rgba(255,255,255,.14); text-decoration: none; font-weight: 500; line-height: 1.35; transition: border-color .3s; }
.prevnext a:hover { border-color: var(--ice); }
.prevnext span { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.prevnext__next { grid-column: 2; text-align: right; }
@media (max-width: 600px) { .prevnext { grid-template-columns: 1fr; box-sizing: border-box; } .prevnext__next { grid-column: auto; } }
.related .eyebrow, .more-title { margin: 0 0 26px; }
.more-title { margin-top: 90px; }
.page-cta { position: relative; padding: 0 var(--pad) clamp(70px, 10vh, 120px); display: grid; place-items: center; }

/* Gallery: albums */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.albums--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.album-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: linear-gradient(150deg, #1d3a55, var(--brand)); text-decoration: none; }
.album-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.album-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,18,30,.9) 0%, rgba(10,18,30,.25) 50%, transparent 100%); }
.album-card:hover img { transform: scale(1.06); }
.album-card__body { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 24px 26px; }
.album-card b { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.album-card small { flex: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }

/* Gallery: one album, as a masonry wall */
.album-grid { columns: 3 320px; column-gap: 14px; }
.album-grid .photo { margin-bottom: 14px; break-inside: avoid; }
.album-grid .photo img { height: auto; }
@media (max-width: 700px) { .album-grid { columns: 2; column-gap: 8px; } .album-grid .photo { margin-bottom: 8px; border-radius: 10px; } }

/* Photo viewer (main.js) */
.has-lightbox, .has-lightbox body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(5,10,18,.95); animation: lb-in .3s ease; }
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__fig { margin: 0; display: grid; place-items: center; align-content: center; gap: 12px; width: 100%; height: 100%; padding: 70px 90px 60px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { max-width: 760px; text-align: center; font-size: 15px; color: var(--mist); }
.lightbox figcaption:empty { display: none; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(15,26,40,.6); color: #fff; font: 300 34px/1 "Jost", sans-serif; cursor: pointer; transition: background .3s, border-color .3s; }
.lightbox__btn:hover { background: var(--brand); border-color: var(--brand); }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 18px; top: 18px; font-size: 30px; }
.lightbox__count { position: absolute; left: 24px; top: 32px; font-size: 13px; letter-spacing: .2em; color: var(--mist); }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }
@media (max-width: 700px) {
  .lightbox__fig { padding: 70px 10px 96px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 22px; transform: none; }
  .lightbox__prev { left: calc(50% - 66px); }
  .lightbox__next { right: calc(50% - 66px); }
}
