/* ==========================================================================
   D07 — Investors  (Cleanroom theme)
   Hero with updates / data-room CTAs, key metrics, 2026 milestone progress,
   reports & events, ESG snapshot and leadership, updates sign-up and the
   data-room request dialog.
   Behavior: js/pages/d07-investors.js
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.ir-hero {
  position: relative;
  padding: clamp(56px, 8vw, 128px) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.ir-hero__title {
  margin-top: 16px;
  font-size: clamp(52px, 9vw, 148px);
  line-height: .86;
  font-weight: 750;
  font-stretch: 125%;
  letter-spacing: -.045em;
}

/* Below 380px the 52px minimum overflows — keep scaling with the viewport. */
@media (max-width: 379.98px) {
  .ir-hero__title {
    font-size: 13.6vw;
  }
}

.ir-hero__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px 48px;
  margin-top: 32px;
}

.ir-hero__lead {
  max-width: 52ch;
  font-size: 19px;
  color: var(--text-2);
}

.ir-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ir-hero__secondary {
  padding: 0 22px;
}

.ir-hero__secondary .icon {
  color: #0B0D10;
}

/* Annotation layer (footer toggle) */
/* Annotation box: components/annotation.css */

/* --------------------------------------------------------------------------
   Section shell
   -------------------------------------------------------------------------- */
.ir-section {
  position: relative;
  padding: clamp(64px, 7vw, 112px) 0;
  border-bottom: 1px solid var(--line);
}

.ir-section--tinted {
  background: var(--surface-1);
}

/* --------------------------------------------------------------------------
   Key metrics
   -------------------------------------------------------------------------- */
.kpis {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 28px;
}

.kpis > .kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--surface-1);
}

.kpi__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}

.kpi__value {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.kpi__unit {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
}

.kpi__note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Milestone progress
   -------------------------------------------------------------------------- */
.progress-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
}

.progress-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 28px;
}

.progress-score__value {
  font-size: 88px;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -.05em;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}

.progress-score__label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-2);
}

/* 14 segments: met = filled, late = hatched, open = empty */
.progress-bar {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
  margin-top: 18px;
}

.progress-bar__seg {
  height: 18px;
  border: 1px solid var(--text);
  background: transparent;
}

.progress-bar__seg--met {
  background: var(--text);
}

.progress-bar__seg--late {
  background: repeating-linear-gradient(-45deg, var(--text) 0 2px, transparent 2px 5px);
}

.progress-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}

.progress-link {
  display: inline-block;
  margin-top: 24px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 15px;
}

.progress-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.progress-list__row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.progress-list__q {
  font-family: var(--font-mono);
  font-size: 12px;
}

.progress-list__t {
  font-size: 15px;
}

.progress-list__s {
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.progress-list__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-2);
}

.progress-list__note b {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Reports & events
   -------------------------------------------------------------------------- */
.reports {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-top: 28px;
}

.report-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
}

.report-card:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.report-card__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}

.report-card__title {
  font-size: 19px;
  line-height: 1.25;
}

.report-card__text {
  font-size: 14px;
  color: var(--text-2);
}

.report-card__cta {
  margin-top: auto;
  font-size: 14px;
  color: var(--action-text);
}

/* --------------------------------------------------------------------------
   ESG snapshot + leadership
   -------------------------------------------------------------------------- */
.esg {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 28px;
}

.esg__cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
}

.esg__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}

.esg__value {
  font-size: 30px;
  font-weight: 600;
  font-stretch: 125%;
  font-variant-numeric: tabular-nums;
}

.esg__unit {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
}

.esg__note {
  font-size: 13px;
  color: var(--text-2);
}

.leaders-title {
  margin-top: 64px;
}

.leaders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin-top: 28px;
}

.leader {
  border: 1px solid var(--line);
  background: var(--canvas);
}

/* Portrait placeholder (hatched) */
.leader__portrait {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  padding: 10px;
  background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 8px), var(--surface-2);
}

.leader__body {
  padding: 16px;
}

.leader__role {
  font-size: 14px;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Updates sign-up + forward-looking statement
   -------------------------------------------------------------------------- */
.updates {
  position: relative;
  padding: clamp(96px, 11vw, 160px) 0;
}

.updates__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px;
  align-items: end;
}

.updates__title {
  margin-top: 14px;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: .92;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -.04em;
}

.updates__lead {
  margin-top: 18px;
  max-width: 44ch;
  color: var(--text-2);
}

.updates__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Wrapper for the not-yet-sent state; its children lay out in the form's flex column */
.updates__fields {
  display: contents;
}

.updates__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.updates__input {
  flex: 1;
  min-width: 220px;
  height: 56px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: var(--surface-1);
  color: var(--text);
  font: 400 16px var(--font-sans);
}

.updates__submit {
  padding: 0 24px;
  border: 0;
}

.updates__note {
  font-size: 13px;
  color: var(--text-3);
}

.updates__dataroom {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-2);
  text-decoration: underline;
}

.updates__sent {
  padding: 20px;
  border: 1px solid var(--success);
}

.updates__fls-wrap {
  margin-top: 64px;
}

.updates__fls {
  padding: 20px;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.updates__fls b {
  color: var(--text);
}

.updates__fls a,
.updates__fls a:hover {
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Data-room request dialog
   -------------------------------------------------------------------------- */
.dataroom__backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 13, 16, .55);
}

.dataroom__dialog {
  position: fixed;
  z-index: 101;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(92vw, 560px);
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface-1);
}

.dataroom__dialog:focus {
  outline: none;
}

.dataroom__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dataroom__title {
  font-size: 24px;
  font-weight: 600;
  font-stretch: 112%;
}

.dataroom__x {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 20px/normal Arial, sans-serif;
}

.dataroom__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dataroom__intro {
  font-size: 15px;
  color: var(--text-2);
}

.dataroom__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.dataroom__input {
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: var(--canvas);
  color: var(--text);
  font: 400 16px var(--font-sans);
}

.dataroom__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.dataroom__check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #FFB020;
}

.dataroom__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dataroom__cancel {
  height: 48px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 500 15px var(--font-sans);
}

.dataroom__submit {
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-1);
  background: var(--action);
  color: var(--on-action);
  font: 600 15px var(--font-sans);
}

.dataroom__done {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dataroom__done-title {
  font-size: 18px;
}

/* Keeps the browser's default button font, as the original */
.dataroom__close {
  align-self: flex-end;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: transparent;
  color: var(--text);
  font: 13.3333px/normal Arial, sans-serif;
}
