/* Design in depth - decision sheets (not a case study) */

body.depth-notebook {
  --depth-paper: #f3efe8;
  --depth-paper-ruled: #ebe4d8;
  --depth-ink-soft: #4a453f;
  --depth-pin: #8b4513;
  --depth-pin-bg: #f5e6c8;
  --depth-rule-dash: #cfc6b8;
  --depth-aside: #5c5752;
  --depth-call: rgba(196, 68, 54, 0.95);
  --about-rail-floor: var(--depth-paper);
  background: var(--depth-paper);
}

/* --- About mast (shared header across About pages) --- */

.about-mast {
  padding-top: var(--space-xl);
}

.about-mast__hero {
  display: flex;
  gap: 2.5rem;
  align-items: flex-end;
  min-height: 18rem;
}

.about-mast__media {
  flex-shrink: 0;
  width: 11.5rem;
  height: 15.5rem;
  align-self: flex-end;
  overflow: hidden;
}

.about-mast__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-mast__media--diagram,
.about-mast__media--contain {
  width: 11.5rem;
  height: auto;
  align-self: flex-end;
  margin-bottom: 2rem;
  overflow: visible;
}

.about-mast__media--diagram img,
.about-mast__media--diagram svg,
.about-mast__media--contain img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-mast__copy {
  flex: 1;
  min-width: 0;
  padding-bottom: 2rem;
  position: relative;
}

.about-mast__eyebrow {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(calc(-100% - 0.45rem));
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}

.about-mast__copy h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-ink);
}

.about-mast__lead {
  margin: 0;
  max-width: 36rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--color-ink);
}

.about-mast__lead + .about-mast__lead {
  margin-top: 1rem;
}

.about-rail-bar {
  position: sticky;
  top: calc(var(--play-ribbon-h, 0px) + var(--cx-shell-header-h));
  z-index: 90;
}

.about-rail-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
}

.about-rail-bar::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--depth-pin) 5%, color-mix(in srgb, var(--depth-ink-soft) 12%, var(--about-rail-floor))) 0%,
    color-mix(in srgb, var(--depth-ink-soft) 5%, var(--about-rail-floor)) 28%,
    var(--about-rail-floor) 52%,
    var(--about-rail-floor) 100%
  );
}

.about-rail-bar.is-stuck::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: var(--color-rule);
}

.about-rail-bar .about-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
  margin: 0;
  padding: 1.25rem 0.5rem;
  border-top: 1px solid var(--color-rule);
  position: relative;
  z-index: 0;
  background: none;
}

.about-rail-bar .about-rail__label {
  display: none;
}

.about-rail-bar .about-rail a {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Subnav variants — swap one modifier on .about-rail: --wash | --pill | --type | --rules */

.about-rail-bar .about-rail--pill {
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--depth-rule-dash);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 1px 0 rgba(28, 28, 28, 0.04);
}

.about-rail-bar .about-rail--type {
  padding-top: 1rem;
  gap: 0.25rem 0.85rem;
}

.about-rail-bar .about-rail--type .about-rail__label {
  display: block;
  flex: 0 0 100%;
  margin: 0 0 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}

.about-rail-bar .about-rail--type a {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-rail-bar .about-rail--rules {
  border-top: none;
  padding-top: 1.35rem;
  padding-bottom: 1.25rem;
}

.about-rail-bar .about-rail--rules::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--color-rule), var(--color-rule)) top / 100% 1px no-repeat,
    linear-gradient(var(--depth-rule-dash), var(--depth-rule-dash)) bottom / 100% 1px no-repeat;
}

.about-rail-bar .about-rail::before {
  content: '';
  flex: 0 0 auto;
  width: 22.5px;
  height: 9px;
  margin-right: 0.45rem;
  opacity: 0.88;
  background: url("../assets/images/subnav-arrow.png") no-repeat center / 100% 100%;
}

.about-body {
  padding-top: var(--space-lg);
}

.about-agent-callout {
  margin-bottom: 0;
}

.about-agent-callout__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--depth-ink-soft) 18%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--depth-paper) 92%, var(--depth-pin) 8%);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--depth-ink-soft);
}

.about-agent-callout__mark {
  flex-shrink: 0;
  width: 3.75rem;
  height: auto;
  display: block;
}

.about-agent-callout p {
  margin: 0;
  min-width: 0;
}

.about-agent-callout a {
  color: var(--depth-ink);
  font-weight: 600;
}

.about-body:has(.about-biography) > .about-agent-callout + .about-biography {
  padding-top: var(--space-md);
}

.about-mast--brief {
  padding-bottom: var(--space-md);
}

.about-mast__copy--solo {
  max-width: 42rem;
}

.briefing-meta {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
  color: var(--depth-ink-soft);
}

.briefing-meta a {
  color: inherit;
}

.briefing-strength,
.briefing-role {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-rule);
}

.briefing-strength:first-of-type,
.briefing-role:first-of-type {
  margin-top: var(--space-md);
  padding-top: 0;
  border-top: none;
}

.briefing-evidence-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--depth-ink-soft);
  margin: 1.25rem 0 0.5rem;
}

.briefing-evidence {
  list-style: none;
  margin: 0;
  padding: 0;
}

.briefing-evidence li {
  position: relative;
  padding-left: 1.1rem;
}

.briefing-evidence li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 11.25px;
  height: 4.5px;
  transform: translateY(-50%);
  opacity: 0.88;
  background: url("../assets/images/subnav-arrow.png") no-repeat center / 100% 100%;
}

.briefing-evidence li + li {
  margin-top: 0.35rem;
}

.briefing-intro {
  padding-top: 0;
}

.about-body > .section:first-child {
  padding-top: 0;
}

/* About index — tighter sections, hairline dividers between blocks */
.about-body:has(.about-biography) > .section {
  padding-block: var(--space-lg);
}

.about-body:has(.about-biography) > .section:first-child {
  padding-top: 0;
}

.about-body:has(.about-biography) > .section + .section {
  border-top: 1px solid var(--color-rule);
}

#speaking-teaching {
  scroll-margin-top: calc(var(--play-ribbon-h, 0px) + var(--cx-shell-header-h, 5.111rem) + 2.5rem);
}

.about-experience .timeline li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .about-body:has(.about-biography) > .section {
    padding-block: var(--space-md);
  }

  .about-body:has(.about-biography) > .section:first-child {
    padding-top: 0;
  }

  .about-body:has(.about-biography) > .about-agent-callout + .about-biography {
    padding-top: var(--space-sm);
  }

  .about-agent-callout__inner {
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .about-agent-callout__mark {
    width: 3rem;
  }
}

.about-body > .section--tight-bottom {
  padding-bottom: var(--space-md);
}

.about-body > .section--tight-bottom > .container--prose:last-child .figure {
  margin-bottom: 0;
}

.about-body > .section--tight-top {
  padding-top: var(--space-md);
}

.about-body__lead {
  margin: 0 0 var(--space-lg);
  max-width: 42rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--color-ink);
}

.about-standout {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: var(--space-sm) 0 var(--space-lg);
  color: var(--color-ink);
}

@media (max-width: 768px) {
  .about-mast__hero {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    gap: var(--space-lg);
  }

  .about-mast__media {
    width: min(11.5rem, 70vw);
    height: auto;
    aspect-ratio: 361 / 531;
  }

  .about-mast__media--diagram,
  .about-mast__media--contain {
    width: min(11.5rem, 70vw);
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
    margin-bottom: 2rem;
  }

  .about-mast__copy {
    padding-bottom: 0;
  }
}

/* --- About section rail --- */

.about-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.about-rail a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--depth-aside, #5c5752);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.about-rail a:hover {
  color: var(--color-ink);
  border-bottom-color: rgba(28, 28, 28, 0.2);
}

.about-rail a[aria-current="page"] {
  color: var(--color-ink);
  border-bottom-color: var(--depth-pin, #8b4513);
}

/* --- Entry --- */

.depth-entry {
  padding: var(--space-xl) var(--case-gutter, 2rem) var(--space-md);
}

.depth-entry__inner {
  max-width: 42rem;
}

.depth-entry__badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--depth-pin);
  border: 1px dashed var(--depth-pin);
  padding: 0.35rem 0.65rem;
  margin: 0 0 var(--space-md);
  background: var(--depth-pin-bg);
}

.depth-entry__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
}

.depth-entry__lede {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--depth-ink-soft);
  margin: 0 0 var(--space-sm);
}

.depth-entry__aside {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--depth-aside);
  margin: 0;
  max-width: 36rem;
}

.depth-entry__aside a {
  color: inherit;
}

/* --- Jump list --- */

.depth-jumps {
  padding: var(--space-md) var(--case-gutter, 2rem) var(--space-lg);
  border-top: 1px dashed var(--depth-rule-dash);
  border-bottom: 1px dashed var(--depth-rule-dash);
  background: rgba(255, 255, 255, 0.22);
}

.depth-jumps__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
  margin-bottom: 0.65rem;
}

.depth-jumps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  max-width: 56rem;
}

.depth-jumps__list a {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--depth-ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.depth-jumps__list a:hover {
  color: var(--color-ink);
  border-bottom-color: var(--depth-rule-dash);
}

.depth-jumps__list span {
  color: var(--color-ink-faint);
  font-size: 0.78rem;
  margin-right: 0.25rem;
}

/* --- Sheets --- */

.depth-field {
  padding-bottom: var(--space-2xl);
}

.depth-sheet {
  padding: var(--space-xl) var(--case-gutter, 2rem);
  border-top: 1px dashed var(--depth-rule-dash);
  scroll-margin-top: calc(var(--play-ribbon-h, 0px) + var(--cx-shell-header-h, 5.111rem) + 0.85rem);
}

.depth-sheet:nth-child(even) {
  background: rgba(255, 255, 255, 0.28);
}

.depth-sheet__head {
  max-width: 40rem;
  margin-bottom: var(--space-md);
}

.depth-sheet__tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--depth-pin);
  margin-bottom: 0.45rem;
}

.depth-sheet__title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.depth-sheet__later {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--depth-aside);
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: var(--depth-pin-bg);
  border-left: 3px solid var(--depth-pin);
  max-width: 38rem;
}

.depth-sheet__body {
  display: grid;
  gap: var(--space-md);
  align-items: start;
  max-width: 90rem;
}

.depth-sheet--split .depth-sheet__body {
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 24rem);
}

/* Narrow media + wider note - for small constituent figures */
.depth-sheet--split-media-sm .depth-sheet__body {
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  max-width: 52rem;
}

.depth-sheet--wide .depth-sheet__body {
  grid-template-columns: 1fr;
}

.depth-sheet--pair .depth-sheet__body {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .depth-sheet--split .depth-sheet__body,
  .depth-sheet--split-media-sm .depth-sheet__body,
  .depth-sheet--pair .depth-sheet__body {
    grid-template-columns: 1fr;
  }
}

.depth-sheet__note {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--depth-ink-soft);
  margin: 0;
  max-width: 34rem;
}

.depth-sheet__note p {
  margin: 0 0 0.75em;
}

.depth-sheet__note p:last-child {
  margin-bottom: 0;
}

.depth-sheet__note strong {
  font-weight: 600;
  color: var(--color-ink);
}

.depth-sheet__note--wide {
  max-width: 42rem;
}

.depth-footnote {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-ink-faint);
  margin: 0.35rem 0 0;
  max-width: 40rem;
}

/* --- Figures --- */

.depth-figure {
  margin: 0;
  background: var(--depth-paper-ruled);
  border: 1px solid var(--depth-rule-dash);
  padding: 0.75rem;
}

.depth-figure--tilt {
  transform: rotate(0.3deg);
}

.depth-figure--tilt-left {
  transform: rotate(-0.4deg);
}

.depth-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.depth-figure__cap {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-ink-faint);
  margin: 0.55rem 0 0;
  line-height: 1.4;
}

.depth-mark {
  position: relative;
  display: block;
  line-height: 0;
}

.depth-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.depth-mark__ring {
  position: absolute;
  left: calc(var(--cx) - var(--rx));
  top: calc(var(--cy) - var(--ry));
  width: calc(var(--rx) * 2);
  height: calc(var(--ry) * 2);
  border: 2px dashed var(--depth-call);
  border-radius: 50%;
  pointer-events: none;
  background: rgba(196, 68, 54, 0.07);
  box-sizing: border-box;
}

.depth-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (max-width: 700px) {
  .depth-compare {
    grid-template-columns: 1fr;
  }
}

.depth-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.depth-stack .depth-figure {
  padding: 0.5rem;
}

.depth-micro {
  max-width: 36rem;
  background: transparent;
  padding: 0;
  border: 0;
}

.depth-micro img {
  width: 100%;
  height: auto;
  display: block;
}

.depth-figure--flush {
  padding: 0;
  background: transparent;
  border: 0;
}

.depth-figure--flush .depth-figure__cap {
  margin-top: 0.55rem;
  padding-inline: 0;
}

.depth-figure--compound .depth-stack {
  gap: 1.5rem;
}

.depth-figure--compound .depth-stack img {
  width: 100%;
  height: auto;
  display: block;
}

.depth-stack__item .depth-figure__cap {
  margin-top: 0.45rem;
  margin-bottom: 0;
}

.depth-phone {
  max-width: 18rem;
  margin-inline: auto;
}

.depth-phone-lead {
  max-width: 40rem;
  width: 100%;
}

.depth-phone-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-md);
  align-items: start;
  max-width: 44rem;
}

.depth-phone-row .depth-figure {
  padding: 0.5rem;
}

.depth-phone-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.depth-figure__label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--depth-pin);
  margin: 0 0 0.65rem;
}

.depth-phone-col__label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--depth-pin);
  margin: 0;
}

.depth-phone-col .depth-figure {
  margin: 0;
}

@media (max-width: 700px) {
  .depth-phone-row {
    grid-template-columns: 1fr;
  }
}

/* --- Close --- */

.depth-close {
  padding: var(--space-xl) var(--case-gutter, 2rem) var(--space-2xl);
  border-top: 1px dashed var(--depth-rule-dash);
}

.depth-close__inner {
  max-width: 36rem;
}

.depth-close p {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--depth-ink-soft);
  margin: 0 0 var(--space-md);
}

.depth-close .case-back-top {
  max-width: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  justify-content: flex-start;
}

.depth-close__nav {
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.depth-close__nav a {
  margin-right: 1.25rem;
}

@media print {
  .briefing-page,
  .briefing-page .about-body,
  .briefing-page .section,
  .briefing-page .about-mast {
    background: #fff !important;
  }

  .briefing-page .skip-link,
  .briefing-page .site-header,
  .briefing-page .about-rail-bar,
  .briefing-page .site-footer,
  .briefing-page .briefing-meta,
  .briefing-page .about-mast__eyebrow {
    display: none !important;
  }

  .briefing-page .about-mast {
    padding-top: 0;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #c8c4bc;
  }

  .briefing-page .about-mast__hero {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.75rem;
    min-height: 0;
  }

  .briefing-page .about-mast__media {
    flex-shrink: 0;
    width: 6.5rem;
    height: auto;
    margin-bottom: 0;
    align-self: flex-start;
  }

  .briefing-page .about-mast__media img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .briefing-page .about-mast__copy {
    flex: 1;
    min-width: 0;
    padding-bottom: 0;
    position: static;
  }

  .briefing-page .about-mast__copy h1 {
    margin-bottom: 0.75rem;
    font-size: 1.65rem;
    line-height: 1.2;
  }

  .briefing-page .about-mast__lead {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .briefing-page .about-body {
    padding-top: 0;
  }

  .briefing-page .section {
    break-inside: avoid-page;
  }

  .briefing-page .about-pull-quote {
    background: transparent !important;
    border-color: #c8c4bc;
  }

  .briefing-page .briefing-evidence li::before {
    background: none;
    content: '→';
    width: auto;
    height: auto;
    top: 0.15em;
    transform: none;
    opacity: 1;
    font-size: 0.8rem;
    line-height: 1.4;
  }
}
