/* IPSM — ipsm.ai
 * Tokens are assets/tokens.css verbatim; everything below is the site built on them.
 * Lime rule: --c-accent is a FILL only. Accent-coloured text must use --c-accent-ink,
 * which is deep olive in light mode so it clears 4.5:1 on white. */

/* ---------- tokens ---------- */

:root,
[data-ipsm-theme] {
  --c-accent: #C8F751;

  --r-chip: 6px;
  --r-control: 10px;
  --r-card: 16px;
  --r-panel: 24px;
  --r-pill: 999px;

  --gutter: 44px;

  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-entrance: cubic-bezier(.16, 1, .3, 1);

  --font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Dark is the default ground, and also what an unresolved theme falls back to. */
:root,
[data-ipsm-theme="dark"] {
  --c-bg: #0A0D0B;
  --c-panel: #11150F;
  --c-panel-2: #151A12;
  --c-text: #F1F5E9;
  --c-muted: #A3AD93;
  --c-faint: #7E8A6C;
  --c-border: rgba(241, 245, 233, .12);
  --c-border-2: rgba(241, 245, 233, .16);
  --c-accent-ink: #C8F751;
  --c-accent-line: rgba(200, 247, 81, .5);
  --c-accent-glow: rgba(200, 247, 81, .22);
  --c-accent-wash: rgba(200, 247, 81, .12);
  --c-mark: #C8F751;
  color-scheme: dark;
}

/* Light is not an inversion — panel goes white, accent text goes olive. */
[data-ipsm-theme="light"] {
  --c-bg: #F6F8EE;
  --c-panel: #FFFFFF;
  --c-panel-2: #EEF2E1;
  --c-text: #12160F;
  --c-muted: #4F5844;
  --c-faint: #6B7559;
  --c-border: rgba(18, 22, 15, .14);
  --c-border-2: rgba(18, 22, 15, .2);
  --c-accent-ink: #4A5A26;
  --c-accent-line: rgba(105, 133, 44, .55);
  --c-accent-glow: rgba(150, 190, 60, .3);
  --c-accent-wash: rgba(168, 214, 60, .22);
  --c-mark: #2F3A1B;
  color-scheme: light;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--c-bg);   /* matches body so the cap below is invisible */
}

body {
  margin: 0 auto;
  max-width: 1600px;   /* prototype board was 1120px; stop stretching past this */
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: pretty; }
p { margin: 0; }
img, svg { max-width: 100%; }
a { color: inherit; }

/* One focus style everywhere — the prototype defined none. */
:focus-visible {
  outline: 2px solid var(--c-accent-line);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: var(--r-control);
  background: var(--c-accent);
  color: #0A0D0B;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- shared type roles ---------- */

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.overline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-faint);
}
.overline--accent { color: var(--c-accent-ink); }

.section { border-top: 1px solid var(--c-border); }

.wash {
  background-image: radial-gradient(52% 76% at 22% 30%, var(--c-accent-wash) 0%, rgba(200, 247, 81, 0) 72%);
}

/* ---------- header ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--c-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.logo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -.01em;
}
.logo__dot { color: var(--c-accent-ink); }
.logo__tld { color: var(--c-muted); }

.header__right { display: flex; align-items: center; gap: 28px; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a {
  color: var(--c-muted);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease-standard);
}
.nav a:hover { color: var(--c-text); }
.nav a[aria-current="page"] {
  color: var(--c-text);
  border-bottom-color: var(--c-accent-line);
}

/* Theme toggle: two 24px slots in a pill; the active mode's slot carries the fill. */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  flex: none;
}
.theme-toggle__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-faint);
  transition: background 200ms var(--ease-standard), color 200ms var(--ease-standard);
}
[data-ipsm-theme="light"] .theme-toggle__sun,
[data-ipsm-theme="dark"] .theme-toggle__moon {
  background: var(--c-accent);
  color: #0A0D0B;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--r-control);
  text-decoration: none;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 160ms var(--ease-standard), background 160ms var(--ease-standard);
}

.btn--primary {
  padding: 15px 26px;
  background: var(--c-accent);
  color: #0A0D0B;           /* stays ink in both modes */
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--c-accent);
  box-shadow: 0 0 40px var(--c-accent-glow);
}

.btn--ghost {
  padding: 15px 24px;
  border: 1px solid var(--c-border-2);
  background: transparent;
  color: var(--c-text);
  font-weight: 500;
  font-size: 15px;
}
.btn--ghost:hover { border-color: var(--c-accent-line); }

.btn--nav {
  padding: 9px 16px;
  border: 1px solid var(--c-accent-line);
  background: transparent;
  color: var(--c-accent-ink);
  font-weight: 500;
  font-size: 14px;
  flex: none;
}

/* ---------- hero ---------- */

.hero {
  padding: 88px var(--gutter) 72px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--c-accent-ink);
  flex: none;
}
.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(34px, 6.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.hero h1 em { font-style: normal; color: var(--c-accent-ink); }
.hero__lede {
  margin: 26px 0 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.panel {
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
  padding: 30px;
  background: var(--c-panel);
}
.engagement { display: flex; flex-direction: column; gap: 15px; }
.engagement__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.engagement__label { font-size: 14px; color: var(--c-muted); }
.engagement__value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.35;
  color: var(--c-text);
  text-align: right;
}
.engagement__value--accent { color: var(--c-accent-ink); }
.engagement__rule { height: 1px; background: var(--c-border); margin: 5px 0; }
.engagement__then { font-size: 14px; text-align: right; }

/* ---------- pillar cards ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 34px var(--gutter) 20px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-faint);
}
.section-head__aside { font-size: 13px; color: var(--c-faint); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 var(--gutter) 56px;
}
.card {
  display: block;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 26px;
  background: var(--c-panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms var(--ease-standard);
}
a.card:hover, a.card:focus-visible { border-color: var(--c-accent-line); }

.card__no {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .22em;
  color: var(--c-accent-ink);
}
.card h3 { margin: 16px 0 10px; font-size: 25px; line-height: 1.2; letter-spacing: -.015em; }
.card__body { margin: 0 0 22px; font-size: 14px; line-height: 1.65; color: var(--c-muted); }
.card__lines { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.card__line { display: flex; gap: 10px; }
.card__arrow { color: var(--c-faint); flex: none; }

/* ---------- stage rail ---------- */

.stages { padding: 52px var(--gutter) 44px; }
.stages__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.stages__head h2 { margin: 0; font-size: 32px; line-height: 1.15; letter-spacing: -.02em; }
.stages__hint {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-faint);
}

.rail { display: flex; gap: 10px; align-items: stretch; height: 250px; }
.rail__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-panel);
  padding: 22px;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: flex 380ms var(--ease-entrance),
              border-color 220ms var(--ease-standard),
              background 220ms var(--ease-standard);
}
.rail__item[aria-expanded="true"] {
  flex: 2.5 1 0;
  border-color: var(--c-accent-line);
  background: var(--c-panel-2);
}
.rail__no {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .2em;
  color: var(--c-accent-ink);
}
.rail__item h3 { margin: 12px 0 0; font-size: 19px; line-height: 1.25; }
.rail__body {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-standard);
}
.rail__item[aria-expanded="true"] .rail__body { opacity: 1; pointer-events: auto; }
.rail__body p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-muted);
}

/* ---------- two-column band ---------- */

.duo {
  padding: 56px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.duo h2 { margin: 0 0 22px; font-size: 30px; line-height: 1.18; letter-spacing: -.02em; }
.duo__right { border-left: 1px solid var(--c-border); padding-left: 48px; }
.duo__right h2 { margin-bottom: 18px; }
.duo__lede { margin: 0 0 24px; font-size: 15px; line-height: 1.7; color: var(--c-muted); }

.triggers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-muted);
}
.triggers li { display: flex; gap: 14px; }
.triggers { list-style: none; margin: 0; padding: 0; }
.triggers__dash { color: var(--c-accent-ink); flex: none; }

.people { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.person { display: flex; align-items: center; gap: 11px; }
.identicon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-control);
  overflow: hidden;
  border: 1px solid var(--c-border-2);
  flex: none;
  display: block;
}
.person__name { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.3; }
.person__role {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-faint);
}
.person__more {
  width: 42px;
  height: 42px;
  border-radius: var(--r-control);
  background: var(--c-panel-2);
  border: 1px solid var(--c-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--c-muted);
  flex: none;
}

/* ---------- rules ---------- */

.rules { padding: 56px var(--gutter); }
.rules__grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; }
.rules__intro h2 { margin: 0 0 14px; font-size: 30px; line-height: 1.18; letter-spacing: -.02em; }
.rules__intro .overline { margin-bottom: 14px; display: block; }
.rules__intro p { font-size: 14px; line-height: 1.7; color: var(--c-muted); }
.rules__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rule {
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 24px;
  background: var(--c-panel);
}
.rule__no {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .2em;
  color: var(--c-accent-ink);
}
.rule h3 { margin: 14px 0 8px; font-size: 18px; line-height: 1.25; }
.rule p { font-size: 13.5px; line-height: 1.65; color: var(--c-muted); }

/* ---------- pillar page ---------- */

.page-head { padding: 70px var(--gutter) 56px; }
.page-head h1 {
  margin: 20px 0 0;
  max-width: 800px;
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.page-head__lede {
  margin: 24px 0 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.68;
  color: var(--c-muted);
}

.pillar-body {
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
}
.pillar-body .overline { display: block; margin-bottom: 20px; }

.lines { display: flex; flex-direction: column; gap: 2px; }
.lines__row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--c-border);
}
.lines__row h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.lines__row p { font-size: 14px; line-height: 1.65; color: var(--c-muted); }

.steps {
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 24px;
  background: var(--c-panel);
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
}
.steps li { display: flex; gap: 14px; align-items: baseline; }
.steps__no {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  color: var(--c-accent-ink);
  flex: none;
}
.steps__label { font-size: 14.5px; line-height: 1.5; }

.other-pillars { display: flex; flex-direction: column; gap: 10px; }
.other-pillars .overline { margin: 16px 0 14px; }
.other {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms var(--ease-standard);
}
.other:hover, .other:focus-visible { border-color: var(--c-accent-line); }
.other__pillar {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-faint);
}
.other__title {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}
.other__arrow { color: var(--c-accent-ink); flex: none; }

/* ---------- pillar deep-dive ----------
   Used where one service line needs more than a caption to be judged — the
   investor-relations mandate on the Position page. */

.detail { padding: 48px var(--gutter) 56px; }
.detail__head { max-width: 620px; margin-bottom: 30px; }
.detail__head .overline { display: block; margin-bottom: 14px; }
.detail__head h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.18; letter-spacing: -.02em; }
.detail__head p { font-size: 15px; line-height: 1.7; color: var(--c-muted); }

.detail__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.detail__item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 22px 24px;
  background: var(--c-panel);
}
.detail__item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.detail__item p { font-size: 13.5px; line-height: 1.65; color: var(--c-muted); }

/* Sits directly above the partner row, so it needs its own breathing room. */
.outcomes { margin-bottom: 26px; }

/* ---------- about ---------- */

.about-body {
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.about-body .overline { display: block; margin-bottom: 18px; }
.partners { display: flex; flex-direction: column; gap: 14px; }
.partner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-panel);
}
.partner .identicon { width: 44px; height: 44px; }
.partner__name { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; }
.partner__bio { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.partner--more {
  border: 1px dashed var(--c-border-2);
  background: transparent;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-muted);
}
.partner--more .person__more { width: 44px; height: 44px; font-size: 12px; }

.facts {
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-panel);
  overflow: hidden;
}
.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
}
.facts__row:last-child { border-bottom: 0; }
.facts__key { color: var(--c-muted); }
.facts__val { text-align: right; }
.facts__val--mono { font-family: var(--font-mono); font-weight: 500; font-size: 13px; }
.about-body__note { margin: 20px 0 0; font-size: 14px; line-height: 1.7; color: var(--c-muted); }

/* ---------- insights ---------- */

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 var(--gutter) 56px;
}

/* With four articles a 3-up grid leaves one card stranded on its own row. Four
   across holds roughly the card width the design was drawn at; the 980px rule
   below collapses it to one column, and 1400px catches the squeezed middle. */
@media (min-width: 1400px) {
  .insight-grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1399px) {
  .insight-grid[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
}
.insight {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms var(--ease-standard);
}
.insight:hover, .insight:focus-visible { border-color: var(--c-accent-line); }
.insight__tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
}
.insight h3 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.015em; }
.insight__body { font-size: 14px; line-height: 1.65; color: var(--c-muted); }
.insight__read { margin-top: auto; font-size: 13px; color: var(--c-accent-ink); }

/* ---------- article (shared by the modal and the standalone page) ---------- */

.article__inner { padding: 34px 44px 44px; }
.article h1, .article h2 {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 34px);
  line-height: 1.14;
  letter-spacing: -.025em;
}
.article__meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-faint);
}
.article__lede { margin: 26px 0 0; font-size: 17px; line-height: 1.65; color: var(--c-text); }
.article__rule { margin: 26px 0; height: 1px; background: var(--c-border); }
.article__paras { display: flex; flex-direction: column; gap: 20px; }
.article__paras p { font-size: 15px; line-height: 1.75; color: var(--c-muted); }
.article blockquote {
  margin: 30px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  background: var(--c-panel);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -.01em;
}
.article__foot {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article__foot p { font-size: 14px; line-height: 1.6; color: var(--c-muted); }
.article__foot .btn {
  flex: none;
  padding: 12px 20px;
  font-size: 14px;
  box-shadow: none;
}

.article__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}
.article__tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
}
.article__close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--c-border-2);
  border-radius: 8px;
  background: transparent;
  color: var(--c-muted);
  font: 400 15px/1 var(--font-body);
  cursor: pointer;
  flex: none;
}
.article__close:hover { border-color: var(--c-accent-line); color: var(--c-text); }

/* Standalone article page: same card, centred on the page rather than over a scrim. */
.article-page { padding: 56px var(--gutter) 72px; }
.article-page .article {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-panel);
  background: var(--c-bg);
  overflow: hidden;
}
.article-page .article__bar { position: static; }
.article__back {
  color: var(--c-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.article__back:hover { color: var(--c-text); }

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(6, 8, 6, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 24px;
  overflow: auto;
}
.modal[hidden] { display: none; }
.modal__dialog {
  width: 100%;
  max-width: 720px;
  max-height: 100%;
  overflow: auto;
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-panel);
  background: var(--c-bg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}
body.is-modal-open { overflow: hidden; }

/* ---------- contact block ---------- */

.contact {
  padding: 72px var(--gutter);
  text-align: center;
  background-image: radial-gradient(60% 90% at 50% 50%, var(--c-accent-wash) 0%, rgba(200, 247, 81, 0) 70%);
}
.contact__mark { margin-bottom: 22px; }
.contact h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.contact__lede {
  margin: 0 auto 30px;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-muted);
}
.contact__mailto {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 15px 15px 26px;
  border-radius: var(--r-control);
  background: var(--c-accent);
  color: #0A0D0B;
  text-decoration: none;
  box-shadow: 0 0 40px var(--c-accent-glow);
}
.contact__address {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -.01em;
}
.contact__chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 7px;
  background: rgba(10, 13, 11, .12);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
}
.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.contact__copy {
  padding: 8px 14px;
  border: 1px solid var(--c-border-2);
  border-radius: 8px;
  background: transparent;
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.contact__copy:hover { border-color: var(--c-accent-line); color: var(--c-text); }
.contact__note {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-faint);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--c-border);
  padding: 26px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.6;
  color: var(--c-faint);
}
.footer__left { display: flex; align-items: center; gap: 10px; }
.footer__right { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer__right a { color: var(--c-muted); text-decoration: none; }
.footer__right a:hover { color: var(--c-text); }
.footer__divider { width: 1px; height: 12px; background: var(--c-border-2); }

/* ---------- legal pages ---------- */

.prose { padding: 48px var(--gutter) 72px; max-width: 760px; }
.prose h2 { margin: 36px 0 12px; font-size: 21px; line-height: 1.3; letter-spacing: -.015em; }
.prose p, .prose li { font-size: 15px; line-height: 1.75; color: var(--c-muted); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose a { color: var(--c-accent-ink); }

/* Hamburger — hidden until the nav collapses. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--c-border-2);
  border-radius: 8px;
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
  flex: none;
}

/* ---------- responsive ----------
 * The prototype was a fixed 1120px board with no breakpoints designed. These
 * follow the recommendations in the handoff README. */

@media (max-width: 1080px) {
  .rules__grid { grid-template-columns: 1fr; gap: 32px; }
  .detail__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root, [data-ipsm-theme] { --gutter: 28px; }

  .hero { padding: 64px var(--gutter) 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .pillars, .insight-grid { grid-template-columns: 1fr; }
  .detail__grid { grid-template-columns: 1fr; }
  .pillar-body, .about-body, .duo { grid-template-columns: 1fr; gap: 36px; }
  .duo__right { border-left: 0; padding-left: 0; border-top: 1px solid var(--c-border); padding-top: 36px; }
  .lines__row { grid-template-columns: 1fr; gap: 8px; }
  .rules__cards { grid-template-columns: 1fr; }

  /* Five squeezed columns are unreadable; the rail becomes a vertical accordion. */
  .rail { flex-direction: column; height: auto; gap: 10px; }
  .rail__item { flex: none; }
  .rail__item[aria-expanded="true"] { flex: none; }
  .rail__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 380ms var(--ease-entrance), opacity 220ms var(--ease-standard);
  }
  .rail__body > p { overflow: hidden; }
  .rail__item[aria-expanded="true"] .rail__body { grid-template-rows: 1fr; }

  .modal { padding: 0; }
  .modal__dialog { max-width: none; min-height: 100%; border: 0; border-radius: 0; }
  .article__inner { padding: 28px 24px 36px; }
  .article-page { padding: 28px var(--gutter) 56px; }
  .article-page .article { border-radius: var(--r-card); }
}

@media (max-width: 820px) {
  /* Nav collapses to a details/summary menu; toggle and inquiry stay visible. */
  .header { flex-wrap: wrap; gap: 14px; }
  .header__right { gap: 12px; }
  html.js .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 15;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
  }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 16px;
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--c-accent-line); }
  html.js .nav-toggle { display: inline-flex; }
  .header { position: relative; }
  .nav[hidden] { display: none; }

  .footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stages__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 520px) {
  .engagement__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .engagement__value, .engagement__then { text-align: left; }
  .contact__mailto { flex-direction: column; gap: 10px; padding: 18px; }
  .contact__address { font-size: 14px; }
  .btn--primary, .btn--ghost { width: 100%; }
  .article__foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .header, .footer, .contact, .modal, .nav-toggle { display: none !important; }
}
