/* ===========================================================================
   org.css — the MESRI organisation site
   ---------------------------------------------------------------------------
   Loaded after tokens/base/components, which are shared verbatim with MESRI
   Data Hub. This file does two jobs:

     1. IDENTITY  — retunes the inherited system so the parent site reads as a
        research institution, not a third product landing page. A serif display
        face, quieter washes, hairline rules and numbered sections do most of
        that work; the brand ramp itself is untouched, so the family
        resemblance across mesri.org, /data-hub/ and /route-plan/ survives.

     2. SECTIONS  — the org-only page furniture: pillars, product cards,
        project ledger, team grid, service table, timeline.
   =========================================================================== */

/* ═══════════════════════════════════════════════════════════════════════════
   1. IDENTITY
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Serif display, system-only — the site must still work from a bare file://
     open with no network. Each entry is a face that actually ships with one of
     the target platforms; Khmer fallbacks stay in the stack because the
     organisation publishes bilingually. */
  --font-display:
    "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    "Cambria", Georgia, "Times New Roman", "Noto Serif Khmer",
    "Noto Sans Khmer", "Khmer OS Battambang", serif;

  /* The institutional site sits on wider measures and looser rhythm than the
     product sites — long-form text is the primary content here. */
  --content: 1140px;
  --measure: 72ch;

  /* Rule weight used by the section headers and ledger rows. */
  --rule: 1px;
}

/* Serif wants slightly looser tracking than the product sites' geometric sans
   and a touch more line height at display sizes. */
h1, h2, h3 { letter-spacing: -0.011em; }
h1 { line-height: 1.06; }

.display { letter-spacing: -0.018em; line-height: 1.02; }

/* Eyebrows stay mono — the one deliberate echo of the product sites, so the
   family tie is visible at a glance. */

/* Numbered section headers -------------------------------------------------
   A rule, an index, a title. Used on every major section of the org site; it
   is the strongest single signal that this is a report-writing organisation. */

.sec-head {
  display: grid;
  gap: var(--space-2xs);
  padding-block-start: var(--space-xs);
  border-block-start: var(--rule) solid var(--border);
  margin-block-end: var(--space-md);
}

.sec-head__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.sec-head__index {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  color: var(--text-faint);
  text-transform: uppercase;
}

.sec-head__title { font-size: var(--step-4); max-width: 20ch; }
.sec-head__lede  { max-width: 58ch; color: var(--text-muted); }

.sec-head--center {
  justify-items: center;
  text-align: center;
}

.sec-head--center .sec-head__top { justify-content: center; }
.sec-head--center .sec-head__title,
.sec-head--center .sec-head__lede { max-width: 60ch; }

/* Nav CTA — the drawer carries its own copy below the breakpoint, so the
   inline one steps aside rather than duplicating. */
@media (max-width: 980px) {
  .nav-cta { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. HERO
   ═══════════════════════════════════════════════════════════════════════════ */

.org-hero {
  position: relative;
  padding-block: clamp(var(--space-lg), 9vw, var(--space-2xl)) var(--section-y);
  overflow: clip;
}

/* Quieter than the product heroes: one wash, low opacity, no glow. */
.org-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 50% at 8% -6%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 72%),
    radial-gradient(46% 46% at 96% 4%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 74%);
  pointer-events: none;
}

.org-hero > * { position: relative; }

.org-hero__grid {
  display: grid;
  gap: clamp(var(--space-sm), 4vw, var(--space-lg));
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
}

@media (max-width: 940px) {
  .org-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

.org-hero__name {
  font-size: var(--step-7);
  line-height: 1.0;
  letter-spacing: -0.022em;
}

/* The expansion of the acronym, set small and wide under the wordmark. */
.org-hero__expand {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--text-muted);
  max-width: 44ch;
}

.org-hero__expand b { color: var(--brand-text); font-weight: var(--weight-semi); }

.org-hero__lede { font-size: var(--step-1); line-height: var(--leading-loose); max-width: 54ch; }

/* Locator block — where the organisation works. Sits in the hero's right rail. */
.locator {
  border: var(--rule) solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  backdrop-filter: blur(8px);
  padding: var(--space-xs);
  display: grid;
  gap: var(--space-2xs);
}

.locator__row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: var(--space-2xs);
  align-items: baseline;
  font-size: var(--step--1);
}

.locator__row + .locator__row {
  border-block-start: var(--rule) solid var(--border-soft);
  padding-block-start: var(--space-2xs);
}

.locator__key {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-faint);
}

.locator__val { color: var(--text); }
.locator__val strong { display: block; color: var(--text-strong); }

/* ═══════════════════════════════════════════════════════════════════════════
   3. PILLARS — research / advisory / innovation
   ═══════════════════════════════════════════════════════════════════════════ */

.pillar {
  display: grid;
  gap: var(--space-2xs);
  align-content: start;
  padding: var(--space-sm) var(--space-xs) var(--space-xs);
  border-block-start: 2px solid var(--pillar-rule, var(--brand));
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--pillar-rule, var(--brand)) 6%, transparent), transparent 46%);
  position: relative;
}

.pillar__no {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  color: var(--pillar-rule, var(--brand-text));
}

.pillar__title { font-size: var(--step-2); }
.pillar__body { color: var(--text-muted); font-size: var(--step--1); line-height: var(--leading-loose); }

.pillar__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.pillar__list li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.pillar__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--pillar-rule, var(--brand));
  opacity: 0.75;
}

.pillar--research  { --pillar-rule: var(--brand); }
.pillar--advisory  { --pillar-rule: var(--accent); }
.pillar--innovation{ --pillar-rule: var(--warm); }

/* ═══════════════════════════════════════════════════════════════════════════
   4. PRODUCT CARDS — the two software products
   ═══════════════════════════════════════════════════════════════════════════ */

.products {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
}

.product-card {
  position: relative;
  display: grid;
  gap: var(--space-xs);
  align-content: start;
  padding: clamp(var(--space-xs), 3vw, var(--space-sm));
  background: var(--surface);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--elev-1);
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
}

/* Each product keeps its own accent so the card previews the site it links to:
   verdant for Data Hub, the Route Plan orange for Route Plan. */
.product-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pc-accent), color-mix(in srgb, var(--pc-accent) 25%, transparent));
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--elev-3);
  border-color: color-mix(in srgb, var(--pc-accent) 42%, var(--border));
}

@media (prefers-reduced-motion: reduce) {
  .product-card:hover { transform: none; }
}

.product-card--hub   { --pc-accent: #1d9e75; }
.product-card--route { --pc-accent: #f26b21; }

.product-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  flex-wrap: wrap;
}

.product-card__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--pc-accent);
  color: #fff;
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--pc-accent) 65%, transparent);
}

.product-card__mark svg { width: 22px; height: 22px; }

.product-card__name {
  font-size: var(--step-2);
  line-height: 1.1;
  display: grid;
}

.product-card__name small {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-faint);
}

.product-card__body { color: var(--text-muted); line-height: var(--leading-loose); }

.product-card__points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
}

.product-card__points li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--text-muted);
}

.product-card__points svg {
  width: 14px;
  height: 14px;
  margin-top: 0.35em;
  color: var(--pc-accent);
}

.product-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3xs);
  align-items: center;
  padding-block-start: var(--space-2xs);
  border-block-start: var(--rule) solid var(--border-soft);
}

/* Product-tinted primary button, so the CTA matches the destination. */
.btn--product {
  background: var(--pc-accent);
  color: #fff;
  border-color: transparent;
}

.btn--product:hover {
  background: color-mix(in srgb, var(--pc-accent) 86%, #000);
  color: #fff;
}

/* Status chip on the card head (live / in development). */
.product-card__status {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pc-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. LEDGER — selected work / projects, set as a report table
   ═══════════════════════════════════════════════════════════════════════════ */

.ledger {
  display: grid;
  border-block-start: var(--rule) solid var(--border);
}

.ledger__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-xs);
  align-items: start;
  padding-block: var(--space-xs);
  border-block-end: var(--rule) solid var(--border-soft);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.ledger__row:hover { background: var(--surface-2); }

.ledger__row--head {
  padding-block: var(--space-3xs) var(--space-3xs);
  border-block-end-color: var(--border);
}

.ledger__row--head span {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-faint);
}

.ledger__year {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}

.ledger__title { font-weight: var(--weight-semi); color: var(--text-strong); }
.ledger__meta  { font-size: var(--step--1); color: var(--text-muted); }

@media (max-width: 780px) {
  .ledger__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .ledger__row--head { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. TEAM
   ═══════════════════════════════════════════════════════════════════════════ */

.person {
  display: grid;
  gap: var(--space-3xs);
  align-content: start;
  padding-block-start: var(--space-2xs);
  border-block-start: 2px solid var(--border);
}

.person__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: var(--rule) solid var(--brand-soft-border);
  color: var(--brand-text);
  font-family: var(--font-mono);
  font-size: var(--step-0);
  font-weight: var(--weight-bold);
  margin-block-end: var(--space-3xs);
}

.person__name { font-size: var(--step-1); }
.person__role {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-faint);
}
.person__bio { font-size: var(--step--1); color: var(--text-muted); line-height: var(--leading-loose); }

/* ═══════════════════════════════════════════════════════════════════════════
   7. SERVICE ROWS — the advisory catalogue
   ═══════════════════════════════════════════════════════════════════════════ */

.service {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-xs);
  align-items: start;
  padding-block: var(--space-sm);
  border-block-end: var(--rule) solid var(--border-soft);
}

.service:first-child { border-block-start: var(--rule) solid var(--border); }

.service__no {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: var(--weight-bold);
  color: var(--border-strong);
  line-height: 1;
  padding-block-start: 0.2em;
  font-variant-numeric: tabular-nums;
}

.service__main { display: grid; gap: var(--space-2xs); }
.service__title { font-size: var(--step-2); }
.service__body { color: var(--text-muted); line-height: var(--leading-loose); max-width: 62ch; }

.service__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.service__tag {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  border: var(--rule) solid var(--border-soft);
  color: var(--text-subtle);
}

@media (max-width: 620px) {
  .service { grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs); }
  .service__no { font-size: var(--step-0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. APPROACH TIMELINE — how an engagement runs
   ═══════════════════════════════════════════════════════════════════════════ */

.phases { display: grid; gap: 0; counter-reset: phase; }

.phase {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--space-xs);
  padding-block: var(--space-sm);
}

.phase + .phase { border-block-start: var(--rule) solid var(--border-soft); }

.phase__dot {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand-text);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  z-index: 1;
}

/* Connector line between phases. */
.phase:not(:last-child) .phase__dot::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  width: 2px;
  height: calc(100% + var(--space-sm) * 2);
  background: linear-gradient(180deg, var(--brand-soft-border), transparent);
  z-index: -1;
}

.phase__main { display: grid; gap: var(--space-3xs); }
.phase__title { font-size: var(--step-1); }
.phase__body { color: var(--text-muted); font-size: var(--step--1); line-height: var(--leading-loose); max-width: 60ch; }
.phase__out {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--text-faint);
}
.phase__out b { color: var(--brand-text); font-weight: var(--weight-semi); }

/* ═══════════════════════════════════════════════════════════════════════════
   9. FIGURE STRIP — capability counts, honest and labelled
   ═══════════════════════════════════════════════════════════════════════════ */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  border: var(--rule) solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.figure {
  padding: var(--space-xs);
  display: grid;
  gap: 4px;
  align-content: start;
}

.figure + .figure { border-inline-start: var(--rule) solid var(--border-soft); }

@media (max-width: 860px) {
  .figure + .figure { border-inline-start: none; border-block-start: var(--rule) solid var(--border-soft); }
}

.figure__value {
  font-family: var(--font-mono);
  font-size: var(--step-4);
  font-weight: var(--weight-bold);
  line-height: 1;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.figure__label { font-size: var(--step--1); color: var(--text-muted); }
.figure__note  { font-size: var(--step--2); color: var(--text-faint); }

/* ═══════════════════════════════════════════════════════════════════════════
   10. QUOTE / POSITION STATEMENT
   ═══════════════════════════════════════════════════════════════════════════ */

.statement {
  border-inline-start: 3px solid var(--brand);
  padding: var(--space-2xs) 0 var(--space-2xs) var(--space-sm);
  max-width: 64ch;
}

.statement p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.42;
  color: var(--text-strong);
  text-wrap: pretty;
}

.statement cite {
  display: block;
  margin-block-start: var(--space-2xs);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-style: normal;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. CTA BAND
   ═══════════════════════════════════════════════════════════════════════════ */

.cta-band {
  position: relative;
  border-radius: var(--radius-2xl);
  border: var(--rule) solid var(--border);
  background:
    radial-gradient(70% 120% at 8% 0%, color-mix(in srgb, var(--brand) 15%, transparent), transparent 68%),
    var(--surface);
  padding: clamp(var(--space-sm), 5vw, var(--space-xl));
  display: grid;
  gap: var(--space-sm);
  overflow: hidden;
}

.cta-band__inner {
  display: grid;
  gap: var(--space-xs);
  max-width: 58ch;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. CONTACT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  gap: clamp(var(--space-sm), 4vw, var(--space-lg));
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: start;
}

@media (max-width: 940px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

.form-card {
  background: var(--surface);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-xs), 3vw, var(--space-sm));
  box-shadow: var(--elev-1);
}

.form-grid {
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .field--wide { grid-column: 1 / -1; }

@media (max-width: 620px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .field--wide { grid-column: auto; }
}

/* Success state swapped in after a successful submit. */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-md) var(--space-xs);
  display: none;
}

.form-success[data-show="true"] { display: grid; gap: var(--space-2xs); justify-items: center; }

.form-success__mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-soft);
  color: var(--ok-text);
  border: var(--rule) solid color-mix(in srgb, var(--ok) 34%, transparent);
}

.form-success__mark svg { width: 26px; height: 26px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

.contact-method:hover { border-color: var(--brand); background: var(--surface-2); }

.contact-method__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: var(--rule) solid var(--brand-soft-border);
  color: var(--brand-text);
}

.contact-method__text { display: grid; gap: 1px; min-width: 0; }

.contact-method__label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-faint);
}

.contact-method__value {
  font-size: var(--step--1);
  color: var(--text-strong);
  font-weight: var(--weight-medium);
  overflow-wrap: anywhere;
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. SCROLL REVEAL
   Additive only: with JS off or motion reduced, everything is visible.
   ═══════════════════════════════════════════════════════════════════════════ */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. PLACEHOLDER BLOCKS
   Anything the organisation still needs to supply is rendered as a visible,
   clearly-marked slot rather than invented content. Deliberately loud — these
   must be impossible to miss before going live.
   ═══════════════════════════════════════════════════════════════════════════ */

.slot {
  border: 2px dashed color-mix(in srgb, var(--warn) 48%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--warn) 5%, transparent);
  padding: var(--space-xs);
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: start;
  min-height: 120px;
}

.slot__tag {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  color: var(--warn-text);
  background: var(--warn-soft);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
}

.slot__hint { font-size: var(--step--1); color: var(--text-muted); max-width: 52ch; }

/* ═══════════════════════════════════════════════════════════════════════════
   15. FOOTER ADDITIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.footer-products {
  display: grid;
  gap: 8px;
}

.footer-products a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-products a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--fp-dot, var(--brand));
}

.footer-products a.is-hub   { --fp-dot: #1d9e75; }
.footer-products a.is-route { --fp-dot: #f26b21; }

/* The footer's repeat of the header nav — sits inline in .footer-bottom,
   which is already a wrapping flex row (see components.css), so this only
   needs to lay its own links out and inherit the row's spacing. */
.footer-repeat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.footer-repeat-nav a {
  color: inherit;
  text-decoration: none;
}

.footer-repeat-nav a:hover { color: var(--text-strong); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   16. READABILITY — paragraph measure
   ---------------------------------------------------------------------------
   A safety net, not a primary rule: most body copy already sits inside a
   narrow grid column or a card and is constrained by its container. `.lede`
   (62ch), `.sec-head__lede` (58ch) and `.statement p` (64ch) are already
   tighter than this and take precedence by specificity. This only catches
   plain, unclassed <p> tags — e.g. a one-off blurb — so a paragraph never
   runs the full width of a wide container by accident.
   ═══════════════════════════════════════════════════════════════════════════ */

main p { max-width: 65ch; }

/* ═══════════════════════════════════════════════════════════════════════════
   17. PRODUCT MOCKUP PLACEHOLDER
   ---------------------------------------------------------------------------
   A clean, honest stand-in for a product screenshot on the software section.
   Reads as "artwork not ready yet", not as a broken image — no fabricated UI.
   Drop a real <img> or <picture> in over it once screenshots exist; the
   surrounding .product-card layout does not change.
   ═══════════════════════════════════════════════════════════════════════════ */

.product-card__mockup {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: var(--rule) dashed color-mix(in srgb, var(--pc-accent) 38%, var(--border));
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--pc-accent) 6%, transparent),
      color-mix(in srgb, var(--pc-accent) 6%, transparent) 10px,
      transparent 10px,
      transparent 20px
    ),
    var(--surface-2);
  display: grid;
  place-items: center;
  gap: 6px;
  overflow: hidden;
}

.product-card__mockup svg {
  width: 26px;
  height: 26px;
  color: var(--pc-accent);
  opacity: 0.7;
}

.product-card__mockup span {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-faint);
}
