/* ==========================================================================
   Belmont Homes - 2026 redesign
   Typography stays on the brand's Cormorant Garamond so the site still reads
   as Belmont; Poppins carries small UI/meta text where a display serif would
   be hard to read. Both are already self-hosted on this server.
   ========================================================================== */

:root {
  --bone: #f7f5f1;
  --paper: #fffefc;
  --ink: #1b1a18;
  --ink-soft: #55524c;
  --ink-mute: #8b877f;
  --stone: #9a8b76;
  --line: rgba(27, 26, 24, 0.14);
  --line-soft: rgba(27, 26, 24, 0.08);

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Standardised type scale. Small uppercase labels were previously a mix of
     8/10/11px, hard to read on mobile; --fs-label unifies them at a legible
     12px. Body copy is a comfortable 16px+. */
  --fs-label: 0.75rem;    /* 12px — all uppercase labels, eyebrows, meta */
  --fs-micro: 0.6875rem;  /* 11px — brand tagline only */
  --fs-small: 0.875rem;   /* 14px — helper/status text */
  --fs-body: 1rem;        /* 16px — body copy, form inputs (also avoids iOS zoom) */
  --fs-body-lg: 1.125rem; /* 18px — captions, spec values */

  --gut: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1440px;
  --section: clamp(5rem, 11vw, 10rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--stone); color: var(--paper); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* --- shared type ------------------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}

.display {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0;
}

h1.display { font-size: clamp(2.75rem, 7vw, 5.75rem); }
h2.display { font-size: clamp(2.25rem, 5vw, 4rem); }
h3.display { font-size: clamp(1.5rem, 2.4vw, 2.25rem); }

.lede {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.3vw, 2rem);
  line-height: 1.45;
  font-weight: 300;
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 1.4em;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.85;
}

/* --- link with drawn underline ---------------------------------------- */

.link {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 0.35em;
  position: relative;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
}
.link:hover::after { transform: scaleX(0); }

.btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-block;
  padding: 1.15em 2.5em;
  border: 1px solid var(--ink);
  background: none;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: translateY(0); }

/* --- header ------------------------------------------------------------ */

.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* Must sit ABOVE .mnav (z-index 100). z-index on .hdr creates a stacking
     context, so the burger's own z-index cannot escape it - if .hdr were
     below .mnav the open overlay would swallow taps on the close button and
     trap the user in the menu with no way out on a touch device. */
  z-index: 110;
  padding: clamp(1.1rem, 2.2vw, 1.9rem) var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease),
              box-shadow 0.5s var(--ease), color 0.5s var(--ease);
}
.hdr--over { color: var(--paper); }
/* Menu open: the overlay is bone, so force dark text even over a hero,
   otherwise the wordmark and close button vanish into the background. */
.hdr--menu, .hdr--menu.hdr--over { color: var(--ink); background: none; box-shadow: none; }
.hdr--stuck {
  background: rgba(247, 245, 241, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  color: var(--ink);
  padding-block: clamp(0.8rem, 1.4vw, 1.1rem);
}

.brand { display: block; line-height: 1; }
.brand__name {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__sub {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-top: 0.45em;
}

.nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.nav a {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  padding-block: 0.4em;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* burger */
.burger {
  display: none;
  width: 34px; height: 34px;
  border: 0; background: none; padding: 0;
  cursor: pointer; color: inherit;
  position: relative; z-index: 101;
}
.burger i {
  position: absolute; left: 4px; right: 4px; height: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.burger i:nth-child(1) { top: 12px; }
.burger i:nth-child(2) { bottom: 12px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mnav {
  position: fixed; inset: 0;
  background: var(--bone);
  z-index: 100;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 0.35em;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  visibility: hidden;
}
.mnav[data-open="true"] { clip-path: inset(0 0 0 0); visibility: visible; }
.mnav a {
  font-family: var(--display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mnav[data-open="true"] a { opacity: 1; transform: none; }
.mnav[data-open="true"] a:nth-child(1) { transition-delay: 0.14s; }
.mnav[data-open="true"] a:nth-child(2) { transition-delay: 0.2s; }
.mnav[data-open="true"] a:nth-child(3) { transition-delay: 0.26s; }
.mnav[data-open="true"] a:nth-child(4) { transition-delay: 0.32s; }
.mnav__meta {
  margin-top: 2.5rem; text-align: center;
  font-size: 0.75rem; letter-spacing: 0.14em; color: var(--ink-mute);
  opacity: 0; transition: opacity 0.5s var(--ease) 0.4s;
}
.mnav[data-open="true"] .mnav__meta { opacity: 1; }

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: block; }
}

/* --- hero -------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: drift 22s ease-out forwards;
}
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.08) 38%, rgba(0,0,0,0.62) 100%);
}
.hero__body {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 var(--gut) clamp(3.5rem, 8vw, 7rem);
  color: var(--paper);
}
.hero__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.6vw, 6rem);
  line-height: 1.03;
  margin: 0.25em 0 0;
  max-width: 16ch;
}
.hero__scroll {
  position: absolute;
  right: var(--gut); bottom: clamp(3.5rem, 8vw, 7rem);
  writing-mode: vertical-rl;
  font-size: var(--fs-label); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--paper); opacity: 0.75;
  display: flex; align-items: center; gap: 1rem;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 58px; background: currentColor;
  transform-origin: top; animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 860px) { .hero__scroll { display: none; } }

/* page hero (interior pages) */
.phero {
  position: relative;
  min-height: clamp(56svh, 62vh, 78svh);
  display: flex; align-items: flex-end;
  overflow: hidden; background: var(--ink);
}
.phero__media { position: absolute; inset: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.6) 100%);
}
.phero__body {
  position: relative; z-index: 2; width: 100%;
  padding: 0 var(--gut) clamp(2.75rem, 5vw, 4.5rem);
  color: var(--paper);
}
.phero .eyebrow { color: rgba(255,255,255,0.72); }

/* --- sections ---------------------------------------------------------- */

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--paper { background: var(--paper); }

.intro { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; gap: 2rem; } }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- project grid ------------------------------------------------------ */

/* --- collection (completed projects): full-width editorial rows -------- */

.collhero { padding: clamp(8.5rem, 15vw, 13rem) 0 clamp(2.5rem, 6vw, 5rem); }
.collhero__title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.6rem, 7.5vw, 5.6rem); line-height: 1.02;
  letter-spacing: -0.015em; margin: 0.35em 0 0;
}
.collhero__sub { color: var(--ink-soft); max-width: 44ch; margin: 1.6rem 0 0; font-size: var(--fs-body-lg); }

.cols {
  display: flex; flex-direction: column;
  gap: clamp(5rem, 12vw, 11rem);
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 8vw, 7rem);
}
.col {
  display: grid; grid-template-columns: 1.4fr 1fr;
  align-items: center; gap: clamp(2rem, 6vw, 6rem);
}
.col:nth-child(even) .col__media { order: 2; }
@media (max-width: 900px) {
  .col { grid-template-columns: 1fr; gap: 1.75rem; }
  .col:nth-child(even) .col__media { order: 0; }
}

.col__media {
  position: relative; overflow: hidden; display: block;
  aspect-ratio: 3 / 2; background: #e9e5df;
}
.col__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translateY(var(--py, 0px)) scale(var(--z, 1.08));
  transition: transform 1.3s var(--ease); will-change: transform;
}
@media (hover: hover) { .col__media:hover img { --z: 1.14; } }

/* Slow settle-zoom as each row scrolls into view. */
.reveal-ready [data-reveal].col .col__media img { --z: 1.18; }
.reveal-ready [data-reveal].col.is-in .col__media img { --z: 1.08; }

.col__idx {
  font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute);
}
.col__name {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.04;
  letter-spacing: -0.01em; margin: 0.55rem 0 0.5rem;
}
.col__desc { color: var(--ink-soft); max-width: 42ch; margin: 0 0 1.9rem; }
.col__data {
  display: grid; grid-template-columns: repeat(3, auto);
  justify-content: start; gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0 0 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
}
.col__data dt {
  font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 0.4rem;
}
.col__data dd { margin: 0; font-size: var(--fs-body); }
.col__cta { margin-top: 0.2rem; }

.card__meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-top: 1.25rem;
  border-top: 1px solid var(--line-soft); padding-top: 1rem;
}
.card__name { font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.9rem); font-weight: 400; line-height: 1.15; }
.card__place {
  font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); white-space: nowrap;
}

/* --- feature rows (home) ---------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}
.feature + .feature { margin-top: var(--section); }
.feature:nth-child(even) .feature__media { order: 2; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature:nth-child(even) .feature__media { order: 0; }
}
.feature__media { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #e9e5df; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.04); }

/* --- project meta bar -------------------------------------------------- */

.spec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .spec { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (max-width: 460px) { .spec { grid-template-columns: 1fr; } }
.spec__k {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 0.75em;
}
.spec__v { font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.35; margin: 0; color: var(--ink); }

/* --- carousel ---------------------------------------------------------- */

.car { position: relative; }
.car__viewport { overflow: hidden; background: #e9e5df; }
.car__track { display: flex; transition: transform 0.7s var(--ease); will-change: transform; }
.car__slide { flex: 0 0 100%; aspect-ratio: 16 / 10; cursor: zoom-in; }
.car__slide img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .car__slide { aspect-ratio: 4 / 3; } }

.car__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 1.5rem; line-height: 1;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), opacity 0.35s var(--ease);
  z-index: 3;
}
.car__btn:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.car__btn:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }
.car__btn--prev { left: clamp(0.6rem, 1.6vw, 1.4rem); }
.car__btn--next { right: clamp(0.6rem, 1.6vw, 1.4rem); }
@media (max-width: 700px) { .car__btn { width: 44px; height: 44px; font-size: 1.25rem; } }

.car__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1.1rem;
}
.car__count {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.car__cap {
  font-family: var(--display); font-size: var(--fs-body-lg); color: var(--ink-soft);
}
.car__hint { font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }

/* --- gallery ----------------------------------------------------------- */

.gal { display: grid; gap: clamp(0.75rem, 1.6vw, 1.5rem); }
.gal__full { grid-column: 1 / -1; }
.gal__pair { display: grid; grid-template-columns: 1fr 1fr; gap: inherit; }
@media (max-width: 700px) { .gal__pair { grid-template-columns: 1fr; } }
.gal__offset { display: grid; grid-template-columns: 1fr 1fr; gap: inherit; align-items: center; }
.gal__offset > :first-child { transform: translateY(clamp(-1.5rem, -3vw, -3rem)); }
@media (max-width: 700px) {
  .gal__offset { grid-template-columns: 1fr; }
  .gal__offset > :first-child { transform: none; }
}

.shot { position: relative; overflow: hidden; background: #e9e5df; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot--wide { aspect-ratio: 16 / 9; }
.shot--tall { aspect-ratio: 4 / 5; }
.shot--sq { aspect-ratio: 1 / 1; }

/* --- forthcoming entries ---------------------------------------------- */

.fc + .fc { margin-top: var(--section); }
.fc__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #e9e5df; }
.fc__media img { width: 100%; height: 100%; object-fit: cover; }
.fc__body { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 860px) { .fc__body { grid-template-columns: 1fr; gap: 1rem; } }
.fc__price {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone);
  margin-top: 1.5rem;
}

/* --- contact ----------------------------------------------------------- */

.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 7vw, 7rem); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 3rem; } }

.dl { margin: 0; }
.dl dt {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.6em;
}
.dl dd {
  margin: 0 0 2.25rem;
  font-family: var(--display); font-size: clamp(1.1rem, 1.5vw, 1.375rem);
  line-height: 1.5; color: var(--ink);
}
.dl a:hover { color: var(--stone); }

.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field label {
  display: block;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.7em;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--sans); font-size: var(--fs-body); font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 0.65em 0;
  transition: border-color 0.4s var(--ease);
}
.field textarea { resize: vertical; min-height: 6.5em; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--stone); outline-offset: 4px; }

/* Honeypot. Deliberately NOT display:none - some bots skip hidden inputs, and
   this needs to look real to them while staying unreachable for people. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__note { font-size: var(--fs-small); color: var(--ink-mute); margin: 0; }
.cf-turnstile { margin-bottom: 0.5rem; }
.form__msg { font-size: var(--fs-small); margin: 0; min-height: 1.4em; }
.form__msg[data-state="ok"] { color: #3f6b4f; }
.form__msg[data-state="err"] { color: #8c3a34; }

/* --- cta band ---------------------------------------------------------- */

.cta { background: var(--ink); color: var(--paper); text-align: center; }
.cta .display { color: var(--paper); }
.cta .btn { border-color: rgba(255,255,255,0.5); color: var(--paper); }
.cta .btn::before { background: var(--paper); }
.cta .btn:hover { color: var(--ink); }

/* --- footer ------------------------------------------------------------ */

.ftr { background: var(--ink); color: rgba(255,255,255,0.66); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 780px) { .ftr__top { grid-template-columns: 1fr; gap: 2rem; } }
.ftr .brand__name { color: var(--paper); }
.ftr h4 {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin: 0 0 1.25em;
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7em; }
.ftr a:hover { color: var(--paper); }
.ftr__base {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: var(--fs-label); letter-spacing: 0.1em; color: rgba(255,255,255,0.42);
}

/* --- next project ------------------------------------------------------ */

.next { display: block; text-align: center; padding-block: var(--section); border-top: 1px solid var(--line); }
.next:hover .next__name { color: var(--stone); }
.next__name { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; margin: 0.2em 0 0; transition: color 0.4s var(--ease); }

/* --- lightbox ---------------------------------------------------------- */

.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16, 15, 14, 0.96);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease);
  padding: clamp(1rem, 4vw, 3rem);
}
.lb[data-open="true"] { opacity: 1; pointer-events: auto; }
.lb img { max-width: 100%; max-height: 88svh; object-fit: contain; }
.lb__close, .lb__nav {
  position: absolute; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,0.75); padding: 1rem;
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.lb__close:hover, .lb__nav:hover { color: #fff; }
.lb__close { top: clamp(0.5rem, 2vw, 1.5rem); right: clamp(0.5rem, 2vw, 1.5rem); }
.lb__nav { top: 50%; transform: translateY(-50%); font-size: 1.75rem; }
.lb__nav--prev { left: clamp(0.25rem, 2vw, 1.5rem); }
.lb__nav--next { right: clamp(0.25rem, 2vw, 1.5rem); }
.lb__count {
  position: absolute; bottom: clamp(0.75rem, 3vw, 2rem); left: 50%; transform: translateX(-50%);
  font-size: var(--fs-label); letter-spacing: 0.2em; color: rgba(255,255,255,0.55);
}

/* --- scroll reveal ----------------------------------------------------- */

/* Content is visible by DEFAULT. The hidden-then-reveal state only applies
   once .reveal-ready is set (by an inline script in <head>), so if JavaScript
   is off or site.js fails to load the page still renders fully rather than as
   a blank column. The inline script also arms a failsafe timer. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  /* Keep a gentle opacity fade (no movement) even when motion is reduced, so
     the reveal still reads rather than snapping in. Drop all translate/zoom. */
  .reveal-ready [data-reveal] { transform: none !important; transition: opacity 0.8s ease !important; }
  .col__media img, [data-parallax] img { transform: none !important; }
  .hero__media img { animation: none; }
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 1em 1.5em;
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.skip:focus { left: 0; }
