/*
 * Section layouts. theme.css holds the tokens and reusable components;
 * this file holds the per-section grids that only appear once or twice.
 */

/* ============================================================ hero */

.mi-hero { position: relative; overflow: hidden; }
.mi-hero__inner {
  position: relative;
  padding-top: clamp(72px, 10vh, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mi-hero__h1 { margin-top: 24px; }
.mi-hero__lead { margin-top: 26px; }
.mi-hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Product HUD, rounded top only so it half-bleeds into the next section. */
.mi-hud {
  position: relative;
  margin-top: clamp(48px, 7vh, 72px);
  width: 100%;
  max-width: 1080px;
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--line-2);
  border-bottom: none;
  background: rgba(15, 17, 20, 0.88);
  backdrop-filter: blur(10px);
  text-align: left;
  padding: clamp(20px, 2.6vw, 34px) clamp(20px, 2.6vw, 34px) clamp(16px, 2vw, 26px);
}
.mi-hud__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mi-hud__note {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: var(--dim-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mi-hud__body { margin-top: 24px; }
.mi-hud__grid { grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.mi-hud__rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mi-hud__title { font-weight: 700; font-size: 15px; }
.mi-hud__period { font-size: 13.5px; }
.mi-hud__figure { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.mi-hud__big { font-weight: 800; font-size: clamp(38px, 3.6vw, 54px); letter-spacing: -0.02em; font-family: var(--display); }
.mi-hud__delta { font-size: 14px; font-weight: 700; color: var(--good); }
.mi-hud__caption { font-size: 14px; color: var(--dim); margin-top: 2px; }
.mi-hud__chart { display: block; width: 100%; height: 110px; margin-top: 18px; }
.mi-hud__line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: drawLine 1.6s var(--ease) 0.25s forwards;
}
.mi-hud__legend { display: flex; gap: 18px; margin-top: 12px; font-size: 14px; color: var(--dim-2); flex-wrap: wrap; }
.mi-hud__legend > span { display: inline-flex; align-items: center; gap: 7px; }
.mi-hud__swatch { width: 14px; height: 3px; border-radius: 2px; }
.mi-hud__rank { margin-top: 6px; }
.mi-hud__foot { font-size: 14.5px; color: var(--dim-2); margin-top: 14px; }

.mi-meter { padding: 12px 0; }
.mi-meter--bordered { border-bottom: 1px solid var(--line); }
.mi-meter--topline { padding: 14px 0; border-top: 1px solid var(--line); }
.mi-meter__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.mi-meter__v { color: var(--dim); font-weight: 500; }

.mi-hud__thead {
  display: flex;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: var(--dim-2);
}
.mi-hud__cited { width: 52px; }
.mi-hud__share { width: 120px; text-align: right; }
.mi-hud__prow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.mi-hud__q { flex: 1; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-hud__chip {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  width: 52px;
  flex-shrink: 0;
}
.mi-hud__sharebar { width: 120px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.mi-hud__sharebar .mi-track { flex: 1; margin-top: 0; }
.mi-hud__pct { font-size: 14.5px; color: var(--dim); width: 32px; text-align: right; }
.mi-hud__sources {
  display: flex;
  align-items: baseline;
  gap: 8px 22px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--dim-2);
}
.mi-hud__sources strong { color: var(--txt); font-weight: 600; }
.mi-hud__move {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.mi-hud__movetag {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--amber);
  width: 38px;
  flex-shrink: 0;
}
.mi-hud__movetext { flex: 1; font-size: 15px; min-width: 240px; text-wrap: pretty; }
.mi-hud__impact { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.mi-hud__time { font-size: 14.5px; color: var(--dim-2); white-space: nowrap; width: 60px; text-align: right; }

/* ============================================================ trusted by */

.mi-trusted { border-top: 1px solid var(--line); }
.mi-trusted__inner { padding-top: clamp(56px, 8vh, 84px); padding-bottom: clamp(56px, 8vh, 84px); }
.mi-trusted__line {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--dim);
  text-align: center;
}
.mi-trusted .mi-logo-wall { margin-top: 30px; }

/* ============================================================ inkwell banner */

.mi-inkwell__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(120deg, #10131C, #0B0D11 60%);
  padding: clamp(28px, 3.6vw, 44px);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.mi-inkwell__copy { position: relative; flex: 1; min-width: 300px; }
.mi-inkwell__h {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.015em;
  margin-top: 12px;
  max-width: 26ch;
  text-wrap: pretty;
}
.mi-inkwell__body { font-size: 15px; line-height: 1.65; color: var(--dim); margin: 10px 0 0; max-width: 58ch; }
.mi-inkwell__shot {
  position: relative;
  flex: 1.2;
  min-width: 340px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0A0C0F;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}
.mi-inkwell__shot img { width: 100%; height: 100%; object-fit: cover; }
.mi-inkwell__cta { position: relative; }

/* ============================================================ the shift */

.mi-shift__panel { gap: clamp(24px, 3vw, 56px); margin-top: 44px; grid-template-columns: 1.1fr 0.9fr; }
.mi-tabs--year { margin-top: 40px; }
.mi-shift__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mi-shift__query {
  margin-top: 20px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}
.mi-shift__query i { color: var(--dim-2); flex-shrink: 0; }
.mi-shift__surface { margin-top: 18px; }
.mi-shift__note { font-size: 14.5px; color: var(--dim-2); margin-top: 12px; }

.mi-skel { padding: 11px 2px; display: flex; flex-direction: column; gap: 8px; }
.mi-skel__top { display: flex; align-items: center; gap: 8px; }
.mi-skel__ad {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--dim-2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 2px 5px;
}
.mi-skel__title { height: 9px; border-radius: 5px; background: rgba(90, 120, 255, 0.55); display: block; }
.mi-skel__body { height: 6px; border-radius: 3px; background: var(--line-2); display: block; margin-top: 7px; }

.mi-snippet { border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; }
.mi-snippet__label {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-bottom: 12px;
}
.mi-thread { display: flex; align-items: center; gap: 10px; padding: 14px 2px; font-size: 14.5px; color: var(--dim); }
.mi-thread__dot { width: 8px; height: 8px; border-radius: 50%; background: #FF4500; flex-shrink: 0; }

.mi-answer { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel-2); padding: 18px 20px; }
.mi-answer__text { font-size: 15.5px; line-height: 1.65; color: var(--dim); margin: 0; }
.mi-answer__text strong { color: var(--txt); font-weight: 600; }
.mi-answer__cites { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.mi-answer__verdict {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--good);
  white-space: nowrap;
}

.mi-shift__verdicts { display: flex; flex-direction: column; justify-content: center; padding: 0 4px; }
.mi-shift__block { border-top: 1px solid var(--line-2); padding: 28px 0; }
.mi-shift__block--closed { border-bottom: 1px solid var(--line-2); }
.mi-shift__back { margin-top: 12px; max-width: 44ch; }
.mi-shift__won {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.015em;
  color: var(--amber);
  margin-top: 10px;
}

/* ============================================================ the OS */

.mi-os-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(44px, 6vh, 64px);
}
.mi-stats-row { display: flex; border-top: 1px solid var(--line); }
.mi-stats-row__cell { padding: 24px 40px 0 0; }
.mi-stats-row__cell + .mi-stats-row__cell { border-left: 1px solid var(--line); padding-left: 40px; }
.mi-stats-row__cell:last-child { padding-right: 0; }
.mi-stats-row__n { font-family: var(--display); font-weight: 800; font-size: 44px; }
.mi-stats-row__suffix { font-size: 24px; color: var(--dim); }
.mi-stats-row__l { font-size: 14.5px; color: var(--dim-2); margin-top: 4px; }
.mi-os__cta { margin-top: 36px; }

.mi-reading__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.mi-reading__tabs { gap: 2px 26px; margin-top: 12px; }
.mi-tab--quiet { font-weight: 500; padding: 8px 0 10px; }
.mi-reading__panel { margin-top: 18px; border-top: 1px solid var(--line); }
.mi-engine { padding: 13px 2px; border-bottom: 1px solid var(--line); }
.mi-engine__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mi-engine__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mi-engine__logo { width: 15px; height: 15px; flex-shrink: 0; object-fit: contain; }
.mi-engine__verdict { font-family: var(--display); font-weight: 800; font-size: 14.5px; letter-spacing: 0.06em; }
.mi-engine__quote {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--dim);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mi-engine__quote strong { color: var(--txt); font-weight: 600; }
.mi-engine .mi-track { margin-top: 10px; }
.mi-reading__score { display: flex; align-items: baseline; gap: 14px; padding-top: 16px; }
.mi-reading__n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 42px;
  letter-spacing: -0.02em;
  color: var(--amber);
  animation: fadeSwap 0.5s both 0.9s;
}
.mi-reading__summary { font-size: 14.5px; color: var(--dim); animation: fadeSwap 0.5s both 0.9s; }

/* ============================================================ practice */

.mi-acc { margin-top: 44px; }
.mi-row-feature__body { margin-top: 14px; max-width: none; }
.mi-row-feature__chips { margin-top: 16px; }

/* ============================================================ gain */

.mi-gain__lead { font-size: 18.5px; color: var(--dim); max-width: 66ch; }
.mi-gain__grid { grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 64px); margin-top: 56px; align-items: start; }
.mi-gain__arg { border-top: 1px solid var(--line-2); padding: 24px 2px; }
.mi-gain__argtop { display: flex; align-items: baseline; gap: 16px; }
.mi-gain__argtitle {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 1.9vw, 26px);
  letter-spacing: -0.015em;
}
.mi-gain__argbody {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dim);
  margin: 16px 0 0 42px;
  max-width: 46ch;
  text-wrap: pretty;
}
.mi-gain__cta { border-top: 1px solid var(--line-2); padding-top: 26px; }
.mi-gain__readerhead { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mi-gain__tabs { gap: 4px 24px; margin-top: 16px; }
.mi-gain__panel { margin-top: 22px; border-top: 1px solid var(--line); }
.mi-gain__instruments { margin-top: 64px; }
.mi-gain__insthead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mi-gain__insth3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; }
.mi-gain__instnote { font-size: 15px; color: var(--dim-2); }
.mi-gain__instruments .mi-card--rows { margin-top: 26px; padding-bottom: 20px; }

/* ============================================================ tools */

.mi-tools__tabs { margin-top: 32px; }
.mi-tools__panel { margin-top: 36px; }
.mi-numeral--tight { width: 22px; font-size: 16px; letter-spacing: -0.005em; font-weight: 700; }
.mi-tools__foot {
  border-top: 1px solid var(--line-2);
  padding-top: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mi-tools__footnote { font-size: 15px; color: var(--dim); max-width: 68ch; }

/* ============================================================ marquee */

.mi-marquee__half { display: flex; align-items: center; gap: 56px; padding-right: 56px; }

/* ============================================================ work */

.mi-work__tabs { margin-top: 32px; }
.mi-case-panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-top: 40px; }
.mi-case {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(135deg, #12151B, #0B0D10);
  padding: clamp(30px, 3.6vw, 48px);
}
.mi-case__glow {
  position: absolute;
  width: 460px;
  height: 460px;
  right: -140px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(255, 199, 46, 0.1), transparent 65%);
  pointer-events: none;
}
.mi-case__client {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.02em;
  margin-top: 16px;
  position: relative;
}
.mi-case__x { color: var(--dim-2); font-weight: 500; }
.mi-case__story {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--dim);
  margin: 18px 0 0;
  max-width: 52ch;
  text-wrap: pretty;
  position: relative;
}
.mi-case__cta { margin-top: 30px; position: relative; }
.mi-case__stats { display: flex; flex-direction: column; justify-content: center; padding: 0 4px; }
.mi-case__stat { border-top: 1px solid var(--line-2); padding: 30px 0; }
.mi-case__stat--closed { border-bottom: 1px solid var(--line-2); }
.mi-case__statn {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 3.8vw, 60px);
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.mi-case__statn--amber { color: var(--amber); }
.mi-case__statl { font-size: 15px; color: var(--dim); margin-top: 6px; }

/* ============================================================ method */

.mi-desk-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  margin-top: 44px;
}
.mi-phase {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 22px;
  padding: 22px 4px;
  border: none;
  border-top: 1px solid var(--line-2);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: var(--display);
  opacity: 0.45;
  transition: opacity 0.35s, padding 0.35s var(--ease);
}
.mi-phase:hover { padding-left: 18px; }
.mi-phase.is-active { opacity: 1; }
.mi-phase__name {
  font-weight: 800;
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 0;
}
.mi-phase__tag { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; color: var(--dim-2); white-space: nowrap; }
.mi-desk-preview { position: sticky; top: 104px; }
.mi-artifact {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: linear-gradient(150deg, rgba(255, 199, 46, 0.09), transparent 52%), var(--panel);
  padding: 26px 26px 24px;
}
.mi-artifact__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mi-artifact__title { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.05em; color: var(--amber); }
.mi-artifact__meta { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.05em; color: var(--dim-2); }
.mi-artifact__rows { margin-top: 20px; }
.mi-artifact__desc {
  border-top: 1px solid var(--line);
  margin: 6px 0 0;
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--dim);
  text-wrap: pretty;
}
.mi-artifact__chips { margin-top: 16px; }

/* ============================================================ voices */

.mi-voices__nav { display: flex; gap: 10px; margin-top: 32px; }
.mi-navbtn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--txt);
  cursor: pointer;
  font-size: 18px;
  transition: border-color 0.2s, color 0.2s;
}
.mi-navbtn:hover { border-color: var(--dim-2); color: var(--amber); }
.mi-quote { margin: 40px 0 0; padding: clamp(32px, 4vw, 56px); }
.mi-quote__text {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 29px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 32ch;
  margin: 0;
  text-wrap: pretty;
}
.mi-quote__foot { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.mi-quote__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mi-quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mi-quote__initial { font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--dim-2); }
.mi-quote__name { font-size: 16px; font-weight: 600; display: block; }
.mi-quote__role { font-size: 14.5px; color: var(--dim); margin-top: 2px; display: block; }

/* ============================================================ resources */

.mi-res-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch;
  margin-top: 44px;
}
/* The paper is deliberately ink-on-cream: a physical object among dark panels. */
.mi-paper {
  background: #EFEAE0;
  color: #16130C;
  border-radius: 6px;
  padding: clamp(30px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.mi-paper a { color: #16130C; }
.mi-paper a:hover { color: #8A6400; }
.mi-paper__masthead { border-top: 3px solid #16130C; padding-top: 5px; }
.mi-paper__rule {
  border-top: 1px solid #16130C;
  padding-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.mi-paper__series,
.mi-paper__vol { font-family: var(--display); font-weight: 800; font-size: 14.5px; letter-spacing: 0.08em; }
.mi-paper__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 3.6vw, 58px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 10ch;
  margin: 0;
}
.mi-paper__body { font-size: 15px; line-height: 1.65; color: #55503F; margin: 16px 0 0; max-width: 44ch; text-wrap: pretty; }
.mi-paper__foot {
  border-top: 1px solid #16130C;
  margin-top: 26px;
  padding-top: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.mi-paper__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; }
.mi-paper__cadence { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.005em; color: #55503F; }

.mi-res-grid__right { display: flex; flex-direction: column; }
.mi-essays { margin-top: 10px; flex: 1; }
.mi-essay {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 19px 2px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease);
}
.mi-essay:hover { padding-left: 12px; color: inherit; }
.mi-essay__title { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; flex: 1; }
.mi-essay__meta { font-size: 14.5px; color: var(--dim-2); white-space: nowrap; }
.mi-essays__more { margin-top: 20px; }
.mi-covered { margin-top: 36px; }
.mi-covered__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mi-covered__note { font-size: 14.5px; color: var(--dim-2); }
.mi-covered__strip { margin-top: 14px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--panel); }
.mi-covered__strip img { width: 100%; height: 100%; object-fit: contain; }

/* ============================================================ press */

.mi-press__wall { margin-top: 34px; }
.mi-press__wall .mi-logo-wall__cell { background: rgba(10, 12, 15, 0.55); }
.mi-press__cards { margin-top: 16px; }
.mi-coverage {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(21, 25, 32, 0.68), rgba(12, 14, 19, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 26px;
  min-height: 210px;
  transition: border-color 0.25s;
}
.mi-coverage:hover { border-color: var(--dim-2); color: inherit; }
.mi-coverage__headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 14px;
  flex: 1;
  text-wrap: pretty;
}
.mi-coverage .mi-textlink { margin-top: 18px; }

/* ============================================================ subscribe */

.mi-sub-grid {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(21, 25, 32, 0.72), rgba(12, 14, 19, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 70px -34px rgba(0, 0, 0, 0.8);
  padding: clamp(34px, 4.4vw, 60px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.mi-sub__h {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
  max-width: 18ch;
  text-wrap: pretty;
}
.mi-sub__lead { font-size: 16.5px; line-height: 1.65; color: var(--dim); margin: 14px 0 0; max-width: 46ch; text-wrap: pretty; }
.mi-sub__form { display: flex; gap: 10px; flex-wrap: wrap; }
.mi-sub__form .mi-input { flex: 1; min-width: 220px; }
.mi-sub__form .mi-btn { padding: 15px 26px; border-radius: 12px; }
.mi-sub__note { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--dim-2); margin-top: 14px; }
.mi-sub__status:not(:empty) { margin-top: 14px; }

/* ============================================================ Q & A */

.mi-demo { margin-top: 56px; padding: clamp(26px, 3vw, 40px); }
.mi-demo__query { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.mi-demo__q { font-size: 15px; font-weight: 500; }
.mi-demo__answer {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
  margin: 20px 0 0;
  color: var(--dim);
  max-width: 56ch;
  text-wrap: pretty;
}
.mi-demo__answer strong { color: var(--txt); font-weight: 700; }
.mi-demo__sources { display: flex; align-items: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.mi-demo__score { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.mi-demo__scoren { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.015em; color: var(--good); }
.mi-demo__scorel { font-family: var(--display); font-weight: 700; font-size: 14.5px; letter-spacing: 0.06em; color: var(--dim-2); }
.mi-demo__foot { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; font-size: 15.5px; color: var(--dim); }
.mi-demo__foot a { color: var(--amber); font-weight: 600; }

/* ============================================================ CTA band */

.mi-cta {
  position: relative;
  overflow: hidden;
  margin-top: var(--rhythm);
  border-top: 1px solid var(--line);
}
.mi-cta__inner {
  position: relative;
  padding-top: clamp(90px, 13vh, 150px);
  padding-bottom: clamp(90px, 13vh, 150px);
  text-align: center;
}
.mi-cta__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--dim);
  max-width: 54ch;
  margin: 24px auto 0;
  text-wrap: pretty;
}
.mi-cta__inner > [data-rv="3"] { margin-top: 38px; }
.mi-cta__note { font-size: 14.5px; color: var(--dim-2); margin-top: 18px; }

/* ============================================================ sub-pages */

.mi-subhero { position: relative; overflow: hidden; }
.mi-subhero__inner {
  position: relative;
  padding-top: clamp(48px, 8vh, 84px);
  padding-bottom: clamp(60px, 8vh, 90px);
}
.mi-subhero__eyebrow {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--amber);
  margin-top: 32px;
}
.mi-subhero .mi-h1 { margin-top: 22px; }
.mi-subhero__lead { margin-top: 28px; }
.mi-subhero__ctas { display: flex; align-items: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.mi-subhero .mi-stats { margin-top: 52px; }

.mi-thesis__grid { grid-template-columns: 1.1fr 1fr; margin-top: 42px; align-items: start; }
.mi-thesis__arg { border-top: 1px solid var(--line-2); padding: 26px 2px; }
.mi-thesis__argtop { display: flex; align-items: baseline; gap: 18px; }
.mi-thesis__no { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; color: var(--dim-2); width: 30px; flex-shrink: 0; }
.mi-thesis__argtitle { font-family: var(--display); font-weight: 800; font-size: clamp(21px, 2vw, 28px); letter-spacing: -0.018em; }
.mi-thesis__argbody { font-size: 16.5px; line-height: 1.72; color: var(--dim); margin: 14px 0 0 48px; max-width: 52ch; text-wrap: pretty; }

.mi-sticky-panel { position: sticky; top: 104px; }
.mi-standard__quote { font-size: clamp(18px, 1.9vw, 23px); line-height: 1.55; margin: 20px 0 0; text-wrap: pretty; color: var(--txt); }
.mi-standard__note {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--dim);
  text-wrap: pretty;
}
.mi-standard__chips { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }

.mi-splithead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mi-splithead__note { font-size: 16.5px; line-height: 1.7; color: var(--dim); max-width: 44ch; margin: 0; text-wrap: pretty; }

.mi-module__body { padding: 4px 4px 34px 48px; max-width: 78ch; }
.mi-module__body p { font-size: 16.5px; line-height: 1.72; color: var(--dim); margin: 0; text-wrap: pretty; }
.mi-module__chips { margin-top: 20px; }

.mi-detail__cards { margin-top: 40px; }
.mi-detail__cardtop { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.mi-detail__tag { font-family: var(--display); font-weight: 800; font-size: 14.5px; letter-spacing: 0.06em; color: var(--amber); }
.mi-detail__h3 { margin-top: 18px; font-size: clamp(21px, 1.9vw, 27px); }
.mi-detail__body { font-size: 16px; line-height: 1.7; color: var(--dim); margin: 14px 0 0; text-wrap: pretty; }
.mi-detail__foot {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dim-2);
  text-wrap: pretty;
}

.mi-process { margin-top: 38px; }
.mi-process__row { align-items: baseline; gap: 26px; padding: 26px 4px; }
.mi-process__name { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.018em; min-width: 230px; }
.mi-process__desc { font-size: 16px; line-height: 1.68; color: var(--dim); flex: 1; min-width: 300px; text-wrap: pretty; }
.mi-process__time { font-family: var(--display); font-weight: 800; font-size: 14.5px; letter-spacing: 0.06em; color: var(--amber); white-space: nowrap; }

.mi-related { margin-top: 18px; }
.mi-related__link { display: flex; align-items: baseline; gap: 20px; padding: 22px 4px; border-top: 1px solid var(--line-2); transition: background 0.25s; }
.mi-related__link:hover { background: var(--panel); color: inherit; }
.mi-related__title { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 1.7vw, 25px); letter-spacing: -0.018em; flex: 1; }

/* ============================================================ contact */

.mi-contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 4vw, 72px); margin-top: 42px; align-items: start; }
.mi-form { display: flex; flex-direction: column; gap: 20px; }
.mi-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mi-form__foot { font-size: 15px; line-height: 1.65; color: var(--dim-2); text-wrap: pretty; }
.mi-form__foot a { color: var(--amber); font-weight: 600; }
.mi-aside__block { border-top: 1px solid var(--line-2); padding: 22px 0; }
.mi-aside__k { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.005em; color: var(--dim-2); }
.mi-aside__v { font-size: 16px; margin-top: 6px; }
.mi-aside__note { font-size: 15px; line-height: 1.65; color: var(--dim); margin-top: 8px; text-wrap: pretty; }

@media (max-width: 640px) {
  .mi-form__row { grid-template-columns: 1fr; }
}

/* ============================================================ legal, editor, search */

.mi-legal__h1 { margin-top: 22px; }
/* A section header that follows a breadcrumb loses its own top rule. */
.mi-secheader--crumbed { border-top: none; padding-top: 22px; }
.mi-legal__updated { margin-top: 24px; }
.mi-legal__body { margin-top: 44px; }
/* The first prose H2 already sits under the lead, so it does not need its own rule. */
.mi-legal__body > h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.mi-editor__thumb { margin: 40px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); }
.mi-editor__body { margin-top: 40px; }

.mi-searchform { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.mi-searchform .mi-input { flex: 1; min-width: 220px; }
.mi-404__search { margin-top: 56px; }

/* ============================================================ small hooks */

.mi-footer__brand { max-width: 44ch; }
.mi-footer__actions { margin-top: 26px; }
.mi-form__status:not(:empty) { margin-top: 18px; display: block; }
.mi-gain__reader { align-self: start; }
.mi-inkwell__tracks { margin-top: 40px; }
.mi-tools__row { align-items: center; }
.mi-cta--sub { margin-top: var(--rhythm-sub); }

/* ============================================================ archives */

.mi-archive { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-top: 44px; }
.mi-archive__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(21, 25, 32, 0.68), rgba(12, 14, 19, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 30px;
  min-height: 240px;
  transition: border-color 0.25s;
}
.mi-archive__card:hover { border-color: var(--dim-2); color: inherit; }
.mi-archive__title { font-family: var(--display); font-weight: 800; font-size: clamp(21px, 1.9vw, 27px); letter-spacing: -0.018em; margin: 14px 0 0; text-wrap: pretty; }
.mi-archive__excerpt { font-size: 15.5px; line-height: 1.7; color: var(--dim); margin: 12px 0 0; flex: 1; text-wrap: pretty; }
.mi-archive__stats { display: flex; gap: 28px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; flex-wrap: wrap; }
.mi-archive__statn { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--amber); }
.mi-archive__statl { font-size: 14px; color: var(--dim-2); margin-top: 2px; max-width: 20ch; }

.mi-pagination { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 48px; }
.mi-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dim);
}
.mi-pagination .page-numbers.current { background: var(--amber); border-color: var(--amber); color: #08090B; }
.mi-pagination .page-numbers:hover { border-color: var(--dim-2); color: var(--amber); }
.mi-pagination .page-numbers.current:hover { color: #08090B; }
