/* =================================================================
   Home page — sections beyond the site chrome
   ----------------------------------------------------------------
   Hero, framework (four-element specimen), engagement (two phases),
   selected reading (two-card stack). Loads after tokens/globals/site.
   ================================================================= */

/* --------------------------------------------------------------
   HERO
   -------------------------------------------------------------- */
.hero {
  padding-top: clamp(64px, 10vh, 130px);
  padding-bottom: clamp(72px, 11vh, 150px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: var(--rail-col) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

h1.hero-h {
  font-size: var(--fs-display-xl);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.022em;
  max-width: 12ch;
  color: var(--navy);
}
h1.hero-h em {
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
}

.hero-body {
  margin-top: 38px;
  max-width: 600px;
  font-size: var(--fs-body-l);
  line-height: 1.62;
  color: var(--navy-ink);
}
.hero-body em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--camel-deep);
}

.hero-ctas {
  margin-top: 44px;
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* Floating editorial text-stack — Frame + Engagement labels, right edge */
.hero-marks {
  position: absolute;
  right: calc(var(--gutter) + clamp(24px, 4vw, 56px));
  top: clamp(80px, 12vh, 150px);
  width: clamp(220px, 22vw, 320px);
  pointer-events: none;
  color: var(--navy);
  opacity: 0.85;
}
.hero-marks .mark-stack {
  display: grid; gap: 18px;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--muted);
  text-align: right;
}
.hero-marks .mark-stack b {
  display: block;
  font-style: normal;
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 4px;
}

/* --------------------------------------------------------------
   FRAMEWORK — horizontal four-element specimen
   -------------------------------------------------------------- */
.framework {
  background: var(--cream);
  padding: clamp(72px, 10vh, 130px) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--navy);
}
.four-item {
  padding: 32px 26px 36px 26px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 240ms ease;
}
.four-item:first-child { padding-left: 0; }
.four-item:last-child { border-right: 0; padding-right: 0; }
.four-item:hover { background: rgba(15, 77, 63, 0.04); }

.four-item .num-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 26px;
}
.four-item .num { color: var(--camel-deep); }
.four-item .glyph {
  width: 22px; height: 22px;
  color: var(--forest);
  opacity: 0.85;
}

.four-item h3 {
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 14px;
  max-width: 12ch;
}
.four-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--navy-ink);
  max-width: 36ch;
}

.four-foot {
  margin-top: 28px;
  border-top: 1px solid var(--navy);
  padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}
.four-foot em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--forest);
  font-size: 14px;
}

/* --------------------------------------------------------------
   ENGAGEMENT — two phases
   -------------------------------------------------------------- */
.engagement {
  padding: clamp(80px, 11vh, 140px) 0;
  background: var(--paper);
}

.phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--navy);
  align-items: stretch;
}
.phase {
  padding: 40px clamp(28px, 3vw, 48px) 44px 0;
  border-right: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
}
.phase:last-child {
  border-right: 0;
  padding-left: clamp(28px, 3vw, 48px);
  padding-right: 0;
}
.phase .meta { margin-top: auto; }

.phase .label {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 28px;
}
.phase .label .num { color: var(--forest); }
.phase .label .pill {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.phase h3 {
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 18ch;
}
.phase h3 em { font-style: italic; font-weight: 400; color: var(--forest); }
.phase p {
  margin: 0;
  font-size: var(--fs-body-l);
  line-height: 1.6;
  max-width: 44ch;
  color: var(--navy-ink);
}
.phase .meta {
  padding-top: 28px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--camel-deep);
  letter-spacing: 0.04em;
}
.phase .meta b { color: var(--navy); font-weight: 500; }

.engagement-cta {
  margin-top: 56px;
  display: flex; align-items: center; gap: 18px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.read-more {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--navy);
  display: inline-flex; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--camel);
  padding-bottom: 4px;
  transition: color 200ms ease, border-color 200ms ease;
}
.read-more:hover { color: var(--forest); border-color: var(--forest); }
.read-more .arr { font-style: normal; }

/* --------------------------------------------------------------
   SELECTED READING — two paper cards
   -------------------------------------------------------------- */
.reading {
  background: var(--cream-warm);
  padding: clamp(80px, 11vh, 140px) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.papers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
}
.paper {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 20px;
  padding: 36px 32px 32px;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  position: relative;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
.paper:hover {
  transform: translateY(-3px);
  border-color: var(--forest);
  box-shadow: 0 18px 40px -28px rgba(31,42,68,0.5);
}
.paper .paper-num {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.paper .paper-num .num { color: var(--forest); }
.paper .paper-num .kind {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--forest);
  font-weight: 500;
}
.paper h3 {
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.16;
  color: var(--navy);
  margin: 0;
}
.paper h3 em { font-style: italic; font-weight: 400; }
.paper p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--navy-ink);
  max-width: 46ch;
}
.paper .read {
  margin-top: 8px;
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--forest);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  align-self: start;
  transition: border-color 220ms ease, gap 220ms ease;
}
.paper:hover .read { border-color: var(--forest); gap: 14px; }

/* --------------------------------------------------------------
   RESPONSIVE — home-specific shifts
   -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .four { grid-template-columns: 1fr 1fr; }
  .four-item:nth-child(2) { border-right: 0; }
  .four-item:nth-child(1),
  .four-item:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .four-item:nth-child(3),
  .four-item:nth-child(4) { padding-top: 32px; }
  .four-item { padding-right: 24px; }
  .four-item:nth-child(even) { padding-right: 0; padding-left: 24px; border-right: 0; }
  .four-item:nth-child(odd)  { border-right: 1px solid var(--line); }
}
/* Hero text stack matches .intro-side: hidden on every tablet, only
   visible at true desktop widths. */
@media (max-width: 1280px) {
  .hero-marks { display: none; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .phase {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 32px 0;
  }
  .phase:last-child { padding-left: 0; border-bottom: 0; }
  .papers { grid-template-columns: 1fr; }
  .four { grid-template-columns: 1fr; }
  .four-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }
  .four-item:last-child { border-bottom: 0; }
}
