/* =================================================================
   Mali Richlen Advisory — Page Content
   ----------------------------------------------------------------
   Page-specific CSS shared by long-form editorial content pages:
     - How I Work       (timeline + phase sections)
     - Who I Work With  (profile two-column + closing)
     - About            (portrait + body + arc + quote-band)
     - Contact          (narrow channels list)

   Loads AFTER tokens.css → globals.css → site.css. Anything those
   three already define (nav, footer, .btn, .eyebrow, .rail, .rule,
   .section-head, .intro-*, etc.) is NOT redefined here.
   ================================================================= */


/* =================================================================
   HOW I WORK
   ================================================================= */

.intro-body {
  margin-top: 32px;
  max-width: 640px;
  font-size: var(--fs-body-l);
  line-height: 1.68;
  color: var(--navy-ink);
}

/* -----------------------------------------------------------------
   Process timeline — sits between intro and Phase 1
   ----------------------------------------------------------------- */
.timeline-band {
  background: var(--paper);
  padding: clamp(48px, 6vh, 84px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.timeline-band .container {
  display: grid;
  grid-template-columns: var(--rail-col) 1fr;
  column-gap: clamp(28px, 4vw, 56px);
}
.timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: clamp(40px, 6vw, 88px);
}
.timeline-head .h {
  font-family: var(--display);
  font-size: clamp(20px, 1.6vw, 26px);
  color: var(--navy);
  letter-spacing: -0.012em;
  line-height: 1.15;
}
.timeline-head .h em { font-style: italic; color: var(--forest); font-weight: 400; }
.timeline-head .meta-line,
.meta-line {
  font-family: var(--display);
  font-style: italic;
  color: var(--camel-deep);
  font-size: 15px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 36px 0 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12px; right: 12%;
  top: 48px; height: 1px;
  background: var(--camel);
  opacity: 0.7;
}
.timeline-stop {
  position: relative;
  padding-top: 76px;
  padding-right: 24px;
}
.timeline-stop::before {
  content: "";
  position: absolute;
  top: 36px; left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--forest);
  background: var(--paper);
}
.timeline-stop::after {
  content: "";
  position: absolute;
  top: 47px; left: 11px;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 2px var(--forest);
}
.timeline-stop.is-divide::before { border-color: var(--camel-deep); }
.timeline-stop.is-divide::after {
  background: var(--camel-deep);
  box-shadow: 0 0 0 2px var(--camel-deep);
}
.timeline-stop .ord {
  font-family: var(--body);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}
.timeline-stop .name {
  font-family: var(--display);
  font-size: 21px;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.timeline-stop .name em { font-style: italic; font-weight: 400; color: var(--forest); }
.timeline-stop .desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--navy-ink);
  max-width: 28ch;
}

/* -----------------------------------------------------------------
   Phase sections (alternating ground)
   ----------------------------------------------------------------- */
.phase-section {
  padding: clamp(72px, 10vh, 130px) 0;
  position: relative;
}
.phase-section.alt {
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.phase-section .container {
  display: grid;
  grid-template-columns: var(--rail-col) 1fr;
  column-gap: clamp(28px, 4vw, 56px);
}
.phase-section .phase-body { min-width: 0; }

/* Sticky table-of-contents rail for phase sections */
.phase-rail {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.phase-rail .toc-num,
.toc-num {
  display: inline-flex;
  align-items: center;
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
}
.phase-rail .toc-num::before,
.toc-num::before {
  content: "";
  display: inline-block;
  width: 14px; height: 1px;
  background: var(--camel);
  margin-right: 10px;
  flex-shrink: 0;
}
.phase-rail .toc-link,
.toc-link {
  font-family: var(--body);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease;
  max-width: 14ch;
}
.phase-rail .toc-link:hover,
.toc-link:hover { color: var(--forest); }
.phase-rail .toc-divider,
.toc-divider {
  width: 14px; height: 1px;
  background: var(--line);
  margin: 4px 0;
}

/* Big phase number set as editorial display */
.phase-mark {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 22px;
  margin-bottom: 36px;
}
.phase-mark .ord {
  display: none;
  font-family: var(--display);
  font-size: clamp(64px, 9vw, 130px);
  font-weight: 500;
  line-height: 0.85;
  color: var(--forest);
  letter-spacing: -0.03em;
}
.phase-mark .ord em { font-style: italic; font-weight: 400; }

.ghost-ord {
  position: absolute;
  top: -0.40em;
  left: -0.04em;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(180px, 22vw, 300px);
  line-height: 0.85;
  color: var(--camel);
  opacity: 0.18;
  z-index: -1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}
.phase-section.alt .ghost-ord { color: var(--forest); opacity: 0.10; }

.phase-mark .meta {
  position: relative;
  z-index: 1;
  padding-top: clamp(40px, 6vw, 78px);
  padding-bottom: 14px;
}
.phase-mark .meta .kind {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.phase-mark .meta .title {
  font-family: var(--display);
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.06;
  color: var(--navy);
  letter-spacing: -0.012em;
}
.phase-mark .meta .title em { font-style: italic; font-weight: 400; color: var(--forest); }

.phase-subline {
  max-width: 60ch;
  margin-bottom: 18px;
}
.phase-lead {
  font-size: var(--fs-body-l);
  line-height: 1.62;
  color: var(--navy-ink);
  max-width: 60ch;
  margin: 0 0 44px;
}

/* Two-column block — keyword + amplifier list */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--navy);
  padding-top: 36px;
}
.two-col h4 {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 28px;
  line-height: 1;
}
.two-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.two-col li {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--navy-ink);
  padding: 0;
  border: none;
  position: relative;
}
.two-col li:last-child { border-bottom: none; }
.two-col li::before { display: none; }
.two-col li .lead,
.lead {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
  font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.two-col li .amp,
.amp {
  display: block;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--navy-ink);
  max-width: 38ch;
}

/* Italic closing line, sits under the two-col block. Wraps naturally
   on every viewport — the earlier nowrap/ellipsis treatment from the
   design output truncated the sentence on phones. */
.closing-line {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(15px, 1.15vw, 17.5px);
  color: var(--navy);
  max-width: none;
  line-height: 1.4;
}
p.closing-line em,
.closing-line em {
  color: var(--camel-deep) !important;
  font-weight: 400;
  font-style: italic;
}


/* =================================================================
   WHO I WORK WITH
   ================================================================= */

.profile-section {
  padding: clamp(72px, 10vh, 132px) 0 clamp(72px, 10vh, 132px);
  background: var(--paper);
  position: relative;
  z-index: 2;
}
.profile-grid {
  display: grid;
  grid-template-columns: var(--rail-col) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.profile-cols {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.profile-cols::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  height: 100%;
  background: var(--line-soft);
  justify-self: center;
}
.profile-col { grid-row: 1; }
.profile-col:nth-of-type(1) { grid-column: 1; }
.profile-col:nth-of-type(2) { grid-column: 3; }

.col-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.col-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--camel);
  letter-spacing: -0.02em;
  line-height: 1;
}
.col-eyebrow {
  font-family: var(--body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  line-height: 1;
}
.col-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--navy);
  margin: 0 0 24px;
  max-width: 18ch;
}
.col-h em { font-style: italic; font-weight: 400; color: var(--forest); }
.col-rule {
  border: 0;
  width: 56px; height: 1px;
  background: var(--camel);
  margin: 0 0 28px;
}

.criteria {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.criteria li {
  display: block;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--navy-ink);
  border: 0;
  padding: 0;
}
.criteria .lead {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
  font-size: 17px;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin-bottom: 4px;
}
.criteria .amp {
  display: block;
  font-family: var(--body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--navy-ink);
  max-width: 40ch;
}

/* Closing band — italic navy line before CTA */
.closing-section {
  background: var(--cream-warm);
  border-top: 1px solid var(--line-soft);
  padding: clamp(72px, 10vh, 120px) 0;
}
.closing-grid {
  display: grid;
  grid-template-columns: var(--rail-col) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.closing {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: var(--navy);
  max-width: 32ch;
  margin: 36px 0 36px;
}
.closing em {
  font-style: italic;
  color: var(--camel-deep);
}


/* =================================================================
   ABOUT
   ================================================================= */

.about-section {
  padding: clamp(48px, 7vh, 96px) 0 clamp(72px, 10vh, 130px);
}
.about-grid {
  display: grid;
  grid-template-columns: var(--rail-col) minmax(280px, 380px) 1fr;
  column-gap: clamp(40px, 5vw, 88px);
  align-items: start;
}

.portrait-col {
  position: sticky;
  top: 96px;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}
.portrait-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.portrait-meta .name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.portrait-meta .role {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--camel-deep);
}
.portrait-meta .place {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.about-body { min-width: 0; }
.about-body p {
  margin: 0 0 24px;
  font-size: var(--fs-body-l);
  line-height: 1.65;
  color: var(--navy-ink);
  max-width: 58ch;
}
.about-body p:first-child { margin-top: 0; }
.about-body p em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--camel-deep);
}
.about-body strong { color: var(--navy); font-weight: 500; }

.body-rule {
  width: 100%;
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 18px 0 36px;
}
.body-rule.camel {
  width: 80px;
  background: var(--camel);
  margin: 36px 0 36px;
}

/* Standalone editorial quote band */
.quote-band {
  background: var(--cream-warm);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(80px, 12vh, 160px) 0;
}
.quote-grid {
  display: grid;
  grid-template-columns: var(--rail-col) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.quote {
  margin: 0;
  max-width: none;
  position: relative;
}
.quote .mark {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(96px, 11vw, 168px);
  line-height: 0.4;
  color: var(--camel);
  margin-bottom: 16px;
  user-select: none;
}
.quote p {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--navy);
  max-width: 30ch;
}
.quote p em {
  font-style: italic;
  color: var(--camel-deep);
  font-weight: 400;
}

/* Career arc — vertical timeline */
.arc {
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(72px, 10vh, 120px) 0;
}
.arc-grid {
  display: grid;
  grid-template-columns: var(--rail-col) 1fr;
  gap: clamp(28px, 4vw, 64px);
}
.arc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(36px, 5vh, 56px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--navy);
}
.arc-head .h {
  font-family: var(--display);
  font-size: clamp(28px, 2.6vw, 42px);
  color: var(--navy);
  letter-spacing: -0.014em;
  line-height: 1.08;
  max-width: 22ch;
}
.arc-head .h em { font-style: italic; color: var(--forest); font-weight: 400; }

.arc-list {
  display: grid;
  gap: 0;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 36px;
}
.arc-list::before {
  content: "";
  position: absolute;
  left: 11px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--camel);
  opacity: 0.7;
}
.arc-item {
  position: relative;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: baseline;
}
.arc-item:last-child { border-bottom: 0; }
.arc-item::before {
  content: "";
  position: absolute;
  left: -36px; top: 28px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--forest);
  background: var(--cream);
}
.arc-item::after {
  content: "";
  position: absolute;
  left: -27px; top: 37px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--forest);
}
.arc-item.is-current::before { border-color: var(--camel-deep); }
.arc-item.is-current::after  { background: var(--camel-deep); }

.role-line,
.arc-item .role-line {
  font-family: var(--display);
  font-size: clamp(20px, 1.7vw, 26px);
  color: var(--navy);
  letter-spacing: -0.008em;
  line-height: 1.18;
}
.role-line em,
.arc-item .role-line em { font-style: italic; color: var(--forest); font-weight: 400; }
.role-line .org,
.arc-item .role-line .org {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--camel-deep);
}
.scope,
.arc-item .scope {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--navy-ink);
  max-width: 56ch;
}
.when,
.arc-item .when {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  align-self: start;
  padding-top: 10px;
}

.arc-foot {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}
.credentials,
.arc-foot .credentials {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--navy);
  letter-spacing: -0.005em;
}
.credentials em,
.arc-foot .credentials em {
  color: var(--camel-deep);
  font-style: italic;
}


/* =================================================================
   CONTACT
   ================================================================= */

.contact-subline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.4;
  color: var(--camel-deep);
  max-width: 36ch;
  margin: 28px 0 0;
  letter-spacing: -0.005em;
}

.contact-section {
  padding: clamp(56px, 8vh, 96px) 0 clamp(96px, 14vh, 160px);
  background: var(--paper);
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: var(--rail-col) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.contact-body { max-width: 640px; }
.contact-lede {
  font-family: var(--body);
  font-size: var(--fs-body-l);
  line-height: 1.65;
  color: var(--navy-ink);
  margin: 0 0 36px;
  max-width: 56ch;
}
.contact-cta-wrap { margin: 0 0 56px; }
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  font-size: 14px;
}
.contact-rule {
  border: 0;
  height: 1px;
  background: var(--line-soft);
  margin: 0;
}
.contact-rule.camel {
  width: 80px;
  height: 1px;
  background: var(--camel);
  margin-top: 56px;
}

.contact-channels {
  list-style: none;
  margin: 0;
  padding: 40px 0 0;
  display: grid;
  gap: 20px;
}
.contact-channels li {
  display: grid;
  grid-template-columns: 88px 1fr;
  column-gap: 24px;
  align-items: baseline;
}
.contact-channels .ch-label,
.ch-label {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  line-height: 1;
}
.contact-channels .ch-link,
.ch-link {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.005em;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}
.contact-channels .ch-link:hover,
.ch-link:hover {
  color: var(--camel-deep);
  border-bottom-color: var(--camel);
}
.contact-channels .ch-link .arr,
.ch-link .arr {
  margin-left: 6px;
  color: var(--camel);
  font-style: normal;
}


/* =================================================================
   RESPONSIVE
   ================================================================= */

/* 1100px — about-grid tightens, intro-side is hidden globally in site.css */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: var(--rail-col) 280px 1fr; }
}

/* 820px — single-column stacking for all page-content patterns */
@media (max-width: 820px) {
  /* How I Work */
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .phase-mark { grid-template-columns: 1fr; gap: 12px; }
  .phase-mark .meta { padding-top: 56px; }
  .ghost-ord { font-size: 140px; top: -0.3em; }
  .phase-section .container { grid-template-columns: 1fr; }
  .phase-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
  }
  .phase-rail .toc-divider { display: none; }
  .phase-rail .toc-link { max-width: none; }
  .timeline-band .container { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .timeline::before { display: none; }

  /* Who I Work With */
  .profile-grid { grid-template-columns: 1fr; }
  .profile-cols { grid-template-columns: 1fr; gap: 56px; }
  .profile-cols::before { display: none; }
  .profile-col:nth-of-type(1),
  .profile-col:nth-of-type(2) { grid-column: 1; }
  .profile-col:nth-of-type(2) {
    grid-row: 2;
    padding-top: 56px;
    border-top: 1px solid var(--line-soft);
  }
  .closing-grid { grid-template-columns: 1fr; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait-col { position: static; max-width: 360px; }
  .arc-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .arc-list { padding-left: 32px; }
  .arc-item { grid-template-columns: 1fr; }
  .arc-item .when { padding-top: 4px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-channels li { grid-template-columns: 1fr; gap: 4px; }
}
