/* Ideal Marketing Solutions — concept stylesheet
   One idea: IMS is the line between two parties. The hairline "introduction" rule
   (dot — line — dot) carries the whole site: wordmark, dividers, diagram, status marks. */

:root {
  --navy: #14263D;
  --navy-70: #43536a;
  --navy-50: #6b7889;
  --teal: #007F7A;
  --teal-ink: #0A6B67;      /* teal on paper, AA for small text */
  --teal-tint: #E3F1F0;
  --teal-line: #9ED1CE;
  --paper: #F6F3EC;
  --paper-line: #E3DED3;
  --white: #FFFFFF;
  --line: #D9DEE5;
  --gold: #C9A24A;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1200px;
  --gutter: 24px;
  --section: clamp(64px, 9vw, 120px);
  --radius: 4px;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
svg { display: block; }

a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  font-variation-settings: "opsz" 72;
}
h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); font-weight: 400; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.6rem); }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--navy-70); max-width: 38em; }
.measure { max-width: 62ch; }
.small { font-size: 0.9375rem; }
.muted { color: var(--navy-70); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-ink); margin: 0 0 20px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--teal);
  box-shadow: -1px 0 0 0 var(--teal);
}

/* ---------- layout ---------- */

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--paper { background: var(--paper); }
.section--tint { background: var(--teal-tint); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lede, .section--navy .muted { color: #c7d0dc; }
.section--navy .eyebrow { color: #8fd3cf; }
.section--navy .eyebrow::before { background: #8fd3cf; }
.section--navy a { color: #a9e2de; }

.grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.grid--split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }

.section-head { max-width: 46em; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { margin-bottom: 0; }
.section-head--row {
  max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px;
}
.section-head--row > div { max-width: 46em; }

/* The introduction rule: dot — line — dot */
.rule {
  position: relative; height: 1px; background: var(--line); margin: 0;
  border: 0;
}
.rule::before, .rule::after {
  content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
}
.rule::before { left: 0; } .rule::after { right: 0; }
.rule--navy { background: #2f4158; }

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

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand__mono {
  font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1;
  letter-spacing: -0.02em; position: relative; padding-bottom: 7px;
  font-variation-settings: "opsz" 72;
}
.brand__mono::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--teal);
}
.brand__mono::before {
  content: ""; position: absolute; right: -2px; bottom: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal);
}
.brand__name {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.25; color: var(--navy); border-left: 1px solid var(--line); padding-left: 14px;
}
.brand__name span { display: block; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  color: var(--navy); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 8px 0; position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--teal);
  transition: right 160ms ease;
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { right: 0; }
.nav__list a[aria-current="page"] { color: var(--teal-ink); }

.menu { display: none; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid var(--navy);
  background: var(--navy); color: #fff; font: inherit; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--teal { background: var(--teal); border-color: var(--teal); }
.btn--teal:hover { background: var(--navy); border-color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--outline-light { background: transparent; border-color: #6e8097; color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-more {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  color: var(--teal-ink); font-size: 0.95rem;
}
.link-more::after { content: "\2192"; transition: transform 140ms ease; }
.link-more:hover::after { transform: translateX(3px); }

/* ---------- status marks ---------- */

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy-70); white-space: nowrap;
}
.status::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--teal);
  background: var(--teal); box-sizing: border-box;
}
.status--developing::before { background: linear-gradient(90deg, var(--teal) 50%, transparent 50%); }
.status--planned::before { background: transparent; border-color: var(--navy-50); }
.status--planned { color: var(--navy-70); }

.key { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.key .status { font-size: 0.72rem; }

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

.hero { padding-block: clamp(48px, 7vw, 104px) clamp(48px, 6vw, 88px); }
.hero .grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.diagram--m { display: none; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 0; }

.diagram { width: 100%; max-width: 620px; margin-inline: auto; font-family: var(--sans); }
.diagram text { fill: var(--navy); font-size: 13px; font-weight: 500; }
.diagram .d-label { fill: var(--navy-70); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.diagram .d-ims { fill: var(--navy); font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.diagram .d-path { fill: none; stroke: var(--teal-line); stroke-width: 1.25; }
.diagram .d-path--main { stroke: var(--teal); }
.diagram .d-dot { fill: var(--teal); }
.diagram .d-node { fill: #fff; stroke: var(--line); }
.diagram .d-core { fill: #fff; stroke: var(--navy); stroke-width: 1.25; }

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

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.card {
  padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.card + .card { padding-left: 28px; border-left: 1px solid var(--line); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--navy-70); }
.card .status { margin-bottom: 2px; }
.card .link-more { margin-top: auto; padding-top: 8px; }
.card__num {
  font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--teal); font-weight: 400;
  font-variation-settings: "opsz" 72;
}

/* ---------- the routes ledger ---------- */

.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { border-bottom: 1px solid var(--line); }
.ledger a {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr);
  gap: 24px; align-items: center; padding: 26px 0; text-decoration: none; color: var(--navy);
  transition: padding-left 160ms ease;
}
.ledger a:hover { padding-left: 10px; }
.ledger h3 { margin: 0; font-size: 1.3rem; }
.ledger p { margin: 0; color: var(--navy-70); font-size: 1rem; }
.ledger .link-more { justify-self: end; }
.ledger a:hover .link-more::after { transform: translateX(3px); }

/* ---------- steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(step); font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--teal);
  font-variation-settings: "opsz" 72; padding-top: 4px;
}
.steps h3 { margin: 0 0 6px; font-size: 1.3rem; }
.steps p { margin: 0; color: var(--navy-70); }
.section--paper .steps li { border-color: var(--paper-line); }

/* ---------- figure / images ---------- */

.figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.figure--tall img { aspect-ratio: 4 / 5; }
.figure--square img { aspect-ratio: 1 / 1; }
.figure--tint::after {
  content: ""; position: absolute; inset: 0; background: var(--navy); opacity: 0.14; mix-blend-mode: multiply;
  pointer-events: none;
}
.figure figcaption {
  font-size: 0.8rem; color: var(--navy-70); padding-top: 10px;
}

/* ---------- opportunity rows ---------- */

.opps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.opp {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.opp .btn { white-space: normal; text-align: center; }
.opp h3 { margin: 10px 0 0; }
.opp p { margin: 0 0 0.6em; color: var(--navy-70); }
.opp p:last-child { margin-bottom: 0; }
.opp .btn { justify-self: end; }
.section--paper .opps, .section--paper .opp { border-color: var(--paper-line); }

.notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 24px; border: 1px solid var(--teal-line); background: var(--teal-tint); border-radius: var(--radius);
  color: var(--navy);
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice p { margin: 0; }
.notice strong { font-weight: 600; }

/* ---------- partner sections ---------- */

.parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.party { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.party:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.party h3 { margin: 0 0 8px; }
.party p { margin: 0 0 12px; color: var(--navy-70); }
.party p:last-of-type { margin-bottom: 0; }
.party .link-more { margin-top: 14px; }
.party .eyebrow { margin-bottom: 10px; }

/* ---------- people ---------- */

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.person { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.person + .person { padding-left: 32px; border-left: 1px solid var(--line); }
.person h3 { margin: 0 0 4px; }
.person .role { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px; }
.person p { color: var(--navy-70); margin-bottom: 0; }
.placeholder {
  display: inline-block; border: 1px dashed var(--navy-50); color: var(--navy-70);
  padding: 2px 8px; border-radius: 3px; font-size: 0.85rem; background: #fff;
}
.section--paper .placeholder { background: #fff; }

/* ---------- principles list ---------- */

.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.principles li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-top: 10px; }
.principles strong { display: block; font-weight: 600; margin-bottom: 2px; }
.principles span { color: var(--navy-70); }

/* ---------- CTA band ---------- */

.cta { }
.cta .grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.route {
  display: flex; flex-direction: column; gap: 10px; padding: 24px 22px;
  border: 1px solid #3a4c64; border-radius: var(--radius); text-decoration: none; color: #fff;
  background: #1b3049; transition: border-color 140ms ease, background 140ms ease;
}
.route:hover { border-color: #8fd3cf; background: #203751; color: #fff; }
.route .status { color: #8fd3cf; }
.route .status::before { border-color: #8fd3cf; background: #8fd3cf; }
.route strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.1; font-variation-settings: "opsz" 72; }
.route span { color: #c7d0dc; font-size: 0.95rem; }
.route em { font-style: normal; color: #a9e2de; font-weight: 600; font-size: 0.9rem; margin-top: auto; padding-top: 8px; }
.route em::after { content: " \2192"; }

/* ---------- page intro ---------- */

.intro { padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.intro h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); max-width: 14em; text-wrap: pretty; }
.intro .grid--split { align-items: end; }
.intro .lede { margin-bottom: 0; }

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

.route-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.route-picker a {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy); background: #fff;
  transition: border-color 140ms ease;
}
.route-picker a:hover, .route-picker a[aria-current="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.route-picker strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; font-variation-settings: "opsz" 72; }
.route-picker span { color: var(--navy-70); font-size: 0.95rem; }

.form { display: grid; gap: 22px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 22px; }
.form legend { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-bottom: 14px; padding: 0; font-variation-settings: "opsz" 72; }
.form .extras { padding: 24px; border: 1px solid var(--teal-line); background: var(--teal-tint); border-radius: var(--radius); }
.form .extras legend { font-size: 1.1rem; float: left; width: 100%; margin-bottom: 4px; }
.form .extras legend + p { clear: both; }
.form .extras p.small { margin: 0 0 4px; color: var(--navy-70); }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label small { font-weight: 400; color: var(--navy-70); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--navy); padding: 12px 14px; border: 1px solid #aeb8c6;
  border-radius: var(--radius); background: #fff; width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%2314263D' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.95rem; color: var(--navy-70); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--teal); }
.form-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 8px; }
.form-foot p { margin: 0; font-size: 0.9rem; color: var(--navy-70); }
.form-success {
  padding: 28px; border: 1px solid var(--teal); background: var(--teal-tint); border-radius: var(--radius);
}
.form-success h2 { font-size: 1.6rem; margin-bottom: 8px; }
.form-success p { margin: 0; }

.details { display: grid; gap: 0; border-top: 1px solid var(--line); }
.details div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.details dt { font-weight: 600; }
.details dd { margin: 0; color: var(--navy-70); }
.contact-aside { position: sticky; top: 100px; }
.contact-aside h2 { font-size: 1.5rem; }
.contact-aside .notice { margin-top: 24px; }

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

.footer { background: var(--navy); color: #c7d0dc; padding-block: 56px 32px; font-size: 0.9rem; }
.footer a { color: #e8edf3; text-decoration: none; }
.footer a:hover { color: #a9e2de; text-decoration: underline; }
.footer .brand { color: #fff; }
.footer .brand__name { color: #fff; border-color: #3a4c64; }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)) minmax(0, 3fr); gap: 40px; padding-bottom: 40px; }
.footer__top p { margin: 18px 0 0; max-width: 34em; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__legal { padding-top: 28px; display: grid; gap: 12px; font-size: 0.85rem; color: #aab5c3; }
.footer__legal p { margin: 0; }
.footer .placeholder { border-color: #6e8097; color: #c7d0dc; background: transparent; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .grid--3, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opp { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .opp .btn { justify-self: start; }
  .ledger a { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ledger .link-more { justify-self: start; }
}

@media (max-width: 820px) {
  :root { --section: clamp(48px, 8vw, 72px); }
  body { font-size: 1rem; }
  .hero .grid, .grid--2, .grid--split, .grid--split-rev, .cta .grid { grid-template-columns: minmax(0, 1fr); }
  .grid--3, .cards, .parties, .people, .routes, .route-picker { grid-template-columns: minmax(0, 1fr); }
  .card, .card + .card, .party, .party:nth-child(even), .person, .person + .person { padding-left: 0; padding-right: 0; border-left: 0; }
  .section-head--row { flex-direction: column; align-items: start; gap: 16px; }
  .field--2 { grid-template-columns: minmax(0, 1fr); }
  .form-foot { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-aside { position: static; }
  .details div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero { padding-top: 40px; }
  .hero .diagram { margin-top: 8px; }
  .diagram--d { display: none; }
  .diagram--m { display: block; max-width: 420px; }
  .diagram--m text { font-size: 12.5px; }
  .diagram--m .d-label { font-size: 10px; }
  .diagram--m .d-ims { font-size: 26px; }
  .intro .grid--split { gap: 16px; }

  /* header: brand + menu button; the menu is a native <details> so it works without JavaScript */
  .header .wrap { min-height: 64px; }
  .brand__name { display: none; }
  .nav { gap: 0; }
  .nav > .btn { display: none; }
  .nav__list { display: none; }
  .menu { display: block; }
  .menu summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 0.95rem; padding: 10px 0 10px 12px;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary .bars { width: 22px; height: 14px; display: inline-grid; gap: 5px; }
  .menu summary .bars i { display: block; height: 1.5px; background: var(--navy); }
  .menu[open] summary .bars i:nth-child(2) { opacity: 0; }
  .menu__panel {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; box-shadow: 0 20px 40px -24px rgba(20,38,61,0.35);
  }
  .menu__panel ul { list-style: none; margin: 0; padding: 0; }
  .menu__panel li { border-bottom: 1px solid var(--line); }
  .menu__panel li a { display: block; padding: 14px 0; color: var(--navy); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
  .menu__panel li a[aria-current="page"] { color: var(--teal-ink); }
  .menu__panel .btn { width: 100%; margin-top: 20px; }
}

@media (max-width: 420px) {
  :root { --gutter: 18px; }
  h1 { font-size: 2.35rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .header, .footer, .cta { display: none; }
}
