/* RVL Advisors — tokens drawn from the logo: navy ink and brass rule */
:root {
  --ink: #0E1C36;
  --ink-2: #1D2E4D;
  --slate: #4A5872;
  --brass: #B38F55;
  --brass-text: #8A6A36;   /* brass dark enough for text on white */
  --mist: #EEF1F5;
  --paper: #FFFFFF;
  --line: #D9DEE6;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 76px;

  /* Motion tokens (taste skill): hover in / out / press, one UI ease, one entrance ease */
  --m-in: 150ms;
  --m-out: 120ms;
  --m-press: 90ms;
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-enter: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Headlines carried by size and tight tracking, not weight */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.012em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.02em; line-height: 1.02; max-width: 15ch; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.016em; max-width: 20ch; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
/* Nav words rest bare, darken and draw a 1px line under the word; the current page holds a 2px bar */
.nav a {
  position: relative; white-space: nowrap; text-decoration: none; font-size: .95rem; font-weight: 500;
  color: var(--ink-2); padding: 6px 0; transition: color var(--m-out) var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right; transition: transform var(--m-out) var(--ease);
}
.nav a:hover { color: var(--ink); transition-duration: var(--m-in); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; transition-duration: var(--m-in); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { height: 2px; transform: none; }
.nav-toggle { display: none; }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a {
  font: 500 .8rem var(--sans); letter-spacing: .04em; text-decoration: none;
  color: var(--slate); padding: 6px 11px; border-radius: 999px;
  transition: color var(--m-out) var(--ease), background-color var(--m-out) var(--ease);
}
.lang a:hover { color: var(--ink); background: var(--mist); transition-duration: var(--m-in); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Buttons: one shape; the fill steps toward the ink on hover, the box steps up 1px, press sinks it */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 500 .98rem var(--sans); letter-spacing: .005em;
  padding: 14px 24px; border-radius: 2px; border: 1px solid transparent;
  transition: background-color var(--m-out) var(--ease), color var(--m-out) var(--ease),
              border-color var(--m-out) var(--ease), transform var(--m-out) var(--ease);
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #24375A; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--mist); }
.btn-gold { background: var(--brass); color: var(--ink); }
.btn-gold:hover { background: #C4A06A; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); transition-duration: var(--m-in); }
  .btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
}

/* Links in running text: a faint hairline at rest, an ink line on hover */
.contact-list a, .intro a, p a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: rgba(179,143,85,.55); transition: text-decoration-color var(--m-out) var(--ease);
}
.contact-list a:hover, .intro a:hover, p a:hover { text-decoration-color: var(--ink); transition-duration: var(--m-in); }

/* Hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); }
/* The homepage hero holds the first screen alone: words at the top, the lifecycle at its foot */
/* The timeline follows the buttons at a set distance; no full-screen stretch,
   so tall windows never open a gap between them */
.hero:not(.hero-page) { padding: clamp(48px, 7vh, 96px) 0 clamp(56px, 8vh, 96px); }
.hero:not(.hero-page) .lifecycle { margin-top: clamp(56px, 8vh, 88px); }

/* Hero entrance, once on load: the h1 rises, then the lead and buttons fade up 12px */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes up12 { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* Gated by html.m-enter, which a head script removes after 2.4 s whatever happens,
   so the words can never stay hidden if animations do not run */
.m-enter .hero h1 { animation: rise .7s var(--ease-enter) .05s both; }
.m-enter .hero .lead { animation: up12 .52s var(--ease-enter) .4s both; }
.m-enter .hero .actions { animation: up12 .52s var(--ease-enter) .46s both; }
/* Service pages: words left, the photograph right, top-aligned on the page's split line */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.hero-photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.m-enter .hero-photo img { animation: settle 1.1s var(--ease-enter) both; }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
.hero:not(.hero-page) h1 { max-width: 24ch; }
.hero:not(.hero-page) .lead { max-width: 72ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--slate); max-width: 58ch; margin-top: 1.2em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Lifecycle — the brass rule from the logo becomes the project timeline */
.lifecycle { margin: clamp(56px, 8vw, 96px) 0 0; }
.lc-stages {
  --entry: calc(100% / 6 * 1.5); /* centre of stage 2 */
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  position: relative;
}
.lc-stages::before, .lc-stages::after {
  content: ""; position: absolute; top: 9px; height: 2px;
  left: calc(100% / 12); right: calc(100% / 12);
}
.lc-stages::before { background: var(--line); }
.lc-stages::after {
  background: var(--brass);
  right: auto; width: calc(var(--entry) - 100% / 12);
  transform-origin: left;
}
.m-enter .lc-stages::after { animation: draw 1.1s cubic-bezier(.6,0,.2,1) .5s both; }
.lc-stages li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; }
.lc-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.lc-stages li:first-child .lc-dot { border-color: var(--brass); }
.lc-name { margin-top: 14px; font-size: .95rem; font-weight: 500; color: var(--slate); line-height: 1.35; }
.is-entry .lc-dot {
  width: 28px; height: 28px; margin-top: -4px;
  background: var(--brass); border-color: var(--brass);
  box-shadow: 0 0 0 6px rgba(179,143,85,.18);
}
.m-enter .is-entry .lc-dot { animation: pop .4s var(--ease-enter) 1.4s both; }
.is-entry .lc-name { color: var(--ink); font-weight: 500; margin-top: 10px; }
.lc-flag {
  margin-top: 10px; font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
  color: var(--brass-text); line-height: 1.2;
}
.m-enter .lc-flag { animation: fade .5s ease-out 1.65s both; }
.lifecycle figcaption { margin-top: 24px; color: var(--slate); max-width: 60ch; font-size: .98rem; }

@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Sections */
/* Sections separated by ground changes and generous space, never rules */
.section { padding: clamp(72px, 8vw, 120px) 0; }
.section-tint { background: var(--mist); }
.band { background: var(--ink); color: #E6EAF1; padding: clamp(72px, 8vw, 120px) 0; }
.band h2 { color: #fff; }
.band p { color: #C6CEDB; }
.band-advisory { background: var(--ink-2); }
.intro { color: var(--slate); font-size: 1.12rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }

/* Definition lists used for reasons / disciplines */
.reasons, .disciplines { margin: 0; display: grid; gap: 0; }
.reasons > div, .disciplines > div { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.16); }
.reasons > div:last-child, .disciplines > div:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.reasons dt, .disciplines dt { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; color: #fff; margin-bottom: 6px; }
.reasons dd, .disciplines dd { margin: 0; color: #C6CEDB; max-width: 48ch; }
.band .reasons dt::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--brass); vertical-align: middle; margin-right: 14px; transform: translateY(-3px); }

.disciplines > div { border-color: var(--line); }
.disciplines > div:last-child { border-bottom-color: var(--line); }
.disciplines dt { color: var(--ink); font-size: 1.8rem; }
.disciplines dd { color: var(--slate); }

/* Milestone payments — a real sequence of permits */
.note { color: var(--slate); font-size: .95rem; }
.milestones { list-style: none; margin: 0; padding: 0; counter-reset: ms; }
.milestones li {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  padding: 16px 0 16px 28px; border-top: 1px solid var(--line); position: relative;
}
.milestones li:last-child { border-bottom: 1px solid var(--line); }
.milestones li::before {
  content: ""; position: absolute; left: 0; top: 24px;
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink);
}
.milestones .m-name { font-weight: 500; }
.milestones .m-pay { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.milestones .free::before { background: var(--brass); border-color: var(--brass); }
.milestones .free .m-pay { color: var(--brass-text); }

/* Scroll moment (desktop, motion allowed; script.js adds .scrolly-on):
   the left column stays put, a brass line fills the rail as the page scrolls,
   the step at the reading line lights up, passed steps turn solid. Scrubbed, so it runs back on the way up.
   Nothing is hidden: inactive steps stay in slate at full contrast. */
@media (min-width: 861px) {
  .scrolly-split > div:first-child { position: sticky; top: calc(var(--header) + 48px); }
}
.milestones.scrolly-on { position: relative; }
.milestones.scrolly-on::before, .milestones.scrolly-on::after {
  content: ""; position: absolute; left: 6px; top: var(--rt, 46px); bottom: var(--rb, 46px); width: 2px;
}
.milestones.scrolly-on::before { background: var(--line); }
.milestones.scrolly-on::after { background: var(--brass); transform: scaleY(var(--p, 0)); transform-origin: top; }
.milestones.scrolly-on li { border: 0; padding: 34px 0 34px 48px; align-items: center; }
.milestones.scrolly-on li::before {
  z-index: 1; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: #fff; border-color: var(--line);
  transition: transform 240ms var(--ease), background-color 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.milestones.scrolly-on .m-name { font-size: 1.2rem; color: var(--slate); transition: color 240ms var(--ease); }
.milestones.scrolly-on .m-pay { font-size: 1.45rem; color: var(--slate); transition: color 240ms var(--ease); }
.milestones.scrolly-on .free .m-pay { color: var(--brass-text); }
.milestones.scrolly-on li.is-past::before { background: var(--ink); border-color: var(--ink); }
.milestones.scrolly-on li.free.is-past::before { background: var(--brass); border-color: var(--brass); }
.milestones.scrolly-on li.is-active::before {
  background: var(--brass); border-color: var(--brass);
  transform: scale(1.45); box-shadow: 0 0 0 6px rgba(179,143,85,.18);
}
.milestones.scrolly-on li.is-active .m-name { color: var(--ink); }
.milestones.scrolly-on li.is-active .m-pay { color: var(--ink); }
.milestones.scrolly-on li.free.is-active .m-pay { color: var(--brass-text); }

/* The same moment on the service pages' first navy band (dl.reasons) */
.reasons.scrolly-on { position: relative; }
.reasons.scrolly-on::before, .reasons.scrolly-on::after {
  content: ""; position: absolute; left: 6px; top: var(--rt, 40px); bottom: var(--rb, 40px); width: 2px;
}
.reasons.scrolly-on::before { background: rgba(255,255,255,.16); }
.reasons.scrolly-on::after { background: var(--brass); transform: scaleY(var(--p, 0)); transform-origin: top; }
.reasons.scrolly-on > div { position: relative; border: 0; padding: 30px 0 30px 48px; }
.reasons.scrolly-on > div::before {
  content: ""; position: absolute; z-index: 1; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--ink); border: 2px solid rgba(255,255,255,.32);
  transition: transform 240ms var(--ease), background-color 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.band .reasons.scrolly-on dt::before { display: none; }
.reasons.scrolly-on dt { color: #AEB8C9; transition: color 240ms var(--ease); }
.reasons.scrolly-on dd { color: #8C98AD; transition: color 240ms var(--ease); }
.reasons.scrolly-on > div.is-past::before { background: #C6CEDB; border-color: #C6CEDB; }
.reasons.scrolly-on > div.is-active::before {
  background: var(--brass); border-color: var(--brass);
  transform: scale(1.45); box-shadow: 0 0 0 6px rgba(179,143,85,.22);
}
.reasons.scrolly-on > div.is-active dt { color: #fff; }
.reasons.scrolly-on > div.is-active dd { color: #D5DBE6; }

/* Range — bar length shows relative project size */
.range { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.range li { display: flex; flex-direction: column; }
.range-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 24px; background: #DCE2EA; }
.range .bar { display: block; height: 10px; width: calc(var(--size) * 100%); min-width: 14px; background: var(--ink); margin-bottom: 22px; }
.range li:last-child .bar { background: var(--brass); }
.range p { color: var(--slate); }

/* Pipeline — bars drawn to scale against 100 MW */
.pipeline-head { margin-top: clamp(56px, 7vw, 88px); }
.pipeline-head p { color: var(--slate); }
.pipeline { list-style: none; margin: 20px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.pipeline li {
  display: grid; grid-template-columns: 110px 1fr minmax(220px, 300px); gap: 24px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.pl-size { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; font-variant-numeric: lining-nums; white-space: nowrap; }
.pl-track { display: block; height: 8px; background: rgba(14,28,54,.07); }
.pl-bar { display: block; height: 100%; width: calc(var(--mw) * 1%); min-width: 3px; background: var(--ink); }
.pipeline li:first-child .pl-bar { background: var(--brass); }
.pl-desc { color: var(--slate); font-size: .96rem; }

/* Steps — a real sequence, so numbered */
.steps { list-style: none; margin: 48px 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.hero-page h1 { max-width: 18ch; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: var(--brass-text); line-height: 1; margin-bottom: 14px; font-variant-numeric: lining-nums; }
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--slate); font-size: .98rem; }

/* Contact */
.contact-list { margin: 32px 0 0; }
.contact-list > div { display: grid; grid-template-columns: 90px 1fr; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--slate); font-size: .95rem; }
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list a { text-decoration-color: var(--brass); text-underline-offset: 3px; }

.form { display: grid; gap: 18px; background: var(--mist); padding: clamp(24px, 4vw, 40px); }
.form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font: 400 1rem var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #C9D0DB; border-radius: 2px; padding: 12px 14px; width: 100%;
}
.form input, .form select, .form textarea { transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(179,143,85,.28); }
.form [aria-invalid="true"] { border-color: #9B2C2C; }
.field-error { color: #9B2C2C; font-size: .86rem; font-weight: 400; }
.form .btn { justify-self: start; border: 0; }
.form-note { font-size: .85rem; color: var(--slate); margin: 0; }
.form-error { color: #9B2C2C; font-size: .92rem; margin: 0; }
.form-success { color: #1F5F3F; background: #E6F2EA; border-left: 3px solid #2F7A52; padding: 12px 14px; font-size: .95rem; margin: 0; }
.botcheck { display: none; }
.form .btn[disabled] { opacity: .6; cursor: wait; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 180px 1fr auto; gap: 40px; align-items: center; }
.footer-logo { width: 160px; }
.site-footer p { margin: 0; color: var(--slate); font-size: .95rem; }
.copy { font-size: .88rem; }
.site-footer .credits { grid-column: 1 / -1; order: 3; font-size: .8rem; max-width: none; color: var(--slate); }
.credits a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.credits a:hover { text-decoration-color: var(--ink); }

/* Responsive */
@media (max-width: 1180px) {
  .nav-toggle {
    display: block; font: 500 .95rem var(--sans); background: none; color: var(--ink);
    border: 1px solid var(--line); border-radius: 2px; padding: 0 16px; min-height: 44px; cursor: pointer;
  }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brass); padding-left: 12px; }
  .nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-inner { gap: 12px; }
}
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split, .hero-split { grid-template-columns: 1fr; }
  .range { grid-template-columns: 1fr; gap: 32px; }
  .pipeline li { grid-template-columns: 84px 1fr; gap: 6px 16px; }
  .pl-desc { grid-column: 2; }
  .pl-size { font-size: 1.3rem; grid-row: span 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }

  .brand img { height: 38px; }

  /* Lifecycle turns vertical */
  .lc-stages { grid-template-columns: 1fr; gap: 22px; }
  .lc-stages::before, .lc-stages::after { top: 10px; left: 9px; right: auto; width: 2px; height: auto; }
  .lc-stages::before { bottom: 10px; }
  .lc-stages::after { height: 58px; width: 2px; bottom: auto; transform-origin: top; }
  .m-enter .lc-stages::after { animation-name: drawY; }
  .lc-stages li { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; padding: 0; gap: 0 16px; }
  .lc-name, .is-entry .lc-name { margin-top: 0; }
  .is-entry .lc-dot { margin: 0 0 0 -4px; }
  .lc-flag { flex-basis: 100%; margin: 4px 0 0 36px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  /* Phone: every control 44px tall, hero buttons full width */
  .lang a { padding: 0 12px; min-height: 40px; display: flex; align-items: center; }
  .contact-list a { display: inline-block; padding: 10px 0; }
  .actions .btn, .form .btn { width: 100%; text-align: center; }
  .btn { padding: 15px 22px; }
}
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Data drawing in view — only active when script.js adds .motion to <html>.
   Text and cards never fade in on scroll; only the bars, dots and step rules that carry real data draw. */

/* Bars grow to their real size as they come into view */
.motion .range .bar { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.6,0,.2,1); transition-delay: calc(var(--d, 0ms) + 200ms); }
.motion .range li.in .bar { transform: scaleX(1); }
.motion .pl-bar { transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.6,0,.2,1); transition-delay: calc(var(--d, 0ms) + 150ms); }
.motion .pipeline li.in .pl-bar { transform: scaleX(1); }

/* Milestone dots fill in sequence; step rules draw across */
.motion .steps li { border-top-color: transparent; position: relative; }
.motion .steps li::after { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.6,0,.2,1); transition-delay: var(--d, 0ms); }
.motion .steps li.in::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
