/* ============================================================
   FirstLine Financial — Family Wealth Offices  ·  v3
   Refined design system: quiet luxury, generous whitespace,
   hairline rules, restrained color, parallax + reveal motion.
   Brand: Navy #013C55 · Heritage Red #C1272C · Charcoal · Sage · Stone
   Type:  Avenir Next (→ Nunito Sans) / Inter / Source Serif 4
   ============================================================ */

:root {
  --navy: #013C55;
  --navy-deep: #01293A;
  --navy-ink: #062232;
  --red: #C1272C;
  --ink: #16181C;
  --body-c: #43484E;
  --muted: #82878D;
  --sage: #A6B6A4;
  --stone: #D9D3C7;
  --paper: #FFFFFF;
  --paper-warm: #FAF9F6;
  --hairline: rgba(22, 24, 28, 0.10);
  --hairline-light: rgba(255, 255, 255, 0.16);
  --head: "Avenir Next", Avenir, "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body-c);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
::selection { background: var(--navy); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }

h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-size: 1.12rem; letter-spacing: -0.005em; }
p + p { margin-top: 1em; }

/* micro label */
.eyebrow {
  font-family: var(--head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 12px;
}
.on-dark .eyebrow, .eyebrow.light { color: rgba(255,255,255,0.55); }

/* serif statement */
.statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.42;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.statement em { font-style: italic; }
.on-dark .statement { color: #fff; }

.lede { font-size: 1.16rem; line-height: 1.65; color: var(--body-c); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(22,24,28,0.25); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,0.35); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--paper-warm); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* text link */
.tlink {
  font-family: var(--head);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.3s var(--ease);
}
.tlink::after { content: "→"; font-size: 0.9rem; }
.tlink:hover { gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 0 32px;
  height: 72px;
  max-width: 1360px; margin: 0 auto;
}
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .has-dropdown > a {
  font-family: var(--head);
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none;
  padding: 10px 14px;
  opacity: 0.85;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}
.nav > a:hover, .has-dropdown > a:hover { opacity: 1; }
.nav .btn-primary {
  color: #fff; padding: 11px 24px; margin-left: 16px;
  font-size: 0.7rem; opacity: 1;
}

.has-dropdown { position: relative; }
.has-dropdown { display: flex; align-items: center; }
.nav > a, .dd-trigger { line-height: 1; display: inline-flex; align-items: center; }
.dd-trigger .dd-chev { margin-left: 6px; opacity: 0.55; flex: none; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  padding-top: 10px;           /* hover bridge: no dead gap between trigger and menu */
  display: none;
  z-index: 300;
}
.dropdown-inner {
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(1, 41, 58, 0.12);
  min-width: 240px;
  padding: 10px;
  display: flex; flex-direction: column;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  font-family: var(--head); font-weight: 600; font-size: 0.85rem;
  color: var(--ink); text-decoration: none;
  padding: 11px 14px; border-radius: 8px;
  display: block;
}
.dropdown a:hover, .dropdown a:focus { background: rgba(1, 60, 85, 0.05); outline: none; }

.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.6rem; color: var(--ink);
  cursor: pointer; line-height: 1;
}

/* ---------- Hero (parallax home) ---------- */
.hero-parallax {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex; align-items: center;
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 58%, var(--navy-ink) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.5;
  pointer-events: none;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(1,41,58,0.96) 18%, rgba(1,41,58,0.62) 55%, rgba(1,41,58,0.30) 100%);
}
.hero-layer { position: absolute; inset: -12% 0; pointer-events: none; will-change: transform; }
.hero-layer .eagle-big {
  position: absolute; right: -4%; top: 22%;
  width: min(58vw, 820px); opacity: 0.05;
}
.hero-layer .eagle-far {
  position: absolute; left: -8%; bottom: 4%;
  width: 360px; opacity: 0.03; transform: scaleX(-1);
}
.hero-layer-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px) 0 0 / 25% 100%;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 110px 32px 130px; width: 100%; }
.hero-content h1 { color: #fff; max-width: 850px; }
.hero-content .sub {
  max-width: 560px;
  margin: 30px 0 44px;
  font-size: 1.14rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
.hero-tagline {
  position: absolute; bottom: 38px; left: 0; right: 0;
  text-align: center;
  font-family: var(--serif); font-style: italic;
  font-size: 0.98rem; color: rgba(255,255,255,0.42);
  letter-spacing: 0.04em;
  z-index: 2;
}
.scroll-cue {
  position: absolute; bottom: 88px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 44px;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.5));
  z-index: 2;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateX(-50%) scaleY(0); transform-origin: top; }
  45% { transform: translateX(-50%) scaleY(1); transform-origin: top; }
  55% { transform: translateX(-50%) scaleY(1); transform-origin: bottom; }
  100% { transform: translateX(-50%) scaleY(0); transform-origin: bottom; } }

/* hero with circular image (estate) */
.hero-split-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero-circle {
  position: relative;
  width: min(100%, 470px);
  margin-left: auto;
  aspect-ratio: 1 / 1;
}
.hero-circle .hc-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 40px 90px rgba(0, 15, 24, 0.45);
  border: 1px solid rgba(255,255,255,0.14);
}
.hero-circle .hc-eagle {
  position: absolute;
  right: -16%; bottom: -14%;
  width: 105%;
  opacity: 0.42;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 12px 30px rgba(0, 15, 24, 0.35));
}
.hero-page:has(.hero-split-grid)::after { display: none; }
.hero-split-grid h1 { font-size: clamp(2.1rem, 3.4vw, 3.1rem); }
@media (max-width: 880px) {
  .hero-split-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-circle { margin: 0 auto; width: min(100%, 360px); }
}

/* interior page hero */
.hero-page {
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.hero-page::after {
  content: "";
  position: absolute; right: -6%; top: 46%; transform: translateY(-50%);
  width: 520px; height: 360px;
  background: url("../assets/eagle-white.png") no-repeat center / contain;
  opacity: 0.045;
  pointer-events: none;
}
.hero-page .hero-inner { position: relative; z-index: 1; padding: 108px 32px 116px; max-width: var(--maxw); margin: 0 auto; }
.hero-page h1 { color: #fff; max-width: 800px; font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.hero-page .sub { max-width: 580px; margin: 26px 0 0; font-size: 1.1rem; color: rgba(255,255,255,0.72); }
.hero-page .btn-row { margin-top: 40px; }

/* ---------- Sections ---------- */
.section { padding: 130px 0; }
.section-tight { padding: 100px 0; }
.section-warm { background: var(--paper-warm); }
.section-navy { background: linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 100%); color: rgba(255,255,255,0.75); }
.section-navy h2, .section-navy h3 { color: #fff; }
.hairline-top { border-top: 1px solid var(--hairline); }

.section-head { max-width: 640px; margin-bottom: 78px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 20px; }

/* ---------- Pillar index (minimal columns) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--hairline); }
.pillar {
  padding: 44px 32px 52px 0;
  margin-right: 32px;
  text-decoration: none;
  border-top: 1px solid transparent;
  margin-top: -1px;
  transition: border-color 0.4s var(--ease);
  display: block;
}
.pillar:hover { border-top-color: var(--red); }
.pillar .p-num {
  font-family: var(--head); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; color: var(--muted); display: block; margin-bottom: 26px;
}
.pillar h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--ink); }
.pillar p { font-size: 0.95rem; line-height: 1.65; color: var(--body-c); margin-bottom: 22px; }

/* ---------- Feature list (rows) ---------- */
.rows { border-top: 1px solid var(--hairline); }
.row-item {
  display: grid; grid-template-columns: 220px 1fr auto;
  gap: 40px; align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--hairline);
}
.row-item h3 { font-size: 1.18rem; color: var(--ink); }
.row-item p { font-size: 0.98rem; margin: 0; }
.on-dark .rows, .section-navy .rows { border-color: var(--hairline-light); }
.section-navy .row-item { border-color: var(--hairline-light); }
.section-navy .row-item h3 { color: #fff; }
.section-navy .row-item p { color: rgba(255,255,255,0.65); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 48px; }
.step .s-num {
  font-family: var(--head); font-weight: 600;
  font-size: 2.8rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.35);
  display: block; margin-bottom: 18px;
}
.steps.on-light .s-num { -webkit-text-stroke: 1px rgba(1,60,85,0.4); }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; line-height: 1.65; }
.section-navy .step p { color: rgba(255,255,255,0.65); }

/* ---------- Checklist (minimal) ---------- */
.checklist { list-style: none; }
.checklist li {
  padding: 15px 0 15px 30px; position: relative;
  border-bottom: 1px solid var(--hairline);
  font-size: 1rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute; left: 2px; top: 26px;
  width: 12px; height: 1px;
  background: var(--red);
}
.section-navy .checklist li { border-color: var(--hairline-light); color: rgba(255,255,255,0.78); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.split-start { align-items: start; }

/* ---------- Parallax band ---------- */
.parallax-band {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-ink) 100%);
  color: rgba(255,255,255,0.75);
}
.parallax-band .band-eagle {
  position: absolute; right: -8%; top: 50%;
  width: min(48vw, 640px); opacity: 0.05;
  will-change: transform;
  pointer-events: none;
}
.parallax-band .band-inner { position: relative; z-index: 1; padding: 150px 32px; max-width: var(--maxw); margin: 0 auto; }
.parallax-band h2 { color: #fff; }

/* ---------- Quote band ---------- */
.quote-band { background: var(--paper-warm); }
.quote-band .statement { max-width: 880px; margin: 0 auto; text-align: center; }
.quote-band-photo {
  position: relative;
  background-size: cover; background-position: center 30%;
}
.quote-band-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(1, 30, 44, 0.58);
}
.quote-band-photo > * { position: relative; }
.quote-band-photo .statement { color: #fff; }

/* ---------- About headshots ---------- */
.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 18px;
  margin-bottom: 30px;
  box-shadow: 0 30px 70px rgba(1, 41, 58, 0.16);
}
.quote-cite {
  display: block; text-align: center; margin-top: 30px;
  font-family: var(--head); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  background: none; border: none;
  font-family: var(--head); font-size: 1.05rem; font-weight: 600;
  color: var(--ink);
  text-align: left;
  padding: 26px 44px 26px 0;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--body);
  font-weight: 300; font-size: 1.5rem; color: var(--muted);
  transition: transform 0.35s var(--ease);
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); color: var(--red); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease); }
.faq-a > p { padding: 0 0 28px; max-width: 660px; font-size: 0.98rem; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- Segments (who we serve teaser) ---------- */
.segments { border-top: 1px solid var(--hairline); }
.segment {
  display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 40px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  transition: padding-left 0.35s var(--ease);
}
.segment:hover { padding-left: 10px; }
.segment h3 { color: var(--ink); font-size: 1.25rem; }
.segment p { margin: 0; font-size: 0.95rem; color: var(--body-c); }
.segment .seg-arrow { color: var(--red); font-size: 1.1rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.team-role {
  font-family: var(--head); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red);
  margin-bottom: 16px;
}
.team-member h3 { font-size: 1.7rem; margin-bottom: 16px; }
.team-member p { font-size: 0.98rem; }
.team-quote { font-family: var(--serif); font-style: italic; color: var(--navy); margin-top: 20px; font-size: 1.02rem; }
.team-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 70px; padding-top: 54px; border-top: 1px solid var(--hairline); }
.team-mini h3 { font-size: 1.15rem; margin-bottom: 8px; }
.team-mini p { font-size: 0.92rem; }

/* ---------- WRAP components ---------- */
.wrap-components { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.wrap-comp {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 38px 24px;
  font-family: var(--head); font-weight: 600; font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.4;
}
.wrap-comp span { display: block; font-family: var(--head); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-ink) 100%);
  color: rgba(255,255,255,0.72);
  text-align: center;
  padding: 150px 32px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 760px; height: 520px;
  background: url("../assets/eagle-white.png") no-repeat center / contain;
  opacity: 0.04;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 20px; }
.cta-band p { max-width: 480px; margin: 0 auto 42px; }
.cta-tagline { margin-top: 54px !important; font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: rgba(255,255,255,0.38) !important; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 22px; }
.form-grid label {
  font-family: var(--head); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); display: block; margin-bottom: 8px;
}
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  font-family: var(--body); font-size: 1rem;
  padding: 14px 2px;
  border: none;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.3s ease;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  outline: none; border-bottom-color: var(--navy);
}
.form-note { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.form-card { background: #fff; border: 1px solid var(--hairline); border-radius: 18px; padding: 48px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 56px;
  padding: 90px 32px 70px;
  max-width: var(--maxw); margin: 0 auto;
}
.footer-main h4 {
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem; margin-bottom: 22px;
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
}
.footer-main ul { list-style: none; }
.footer-main li { margin-bottom: 12px; }
.footer-main a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.88rem; transition: color 0.25s ease; }
.footer-main a:hover { color: #fff; }
.footer-brand img { width: 96px; opacity: 0.75; margin-bottom: 22px; }
.footer-brand .fb-name { font-family: var(--head); font-weight: 600; color: #fff; font-size: 1rem; }
.footer-brand .fb-tag { font-family: var(--serif); font-style: italic; color: rgba(255,255,255,0.4); font-size: 0.88rem; margin: 6px 0 20px; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { font-family: var(--head); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.1); padding: 40px 32px 56px; }
.footer-legal-inner { max-width: calc(var(--maxw) - 64px); margin: 0 auto; font-size: 0.74rem; line-height: 1.7; color: rgba(255,255,255,0.38); }
.footer-legal-inner p + p { margin-top: 0.9em; }

/* ---------- Calendly ---------- */
.calendly-frame { width: 100%; min-height: 760px; border: 1px solid var(--hairline); border-radius: 18px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
  .split, .team-grid, .team-mini { gap: 56px; }
  .brand img { height: 38px; }
}
@media (max-width: 880px) {
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    flex-direction: column; align-items: stretch;
    padding: 16px 24px 26px;
  }
  .nav.open { display: flex; }
  .nav > a, .has-dropdown > a { padding: 14px 8px; }
  .nav .btn-primary { margin: 12px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .dropdown { position: static; display: block; padding: 0; }
  .dropdown-inner { box-shadow: none; border: none; background: none; padding: 0 0 0 18px; backdrop-filter: none; }
  .has-dropdown > a { pointer-events: none; }
  .has-dropdown { flex-direction: column; align-items: stretch; }
  .split, .team-grid, .team-mini { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 90px 0; }
  .section-head { margin-bottom: 54px; }
  .row-item { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .segment { grid-template-columns: 1fr auto; gap: 12px 24px; }
  .segment p { grid-column: 1 / -1; }
  .wrap-components { grid-template-columns: 1fr 1fr; }
  .parallax-band .band-inner, .cta-band { padding-top: 100px; padding-bottom: 100px; }
  .hero-content { padding: 80px 32px 140px; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { margin-right: 0; padding: 34px 0 40px; }
  .steps { grid-template-columns: 1fr; }
  .wrap-components, .footer-main { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  body { font-size: 16px; }
}


/* ---------- Nitrogen (Risk Number) hosted button ---------- */
.nitrogen-btn a, .nitrogen-btn button, .nitrogen-btn input[type="button"] {
  font-family: var(--head) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  padding: 16px 32px !important;
  border-radius: 100px !important;
  border: 1px solid transparent !important;
  background: #fff !important;
  color: var(--navy) !important;
  box-shadow: none !important;
  cursor: pointer;
}
.nitrogen-btn a:hover, .nitrogen-btn button:hover { background: var(--paper-warm) !important; }

/* accessibility: skip link */
.skip-link { position:absolute; left:-9999px; top:12px; z-index:999; background:var(--navy); color:#fff; padding:10px 16px; border-radius:6px; font-family:var(--head); font-size:.85rem; }
.skip-link:focus { left:12px; outline:2px solid #fff; }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.35rem; margin: 48px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 1rem; }
.legal-pending { margin: 18px 0; padding: 22px 26px; border: 1px dashed var(--red); border-radius: 12px; background: #FFF8F8; font-size: 0.92rem; color: var(--body-c); }

.legal-list { margin: 10px 0 18px 22px; }
.legal-list li { margin: 6px 0; font-size: 1rem; }
.legal blockquote { margin: 16px 0; padding: 14px 22px; border-left: 2px solid var(--red); font-family: var(--serif); font-style: italic; color: var(--ink); }
.legal-pending { display: none; }

/* ---------- Footer legal links ---------- */
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 10px 0; align-items: center; margin-bottom: 22px; }
.footer-legal-links a {
  font-family: var(--head); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.62); text-decoration: none;
  transition: color 0.25s ease;
}
.footer-legal-links a:hover { color: #fff; }
.footer-legal-links a + a::before {
  content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: var(--red); margin: 0 18px; vertical-align: middle;
}
