/* ============================================================
   GJA shared stylesheet
   File: public/css/gja.css
   Every new page links to it with one line in its <head>:
     <link rel="stylesheet" href="css/gja.css">
   ============================================================ */

/* Load the two fonts from Fontshare */
@import url("https://api.fontshare.com/v2/css?f[]=clash-display@600,700&f[]=general-sans@400,500,600,700&display=swap");


/* ---------- 1. Variables: colors and fonts, named by role ---------- */
:root {
  /* Brand colors from the logo, used sparingly.
     Contrast numbers are against white; small text needs 4.5 : 1. */
  --color-accent: #EF1D26;              /* logo red: LARGE text and decoration only (4.3 : 1) */
  --color-accent-strong: #C8102E;       /* red for small text and red buttons (5.9 : 1) */
  --color-accent-strong-dark: #A00D25;  /* hover for red buttons (8.1 : 1) */
  --color-brand-blue: #3851A3;          /* logo blue: wordmark and small marks (7.3 : 1) */
  --color-sky: #27AAE2;                 /* logo sky blue: on ink panels only, never on paper */

  /* Editorial base */
  --color-primary: #101A2E;             /* ink: headings, buttons, menu */
  --color-primary-dark: #0A1220;        /* hover for ink buttons */
  --color-text: #1A2233;                /* body text */
  --color-text-muted: #5A5750;          /* secondary text, warm grey */
  --color-border: #E2DDD4;              /* warm rules and dividers */
  --color-surface: #FFFFFF;             /* main background */
  --color-surface-alt: #F7F5F1;         /* warm paper, alternate sections */
  --color-sky-light: #EFEBE3;           /* deeper paper tint */
  --color-text-inverse: #FFFFFF;        /* text on ink or red */
  --color-surface-dark: #101A2E;        /* ink panels: hero, footer, banner */

  /* SAMPLE marker: deliberately not brand colors, so it can't be missed */
  --color-sample: #FFD43B;
  --color-sample-border: #E0A800;

  /* Fonts. If Fontshare fails to load, Arial is used instead. */
  --font-heading: "Clash Display", Arial, sans-serif;
  --font-body: "General Sans", Arial, sans-serif;
}


/* ---------- 2. Base: apply the fonts and colors to every page ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}


/* ---------- 3. SAMPLE marker: wrap unverified content in class="todo" ---------- */
.todo {
  position: relative;
  outline: 3px dashed var(--color-sample-border);
  outline-offset: 4px;
}

.todo::before {
  content: "SAMPLE";
  position: absolute;
  top: -14px;
  left: 8px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--color-sample);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}


/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.btn-accent {
  background: var(--color-accent-strong);
  color: var(--color-text-inverse);
}
.btn-accent:hover {
  background: var(--color-accent-strong-dark);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 17px;
}

.btn-light {
  background: var(--color-surface);
  color: var(--color-primary);
}
.btn-light:hover {
  background: var(--color-sky-light);
}


/* ---------- 5. Header (same on every page) ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.brand-name-accent {
  color: var(--color-accent-strong);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.header-signin {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}
.header-signin:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 12px;
}

.site-nav a {
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover {
  border-bottom-color: var(--color-border);
}
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
  font-weight: 700;
}


/* ---------- 6. Phone menu ---------- */
.menu-toggle {
  display: none;
}

@media (max-width: 860px) {
  /* Tighter spacing so the logo, name and Menu button fit on one line */
  .header-top {
    column-gap: 12px;
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 16px;
  }

  /* Show the Menu button only when JavaScript is running, since it needs the script to work */
  .js .menu-toggle {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
  }

  /* Hide the links only when JavaScript is running, so the menu can always open */
  .js .header-actions,
  .js .site-nav {
    display: none;
  }

  .js .site-header.menu-open .header-actions,
  .js .site-header.menu-open .site-nav {
    display: flex;
  }

  .header-actions {
    width: 100%;
  }

  .site-nav {
    flex-direction: column;
    gap: 0;
    padding: 0 16px 12px;
  }

  .site-nav a {
    padding: 12px 0;
  }
}


/* ---------- 7. Footer (same on every page) ---------- */
.site-footer {
  margin-top: 64px;
  background: var(--color-surface-dark);
  color: var(--color-text-inverse);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

.footer-logo {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.footer-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-heading {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sky);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a {
  color: var(--color-text-inverse);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--color-sky);
  text-decoration: underline;
}

.footer-contact p {
  margin: 0 0 8px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}


/* ---------- 8. Hero (Home page) ---------- */
.hero {
  /* Two layers: faint grain on top, the ink gradient underneath */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E"),
    linear-gradient(150deg, var(--color-surface-dark) 0%, #1D2C4A 100%);
  color: var(--color-text-inverse);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 20px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 46ch;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.hero-photo p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

/* A real image fills the box. No overflow:hidden here — it would clip the SAMPLE tag. */
.hero-photo.has-image {
  padding: 0;
  background: none;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  border-radius: 12px;
}


/* ---------- 9. Proof bar (Home page) ---------- */
.proof-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.proof-number {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.proof-label {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}


/* ---------- 10. Section headings (used by several sections) ---------- */
.section-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  color: var(--color-primary);
}

.section-lead {
  margin: 0 0 32px;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
}


/* ---------- 11. System preview (Home page) ---------- */
.system {
  background: var(--color-surface-alt);
}

.system-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 20px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 28px;
}

.step {
  flex: 1 1 200px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.step-number {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent-strong);
}

.step-name {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
}

.step-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.step-arrow {
  align-self: center;
  font-size: 22px;
  color: var(--color-primary);
}

@media (max-width: 860px) {
  .step-arrow {
    display: none;
  }
}


/* ---------- 12. Audience router (Home page) ---------- */
.doors-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 20px;
}

.doors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.door {
  display: block;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.door:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 37, 87, 0.10);
}

.door h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.door p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.door-cue {
  font-weight: 700;
  color: var(--color-primary);
}


/* ---------- 13. Trust section (Home page) ---------- */
.trust {
  background: var(--color-surface-alt);
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 20px;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.logo-slot p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.quote {
  margin: 0 0 40px;
  padding: 28px;
  border-left: 4px solid var(--color-accent-strong);
  border-radius: 0 8px 8px 0;
  background: var(--color-surface);
}

.quote blockquote {
  margin: 0 0 12px;
}

.quote blockquote p {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
}

.quote figcaption {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.j4j {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 12px;
  background: var(--color-surface-dark);
  color: var(--color-text-inverse);
}

.j4j h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.j4j p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.85);
}


/* ---------- 14. Work-in-progress pages ---------- */
.page-intro-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 96px 20px;
}

.page-intro h1 {
  margin: 0 0 24px;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.wip {
  margin-bottom: 32px;
  padding: 28px;
  border-radius: 8px;
  background: var(--color-surface-alt);
}

.wip-note {
  margin: 0 0 16px;
  font-weight: 600;
}

.wip-lead {
  margin: 0 0 8px;
  color: var(--color-text-muted);
}

.coming-list {
  margin: 0;
  padding-left: 20px;
}

.coming-list li {
  margin-bottom: 6px;
}

.contact-block {
  margin-bottom: 32px;
  font-size: 20px;
}

.contact-block p {
  margin: 0 0 8px;
}

.contact-block a {
  color: var(--color-primary);
}


/* ---------- 15. Contact page ---------- */
.contact-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.leaders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.leader {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface-alt);
}

.leader p {
  margin: 0 0 6px;
}

.leader-name {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

/* Two classes, so this beats the ".leader p" margin above without !important */
.leader .leader-role {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.leader a {
  color: var(--color-primary);
}


/* ---------- 16. Tabs (About page) ---------- */
/* The buttons only appear when JavaScript is running. With JS off the tablist
   stays hidden and every panel shows in full, so no content is ever locked
   away behind a button that cannot be clicked. */
.tablist {
  display: none;
}

.js .tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--color-border);
}

.tab {
  padding: 12px 20px;
  margin-bottom: -2px;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  cursor: pointer;
}

.tab:hover {
  color: var(--color-primary);
}

.tab[aria-selected="true"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent-strong);
}

.tab:focus-visible,
.tabpanel:focus-visible {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 2px;
}

/* The founder tabs sit inside a panel, so they read as one level down. */
.js .tabs-inner .tablist {
  margin-bottom: 28px;
  border-bottom-width: 1px;
}

.tabs-inner .tab {
  padding: 10px 16px;
  font-size: 15px;
}


/* ---------- 17. Founders and long-form text (About page) ---------- */
.founder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

/* No crop: these are environmental portraits, not studio headshots, and
   guessing a face crop in CSS is how you end up cutting someone's chin off. */
.founder-photo {
  width: 260px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--color-surface-alt);
}

.founder-name {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.founder-role {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-muted);
}

.prose p {
  margin: 0 0 18px;
  max-width: 68ch;
}

.prose p:last-child {
  margin-bottom: 0;
}


/* ---------- 18. Phone spacing: the editorial gaps are too big on a small screen ---------- */
@media (max-width: 860px) {
  .hero-inner,
  .system-inner,
  .doors-inner,
  .trust-inner,
  .page-intro-inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}


/* ---------- 19. Two roads (The GJA System page) ---------- */
/* The old road and the GJA road, side by side. Each road is a list:
   every stop has a dot on the left, and the road runs down through the dots. */
.sys-intro {
  background: var(--color-surface-alt);
}

.sys-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 20px 32px;
}

.sys-intro h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.sys-intro-lead {
  max-width: 640px;
  margin: 0;
  font-size: 20px;
  color: var(--color-text-muted);
}

.roads {
  background: var(--color-surface-alt);
}

.roads-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 96px;
}

.road {
  padding: 36px 32px 40px;
  border-radius: 12px;
}

.road-label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.road-title {
  margin: 0 0 32px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

.road-path {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.road-path > li {
  position: relative;
  padding: 0 0 36px 52px;
}

.road-dot {
  position: absolute;
  top: 3px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.road-step {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.road-stop {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.road-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Old road: broken, jogging sideways, looping back, dead end */
.road-old {
  background: #ECE8E1;
}

.road-old .road-label,
.road-old .road-title,
.road-old .road-text {
  color: var(--color-text-muted);
}

.road-old .road-dot {
  border: 3px solid #A8A29A;
  background: #ECE8E1;
}

.road-old .road-path > li {
  padding-bottom: 52px;
}

/* Each dashed segment stops short of the next stop: the gaps are the breaks. */
.road-old .road-path > li::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 14px;
  left: 10px;
  border-left: 3px dashed #A8A29A;
}

/* The segments don't line up: the road jogs left and right. */
.road-old .road-path > li:nth-child(2) { transform: translateX(14px); }
.road-old .road-path > li:nth-child(3) { transform: translateX(-4px); }
.road-old .road-path > li:nth-child(4) { transform: translateX(18px); }
.road-old .road-path > li:nth-child(5) { transform: translateX(4px); }
.road-old .road-path > li:nth-child(6) { transform: translateX(20px); }

/* The loop: a dashed arc from "Referred again" back up toward the start. */
.road-loop::after {
  content: "";
  position: absolute;
  top: -92px;
  left: -26px;
  width: 30px;
  height: 108px;
  border: 2px dashed #C9C3B8;
  border-right: none;
  border-radius: 30px 0 0 30px;
}

.road-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.road-old .road-lost {
  padding-bottom: 0;
}

.road-old .road-lost::before {
  display: none;
}

.road-lost .road-dot {
  top: -6px;
  left: -2px;
  width: auto;
  height: auto;
  border: none;
  background: none;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent-strong);
}

.road-lost .road-stop {
  color: var(--color-accent-strong);
}

/* GJA road: one solid red road, the navigator line beside it */
.road-gja {
  background: var(--color-surface-dark);
  color: var(--color-text-inverse);
}

.road-gja .road-label,
.road-gja .road-step,
.road-nav-note {
  color: var(--color-sky);
}

.road-gja .road-title {
  color: var(--color-text-inverse);
}

.road-gja .road-text {
  color: rgba(255, 255, 255, 0.78);
}

.road-gja .road-dot {
  border: 4px solid var(--color-surface-dark);
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent);
}

.road-gja .road-finish {
  padding-bottom: 0;
}

.road-gja .road-finish .road-dot {
  background: var(--color-text-inverse);
  box-shadow: 0 0 0 3px var(--color-text-inverse);
}

.road-gja .road-finish .road-stop {
  font-size: 26px;
}

/* One continuous road down the whole list (::before), navigator line beside it (::after). */
.road-gja .road-path::before,
.road-gja .road-path::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 40px;
  transform-origin: top;
  transition: transform 1.8s ease-out;
}

.road-gja .road-path::before {
  left: 8px;
  width: 6px;
  border-radius: 3px;
  background: var(--color-accent);
}

.road-gja .road-path::after {
  left: 22px;
  width: 2px;
  background: var(--color-sky);
  transition-delay: 0.2s;
}

.road-nav-note {
  margin: 0 0 28px 52px;
  font-size: 13px;
  font-weight: 600;
}

.road-receive-head {
  margin: 14px 0 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.road-receive {
  margin: 0;
  padding: 0;
  list-style: none;
}

.road-receive li {
  position: relative;
  margin: 0 0 7px;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.road-receive li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* The GJA road draws itself when scrolled into view. The page ships fully drawn;
   gja.js section 4 adds .road-pending only when motion is allowed, so without
   JavaScript, or with reduce-motion on, the finished road is what shows. */
.road-gja .road-path > li {
  transition: opacity 0.5s ease-out;
}

.road-pending .road-path::before,
.road-pending .road-path::after {
  transform: scaleY(0);
}

.road-pending .road-path > li {
  opacity: 0;
}

.road-gja .road-path > li:nth-child(2) { transition-delay: 0.35s; }
.road-gja .road-path > li:nth-child(3) { transition-delay: 0.7s; }
.road-gja .road-path > li:nth-child(4) { transition-delay: 1.05s; }
.road-gja .road-path > li:nth-child(5) { transition-delay: 1.4s; }
.road-gja .road-path > li:nth-child(6) { transition-delay: 1.75s; }

@media (prefers-reduced-motion: reduce) {
  .road-gja .road-path::before,
  .road-gja .road-path::after,
  .road-gja .road-path > li {
    transition: none;
  }
}

/* Accompaniment and the closing call to action */
.sys-accomp-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 20px;
}

.sys-accomp h2 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  color: var(--color-primary);
}

.sys-accomp p {
  max-width: 680px;
  margin: 0;
  font-size: 19px;
}

.sys-cta {
  background: var(--color-surface-alt);
  text-align: center;
}

.sys-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 20px;
}

.sys-cta h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--color-primary);
}

/* Phone: the two roads stack, old road first */
@media (max-width: 860px) {
  .roads-inner {
    grid-template-columns: 1fr;
    padding-bottom: 56px;
  }

  .road {
    padding: 28px 20px 32px;
  }

  .sys-intro-inner {
    padding-top: 56px;
  }

  .sys-accomp-inner,
  .sys-cta-inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}


/* ---------- 20. Services page ---------- */
/* One page, four sections. Each section: a heading on the left,
   the description and buttons on the right. Stacks on a phone. */
.svc-intro {
  background: var(--color-surface-alt);
}

.svc-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 20px 56px;
}

.svc-intro h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.svc-intro-lead {
  max-width: 640px;
  margin: 0 0 32px;
  font-size: 20px;
  color: var(--color-text-muted);
}

.svc-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.svc-jump a {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.svc-jump a:hover {
  border-color: var(--color-primary);
}

.svc-alt {
  background: var(--color-surface-alt);
}

.svc-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 20px;
}

.svc-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.svc-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  color: var(--color-primary);
}

.svc-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.svc-list li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 17px;
}

.svc-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.svc-list strong {
  color: var(--color-primary);
}

.svc-text {
  margin: 0 0 24px;
  font-size: 18px;
}

.svc-note {
  margin: 0 0 24px;
  padding-left: 16px;
  border-left: 3px solid var(--color-brand-blue);
  font-size: 15px;
  color: var(--color-text-muted);
}

.svc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .svc-intro-inner {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .svc-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
}


/* ---------- 21. Got Jobs 4 Justice page ---------- */
/* Overview version: intro, one sourced statistic on ink, three pillars,
   four goals, how it works. The closing CTA reuses .sys-cta (section 19). */
.gj4j-intro {
  background: var(--color-surface-alt);
}

.gj4j-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 20px 72px;
}

.gj4j-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.gj4j-intro h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.gj4j-lead {
  max-width: 720px;
  margin: 0;
  font-size: 20px;
  color: var(--color-text-muted);
}

.gj4j-why {
  background: var(--color-surface-dark);
  color: var(--color-text-inverse);
}

.gj4j-why-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.gj4j-stat {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-accent);
}

.gj4j-why h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--color-text-inverse);
}

.gj4j-why p {
  max-width: 560px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
}

.gj4j-why .gj4j-source {
  margin: 0;
  font-size: 13px;
  color: var(--color-sky);
}

.gj4j-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 20px;
}

.gj4j-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gj4j-pillar {
  padding: 28px;
  border-top: 4px solid var(--color-accent);
  border-radius: 8px;
  background: var(--color-surface-alt);
}

.gj4j-pillar h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--color-primary);
}

.gj4j-pillar p {
  margin: 0;
  font-size: 16px;
  color: var(--color-text-muted);
}

.gj4j-goals {
  background: var(--color-surface-alt);
}

.gj4j-goal-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gj4j-goal-list li {
  padding: 24px;
  border-radius: 8px;
  background: var(--color-surface);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

/* The photos differ in size and shape; one fixed shape keeps the tiles even. */
.gj4j-goal-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin-bottom: 16px;
  border-radius: 6px;
  object-fit: cover;
}

.gj4j-goal-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent-strong);
}

.gj4j-how-text {
  max-width: 720px;
  margin: 0;
  font-size: 20px;
}

@media (max-width: 860px) {
  .gj4j-intro-inner {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .gj4j-why-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .gj4j-inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .gj4j-pillar-grid,
  .gj4j-goal-list {
    grid-template-columns: 1fr;
  }
}
