/* ==========================================================================
   components.css  —  Reusable UI blocks
   --------------------------------------------------------------------------
   Self-contained, page-agnostic pieces: buttons, hero, cards, stats,
   split feature, quote, gallery grid, lightbox, forms, CTA band.
   Each block is grouped and commented so it can be lifted in isolation.
   ========================================================================== */

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;   /* centre label horizontally when the button stretches */
  text-align: center;        /* centre wrapped lines too */
  gap: 0.7em;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.05em 2em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease);
}
/* Deep bronze (not light brass) so white label clears AA contrast (~6:1) */
.btn--primary { background: var(--accent-ink); color: #fff; }
.btn--primary:hover { background: var(--color-forest-800); color: #fff; }
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--text-on-dark);
}
.btn--ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.8); }
.btn--dark { background: var(--color-forest-800); color: #fff; }
.btn--dark:hover { background: var(--color-forest-700); }
/* arrow drifts forward on hover — a small, felt response */
.btn__arrow { font-size: 1.05em; line-height: 1; transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--text-on-dark);
  background: var(--color-forest-900);
  overflow: hidden;            /* clip the Ken Burns scale — no image bleed */
}
.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Slow Ken Burns — imperceptible drift that makes the still feel alive */
.hero__media img {
  transform: scale(1.04);
  animation: kenburns 26s var(--ease-in-out) infinite alternate;
  transform-origin: 60% 40%;
}
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}
/* Layered light: directional pooling + grounding gradient + vignette */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 70% 22%, rgba(220, 196, 150, 0.18) 0%, rgba(15, 38, 28, 0) 45%),
    linear-gradient(180deg, rgba(11,28,21,0.42) 0%, rgba(11,28,21,0.08) 32%, rgba(11,28,21,0.92) 100%),
    radial-gradient(140% 120% at 50% 50%, rgba(11,28,21,0) 55%, rgba(11,28,21,0.55) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-7);
  padding-top: calc(var(--header-h) + var(--space-4));
  max-width: 940px;
}
.hero__title {
  color: #fff;
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-block: var(--space-4);
  max-width: 16ch;
}
.hero__title em { color: var(--color-sage-300); }
.hero p { color: rgba(255,255,255,0.85); font-size: var(--fs-lead); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

/* Scroll cue — wordless. A thin line that breathes; no "SCROLL" label. */
.hero__cue {
  position: absolute;
  left: 50%; bottom: var(--space-4);
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 56px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}
.hero__cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-cream-50);
  animation: cue-drift 2.6s var(--ease-in-out) infinite;
}
@keyframes cue-drift {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* Compact page banner (interior pages) */
.page-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  color: var(--text-on-dark);
  background: var(--color-forest-800);
  overflow: hidden;            /* clip the Ken Burns scale — no image bleed */
}
.page-hero__media, .page-hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.page-hero__media img {
  transform: scale(1.03);
  animation: kenburns 30s var(--ease-in-out) infinite alternate;
}
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 72% 25%, rgba(220, 196, 150, 0.14) 0%, rgba(15, 38, 28, 0) 48%),
    linear-gradient(180deg, rgba(11,28,21,0.30), rgba(11,28,21,0.85)),
    radial-gradient(140% 130% at 50% 45%, rgba(11,28,21,0) 58%, rgba(11,28,21,0.5) 100%);
}
.page-hero__inner {
  position: relative; z-index: 2;
  padding-block: var(--space-6) var(--space-5);
  padding-top: calc(var(--header-h) + var(--space-4));
}
.page-hero h1 { color: #fff; font-size: var(--fs-h1); margin-top: var(--space-2); max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,0.82); margin-top: var(--space-2); }

/* Breadcrumb */
.breadcrumb { font-size: var(--fs-small); color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }

/* ---- Feature row (editorial overlap) -------------------------------- */
/* Not a 50/50 SaaS split. A large image, with the copy on a panel that
   overlaps its inner edge — the panel sits ON the photograph, so the two
   layers read as depth. The image carries an index + caption rail. */
.split {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}
/* media column accepts either .split__media or a bare .masterplan-figure */
.split__media,
.split > .masterplan-figure {
  position: relative;
  grid-row: 1;
  grid-column: 1 / 8;
}
.split--reverse .split__media,
.split--reverse > .masterplan-figure { grid-column: 6 / 13; }
.split__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 80px -34px rgba(11, 28, 21, 0.5);
}

.split__body {
  position: relative;
  grid-row: 1;
  grid-column: 7 / 13;
  z-index: 2;
  background: var(--color-cream-50);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.4vw, 3.25rem);
  box-shadow: var(--shadow-md);
}
.split--reverse .split__body { grid-column: 1 / 7; }
/* a brass hairline that pins the panel to the image edge */
.split__body::before {
  content: "";
  position: absolute;
  top: clamp(1.75rem, 3.4vw, 3.25rem);
  left: 0;
  width: 3px; height: 2.2em;
  background: var(--accent);
  border-radius: 3px;
}
.split--reverse .split__body::before { left: auto; right: 0; }

.split__body .eyebrow { margin-bottom: var(--space-2); }
.split__body h2 { margin-bottom: var(--space-3); }
.split__body p + p { margin-top: var(--space-2); }
.split__body .btn { margin-top: var(--space-4); }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split__media,
  .split--reverse .split__media,
  .split > .masterplan-figure,
  .split--reverse > .masterplan-figure { grid-row: 1; grid-column: 1; }
  .split__media img { aspect-ratio: 3 / 2; }
  .split__body,
  .split--reverse .split__body {
    grid-row: 2;
    grid-column: 1;
    margin: calc(var(--space-5) * -1) var(--space-3) 0;   /* overlap kept on mobile */
  }
}

/* ---- Cards ----------------------------------------------------------- */
.card {
  background: var(--color-white);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
  height: 100%;
}
/* No herd "lift". Just a quiet deepening and a slow image breath. */
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-soft); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out-expo); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--space-3); }
.card__body h3 { margin-bottom: var(--space-1); }
.card__body p { font-size: var(--fs-small); color: var(--text-muted); }

/* Icon/feature card (no image) */
.feature {
  padding: var(--space-4);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  height: 100%;
}
.feature__num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-2);
}
.feature h3 { margin-bottom: var(--space-1); }
.feature p { font-size: var(--fs-small); color: var(--text-muted); }

/* ---- Stats band ------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); text-align: center; }
.stat { min-width: 0; }   /* let grid cells shrink instead of overflowing */
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(2.7rem, 5.4vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--accent-on-dark);   /* luminous gold on the dark band */
  line-height: 0.92;
  margin-bottom: var(--space-1);
}
.stat__label { font-size: var(--fs-small); letter-spacing: 0.04em; color: var(--text-muted); margin-top: var(--space-1); }
.section--dark .stat__label { color: var(--color-sage-300); }
@media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-4); } }
@media (max-width: 360px) { .stats { grid-template-columns: 1fr; } }

/* ---- Pull quote ------------------------------------------------------ */
.quote { max-width: 900px; margin-inline: auto; text-align: center; }
.quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  font-style: italic;
  color: var(--text-on-dark);
}
.quote cite {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-sage-300);
}

/* ==========================================================================
   Editorial gallery  —  chaptered, asymmetric mosaic
   --------------------------------------------------------------------------
   Each "chapter" leads with a serif intro, then a dense grid where a few
   feature tiles break the rhythm. Far from a uniform thumbnail wall.
   ========================================================================== */
.gallery-chapter + .gallery-chapter { margin-top: var(--space-7); }
.gallery-chapter__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-soft);
}
.gallery-chapter__head .eyebrow { margin-bottom: var(--space-1); }
.gallery-chapter__head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.gallery-chapter__count {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-muted);
  white-space: nowrap;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 230px);
  grid-auto-flow: dense;
  gap: 10px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: zoom-in;
  background: var(--color-forest-900);
}
.gallery-item--feature { grid-column: span 2; grid-row: span 2; }
.gallery-item--wide    { grid-column: span 2; }
.gallery-item--tall    { grid-row: span 2; }

/* two large tiles, side by side — for short chapters */
.gallery-mosaic--duo {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(260px, 32vw, 440px);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out-expo);
}
.gallery-item:hover img { transform: scale(1.06); }

/* gentle ring on hover — lifts the tile without a herd "pop" */
.gallery-item::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0);
  background: linear-gradient(transparent 55%, rgba(11,28,21,0.55));
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
  z-index: 1;
  pointer-events: none;
}
.gallery-item:hover::before { opacity: 1; }

/* zoom affordance — a quiet corner cue that invites the click */
.gallery-item::after {
  content: "\2197";                 /* ↗ */
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(244, 239, 228, 0.9);
  color: var(--color-forest-800);
  font-size: 1rem;
  transform: translateY(-6px);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  z-index: 2;
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; transform: translateY(0); }

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: var(--space-4) var(--space-3) var(--space-3);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption { opacity: 1; transform: translateY(0); }
.gallery-item.is-hidden { display: none; }

@media (max-width: 880px) {
  .gallery-mosaic { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 38vw, 200px); }
  .gallery-item--feature { grid-column: span 2; grid-row: span 2; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-chapter__head { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
}

/* ---- Lightbox -------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 16, 0.94);
  padding: var(--gutter);
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 92vw; max-height: 84vh; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.lightbox__caption { position: absolute; bottom: var(--space-3); color: var(--color-sage-300); font-size: var(--fs-small); }
.lightbox__btn {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,0.22); }
.lightbox__close { top: var(--space-3); right: var(--space-3); }
.lightbox__prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-3); top: 50%; transform: translateY(-50%); }

/* ---- Forms ----------------------------------------------------------- */
.form { display: grid; gap: var(--space-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.field { display: grid; gap: 0.4em; }
.field label { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.03em; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  padding: 0.85em 1em;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--text-base);
  width: 100%;
  transition: border-color var(--dur) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---- CTA band -------------------------------------------------------- */
.cta-band {
  position: relative;
  text-align: center;
  color: var(--text-on-dark);
  background: var(--color-forest-800);
  overflow: hidden;
}
.cta-band__media, .cta-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after { content: ""; position: absolute; inset: 0; background: rgba(18,42,32,0.8); }
.cta-band__inner { position: relative; z-index: 2; max-width: 640px; margin-inline: auto; }
.cta-band h2 { color: #fff; margin-bottom: var(--space-3); }
.cta-band p { color: rgba(255,255,255,0.85); margin-inline: auto; margin-bottom: var(--space-4); }

/* ==========================================================================
   Mosaic grid  (inspiration: "Peace in Simplicity" moodboard)
   --------------------------------------------------------------------------
   Tidy grid of equal square image tiles with one solid colour STATEMENT
   tile carrying a right-aligned serif line. Thin gaps, no rounded corners
   on the inner tiles — kept faithful to the reference layout.
   ========================================================================== */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: var(--radius-lg);
  overflow: hidden;            /* clip the outer corners only */
}
.mosaic__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.mosaic__cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.mosaic__cell:hover img { transform: scale(1.05); }

/* caption that fades in on hover */
.mosaic__cell figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-3) var(--space-2) var(--space-2);
  font-size: var(--fs-small);
  color: #fff;
  background: linear-gradient(transparent, rgba(18,42,32,0.85));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.mosaic__cell:hover figcaption { opacity: 1; }

/* the solid statement tile */
.mosaic__statement {
  background: var(--color-forest-800);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  padding: var(--space-4);
}
.mosaic__statement .eyebrow { color: var(--accent-on-dark); margin-bottom: var(--space-1); }
.mosaic__statement p {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Framed band  (inspiration: image-inspirationjpg.jpg)
   --------------------------------------------------------------------------
   The SAME image appears twice. The bottom layer fills the section; the top
   layer is inset (smaller width/height), bordered like a matte frame, and
   carries the message. The gap between them shows the image behind — a
   picture-in-picture that reads as crafted depth.
   ========================================================================== */
.framed-band {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 92vh;
  padding: clamp(2.5rem, 8vh, 7rem) var(--gutter);
  background: var(--color-forest-950);
  color: var(--text-on-dark);
}
/* Bottom layer — full-bleed image, softened so the frame sits forward */
.framed-band__bg,
.framed-band__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.framed-band__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 50% 50%, rgba(11,28,21,0.35) 0%, rgba(11,28,21,0.78) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Top layer — same image, inset + bordered (the "matte frame") */
.framed-band__frame {
  position: relative;
  z-index: 2;
  width: min(1060px, 100%);
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: clamp(8px, 1vw, 14px);          /* the matte reveal */
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.framed-band__frame > img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
}

/* Message overlaid on the inset image, lower-left like the reference */
.framed-band__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  background: linear-gradient(transparent, rgba(11,28,21,0.85));
}
.framed-band__content .eyebrow { color: var(--accent-on-dark); margin-bottom: var(--space-3); }
.framed-band__line {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #fff;
  margin: 0;
}
.framed-band__line em { font-family: var(--font-serif); color: var(--accent-on-dark); font-weight: 500; font-style: italic; letter-spacing: 0; }

@media (max-width: 560px) {
  .framed-band { min-height: 78vh; }
  .framed-band__frame { aspect-ratio: 4 / 5; }
}

/* Eyebrows/links sitting on dark backgrounds need the lighter brass */
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow { color: var(--accent-on-dark); }

/* ---- FAQ (GEO) ------------------------------------------------------- */
.faq { border-top: 1px solid var(--border-soft); }
.faq__item { border-bottom: 1px solid var(--border-soft); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-lead);
  color: var(--color-forest-800);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  color: var(--accent-ink);
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1;
  flex: none;
}
.faq__item[open] summary::after { content: "\2013"; }   /* – */
.faq__a { padding-bottom: var(--space-3); color: var(--text-muted); max-width: 64ch; }

/* ---- Misc helpers ---------------------------------------------------- */
.rule { width: 64px; height: 1px; background: var(--accent); opacity: 0.7; border: 0; margin-block: var(--space-3); }
.section__head--center .rule { margin-inline: auto; }
/* Fill-me-in marker: a subtle highlight that works on light AND dark and
   never harms text contrast (it inherits the surrounding text colour). */
.placeholder {
  font-style: italic;
  background: rgba(176, 141, 87, 0.16);
  box-shadow: 0 0 0 2px rgba(176, 141, 87, 0.16);
  border-radius: 2px;
}
.mt-4 { margin-top: var(--space-4); }

/* ==========================================================================
   Choreographed reveal system  (toggled by main.js)
   --------------------------------------------------------------------------
   Elements enter slowly and settle. Siblings stagger automatically: main.js
   sets --reveal-i on each element, and the delay is derived from it. Long,
   expo-style easing so nothing slides or bounces — it unfolds.
   ========================================================================== */
[data-reveal] {
  --reveal-i: 0;
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo),
    filter var(--dur-slow) var(--ease-out-expo),
    clip-path var(--dur-slow) var(--ease-out-expo);
  transition-delay: calc(var(--reveal-i) * var(--reveal-stagger));
  will-change: opacity, transform;
}
/* directional variants */
[data-reveal="left"]  { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="up"]    { transform: translateY(34px); }
[data-reveal="fade"]  { transform: none; }
/* soft-focus arrival */
[data-reveal="blur"]  { transform: translateY(22px); filter: blur(10px); }
/* image "wipe" — content resolves from a slim aperture */
[data-reveal="clip"]  {
  transform: none;
  clip-path: inset(0 0 18% 0);
}

/* Large image blocks resolve with a wipe instead of a slide (applies
   site-wide; these elements already carry data-reveal in the markup) */
.split__media[data-reveal],
.masterplan-figure[data-reveal],
.framed-window[data-reveal] {
  transform: none;
  clip-path: inset(0 0 16% 0);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}
