/* ==========================================================================
   INNER PAGES — the kit about.html, ongoing.html and property_details.html
   share, so every page opens and speaks like the home page: the page hero,
   section heads, buttons, and the arrival animation. index.html never loads
   this file.

   Arrival: an inline script in each page's <head> adds .js at once and
   .page-in when the page is ready (main.js's is-ready, or a 3.5s safety).
   The "before" states below exist only under .js:not(.page-in), so with no
   script — or motion reduced — every page simply shows, finished.
   ========================================================================== */

/* --- the page hero ------------------------------------------------------------
   Night photograph, the gold blueprint floor, a gold seam at the foot, and
   the copy: breadcrumb, eyebrow, the serif title with a gold italic word,
   a lead, a gold rule that draws in, and a scroll cue. */

/* arrival */
@keyframes phero-rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes phero-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --- section heads ------------------------------------------------------------- */
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-gold-ink);
}
.sec-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.sec-h {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 88px);
  font-weight: var(--fw-medium);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
  color: var(--c-navy);
}
.sec-h em { font-style: italic; color: var(--c-gold-ink); }

/* --- buttons on light grounds ------------------------------------------------------
   The navy pill: the light-ground twin of the home page's gold one. */
.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  min-height: 52px;
  padding: 0 var(--sp-md) 0 var(--sp-lg);
  border-radius: var(--r-pill);
  background: var(--c-navy);
  color: var(--c-ivory);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgb(var(--scrim) / .18);
  transition: background-color var(--dur-fast) var(--ease-css), color var(--dur-fast) var(--ease-css);
}
.btn-navy svg { width: 24px; height: 10px; flex: none; transition: translate var(--dur-fast) var(--ease-css); }
.btn-navy:hover,
.btn-navy:focus-visible { background: var(--c-gold); color: var(--c-navy); }
.btn-navy:hover svg { translate: 4px 0; }

/* the quiet outline pill on light grounds */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  min-height: 48px;
  padding: 0 var(--sp-md);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-navy);
  transition: border-color var(--dur-fast) var(--ease-css), background-color var(--dur-fast) var(--ease-css), color var(--dur-fast) var(--ease-css);
}
.btn-line:hover,
.btn-line:focus-visible { border-color: var(--c-navy); background: var(--c-navy); color: var(--c-ivory); }

/* --- reveal on scroll ------------------------------------------------------------------
   js/inner.js adds .reveal-on to <html> when it starts, and .is-in to each
   element as it enters; the hidden state needs both, so a script that never
   ran can never leave anything hidden. */
.reveal-on [data-reveal] { transition: opacity .9s var(--ease-css), translate 1s var(--ease-css); }
.reveal-on [data-reveal]:not(.is-in) { opacity: 0; translate: 0 26px; }
.reveal-on [data-reveal="2"] { transition-delay: .08s; }
.reveal-on [data-reveal="3"] { transition-delay: .16s; }
.reveal-on [data-reveal="4"] { transition-delay: .24s; }

/* --- motion reduced: everything in place ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal]:not(.is-in) { opacity: 1; translate: none; }
}
