/* Crain, Langner & Co. — site stylesheet */

:root {
  /* Palette (from the Navy + Gold mockup) */
  --navy: #0F1E33;
  --navy-card: #16284A;
  --navy-line: #2A4166;
  --gold: #C9A56A;
  --gold-deep: #A8864F;
  --gold-hover: #D6B57E;
  --bronze: #7A5C2E;
  --cream: #F5F2EA;
  --sand: #E9E4DA;
  --line: #E2DDD3;
  --stat-line: #CFC7B8;
  --photo-bg: #ECE7DD;
  --white: #FFFFFF;
  --ink-muted: #4E545C;
  --ink-stat: #565B64;
  --ink-logo: #6A6F78;
  --mist: #B9C3D1;
  --mist-light: #D5DCE6;
  --mist-dim: #93A0B4;
  --error: #F2B8AC;

  /* Type */
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Libre Caslon Text", Georgia, serif;
  --font-display: "Cormorant Garamond", Georgia, serif;

  /* Layout */
  --content: 1200px;
  --gutter: clamp(20px, 8.333vw, 120px);
  --section-y: clamp(64px, 3.9vw + 48px, 104px);
  --section-y-lg: clamp(68px, 4.4vw + 49px, 112px);
  --section-y-xl: clamp(72px, 5vw + 48px, 120px);
  --split-gap: clamp(40px, 6.67vw, 96px);
  --header-h: 83px;
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: normal;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }

[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
#top { scroll-margin-top: var(--header-h); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

main:focus { outline: none; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared components ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--gold-hover); }
.btn[disabled] { opacity: .65; cursor: progress; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--light { color: var(--mist-light); }
.eyebrow--hero { color: var(--mist); }

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 1.6vw + 21px, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}
.h2--lg { font-size: clamp(34px, 2.2vw + 20.3px, 52px); }
.section--navy .h2 { color: var(--cream); }

.body-lg {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-muted);
}
.body-lg--light { color: var(--mist-light); line-height: 1.6; }
.body-lg--mist { color: var(--mist); line-height: 1.6; }

.body-sm {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

.stack { display: flex; flex-direction: column; }
.stack--6 { gap: 6px; }
.stack--16 { gap: 16px; }
.stack--22 { gap: 22px; }
.stack--28 { gap: 28px; }

.section { padding-block: var(--section-y); }
.section--navy { background: var(--navy); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.split {
  display: grid;
  gap: var(--split-gap);
  align-items: start;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 242, 234, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand .seal { width: 46px; height: 46px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--navy);
  white-space: nowrap;
}
.brand-tag {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.2;
  color: var(--ink-logo);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
  text-underline-offset: 4px;
}
.nav-links a:hover { text-decoration: underline; text-decoration-color: var(--gold-deep); }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

@keyframes gIn { from { stroke-dasharray: 1 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1 1; stroke-dashoffset: 0; } }
@keyframes gDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gGlide { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.g-base { animation: gIn 1.8s cubic-bezier(.4, 0, .2, 1) both; }
.g-glint { stroke-dasharray: .14 .86; animation: gGlide 18s linear infinite; }
.g-guide { stroke-dasharray: 1 1; animation: gDraw 2.6s cubic-bezier(.5, 0, .2, 1) 1.2s both; }
.g-guide-glint { stroke-dasharray: .1 .9; animation: gGlide 9s linear 3.8s infinite; }
.g-w { display: inline-block; animation: gRise .8s cubic-bezier(.2, .7, .2, 1) both; }
.g-rest { animation: gRise .8s ease .7s both; }

.hero-title .g-w:nth-child(2) { animation-delay: .12s; }
.hero-title .g-w:nth-child(3) { animation-delay: .24s; }
.hero-title .g-w:nth-child(4) { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .g-base, .g-glint, .g-guide, .g-guide-glint, .g-w, .g-rest { animation: none; }
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: clamp(540px, 47.2vw, 680px);
  padding: clamp(72px, 6.67vw, 96px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  max-width: 980px;
  text-align: center;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(44px, 5.5vw + 12.8px, 92px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--white);
}
.hero-accent {
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}
.hero-lede {
  max-width: 600px;
  font-size: clamp(17px, 0.3vw + 14.7px, 19px);
  line-height: 1.6;
  color: var(--mist-light);
  background: rgba(15, 30, 51, 0.78);
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 26px;
  padding-top: 6px;
}
.text-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: var(--gold); }

/* ---------- Stats band ---------- */

.stats {
  --stat-pad: 32px;
  background: var(--sand);
  padding-block: clamp(36px, 3.6vw, 52px);
}
.stats-grid {
  max-width: calc(var(--content) + 2 * var(--stat-pad) + 2 * max(0px, var(--gutter) - var(--stat-pad)));
  padding-inline: max(0px, calc(var(--gutter) - var(--stat-pad)));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 var(--stat-pad);
}
.stat + .stat { border-left: 1px solid var(--stat-line); }
.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(40px, 1.4vw + 34px, 54px);
  line-height: 1;
  color: var(--navy);
}
.stat-label {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-stat);
}

/* ---------- Independence ---------- */

.section--independence { padding-block: var(--section-y-lg); }
.split--independence { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 28px;
}
.pull-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(21px, 0.6vw + 17.4px, 26px);
  line-height: 1.45;
  color: var(--mist-light);
}

.checklist { border-bottom: 1px solid var(--navy-line); }
.check-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--navy-line);
}
.check-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(21px, 0.4vw + 18.2px, 24px);
  line-height: 1.2;
  color: var(--cream);
}
.check-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--mist);
}

/* ---------- Services ---------- */

.split--services { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }

.services-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.services-copy p {
  font-size: clamp(17px, 0.15vw + 15.8px, 18px);
  line-height: 1.6;
  color: var(--ink-muted);
}
.services-copy p + p {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.services-copy strong { font-weight: 600; color: var(--navy); }

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 3.9vw, 56px);
}
.principle {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 36px;
  background: var(--cream);
  border-top: 4px solid var(--gold);
}
.principle-num {
  font-family: var(--font-serif);
  font-size: clamp(52px, 0.9vw + 51px, 64px);
  line-height: 1;
  color: var(--bronze);
}
.principle-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 0.4vw + 24px, 30px);
  line-height: 1.2;
  color: var(--navy);
}
.principle-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--navy);
}

/* ---------- Who we serve ---------- */

.sectors {
  margin-top: clamp(32px, 3.33vw, 48px);
  border-bottom: 1px solid var(--line);
}
.sector {
  display: grid;
  grid-template-columns: 64px 340px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.sector-num {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--bronze);
}
.sector-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 0.5vw + 18.8px, 26px);
  line-height: 1.25;
  color: var(--navy);
}
.sector-text {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---------- Timeline ---------- */

.timeline {
  --tl-year: clamp(40px, 3.9vw, 56px);
  position: relative;
  margin-top: clamp(44px, 4.44vw, 64px);
}
.tl-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.tl-item {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-right: 28px;
}
.tl-year {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--tl-year);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.tl-item--current .tl-year { color: var(--bronze); }
.tl-dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px var(--white);
}
.tl-item--filled .tl-dot { background: var(--navy); }
.tl-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  margin-left: 8px;
}
.tl-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tl-kind {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}
.tl-text {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--navy);
}
.tl-line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--tl-year) + 31px);
  height: 2px;
  background: linear-gradient(90deg, var(--line) 0%, var(--gold) 70%, var(--gold) 100%);
}
.tl-arrow {
  position: absolute;
  right: -6px;
  top: calc(var(--tl-year) + 26px);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--gold);
}

/* ---------- PolicyStack ---------- */

.section--policystack { padding-block: var(--section-y-xl); }

.ps-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}
.ps-intro {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ps-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 6px 12px;
}
.ps-narrow { max-width: 476px; }
.ps-cta { padding-top: 8px; }

.ps-features {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ps-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ps-icon {
  width: 48px;
  height: 48px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-card-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.25;
  color: var(--cream);
}
.ps-card-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- Partners ---------- */

.partners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: clamp(40px, 3.9vw, 56px);
}
.partner {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 18px;
}
.partner-photo {
  aspect-ratio: 4 / 5;
  background: var(--photo-bg);
  overflow: hidden;
}
.partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pos-dan { object-position: 55% 30%; }
.pos-kelly { object-position: 52% 30%; }
.pos-brad { object-position: 50% 50%; }
.partner-id {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.partner-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.2;
  color: var(--navy);
}
.partner-role {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bronze);
}
.partner-creds {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.partner-creds p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ---------- Contact ---------- */

.section--contact { padding-block: var(--section-y-lg); }
.split--contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3.06vw, 44px);
  border: 1px solid rgba(201, 165, 106, 0.55);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
}
.req { color: var(--gold); }
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--navy-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  font: 16px var(--font-sans);
  color: var(--cream);
  -webkit-appearance: none;
  appearance: none;
}
.field input {
  height: 52px;
  padding: 0 14px;
}
.field textarea {
  height: 166px;
  min-height: 166px;
  padding: 12px 14px;
  resize: vertical;
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--error); }

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.form-note {
  font-size: 13px;
  color: var(--mist);
}
.form-status {
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream);
}
.form-status:empty { display: none; }
.form-status.is-success { color: var(--gold); }
.form-status.is-error { color: var(--error); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  padding-block: 48px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}
.brand--footer .seal { width: 44px; height: 44px; }
.brand--footer .brand-name { color: var(--cream); }
.brand--footer .brand-tag { color: var(--mist-dim); }
.footer-meta {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist-dim);
}
.footer-meta a { color: var(--mist-light); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .ps-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 56px;
  }
  .ps-intro { width: auto; max-width: 680px; }
  .ps-narrow { max-width: none; }

  .tl-item { padding-right: 16px; }
  .tl-body { padding-left: 14px; }
  .tl-text { font-size: 16.5px; }
}

@media (max-width: 1100px) {
  :root { --header-h: 81px; }

  .menu-toggle { display: inline-flex; order: 2; }
  .nav-cta { order: 1; }
  .site-nav { gap: 12px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(15, 30, 51, 0.35);
  }
  .site-nav.is-open .nav-links { display: flex; }
  .nav-links a {
    display: block;
    padding: 14px var(--gutter);
    font-size: 17px;
  }
  .nav-links li + li a { border-top: 1px solid var(--line); }

  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:last-child { grid-column: 1 / -1; }
}

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

  .sector {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 16px;
  }
  .sector-text { grid-column: 2; }

  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }

  .stats { --stat-pad: 20px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stat:nth-child(odd) { border-left: 0; }

  /* Timeline stacks vertically */
  .timeline { --tl-year: 40px; }
  .tl-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .tl-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-areas: "dot year" ". body";
    column-gap: 22px;
    row-gap: 14px;
    align-items: center;
    padding-right: 0;
  }
  .tl-year { grid-area: year; }
  .tl-dot { grid-area: dot; }
  .tl-body {
    grid-area: body;
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    max-width: 560px;
  }
  .tl-line {
    left: 8px;
    right: auto;
    top: calc(var(--tl-year) / 2);
    bottom: 0;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--line) 0%, var(--gold) 70%, var(--gold) 100%);
  }
  .tl-arrow {
    right: auto;
    left: 3px;
    top: auto;
    bottom: -8px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--gold);
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; }

  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle { padding: 32px 24px; }

  .ps-features { grid-template-columns: minmax(0, 1fr); }
  .ps-card { padding: 28px 24px; }

  .partners { grid-template-columns: minmax(0, 1fr); gap: 48px; }

  .form-row { grid-template-columns: minmax(0, 1fr); }

  .stats { --stat-pad: 16px; }
}

@media (max-width: 520px) {
  :root { --header-h: 73px; }

  .header-inner { gap: 12px; padding-block: 12px; }
  .site-header .brand-text { display: none; }
  .site-header .seal { width: 42px; height: 42px; }
  .site-nav { gap: 8px; }
  .nav-cta {
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero-actions { flex-direction: column; }
  .pull-quote { padding-left: 20px; }
  .contact-form .btn { width: 100%; }
}

/* Hero line-art timings (moved from inline styles so the Content-Security-Policy
   can disallow inline styles) */
.hl-1 { animation-delay:0s; }
.hl-2 { animation-duration: 14s; animation-delay:0s; }
.hl-3 { animation-delay: 0.03s; }
.hl-4 { animation-delay: 0.06s; }
.hl-5 { animation-delay: 0.09s; }
.hl-6 { animation-duration: 24s; animation-delay: -5.1s; }
.hl-7 { animation-delay: 0.12s; }
.hl-8 { animation-delay: 0.15s; }
.hl-9 { animation-delay: 0.18s; }
.hl-10 { animation-duration: 23s; animation-delay: -10.2s; }
.hl-11 { animation-delay: 0.21s; }
.hl-12 { animation-delay: 0.24s; }
.hl-13 { animation-delay: 0.27s; }
.hl-14 { animation-duration: 22s; animation-delay: -15.3s; }
.hl-15 { animation-delay: 0.3s; }
.hl-16 { animation-delay: 0.33s; }
.hl-17 { animation-delay: 0.36s; }
.hl-18 { animation-duration: 21s; animation-delay: -20.4s; }
.hl-19 { animation-delay: 0.39s; }
.hl-20 { animation-delay: 0.42s; }
.hl-21 { animation-delay: 0.45s; }
.hl-22 { animation-duration: 20s; animation-delay: -25.5s; }
.hl-23 { animation-delay: 0.48s; }
.hl-24 { animation-delay: 0.51s; }
.hl-25 { animation-delay: 0.54s; }
.hl-26 { animation-duration: 19s; animation-delay: -30.6s; }
.hl-27 { animation-delay: 0.57s; }
.hl-28 { animation-delay: 0.6s; }
.hl-29 { animation-delay: 0.63s; }
.hl-30 { animation-duration: 18s; animation-delay: -35.7s; }
.hl-31 { animation-delay: 0.66s; }
.hl-32 { animation-delay: 0.69s; }
.hl-33 { animation-delay: 0.72s; }
.hl-34 { animation-duration: 17s; animation-delay: -40.8s; }
.hl-35 { animation-delay: 0.75s; }
.hl-36 { animation-delay: 0.78s; }
.hl-37 { animation-delay: 0.81s; }
.hl-38 { animation-duration: 16s; animation-delay: -45.9s; }
.hl-39 { animation-delay: 0.84s; }
.hl-40 { animation-delay: 0.87s; }
.hl-41 { animation-delay: 0.9s; }
.hl-42 { animation-duration: 15s; animation-delay: -51s; }
.hl-43 { animation-delay: 0.93s; }
.hl-44 { animation-delay: 0.96s; }
.hl-45 { animation-delay: 0.99s; }
.hl-46 { animation-duration: 14s; animation-delay: -56.1s; }
