/* =========================================================
   Evidence v2 — efficiency claim + methodology transparency
   ========================================================= */

/* ---------- Efficiency centerpiece card ---------- */
.efficiency-card {
  position: relative;
  margin-top: 0;
  padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1.25rem, 2vw, 1.75rem);
  border-radius: 10px;
  border: 1px solid rgba(232, 200, 118, 0.18);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(232, 200, 118, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(232, 200, 118, 0.035), rgba(232, 200, 118, 0.015));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
/* In the 2-column hero layout, the card's own big-number + prose
   duplicates the left-column intro, so hide them and let the
   editorial visualization be the whole right-hand story. */
.efficiency-card .eff-big,
.efficiency-card .eff-statement,
.efficiency-card .eff-sub { display: none; }
.efficiency-card .eff-head { margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem); }
.efficiency-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(232, 200, 118, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232, 200, 118, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, black, transparent 80%);
}

.eff-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.eff-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.eff-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1px solid rgba(232, 200, 118, 0.35);
  background: rgba(232, 200, 118, 0.08);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eff-pill::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(232, 200, 118, 0.7);
}

/* Big number typography */
.eff-big {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 0.9;
  font-family: 'Fraunces', serif;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.eff-approx {
  font-size: clamp(2.5rem, 4vw + 1rem, 5rem);
  color: var(--gold);
  font-weight: 300;
  margin-top: 0.15em;
  opacity: 0.75;
}
.eff-num {
  font-size: clamp(5rem, 9vw + 1rem, 11rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 0.82;
  font-feature-settings: "lnum";
  text-shadow: 0 6px 60px rgba(232, 200, 118, 0.25);
}
.eff-caption {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.6em;
  margin-left: 0.35rem;
}
.eff-unit-top {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.4rem);
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}
.eff-unit-bot {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 0.45rem;
}

/* Visualization: 6 pages of source material → final SOTA */
.eff-vis {
  position: relative;
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: space-between;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid rgba(232, 200, 118, 0.15);
  border-bottom: 1px solid rgba(232, 200, 118, 0.15);
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}
@media (max-width: 700px) {
  .eff-vis { grid-template-columns: 1fr; gap: 1.5rem; }
}
.eff-vis-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.eff-vis-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.eff-arrow {
  width: clamp(100px, 13vw, 150px);
  height: 40px;
}
.eff-vis-arrow { min-width: 0; }
@media (max-width: 700px) {
  .eff-arrow { transform: rotate(90deg); width: 100px; }
  .eff-vis-arrow { min-width: 0; }
}
.eff-arrow-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
.eff-side-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  line-height: 1.45;
  text-align: center;
}

/* 6 pages fanned out */
.eff-pages {
  position: relative;
  width: clamp(140px, 16vw, 170px);
  height: 108px;
}
.eff-pages .pg {
  position: absolute;
  top: 8px;
  width: 64px;
  height: 84px;
  background: linear-gradient(180deg, #F5F0F2 0%, #E8DDE2 100%);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.45);
  background-image:
    linear-gradient(180deg, #F5F0F2 0%, #E8DDE2 100%),
    repeating-linear-gradient(
      180deg,
      transparent 0 14px,
      rgba(46,13,36,0.18) 14px 15px
    );
  background-blend-mode: normal, multiply;
}
.eff-pages .pg-1 { left: 0;   transform: rotate(-10deg); z-index: 1; }
.eff-pages .pg-2 { left: 14px; transform: rotate(-6deg);  z-index: 2; }
.eff-pages .pg-3 { left: 28px; transform: rotate(-2deg);  z-index: 3; }
.eff-pages .pg-4 { left: 44px; transform: rotate(2deg);   z-index: 4; }
.eff-pages .pg-5 { left: 60px; transform: rotate(6deg);   z-index: 5; }
.eff-pages .pg-6 { left: 76px; transform: rotate(10deg);  z-index: 6; }

/* Final SOTA deliverable */
.eff-sota {
  position: relative;
  width: clamp(110px, 13vw, 140px);
  height: 108px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.eff-sota-doc {
  position: relative;
  width: 104px;
  height: 132px;
  background: linear-gradient(180deg, #FAF5F7 0%, #F0E5EA 100%);
  border: 1px solid rgba(232, 200, 118, 0.7);
  border-radius: 2px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow:
    0 14px 30px -10px rgba(0,0,0,0.55),
    0 0 0 4px rgba(232, 200, 118, 0.08),
    0 0 24px rgba(232, 200, 118, 0.25);
}
.eff-sota-rule {
  height: 3px;
  background: rgba(46,13,36,0.5);
  border-radius: 1px;
  width: 100%;
}
.eff-sota-rule.eff-sota-title {
  height: 5px;
  background: var(--plum-deep);
  width: 60%;
  margin-bottom: 3px;
}
.eff-sota-stamp {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
  background: var(--plum-deep);
  padding: 2px 5px;
  border-radius: 2px;
  border: 1px solid rgba(232, 200, 118, 0.5);
}

.eff-statement {
  color: var(--white);
  font-size: var(--fs-md);
  font-family: 'Fraunces', serif;
  font-weight: 400;
  line-height: 1.5;
  max-width: 58ch;
  margin-bottom: 0.85rem;
}
.eff-sub {
  color: var(--white-dim);
  font-size: 0.94rem;
  line-height: 1.65;
  max-width: 72ch;
}

/* ---------- Methodology trigger (in evidence-intro) ---------- */
.evidence-method-trigger {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.evidence-hero .evidence-method-trigger { align-items: flex-start; }
@media (max-width: 720px) {
  .evidence-hero .evidence-method-trigger { align-items: flex-start; }
}
.method-trigger-kicker {
  margin: 0 !important;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.method-trigger-kicker::before {
  /* override the ::before gold-bar that .evidence-intro .kicker adds */
  display: none !important;
}
.method-trigger-kicker .eff-foot-asterisk {
  color: var(--gold);
  font-weight: 500;
  margin-right: 0.15em;
}
button.method-trigger-btn {
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(232, 200, 118, 0.04);
}
button.method-trigger-btn:hover {
  background: rgba(232, 200, 118, 0.12);
  border-color: rgba(232, 200, 118, 0.55);
}
button.method-trigger-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button.method-trigger-btn[aria-expanded="true"] .method-cta-chevron {
  transform: rotate(180deg);
}

/* ---------- Methodology accordion — summary hidden (triggered externally) ---------- */
.visually-hidden-summary {
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  list-style: none;
}
.visually-hidden-summary::-webkit-details-marker { display: none; }
.mma-badge-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.mma-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(232, 200, 118, 0.45);
  background: rgba(232, 200, 118, 0.08);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.mma-badge svg { flex-shrink: 0; }
.mma-badge-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--white-dim);
  font-style: italic;
}
@media (max-width: 600px) {
  .mma-badge-caption { font-size: 0.66rem; }
}

/* ---------- Methodology accordion ---------- */
.methodology {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  padding-top: 0;
}
/* override the old padding-top rule above */
details.methodology {
  padding: 0;
  border-top: 1px solid var(--border);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
details.methodology > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  transition: color 0.2s ease;
}
details.methodology > summary::-webkit-details-marker { display: none; }
details.methodology > summary:hover .method-cta-label,
details.methodology > summary:hover .method-cta-chevron { color: var(--gold); }

.method-summary-text { flex: 1; min-width: 0; }
.method-summary-text .kicker { margin-bottom: 0 !important; }
.method-summary-text .subsection-title {
  margin-bottom: 0 !important;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.method-summary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  border: 1px solid rgba(232, 200, 118, 0.35);
  background: rgba(232, 200, 118, 0.04);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.method-summary-cta .method-cta-chevron {
  width: 11px;
  height: 11px;
}
.method-cta-label, .method-cta-chevron {
  transition: color 0.2s ease, transform 0.25s ease;
}
.method-cta-chevron {
  transition: transform 0.25s ease;
}
details.methodology[open] .method-cta-chevron {
  transform: rotate(180deg);
}
details.methodology[open] .method-cta-label::before {
  content: "Hide details";
}
details.methodology:not([open]) .method-cta-label::before {
  content: "Show details";
}
.method-cta-label {
  /* text inserted via ::before based on open state */
}

.method-body {
  padding-bottom: clamp(2rem, 4vw, 3rem);
  animation: methodReveal 0.35s ease;
}
@keyframes methodReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.method-head .kicker {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Data tiles: 7 / 600 / 2,428 / 3,452 */
.method-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(232, 200, 118, 0.02);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
@media (max-width: 820px) {
  .method-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.method-tile {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-right: 1px solid var(--border);
  position: relative;
}
.method-tile:last-child { border-right: none; }
@media (max-width: 820px) {
  .method-tile:nth-child(2) { border-right: none; }
  .method-tile:nth-child(1), .method-tile:nth-child(2) { border-bottom: 1px solid var(--border); }
}
.method-tile .mt-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 0.5rem;
}
.method-tile .mt-value {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "lnum";
  margin-bottom: 0.5rem;
}
.method-tile .mt-unit {
  font-size: 0.82rem;
  color: var(--white-dim);
  line-height: 1.4;
}

.method-note {
  color: var(--white-dim);
  font-size: 0.94rem;
  line-height: 1.65;
  max-width: 72ch;
  margin-bottom: 1rem;
}
.method-note-muted { opacity: 0.75; font-size: 0.88rem; }
.method-note-lede {
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* Per-project range visualization */
.method-range {
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(232, 200, 118, 0.015);
}
.range-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.range-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 500;
}
.range-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.range-track {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin: 1rem 3.5% 4rem;
}
/* The 2.6 → 15.8 bar visualization. Min at ~2.6/20*100 = 13%, avg ~30%, max 79%.
   But for visual clarity use proportional positions: min 0%, avg ~25%, max 100%. */
.range-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(232, 200, 118, 0.3) 0%,
    rgba(232, 200, 118, 0.9) 25%,
    rgba(232, 200, 118, 0.5) 100%);
  border-radius: 4px;
}
.range-marker {
  position: absolute;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.range-min { left: 0%; }
.range-avg { left: 25%; }
.range-max { left: 100%; }
.range-marker .rm-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--plum-deep);
  box-shadow: 0 0 0 1px rgba(232,200,118,0.5);
}
.range-marker .rm-dot-avg {
  width: 18px; height: 18px;
  box-shadow: 0 0 0 1px rgba(232,200,118,0.8), 0 0 18px rgba(232,200,118,0.6);
}
.range-marker .rm-num {
  position: absolute;
  top: -2.2rem;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 500;
}
.range-avg .rm-num { font-size: 1.35rem; top: -2.4rem; }
.range-marker .rm-lbl {
  position: absolute;
  top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.range-avg .rm-lbl { color: var(--gold); }

/* Asterisk footnote styling */
.eff-foot-ref {
  font-family: var(--font-mono);
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 0.15em;
}
.eff-foot-ref a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted rgba(232, 200, 118, 0.5);
}
.eff-foot-ref a:hover { border-bottom-color: var(--gold); }
.eff-foot-asterisk {
  color: var(--gold);
  margin-right: 0.35rem;
  font-family: 'Fraunces', serif;
  font-size: 1.2em;
}

.range-hours {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.rh-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
}
.rh-min, .rh-max {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
}
.rh-line {
  display: inline-block;
  width: clamp(60px, 10vw, 120px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 100%);
  opacity: 0.5;
}
