/* ==========================================================================
   Margn — components (mobile-first).
   Base = 375px layout. Scale up at 640 · 900 · 1200.
   ========================================================================== */

/* --- Hero (mobile-first) --- */
.hero {
  --muted: var(--muted-slate);
  position: relative;
  padding: 16px 0 32px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero-grid { display: none; }
.hero-rules { display: none; }
.hero-overlay { display: none; }

@media (min-width: 900px) {
  .hero { padding: 28px 0 56px; }
  .hero-grid {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: transform 0.2s linear;
  }
  .hero-rules {
    display: grid;
    position: absolute;
    inset: 0;
    grid-template-columns: repeat(12, 1fr);
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    opacity: 0.35;
  }
  .hero-rules span { border-right: 1px solid var(--rule-soft); }
  .hero-rules span:first-child { border-left: 1px solid var(--rule-soft); }
}
@media (min-width: 1100px) {
  .hero-overlay {
    display: flex;
    position: absolute;
    top: 80px;
    right: 0;
    width: min(50%, 600px);
    height: calc(100% - 80px);
    pointer-events: none;
    z-index: 0;
    color: var(--ink);
    opacity: 0.55;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 40px;
  }
  .hero-overlay-svg { width: 100%; height: auto; max-height: 560px; display: block; }
}

.hero-inner { position: relative; padding-top: 8px; }
@media (min-width: 900px) { .hero-inner { padding-top: 28px; } }

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.hero-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}
@media (min-width: 640px) {
  .hero-meta {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 20px;
  }
  .hero-meta-right { font-size: 11.5px; }
}

.dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 0 var(--moss);
  animation: pulse 1.8s ease-out infinite;
  display: inline-block;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--moss) 60%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  font-size: clamp(38px, 10vw, 50px);
  margin: 20px 0 18px;
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 11ch;
  text-wrap: balance;
  /* Reserve space for ~4 lines at mobile clamp min (40px × 4 × line-height 1) (CLS fix) */
  min-height: 6.5rem;
}
@media (min-width: 640px) {
  /* Reset min-height at tablet+ — the font is expected to be loaded by then */
  .hero-title { min-height: unset; }
}
@media (min-width: 640px) {
  .hero-title { font-size: clamp(58px, 10vw, 88px); margin: 28px 0 24px; letter-spacing: -0.035em; max-width: 15ch; }
}
@media (min-width: 900px) {
  .hero-title { font-size: clamp(64px, 7.8vw, 96px); max-width: 13ch; }
}
@media (min-width: 1100px) {
  .hero-title { font-size: clamp(80px, 8.5vw, 120px); max-width: 15ch; }
}
@media (min-width: 1200px) {
  .hero-title { font-size: clamp(96px, 9.5vw, 148px); max-width: 16ch; }
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.hero-sub {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 300px;
  width: 100%;
  overflow-wrap: break-word;
}
@media (min-width: 640px) {
  .hero-sub { font-size: 18px; max-width: 44ch; }
}
@media (min-width: 900px) {
  .hero-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: end;
    padding-bottom: 48px;
  }
  .hero-sub { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; }
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.hero-ctas .btn { width: 100%; }
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { width: auto; }
}
@media (min-width: 900px) {
  .hero-ctas { justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; }
  .hero-ctas .btn { flex-shrink: 0; }
}

/* Hero KPIs — mobile: stacked rows. Desktop: 4-col strip. */
.hero-kpis {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  border-top: 1px solid var(--rule);
}
.kpi {
  padding: 14px 0;
  border-right: 0;
  border-bottom: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: baseline;
}
.kpi:last-child { border-bottom: 0; }
.kpi-label {
  grid-column: 1 / 2; grid-row: 1 / 2;
  font-size: 11.5px;
}
.kpi-value {
  grid-column: 1 / 2; grid-row: 2 / 3;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  /* Reserve vertical space so font-swap can't change row height (CLS fix) */
  min-height: 2rem;
}
/* Reserve horizontal space for KPI digits so font-swap can't shift width (CLS fix) */
.kpi-value .num {
  display: inline-block;
  min-width: 3.5ch;
}
.kpi-unit {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.kpi-row {
  grid-column: 2 / 3; grid-row: 1 / 3;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  display: flex;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}
.kpi-row svg { max-width: 90px; }
.kpi-delta.up { color: var(--moss); }
.kpi-delta.down { color: var(--oxblood); }

@media (min-width: 640px) {
  .hero-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--rule);
    margin-top: 24px;
  }
  .kpi {
    padding: 16px 20px 16px 0;
    border-right: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .kpi:nth-child(2n) { border-right: 0; padding-right: 0; padding-left: 20px; }
  .kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .kpi-value { font-size: 34px; }
  .kpi-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .kpi-row svg { max-width: 90px; }
}
@media (min-width: 900px) {
  .hero-kpis {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 28px;
  }
  .kpi {
    padding: 20px 24px 20px 0;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
  }
  .kpi:not(:first-child) { padding-left: 24px; }
  .kpi:first-child { padding-left: 0; }
  .kpi:last-child { border-right: 0; }
  .kpi-value { font-size: clamp(36px, 3.6vw, 48px); }
  .kpi-unit { font-size: 13px; }
  .kpi-row { font-size: 11.5px; }
}

/* Ticker (kept simple on mobile, present on desktop) */
.ticker { padding: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.ticker-head { display: inline-flex; align-items: center; gap: 8px; }
.ticker-head .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--oxblood); animation: pulse 2s infinite;
}
.ticker-list { display: flex; flex-direction: column; gap: 8px; }
.ticker-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  align-items: center;
}
.ticker-tag {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--oxblood);
  padding: 2px 6px;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-align: center;
  border-radius: 2px;
}
.ticker-text { font-family: var(--serif); }
.ticker-time { font-size: 11.5px; color: var(--muted); }

.hero-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.hero-foot .scroll-ind { display: none; }
@media (min-width: 900px) {
  .hero-foot { gap: 24px; margin-top: 60px; padding-top: 20px; }
  .hero-foot .scroll-ind {
    display: block;
    flex: 1;
    height: 1px;
    background: var(--rule);
    position: relative;
  }
  .scroll-ind::after {
    content: "";
    position: absolute;
    right: 0; top: -2px;
    width: 40px; height: 5px;
    background: var(--ink);
    animation: slideright 3s ease-in-out infinite;
  }
  @keyframes slideright {
    0%   { transform: translateX(-80px); opacity: 0; }
    50%  { opacity: 1; }
    100% { transform: translateX(0); opacity: 0; }
  }
}



/* --- Operator Console --- */
.op-console {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(10,11,13,0.02), 0 12px 32px -18px rgba(10,11,13,0.18);
  overflow: hidden;
  font-family: var(--sans);
}
.op-console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.op-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--moss, #7a9a6b);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--moss, #7a9a6b) 25%, transparent);
  animation: pulse 2s infinite;
}
.op-console-title { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.op-console-meta { margin-left: auto; font-size: 11.5px; letter-spacing: 0.14em; color: var(--muted); }
.op-console-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.op-console-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 1024px) {
  .op-console-row { grid-template-columns: 1.6fr 1fr; }
}
.op-card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.op-card-head { display: flex; align-items: center; justify-content: space-between; }
.op-card-head .muted { color: var(--muted); font-size: 11.5px; letter-spacing: 0.1em; }
.op-flow-card { min-height: 140px; }
.op-flow-svg { width: 100%; height: 110px; color: var(--ink); }
.op-gauge-card { align-items: center; text-align: center; }
.op-gauge-svg { width: 104px; height: 104px; color: var(--ochre); }
.op-gauge-foot { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.op-log-card {}
.op-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.op-log-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px dashed var(--rule-soft);
  font-size: 12px;
}
.op-log-row:first-child { border-top: 0; }
.op-log-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 2px 5px;
  border-radius: 3px;
  text-align: center;
}
.op-log-text { font-family: var(--serif); font-size: 13px; color: var(--ink); }
.op-log-time { font-size: 11.5px; color: var(--muted); }

/* --- Workflow mapper (mobile-first, tap-to-add) --- */
.mapper { position: relative; }

/* Domain picker — horizontal scroll strip on mobile */
.mapper-domains {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--pad-x)) 20px;
  padding: 0 var(--pad-x);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  scrollbar-width: none;
}
.mapper-domains::-webkit-scrollbar { display: none; }
.mapper-domain {
  flex: 0 0 auto;
  min-width: 200px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--rule-soft);
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  color: inherit;
  font-family: inherit;
  scroll-snap-align: start;
}
.mapper-domain:last-child { border-right: 0; }
.mapper-domain:hover { background: var(--paper-2); }
.mapper-domain.active {
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--active-tone, var(--ochre));
  padding-top: 12px;
}
.mapper-domain.active .mapper-domain-sub {
  color: color-mix(in srgb, var(--paper) 78%, var(--active-tone, var(--ochre)) 22%);
}
.mapper-domain-label {
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 4px;
  line-height: 1.15;
}
.mapper-domain-sub {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1.4;
}
@media (min-width: 900px) {
  .mapper-domains {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    margin: 0 0 32px;
    padding: 0;
  }
  .mapper-domain { min-width: 0; padding: 20px 24px; }
  .mapper-domain.active { padding-top: 18px; }
  .mapper-domain-label { font-size: 18px; }
  .mapper-domain-sub { font-size: 11.5px; }
}

/* Mapper grid — mobile: stacked. Desktop: palette + canvas */
.mapper-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (min-width: 900px) {
  .mapper-grid {
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
}

/* Palette */
.mapper-palette {
  border: 1px solid var(--rule);
  padding: 16px;
  background: var(--paper-2);
  align-self: start;
  border-radius: 4px;
}
@media (min-width: 900px) {
  .mapper-palette {
    padding: 20px;
    position: sticky;
    top: calc(var(--nav-h) + 12px);
  }
}
.palette-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.palette-count { font-size: 11.5px; color: var(--muted); }
.palette-items {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  scroll-snap-type: x mandatory;
  margin: 12px -16px;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.palette-items::-webkit-scrollbar { display: none; }
.palette-block {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 600;
  transition: all 0.15s;
  scroll-snap-align: start;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.palette-block:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}
.palette-block:active { transform: scale(0.97); }
.palette-glyph { font-size: 16px; }
.palette-label { color: var(--ink-2); }
.palette-hint { font-size: 11.5px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--rule-soft); line-height: 1.45; }
@media (min-width: 900px) {
  .palette-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
    margin: 16px 0;
    padding: 0;
  }
  .palette-block {
    display: flex;
    white-space: normal;
    cursor: grab;
    padding: 10px;
    min-height: 0;
  }
  .palette-block:active { cursor: grabbing; transform: none; }
}

/* Canvas */
.mapper-canvas {
  border: 1px solid var(--rule);
  background: var(--paper);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 4px;
}
.mapper-canvas.receiving {
  border-color: var(--oxblood);
  background: color-mix(in oklch, var(--paper) 94%, var(--ochre));
}
.canvas-tone-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--domain-tone, var(--ochre));
  margin-right: 6px;
  vertical-align: middle;
}
.canvas-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper-2);
  gap: 8px;
}
.canvas-clear {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px;
  min-height: 32px;
}
.canvas-clear:hover { color: var(--oxblood); }
@media (min-width: 900px) {
  .mapper-canvas { min-height: 500px; }
  .canvas-head { padding: 14px 20px; }
}

.canvas-flow {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 900px) { .canvas-flow { padding: 20px; } }

.canvas-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
  min-height: 200px;
  border: 1px dashed var(--rule);
  padding: 20px;
  text-align: center;
  line-height: 1.45;
}
@media (min-width: 900px) { .canvas-empty { font-size: 20px; min-height: 300px; } }

.canvas-gap {
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.15s;
}
.canvas-gap span {
  width: 1px;
  height: 100%;
  background: var(--rule-soft);
}
.canvas-gap[data-hover="true"] { height: 40px; }
.canvas-gap[data-hover="true"] span {
  width: 100%; height: 2px;
  background: var(--oxblood);
}
.canvas-block {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 14px;
  transition: all 0.15s;
}
.canvas-block:hover { border-color: var(--ink-soft); }
.canvas-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.canvas-block-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.canvas-block-num {
  font-size: 11.5px;
  color: var(--muted);
}
.canvas-block-glyph {
  font-size: 18px;
  color: var(--oxblood);
  flex-shrink: 0;
}
.canvas-block-label {
  font-family: var(--serif);
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 640px) { .canvas-block-label { font-size: 18px; } }
.canvas-block-x {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  width: 36px; height: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.canvas-block-x:hover { color: var(--oxblood); }
.canvas-block-pains {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pain-chip {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 2px;
  -webkit-tap-highlight-color: transparent;
}
.pain-chip:hover { border-color: var(--ink-soft); color: var(--ink-soft); }
.pain-chip.on {
  background: var(--oxblood);
  color: var(--paper);
  border-color: var(--oxblood);
}

.canvas-foot {
  padding: 12px 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper-2);
}
.canvas-foot .btn { width: 100%; }
.canvas-meta { font-size: 11.5px; color: var(--muted); text-align: center; }
@media (min-width: 640px) {
  .canvas-foot {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
  }
  .canvas-foot .btn { width: auto; }
  .canvas-meta { text-align: left; }
}

/* Analysis */
.mapper-analysis {
  opacity: 0.45;
  filter: grayscale(0.6);
  transition: all 0.4s;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.mapper-analysis.shown { opacity: 1; filter: none; }
@media (min-width: 900px) { .mapper-analysis { padding-top: 32px; } }
.analysis-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
}
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.analysis-stat {
  padding: 16px;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.analysis-stat:nth-child(2n) { border-right: 0; }
.analysis-stat:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 900px) {
  .analysis-grid { grid-template-columns: repeat(4, 1fr); }
  .analysis-stat {
    padding: 28px 24px;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
  }
  .analysis-stat:last-child { border-right: 0; }
}
.analysis-num {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  letter-spacing: -0.03em;
  flex-wrap: wrap;
}
@media (min-width: 900px) { .analysis-num { font-size: clamp(48px, 5vw, 72px); } }
.analysis-unit {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (min-width: 900px) { .analysis-unit { font-size: 14px; } }
.analysis-word {
  font-size: clamp(24px, 5vw, 36px);
  color: var(--oxblood);
}
@media (min-width: 900px) { .analysis-word { font-size: clamp(36px, 3.5vw, 48px); } }
.analysis-cta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.analysis-cta p {
  font-size: 16px;
  line-height: 1.5;
}
.analysis-cta .btn { width: 100%; }
@media (min-width: 640px) {
  .analysis-cta { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; }
  .analysis-cta p { font-size: 18px; max-width: 52ch; }
  .analysis-cta .btn { width: auto; flex-shrink: 0; }
}
@media (min-width: 900px) {
  .analysis-cta { margin-top: 32px; gap: 32px; }
  .analysis-cta p { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.4; }
}

/* --- Engagement tabs + dashboard --- */
.tabs {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--pad-x));
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--rule);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 14px 16px;
  min-height: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
  scroll-snap-align: start;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--oxblood); }
@media (min-width: 640px) {
  .tab { padding: 14px 22px; font-size: 12px; }
}
@media (min-width: 900px) {
  .tabs { overflow: visible; margin: 0; padding: 0; }
}

.eng-frame {
  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 0 12px 28px -20px rgba(10,11,13,0.18), 0 1px 4px rgba(10,11,13,0.04);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 640px) { .eng-frame { border-radius: 6px; } }
.eng-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  gap: 10px;
}
.eng-chrome-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  flex-wrap: wrap;
  min-width: 0;
}
.eng-logo {
  width: 22px; height: 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  flex-shrink: 0;
}
.eng-chrome-nav { display: none; }
@media (min-width: 900px) {
  .eng-chrome { padding: 12px 20px; }
  .eng-chrome-left { font-size: 12px; }
  .eng-logo { width: 24px; height: 24px; font-size: 14px; }
.eng-chrome-nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .eng-chrome-nav .active { color: var(--ink); }
}

.eng-body { padding: 14px; }
@media (min-width: 900px) { .eng-body { padding: 24px; } }

.eng-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.eng-kpi {
  padding: 14px 12px;
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.eng-kpi:nth-child(2n) { border-right: 0; }
.eng-kpi:nth-last-child(-n+2) { border-bottom: 0; }
.eng-kpi-value {
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.eng-kpi-delta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}
.eng-kpi-delta.up { color: var(--moss); }
.eng-kpi-delta.down { color: var(--oxblood); }
.eng-kpi svg { width: 100% !important; max-width: 140px; height: 22px !important; }
@media (min-width: 900px) {
  .eng-kpis { grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; }
  .eng-kpi {
    padding: 16px 20px;
    border-right: 1px solid var(--rule-soft);
    border-bottom: 0;
    gap: 8px;
  }
  .eng-kpi:last-child { border-right: 0; }
  .eng-kpi-value { font-size: clamp(28px, 3vw, 36px); }
  .eng-kpi-delta { font-size: 11.5px; }
  .eng-kpi svg { max-width: 160px; height: 26px !important; }
}

.eng-lower {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.eng-card {
  padding: 16px;
  border-right: 0;
  border-bottom: 1px solid var(--rule-soft);
}
.eng-card:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .eng-lower { grid-template-columns: 1.4fr 1fr 1fr; }
  .eng-card { padding: 20px; border-right: 1px solid var(--rule-soft); border-bottom: 0; }
  .eng-card:last-child { border-right: 0; }
}
.eng-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-soft);
}
.eng-card-head .mono,
.eng-card-head .eyebrow { white-space: nowrap; }
.op-card-head .muted,
.op-card-head .mono,
.op-card-head .eyebrow { white-space: nowrap; }
@media (min-width: 1100px) {
  .eng-card-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
}
.flow-svg {
  width: 100%;
  aspect-ratio: 2.1 / 1;
  height: auto;
  max-height: 220px;
  color: var(--ink-soft);
}
.eng-flow-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
  font-size: 11px;
}
.eng-flow-legend > div { display: flex; flex-direction: column; gap: 3px; }
@media (min-width: 900px) { .eng-flow-legend { gap: 12px; font-size: 12px; } }

.eng-activity {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eng-activity li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px;
  font-size: 12px;
  align-items: center;
}
.eng-act-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--oxblood);
  padding: 2px 6px;
  border: 1px solid var(--rule);
  text-align: center;
  border-radius: 2px;
}
.eng-act-text { font-family: var(--serif); overflow: hidden; text-overflow: ellipsis; }
.eng-act-time { font-size: 11.5px; color: var(--muted); }
@media (min-width: 900px) {
  .eng-activity li { grid-template-columns: 60px 1fr auto; gap: 10px; font-size: 13px; }
  .eng-act-tag { font-size: 11.5px; }
  .eng-act-text { white-space: normal; }
  .eng-act-time { font-size: 11.5px; }
}

.eng-coverage { display: flex; flex-direction: column; gap: 10px; }
.cov-row {
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.cov-lbl { color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; font-size: 11.5px; }
.cov-bar {
  height: 4px;
  background: var(--rule-soft);
  overflow: hidden;
  border-radius: 2px;
}
.cov-fill { height: 100%; background: var(--oxblood); transition: width 0.6s; }
.cov-num { text-align: right; }
@media (min-width: 900px) {
  .cov-row { grid-template-columns: 60px 1fr 40px; gap: 12px; }
  .cov-lbl { font-size: 11.5px; }
}

/* --- Integrations (static grid) --- */
.integ-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.integ-head h3 {
  font-size: clamp(22px, 5.5vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 38ch;
}
.integ-head .muted { color: var(--muted); }
@media (min-width: 900px) {
  .integ-head { grid-template-columns: 1fr 2fr; gap: 32px; margin-bottom: 40px; padding-top: 40px; }
  .integ-head h3 { font-size: clamp(24px, 2.6vw, 34px); }
}
.integ-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (min-width: 640px) { .integ-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .integ-grid { grid-template-columns: repeat(8, 1fr); } }
.integ-cell {
  padding: 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
  aspect-ratio: 1;
  justify-content: space-between;
  transition: background 0.15s;
}
.integ-cell:hover { background: var(--paper-2); }
.integ-glyph {
  width: 28px; height: 28px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: var(--paper);
}
@media (min-width: 900px) {
  .integ-cell { padding: 20px; }
  .integ-glyph { width: 32px; height: 32px; }
}
.integ-name { font-family: var(--serif); font-size: 15px; }
.integ-kind {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 900px) { .integ-name { font-size: 16px; } }

/* Integrations rolling strip */
.integ-strip-wrap {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
@media (min-width: 900px) { .integ-strip-wrap { margin-top: 56px; padding-top: 24px; } }
.integ-strip-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.integ-strip-head .muted { color: var(--muted); font-size: 11.5px; letter-spacing: 0.12em; }
@media (min-width: 640px) {
  .integ-strip-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
}
.integ-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  padding: 10px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
@media (min-width: 900px) { .integ-marquee { padding: 14px 0; } }
.integ-track {
  display: flex;
  width: max-content;
  animation: integ-scroll 55s linear infinite;
}
.integ-lane { display: flex; gap: 12px; padding-right: 12px; }
.integ-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (min-width: 900px) { .integ-pill { gap: 10px; padding: 10px 16px 10px 10px; } }
.integ-pill-glyph {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 900px) { .integ-pill-glyph { width: 26px; height: 26px; } }
.integ-pill-initials { font-size: 11px; letter-spacing: 0.08em; color: var(--ink); }
.integ-pill-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px; height: 12px;
  object-fit: contain;
  background: var(--paper-2);
  padding: 1px;
  box-sizing: content-box;
  border-radius: 999px;
}
@media (min-width: 900px) { .integ-pill-icon { width: 14px; height: 14px; } }
.integ-pill-name { font-family: var(--serif); font-size: 13px; color: var(--ink); }
@media (min-width: 900px) { .integ-pill-name { font-size: 15px; } }

@keyframes integ-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.integ-marquee:hover .integ-track { animation-play-state: paused; }

/* --- Insights --- */
.featured {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--paper);
  margin-bottom: 28px;
  overflow: hidden;
  transition: all 0.3s;
  border-radius: 3px;
  position: relative;
  z-index: 1;
}
.featured:hover { border-color: var(--ink); }
.featured:hover .featured-title em { color: var(--ochre); }
.featured-img {
  position: relative;
  background: var(--paper-3);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 0;
}
@media (min-width: 900px) {
  .featured {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    margin-bottom: 48px;
  }
  .featured-img {
    border-right: 1px solid var(--rule);
    aspect-ratio: auto;
    align-self: stretch;
    max-height: 420px;
  }
}
.featured-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) sepia(0.25) contrast(1.05) brightness(0.96);
  transition: filter 600ms ease, transform 900ms ease;
}
.featured:hover .featured-photo {
  filter: grayscale(0.2) sepia(0.15) contrast(1.08) brightness(1);
  transform: scale(1.02);
}
.featured-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(243,237,227,0.12) 0%, rgba(26,22,18,0.35) 100%),
    linear-gradient(120deg, rgba(122,36,36,0.08), rgba(183,131,65,0.06));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.featured-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
.featured-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: var(--paper);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  z-index: 2;
}
.featured-mark {
  position: absolute;
  top: 14px; left: 14px;
  padding: 3px 8px;
  background: var(--paper);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  border: 1px solid var(--rule);
  z-index: 2;
}
@media (min-width: 900px) {
  .featured-caption { left: 20px; bottom: 16px; font-size: 11.5px; }
  .featured-mark { top: 20px; left: 20px; padding: 4px 10px; font-size: 11.5px; }
}
.featured-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
@media (min-width: 900px) { .featured-body { padding: 40px; gap: 16px; } }
.featured-title {
  font-size: clamp(26px, 6.5vw, 32px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
@media (min-width: 900px) { .featured-title { font-size: clamp(32px, 3.2vw, 48px); line-height: 1; } }
.featured-dek {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 48ch;
}
@media (min-width: 900px) { .featured-dek { font-size: 18px; } }
.featured-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  gap: 12px;
}
@media (min-width: 900px) { .featured-foot { margin-top: 16px; padding-top: 20px; font-size: 12px; } }
.featured-cta {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxblood);
  white-space: nowrap;
}

.insight-list {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin-top: 24px;
  background: var(--paper);
  position: relative;
  z-index: 1;
}
.insight-row { border-bottom: 1px solid var(--rule); }
.insight-row a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "main kicker"
    "main arrow";
  column-gap: 16px;
  row-gap: 4px;
  padding: 18px 6px;
  transition: background 0.15s, padding 0.15s;
}
.insight-row-kicker { grid-area: kicker; align-self: start; text-align: right; color: var(--muted); letter-spacing: 0.14em; font-weight: 600; }
.insight-row-main { grid-area: main; align-self: stretch; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.insight-row-title {
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.insight-row-dek {
  display: -webkit-box;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insight-row-arrow {
  grid-area: arrow;
  align-self: end;
  text-align: right;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: all 0.2s;
}
.insight-row a:hover { background: var(--paper-2); }
.insight-row a:hover .insight-row-arrow { color: var(--oxblood); transform: translateX(4px); }
@media (min-width: 900px) {
  .insight-list { margin-top: 32px; }
  .insight-row a {
    grid-template-columns: 140px 1fr 80px;
    grid-template-areas: none;
    align-items: center;
    gap: 24px;
    padding: 20px 10px;
  }
  .insight-row-kicker { grid-area: auto; text-align: left; }
  .insight-row-main { grid-area: auto; align-self: center; }
  .insight-row-title { font-size: 24px; }
  .insight-row-dek {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }
  .insight-row-arrow { grid-area: auto; align-self: center; text-align: right; font-size: 11.5px; }
  .insight-row a:hover { padding-left: 16px; }
}
@media (min-width: 1200px) {
  .insight-row-title { font-size: 28px; }
}

.insight-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper-2);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s;
  min-height: 52px;
}
.insight-more:hover { background: var(--oxblood); color: var(--paper); border-color: var(--oxblood); }
.insight-more:hover .insight-more-arrow { transform: translateX(6px); }
.insight-more-arrow { font-size: 16px; transition: transform 0.2s; padding-right: 4px; }
@media (min-width: 900px) {
  .insight-more { margin-top: 28px; padding: 18px 8px; font-size: 12px; }
  .insight-more-arrow { padding-right: 8px; }
}

/* --- Contact --- */
.contact-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) {
  .contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
  }
}
.contact-lede {
  font-size: 17px;
  line-height: 1.4;
  max-width: 36ch;
  margin-bottom: 20px;
}
@media (min-width: 900px) { .contact-lede { font-size: clamp(20px, 1.8vw, 26px); margin-bottom: 32px; } }
.contact-promises {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11.5px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.contact-promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-family: var(--mono);
}
@media (min-width: 900px) { .contact-promises { gap: 12px; font-size: 12px; padding-top: 24px; } }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field {
  background: var(--paper);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.15s;
  min-height: 64px;
}
.field.focused { background: var(--paper-2); }
.field-label { font-size: 11.5px; }
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  padding: 4px 0;
  width: 100%;
  resize: none;
}
@media (min-width: 900px) {
  .field { padding: 14px 18px; }
  .field input, .field textarea { font-size: 18px; }
}
.field select { font-family: var(--sans); font-size: 16px; }

.form-foot {
  background: var(--paper-2);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.form-foot .btn { width: 100%; }
@media (min-width: 640px) {
  .form-foot { flex-direction: row; justify-content: flex-end; align-items: center; padding: 16px 18px; }
  .form-foot .btn { width: auto; }
}

.contact-sent {
  background: var(--paper);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.contact-sent p.display { font-size: 24px; max-width: 18ch; }
@media (min-width: 900px) { .contact-sent { padding: 80px 40px; gap: 16px; } .contact-sent p.display { font-size: 32px; } }

/* --- Footer --- */
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  justify-content: start;
  text-align: left;
}
.footer-cols ul {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-cols li { padding: 4px 0; }
.footer-cols a {
  color: inherit;
  transition: color 0.15s;
}
.footer-cols a:hover { color: var(--oxblood); }
.footer-bar {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  font-size: 11.5px;
  color: var(--muted);
}
@media (min-width: 900px) {
  .footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 48px; }
  .footer-cols { grid-template-columns: auto auto; gap: 64px; justify-content: end; text-align: right; }
  .footer-bar { flex-direction: row; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 11px; align-items: center; }
}

/* --- Tweaks panel --- */
.tweaks {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 10px 30px -10px rgba(10,11,13,0.25), 0 2px 6px rgba(10,11,13,0.06);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  min-width: 200px;
  max-width: calc(100vw - 24px);
}
.tweaks-toggle {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 10px 14px;
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tweaks-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
}
.tweak-group { display: flex; flex-direction: column; gap: 6px; }
.segmented {
  display: flex;
  border: 1px solid var(--rule);
  overflow: hidden;
  border-radius: 2px;
}
.segmented button {
  flex: 1;
  background: var(--paper);
  border: 0;
  border-right: 1px solid var(--rule);
  padding: 8px 6px;
  min-height: 34px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.segmented button:last-child { border-right: 0; }
.segmented button:hover { color: var(--ink); }
.segmented button.on { background: var(--ink); color: var(--paper); }
@media (min-width: 640px) {
  .tweaks { right: 24px; bottom: 24px; min-width: 240px; }
  .tweaks-body { padding: 16px; gap: 14px; max-height: 70vh; }
}

/* --- Type pairing modes --- */
[data-typepair="swiss"] { --serif: "Inter Tight", "Helvetica Neue", Helvetica, sans-serif; }
[data-typepair="swiss"] .display { font-weight: 500; letter-spacing: -0.03em; }
[data-typepair="terminal"] { --serif: "JetBrains Mono", ui-monospace, monospace; }
[data-typepair="terminal"] .display { letter-spacing: -0.05em; font-weight: 400; }
[data-typepair="journal"] { --serif: "Libre Caslon Text", "Source Serif 4", Georgia, serif; }

/* --- Insight article page --- */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px var(--pad-x) 60px;
  position: relative;
  z-index: 2;
}
@media (min-width: 900px) { .article { padding: 60px 32px 120px; } }
.article-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
  margin-bottom: 28px;
}
@media (min-width: 900px) { .article-header { padding-bottom: 48px; margin-bottom: 48px; } }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}
@media (min-width: 900px) { .article-meta { font-size: 11.5px; margin-bottom: 32px; } }
.article h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  text-wrap: balance;
}
@media (min-width: 900px) { .article h1 { font-size: clamp(48px, 5.6vw, 72px); line-height: 1.1; margin-bottom: 64px; } }
.article h1 em { color: var(--oxblood); font-style: italic; }
.article-dek {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 54ch;
}
@media (min-width: 900px) { .article-dek { font-size: clamp(20px, 1.8vw, 24px); } }
.article-byline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.article-byline strong { color: var(--ink); font-weight: 500; }
@media (min-width: 900px) { .article-byline { flex-direction: row; gap: 24px; margin-top: 32px; padding-top: 24px; font-size: 13px; } }

.article-hero { margin: 0 0 28px; position: relative; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
@media (min-width: 900px) { .article-hero { margin-bottom: 48px; } }
.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}
.article-hero figcaption {
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}
.article-body > * + * { margin-top: 20px; }
@media (min-width: 900px) {
  .article-body { font-size: 20px; line-height: 1.6; }
  .article-body > * + * { margin-top: 24px; }
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  color: var(--ink);
  line-height: 1.2;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 28px 0 10px;
  color: var(--ink);
  line-height: 1.3;
}
@media (min-width: 900px) {
  .article-body h2 { font-size: 32px; margin: 56px 0 16px; }
  .article-body h3 { font-size: 24px; margin: 40px 0 12px; }
}
.article-body .dropcap::first-letter {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 0.9;
  float: left;
  padding: 4px 8px 0 0;
  color: var(--oxblood);
  font-weight: 500;
}
@media (min-width: 900px) { .article-body .dropcap::first-letter { font-size: 72px; padding: 6px 10px 0 0; } }
.pullquote {
  border-left: 3px solid var(--oxblood);
  padding: 0 0 0 16px;
  margin: 28px 0;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
  font-style: italic;
}
@media (min-width: 900px) { .pullquote { padding-left: 24px; margin: 40px 0; font-size: 26px; } }
.pullquote cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-top: 12px;
}
.article-body ul, .article-body ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .article-foot { margin-top: 80px; padding-top: 32px; flex-direction: row; justify-content: space-between; align-items: center; }
}
.article-back {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s ease, color .15s ease;
}
.article-back:hover { border-bottom-color: currentColor; }
.article-back--muted { color: var(--ink); }
.article-back--muted:hover { color: var(--oxblood); }

/* ----- Article prev/next pagination nav ----- */
.article-prev-next {
  display: flex;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.article-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
}
@media (max-width: 640px) {
  .article-foot-links { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ----- Article breadcrumb — top-of-page back path ----- */
.article-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
@media (min-width: 900px) {
  .article-crumb { margin-bottom: 36px; gap: 10px; font-size: 12px; }
}
.article-crumb-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s ease, color .15s ease;
}
.article-crumb-link:hover { color: var(--oxblood); border-bottom-color: currentColor; }
.article-crumb-sep { opacity: 0.45; font-weight: 400; }
.article-crumb-current { color: var(--muted); }

/* --- Bulletin page --- */
.bulletin-page {
  padding: 32px 0 60px;
  position: relative;
  z-index: 2;
}
@media (min-width: 900px) { .bulletin-page { padding: 64px 0 96px; } }
.bulletin-head {
  max-width: 680px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) { .bulletin-head { margin-bottom: 48px; padding-bottom: 32px; } }
.bulletin-head .marker {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
@media (min-width: 900px) { .bulletin-head .marker { font-size: 12px; margin-bottom: 16px; } }
.bulletin-head h1 {
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
@media (min-width: 900px) { .bulletin-head h1 { font-size: clamp(44px, 6vw, 64px); margin-bottom: 16px; } }
.bulletin-lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
}
@media (min-width: 900px) { .bulletin-lede { font-size: 18px; } }
.bulletin-list { margin-top: 0; }
.insight-row--featured a { background: var(--paper-2); }
.insight-row--featured .insight-row-title { color: var(--oxblood); font-style: italic; }
.bulletin-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.bulletin-foot .article-back {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.bulletin-foot .article-back:hover { color: var(--oxblood); }
@media (min-width: 900px) {
  .bulletin-foot { margin-top: 64px; padding-top: 32px; flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; }
  .bulletin-foot .article-back { font-size: 12px; }
}

/* ============================================================
   Ambient section imagery
   ============================================================ */
.ambient {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: grayscale(0.55) sepia(0.4) contrast(1.05) brightness(0.95) saturate(0.85);
  mix-blend-mode: multiply;
  opacity: 0.18;
  transition: opacity 600ms ease;
}
@media (min-width: 900px) { .ambient { opacity: 0.28; } }

.ambient--right {
  top: 0; right: 0; bottom: 0;
  width: 60%;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
          mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
}
.ambient--body-left {
  top: 180px; left: 0; bottom: 0;
  width: 56%;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
          mask-image: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
}
.ambient--corner-tr {
  top: -10%; right: -5%;
  width: 70%; height: 85%;
  -webkit-mask-image: radial-gradient(ellipse at top right, rgba(0,0,0,0.9), transparent 70%);
          mask-image: radial-gradient(ellipse at top right, rgba(0,0,0,0.9), transparent 70%);
}
.ambient--corner-bl {
  bottom: -10%; left: -5%;
  width: 70%; height: 75%;
  -webkit-mask-image: radial-gradient(ellipse at bottom left, rgba(0,0,0,0.9), transparent 70%);
          mask-image: radial-gradient(ellipse at bottom left, rgba(0,0,0,0.9), transparent 70%);
}
.ambient--band-bottom {
  bottom: 0; left: 0; right: 0;
  height: 60%;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
          mask-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.section.insights .ambient { opacity: 0.14; }
.section.integrations .ambient { opacity: 0.12; }
.section.contact .ambient { opacity: 0.16; }
@media (min-width: 900px) {
  .ambient--body-left { top: 260px; width: 50%; }
  .section.insights .ambient { opacity: 0.22; }
  .section.integrations .ambient { opacity: 0.18; }
  .section.contact .ambient { opacity: 0.24; }
}
@media (min-width: 1200px) {
  .ambient--body-left { top: 340px; width: 46%; }
}

[data-theme="dark"] .ambient {
  mix-blend-mode: screen;
  filter: grayscale(0.9) contrast(1.05) brightness(0.85);
  opacity: 0.08;
}
@media (min-width: 900px) { [data-theme="dark"] .ambient { opacity: 0.10; } }

/* ============================================================
   Mobile refinements — audit pass, Vol. IV.b
   Keep this block grouped at the end so it's easy to review/revert.
   Each rule names which audit item it addresses.
   ============================================================ */

/* [#5] Hero topographic SVG is a desktop-only decoration. It used to
   render below the headline on narrow screens, stealing ~40% of hero
   real estate with zero information payload. Kill on mobile + tablet. */
@media (max-width: 899.98px) {
  .hero-overlay { display: none !important; }
}

/* [#10] Hero H1 — let the browser pick kinder break points.
   Prevents orphans like "not the" ending a line on wide desktops. */
.hero-title { text-wrap: balance; }

/* [#15] Hero CTAs — on the smallest screens the two buttons compete.
   Primary stays a button; secondary demotes to an underlined text link. */
@media (max-width: 639.98px) {
  .hero-ctas .btn:not(.btn-primary) {
    width: auto;
    align-self: flex-start;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--rule);
    letter-spacing: 0.04em;
  }
  .hero-ctas .btn:not(.btn-primary):hover {
    color: var(--oxblood);
    text-decoration-color: var(--oxblood);
  }
}

/* [#2 + #3 + #4] Workflow mapper — mobile is read-only animated,
   desktop is interactive. Hide the interactive grid on mobile,
   hide the mobile walk-through on desktop. */
.mapper-mobile { display: none; }
@media (max-width: 899.98px) {
  .mapper-mobile { display: block; }
  /* Kill the interactive grid + its two stacked horizontal scroll strips. */
  .mapper .mapper-domains,
  .mapper .mapper-grid,
  .mapper .mapper-analysis {
    display: none !important;
  }
  /* The `.mapper` wrapper itself can collapse to nothing. */
  .mapper { padding: 0; margin: 0; min-height: 0; }
}

.mapper-mobile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 8px;
}
.mapper-mobile-sub {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.mapper-mobile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* [#8] Canvas blocks were 172px tall on mobile — 3 of them dominated
   the viewport before the user did anything. New compact block is ~72px. */
.mapper-mobile-canvas {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}
.mapper-mobile-block {
  display: grid;
  grid-template-columns: 28px 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--rule-soft);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 460ms ease, transform 460ms ease;
}
.mapper-mobile-block:last-child { border-bottom: 0; }
.mapper-mobile-block.on { opacity: 1; transform: none; }
.mapper-mobile-block.on .mapper-mobile-num {
  color: var(--oxblood);
  font-weight: 500;
}
.mapper-mobile-num {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.mapper-mobile-glyph {
  font-size: 20px;
  line-height: 1;
  color: var(--domain-tone, var(--oxblood));
  text-align: center;
}
.mapper-mobile-label {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mapper-mobile-pain {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  white-space: nowrap;
}

/* [#9] Analysis panel was at 0.45 opacity when idle on desktop. On mobile
   that read as "disabled / broken" — first-time visitors thought it wasn't
   working. Start hidden then fade to full opacity when the walk-through
   reaches the analysis step. */
.mapper-mobile-analysis {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  margin-top: 8px;
  pointer-events: none;
}
.mapper-mobile-analysis.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.mapper-mobile-analysis-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.mapper-mobile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.mapper-mobile-stat {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--rule-soft);
}
.mapper-mobile-stat:last-child { border-right: 0; }
.mapper-mobile-num {
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.mapper-mobile-unit {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mapper-mobile-lede {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
  margin-top: 16px;
}
.mapper-mobile-cta {
  margin-top: 14px;
  width: 100%;
  text-align: center;
  justify-content: center;
}
.mapper-mobile-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mapper-mobile-hint { color: var(--ink-soft); }

/* [#7] Engagement dashboards cross-fade on mobile. React's `key={tab}` on
   `.eng-frame` remounts the frame; we fade the new mount in. Desktop is
   unchanged — instant swap, because hover-tabs feel snappy when clicked.

   Header-conflict fix: the tabs row above the frame is the canonical header
   on mobile ("FINANCIAL INTELLIGENCE / CUSTOMER OPERATIONS / ..."). The frame
   chrome redundantly repeated the active tab's name ("Supply chain") — and
   could briefly lag the tab-row during cross-fades, which looked like a bug.
   Drop the chrome title on mobile; keep the M logo + Illustrative chip so the
   chrome still reads as a faux-browser, not an empty bar. */
@media (max-width: 899.98px) {
  .eng-frame {
    animation: eng-fade 560ms ease both;
  }
  .eng-chrome-title { display: none; }
  .tabs[data-auto="true"] .tab.active::after {
    animation: eng-tab-progress 3000ms linear infinite;
  }
  .tabs[data-auto="true"] .tab.active {
    position: relative;
  }
  .tabs[data-auto="true"] .tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    background: var(--oxblood);
  }
}
@keyframes eng-fade {
  from { opacity: 0; transform: translateY(14px) scale(0.992); }
  to   { opacity: 1; transform: none; }
}
@keyframes eng-tab-progress {
  from { width: 0; }
  to   { width: 100%; }
}

/* [#11] Marquee of integration pills — pause entirely for
   prefers-reduced-motion and slow it slightly on mobile where the
   strip is cropped tighter and moves faster than it should. */
@media (max-width: 899.98px) {
  .integ-track { animation-duration: 75s; }
}
@media (prefers-reduced-motion: reduce) {
  .integ-track { animation: none; transform: none; }
  .integ-marquee { overflow-x: auto; }
}

/* [#12] Insight row reading order on mobile: the eye was reading
   "Technology — No. 09" (category before index). For a numbered series
   the index comes first. Swap the grid areas. */
@media (max-width: 899.98px) {
  .insight-row a {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "main kicker"
      "main arrow";
    column-gap: 16px;
    row-gap: 4px;
  }
  .insight-row-kicker { text-align: right; }
  .insight-row-arrow { text-align: right; }
}

/* [#10] Featured insight row — on mobile the previous treatment was
   identical to every other row except for a subtle `background: paper-2`.
   Indistinguishable from row 1-of-10. Give it an actual magazine-hero
   treatment: oxblood accent rule, larger serif title, pullquote kicker. */
.insight-row--featured a {
  background: var(--paper-2);
  border-left: 3px solid var(--oxblood);
  padding-left: 14px;
}
.insight-row--featured .insight-row-title {
  color: var(--oxblood);
  font-style: italic;
}
@media (max-width: 899.98px) {
  .insight-row--featured a {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "main kicker"
      "main arrow";
    padding: 20px 4px 20px 14px;
    column-gap: 16px;
    row-gap: 4px;
  }
  .insight-row--featured .insight-row-kicker {
    color: var(--oxblood);
    font-weight: 500;
  }
  .insight-row--featured .insight-row-title {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.015em;
  }
  .insight-row--featured .insight-row-dek {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink-soft);
    margin-top: 6px;
  }
  .insight-row--featured .insight-row-arrow {
    color: var(--oxblood);
    font-weight: 500;
  }
}
@media (min-width: 900px) {
  .insight-row--featured a {
    padding: 22px 8px 22px 16px;
  }
  .insight-row--featured .insight-row-title {
    font-size: 22px;
  }
}

/* [#15 + mobile-first] Bulletin 3-article limit on mobile with
   a reveal button. Rows 4-9 are hidden until user expands. */
.bulletin-expand {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bulletin-expand:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.bulletin-expand-arrow {
  font-size: 14px;
  transition: transform 0.2s;
}
@media (max-width: 899.98px) {
  /* Show rows 1-3 (featured + 2), hide 4-9 by default. */
  .bulletin-list .insight-row:nth-of-type(n+4) { display: none; }
  .bulletin-list[data-expanded="true"] .insight-row { display: list-item; }
  .bulletin-expand { display: flex; }
}

/* [#13] Footer was 333px tall on desktop; on mobile it just stacked,
   making ~700px of link salad. Trim font sizes and paddings. */
@media (max-width: 899.98px) {
  footer { padding: 28px 0 20px; }
  .footer-inner { gap: 20px; padding-bottom: 20px; }
  .footer-cols { gap: 16px; }
  .footer-cols ul { font-size: 13px; gap: 4px; margin-top: 8px; }
  .footer-cols li { padding: 2px 0; }
  .footer-bar { font-size: 11.5px; padding-top: 14px; }
}

/* [#16] Contact form reading line length — constrain the form area so
   inputs don't stretch across 750px on desktop. The two-column row layout
   is preserved below the cap; above it we center. */
.contact-form { max-width: 640px; }
@media (min-width: 900px) {
  .contact-wrap {
    /* The left rail stays 1fr; the form side gets a max-width rather than
       a raw fr-share so long inputs don't run off. */
    grid-template-columns: 1fr minmax(0, 560px);
    justify-content: start;
  }
}
