/* Bridgemont Advisory: 30,000-foot version (2026-11-19).
   One message, one picture, one action. Dark hero and contact, light middle. Red Hat Display / Text. */
:root {
  --bg: #0b0f16;
  --bg-2: #0f1520;
  --bg-3: #151d2b;
  --line: rgba(148, 170, 205, .12);
  --line-2: rgba(148, 170, 205, .22);
  --text: #e8edf5;
  --text-2: #a3afc1;
  --text-3: #6f7c90;
  --accent: #6ea8ff;
  --accent-ink: #08111f;
  --ok: #43d39b;
  --warn: #f2b84b;

  --display: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
  --sans: "Red Hat Text", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --topbar: 64px;
  --section: clamp(80px, 10vw, 136px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 40px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 500 16px/1 var(--sans); text-decoration: none; padding: 16px 26px; border-radius: 4px; border: 0; cursor: pointer; transition: background .2s; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #9cc3ff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 22, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { height: var(--topbar); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.brand-mark { width: 18px; height: 18px; border: 1.5px solid var(--accent); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 4px; background: var(--accent); }
.brand-sub { color: var(--text-3); }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-link { text-decoration: none; color: var(--text-2); }
.nav-link:hover { color: var(--text); }
.nav-cta { text-decoration: none; color: var(--accent-ink); background: var(--accent); padding: 9px 16px; border-radius: 4px; font-weight: 500; }
@media (max-width: 760px) { .nav-link { display: none; } }

/* 1. Hero */
.hero { padding: clamp(80px, 11vw, 150px) 0 clamp(64px, 8vw, 104px); text-align: center; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; letter-spacing: -0.035em; max-width: 11em; margin: 0 auto; }
.lede { margin: 28px auto 0; max-width: 34em; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--text-2); }
.hero .btn { margin-top: 40px; }

/* The one picture: what you have -> your robot -> what your team gets */
.flow-wrap { margin-top: clamp(64px, 8vw, 104px); }
.flow-svg { display: none; width: 100%; height: auto; overflow: visible; }
.flow-svg .fl-label { font: 500 14px var(--sans); fill: var(--text-3); }
.flow-svg .wire { fill: none; stroke-width: 1.5; }
.flow-svg .wire-in { stroke: rgba(110, 168, 255, .45); }
.flow-svg .wire-out { stroke: rgba(67, 211, 155, .45); }
.flow-svg .node rect { fill: var(--bg-2); stroke: var(--line-2); }
.flow-svg .node-out rect { stroke: rgba(67, 211, 155, .4); }
.flow-svg .node-out circle { fill: var(--ok); }
.flow-svg .node text { font: 400 15px var(--sans); fill: var(--text); }
.flow-svg .core rect { fill: var(--bg-3); stroke: var(--accent); stroke-width: 1.5; }
.flow-svg .core-t { font: 500 22px var(--display); fill: #fff; }
.flow-svg .core-s { font: 400 13px var(--sans); fill: var(--text-2); }
.flow-svg .packet { fill: var(--accent); }
.flow-svg .packet-out { fill: var(--ok); }
.flow-stack { display: grid; justify-items: center; gap: 12px; }
.flow-stack p { font-size: 13px; color: var(--text-3); }
.flow-stack ul { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.flow-stack li { font-size: 14px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg-2); }
.flow-stack .out li { border-color: rgba(67, 211, 155, .4); }
.core-chip { position: relative; margin: 14px 0 18px; padding: 14px 26px; border: 1.5px solid var(--accent); border-radius: 6px; background: var(--bg-3); font: 500 19px var(--display); }
.core-chip::before, .core-chip::after { content: ""; position: absolute; left: 50%; width: 1.5px; height: 14px; background: var(--line-2); }
.core-chip::before { bottom: 100%; }
.core-chip::after { top: 100%; }
@media (min-width: 900px) { .flow-svg { display: block; } .flow-stack { display: none; } }

/* Sections */
.section { padding: var(--section) 0; }
.section h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; }
.section.light {
  --bg: #f6f7f9; --bg-2: #ffffff;
  --line: rgba(15, 23, 42, .08); --line-2: rgba(15, 23, 42, .12);
  --text: #0f1620; --text-2: #4a5568; --text-3: #7b8696;
  --accent: #2563d9;
  background: var(--bg); color: var(--text);
}
.section.light.alt { --bg: #ffffff; --bg-2: #f6f7f9; }

/* 2. What we do */
.pillars { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 40px; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.pillars article { border-top: 2px solid var(--accent); padding-top: 24px; }
.pillars h3 { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.2; }
.pillars p { margin-top: 10px; color: var(--text-2); }

/* 3. How it works */
.steps { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); font: 500 16px var(--display); color: var(--accent); }
.steps h3 { margin-top: 20px; font-size: clamp(21px, 2vw, 24px); line-height: 1.25; }
.steps p { margin-top: 8px; color: var(--text-2); }

/* 4. About */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 340px 1fr; gap: 72px; } }
.portrait { display: block; width: 100%; max-width: 340px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; filter: grayscale(1); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35); }
.role { margin-top: 10px; font-size: 16px; font-weight: 500; color: var(--accent); }
.bio { margin-top: 24px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; max-width: 28em; }

/* 5. Contact */
.contact { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact .lede { margin-left: 0; text-align: left; }
.mail { margin-top: 28px; font-size: 17px; }
.mail a { color: var(--accent); text-decoration: none; }
.form { display: grid; gap: 18px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 28px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.form input, .form textarea { font: 400 16px/1.4 var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 14px; width: 100%; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--text-3); }
.foot { display: flex; justify-content: space-between; gap: 16px; }

/* Project pop-up: only opens on click */
.ask { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: min(360px, calc(100vw - 40px)); }
.ask-card { position: relative; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85); animation: askIn .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes askIn { from { opacity: 0; transform: translateY(10px); } }
.ask-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 4px; background: none; color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer; }
.ask-close:hover { color: var(--text); background: var(--bg-3); }
.ask-head { display: flex; align-items: center; gap: 12px; padding-right: 28px; }
.ask-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.ask-head b { display: block; font-size: 15px; font-weight: 500; }
.ask-head span { display: block; font-size: 12.5px; color: var(--text-3); }
.ask-bubble { margin-top: 14px; padding: 12px 14px; background: var(--bg-3); border-radius: 4px 12px 12px 12px; font-size: 15px; line-height: 1.45; }
.ask-form { display: grid; gap: 10px; margin-top: 14px; }
.ask-form textarea, .ask-form input { font: 400 15px/1.4 var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; padding: 10px 12px; width: 100%; resize: vertical; }
.ask-form textarea:focus, .ask-form input:focus { outline: none; border-color: var(--accent); }
.ask-form .btn { justify-self: end; padding: 11px 18px; font-size: 14px; }
.ask-done { margin-top: 14px; font-size: 14px; color: var(--ok); }
.ask-launch { position: fixed; right: 20px; bottom: 20px; z-index: 79; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); color: var(--text); font: 500 14px var(--sans); cursor: pointer; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8); }
.ask-launch:hover { border-color: var(--accent); }
.ask-launch img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }

@media (prefers-reduced-motion: reduce) { .flow-svg .packet { display: none; } .ask-card { animation: none; } }
.site-foot { padding-bottom: 96px; }

/* ===== Case studies page (2026-11-19) ===== */
.nav-link[aria-current="page"] { color: var(--text); }
.page-head { padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 88px); }
.page-head h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
.page-head .lede { margin-left: 0; }
.cases .case { display: grid; gap: 24px; padding: 48px 0; border-top: 1px solid var(--line-2); }
.cases .case:first-child { border-top: 0; padding-top: 0; }
.cases .case:last-child { padding-bottom: 0; }
@media (min-width: 900px) { .cases .case { grid-template-columns: 5fr 7fr; gap: 72px; padding: 64px 0; } }
.case-tag { font-size: 14px; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.cases h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; }
.case-stat { margin-top: 28px; color: var(--text-2); font-size: 15px; max-width: 16em; }
.case-stat b { display: block; font: 500 clamp(40px, 4.4vw, 58px)/1 var(--display); letter-spacing: -0.03em; color: var(--text); margin-bottom: 8px; }
.case-body { margin: 0; }
.case-body > div { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.case-body > div:first-child { border-top: 0; padding-top: 4px; }
@media (min-width: 600px) { .case-body > div { grid-template-columns: 7em 1fr; gap: 24px; } }
.case-body dt { font-size: 14px; font-weight: 500; color: var(--text-3); padding-top: 3px; }
.case-body dd { margin: 0; color: var(--text); }
.case-body > div:last-child dt { color: var(--accent); }
.cta { text-align: center; }
.cta .btn { margin-top: 32px; }
.foot p:last-child { text-align: right; max-width: 34em; }
@media (max-width: 600px) { .foot { flex-direction: column; } .foot p:last-child { text-align: left; } }
@media (max-width: 760px) { .nav { gap: 18px; } .nav-link[href="case-studies.html"] { display: inline; } }
.more-link { margin-top: 48px; }
.more-link a { color: var(--accent); text-decoration: none; font-weight: 500; }
.more-link a:hover { text-decoration: underline; }
.nav a { white-space: nowrap; }
@media (max-width: 760px) { .nav { font-size: 14px; gap: 14px; } .nav-cta { padding: 8px 12px; } }
@media (max-width: 440px) { .brand-sub { display: none; } }

/* ===== Testimonial (2026-11-19) ===== */
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote-band { text-align: center; }
.quote-band .quote p { font: 400 clamp(26px, 3.4vw, 44px)/1.25 var(--display); letter-spacing: -0.02em; max-width: 24em; margin: 0 auto; }
.quote figcaption { margin-top: 24px; font-size: 15px; color: var(--text-3); }
.quote figcaption::before { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 12px; }
.case .quote-inline { grid-column: 1 / -1; margin-top: 8px; padding: 24px 28px; background: var(--bg-2); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; }
.quote-inline p { font: 400 clamp(19px, 2vw, 23px)/1.4 var(--display); }
.quote-inline figcaption { margin-top: 12px; }

/* ===== Case studies, simplified (2026-11-19) ===== */
.cs-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.cs-card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 32px 30px 34px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 50px -32px rgba(15, 23, 42, .25); }
@media (min-width: 1000px) { .cs-card { padding: 40px 40px 42px; } }
.cs-tag { font-size: 14px; font-weight: 500; color: var(--accent); }
.cs-stat { margin-top: 22px; }
.cs-stat b { display: block; font: 500 clamp(48px, 5vw, 68px)/1 var(--display); letter-spacing: -0.035em; }
.cs-stat span { display: block; margin-top: 8px; font-size: 15px; color: var(--text-3); }
.cs-card h2 { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.2; }
.cs-line { margin-top: 8px; color: var(--text-2); }
.cta h2 { margin-bottom: 4px; }

/* ===== Hover animations (2026-11-19) ===== */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* Buttons lift */
  .btn, .nav-cta, .ask-launch { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s, border-color .2s; }
  .btn:hover, .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(110, 168, 255, .7); }
  .ask-launch:hover { transform: translateY(-3px); }

  /* Nav: underline grows from the left */
  .nav-link { position: relative; transition: color .2s; }
  .nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

  /* What we do: accent line sweeps across, heading nudges */
  .pillars article { position: relative; border-top-color: var(--line-2); }
  .pillars article::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(.18); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .pillars article:hover::before { transform: scaleX(1); }
  .pillars h3 { transition: transform .35s cubic-bezier(.2,.8,.2,1), color .25s; }
  .pillars article:hover h3 { transform: translateX(6px); color: var(--accent); }

  /* How it works: number fills in */
  .steps li span { transition: background .3s, color .3s, border-color .3s, transform .35s cubic-bezier(.2,.8,.2,1); }
  .steps li:hover span { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.12); }
  .steps h3 { transition: color .25s; }
  .steps li:hover h3 { color: var(--accent); }

  /* About: portrait zooms slightly */
  .about .portrait { transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s; }
  .about .portrait:hover { transform: scale(1.02); box-shadow: 0 40px 70px -30px rgba(15, 23, 42, .45); }

  /* Case studies: row highlights with an accent bar */
  .cases .case { position: relative; transition: background .3s; border-radius: 6px; }
  .cases .case::before { content: ""; position: absolute; left: -20px; top: 48px; bottom: 48px; width: 3px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
  .cases .case:first-child::before { top: 0; }
  .cases .case:hover::before { transform: scaleY(1); }
  .cases .case h2 { transition: color .25s; }
  .cases .case:hover h2 { color: var(--accent); }
  .case-body > div { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .case-body > div:hover { transform: translateX(6px); }

  /* Contact form fields */
  .form input, .form textarea { transition: border-color .2s, box-shadow .2s; }
  .form input:hover, .form textarea:hover { border-color: var(--text-3); }


}

/* ===== Light palette (2026-11-19): navy dropped site-wide ===== */
:root {
  --bg: #f7f8fb; --bg-2: #ffffff; --bg-3: #eef3fb;
  --line: rgba(15, 23, 42, .08); --line-2: rgba(15, 23, 42, .13);
  --text: #0f1620; --text-2: #4a5568; --text-3: #7b8696;
  --accent: #2563d9; --accent-ink: #ffffff; --ok: #138a5c; --warn: #b07114;
}
body { background: var(--bg); color: var(--text); }
.section { background: var(--bg); }
.section.light { --bg: #f7f8fb; --bg-2: #ffffff; }
.section.light.alt { --bg: #ffffff; --bg-2: #f7f8fb; }
.topbar { background: rgba(255, 255, 255, .86); border-bottom-color: var(--line-2); }
.btn-accent:hover, .nav-cta:hover { background: #1d4fb8; color: #fff; }
.nav-cta { color: #fff; }
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #e9f0fb 0%, #f4f7fc 55%, #f7f8fb 100%); }
.hero > .container { position: relative; z-index: 1; }
.page-head { position: relative; overflow: hidden; background: linear-gradient(180deg, #e9f0fb 0%, #f7f8fb 100%); }
.page-head > .container { position: relative; z-index: 1; }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.flow-svg .core-t { fill: var(--text); }
.flow-svg .core rect { fill: #fff; filter: drop-shadow(0 10px 24px rgba(37, 99, 217, .18)); }
.flow-svg .node rect { fill: #fff; }
.flow-svg .wire-in { stroke: rgba(37, 99, 217, .4); }
.flow-svg .wire-out { stroke: rgba(19, 138, 92, .4); }
.flow-svg .node-out rect { stroke: rgba(19, 138, 92, .35); }
.flow-stack li { background: #fff; }
.core-chip { background: #fff; }
.quote-band { background: var(--bg-3); }
#contact { background: #fff; }
.form { background: var(--bg); }
.form input, .form textarea { background: #fff; }
.site-foot { background: #fff; }
.ask-card { box-shadow: 0 30px 70px -24px rgba(15, 23, 42, .35); }
.ask-launch { background: #fff; box-shadow: 0 16px 40px -18px rgba(15, 23, 42, .45); }
.ask-bubble { background: var(--bg-3); }
.ask-form textarea, .ask-form input { background: #fff; }
.cases .case-body > div:last-child dt { color: var(--accent); }
.quote-inline { background: #fff !important; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover, .nav-cta:hover { box-shadow: 0 10px 24px -10px rgba(37, 99, 217, .55); }
}

/* More calls to action on the home page */
.cta-row { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-row.center { justify-content: center; }
.text-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 600px) { .cta-row .btn { flex: 1 1 100%; } .cta-row.center .btn { flex: 0 1 auto; } }
/* Case studies: the quote sits as a fourth row, in the same format as the others */
.case-body .said q { display: block; quotes: "\201C" "\201D"; font-style: italic; color: var(--text); }
.case-body .said span { display: block; margin-top: 6px; font-size: 14px; color: var(--text-3); }
.case-body > div.said dt { color: var(--text-3); }
.cases .case-body > div:nth-child(3) dt { color: var(--accent); }
.cases .case-body > div.said dt { color: var(--text-3); }
.section.cta { background: var(--bg-3); }



/* ===== Hero depth and diagram assembly (2026-11-19) ===== */
.hero canvas.particles, .page-head canvas.particles { will-change: transform; height: calc(100% + 200px); top: -100px; }
.flow-wrap { will-change: transform; }
.flow-svg .core, .flow-svg .node { transform-box: fill-box; transform-origin: 50% 50%; }
.flow-svg.pre .core { opacity: 0; transform: scale(.85); }
.flow-svg.pre .node-in { opacity: 0; transform: translateX(-60px); }
.flow-svg.pre .node-out { opacity: 0; transform: translateX(60px); }
.flow-svg.pre .wire { stroke-dasharray: 1; stroke-dashoffset: 1; }
.flow-svg.pre .packet { opacity: 0; }
.flow-svg.go .core, .flow-svg.go .node { opacity: 1; transform: none; transition: opacity .6s ease var(--d, 0s), transform .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.flow-svg.go .wire { stroke-dashoffset: 0; transition: stroke-dashoffset .8s cubic-bezier(.4, 0, .2, 1) var(--d, 0s); }
.flow-svg.go .packet { opacity: 1; transition: opacity .6s ease 1.7s; }
.brand-sub { margin-left: -5px; }

/* ===== Testimonial slider (2026-11-19) ===== */
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .6s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.slider-nav { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.sl-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--text-2); font: 400 18px/1 var(--sans); cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.sl-arrow:hover { border-color: var(--accent); color: var(--accent); }
.sl-dots { display: flex; gap: 8px; }
.sl-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: width .3s ease, background .3s; }
.sl-dots button[aria-current] { width: 24px; background: var(--accent); }
.quote-band .quote figcaption .ph { margin-left: 8px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .slide, .slide.is-active { transition: none; transform: none; } }
.slides { overflow: hidden; }
.section.cta { position: relative; overflow: hidden; }
.section.cta > .container { position: relative; z-index: 1; }
.case-body .said q { quotes: none; }
.case-body .said q::before, .case-body .said q::after { content: none; }
.form-done { font: 500 clamp(22px, 2.4vw, 30px)/1.25 var(--display); letter-spacing: -0.01em; color: var(--ok); padding: 12px 0; }
.form.sent > *:not(.form-done) { display: none; }
.form.sent { place-content: center; min-height: 260px; text-align: center; }

/* ===== Bridge -> flow (2026-11-21, v2) ===== */
.flow-svg .wire { transition: stroke-dashoffset 1.3s cubic-bezier(.4, 0, .2, 1), stroke .9s ease, stroke-width .9s ease; }
.flow-svg.undrawn .wire { stroke-dasharray: 1; stroke-dashoffset: 1; }
.flow-svg.bridge-mode .wire { stroke: url(#bridgeTint); stroke-width: 2.4; stroke-linecap: round; stroke-opacity: .8; }
/* bridge dressing */
.flow-svg .bd { fill: none; stroke: url(#bridgeTint); stroke-linecap: round; transition: opacity .9s ease .35s; }
.flow-svg .bd.cable2 { stroke-width: 1.1; stroke-opacity: .45; }
.flow-svg .bd.deck2 { stroke-width: 1.2; stroke-opacity: .5; }
.flow-svg .bd.truss { stroke-width: .9; stroke-opacity: .3; }
.flow-svg .bd.leg { stroke-width: 1.8; stroke-opacity: .55; }
.flow-svg .bd.beam { stroke-width: 1.6; stroke-opacity: .6; }
.flow-svg .bd.cap { stroke-width: 2.6; stroke-opacity: .7; }
.flow-svg .bd.reflect { stroke-width: 1.2; stroke-opacity: .12; stroke-dasharray: 2 5; }
.flow-svg .hanger { stroke: url(#bridgeTint); stroke-opacity: .32; stroke-width: 1; transform-box: fill-box; transform-origin: 50% 0; transition: opacity .5s ease var(--d, 0s), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.flow-svg.undrawn .bd { opacity: 0; transition: none; }
.flow-svg.undrawn .hanger { opacity: 0; transform: scaleY(0); }
.flow-svg .bridge-light { opacity: 0; transition: opacity .3s ease; }
.flow-svg .bridge-light.on { opacity: 1; }
.flow-svg .bridge-light-dot { fill: #fff; stroke: #2563d9; stroke-width: 1.4; }
.flow-svg .bridge-decor.gone, .flow-svg .bridge-decor.gone .hanger, .flow-svg .bridge-decor.gone .bd { opacity: 0; transition: opacity .5s ease; }
/* cards wait until the lines are almost the flow */
.flow-svg .node, .flow-svg .core, .flow-svg .fl-label { transition: opacity .55s ease var(--d, 0s), transform .75s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.flow-svg.cards-hidden .core { opacity: 0; transform: scale(.75); }
.flow-svg.cards-hidden .node-in { opacity: 0; transform: translateX(-36px); }
.flow-svg.cards-hidden .node-out { opacity: 0; transform: translateX(36px); }
.flow-svg.cards-hidden .fl-label { opacity: 0; }
.flow-svg.cards-hidden .packet, .flow-svg.moving .packet { opacity: 0; }
.flow-svg .packet { transition: opacity .5s ease; }

/* ===== Phones (2026-11-21) ===== */
/* Menu button + drop-down, phones and small tablets only */
.nav-toggle { display: none; }
.menu { display: none; }
@media (max-width: 760px) {
  .nav .nav-link, .nav .nav-link[href="case-studies.html"] { display: none; }
  .nav { gap: 6px; }
  .nav-cta { padding: 10px 14px; }
  .nav-toggle { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; cursor: pointer; }
  .nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .menu:not([hidden]) { display: block; border-top: 1px solid var(--line); animation: menuIn .25s cubic-bezier(.2, .8, .2, 1); }
  .menu .container { display: grid; padding-top: 8px; padding-bottom: 20px; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 20px var(--display); letter-spacing: -0.01em; color: var(--text); }
  .menu a.menu-cta { margin-top: 18px; padding: 16px; border: 0; border-radius: 4px; background: var(--accent); color: #fff; text-align: center; font: 500 16px var(--sans); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
}
@media (max-width: 380px) { .brand { letter-spacing: .08em; } .nav-cta { padding: 10px 12px; font-size: 13.5px; } }

/* Tighter rhythm on phones */
@media (max-width: 600px) {
  :root { --section: 68px; }
  .hero { padding: 56px 0 56px; }
  .hero h1 { font-size: 42px; }
  .lede { font-size: 17.5px; }
  .hero .btn { margin-top: 30px; width: 100%; max-width: 340px; }
  .flow-wrap { margin-top: 52px; }
  .pillars { gap: 32px; }
  .pillars article { padding-top: 18px; }
  .cta-row { margin-top: 36px; }
  .steps { gap: 26px; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; }
  .steps li span { grid-row: span 2; }
  .steps h3 { margin-top: 7px; }
  .steps p { margin-top: 4px; }
  .about { gap: 28px; }
  .portrait { max-width: none; aspect-ratio: 5 / 4; object-position: 50% 22%; }
  .form { padding: 22px; }
  .form .btn { justify-self: stretch; }
  .quote-band .quote p { font-size: 25px; }
  .slider-nav { margin-top: 28px; }
  .sl-arrow { width: 44px; height: 44px; }
  .case-body > div { padding: 14px 0; }
}

/* Hero picture on phones: a small vertical version of the flow */
.flow-stack { gap: 0; max-width: 420px; margin: 0 auto; }
.flow-stack .fs-label { font-size: 13px; color: var(--text-3); margin: 0 0 12px; }
.flow-stack .fs-label:last-child { margin: 12px 0 0; }
.flow-stack ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin: 0; }
.flow-stack li { padding: 11px 10px; font-size: 14px; line-height: 1.25; text-align: center; border-radius: 6px; box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .35); }
.flow-stack .fs-out li { border-color: rgba(19, 138, 92, .35); }
.flow-stack .fs-out li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--ok); vertical-align: 2px; }
.fs-wire { position: relative; display: block; width: 1.5px; height: 30px; background: rgba(37, 99, 217, .3); overflow: visible; }
.fs-wire-out { background: rgba(19, 138, 92, .3); }
.fs-wire i { position: absolute; left: -2.25px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; }
.fs-wire-out i { background: var(--ok); }
.flow-stack .core-chip { margin: 0; padding: 14px 30px; box-shadow: 0 12px 30px -12px rgba(37, 99, 217, .35); }
.flow-stack .core-chip::before, .flow-stack .core-chip::after { content: none; }
@media (prefers-reduced-motion: no-preference) {
  .flow-stack.pre > * { opacity: 0; transform: translateY(10px); }
  .flow-stack.pre li { opacity: 0; transform: translateY(8px); }
  .flow-stack.go > *, .flow-stack.go li { opacity: 1; transform: none; transition: opacity .5s ease var(--d, 0s), transform .6s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
  .flow-stack.go .fs-wire i { animation: fsDot 2.2s cubic-bezier(.4, 0, .6, 1) infinite; animation-delay: 1.4s; }
  .flow-stack.go .fs-wire-out i { animation-delay: 2.5s; }
  .flow-stack.go .core-chip { animation: corePulse 3.3s ease-in-out 1.9s infinite; }
  @keyframes fsDot { 0% { top: -3px; opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 85%, 100% { top: 27px; opacity: 0; } }
  @keyframes corePulse { 0%, 100% { box-shadow: 0 12px 30px -12px rgba(37, 99, 217, .35), 0 0 0 0 rgba(37, 99, 217, .18); } 50% { box-shadow: 0 12px 30px -12px rgba(37, 99, 217, .35), 0 0 0 8px rgba(37, 99, 217, 0); } }
}

/* Project button: a round photo on phones, and it steps aside at the contact form */
.ask-launch { transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.ask-launch.tuck { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (max-width: 600px) {
  .ask-launch { right: 16px; bottom: 16px; padding: 4px; }
  .ask-launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ask-launch img { width: 48px; height: 48px; }
  .ask-launch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
  .ask { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

/* Footer */
.foot { align-items: flex-end; }
.foot b { font-weight: 500; color: var(--text-2); }
.foot a { color: var(--text-3); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot p:last-child { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
@media (max-width: 600px) { .foot { align-items: flex-start; gap: 20px; } .foot p:last-child { justify-content: flex-start; } }
.flow-stack li { display: grid; place-items: center; min-height: 44px; }
@media (max-width: 600px) { .hero { padding-bottom: 40px; } }
