/* =========================================================================
   LAYMEN — Homepage V2 · Marble Institute Revision
   Neo-classical future: marble, limestone, ivory, amber integrated light,
   brushed bronze, soft sky. Light, sunlit, breathable. Not sepia.
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Stone & light palette */
  --marble:      #f7f4ef;  /* polished white marble — default surface */
  --marble-2:    #f1ece4;  /* honed limestone, a half-tone down */
  --ivory:       #fbf8f2;  /* bone / ivory highlights */
  --travertine:  #e9e1d3;  /* pale travertine — tonal band */
  --limestone:   #e1d8c7;  /* warm limestone — deeper band */
  --ash:         #8a8378;  /* soft ash gray */
  --ash-soft:    #a9a299;
  --mineral:     #4a4640;  /* smoky mineral gray */
  --umber:       #23201a;  /* umber-charcoal — body text & depth */
  --umber-2:     #35302a;  /* secondary text */

  /* Light & metal accents */
  --amber:       #c68a3a;  /* integrated amber-gold light */
  --amber-soft:  #e6b36a;  /* softer warm glow */
  --amber-deep:  #8c5a1e;  /* amber ink, hover */
  --bronze:      #9e7a4c;  /* brushed bronze — hairlines */
  --bronze-soft: #c9a677;

  /* Landscape only */
  --sky:         #d7e2eb;  /* soft environmental sky */
  --water:       #c7d3d9;

  /* Utility */
  --rule:        #d9cfbd;  /* hairline rule, travertine edge */
  --rule-soft:   rgba(158, 122, 76, 0.28); /* bronze hairline, translucent */

  /* Surfaces */
  --bg: var(--marble);
  --fg: var(--umber);
  --fg-muted: var(--mineral);

  /* Typography */
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-brand: "Poppins", "DM Sans", ui-sans-serif, system-ui, sans-serif;

  /* Type scale (fluid) */
  --fs-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --fs-sm: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-lg: clamp(1.15rem, 1.08rem + 0.4vw, 1.3rem);
  --fs-xl: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-3xl: clamp(2.4rem, 1.6rem + 3.8vw, 4.6rem);
  --fs-4xl: clamp(3rem, 1.8rem + 5.4vw, 6.4rem);
  --fs-hero: clamp(3.2rem, 2rem + 6.5vw, 7.5rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 220ms;
  --t-med: 500ms;
  --t-slow: 700ms;

  /* Layout */
  --max-narrow: 640px;
  --max-read: 760px;
  --max-content: 1100px;
  --max-wide: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Nav height */
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Extremely faint stone micro-texture — cool mineral, not sepia */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.35   0 0 0 0 0.33   0 0 0 0 0.30   0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.22;
}

main, .nav, .footer { position: relative; z-index: 2; }

img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.012em;
  line-height: 1.02;
  margin: 0;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; }

p { margin: 0; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--amber-deep); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: var(--sp-4);
  background: var(--umber); color: var(--ivory);
  padding: var(--sp-2) var(--sp-4); border-radius: 4px;
  z-index: 1000; font-size: var(--fs-sm);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

*:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--amber); color: var(--ivory); }

/* ---------- Shared utilities ---------- */
.overline {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.30em;
  color: var(--ash);
  font-weight: 500;
}
.overline--amber { color: var(--amber); }
.overline--bone  { color: var(--ash-soft); }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--sp-16) 0;
  width: 100%;
}
.rule--amber {
  border-top: 1px solid var(--amber);
  width: 80px;
  margin: var(--sp-10) 0;
}

.section-title {
  font-size: var(--fs-3xl);
  line-height: 0.98;
  letter-spacing: -0.018em;
  max-width: 18ch;
}
.section-lede {
  font-size: var(--fs-lg);
  color: var(--fg-muted);
  max-width: 52ch;
  line-height: 1.5;
  font-weight: 300;
  margin-top: var(--sp-6);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.45rem;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  background: transparent;
  color: var(--fg);
  border-radius: 2px;
  white-space: nowrap;
}
.btn--primary {
  background: var(--umber);
  color: var(--ivory);
  border-color: var(--umber);
  box-shadow: 0 1px 0 rgba(35, 32, 26, 0.04),
              0 10px 22px -14px rgba(35, 32, 26, 0.3);
}
.btn--primary:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: var(--ivory);
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: var(--umber);
  color: var(--umber);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--umber);
  color: var(--ivory);
}
.btn--nav {
  padding: 0.58rem 1.15rem;
  font-size: 0.78rem;
  background: var(--umber);
  color: var(--ivory);
  border-color: var(--umber);
}
.btn--nav:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: var(--ivory); }
.btn--large { padding: 1.05rem 1.9rem; font-size: var(--fs-sm); }

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color var(--t-med) var(--ease),
              backdrop-filter var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav[data-state="transparent"] {
  background: transparent;
  color: var(--ivory);
}
.nav[data-state="solid"] {
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  border-bottom-color: rgba(158, 122, 76, 0.18);
  color: var(--umber);
}
.nav__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: currentColor;
}
.nav__mark {
  width: 30px;
  height: 30px;
  flex: none;
  color: currentColor;
  transform: translateY(-1px);
}
.nav__name {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1;
}
.nav__wordmark { gap: 0.55rem; }
.nav__right {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.nav__link {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.82;
}
.nav__link:hover { opacity: 1; color: var(--amber-soft); }
.nav[data-state="solid"] .nav__link:hover { color: var(--amber-deep); }
.nav[data-state="solid"] .btn--nav { background: var(--umber); color: var(--ivory); border-color: var(--umber); }

@media (max-width: 720px) {
  .nav__right { gap: var(--sp-4); }
  .nav__link { display: none; }
}

/* =========================================================================
   1. HERO — THE THRESHOLD (was: Arrival)
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  color: var(--ivory);
  overflow: hidden;
  background: #b9b2a6; /* soft limestone underlay until canvas paints */
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 60%, transparent 0%, transparent 50%, rgba(30, 24, 18, 0.22) 100%),
    linear-gradient(to top, rgba(35, 30, 22, 0.55) 0%, transparent 30%, transparent 65%, rgba(247, 244, 239, 0.10) 100%);
}
.hero__content {
  position: relative;
  z-index: 3;
  max-width: var(--max-content);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + var(--sp-16)) var(--gutter) var(--sp-24);
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 1400ms var(--ease-out) 200ms forwards;
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero__content .overline {
  color: rgba(251, 248, 242, 0.78);
  margin-bottom: var(--sp-8);
  animation: staggerIn 900ms var(--ease-out) 450ms both;
}
.hero__headline {
  font-size: var(--fs-hero);
  line-height: 0.96;
  letter-spacing: -0.022em;
  max-width: 16ch;
  color: var(--ivory);
  text-shadow: 0 1px 36px rgba(20, 16, 10, 0.45);
  animation: staggerIn 1100ms var(--ease-out) 600ms both;
}
.hero__headline em {
  color: var(--amber-soft);
  font-style: italic;
  font-weight: 300;
}
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-xl);
  font-weight: 300;
  line-height: 1.35;
  margin-top: var(--sp-8);
  max-width: 42ch;
  color: rgba(251, 248, 242, 0.90);
  text-shadow: 0 1px 20px rgba(20, 16, 10, 0.35);
  animation: staggerIn 900ms var(--ease-out) 900ms both;
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  margin-top: var(--sp-12);
  animation: staggerIn 900ms var(--ease-out) 1150ms both;
}
.hero__cta .btn--primary {
  background: var(--ivory);
  color: var(--umber);
  border-color: var(--ivory);
}
.hero__cta .btn--primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--umber);
}
.hero__quiet {
  font-size: var(--fs-sm);
  color: rgba(251, 248, 242, 0.8);
  letter-spacing: 0.1em;
}
.hero__quiet:hover { color: var(--amber-soft); }

@keyframes staggerIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__scrollcue {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 48px;
  background: rgba(251, 248, 242, 0.25);
  overflow: hidden;
}
.hero__scrollcue span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--amber-soft);
  animation: scrollCue 2400ms var(--ease) infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* =========================================================================
   2. PROBLEM — THE GATEKEEPING (quiet chamber)
   ========================================================================= */
.problem {
  background: var(--marble);
  padding: clamp(var(--sp-24), 14vh, var(--sp-32)) var(--gutter);
  min-height: 110vh;
  display: flex;
  align-items: center;
}
.problem__inner {
  max-width: var(--max-read);
  margin: 0 auto;
  width: 100%;
}
.problem .overline { margin-bottom: var(--sp-12); display: block; }

.pullquote {
  margin: 0;
  padding: 0;
  border: 0;
}
.pullquote p {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--umber);
}
.pullquote em {
  font-style: italic;
  font-weight: 300;
  color: var(--amber-deep);
}
.pullquote cite {
  display: block;
  margin-top: var(--sp-6);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.prose p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.45rem);
  line-height: 1.55;
  color: var(--umber-2);
  font-weight: 400;
  margin-bottom: var(--sp-8);
  max-width: 58ch;
}
.prose p:last-child { margin-bottom: 0; }

/* =========================================================================
   3. DECLARATION — TURNING POINT (architectural void)
   ========================================================================= */
.declaration {
  position: relative;
  background: var(--marble-2);
  min-height: 80vh;
  padding: clamp(var(--sp-24), 12vh, var(--sp-32)) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Soft shaft of amber light across the chamber */
.declaration::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 5%, rgba(230, 179, 106, 0.14), transparent 55%),
    radial-gradient(ellipse at 85% 95%, rgba(230, 179, 106, 0.08), transparent 60%);
}
.declaration__trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--bronze);
  opacity: 0.9;
  pointer-events: none;
}
.declaration__trace .trace-path {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 60ms linear;
}
.declaration__content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  text-align: center;
}
.declaration__content .overline { margin-bottom: var(--sp-10); display: block; }
.declaration__headline {
  font-size: var(--fs-4xl);
  line-height: 1;
  letter-spacing: -0.022em;
  max-width: 14ch;
  margin: 0 auto;
}
.declaration__headline em { color: var(--amber-deep); }
.declaration__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-xl);
  color: var(--mineral);
  margin-top: var(--sp-10);
  font-weight: 300;
}

/* =========================================================================
   4. PRODUCT — THE GALLERY (precision instruments)
   ========================================================================= */
.product {
  background: var(--ivory);
  padding: clamp(var(--sp-24), 12vh, var(--sp-32)) var(--gutter);
}
.product__intro {
  max-width: var(--max-content);
  margin: 0 auto var(--sp-24);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(var(--sp-10), 6vw, var(--sp-20));
  align-items: start;
}
.product__intro .overline { display: block; margin-bottom: var(--sp-8); }

/* Editorial marginalia on the right of the product intro */
.product__marginalia {
  border-left: 1px solid var(--rule-soft);
  padding: var(--sp-4) var(--sp-6) var(--sp-4) var(--sp-8);
  margin-top: var(--sp-6);
  max-width: 360px;
}
.product__marginalia-title {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--amber);
  margin-bottom: var(--sp-6);
}
.product__marginalia-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--umber);
  font-weight: 400;
}
.product__marginalia-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-base);
  line-height: 1.45;
  color: var(--mineral);
  font-weight: 300;
}
@media (max-width: 840px) {
  .product__intro { grid-template-columns: 1fr; }
  .product__marginalia { margin-top: var(--sp-8); }
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: var(--max-content);
  counter-reset: feature;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(var(--sp-10), 5vw, var(--sp-20));
  align-items: center;
  padding: var(--sp-16) 0;
}
.feature--flip { direction: rtl; }
.feature--flip > * { direction: ltr; }

.feature__numeral {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-2xl);
  color: var(--amber);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-4);
}
.feature__title {
  font-size: var(--fs-2xl);
  line-height: 1.05;
  letter-spacing: -0.018em;
  max-width: 18ch;
  margin-bottom: var(--sp-6);
}
.feature__body {
  font-size: var(--fs-base);
  line-height: 1.68;
  color: var(--umber-2);
  max-width: 44ch;
  margin-bottom: var(--sp-6);
}
.feature__meta {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
}

/* Product "plate" — framed like an instrument on display */
.feature__plate {
  position: relative;
  margin: 0;
  padding: var(--sp-3);
  background: var(--marble);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(247, 244, 239, 0.8),
    0 1px 0 rgba(35, 32, 26, 0.03),
    0 28px 48px -28px rgba(35, 32, 26, 0.22);
}
.feature__plate::after {
  /* bronze hairline separator at the foot of the plate */
  content: "";
  position: absolute;
  left: var(--sp-6);
  right: var(--sp-6);
  bottom: calc(var(--sp-3) - 1px);
  height: 1px;
  background: var(--bronze);
  opacity: 0.55;
  pointer-events: none;
}
.feature__plate img {
  width: 100%;
  border-radius: 1px;
  filter: saturate(0.97);
}
.feature__plate figcaption {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
  text-align: center;
}

.features .rule { margin: 0; border-top-color: var(--rule); }

@media (max-width: 840px) {
  .feature, .feature--flip { grid-template-columns: 1fr; direction: ltr; }
  .feature__plate { order: 2; }
  .feature__text { order: 1; }
  .feature { padding: var(--sp-12) 0; gap: var(--sp-8); }
}

/* =========================================================================
   5. PEOPLE — HUMAN WORLD (life in the architectural world)
   ========================================================================= */
.people {
  background: var(--marble);
  padding: clamp(var(--sp-24), 12vh, var(--sp-32)) var(--gutter);
}
.people__intro {
  max-width: var(--max-content);
  margin: 0 auto var(--sp-20);
}
.people__intro .overline { display: block; margin-bottom: var(--sp-8); }

.people__grid {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-10) var(--sp-8);
}

.vignette {
  margin: 0;
  grid-column: span 6;
}
.vignette--tall { grid-column: span 7; grid-row: span 2; }
.vignette + .vignette { margin-top: 0; }

.vignette__image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--travertine);
  box-shadow: 0 1px 0 rgba(35,32,26,0.04), 0 20px 44px -24px rgba(35,32,26,0.22);
}
.vignette__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms var(--ease-out);
  filter: saturate(0.97) contrast(1.02);
}
.vignette:hover .vignette__image img { transform: scale(1.06); }

.vignette figcaption {
  padding-top: var(--sp-4);
}
.vignette__cap {
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--sp-3);
}
.vignette__line {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.4;
  font-weight: 400;
  color: var(--umber-2);
  max-width: 40ch;
}

.people__statement {
  grid-column: span 5;
  display: flex;
  align-items: center;
  padding: var(--sp-8) 0;
}
.people__statement--right {
  grid-column: 8 / span 5;
}
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 1.8vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--umber);
  max-width: 22ch;
}
.statement em {
  font-style: italic;
  font-weight: 300;
  color: var(--amber-deep);
}

@media (max-width: 900px) {
  .people__grid { grid-template-columns: 1fr; }
  .vignette, .vignette--tall,
  .people__statement, .people__statement--right { grid-column: 1 / -1; }
  .people__statement { padding: var(--sp-4) 0; }
}

/* =========================================================================
   6. LINEAGE — THE SANCTUARY (sculptural chamber)
   ========================================================================= */
.lineage {
  position: relative;
  background: var(--mineral);
  color: var(--ivory);
  padding: clamp(var(--sp-24), 12vh, var(--sp-32)) var(--gutter);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
/* Chamber backdrop — full-bleed, richly lit */
.lineage__ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: contrast(1.02) brightness(0.92);
  pointer-events: none;
  z-index: 1;
}
/* Dual-tone overlay — deepens right side for legibility, preserves amber glow on left */
.lineage__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(30, 26, 20, 0.20) 0%, rgba(30, 26, 20, 0.62) 55%, rgba(30, 26, 20, 0.82) 100%),
    radial-gradient(ellipse at 18% 78%, rgba(230, 179, 106, 0.22), transparent 40%);
}
.lineage__content {
  position: relative;
  z-index: 3;
  max-width: 780px;
  margin-left: auto;    /* push right so the sculpture on the left breathes */
  margin-right: 0;
  text-align: left;
}
.lineage__content .overline { display: block; margin-bottom: var(--sp-10); color: var(--amber-soft); letter-spacing: 0.30em; }
.lineage__headline {
  font-size: var(--fs-3xl);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ivory);
  max-width: 16ch;
  text-shadow: 0 1px 24px rgba(0,0,0,0.35);
}
.lineage__prose {
  margin-top: var(--sp-12);
}
.lineage__prose p {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.55;
  font-weight: 300;
  color: rgba(251, 248, 242, 0.86);
  margin-bottom: var(--sp-6);
  max-width: 58ch;
}
.lineage__prose em { font-style: italic; color: var(--amber-soft); }
@media (max-width: 900px) {
  .lineage__content { margin-left: 0; max-width: none; }
}

/* =========================================================================
   7. FUTURE — THE COURT (stone-backed cards)
   ========================================================================= */
.future {
  background: var(--travertine);
  padding: clamp(var(--sp-24), 12vh, var(--sp-32)) var(--gutter);
}
.future__intro {
  max-width: var(--max-content);
  margin: 0 auto var(--sp-20);
}
.future__intro .overline { display: block; margin-bottom: var(--sp-8); }

.future__cards {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10);
}
.fcard {
  background: var(--ivory);
  padding: var(--sp-10) var(--sp-8) var(--sp-12);
  position: relative;
  border-radius: 2px;
  border: 1px solid var(--rule-soft);
  box-shadow: 0 1px 0 rgba(35,32,26,0.03), 0 22px 40px -26px rgba(35,32,26,0.2);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}
.fcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(35,32,26,0.03), 0 30px 48px -26px rgba(35,32,26,0.3);
}
.fcard__bar {
  display: block;
  width: 44px;
  height: 2px;
  background: var(--amber);
  margin-bottom: var(--sp-8);
  box-shadow: 0 0 10px rgba(198, 138, 58, 0.35);
}
.fcard__title {
  font-size: var(--fs-xl);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin-bottom: var(--sp-4);
  max-width: 18ch;
}
.fcard__body {
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--umber-2);
}

@media (max-width: 820px) {
  .future__cards { grid-template-columns: 1fr; }
}

/* =========================================================================
   8. CTA — THE FINAL THRESHOLD
   ========================================================================= */
.cta {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(230, 179, 106, 0.18), transparent 55%),
    linear-gradient(to bottom, var(--marble) 0%, var(--ivory) 100%);
  padding: clamp(var(--sp-24), 10vh, var(--sp-32)) var(--gutter) var(--sp-24);
  text-align: center;
  overflow: hidden;
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta__trace {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 1000px);
  height: auto;
  color: var(--bronze);
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}
.cta__trace .trace-path {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 60ms linear;
}
.cta__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}
.cta__headline {
  font-size: var(--fs-4xl);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--umber);
  margin-bottom: var(--sp-6);
}
.cta__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-xl);
  color: var(--mineral);
  font-weight: 300;
  margin-bottom: var(--sp-12);
}
.cta__row {
  margin-bottom: var(--sp-10);
}
.cta__form {
  display: flex;
  gap: var(--sp-3);
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.cta__form input {
  flex: 1 1 220px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-size: var(--fs-sm);
  color: var(--umber);
  font-family: var(--font-sans);
  transition: border-color var(--t-fast) var(--ease);
}
.cta__form input::placeholder { color: var(--ash); }
.cta__form input:focus { border-color: var(--amber); outline: none; }
.cta__status {
  flex-basis: 100%;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--amber-deep);
  min-height: 1.2em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--umber);
  color: rgba(251, 248, 242, 0.72);
  padding: var(--sp-16) var(--gutter) var(--sp-10);
  position: relative;
}
/* Thin amber hairline at the top — like an architectural reveal */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--amber) 45%, var(--amber) 55%, transparent);
  opacity: 0.55;
}
.footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}
.footer__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ivory);
  margin-bottom: var(--sp-5, 1.25rem);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.footer__wordmark:hover { color: var(--amber-soft); }
.footer__mark {
  width: 32px;
  height: 32px;
  flex: none;
  color: currentColor;
  transform: translateY(-1px);
}
.footer__name {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1;
  color: currentColor;
}
.footer__motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-base);
  font-weight: 300;
  max-width: 34ch;
  line-height: 1.45;
  color: rgba(251, 248, 242, 0.72);
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer__nav a {
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.75);
}
.footer__nav a:hover { color: var(--amber-soft); }

.footer__legal {
  font-size: var(--fs-xs);
  line-height: 1.75;
  color: rgba(251, 248, 242, 0.55);
}
.footer__legal a { color: rgba(251, 248, 242, 0.7); }
.footer__legal a:hover { color: var(--amber-soft); }

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* =========================================================================
   REVEAL — IntersectionObserver driven
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .trace-path { stroke-dashoffset: 0 !important; }
  .hero__scrollcue { display: none; }
}
