/* ============================================================
   THE GATEWAY — Bayers Road, Halifax
   ============================================================ */

:root {
  --ink: #171513;          /* near-black warm charcoal */
  --ink-soft: #2b2724;
  --cream: #f4efe6;        /* warm limestone cream */
  --cream-dim: #e9e2d4;
  --brick: #a8563a;        /* clay brick */
  --brick-deep: #8c4530;
  --gold: #c9a06c;         /* dusk light */
  --line: rgba(23, 21, 19, .14);
  --line-light: rgba(244, 239, 230, .16);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.lock { overflow: hidden; }

img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; }

h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -.01em; }
h2 em { font-style: italic; color: var(--brick); }
.section--dark h2 em, .reg h2 em, .amen h2 em { color: var(--gold); }

::selection { background: var(--brick); color: var(--cream); }

/* Grain overlay for richness */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 9999;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 3%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-3%, -3%); }
  80% { transform: translate(2%, 2%); }
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease) .2s, visibility .8s .2s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__arch {
  position: absolute;
  width: min(38vw, 240px);
  aspect-ratio: 5 / 8;
  border: 1px solid var(--gold);
  border-radius: 999px 999px 0 0;
  opacity: .5;
  animation: archIn 1.6s var(--ease) both;
}
@keyframes archIn {
  from { transform: scale(.7); opacity: 0; }
  to { transform: scale(1); opacity: .5; }
}
.preloader__word {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  color: var(--cream);
  letter-spacing: .3em;
  text-transform: uppercase;
  animation: wordIn 1.4s var(--ease) .3s both;
}
@keyframes wordIn {
  from { opacity: 0; letter-spacing: .55em; }
  to { opacity: 1; letter-spacing: .3em; }
}

/* ============ PROGRESS ============ */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 1002;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brick), var(--gold));
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top, 0px) clamp(1.2rem, 4vw, 3rem) 0;
  transition: background .5s, box-shadow .5s, transform .5s var(--ease);
  color: var(--cream);
}
.nav.scrolled {
  background: var(--ink);
  box-shadow: 0 1px 0 var(--line-light);
}
.nav.hidden { transform: translateY(-100%); }
.nav__brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: inherit; text-decoration: none;
  letter-spacing: .02em;
}
.nav__mark { width: 26px; height: 26px; color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__links a {
  color: inherit; text-decoration: none;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: .85;
  position: relative;
  padding: .3rem 0;
  transition: opacity .3s;
}
.nav__links a:hover { opacity: 1; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: .55rem 1.3rem !important;
  border-radius: 999px;
  transition: background .3s, color .3s !important;
}
.nav__cta:hover { background: var(--gold); color: var(--ink) !important; }
.nav__burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav__burger span {
  display: block; width: 26px; height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--ease), opacity .3s;
}
.nav__burger.open span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger.open span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ============ MOBILE MENU ============ */
.menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink);
  color: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 2rem;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.menu.open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: .4rem; }
.menu__links a {
  color: inherit; text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3rem);
  padding: .35rem 0;
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.menu.open .menu__links a { opacity: 1; transform: none; }
.menu.open .menu__links a:nth-child(1) { transition-delay: .15s; }
.menu.open .menu__links a:nth-child(2) { transition-delay: .21s; }
.menu.open .menu__links a:nth-child(3) { transition-delay: .27s; }
.menu.open .menu__links a:nth-child(4) { transition-delay: .33s; }
.menu.open .menu__links a:nth-child(5) { transition-delay: .39s; }
.menu.open .menu__links a:nth-child(6) { transition-delay: .45s; }
.menu__links em {
  font-family: var(--sans); font-style: normal;
  font-size: .75rem; color: var(--gold); letter-spacing: .1em;
}
.menu__foot {
  position: absolute; bottom: 2rem; left: 2rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .5;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--cream);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center;
  filter: brightness(.8) saturate(1.05);
  animation: kenburns 22s var(--ease) both;
}
@keyframes kenburns {
  from { transform: scale(1.14); }
  to { transform: scale(1.02); }
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 52% at 50% 46%, rgba(23,21,19,.62), rgba(23,21,19,0) 74%),
    linear-gradient(180deg, rgba(23,21,19,.5) 0%, rgba(23,21,19,.16) 30%, rgba(23,21,19,.16) 55%, rgba(23,21,19,.82) 100%);
}
@media (max-width: 820px) {
  .hero__veil {
    background:
      radial-gradient(ellipse 120% 56% at 50% 46%, rgba(23,21,19,.72), rgba(23,21,19,.1) 80%),
      linear-gradient(180deg, rgba(23,21,19,.55) 0%, rgba(23,21,19,.24) 30%, rgba(23,21,19,.24) 55%, rgba(23,21,19,.85) 100%);
  }
  .hero__media img { filter: brightness(.72) saturate(1.05); }
}
.hero__content {
  position: relative;
  padding: 0 clamp(1.2rem, 5vw, 4rem);
  margin-bottom: auto;
  margin-top: auto;
  text-align: center;
}
.hero__eyebrow {
  font-size: clamp(.72rem, 1.4vw, .85rem);
  letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 2px rgba(23, 21, 19, .7), 0 2px 14px rgba(23, 21, 19, .6);
}
.hero__title {
  font-size: clamp(3.4rem, 12.5vw, 11rem);
  font-weight: 300;
  letter-spacing: .01em;
  line-height: .95;
  text-wrap: balance;
}
.hero__title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(.55em) rotate(4deg);
  animation: chIn 1s var(--ease) forwards;
  animation-delay: calc(1s + var(--i) * .045s);
}
@keyframes chIn {
  to { opacity: 1; transform: none; }
}
.hero__sub {
  margin-top: 1.4rem;
  font-size: clamp(.95rem, 2vw, 1.15rem);
  font-weight: 300;
  opacity: .92;
  text-shadow: 0 1px 18px rgba(23, 21, 19, .65);
}
.hero__title {
  text-shadow:
    0 1px 3px rgba(23, 21, 19, .5),
    0 4px 18px rgba(23, 21, 19, .55),
    0 12px 60px rgba(23, 21, 19, .65);
}
.reveal-line { overflow: hidden; }
.reveal-line span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease) 1.7s forwards;
}
.hero__eyebrow.reveal-line span { animation-delay: .8s; }
@keyframes lineUp { to { transform: none; } }
.hero__foot {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 clamp(1.2rem, 5vw, 4rem) 2rem;
  animation: fadeIn 1.2s ease 2.4s both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero__scroll {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  color: inherit; text-decoration: none;
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  opacity: .8;
}
.hero__scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(var(--cream), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollDrip 2s var(--ease) infinite;
}
@keyframes scrollDrip {
  to { top: 100%; }
}
.hero__coming {
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  opacity: .8;
  text-align: right;
}

/* ============ SECTIONS ============ */
.section { padding: clamp(5rem, 11vw, 9.5rem) clamp(1.2rem, 5vw, 4rem); }
.section--dark {
  background: var(--ink);
  color: var(--cream);
}
.section__index {
  font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--brick);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section--dark .section__index, .section__index--light { color: var(--gold); }

/* ============ VISION ============ */
.vision__statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 4.4vw, 3.6rem);
  line-height: 1.22;
  letter-spacing: -.005em;
  max-width: 20ch;
  max-width: 26ch;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.reveal-words .w {
  display: inline-block;
  opacity: .12;
  transition: opacity .5s ease;
}
.reveal-words .w.on { opacity: 1; }
.vision__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.vision__text p { max-width: 54ch; font-weight: 300; font-size: 1.06rem; }
.vision__text p + p { margin-top: 1.2rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 1.4rem 1.2rem 1.2rem;
}
.stat dt {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  opacity: .55;
  margin-bottom: .5rem;
}
.stat dd {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1;
  color: var(--brick-deep);
}

/* ============ ARCHITECTURE ============ */
.arch__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.arch__figure { overflow: hidden; }
.arch__figure--tall {
  aspect-ratio: 5 / 7;
}
.arch__figure img { width: 100%; height: 100%; object-fit: cover; }
.arch__figure--tall { border-radius: 999px 999px 0 0; } /* the arch motif */
.arch__copy h2 { margin-bottom: 1.6rem; }
.arch__copy p {
  font-weight: 300;
  opacity: .88;
  max-width: 50ch;
}
.arch__copy p + p { margin-top: 1.1rem; }
.arch__materials {
  list-style: none;
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 2rem;
}
.arch__materials li {
  display: flex; align-items: center; gap: .8rem;
  font-size: .92rem; letter-spacing: .02em;
}
.arch__materials span {
  width: 34px; height: 18px;
  border-radius: 99px 99px 0 0;
  flex: 0 0 auto;
}
.arch__materials li:nth-child(1) span { background: var(--brick); }
.arch__materials li:nth-child(2) span { background: var(--cream-dim); }
.arch__materials li:nth-child(3) span { background: #46464c; }
.arch__materials li:nth-child(4) span { background: #5c6b4f; }
.arch__band { margin-top: clamp(3rem, 7vw, 6rem); }
.arch__wide {
  overflow: hidden;
  position: relative;
}
.arch__wide img {
  width: 100%;
  height: clamp(320px, 60vh, 640px);
  object-fit: cover;
  will-change: transform;
}
.arch__wide figcaption {
  position: absolute; bottom: 1rem; right: 1.4rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream);
  opacity: .8;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* ============ RESIDENCES ============ */
.res__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.res__head p { font-weight: 300; opacity: .85; max-width: 44ch; }
.res__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.res-card {
  background: var(--cream);
  padding: 2rem 1.6rem 1.6rem;
  display: flex; flex-direction: column;
  gap: 1rem;
  min-height: 300px;
  transition: background .45s var(--ease), color .45s var(--ease), transform .45s var(--ease);
}
.res-card:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-6px);
}
.res-card header {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem;
}
.res-card h3 { font-size: 1.45rem; }
.res-card__n {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brick);
  transition: color .45s;
}
.res-card:hover .res-card__n { color: var(--gold); }
.res-card p { font-size: .95rem; font-weight: 300; opacity: .82; }
.res-card footer {
  margin-top: auto;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  opacity: .55;
  border-top: 1px solid currentColor;
  padding-top: .9rem;
}
.res-card--ph { background: var(--ink); color: var(--cream); }
.res-card--ph .res-card__n { color: var(--gold); }
.res-card--ph:hover { background: var(--brick-deep); }

/* ============ AMENITIES ============ */
.amen {
  position: relative;
  margin-top: clamp(4rem, 9vw, 7.5rem);
  overflow: hidden;
  color: var(--cream);
  border-radius: 2px;
}
.amen__bg { position: absolute; inset: 0; }
.amen__bg img {
  width: 100%; height: 115%;
  object-fit: cover;
  will-change: transform;
}
.amen__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(23,21,19,.9) 20%, rgba(23,21,19,.55) 65%, rgba(23,21,19,.35));
}
.amen__inner {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.6rem, 5vw, 4.5rem);
  max-width: 720px;
}
.amen__inner h2 { margin-bottom: 1.4rem; }
.amen__inner > p { font-weight: 300; opacity: .9; max-width: 52ch; }
.amen__list {
  list-style: none;
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .95rem 2.4rem;
}
.amen__list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: .97rem;
}
.amen__list li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 14px; height: 8px;
  border: 1px solid var(--gold);
  border-bottom: 0;
  border-radius: 99px 99px 0 0;
}
.amen__note {
  margin-top: 2.4rem;
  font-size: .74rem; letter-spacing: .06em;
  opacity: .55;
}

/* ============ NEIGHBOURHOOD ============ */
.hood__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hood__head p { font-weight: 300; opacity: .85; max-width: 46ch; }
.hood__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hood__img { overflow: hidden; }
.hood__img img { width: 100%; height: 100%; object-fit: cover; }
.hood__list { list-style: none; display: flex; flex-direction: column; }
.hood__list li {
  display: flex; align-items: baseline; gap: 1.6rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-light);
}
.hood__list li:first-child { border-top: 1px solid var(--line-light); }
.hood__t {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
  flex: 0 0 5.2rem;
}
.hood__list strong { font-weight: 500; letter-spacing: .01em; }
.hood__list p { font-size: .88rem; font-weight: 300; opacity: .6; }

/* ============ GALLERY ============ */
.gallery h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(160px, 24vw, 300px);
  gap: clamp(.6rem, 1.4vw, 1.2rem);
  grid-auto-flow: dense;
}
.g-item {
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
.g-item--tall { grid-row: span 2; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.g-item:hover img { transform: scale(1.06); }
.g-item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(23,21,19,0);
  transition: background .5s;
}
.g-item:hover::after { background: rgba(23,21,19,.14); }
.gallery__note {
  margin-top: 1.6rem;
  font-size: .74rem; letter-spacing: .06em;
  opacity: .55;
}

/* ============ REGISTER ============ */
.reg {
  position: relative;
  overflow: hidden;
  color: var(--cream);
}
.reg__bg { position: absolute; inset: 0; }
.reg__bg img {
  width: 100%; height: 115%;
  object-fit: cover;
  will-change: transform;
}
.reg__bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(23, 21, 19, .87);
}
.reg__inner {
  position: relative;
  padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 4rem);
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.reg__lead {
  margin: 1.4rem auto 3rem;
  font-weight: 300;
  opacity: .88;
  max-width: 44ch;
}
.reg__form { text-align: left; }
.reg__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.field { display: flex; flex-direction: column; gap: .45rem; }
.field span {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  opacity: .7;
}
.field input, .field select {
  background: rgba(244, 239, 230, .06);
  border: 1px solid var(--line-light);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .98rem;
  padding: .85rem 1rem;
  border-radius: 2px;
  transition: border-color .3s, background .3s;
  width: 100%;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%23c9a06c'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field select option { color: var(--ink); }
.field input::placeholder { color: rgba(244, 239, 230, .3); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(244, 239, 230, .1);
}
.reg__btn {
  margin-top: 1.4rem;
  width: 100%;
  background: var(--gold);
  color: var(--ink);
  border: 0;
  font-family: var(--sans);
  font-size: .85rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  padding: 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.reg__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201, 160, 108, .25); }
.reg__btn:active { transform: translateY(0); }
.reg__ok { margin-top: 1.2rem; text-align: center; color: var(--gold); font-size: .9rem; }

/* ============ FOOTER ============ */
.footer {
  background: #100e0d;
  color: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.2rem, 5vw, 4rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-light);
}
.footer__brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--serif); font-size: 1.3rem;
}
.footer__brand svg { width: 24px; height: 24px; color: var(--gold); }
.footer__addr { font-size: .9rem; font-weight: 300; opacity: .7; line-height: 1.7; }
.footer__links { display: flex; flex-direction: column; gap: .55rem; }
.footer__links a {
  color: inherit; text-decoration: none;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: .7;
  transition: opacity .3s, color .3s;
}
.footer__links a:hover { opacity: 1; color: var(--gold); }
.footer__base {
  padding-top: 1.6rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.footer__base p { font-size: .72rem; opacity: .45; font-weight: 300; }
.footer__base a { color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: color .3s; }
.footer__base a:hover { color: var(--gold); }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(16, 14, 13, .94);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden;
  transition: opacity .45s, visibility .45s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transform: scale(.96);
  transition: transform .45s var(--ease);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.lightbox.open img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 1rem; right: 1.4rem;
  background: none; border: 0;
  color: var(--cream);
  font-size: 2.6rem; font-weight: 200;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
  transition: color .3s, transform .3s;
}
.lightbox__close:hover { color: var(--gold); transform: rotate(90deg); }

/* ============ SCROLL REVEALS ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.reveal.on { opacity: 1; transform: none; }
.reveal-img {
  clip-path: inset(8% 6% 8% 6%);
  opacity: 0;
  transition: clip-path 1.2s var(--ease), opacity 1.2s var(--ease);
}
.reveal-img.on { clip-path: inset(0 0 0 0); opacity: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .res__cards { grid-template-columns: 1fr 1fr; }
  .vision__grid { grid-template-columns: 1fr; }
  .stats { max-width: 560px; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .arch__row { grid-template-columns: 1fr; }
  .arch__figure--tall { max-width: 420px; margin: 0 auto; }
  .res__head, .hood__head { grid-template-columns: 1fr; align-items: start; }
  .hood__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(140px, 28vw, 240px); }
  .amen__list { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer__links { flex-direction: row; flex-wrap: wrap; gap: 1.2rem; }
}
@media (max-width: 560px) {
  .res__cards { grid-template-columns: 1fr; }
  .res-card { min-height: 0; }
  .reg__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__coming { display: none; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .g-item--tall { grid-row: auto; }
  .g-item img { height: auto; }
  .g-item--tall img { max-height: 70vh; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-img, .reveal-words .w { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero__title .ch { opacity: 1; transform: none; }
  .reveal-line span { transform: none; }
  body::after { display: none; }
}
