/* Scoped to the reviewed home, company and ecosystem pages. */
.mi-refined {
  --heading-xl: clamp(2.125rem, 3.7vw, 3.5rem);
  --heading-lg: clamp(1.75rem, 2.55vw, 2.5rem);
  --surface: #103028;
  --soft-line: #37584b;
  -webkit-font-smoothing: antialiased;
}
.mi-refined :is(h1, h2, h3) { font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
.mi-refined :is(h2, h3, .sector-name small, .sector-body li) { overflow-wrap: anywhere; }
.mi-refined :is(.mi-section-heading > *, .hero-actions > *, .identity-mark > *) { min-width: 0; max-width: 100%; }
.mi-refined p { text-wrap: pretty; }
.mi-refined .wrap { max-width: 1360px; padding-block: 4rem; }
.mi-refined .eyebrow { font-size: .8125rem; letter-spacing: .1em; margin-bottom: 1rem; }
.mi-refined :is(.chapter-head h1, .main-hero h1) { font-size: var(--heading-xl); line-height: 1.16; letter-spacing: -.035em; }
.mi-refined :is(.section-intro h2, .identity-grid h2, .book-grid h2, .portal-grid h2, .mi-section-heading h2, .contact-band h2) { font-size: var(--heading-lg); line-height: 1.25; }
.mi-refined :is(.chapter-lead, .main-hero .hero-lead) { font-size: 1.0625rem; line-height: 1.8; color: #c5d8ca; }
.mi-refined :is(.action, .header-contact, .inline-action) { font-weight: 600; }
.mi-refined .action { border-radius: .5rem; }
.mi-refined .chapter-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0 5vw; padding-block: 3.75rem; align-items: end; }
.mi-refined .chapter-head .eyebrow { grid-column: 1 / -1; }
.mi-refined .chapter-head h1 { grid-column: 1; }
.mi-refined .chapter-lead { grid-column: 2; margin: 0 0 .25rem; max-width: 40rem; }
.mi-refined .section-intro { margin-bottom: 2rem; }
.mi-refined .section-intro > p:not(.eyebrow) { font-size: 1rem; }
.mi-refined .reading p { font-size: 1.0625rem; line-height: 1.8; }
.mi-refined .reading .intro-text { font-size: 1.125rem; }
.mi-refined .reading .values-line { font-size: 1rem; font-weight: 500; }

/* A dated editorial rail, not an animated counter or an auto-playing carousel. */
.mi-company .history-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 6vw; align-items: start; }
.mi-company .history-section .section-intro { position: sticky; top: 2rem; margin: 0; }
.mi-company .timeline { display: block; position: relative; margin: 0; padding: 0; container-type: inline-size; }
.mi-company .timeline li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 2rem; position: relative; border: 0; padding: .15rem 0 2.5rem 2rem; }
.mi-company .timeline li::before { content: ''; position: absolute; left: 4px; top: .8rem; bottom: -.8rem; width: 1px; background: var(--soft-line); }
.mi-company .timeline li:last-child::before { display: none; }
.mi-company .timeline li::after { content: ''; position: absolute; left: 0; top: .65rem; width: 9px; height: 9px; border: 1px solid #8ea994; border-radius: 50%; background: var(--deep); }
.mi-company .timeline li.is-visited::after { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 5px #dcf66b12; }
.mi-company .timeline .year { font-size: 2.6rem; font-weight: 400; font-variant-numeric: tabular-nums; color: #dcf66b; line-height: 1.1; }
.mi-company .timeline h3 { margin: 0 0 .7rem; font-size: 1.1875rem; line-height: 1.4; }
.mi-company .timeline p { font-size: 1rem; margin: 0; line-height: 1.8; }
.mi-company .timeline li:last-child { padding-bottom: 0; }
.mi-company .purpose-section { border-top: 1px solid var(--soft-line); }
.mi-company .purpose-grid { gap: 1.5rem; }
.mi-company .purpose-grid article { padding: 1.75rem; border: 1px solid var(--soft-line); border-radius: .75rem; background: var(--surface); }
.mi-company .purpose-grid .label { font-size: .875rem; margin-bottom: 1rem; }
.mi-company .purpose-grid h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.35; }
.mi-company .purpose-grid p { font-size: 1rem; line-height: 1.8; }
.mi-company .goals-grid h3 { font-size: 1.2rem; }
.mi-company .book-grid { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 5vw; }
.mi-company .book-cover { width: min(100%, 210px); box-shadow: 8px 12px 0 #163c2226; }
.mi-company .book-grid p { font-size: 1rem; }
.mi-company .book-grid .book-meta { font-size: .875rem; }

/* Clear overview at the left; stable, progressively disclosed detail at the right. */
.mi-ecosystem .chapter-head { border-bottom: 1px solid var(--soft-line); }
.mi-ecosystem .sectors-section { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 2rem 5vw; align-items: start; }
.mi-ecosystem .sectors-section > span[id] { position: absolute; }
.mi-ecosystem .sectors-section > .section-intro { position: sticky; top: 2rem; margin: 0; }
.mi-ecosystem .sectors-section > .section-intro h2 { font-size: clamp(1.75rem, 2.3vw, 2.125rem); }
.mi-ecosystem .sector-list { border: 0; display: grid; gap: .75rem; min-width: 0; }
.mi-ecosystem .sector-row { border: 1px solid var(--soft-line); border-radius: .75rem; background: var(--surface); overflow: clip; }
.mi-ecosystem .sector-row summary,
.mi-ecosystem .sector-row[open] summary { grid-template-columns: 1.6rem minmax(0, 1fr) 1.75rem; gap: .8rem; padding: 1.4rem 1.5rem; align-items: start; }
.mi-ecosystem .sector-name { font-size: 1.1875rem; line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.mi-ecosystem .sector-name small { font-size: 1rem; margin-top: .45rem; line-height: 1.65; color: #bcd0c2; }
.mi-ecosystem .sector-no { padding-top: .2rem; font-size: .8125rem; font-variant-numeric: tabular-nums; color: #bcd0c2; }
.mi-ecosystem .sector-plus { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid #6e8a64; border-radius: 50%; font-size: 1.3rem; line-height: 1; }
.mi-ecosystem .sector-row[open] { background: #15382e; border-color: #8aab6a; }
.mi-ecosystem .sector-row[open] .sector-name { color: var(--lime); }
.mi-ecosystem .sector-body { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding: 0 1.5rem 1.5rem 3.9rem; }
.mi-ecosystem .sector-body p { font-size: 1rem; line-height: 1.8; }
.mi-ecosystem .sector-body ul { display: grid; gap: .2rem; }
.mi-ecosystem .sector-body .brand-line { font-size: .9375rem; line-height: 1.7; margin-top: 1rem; }
.mi-ecosystem .development-note { grid-column: 2; display: block; margin: .5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--soft-line); }
.mi-ecosystem .development-note > span { display: block; margin-bottom: .6rem; font-size: .8125rem; }
.mi-ecosystem .portal-grid { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 5vw; align-items: start; }
.mi-ecosystem .portal-grid nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mi-ecosystem .portal-grid nav a { display: flex; flex-direction: column; align-items: start; justify-content: start; gap: .75rem; padding: 1.5rem; border: 1px solid #bdcebe; border-radius: .75rem; background: #fbfdf9; font-size: 1.375rem; font-weight: 500; }
.mi-ecosystem .portal-grid nav a span { font-size: .9375rem; line-height: 1.6; color: #405b4f; }
.mi-refined .public-note { padding-block: 1.5rem; }
.mi-refined .public-note p { font-size: .875rem; }

/* The homepage keeps its approved structure and third-pillar order. */
.mi-refined.mi-home-compact .main-hero { gap: 5vw; padding-block: 3.5rem; }
.mi-refined.mi-home-compact .main-hero h1 { font-size: clamp(2.125rem, 3.8vw, 3.5rem); }
.mi-refined .identity-mark { border-radius: .75rem; background: #103028; border-color: var(--soft-line); container-type: inline-size; }
.mi-refined .identity-mark p { overflow-wrap: anywhere; }
.mi-refined .heritage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mi-refined .heritage > span { min-width: 0; overflow-wrap: anywhere; }
.mi-refined.mi-home-compact .heritage strong { font-size: 1.5rem; }
.mi-refined .identity-wordmark { font-size: 1.6rem; font-weight: 500; }
.mi-refined .identity-mark > p br { display: initial; }
.mi-refined .heritage strong { font-weight: 400; }
.mi-refined.mi-home-compact .sector-row { border-radius: .65rem; }
.mi-refined.mi-home-compact .sector-name { font-size: 1.1875rem; font-weight: 500; }
.mi-refined.mi-home-compact .sector-row summary, .mi-refined.mi-home-compact .sector-row[open] summary { grid-template-columns: 1.6rem minmax(0, 1fr) 1.6rem; }
.mi-refined.mi-home-compact .mi-activity h3 { font-size: 1.5rem; }
.mi-refined.mi-home-compact .mi-activity-status { font-size: .8125rem; }
.mi-refined .contact-band { padding-block: 3rem; }
.mi-refined .contact-band .contact-links a { font-size: 1.125rem; font-weight: 500; min-height: 44px; }
.mi-company .goals-grid article { min-width: 0; }
.mi-company .goal-number { overflow-wrap: anywhere; }
.mi-refined :is(a, summary):focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.mi-ecosystem .sector-row summary:focus-visible { outline-offset: -4px; }
.mi-refined :is(.paper, .book-feature, .contact-band) a:focus-visible { outline-color: #102d20; }
.mi-refined :is(.sector-name, .chapter-head h1, .main-hero h1, .contact-links a) { overflow-wrap: anywhere; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mi-refined :is(.action, .mi-activity .inline-action, .portal-grid nav a) { transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease; }
  .mi-refined :is(.action, .mi-activity .inline-action, .portal-grid nav a):hover { transform: translateY(-2px); }
  .mi-ecosystem .sector-row summary:hover { background: #193d31; }
}
@media (prefers-reduced-motion: no-preference) {
  .mi-company .timeline li.is-visited .year { animation: mi-year-arrival 550ms cubic-bezier(.22,.7,.25,1) both; }
  .mi-company .timeline li.is-visited::after { animation: mi-marker-arrival 550ms ease-out both; }
  .mi-refined .mi-heritage-visited strong { animation: mi-year-arrival 500ms ease-out both; }
  @keyframes mi-year-arrival { from { transform: translateY(10px); } to { transform: translateY(0); } }
  @keyframes mi-marker-arrival { from { box-shadow: 0 0 0 0 #dcf66b22; } to { box-shadow: 0 0 0 5px #dcf66b12; } }
}
@media (max-width: 980px) {
  .mi-refined .chapter-head { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .mi-refined .chapter-head .eyebrow { margin-bottom: 0; }
  .mi-refined .chapter-lead { grid-column: 1; }
  .mi-company .history-section { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .mi-company .history-section .section-intro { position: static; max-width: 38rem; }
  .mi-ecosystem .sectors-section, .mi-ecosystem .portal-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .mi-ecosystem .sectors-section > .section-intro { position: static; max-width: 40rem; }
  .mi-ecosystem .development-note { grid-column: 1; }
}
@media (max-width: 600px) {
  .mi-refined .wrap { padding: 2.5rem 6vw; }
  .mi-refined .chapter-head { padding-top: 2.25rem; }
  .mi-refined :is(.chapter-head h1, .main-hero h1) { font-size: var(--heading-xl); }
  .mi-refined .chapter-lead { font-size: 1rem; }
  .mi-company .timeline li { grid-template-columns: 4.4rem minmax(0, 1fr); gap: .8rem; padding: .15rem 0 2rem 1.25rem; }
  .mi-company .timeline .year { font-size: 1.9375rem; }
  .mi-company .timeline h3 { font-size: 1.125rem; }
  .mi-company .purpose-grid, .mi-company .book-grid { grid-template-columns: minmax(0, 1fr); }
  .mi-company .purpose-grid article { padding: 1.4rem; }
  .mi-company .book-cover { width: 160px; }
  .mi-ecosystem .sector-row summary, .mi-ecosystem .sector-row[open] summary { grid-template-columns: 1.2rem minmax(0, 1fr) 1.65rem; gap: .6rem; padding: 1.2rem 1rem; }
  .mi-ecosystem .sector-name { font-size: 1.125rem; }
  .mi-ecosystem .sector-body { padding: 0 1rem 1.25rem 2.8rem; }
  .mi-ecosystem .portal-grid nav { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .mi-ecosystem .portal-grid nav a { padding: 1.25rem; }
  .mi-refined .contact-band { padding: 2.5rem 6vw; gap: 1rem; }
  .mi-refined .contact-band .contact-links a { font-size: 1rem; }
  .mi-refined.mi-home-compact .main-hero { padding-block: 2.5rem; }
  .mi-refined.mi-home-compact .mi-section-heading h2 { font-size: var(--heading-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .mi-refined *, .mi-refined *::before, .mi-refined *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Adapt the timeline to actual available text space, including enlarged type. */
@container (max-width: 18em) {
  .mi-company .timeline li { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}
@container (max-width: 14em) {
  .mi-refined.mi-home-compact .identity-mark > img,
  .mi-refined.mi-home-compact .identity-mark > p { grid-column: 1 / -1; grid-row: auto; }
}
