/* Bridgepath — site styles */

@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4.woff') format('woff');
  font-weight: 300 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff') format('woff');
  font-weight: 400 600; font-style: normal; font-display: swap;
}

:root {
  --navy: #0E2236;
  --navy-deep: #0A1A2B;
  --ivory: #F6F3EC;
  --white: #FFFFFF;
  --ink: #1B2430;
  --body: #3A4452;
  --muted: #5A6472;
  --rule: #D9D3C7;
  --field: #8C929B;
  --gold: #B08D57;
  --gold-text: #7A5C30;
  --mist: #C9D2DC;
  --mist-2: #A3AFBC;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;

  interpolate-size: allow-keywords;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; }

::selection { background: var(--gold); color: var(--navy); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 12px 18px;
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; margin: 0 auto; padding-inline: var(--gutter); }

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

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(14, 34, 54, 0);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
  view-transition-name: site-header;
}
.site-header.is-scrolled,
.site-header.is-solid,
.nav-open .site-header {
  background: rgba(14, 34, 54, .96);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(201, 210, 220, .08), 0 12px 32px -18px rgba(0, 0, 0, .5);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  transition: height .4s var(--ease);
}
.site-header.is-scrolled .container { height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--ivory); text-decoration: none;
}
.brand svg { width: 66px; height: auto; transition: transform .6s var(--ease); }
.brand:hover svg { transform: translateY(-2px); }
.brand span {
  font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .26em;
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  position: relative; color: #D5DCE4; text-decoration: none;
  font-size: 14px; letter-spacing: .02em; padding: 10px 0;
  transition: color .25s var(--ease);
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--ivory); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--ivory); }

.nav-cta {
  color: var(--ivory) !important; border: 1px solid var(--gold);
  padding: 11px 20px !important;
  transition: background-color .3s var(--ease), color .3s var(--ease) !important;
}
.nav-cta:hover { background: var(--gold); color: var(--navy) !important; }

.menu-toggle {
  display: none; position: relative; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 0; margin-right: -10px;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ivory);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .brand svg { width: 54px; }
  .brand span { font-size: 17px; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 16px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
    overflow-y: auto;
  }
  .site-header.is-scrolled .nav { top: 68px; height: calc(100dvh - 68px); }
  .nav-open .nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s;
  }
  .nav a {
    font-family: var(--serif); font-size: 28px; color: var(--ivory);
    padding: 18px 0; border-bottom: 1px solid rgba(201, 210, 220, .14);
  }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--gold); }
  .nav-cta {
    margin-top: 28px; text-align: center; font-family: var(--sans) !important;
    font-size: 16px !important; font-weight: 600; padding: 16px 20px !important;
    border-bottom: 1px solid var(--gold) !important;
  }
  .nav-open { overflow: hidden; }
}

/* ---------- Typography ---------- */

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 20px;
}
.on-dark .eyebrow, .eyebrow--light { color: var(--gold); }

.display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(42px, 5.8vw, 80px); line-height: 1.04; letter-spacing: -.015em;
  color: var(--ivory); max-width: 16ch;
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; color: var(--navy);
  max-width: 24ch;
}
.on-dark .h2 { color: var(--ivory); }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; color: var(--navy); }
.on-dark .h3 { color: var(--ivory); }
.h4 { font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--navy); }
.on-dark .h4 { color: var(--ivory); }

.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--mist); max-width: 58ch; }
.body-lg { font-size: 17px; line-height: 1.7; color: var(--body); }
.body { font-size: 16px; line-height: 1.7; color: var(--body); }
.body-sm { font-size: 15px; line-height: 1.65; color: var(--body); }
.on-dark .body-lg, .on-dark .body, .on-dark .body-sm { color: var(--mist); }
.note { font-size: 13px; line-height: 1.6; color: var(--muted); }
.label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.on-dark .label { color: var(--gold); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.bg-ivory { background: var(--ivory); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--ivory); }
.bg-deep { background: var(--navy-deep); color: var(--ivory); }

.grid {
  display: grid; gap: var(--gap, 40px);
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 280px), 100%), 1fr));
}
.split { --min: 320px; --gap: 40px 96px; }
.split--end { align-items: end; }
.stack > * + * { margin-top: var(--space, 28px); }
.mt-xl { margin-top: clamp(48px, 6vw, 64px); }
.mt-lg { margin-top: 40px; }
.mt-md { margin-top: 28px; }

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

.hero {
  position: relative; background: var(--navy); color: var(--ivory);
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.hero--home { padding-bottom: 0; }
.hero .lead { margin-top: 36px; }
.hero-actions { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.hero-lines { display: block; width: 100%; height: clamp(72px, 9vw, 120px); margin-top: clamp(56px, 8vw, 96px); }
.hero-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) .5s forwards; }
.hero-lines path + path { animation-delay: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Buttons & links ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 15px 28px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  border: 0; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(10, 26, 43, .6); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold::before { background: var(--ivory); }
.btn--navy { background: var(--navy); color: var(--ivory); }
.btn--navy::before { background: var(--gold); }
.btn--navy:hover { color: var(--navy); }

.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 0; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--navy);
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: currentColor; opacity: .35; transition: opacity .3s var(--ease);
}
.on-dark .link-arrow, .link-arrow--light { color: var(--ivory); }
.on-dark .link-arrow::after, .link-arrow--light::after { background: var(--gold); opacity: 1; }
.link-arrow .arrow { display: inline-block; transition: transform .45s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(6px); }
.link-arrow:hover::after { opacity: 1; }

/* ---------- Components ---------- */

.rule-top { border-top: 1px solid var(--rule); }
.rule-navy { border-top: 1px solid var(--navy); }
.on-dark .rule-gold, .rule-gold { border-top: 1px solid var(--gold); }

.stat-grid { --min: 260px; border-top: 1px solid var(--rule); }
.stat { padding-top: 32px; }
.stat-value {
  font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 6vw, 80px);
  line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums;
}
.stat .body { margin-top: 20px; font-size: 16px; line-height: 1.55; }
.stat .note { margin-top: 14px; font-size: 12px; }

.row {
  display: grid; gap: 16px 56px; padding: 40px 0; border-bottom: 1px solid var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  transition: background-color .4s var(--ease), padding .4s var(--ease);
}
.rows { border-top: 1px solid var(--navy); }
.row .h3 { font-size: 28px; margin-top: 12px; line-height: 1.2; }
.rows--compact .row { padding: 32px 0; gap: 12px 56px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.rows--compact .h3 { margin: 0; font-size: 24px; }
.row-num { color: var(--gold-text); font-family: var(--sans); font-size: 16px; margin-right: 16px; }

.pillar { padding-top: 24px; border-top: 1px solid var(--gold); }
.pillar-num { font-family: var(--serif); font-weight: 300; font-size: 34px; color: var(--gold); line-height: 1.2; }
.pillar .h4 { margin-top: 16px; }
.pillar .body-sm { margin-top: 12px; }

.step { padding-top: 24px; border-top: 1px solid var(--navy); }
.on-dark .step { border-top-color: var(--gold); }
.step .label { letter-spacing: .14em; }
.step .h4 { margin-top: 14px; font-size: 18px; }
.step .body-sm { margin-top: 10px; }
.steps { list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; --min: 220px; --gap: 40px 32px; }

.cells { --min: 300px; --gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.cell {
  padding: 36px 32px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transition: background-color .45s var(--ease);
}
.cell:hover { background: var(--white); }
.cell .body-sm { margin-top: 12px; }

.panel { background: var(--white); border: 1px solid var(--rule); padding: clamp(28px, 4vw, 48px); }
.measure-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.measure-list li {
  display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule);
  font-size: 15px; line-height: 1.5; color: var(--ink);
}
.measure-list span { color: var(--gold-text); font-weight: 600; min-width: 24px; }

/* Cards (insights) */
.card {
  display: block; text-decoration: none; border-top: 1px solid var(--navy); padding-top: 24px;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.card .h3 { margin-top: 16px; background-image: linear-gradient(var(--navy), var(--navy));
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .6s var(--ease); display: inline; }
.card:hover .h3 { background-size: 100% 1px; }
.card .body-sm { margin-top: 14px; }
.card-meta { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.is-hidden { display: none !important; }

.feature {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  text-decoration: none; background: var(--white); border: 1px solid var(--rule);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.feature:hover { box-shadow: 0 24px 48px -32px rgba(10, 26, 43, .45); transform: translateY(-2px); }
.feature-art { background: var(--navy); min-height: 300px; display: flex; align-items: flex-end; padding: 40px; overflow: hidden; }
.feature-art svg { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.feature:hover .feature-art svg { transform: scale(1.04); }
.feature-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.feature-body .h2 { margin-top: 18px; font-size: clamp(28px, 3vw, 40px); }
.feature-body .body { margin-top: 18px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; }
.filter {
  font-size: 14px; font-weight: 500; color: var(--navy); background: transparent;
  border: 1px solid #B9B2A4; padding: 11px 19px; min-height: 44px; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); color: var(--ivory); border-color: var(--navy); }

/* FAQ */
.faq { border-top: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; flex: 0 0 14px; height: 14px; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 6.5px; height: 1.5px; background: var(--gold-text);
  transition: transform .45s var(--ease);
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq details::details-content {
  height: 0; overflow: clip;
  transition: height .45s var(--ease), content-visibility .45s allow-discrete;
}
.faq details[open]::details-content { height: auto; }
.faq details p { padding: 0 40px 24px 0; font-size: 16px; line-height: 1.7; color: var(--body); }

/* Forms */
.form { --min: 220px; --gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; color: var(--navy); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; font-size: 16px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--field);
  background: transparent; color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 0 var(--navy);
}
.field .optional { font-weight: 400; color: var(--muted); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.hidden { display: none; }
.form-inline { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.form-inline .field { flex: 1 1 260px; }

/* Article */
.article-hero { background: var(--ivory); padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(48px, 6vw, 72px); }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.article-hero h1 {
  margin-top: 28px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.1; letter-spacing: -.01em; color: var(--navy);
}
.standfirst { margin-top: 28px; font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--body); }
.byline { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.prose { padding-block: clamp(48px, 6vw, 80px) clamp(64px, 8vw, 104px); font-family: var(--serif); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.7; color: var(--ink); }
.prose p + p { margin-top: 20px; }
.prose h2 { margin: 56px 0 0; font-family: var(--sans); font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.prose h2 + p { margin-top: 20px; }
.prose strong { font-weight: 600; }
.prose ol { margin: 24px 0 0; padding-left: 24px; font-family: var(--sans); font-size: 17px; line-height: 1.7; }
.prose li + li { margin-top: 10px; }
.pull {
  margin: 48px 0; padding: 36px 0; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px 48px; align-items: center;
}
.pull + h2 { margin-top: 0; }
.pull-value { font-weight: 300; font-size: 72px; line-height: 1; color: var(--navy); }
.pull-text { font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--body); }
.pull-text span { display: block; font-size: 13px; color: var(--muted); }
.sources { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 14px; line-height: 1.7; color: var(--muted); }
.sources strong { color: var(--navy); }
.callout { margin-top: 64px; padding: 32px; background: var(--ivory); font-family: var(--sans); }

/* Legal */
.legal { padding-block: clamp(48px, 6vw, 80px) clamp(72px, 9vw, 112px); }
.legal h2 { margin-top: 40px; font-size: 19px; font-weight: 600; color: var(--navy); }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--body); }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--mist); }
.site-footer .container { padding-top: 72px; padding-bottom: 40px; }
.footer-grid { --min: 200px; align-items: start; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-nav a { color: var(--mist); text-decoration: none; transition: color .25s var(--ease); width: fit-content; }
.footer-nav a:hover { color: var(--ivory); }
.footer-contact { font-size: 14px; line-height: 1.8; }
.footer-contact a { color: var(--ivory); }
.footer-base {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(201, 210, 220, .2);
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; color: var(--mist-2);
}
.footer-base nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-base a { color: var(--mist-2); text-decoration: none; }
.footer-base a:hover { color: var(--ivory); }

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
::view-transition-group(site-header) { animation-duration: 0s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

.page-enter main { animation: vt-in .7s var(--ease) both; }
.is-leaving main, .is-leaving .site-footer { opacity: 0; transform: translateY(-6px); transition: opacity .26s var(--ease), transform .26s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-lines path { stroke-dashoffset: 0; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Fixed column layouts that stay balanced */
.cols-2, .cols-3, .cols-4, .cols-5 { display: grid; gap: var(--gap, 40px); grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .cols-2, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3, .cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
