/* ═══════════════════════════════════════════════
   Home page — Dark Monument · sections 1-9
═══════════════════════════════════════════════ */

/* ── Image placeholder blocks ────────────── */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--lum-3), var(--lum-1));
  border: 1px solid var(--edge-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-soft);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem;
  position: relative;
}
.img-placeholder::before {
  content: attr(data-size);
  position: absolute;
  bottom: 1rem; right: 1rem;
  font-size: 0.55rem;
  color: var(--gray-soft);
  letter-spacing: 0.15em;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 1px solid var(--hz-border);
  pointer-events: none;
}
.img-placeholder.portrait { aspect-ratio: 4 / 5; }

/* ═══ 1. HERO ═══════════════════════════════
   Surface: lum-0 (void) — maximum contrast
═══════════════════════════════════════════ */
/* ═══ HERO — editorial menu (always visible) ═══
   Six nav items stacked left, cycling image behind, gradient overlay.
   Replaces traditional hero; nav items trigger image changes. */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 72px clamp(1rem, 2.5vw, 2.5rem) clamp(1rem, 2.5vw, 2.5rem);
  background: var(--lum-0);
  overflow: hidden;
  color: var(--porcelain);
}
.hero-frame {
  position: relative;
  width: 100%;
  height: calc(100vh - 72px - clamp(1rem, 2.5vw, 2.5rem));
  min-height: 560px;
  overflow: hidden;
  background: var(--lum-0);
}

.hero-images { position: absolute; inset: 0; z-index: 0; }
/* Zoom-blur image transition — A24-restrained.
   Inactive state: scaled up + blurred. Active: sharp, settled. */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  filter: saturate(0.72) brightness(0.78) contrast(1.03) blur(8px);
  transform: scale(1.08);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, filter, transform;
}
.hero-image.is-active {
  opacity: 1;
  filter: saturate(0.72) brightness(0.78) contrast(1.03) blur(0);
  transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
  .hero-image {
    transition: opacity 0.3s ease;
    filter: saturate(0.72) brightness(0.78) contrast(1.03);
    transform: none !important;
  }
}

/* Angled gradient — anchors the bottom-left where nav sits, image breathes top-right */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top right,
    rgba(1,4,12,0.82) 0%,
    rgba(1,4,12,0.55) 22%,
    rgba(1,4,12,0.2) 48%,
    rgba(1,4,12,0) 62%);
}

/* Hero nav — anchored bottom-left, tight stack, lowercase serif with uppercase descriptor */
.hero-nav {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(2rem, 5vw, 5rem) clamp(2.5rem, 5vh, 4.5rem);
}
.hero-nav-item {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 0.05rem 0;
  color: inherit;
  text-decoration: none;
  line-height: 1.15;
  opacity: 0.22;
  transition: opacity 0.45s ease;
}
.hero-nav-item.is-active,
.hero-nav-item:hover,
.hero-nav-item:focus-visible {
  opacity: 1;
}

.hero-nav-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(9px, 0.9vw, 14px);
  height: clamp(9px, 0.9vw, 14px);
  margin-right: 0.18em;
  transform: translateY(-1.55em);
  opacity: 0;
  transition: opacity 0.45s ease;
  flex-shrink: 0;
}
.hero-nav-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-nav-item.is-active .hero-nav-mark,
.hero-nav-item:hover .hero-nav-mark,
.hero-nav-item:focus-visible .hero-nav-mark { opacity: 1; }

.hero-nav-label {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--porcelain);
  text-transform: lowercase;
  transition: color 0.45s ease;
}
.hero-nav-item.is-active .hero-nav-label,
.hero-nav-item:hover .hero-nav-label,
.hero-nav-item:focus-visible .hero-nav-label { color: var(--hazelnut); }

.hero-nav-sub {
  font-family: var(--sans);
  font-size: clamp(0.62rem, 0.8vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--porcelain);
  opacity: 0.62;
  margin-left: 0.9rem;
  transition: opacity 0.45s ease;
}

/* Scroll cue — bottom-right of frame */
.hero-scroll-cue {
  position: absolute;
  bottom: clamp(2rem, 4vh, 3rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  left: auto;
  transform: none;
  width: 1px;
  height: 4rem;
  overflow: hidden;
  z-index: 3;
}
.hero-scroll-cue span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--hazelnut);
  animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@media (max-width: 720px) {
  .hero-scroll-cue { display: none; }
  .hero-nav { padding: 3rem clamp(1.5rem, 4vw, 2rem); }
  .hero-nav-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image { transition: opacity 0.3s ease; transform: none !important; }
  .hero-scroll-cue span { animation: none; background: transparent; border-top: 1px solid var(--hazelnut); }
}

/* Hero intro — below-fold opener (pair with .hero--image-only) */
.hero--image-only { padding: 0; }
.hero-intro {
  background: var(--lum-0);
  padding: clamp(6rem, 12vh, 10rem) 0 clamp(5rem, 10vh, 8rem);
  text-align: center;
  position: relative;
}
.hero-intro::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center 30%, var(--hz-glow) 0%, transparent 50%);
  pointer-events: none;
}
.hero-intro > .container-narrow { position: relative; }
.hero-intro .eyebrow { justify-content: center; margin-bottom: 2.5rem; }
.hero-intro .eyebrow::before, .hero-intro .eyebrow::after { width: 2rem; }
.hero-intro .display { margin: 0 auto 2rem; max-width: 14ch; }
.hero-intro .lead { max-width: 52ch; margin: 0 auto 3rem; }
.hero-intro .hero-cta { display: flex; justify-content: center; }

/* Nav + drawer CSS now lives in base.css (universal site-wide) */

/* ═══ 2. THESIS ═══════════════════════════
   Surface: lum-2 — first visible step up
═══════════════════════════════════════════ */
.thesis {
  background: var(--lum-2);
  border-top: 1px solid var(--edge-1);
  border-bottom: 1px solid var(--edge-1);
  position: relative;
  padding: 0;
}
.thesis-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: clamp(520px, 75vh, 780px);
  width: 100%;
}
.thesis-figure {
  overflow: hidden;
  position: relative;
}
.thesis-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.75) brightness(0.82) contrast(1.02);
}
.thesis-copy {
  padding: clamp(4rem, 10vw, 8rem) clamp(2rem, 6vw, 6rem);
  max-width: 56ch;
  align-self: center;
}
@media (max-width: 900px) {
  .thesis-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .thesis-figure { order: 2; aspect-ratio: 4 / 3; }
  .thesis-copy { order: 1; max-width: none; padding: 5rem clamp(1.5rem, 4vw, 3rem); }
}

/* ═══ 3. THE SHIFT ════════════════════════
   Surface: lum-1 — drops back for rhythm
═══════════════════════════════════════════ */
.shift { background: var(--lum-1); }

/* ═══ 4. THE STRUCTURE ════════════════════
   Surface: lum-3 — elevated platform
   (Component styles in base.css)
═══════════════════════════════════════════ */
.structure {
  background: var(--lum-3);
  border-top: 1px solid var(--edge-2);
  border-bottom: 1px solid var(--edge-2);
  position: relative;
}
.structure::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, var(--hz-dim) 0%, transparent 40%);
}
.structure > .container { position: relative; }

/* ═══ 5. PROOF ════════════════════════════
   Surface: lum-1 — recedes to let the stat hit
═══════════════════════════════════════════ */
.proof {
  background: var(--lum-1);
  position: relative;
}
.proof::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, var(--hz-glow) 0%, transparent 40%);
}
.proof > .container { position: relative; }

.proof-stat-block { text-align: center; margin: 4rem 0; }
.proof-stat-label {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gray); margin-top: 0.75rem;
}

.proof-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin-top: 4rem;
  background: var(--lum-4); border: 1px solid var(--edge-2);
  overflow: hidden; transition: border-color 0.6s var(--ease);
}
.proof-feature:hover { border-color: var(--hz-border-hot); }
.proof-feature-image { overflow: hidden; position: relative; }
.proof-feature-image .img-placeholder { aspect-ratio: 16 / 10; min-height: 400px; transition: transform 0.8s var(--ease); }
.proof-feature-image img {
  width: 100%; height: 100%;
  min-height: 460px;
  object-fit: cover; object-position: center center;
  display: block;
  filter: saturate(0.7) brightness(0.72) contrast(1.04);
  transition: transform 1s var(--ease), filter 0.8s var(--ease);
}
.proof-feature:hover .proof-feature-image img {
  filter: saturate(0.78) brightness(0.78) contrast(1.03);
  transform: scale(1.03);
}
/* Partial-reveal gradient — obscures the bottom/right so it reads as glimpse, not showcase */
.proof-feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 40%, rgba(1,4,12,0.55) 95%),
    linear-gradient(0deg, rgba(1,4,12,0.35) 0%, transparent 35%);
  pointer-events: none;
}
.proof-feature:hover .proof-feature-image .img-placeholder,
.proof-feature:hover .proof-feature-image img { transform: scale(1.04); }
.proof-feature-content { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.proof-feature-content .label { margin-bottom: 1rem; display: block; }
.proof-feature-content h3 {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 400;
  margin-bottom: 1.25rem; line-height: 1.2;
}
.proof-feature-content h3 em { font-style: italic; color: var(--hazelnut); }
.proof-feature-content p { font-size: 0.88rem; color: var(--gray); line-height: 1.65; max-width: none; }
.proof-link {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem;
  font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--hazelnut);
}
.proof-link .arrow { transition: transform 0.4s var(--ease); display: inline-block; }
.proof-feature:hover .proof-link .arrow { transform: translateX(6px); }

@media (max-width: 768px) {
  .proof-feature { grid-template-columns: 1fr; }
  .proof-feature-image .img-placeholder { min-height: 280px; }
}

/* ═══ 6. QUALIFIER ════════════════════════
   Surface: lum-3 — elevated, bordered
═══════════════════════════════════════════ */
.qualifier-section {
  background: var(--lum-3);
  border-top: 1px solid var(--edge-2);
  border-bottom: 1px solid var(--edge-2);
}
.qualifier {
  font-family: var(--serif); font-style: italic; color: var(--porcelain);
  font-size: 1.1rem; line-height: 1.5; margin-top: 2rem; max-width: 56ch;
  border-left: 2px solid var(--hazelnut); padding-left: 2rem;
}

/* ═══ 7. FOUNDERS ═════════════════════════
   Surface: lum-1 — alternating direction
═══════════════════════════════════════════ */
.founders {
  background: var(--lum-1);
  position: relative;
}
.founders::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 60%, var(--hz-dim) 0%, transparent 40%);
}
.founders > .container { position: relative; }

.founder-stack { margin-top: 4rem; display: flex; flex-direction: column; gap: 1.5rem; }
.founder {
  display: grid; grid-template-columns: 0.8fr 1fr; gap: 0;
  border: 1px solid var(--edge-2);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.founder:nth-child(even) { direction: rtl; }
.founder:nth-child(even) > * { direction: ltr; }
.founder:hover { background: var(--lum-2); border-color: var(--hz-border); }
.founder-image { overflow: hidden; }
.founder-image .img-placeholder { aspect-ratio: 4 / 5; min-height: 500px; transition: transform 1s var(--ease); }
.founder-image {
  overflow: hidden;
  position: relative;
}
.founder-image img {
  width: 100%; height: 100%;
  min-height: 580px;
  object-fit: cover;
  display: block;
  filter: saturate(0.62) brightness(0.74) contrast(1.04);
  transition: transform 1s var(--ease), filter 1s var(--ease);
}
.founder:hover .founder-image img { filter: saturate(0.72) brightness(0.82) contrast(1.04); }
/* Asymmetric portrait framing — one tighter, one looser — off-the-grid */
.founder-stack .founder:nth-child(1) .founder-image img { object-position: 40% 22%; transform: scale(1.04); transform-origin: 40% 22%; }
.founder-stack .founder:nth-child(2) .founder-image img { object-position: 60% 28%; }
.founder-stack .founder:nth-child(1):hover .founder-image img { transform: scale(1.07); }
.founder-stack .founder:nth-child(2):hover .founder-image img { transform: scale(1.03); }
/* Slight vertical offset — breaks the too-clean grid */
.founder-stack .founder:nth-child(2) { transform: translateY(clamp(1.5rem, 4vw, 4rem)); }
/* Subtle vignette per image — fades edges into dark */
.founder-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(1,4,12,0.55) 100%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .founder-stack .founder:nth-child(2) { transform: none; }
}
.founder:hover .founder-image .img-placeholder,
.founder:hover .founder-image img { transform: scale(1.03); }
.founder-copy { padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
.founder-copy .label { margin-bottom: 1rem; display: block; }
.founder-copy h3 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400; margin-bottom: 1.25rem; line-height: 1.1;
}
.founder-copy h3 em { font-style: italic; color: var(--hazelnut); }
.founder-copy p { font-size: 0.9rem; color: var(--gray); line-height: 1.65; max-width: none; }

@media (max-width: 900px) {
  .founder { grid-template-columns: 1fr; }
  .founder:nth-child(even) { direction: ltr; }
  .founder-image .img-placeholder { min-height: 350px; }
  .founder-copy { padding: 2.5rem; }
}

/* ═══ 8. THE EDIT TEASER ══════════════════
   Surface: lum-2
═══════════════════════════════════════════ */
.edit-teaser {
  background: var(--lum-2);
  border-top: 1px solid var(--edge-1);
  position: relative;
}
.edit-teaser::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, var(--hz-dim) 0%, transparent 35%);
}
.edit-teaser > .container { position: relative; }
.edit-teaser-header {
  display: flex; justify-content: space-between; align-items: end;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem;
}
.edit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .edit-grid { grid-template-columns: 1fr; } }
.edit-card {
  color: inherit; display: block; overflow: hidden;
  background: var(--lum-4); border: 1px solid var(--edge-2);
  transition: all 0.6s var(--ease);
}
.edit-card:hover { background: var(--lum-5); border-color: var(--hz-border); }
.edit-card-image { overflow: hidden; }
.edit-card-image .img-placeholder,
.edit-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover; display: block;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.edit-card-image img { filter: saturate(0.72) brightness(0.82) contrast(1.02); }
.edit-card:hover .edit-card-image img { filter: saturate(0.82) brightness(0.9); }
.edit-card:hover .img-placeholder,
.edit-card:hover .edit-card-image img { transform: scale(1.04); }
.edit-card-meta {
  font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--hazelnut); padding: 1.5rem 2rem 0;
}
.edit-card h3 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 400;
  color: var(--porcelain); line-height: 1.30; padding: 0.5rem 2rem 0;
  letter-spacing: -0.01em;
}
.edit-card h3 em { font-style: italic; color: var(--hazelnut); }
.edit-card p { font-size: 0.82rem; color: var(--gray); line-height: 1.6; padding: 0.5rem 2rem 2rem; }
.edit-card.placeholder { opacity: 0.5; }
.edit-card.placeholder:hover { opacity: 0.7; }

@media (max-width: 768px) {
  .edit-teaser-header { flex-direction: column; align-items: flex-start; }
}

/* ═══ 9. CONTACT CTA ═════════════════════
   Surface: lum-0 — back to void for max glow
═══════════════════════════════════════════ */
.contact-cta {
  text-align: center; padding: 12rem 0;
  background: var(--lum-0);
  position: relative;
  overflow: hidden;
}
.contact-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.28;
  filter: saturate(0.7) brightness(0.8);
}
.contact-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 15%, rgba(0,2,6,0.9) 95%);
}
.contact-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--hz-glow) 0%, transparent 35%);
  z-index: 1;
}
.contact-cta > .container-narrow { position: relative; z-index: 2; }
.contact-cta .container-narrow > * { margin-left: auto; margin-right: auto; }
.contact-cta .display { max-width: 18ch; margin: 0 auto 2rem; }
.contact-cta .lead { margin: 0 auto 3rem; text-align: center; }
.contact-cta .eyebrow { justify-content: center; }
.contact-cta-buttons {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.contact-email {
  font-size: 0.82rem; color: var(--gray-soft); letter-spacing: 0.12em;
  border-bottom: 1px solid var(--edge-2); padding-bottom: 0.25rem;
  transition: color 0.3s, border-color 0.3s;
}
.contact-email:hover { color: var(--hazelnut); border-color: var(--hazelnut); }

@media (max-width: 720px) {
  .contact-cta { padding: 8rem 0; }
}

/* ═══ HOMEPAGE BREAKS — parallax atmosphere sections ═══
   Full-bleed image interludes between content sections.
   Three of them, each rendering one of the "homepage break"
   images (shuffled per visit). Parallax handled by JS. */
.homepage-break {
  position: relative;
  width: 100%;
  height: clamp(360px, 55vh, 620px);
  overflow: hidden;
  padding: 0;
  background: var(--lum-0);
}
.homepage-break img {
  position: absolute;
  top: -40%; left: 0;
  width: 100%;
  height: 180%;
  object-fit: cover;
  display: block;
  opacity: 0.72;
  will-change: transform;
}
.homepage-break::before,
.homepage-break::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 22%;
  pointer-events: none;
  z-index: 1;
}
.homepage-break::before { top: 0; background: linear-gradient(180deg, var(--lum-0) 0%, transparent 100%); }
.homepage-break::after  { bottom: 0; background: linear-gradient(0deg, var(--lum-0) 0%, transparent 100%); }
