/* Manchester City Yas Residences by Ohana — landing
   DNA from mancityyasresidences.ohana.ae: City sky #6caddf, navy #00193a,
   pale sky #ddeffa, warm beige #f7f3e3, gold gradient CTAs.
   Kippax Modern → Barlow Condensed, Freight Big → Cormorant Garamond italic, Archivo as-is. */

:root {
  --navy: #00193a;
  --midnight: #001330;
  --sky: #6caddf;
  --sky-ink: #2f78b4;
  --sky-20: #ddeffa;
  --beige: #f7f3e3;
  --ink: #141414;
  --muted: #5d6c7b;
  --line: #d5dee8;
  --gold: linear-gradient(100deg, #f0e2b4 0%, #d3b876 42%, #a38249 100%);
  --gold-solid: #b8995a;

  --f-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --pad: clamp(20px, 4vw, 56px);
  --hdr: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--f-sans);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

[hidden],
.modal[hidden], .done[hidden], .form__err[hidden], .amen__list[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 18px;
  font: 600 12px/1.3 var(--f-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky-ink);
}
.eyebrow--sky { color: var(--sky); }

.h2 {
  margin: 0 0 24px;
  font: 700 clamp(2.4rem, 4.6vw, 4.25rem)/.95 var(--f-cond);
  text-transform: uppercase;
  letter-spacing: .005em;
  color: var(--navy);
  text-wrap: balance;
}
.h2 em {
  display: block;
  margin-top: .12em;
  font: italic 500 .74em/1 var(--f-serif);
  text-transform: none;
  letter-spacing: 0;
  color: var(--sky-ink);
}
.h2--light { color: #fff; }
.h2--light em { color: var(--sky); }
.h3 {
  margin: 0 0 14px;
  font: 600 1.35rem/1.1 var(--f-cond);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
p { margin: 0 0 1em; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: italic 500 1.2rem/1 var(--f-serif);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 18px -8px rgba(117, 93, 36, .55); }
.btn--line { background: rgba(255,255,255,.55); border-color: rgba(0,25,58,.35); color: var(--navy); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--sm { --h: 42px; padding: 0 20px; font-size: 1.05rem; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { filter: brightness(1.06) saturate(1.05); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 24px -10px rgba(117, 93, 36, .7); }
  .btn--line:hover { background: #fff; border-color: var(--navy); }
  .btn--navy:hover { background: #0a2d5c; }
}

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--hdr);
  transition: background-color 240ms ease, box-shadow 240ms ease, height 0s;
}
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(0,25,58,.08);
  opacity: 0;
  transition: opacity 240ms ease;
}
.hdr.is-scrolled::before { opacity: 1; }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.hdr__logo img { width: 190px; }
.hdr__nav { margin-left: auto; display: flex; gap: 34px; }
.hdr__nav a {
  position: relative;
  font: 500 12.5px/1 var(--f-sans);
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--navy);
  padding: 8px 0;
}
.hdr__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hdr__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- page-load entrance (CSS-only so it never waits on JS) ---------- */
.load { animation: rise 900ms var(--ease-out) both; animation-delay: calc(120ms + var(--d, 0) * 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(700px, 100svh);
  overflow: hidden;
  background: #a9d0ef;
  isolation: isolate;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg { z-index: -2; }
.hero__bg img { object-fit: cover; object-position: 72% 50%; animation: settle 1600ms var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.04); opacity: .6; } }
.hero::after { /* white floor so the facts strip and players sit on a calm ground */
  content: ""; position: absolute; inset: auto 0 0; height: 34%; z-index: -1;
  background: linear-gradient(to top, rgba(255,255,255,.95), rgba(255,255,255,0));
  pointer-events: none;
}
.hero__players {
  position: absolute; z-index: 0; left: max(0px, calc(var(--pad) - 24px)); bottom: 0;
  width: min(36vw, 560px);
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 18%);
          mask-image: linear-gradient(to top, transparent 0, #000 18%);
  animation: rise 1100ms var(--ease-out) 380ms both;
}
.hero__copy { position: relative; z-index: 1; padding-top: calc(var(--hdr) + clamp(28px, 6vh, 72px)); }
.hero .eyebrow { color: var(--navy); opacity: .8; }
.hero__title { margin: 0; color: var(--navy); text-transform: uppercase; font-family: var(--f-cond); font-weight: 700; line-height: .86; }
.hero__l1 { display: block; font-size: clamp(2.6rem, 4.7vw, 4.5rem); letter-spacing: .005em; }
.hero__l2 { display: block; font-size: clamp(4.6rem, 9.6vw, 9.4rem); letter-spacing: -.005em; }
.hero__sub {
  margin: 18px 0 30px;
  font: 600 clamp(1.15rem, 2vw, 1.9rem)/1.08 var(--f-sans);
  letter-spacing: .01em; text-transform: uppercase; color: var(--navy);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.facts {
  position: absolute; z-index: 1; right: 0; bottom: clamp(20px, 4vh, 40px);
  width: min(900px, 62%);
  margin: 0; padding: 0 calc(var(--pad) + 64px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.facts div { padding: 4px 20px 4px 22px; border-left: 1px solid rgba(0,25,58,.2); }
.facts dt { font: 500 11px/1.3 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font: 600 1.32rem/1.05 var(--f-cond); letter-spacing: .03em; text-transform: uppercase; color: var(--navy); }

/* ---------- sections ---------- */
section { position: relative; }
.intro, .project, .loc, .partner, .ohana { padding: clamp(80px, 11vw, 150px) 0; }

.intro__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro__copy p:not(.eyebrow) { color: #3a4553; max-width: 46ch; }
.intro__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.trio { margin-top: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1.65fr 1.4fr 1fr; gap: clamp(12px, 1.6vw, 22px); align-items: end; }
.trio img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.trio figure:last-child img { aspect-ratio: 4/5; }
figcaption {
  margin-top: 12px;
  font: 500 11px/1.3 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

.project { background: var(--beige); }
.project__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.project__copy > p { color: #3a4553; }
.project__media img { width: 100%; aspect-ratio: 1600/928; object-fit: cover; }
.specs { margin: 32px 0 36px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(0,25,58,.15); }
.specs div { padding: 16px 16px 16px 0; border-bottom: 1px solid rgba(0,25,58,.15); }
.specs dt { font: 500 11px/1.3 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.specs dd { margin: 0; font: 600 1.2rem/1.15 var(--f-cond); letter-spacing: .03em; text-transform: uppercase; color: var(--navy); }

/* ---------- amenities ---------- */
.amen { background: var(--navy); color: #c9d7e6; padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; }
.amen::before { /* faint sky glow behind the stage */
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px;
  background: radial-gradient(closest-side, rgba(108,173,223,.18), transparent);
  pointer-events: none;
}
.amen__head { max-width: 760px; }
.amen__head p:not(.eyebrow) { max-width: 60ch; }

.tabs {
  position: relative;
  margin: 44px 0 28px;
  display: flex; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none;
  padding: 14px 18px 16px;
  background: none; border: 0;
  font: 600 1.1rem/1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  transition: color 200ms ease;
}
.tabs button[aria-selected="true"] { color: #fff; }
@media (hover: hover) and (pointer: fine) { .tabs button:hover { color: #fff; } }
.tabs__ink {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100px;
  background: var(--sky);
  transform-origin: left;
  transition: transform 320ms var(--ease-in-out);
  pointer-events: none;
}

.amen__body { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.amen__stage { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #0a2550; }
.amen__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: blur(6px); transform: scale(1.02);
  transition: opacity 420ms var(--ease-out), filter 420ms var(--ease-out), transform 700ms var(--ease-out);
}
.amen__img.is-on { opacity: 1; filter: blur(0); transform: none; }
.amen__img:not([src]) { visibility: hidden; }
.amen__cap {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 60px 24px 20px;
  background: linear-gradient(to top, rgba(0,19,48,.78), transparent);
  font: 600 1.35rem/1 var(--f-cond); letter-spacing: .06em; text-transform: uppercase; color: #fff;
}
.amen__list { list-style: none; margin: 0; padding: 0; }
.amen__list li + li { border-top: 1px solid rgba(255,255,255,.1); }
.amen__list button {
  position: relative;
  display: block; width: 100%; text-align: left;
  padding: 18px 0 18px 22px;
  background: none; border: 0;
  color: inherit;
}
.amen__list button::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 2px;
  background: var(--sky);
  transform: scaleY(0); transform-origin: top;
  transition: transform 260ms var(--ease-out);
}
.amen__list button.is-on::before { transform: scaleY(1); }
.amen__list b {
  display: block;
  font: 600 1.28rem/1.1 var(--f-cond); letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.62);
  transition: color 200ms ease;
}
.amen__list span { display: block; margin-top: 6px; font-size: .92rem; line-height: 1.55; color: rgba(201,215,230,.62); transition: color 200ms ease; }
.amen__list button.is-on b { color: #fff; }
.amen__list button.is-on span { color: #c9d7e6; }
@media (hover: hover) and (pointer: fine) { .amen__list button:hover b { color: #fff; } }

/* ---------- moment ---------- */
.moment { min-height: min(86svh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.moment__bg, .moment__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.moment__bg { z-index: -2; }
.moment__bg img { object-fit: cover; object-position: 60% 50%; }
.moment::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,19,48,.86) 0%, rgba(0,19,48,.55) 42%, rgba(0,19,48,0) 75%);
}
.moment__in { padding-top: 90px; padding-bottom: 90px; }
.moment__in > * { max-width: 520px; }
.moment__title { margin: 0 0 24px; font: 700 clamp(3rem, 6.4vw, 6rem)/.9 var(--f-cond); text-transform: uppercase; }
.moment p { font-size: 1.08rem; color: rgba(255,255,255,.86); }
.moment__tag { margin-top: 28px; font: italic 500 1.35rem/1 var(--f-serif) !important; color: var(--sky) !important; }

/* ---------- location ---------- */
.loc { background: #fff; }
.loc__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.loc__head > p { color: #3a4553; margin: 0 0 24px; }
.loc__map img { width: 100%; }
.loc__cols { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.dist { list-style: none; margin: 0; padding: 0; }
.dist li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dist span { flex: 1; color: #2c3744; }
.dist b { font: 600 1.15rem/1 var(--f-cond); letter-spacing: .04em; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- partnership ---------- */
.partner { background: var(--beige); }
.partner__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.partner__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 30%; }
.partner__copy > p { color: #3a4553; max-width: 52ch; }
.partner__logos { width: min(360px, 80%); margin: 28px 0 36px; }

.video { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.video__play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; color: #fff; }
.video__play img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.video__btn {
  position: absolute; left: 50%; top: 50%;
  width: 68px; height: 68px; margin: -34px 0 0 -34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold); color: var(--navy);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  transition: transform 160ms var(--ease-out);
}
.video__btn svg { margin-left: 3px; }
.video__play:active .video__btn { transform: scale(.94); }
.video__label { position: absolute; left: 20px; bottom: 16px; font: italic 500 1.15rem/1 var(--f-serif); }
@media (hover: hover) and (pointer: fine) { .video__play:hover img { transform: scale(1.025); } }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }

/* ---------- ohana ---------- */
.ohana { background: var(--sky-20); }
.ohana__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.ohana p { color: #2c3a4a; }
.stat { margin: 28px 0 0; display: flex; align-items: baseline; gap: 16px; }
.stat dt { font: 700 4.5rem/.8 var(--f-cond); color: var(--navy); }
.stat dd { margin: 0; font: 500 11px/1.4 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); max-width: 16ch; }

/* ---------- register ---------- */
.reg { padding: clamp(80px, 10vw, 140px) 0; color: #fff; isolation: isolate; overflow: hidden; }
.reg__bg, .reg__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.reg__bg { z-index: -2; }
.reg__bg img { object-fit: cover; }
.reg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(0,19,48,.92) 0%, rgba(0,25,58,.78) 50%, rgba(0,25,58,.5) 100%); }
.reg__grid { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.reg__copy > p { color: rgba(255,255,255,.85); max-width: 44ch; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.9); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 7px; border-left: 1.5px solid var(--sky); border-bottom: 1.5px solid var(--sky); transform: rotate(-45deg); }

.card { position: relative; background: #fff; color: var(--ink); padding: clamp(24px, 3vw, 40px); border-radius: 2px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.55); }
.card__title { margin: 0 0 22px; font: 700 2rem/.95 var(--f-cond); text-transform: uppercase; color: var(--navy); }

/* ---------- form ---------- */
.form { display: grid; gap: 14px; }
.form.sent { visibility: hidden; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld > span, .seg legend { font: 500 11px/1.3 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fld input, .fld select {
  width: 100%; min-width: 0; height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line); border-radius: 2px;
  background: #fbfcfe;
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.fld input:focus, .fld select:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 3px rgba(108,173,223,.25); }
.fld input[aria-invalid="true"] { border-color: #c2412d; }
.phone { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.phone select {
  appearance: none; -webkit-appearance: none;
  padding-right: 28px;
  background: #fbfcfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2300193a' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.seg { margin: 4px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg legend { margin-bottom: 8px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; height: 44px;
  border: 1px solid var(--line); border-radius: 2px;
  font: 600 1rem/1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.seg label:active span { transform: scale(.97); }
.seg.is-invalid span { border-color: #c2412d; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.consent input { margin: 3px 0 0; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }
.form__err { margin: 0; font-size: .86rem; color: #b23a26; }
.form .btn { margin-top: 6px; font-size: 1.3rem; }
.form .btn[aria-busy="true"] { pointer-events: none; }
.form .btn[aria-busy="true"] .btn__label { filter: blur(1.5px); opacity: .6; transition: filter 200ms ease, opacity 200ms ease; }

.done {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 32px; color: var(--navy);
  animation: rise 500ms var(--ease-out) both;
}
.done svg { color: var(--sky-ink); margin-bottom: 16px; }
.done h3 { margin: 0 0 10px; font: 700 2.2rem/1 var(--f-cond); text-transform: uppercase; }
.done p { margin: 0; color: var(--muted); max-width: 32ch; }
.done:focus { outline: none; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(0,19,48,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity 240ms ease; }
.modal__box {
  position: relative; width: min(520px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  background: #fff; border-radius: 2px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(8px) scale(.97);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.modal.is-open .modal__scrim { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal.is-closing .modal__scrim, .modal.is-closing .modal__box { transition-duration: 150ms; }
.modal__box .eyebrow { margin-bottom: 10px; }
.modal__box .card__title { margin-bottom: 8px; }
.modal__sub { color: var(--muted); font-size: .95rem; margin: 0 0 6px; }
.modal__x {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--navy);
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.modal__x:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .modal__x:hover { background: var(--sky-20); } }
.modal .done { position: static; padding: 40px 8px 24px; }
body.has-modal { overflow: hidden; }

/* ---------- WhatsApp ---------- */
.wa {
  position: fixed; z-index: 50;
  right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.18) inset;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease;
  animation: wa-in 500ms var(--ease-out) 900ms both;
  -webkit-tap-highlight-color: transparent;
}
@keyframes wa-in { from { opacity: 0; transform: translateY(12px) scale(.9); } }
.wa:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .wa:hover { transform: scale(1.06); box-shadow: 0 14px 34px -10px rgba(0,0,0,.5); } }

/* ---------- footer ---------- */
.ftr { background: var(--midnight); color: rgba(255,255,255,.62); padding: 56px 0 calc(56px + env(safe-area-inset-bottom)); font-size: .82rem; }
.ftr__in { display: grid; grid-template-columns: auto 1fr; gap: 12px 48px; align-items: center; }
.ftr img { width: 220px; grid-row: span 2; }
.ftr__addr { margin: 0; color: #fff; font: 600 1.05rem/1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; }
.ftr__legal { margin: 0; max-width: 78ch; line-height: 1.6; }

/* ---------- scroll reveals (JS adds .js to <html>) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hdr__nav { gap: 22px; }
  .facts { width: 66%; }
  .hero__players { width: 30vw; }
  .facts dd { font-size: 1.15rem; }
}
@media (max-width: 960px) {
  :root { --hdr: 68px; }
  .hdr__nav { display: none; }
  .hdr__in { justify-content: space-between; }
  .hdr__logo img { width: 156px; }

  .intro__grid, .project__grid, .partner__grid, .ohana__grid, .reg__grid, .loc__head { grid-template-columns: 1fr; }
  .amen__body { grid-template-columns: 1fr; }
  .project__media { order: -1; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio figure:first-child { grid-column: 1 / -1; }
  .trio figure:last-child img { aspect-ratio: 16/10; }
  .loc__cols { grid-template-columns: 1fr; }
  .partner__media img { aspect-ratio: 4/3.4; }
}
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero__bg img { object-position: 50% 40%; }
  .hero::after { height: 22%; }
  .hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 62%; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(221,239,250,.9) 0%, rgba(221,239,250,.78) 60%, rgba(221,239,250,0) 100%); }
  .hero .eyebrow { letter-spacing: .14em; font-size: 11px; }
  .hero__copy { padding-top: calc(var(--hdr) + 28px); }
  .hero__l1 { font-size: clamp(2rem, 9.4vw, 3rem); }
  .hero__l2 { font-size: clamp(3.9rem, 20vw, 6rem); }
  .hero__sub { margin: 14px 0 22px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__players { order: 2; position: relative; left: auto; align-self: center; width: min(92%, 440px); margin-top: 8px; }
  .facts { order: 3; }
  .facts { position: relative; right: auto; bottom: auto; width: 100%; grid-template-columns: 1fr 1fr; background: #fff; padding: 8px var(--pad); }
  .facts div { padding: 14px 10px 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts div:nth-child(-n+2) { border-top: 0; }
  .moment { min-height: 0; }
  .moment::before { background: linear-gradient(0deg, rgba(0,19,48,.92) 0%, rgba(0,19,48,.6) 60%, rgba(0,19,48,.25) 100%); }
  .moment__in { padding-top: 220px; padding-bottom: 64px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .ftr__in { grid-template-columns: 1fr; }
  .ftr img { grid-row: auto; width: 190px; }
  .amen__cap { font-size: 1.1rem; padding: 40px 16px 14px; }
  .amen__stage { aspect-ratio: 4/3; }
  .wa { width: 56px; height: 56px; }
}
@media (max-width: 420px) {
  .hdr .btn--sm { padding: 0 14px; font-size: .98rem; }
  .hdr__logo img { width: 136px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .load, .hero__players, .hero__bg img, .wa { animation: fadeonly 300ms ease both; }
  @keyframes fadeonly { from { opacity: 0; } }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .amen__img { transform: none !important; filter: none !important; transition: opacity 200ms ease; }
  .modal__box { transform: none !important; }
  .tabs__ink { transition: none; }
}

/* ---------- inline links to the sister site ---------- */
.xlink {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .xlink:hover { text-decoration-color: currentColor; }
}
