/*
 * Clearvoy hero clarity studies
 * Three opt-in, full-browser compositions using the approved visual tokens.
 * No cards, rounded containers, gradients, or decorative motion.
 */

body[data-hero-study] {
  --hero-navy: #0d2730;
  --hero-paper: #f4f7f5;
  --hero-white: #ffffff;
  --hero-ink: #102a33;
  --hero-muted: #617177;
  --hero-rule: #d7e0de;
  --hero-blocked: #d94d2b;
}

body[data-hero-study] .field-opening {
  position: relative;
  height: auto;
  min-height: calc(100vh - 76px);
  overflow: hidden;
}

.hero-clarity {
  position: relative;
  min-height: calc(100vh - 76px);
}

.hero-clarity__media {
  margin: 0;
  overflow: hidden;
  background: #89999d;
}

.hero-clarity__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-clarity__copy {
  margin: 0;
}

.hero-clarity__eyebrow,
.hero-clarity__record-label,
.hero-clarity__summary {
  margin: 0;
}

.hero-clarity__eyebrow,
.hero-clarity__record-label,
.hero-clarity__fact dt {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-clarity h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: none;
}

.hero-clarity__summary {
  max-width: 49ch;
  font-size: 18px;
  line-height: 1.48;
}

.hero-clarity__action {
  width: max-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border: 1px solid currentColor;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero-clarity__record dl,
.hero-clarity__fact dd {
  margin: 0;
}

.hero-clarity__record dl {
  display: grid;
}

.hero-clarity__fact {
  min-width: 0;
}

.hero-clarity__fact dt {
  color: var(--hero-muted);
}

.hero-clarity__fact dd {
  margin-top: 7px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.hero-clarity__fact--state dd,
.hero-clarity__fact--missing dd {
  color: var(--hero-blocked);
}

.hero-clarity__fact--blocking {
  display: none;
}

/* A — Field to Record: one horizontal seam joins the physical scene to its record. */

body[data-hero-study="field-to-record"] .field-opening {
  background: var(--hero-paper);
}

body[data-hero-study="field-to-record"] .hero-clarity {
  display: grid;
  grid-template-rows: minmax(390px, 49vh) 1fr;
}

body[data-hero-study="field-to-record"] .hero-clarity__media {
  grid-row: 1;
}

body[data-hero-study="field-to-record"] .hero-clarity__media img {
  object-position: center 53%;
}

body[data-hero-study="field-to-record"] .hero-clarity__copy {
  width: min(calc(100% - 80px), var(--frame));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  column-gap: 16px;
  align-content: start;
  padding: 36px 0 130px;
  color: var(--hero-ink);
}

body[data-hero-study="field-to-record"] .hero-clarity__eyebrow {
  grid-column: 1 / 5;
  margin-top: 6px;
  color: var(--hero-muted);
}

body[data-hero-study="field-to-record"] .hero-clarity h1 {
  grid-column: 5 / 11;
  font-size: clamp(54px, 4.7vw, 68px);
  line-height: 0.94;
}

body[data-hero-study="field-to-record"] .hero-clarity__summary {
  grid-column: 12 / 17;
  padding-top: 4px;
}

body[data-hero-study="field-to-record"] .hero-clarity__action {
  grid-column: 12 / 17;
  margin-top: 24px;
  color: var(--hero-ink);
}

body[data-hero-study="field-to-record"] .hero-clarity__record {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(calc(100% - 80px), var(--frame));
  min-height: 104px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 148px 1fr;
  align-items: stretch;
  border-top: 1px solid var(--hero-ink);
  border-bottom: 1px solid var(--hero-ink);
  color: var(--hero-ink);
  background: var(--hero-paper);
}

body[data-hero-study="field-to-record"] .hero-clarity__record-label {
  align-content: center;
  display: grid;
  color: var(--hero-muted);
}

body[data-hero-study="field-to-record"] .hero-clarity__record dl {
  grid-template-columns: 1.35fr 0.7fr 0.8fr 0.85fr 1.25fr;
}

body[data-hero-study="field-to-record"] .hero-clarity__fact {
  padding: 21px 20px;
  border-left: 1px solid var(--hero-rule);
}

/* Selected refinement — the record names the blockers instead of summarising them. */

body[data-hero-study="field-to-record-refined"] .field-opening {
  background: var(--hero-paper);
}

body[data-hero-study="field-to-record-refined"] .hero-clarity {
  display: grid;
  grid-template-rows: minmax(400px, 47vh) 1fr;
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__media {
  grid-row: 1;
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__media img {
  object-position: center 53%;
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__copy {
  width: min(calc(100% - 80px), var(--frame));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  column-gap: 16px;
  align-content: start;
  padding: 28px 0 158px;
  color: var(--hero-ink);
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__eyebrow {
  grid-column: 1 / 10;
  margin-bottom: 10px;
  color: var(--hero-muted);
}

body[data-hero-study="field-to-record-refined"] .hero-clarity h1 {
  grid-column: 1 / 10;
  max-width: 760px;
  font-size: clamp(56px, 4.45vw, 64px);
  line-height: 0.95;
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__summary {
  grid-column: 11 / 17;
  grid-row: 2;
  padding-top: 2px;
  font-size: 17px;
  line-height: 1.4;
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__action {
  grid-column: 11 / 15;
  grid-row: 2;
  align-self: end;
  min-height: 44px;
  margin: 0;
  color: var(--hero-ink);
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__record {
  position: absolute;
  left: 50%;
  bottom: 132px;
  width: min(calc(100% - 80px), var(--frame));
  min-height: 136px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 142px 1fr;
  align-items: stretch;
  border-top: 1px solid var(--hero-ink);
  border-bottom: 1px solid var(--hero-ink);
  color: var(--hero-ink);
  background: var(--hero-paper);
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__record-label {
  align-content: center;
  display: grid;
  color: var(--hero-muted);
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__record dl {
  grid-template-columns: 1.12fr 0.65fr 2.35fr 0.88fr 1.25fr;
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__fact {
  min-width: 0;
  padding: 18px 18px;
  border-left: 1px solid var(--hero-rule);
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__fact--missing {
  display: none;
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__fact--blocking {
  display: block;
  padding-left: 22px;
  border-left: 3px solid var(--hero-blocked);
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__fact--blocking dt {
  color: var(--hero-ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__fact--blocking dd {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

body[data-hero-study="field-to-record-refined"] .hero-clarity__fact--blocking b {
  display: inline-block;
  min-width: 48px;
  color: var(--hero-blocked);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* B — Evidence Led: the blocked handoff is the structural spine, not a floating panel. */

body[data-hero-study="evidence-led"] .field-opening,
body[data-hero-study="evidence-led"] .hero-clarity {
  background: var(--hero-navy);
}

body[data-hero-study="evidence-led"] .hero-clarity {
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  color: white;
}

body[data-hero-study="evidence-led"] .hero-clarity__media {
  grid-column: 2;
  grid-row: 1;
  min-height: calc(100vh - 76px);
  border-left: 4px solid var(--hero-blocked);
}

body[data-hero-study="evidence-led"] .hero-clarity__media img {
  object-position: 72% center;
}

body[data-hero-study="evidence-led"] .hero-clarity__copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: clamp(58px, 7vh, 84px) clamp(44px, 5vw, 76px) 308px;
}

body[data-hero-study="evidence-led"] .hero-clarity__eyebrow {
  color: #b8c7ca;
}

body[data-hero-study="evidence-led"] .hero-clarity h1 {
  max-width: 13ch;
  margin-top: 26px;
  font-size: clamp(58px, 5vw, 72px);
  line-height: 0.92;
}

body[data-hero-study="evidence-led"] .hero-clarity__summary {
  margin-top: 34px;
  color: #dce4e1;
}

body[data-hero-study="evidence-led"] .hero-clarity__action {
  margin-top: 28px;
  color: white;
}

body[data-hero-study="evidence-led"] .hero-clarity__record {
  position: absolute;
  left: clamp(44px, 5vw, 76px);
  bottom: 38px;
  width: calc(56% - clamp(88px, 10vw, 152px));
  color: white;
}

body[data-hero-study="evidence-led"] .hero-clarity__record-label {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(220, 228, 225, 0.4);
  color: #b8c7ca;
}

body[data-hero-study="evidence-led"] .hero-clarity__record dl {
  grid-template-columns: 1.2fr 0.75fr 0.75fr;
}

body[data-hero-study="evidence-led"] .hero-clarity__fact {
  padding: 15px 16px 13px 0;
  border-bottom: 1px solid rgba(220, 228, 225, 0.24);
}

body[data-hero-study="evidence-led"] .hero-clarity__fact--identity,
body[data-hero-study="evidence-led"] .hero-clarity__fact--due {
  grid-column: span 2;
}

body[data-hero-study="evidence-led"] .hero-clarity__fact dt {
  color: #9fb1b5;
}

body[data-hero-study="evidence-led"] .hero-clarity__fact dd {
  color: white;
}

body[data-hero-study="evidence-led"] .hero-clarity__fact--state dd,
body[data-hero-study="evidence-led"] .hero-clarity__fact--missing dd {
  color: #ff856d;
}

/* C — Operational Horizon: image and evidence share one asymmetric reading plane. */

body[data-hero-study="operational-horizon"] .field-opening,
body[data-hero-study="operational-horizon"] .hero-clarity {
  background: var(--hero-paper);
}

body[data-hero-study="operational-horizon"] .hero-clarity {
  width: min(calc(100% - 80px), var(--frame));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  grid-template-rows: 290px 1fr;
  column-gap: 16px;
  color: var(--hero-ink);
}

body[data-hero-study="operational-horizon"] .hero-clarity__copy {
  z-index: 2;
  grid-column: 1 / 17;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  column-gap: 16px;
  align-content: center;
  border-bottom: 1px solid var(--hero-ink);
}

body[data-hero-study="operational-horizon"] .hero-clarity__eyebrow {
  grid-column: 1 / 4;
  align-self: start;
  margin-top: 9px;
  color: var(--hero-muted);
}

body[data-hero-study="operational-horizon"] .hero-clarity h1 {
  grid-column: 4 / 12;
  max-width: 790px;
  font-size: clamp(60px, 5.15vw, 74px);
  line-height: 0.92;
}

body[data-hero-study="operational-horizon"] .hero-clarity__summary {
  grid-column: 13 / 17;
  align-self: start;
  padding-top: 4px;
  font-size: 16px;
}

body[data-hero-study="operational-horizon"] .hero-clarity__action {
  grid-column: 13 / 17;
  margin-top: 18px;
  color: var(--hero-ink);
}

body[data-hero-study="operational-horizon"] .hero-clarity__media {
  grid-column: 1 / 12;
  grid-row: 2;
  min-height: 520px;
}

body[data-hero-study="operational-horizon"] .hero-clarity__media img {
  object-position: 54% center;
}

body[data-hero-study="operational-horizon"] .hero-clarity__record {
  grid-column: 12 / 17;
  grid-row: 2;
  min-width: 0;
  padding: 32px 0 0 28px;
  border-left: 1px solid var(--hero-ink);
}

body[data-hero-study="operational-horizon"] .hero-clarity__record-label {
  padding-bottom: 20px;
  color: var(--hero-muted);
}

body[data-hero-study="operational-horizon"] .hero-clarity__record dl {
  grid-template-columns: 1fr;
}

body[data-hero-study="operational-horizon"] .hero-clarity__fact {
  display: grid;
  grid-template-columns: minmax(86px, 0.8fr) 1.4fr;
  gap: 18px;
  align-items: baseline;
  padding: 17px 0;
  border-top: 1px solid var(--hero-rule);
}

body[data-hero-study="operational-horizon"] .hero-clarity__fact dd {
  margin: 0;
}

@media (max-width: 1100px) {
  body[data-hero-study] .hero-clarity h1 {
    font-size: 54px;
  }
}
