/* =========================================================
   MK Aquarium Services
   Palette: deep-water ink, sea-foam cream, champagne accent
   ========================================================= */
:root {
  --ink: #0d1418;          /* near-black with a blue cast */
  --ink-2: #131d22;
  --cream: #f2efe8;
  --cream-dim: rgba(242, 239, 232, 0.72);
  --line: rgba(242, 239, 232, 0.22);
  --accent: #d2ad74;       /* champagne — swap for a sea-glass tone if preferred */

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --logo: "Italiana", "Cormorant Garamond", serif;

  --gutter: clamp(16px, 3.4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (min-width: 1024px) and (min-height: 700px) {
  html { scroll-snap-type: y proximity; }
  .chapter { scroll-snap-align: start; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 22px;
  color: var(--cream);
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7.2vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}
.display em, .hero__title em { font-style: italic; color: var(--accent); }
.cine .display em, .place .display em, .contact .display em { color: var(--cream); }
.lead {
  max-width: 520px;
  font-size: 16px;
  color: var(--cream);
  margin: 0;
}

/* line mask reveal */
/* extra bottom room so descenders (g, y, p) are not clipped by the mask */
.line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.line > * { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.in .line > * , .hero.in .line > * { transform: none; }
.in .line:nth-child(2) > * { transition-delay: 0.08s; }
.in .line:nth-child(3) > * { transition-delay: 0.16s; }

.fade { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.in .fade { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 999px;
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn--solid { background: var(--cream); color: var(--ink); border: 1px solid var(--cream); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid rgba(242,239,232,0.45); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(242,239,232,0.08); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 22px;
  border: 1px solid rgba(242,239,232,0.5);
  border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pill:hover { background: var(--cream); color: var(--ink); }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 22px;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.preloader__lines { position: absolute; inset: 0; display: flex; justify-content: space-evenly; pointer-events: none; }
.preloader__lines span {
  width: 1px; background: linear-gradient(to bottom, transparent, rgba(242,239,232,0.25), transparent);
  transform: scaleY(0); transform-origin: top; animation: drop 1.6s var(--ease) forwards;
}
.preloader__lines span:nth-child(2n) { animation-delay: 0.12s; }
.preloader__lines span:nth-child(3n) { animation-delay: 0.24s; }
@keyframes drop { to { transform: scaleY(1); } }
.preloader__logo {
  font-family: var(--logo); font-size: clamp(26px, 3vw, 38px); letter-spacing: 0.08em;
  filter: blur(12px); opacity: 0; animation: focus 1.4s var(--ease) 0.1s forwards;
}
@keyframes focus { to { filter: blur(0); opacity: 1; } }
.preloader__count { font-size: 10px; letter-spacing: 0.3em; color: var(--cream-dim); }
body.is-ready .preloader { opacity: 0; visibility: hidden; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 82px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background 0.5s, backdrop-filter 0.5s, height 0.4s;
}
.site-header.is-scrolled {
  background: rgba(13, 20, 24, 0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  height: 70px;
}
.logo { display: inline-flex; align-items: baseline; gap: 12px; font-family: var(--logo); line-height: 1; white-space: nowrap; }
.logo__mark { font-size: 30px; letter-spacing: 0.06em; }
.logo__word { font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav { display: flex; gap: clamp(16px, 1.8vw, 30px); }
.nav a {
  position: relative;
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 0; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: flex; gap: 10px; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(242,239,232,0.5); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--cream); transition: transform 0.4s var(--ease); }
.menu-toggle span:first-child { top: 18px; } .menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(13,20,24,0.96);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: var(--serif); font-size: clamp(36px, 9vw, 56px); line-height: 1.15; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }

@media (max-width: 1400px) { .header-cta .pill:last-child { display: none; } }
@media (max-width: 1180px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.25) contrast(1.08);   /* the clip is a touch hazy */
  transform: scale(1.12); transition: transform 3.2s var(--ease);
}
.hero.in .hero__media video { transform: scale(1.02); }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.08) translate(-1%, -0.6%); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,12,16,0.82) 0%, rgba(7,12,16,0.55) 38%, rgba(7,12,16,0.15) 70%, rgba(7,12,16,0.35) 100%),
    linear-gradient(0deg, rgba(7,12,16,0.7) 0%, transparent 35%);
}
.hero__inner {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: 1fr minmax(320px, 400px); gap: 48px; align-items: center;
  padding: 130px var(--gutter) 60px calc(var(--gutter) + 2vw);
}
.hero__copy { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; }
.hero__eyebrow { margin-top: 20px; opacity: 0; transition: opacity 1s 0.4s; }
.hero.in .hero__eyebrow { opacity: 1; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(58px, 8.4vw, 136px);
  line-height: 0.95; letter-spacing: -0.02em;
  margin: 0;
}
.hero__title .line:nth-child(2) > * { transition-delay: 0.12s; }
.hero__sub { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.45; margin: 0; opacity: 0; transition: opacity 1.2s 0.6s; }
.hero.in .hero__sub { opacity: 1; }

.brochure {
  background: rgba(10, 17, 21, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(242,239,232,0.1);
  padding: 36px 32px 26px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.2s var(--ease) 0.5s, transform 1.2s var(--ease) 0.5s;
}
.hero.in .brochure { opacity: 1; transform: none; }
.brochure__title {
  margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); align-self: flex-start;
}
.brochure__lead { margin: 6px 0 10px; font-size: 14px; color: var(--cream-dim); }
.brochure .btn:first-of-type { margin-top: 18px; }
.brochure__fine { margin: 8px 0 0; font-size: 10.5px; color: rgba(242,239,232,0.5); text-align: center; }
.brochure__done { margin: 6px 0 0; font-size: 13px; color: var(--accent); text-align: center; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.field > span { font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); }
.field input {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--cream); font: 400 16px var(--sans);
  padding: 8px 0 10px; outline: none; border-radius: 0;
  transition: border-color 0.3s;
}
.field input:focus { border-color: var(--cream); }
.field input.is-invalid { border-color: #e08b7a; }

.credit {
  position: absolute; right: var(--gutter); bottom: 22px; z-index: 1;
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-dim);
}

/* ---------- cinematic chapters ---------- */
.cine { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; background: var(--ink-2); }
.cine__media, .place__media, .contact__media { position: absolute; inset: 0; overflow: hidden; }
.cine__media img, .cine__media video, .place__media img, .contact__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1); transition: transform 2.4s var(--ease);
}
.in .cine__media img, .in .cine__media video, .in .place__media img, .in .contact__media img { transform: scale(1); }
.cine__shade { position: absolute; inset: 0; }
/* enlarge the photo and anchor it left, so a centered subject lands to the right of the text (desktop) */
@media (min-width: 901px) {
  .cine__media--zoom img { width: 150%; max-width: none; }
}
.cine__shade--left { background: linear-gradient(90deg, rgba(7,12,16,0.78) 0%, rgba(7,12,16,0.45) 45%, rgba(7,12,16,0.1) 75%), linear-gradient(0deg, rgba(7,12,16,0.65), transparent 40%); }
.cine__shade--strong { background: linear-gradient(90deg, rgba(7,12,16,0.9) 0%, rgba(7,12,16,0.62) 42%, rgba(7,12,16,0.12) 75%), linear-gradient(0deg, rgba(7,12,16,0.75), transparent 45%); }
.cine__shade--right { background: linear-gradient(270deg, rgba(7,12,16,0.8) 0%, rgba(7,12,16,0.45) 45%, rgba(7,12,16,0.12) 75%), linear-gradient(0deg, rgba(7,12,16,0.5), transparent 40%); }
.cine__shade--center { background: radial-gradient(ellipse at 50% 65%, rgba(7,12,16,0.72), rgba(7,12,16,0.25) 70%), linear-gradient(0deg, rgba(7,12,16,0.55), transparent 50%); }

.cine__inner {
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 120px var(--gutter) 56px calc(var(--gutter) + 2vw);
}
.chapter-no { display: flex; flex-direction: column; gap: 6px; }
.chapter-no span { font-family: var(--serif); font-size: clamp(40px, 3.6vw, 56px); line-height: 1; }
.chapter-no small { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream-dim); }
.cine__body { max-width: 760px; }
.cine__body .lead, .cine__body .eyebrow, .stats, .collection, .tags, .route, .journey, .steps, .talk, .place .lead, .place .eyebrow, .contact .eyebrow {
  opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) 0.35s, transform 1s var(--ease) 0.35s;
}
.in .cine__body .lead, .in .cine__body .eyebrow, .in .stats, .in .collection, .in .tags, .in .route, .in .journey, .in .steps, .in .talk, .in.place .lead, .in.place .eyebrow, .in.contact .eyebrow { opacity: 1; transform: none; }

.stats { display: flex; justify-content: space-between; gap: 32px; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; gap: 8px; }
.stats dt { font-family: var(--serif); font-size: clamp(34px, 4vw, 64px); line-height: 1; }
.stats dd { margin: 0; font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-dim); }
.collection .eyebrow { margin-bottom: 14px; }
.stats--compact { justify-content: flex-start; gap: clamp(32px, 6vw, 96px); border-top: 0; padding-top: 0; }
.stats--compact dt { font-size: clamp(26px, 3vw, 44px); }

/* centered */
.cine--centered .cine__inner { align-items: center; text-align: center; }
.cine--centered .chapter-no { align-self: flex-start; text-align: left; }
.cine--centered .cine__body { margin: 0 auto; }
.cine--centered .lead { margin: 0 auto; }

/* right-aligned */
.cine--right .cine__body { align-self: flex-end; text-align: right; }
.cine--right .lead { margin-left: auto; }
.tags { list-style: none; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 30px 0 0; }
.tags li { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-dim); }

/* ---------- moves (place) ---------- */
.place { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; }
.place__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,12,16,0.78) 0%, rgba(7,12,16,0.45) 42%, rgba(7,12,16,0.05) 75%), linear-gradient(0deg, rgba(7,12,16,0.55), transparent 35%); }
.place__inner { position: relative; z-index: 1; width: 100%; padding: 120px var(--gutter) 48px calc(var(--gutter) + 2vw); display: flex; flex-direction: column; }
.place .chapter-no { margin-bottom: 28px; }
.place .display { font-size: clamp(44px, 6vw, 96px); }
.place .lead { max-width: 620px; }
.route { list-style: none; padding: 0; margin: 36px 0 0; max-width: 820px; }
.route li { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.route li em { font-style: normal; font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-dim); align-self: center; white-space: nowrap; }
.journey { margin-top: auto; padding-top: 44px; display: flex; align-items: center; gap: 18px; }
.journey span { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.journey i { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.journey i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-101%); }
.in .journey i::after { animation: swim 3.4s var(--ease) 0.8s infinite; }
.in .journey i:last-of-type::after { animation-delay: 1.6s; }
@keyframes swim { 0% { transform: translateX(-101%); } 60%, 100% { transform: translateX(101%); } }

/* ---------- gallery ---------- */
.gallery { position: relative; background: var(--ink); padding: 120px var(--gutter) 110px calc(var(--gutter) + 2vw); }
.gallery__head { display: grid; grid-template-columns: auto 1fr; gap: 0 48px; align-items: end; margin-bottom: 56px; }
.gallery__head .chapter-no { grid-row: span 3; align-self: start; }
.gallery__head .display { font-size: clamp(44px, 6vw, 96px); margin-bottom: 20px; }
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 19vw, 300px);
  gap: 12px; grid-auto-flow: dense;
}
.gallery__more { display: flex; justify-content: center; margin-top: 48px; }
.gallery__more .btn { width: auto; padding: 0 40px; }
.gallery__item { position: relative; margin: 0; overflow: hidden; cursor: zoom-in; background: var(--ink-2); }
.gallery__item.g-wide { grid-column: span 2; }
.gallery__item.g-tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px;
  background: linear-gradient(0deg, rgba(7,12,16,0.75), transparent);
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s var(--ease);
}
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(5,9,12,0.94);
  display: grid; place-items: center; padding: 60px 70px;
  animation: lbIn 0.4s var(--ease);
}
@keyframes lbIn { from { opacity: 0; } }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox__cap { position: absolute; bottom: 24px; left: 0; right: 0; margin: 0; text-align: center; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-dim); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--cream); cursor: pointer; font: 300 40px/1 var(--serif); padding: 12px; opacity: 0.75; transition: opacity 0.3s; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 14px; right: 20px; }
.lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- gallery page ---------- */
.page-gallery { background: var(--ink); }
.page-intro {
  position: relative;
  padding: 150px var(--gutter) 40px calc(var(--gutter) + 2vw);
  background: radial-gradient(ellipse 70% 60% at 85% 0%, rgba(40, 110, 150, 0.28), transparent 70%);
}
.page-intro .chapter-no { margin-bottom: 28px; }
.page-intro .display { font-size: clamp(52px, 7.5vw, 120px); margin-bottom: 24px; }
.page-intro .lead { max-width: 600px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.filter {
  background: transparent; color: var(--cream); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px;
  font: 600 10.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filter:hover { border-color: var(--cream); }
.filter.is-active { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gallery-page { padding: 24px var(--gutter) 100px calc(var(--gutter) + 2vw); }
.gallery-page__grid { display: flex; gap: 12px; align-items: flex-start; }
.masonry__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery-page__grid .gallery__item img { height: auto; }
.tile { opacity: 0; transform: translateY(60px); filter: blur(6px);
  transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.2s var(--ease) var(--d, 0ms), filter 1s var(--ease) var(--d, 0ms); }
.tile.is-in { opacity: 1; transform: none; filter: none; }
.gallery-page__foot { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 48px; }
.gallery-page__count { margin: 0; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-dim); }
.gallery-page__foot .btn { width: auto; padding: 0 44px; }

.cta-band {
  position: relative; text-align: center;
  padding: 120px var(--gutter) 130px;
  border-top: 1px solid rgba(242,239,232,0.08);
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(40, 110, 150, 0.22), transparent 70%);
}
.cta-band .eyebrow { margin-bottom: 24px; }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.cta-band__actions .btn { width: auto; padding: 0 36px; }

/* ---------- contact ---------- */
.contact { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
/* lighter overall so the photo shows; a soft darker pool sits behind the heading and form */
.contact__shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 40% 58% at 50% 46%, rgba(7,12,16,0.55), rgba(7,12,16,0.28) 70%, rgba(7,12,16,0.2) 100%),
  linear-gradient(0deg, rgba(7,12,16,0.8), transparent 22%); }
.contact .display, .contact .eyebrow { text-shadow: 0 2px 24px rgba(7,12,16,0.55); }
.contact__inner {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 120px var(--gutter) 40px;
}
.display--center { font-size: clamp(48px, 6vw, 92px); }
.steps {
  width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px; margin-top: 12px;
  /* frosted card (same feel as the call-back card up top) keeps small labels readable over the photo */
  padding: 30px 30px 26px; background: rgba(10, 17, 21, 0.62);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(242, 239, 232, 0.12);
}
.talk { text-shadow: 0 1px 12px rgba(7,12,16,0.8); }
.steps__progress { margin-bottom: 14px; text-align: center; }
.steps__label { margin: 0 0 12px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); }
.steps__label b { color: var(--cream); font-weight: 600; }
.steps__label span { color: var(--cream); }
.steps__bar { height: 1px; background: var(--line); }
.steps__bar i { display: block; height: 100%; width: 33.34%; background: var(--cream); transition: width 0.7s var(--ease); }
.chips__label { margin: 0 0 10px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-dim); }
.step { border: 0; padding: 0; margin: 0; display: none; text-align: left; }
.step.is-active { display: block; animation: stepIn 0.7s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
.step--done { text-align: center; }
.done-title { font-family: var(--serif); font-style: italic; font-size: 40px; margin: 0 0 8px; }

.steps__error { margin: 4px 0 0; font-size: 13px; color: #e8a597; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; transition: all 0.3s;
}
.chips input:checked + span { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.talk { margin-top: 36px; font-size: 13px; color: var(--cream-dim); }
.talk p { margin: 0 0 4px; }
.talk a { color: var(--cream); font-size: 15px; border-bottom: 1px solid var(--line); }

.site-footer {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; align-items: end;
  padding: 26px var(--gutter) 30px;
  border-top: 1px solid rgba(242,239,232,0.1);
  font-size: 11px; color: var(--cream-dim);
}
.site-footer p { margin: 0; }
.logo--footer { color: var(--cream); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .page-intro, .gallery-page { padding-left: var(--gutter); }
  .gallery-page__grid, .masonry__col { gap: 8px; }
  .gallery { padding-left: var(--gutter); }
  .gallery__head { grid-template-columns: 1fr; }
  .gallery__head .chapter-no { grid-row: auto; margin-bottom: 24px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .gallery__item figcaption { opacity: 1; transform: none; }
  /* phones: text stacks over the middle of each photo, so darken the lower half more */
  .cine__shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,12,16,0.85) 0%, rgba(7,12,16,0.5) 55%, transparent 85%); }
  .hero__inner { grid-template-columns: 1fr; padding-top: 110px; gap: 40px; }
  .hero__copy { gap: 28px; }
  .brochure { max-width: 460px; }
  .stats { flex-wrap: wrap; gap: 24px 36px; justify-content: flex-start; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .cine__inner, .place__inner { padding-left: var(--gutter); }
}
@media (max-width: 560px) {
  .lightbox { padding: 60px 12px; }
  .logo__mark { font-size: 24px; }
  .logo__word { font-size: 12px; letter-spacing: 0.1em; }
  .brochure { padding: 28px 22px 22px; }
  .route li { font-size: 13px; }
  .journey { gap: 10px; }
  .journey span { font-size: 8px; letter-spacing: 0.14em; }
  .site-footer { grid-template-columns: 1fr; }
  .credit { display: none; }
}

/* ---------- GSAP hand-off ----------
   When motion.js is running it owns every text reveal, so the CSS reveals above step aside
   (no hidden starting states, no competing transitions, masks open for sideways slides). */
html.gsap-on { scroll-behavior: auto; scroll-snap-type: none; }
.gsap-on .line { overflow: visible; }
.gsap-on .line > *,
.gsap-on .hero__eyebrow, .gsap-on .hero__sub, .gsap-on .brochure,
.gsap-on .cine__body .lead, .gsap-on .cine__body .eyebrow, .gsap-on .stats, .gsap-on .collection,
.gsap-on .tags, .gsap-on .route, .gsap-on .journey, .gsap-on .steps, .gsap-on .talk,
.gsap-on .place .lead, .gsap-on .place .eyebrow, .gsap-on .contact .eyebrow, .gsap-on .gallery .lead, .gsap-on .gallery .eyebrow, .gsap-on .cta-band .eyebrow {
  opacity: 1; transform: none; transition: none;
}
.gsap-on .brochure { transition: none; }
.chapter-no .mask { display: block; overflow: hidden; }
.chapter-no .mask > * { display: block; }
/* blur/transform layers render smoother when promoted */
.gsap-on .display .line > *, .gsap-on .hero__title .line > * { will-change: transform, filter, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .line > *, .fade { transform: none !important; opacity: 1 !important; }
}
