/* ══════════════════════════════════════════════════════════════
   EMERA · The House — page-specific styles
   Editorial chapters layout. Pure typography, no decoration cards.
═══════════════════════════════════════════════════════════════ */

/* ── Two-column chapter layout (anchor left, content right) ── */
.hist-chapter {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.hist-chapter-num {
  position: sticky;
  top: 96px;
}
.hist-chapter-num .ep-section-num {
  margin-bottom: 0;
}
.hist-chapter-body { max-width: 720px; }

/* ══════════════════════════════════════════════════════════
   02 — INSPIRATION (4 forces, hairline grid)
═══════════════════════════════════════════════════════════ */
.hist-forces {
  margin-top: clamp(64px, 9vh, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
}
.hist-force {
  padding: clamp(32px, 4vw, 48px) clamp(20px, 2vw, 28px);
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  transition: background .35s var(--ease-out);
}
.hist-force:last-child { border-right: none; }
.hist-force:hover { background: var(--paper); }
.hist-force-i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 200;
  font-size: 22px;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}
.hist-force-t {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -.005em;
  color: var(--ink);
  margin-bottom: 14px;
}
.hist-force-b {
  font-family: var(--sans);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(13px, .98vw, 15px);
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 22ch;
}

/* ══════════════════════════════════════════════════════════
   03 — MATTER (image split)
═══════════════════════════════════════════════════════════ */
.hist-matter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
}
.hist-matter-text { max-width: 480px; }
.hist-matter-text .ep-section-num { margin-bottom: 32px; }
.hist-matter-text .ep-section-title { max-width: 12ch; }
.hist-matter-img {
  position: relative;
  overflow: hidden;
}
.hist-matter-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 1.4s var(--ease-out);
}
.hist-matter:hover .hist-matter-img img { transform: scale(1.03); }

/* ══════════════════════════════════════════════════════════
   04 — FOUNDERS (2 portraits)
═══════════════════════════════════════════════════════════ */
.hist-founders {
  margin-top: clamp(64px, 9vh, 96px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
}
.hist-founder { max-width: 480px; }
.hist-founder-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--paper-2);
}
.hist-founder-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.12);
  transition: transform 1.4s var(--ease-out), filter 1s var(--ease-out);
}
.hist-founder:hover .hist-founder-img img { transform: scale(1.04); filter: grayscale(0); }
.hist-founder-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--ink);
  margin-bottom: 8px;
}
.hist-founder-name em { font-style: italic; font-weight: 200; color: var(--gold); }
.hist-founder-role {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.hist-quote {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}
.hist-link-wrap {
  margin-top: clamp(56px, 7vh, 80px);
}

/* ══════════════════════════════════════════════════════════
   05 — PHILOSOPHY (trinity)
═══════════════════════════════════════════════════════════ */
.hist-trinity {
  margin-top: clamp(64px, 9vh, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.hist-tri {
  padding: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--hair);
}
.hist-tri:last-child { border-right: none; }
.hist-tri-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 200;
  font-size: 16px;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
  letter-spacing: .04em;
}
.hist-tri-axis {
  font-family: var(--serif);
  font-weight: 200;
  font-style: italic;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 18px;
}
.hist-tri-d {
  font-family: var(--sans);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 28ch;
}
.hist-conclusion {
  margin-top: clamp(56px, 7vh, 80px);
  font-style: italic;
  max-width: 720px;
}

/* ══════════════════════════════════════════════════════════
   06 — MODELS
═══════════════════════════════════════════════════════════ */
.hist-models {
  margin-top: clamp(64px, 9vh, 96px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
}
.hist-model {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.hist-model-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-2);
  margin-bottom: 32px;
}
.hist-model-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s var(--ease-out);
}
.hist-model:hover .hist-model-img img { transform: scale(1.04); }
.hist-model-tag {
  display: block;
  font-family: var(--serif);
  font-size: 10px; font-weight: 500;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--ink-3);
  padding-left: .42em;
  margin-bottom: 16px;
}
.hist-model-title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(44px, 5vw, 72px);
  line-height: .95;
  letter-spacing: -.018em;
  color: var(--ink);
  margin-bottom: 20px;
}
.hist-model-title em { font-style: italic; color: var(--gold); display: inline-block; }
.hist-model-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 40ch;
  margin-bottom: 24px;
}
.hist-model-tail {
  font-family: var(--serif);
  font-size: 10px; font-weight: 500;
  letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold);
  padding-left: .38em;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}

/* ══════════════════════════════════════════════════════════
   07 — SANCTUARY (final, centered)
═══════════════════════════════════════════════════════════ */
.hist-sanctuary {
  text-align: center;
  padding-top: clamp(120px, 22vh, 240px);
  padding-bottom: clamp(120px, 22vh, 240px);
}
.hist-sanc-num {
  margin-bottom: clamp(40px, 6vh, 64px);
  margin-left: auto; margin-right: auto;
  display: block;
}
.hist-final {
  font-size: clamp(48px, 7.5vw, 120px);
  line-height: 1;
  max-width: 18ch;
  margin: 0 auto;
}
.hist-final-lead {
  margin: clamp(40px, 6vh, 64px) auto 0;
  max-width: 580px;
  text-align: center;
}
.hist-cta-row {
  margin-top: clamp(56px, 8vh, 80px);
  display: flex;
  align-items: center; justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hist-forces { grid-template-columns: 1fr 1fr; }
  .hist-force:nth-child(2) { border-right: none; }
  .hist-force:nth-child(3) { border-right: 1px solid var(--hair); }
}
@media (max-width: 900px) {
  .hist-chapter { grid-template-columns: 1fr; gap: 32px; }
  .hist-chapter-num { position: static; }
  .hist-matter { grid-template-columns: 1fr; }
  .hist-founders { grid-template-columns: 1fr; gap: 60px; }
  .hist-trinity { grid-template-columns: 1fr; }
  .hist-tri { border-right: none; border-bottom: 1px solid var(--hair); }
  .hist-tri:last-child { border-bottom: none; }
  .hist-models { grid-template-columns: 1fr; gap: 64px; }
  .hist-cta-row { flex-direction: column; align-items: stretch; max-width: 300px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
  .hist-forces { grid-template-columns: 1fr; }
  .hist-force { border-right: none; }
}
