.agent-hero{padding:34px 0 0;border-bottom:1px solid var(--line)}
.agent-hero-image{position:relative;min-height:620px;overflow:hidden;border:1px solid var(--line);background:#080e11}
.agent-hero-image>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 34%;filter:saturate(.84) contrast(1.03)}
.agent-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,8,11,.94) 0%,rgba(3,8,11,.68) 37%,rgba(3,8,11,.14) 68%,rgba(3,8,11,.24) 100%),linear-gradient(0deg,rgba(3,8,11,.62),transparent 45%)}
.agent-hero-copy{position:absolute;left:clamp(28px,5vw,74px);bottom:clamp(34px,6vw,76px);z-index:2;max-width:700px}
.agent-hero-copy h1{margin:0;color:#f0f5f6;font-size:clamp(2.8rem,5.7vw,5.8rem);font-weight:500;letter-spacing:-.06em;line-height:.93}
.agent-hero-copy>p:last-child{max-width:650px;margin:20px 0 0;color:#a1b1b6;font-size:.8875rem;line-height:1.7}
.experiment-strip{display:grid;grid-template-columns:repeat(4,1fr);border-left:1px solid var(--line)}
.experiment-strip article{padding:15px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.experiment-strip span,.experiment-strip strong{display:block;font-family:"IBM Plex Mono",monospace}
.experiment-strip span{color:#50656d;font-size:.6175rem}.experiment-strip strong{margin-top:7px;color:#aebdc2;font-size:.7075rem;font-weight:500}

.lab-intro{display:grid;grid-template-columns:.65fr 1fr;gap:70px;padding:50px 0;border-bottom:1px solid var(--line)}
.lab-intro h2,.section-heading h2,.lab-rules h2{margin:0;color:#dce6e9;font-size:clamp(1.45rem,2.7vw,2.3rem);font-weight:500;letter-spacing:-.04em}
.lab-intro>p{margin:0;color:#71858d;font-size:.8275rem;line-height:1.8}

.agents-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-left:1px solid var(--line);border-bottom:1px solid var(--line)}
.agent-card{border-right:1px solid var(--line);background:rgba(4,9,12,.55)}
.agent-portrait{position:relative;aspect-ratio:4/4.5;overflow:hidden;border-bottom:1px solid var(--line)}
.agent-portrait img{width:100%;height:100%;object-fit:cover;object-position:center top;filter:saturate(.82) contrast(1.02)}
.agent-portrait:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,9,12,.68),transparent 35%)}
.agent-portrait>span{position:absolute;left:14px;bottom:12px;z-index:2;color:#d1dcdf;font-family:"IBM Plex Mono",monospace;font-size:.6375rem;letter-spacing:.08em}
.agent-mint .agent-portrait>span{color:#66e1b4}.agent-blue .agent-portrait>span{color:#79bdf1}.agent-amber .agent-portrait>span{color:#efb75d}
.agent-body{padding:18px}
.agent-name-row{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.agent-name-row span,.agent-name-row small{color:#586d75;font-family:"IBM Plex Mono",monospace;font-size:.6175rem}
.agent-name-row h3{margin:5px 0 0;color:#e0e8ea;font-size:1.15rem;font-weight:500;letter-spacing:-.03em}
.agent-name-row small{white-space:nowrap}
.agent-body blockquote{margin:18px 0 0;padding-left:12px;border-left:1px solid #38535d;color:#9cafb5;font-size:.7975rem;line-height:1.6}
.agent-body>p{min-height:88px;margin:15px 0 0;color:#62767e;font-size:.7175rem;line-height:1.65}
.policy-grid{display:grid;grid-template-columns:repeat(2,1fr);margin-top:18px;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.policy-grid>div{padding:10px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.policy-grid span,.policy-grid strong{display:block;font-family:"IBM Plex Mono",monospace}
.policy-grid span{color:#4e636b;font-size:.5675rem}.policy-grid strong{margin-top:5px;color:#9aabb0;font-size:.6775rem;font-weight:500}
.instrument-list{margin-top:14px}.instrument-list>span{color:#4e636b;font-family:"IBM Plex Mono",monospace;font-size:.5875rem}.instrument-list p{margin:6px 0 0;color:#74878e;font-size:.6575rem;line-height:1.55}

.decision-section,.scoreboard-section,.trade-ledger-section,.lab-rules{padding:48px 0;border-bottom:1px solid var(--line)}
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:18px}
.section-heading>span{color:#5b7078;font-family:"IBM Plex Mono",monospace;font-size:.6375rem}
.decision-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.decision-card{min-height:235px;padding:17px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.decision-top{display:flex;justify-content:space-between;gap:12px}
.decision-top span,.decision-top strong{font-family:"IBM Plex Mono",monospace;font-size:.6675rem}.decision-top span{color:#788a91}.decision-top strong{font-weight:500}
.decision-act .decision-top strong{color:#53e0ab}.decision-pass .decision-top strong{color:#d2a955}
.decision-card h3{margin:24px 0 0;color:#e2e9eb;font-size:1.55rem;font-weight:500}
.decision-card>p{margin:6px 0 0;color:#72858c;font-family:"IBM Plex Mono",monospace;font-size:.6275rem;line-height:1.55}
.decision-metrics{display:flex;flex-wrap:wrap;gap:15px;margin-top:22px;padding-top:12px;border-top:1px solid rgba(123,151,161,.09)}
.decision-metrics span{color:#51666e;font-family:"IBM Plex Mono",monospace;font-size:.5875rem}.decision-metrics strong{color:#9aacb1;font-weight:500}
.decision-card>small{display:block;margin-top:20px;color:#4f636b;font-size:.6275rem;line-height:1.6}
.decision-note{margin:14px 0 0;color:#5e7279;font-size:.6875rem;line-height:1.65}

.scoreboard-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.scoreboard-card{padding:18px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.scoreboard-card>span,.scoreboard-card>strong{display:block;font-family:"IBM Plex Mono",monospace}.scoreboard-card>span{color:#74878e;font-size:.6875rem}.scoreboard-card>strong{margin-top:10px;color:#dce6e8;font-size:1.15rem;font-weight:500}
.scoreboard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:20px}.scoreboard-stats small,.scoreboard-stats b{display:block;font-family:"IBM Plex Mono",monospace}.scoreboard-stats small{color:#4e636b;font-size:.5475rem}.scoreboard-stats b{margin-top:4px;color:#899ca2;font-size:.6675rem;font-weight:500}
.experiment-integrity{display:grid;grid-template-columns:190px 1fr;gap:25px;margin-top:18px;padding:16px;border:1px solid rgba(128,224,189,.13)}.experiment-integrity strong{color:#86a59b;font-size:.7675rem;font-weight:500}.experiment-integrity p{margin:0;color:#60747c;font-size:.6975rem;line-height:1.7}

.trade-table-wrap{overflow-x:auto;border:1px solid var(--line)}
.trade-table{width:100%;border-collapse:collapse;min-width:860px}.trade-table th,.trade-table td{padding:12px;border-bottom:1px solid rgba(123,151,161,.09);text-align:left;font-family:"IBM Plex Mono",monospace}.trade-table th{color:#536870;font-size:.5875rem;font-weight:500}.trade-table td{color:#87999f;font-size:.6475rem}.empty-ledger{text-align:center!important;padding:30px!important;color:#5d7178!important}

.lab-rules{display:grid;grid-template-columns:.42fr 1fr;gap:44px}.rules-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.rules-grid article{min-height:145px;padding:15px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.rules-grid span,.rules-grid strong{display:block;font-family:"IBM Plex Mono",monospace}.rules-grid span{color:#4c6169;font-size:.6075rem}.rules-grid strong{margin-top:9px;color:#9aabb0;font-size:.7075rem;font-weight:500}.rules-grid p{margin:9px 0 0;color:#60747c;font-size:.6775rem;line-height:1.6}

.agent-links{display:grid;grid-template-columns:repeat(3,1fr);margin:22px 0 54px;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.agent-links a{position:relative;min-height:110px;padding:17px 42px 17px 17px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);color:inherit;text-decoration:none}.agent-links span,.agent-links strong{display:block}.agent-links span{color:#557078;font-family:"IBM Plex Mono",monospace;font-size:.6675rem}.agent-links strong{margin-top:10px;color:#9fb0b6;font-size:.8875rem;font-weight:500;line-height:1.5}.agent-links i{position:absolute;right:17px;top:50%;color:var(--accent);font-style:normal;transform:translateY(-50%)}
.agent-loading{grid-column:1/-1;padding:25px;border:1px solid var(--line);color:#61757d;font-family:"IBM Plex Mono",monospace;font-size:.7075rem}

/* Homepage Agent Lab promotion */
.agent-lab-promo{display:grid;grid-template-columns:1.15fr .85fr;margin:0 0 1px;border:1px solid var(--line);background:#050a0d}
.agent-promo-image{min-height:370px;overflow:hidden}.agent-promo-image img{width:100%;height:100%;object-fit:cover;object-position:center 34%;filter:saturate(.75) contrast(1.03)}
.agent-promo-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(28px,4vw,60px)}
.agent-promo-copy>span{color:#58ddb0;font-family:"IBM Plex Mono",monospace;font-size:.6575rem;letter-spacing:.1em}.agent-promo-copy h2{margin:9px 0 0;color:#e6edef;font-size:clamp(1.8rem,3.3vw,3.2rem);font-weight:500;letter-spacing:-.05em}.agent-promo-copy>p{margin:16px 0 0;color:#71858d;font-size:.7875rem;line-height:1.7}.agent-promo-names{display:flex;flex-wrap:wrap;gap:13px;margin-top:20px}.agent-promo-names strong{color:#6f838a;font-family:"IBM Plex Mono",monospace;font-size:.6075rem;font-weight:500}.agent-promo-copy>a{align-self:flex-start;margin-top:23px;padding:10px 13px;border:1px solid rgba(84,221,176,.35);color:#64e0b5;font-family:"IBM Plex Mono",monospace;font-size:.6475rem;text-decoration:none}

@media(max-width:1000px){.agents-grid,.decision-grid,.scoreboard-grid{grid-template-columns:1fr}.agent-card{display:grid;grid-template-columns:.38fr .62fr}.agent-portrait{aspect-ratio:auto;min-height:520px}.lab-rules{grid-template-columns:1fr}.rules-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.agent-hero-image{min-height:620px}.experiment-strip{grid-template-columns:repeat(2,1fr)}.lab-intro,.agent-lab-promo{grid-template-columns:1fr}.agent-card{display:block}.agent-portrait{aspect-ratio:4/4.5;min-height:0}.scoreboard-stats{grid-template-columns:repeat(2,1fr)}.experiment-integrity{grid-template-columns:1fr}.agent-promo-image{min-height:300px}}
@media(max-width:560px){.rules-grid,.agent-links{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column}.agent-hero-copy{left:20px;right:20px}}

/* =========================================================
   Wells-O-Meter v2.0.1 — Agent Lab hero cleanup
   Remove group photo, retain text-only hero
   ========================================================= */

.agent-hero {
  padding: 52px 0 0 !important;
}

.agent-hero-image {
  position: relative !important;
  min-height: 430px !important;
  display: flex !important;
  align-items: flex-end !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  background:
    linear-gradient(
      180deg,
      rgba(7,13,17,.98) 0%,
      rgba(4,9,12,1) 100%
    ) !important;
}

.agent-hero-image > img {
  display: none !important;
}

.agent-hero-shade {
  display: none !important;
}

.agent-hero-copy {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2 !important;

  max-width: 980px !important;
  padding: clamp(44px, 6vw, 84px) !important;
}

.agent-hero-copy h1 {
  max-width: 920px !important;
}

.agent-hero-copy > p:last-child {
  max-width: 760px !important;
  color: #7f9299 !important;
}

/* subtle terminal-style background texture */
.agent-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
      rgba(82,106,115,.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(82,106,115,.035) 1px,
      transparent 1px
    );

  background-size: 54px 54px;
  opacity: .34;
}

@media (max-width: 760px) {
  .agent-hero-image {
    min-height: 380px !important;
  }

  .agent-hero-copy {
    padding: 36px 24px !important;
  }
}


/* =========================================================
   Wells-O-Meter v2.0.2
   Agent transparency + readability
   ========================================================= */

/*
   Prominent disclosure beneath the hero.
*/
.agent-disclosure {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;

  padding: 20px 22px;

  border-left: 1px solid rgba(255, 205, 74, .38);
  border-right: 1px solid rgba(255, 205, 74, .18);
  border-bottom: 1px solid rgba(255, 205, 74, .18);

  background: rgba(255, 205, 74, .035);
}

.agent-disclosure-mark {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  border: 1px solid #e4b94f;

  color: #f0c85c;

  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}

.agent-disclosure strong {
  display: block;

  color: #e9c663;

  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .065em;
}

.agent-disclosure p {
  max-width: 1050px;

  margin: 9px 0 0;

  color: #95a7ac;

  font-size: 15px;
  line-height: 1.7;
}


/*
   Every individual trader gets an unmistakable identity label.
*/
.agent-ai-label {
  margin: 0 0 14px;
  padding: 8px 10px;

  border: 1px solid rgba(228, 185, 79, .22);
  background: rgba(228, 185, 79, .025);

  color: #d6b558;

  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .055em;
}


/* =========================================================
   READABILITY
   Increase normal-reading copy throughout Agent Lab
   ========================================================= */

/* Hero descriptive copy */
.agent-hero-copy > p:last-child {
  font-size: 15px !important;
  line-height: 1.75 !important;
}

/* Experiment description */
.lab-intro > p {
  font-size: 15px !important;
  line-height: 1.8 !important;
}

/* Agent biographies */
.agent-body > p {
  font-size: 14px !important;
  line-height: 1.72 !important;
}

/* Agent quote / personality */
.agent-body blockquote {
  font-size: 14px !important;
  line-height: 1.7 !important;
}

/* Instruments */
.instrument-list p {
  font-size: 12px !important;
  line-height: 1.65 !important;
}

/* Decision explanations */
.decision-card > p {
  font-size: 12px !important;
  line-height: 1.65 !important;
}

.decision-card > small {
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.decision-note {
  font-size: 12px !important;
  line-height: 1.7 !important;
}

/* Experiment integrity explanation */
.experiment-integrity p {
  font-size: 13px !important;
  line-height: 1.75 !important;
}

/* Rules descriptions */
.rules-grid p {
  font-size: 13px !important;
  line-height: 1.7 !important;
}

/* Larger policy values */
.policy-grid span {
  font-size: 13px !important;
}

.policy-grid strong {
  font-size: 12px !important;
}

/* Slightly larger agent role/version metadata */
.agent-name-row span,
.agent-name-row small {
  font-size: 13px !important;
}

/* Trade ledger */
.trade-table th {
  font-size: 13px !important;
}

.trade-table td {
  font-size: 12px !important;
}


/*
   Mobile readability
*/
@media (max-width: 760px) {

  .agent-disclosure {
    grid-template-columns: 1fr;
  }

  .agent-disclosure p,
  .lab-intro > p,
  .agent-hero-copy > p:last-child {
    font-size: 16px !important;
  }

  .agent-body > p,
  .agent-body blockquote {
    font-size: 15px !important;
  }
}


/* =========================================================
   Wells-O-Meter — responsive homepage Agent Lab image
   Keeps the trio image proportional as the page grows.
   ========================================================= */

.agent-lab-promo {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  align-items: stretch;
}

.agent-promo-image {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.agent-promo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* Large desktop: prevent the image from becoming excessively tall. */
@media (min-width: 1400px) {
  .agent-promo-image {
    aspect-ratio: 16 / 9;
  }
}

/* Tablet / phone: stack naturally and preserve more vertical image. */
@media (max-width: 760px) {
  .agent-lab-promo {
    grid-template-columns: 1fr;
  }

  .agent-promo-image {
    min-height: 0;
    aspect-ratio: 16 / 11;
  }
}


/* =========================================================
   Wells-O-Meter — homepage Agent Lab container alignment
   Match the primary page-shell width exactly.
   ========================================================= */

.agent-lab-promo {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto 1px;
  box-sizing: border-box;
}


/* Keep explanatory copy together; give the six design rules the wide column. */
.lab-rules{grid-template-columns:minmax(240px,.48fr) minmax(0,1fr);align-items:start}
.lab-rules-intro{min-width:0}
.lab-rules-intro .decision-note{margin:18px 0 0;max-width:42ch}
.lab-rules .rules-grid{min-width:0;grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1000px){
  .lab-rules{grid-template-columns:1fr;gap:24px}
  .lab-rules-intro .decision-note{max-width:72ch}
  .lab-rules .rules-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){.lab-rules .rules-grid{grid-template-columns:1fr}}
