/* ============================================================
   NCBA Limited — Design System v1.0
   Quiet luxury for California law firms.
   Navy #194669 · Deep #223555 · Ink #0E1F33 · Gold #B89B5E · Ivory #F7F5F0
   Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

:root {
  --navy: #194669;
  --navy-deep: #223555;
  --navy-ink: #0E1F33;
  --gold: #B89B5E;
  --gold-deep: #7E6435; /* 5.58:1 on white, 5.12:1 on ivory — WCAG AA for the 12px bold eyebrows/tier-meta */
  --gold-soft: rgba(184, 155, 94, 0.10);
  --ivory: #F7F5F0;
  --mist: #F4F4F4;
  --line: #E3E3E3;
  --ink: #141414;
  --slate: #4E5560;
  --white: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --on-dark-line: rgba(255, 255, 255, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", -apple-system, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px rgba(14, 31, 51, .06), 0 4px 12px rgba(14, 31, 51, .06);
  --shadow-md: 0 2px 6px rgba(14, 31, 51, .08), 0 16px 40px rgba(14, 31, 51, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 88px;
  --topbar-h: 42px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.nc-body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
p { margin: 0 0 1.2em; }
ul { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.12; margin: 0 0 .45em; text-transform: none; }
.nc-h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); letter-spacing: -0.01em; color: var(--white); }
.nc-h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.005em; }
.nc-h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
.nc-lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; max-width: 62ch; }

.nc-container { width: min(1180px, 92vw); margin-inline: auto; }
.nc-narrow { width: min(880px, 92vw); margin-inline: auto; }

.nc-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--navy-ink); padding: 10px 18px; font-weight: 700;
}
.nc-skip:focus { left: 12px; top: 12px; }

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

/* The fixed topbar + header (130px) otherwise cover any anchor-navigation target. */
[id] { scroll-margin-top: calc(var(--topbar-h) + var(--header-h) + 16px); }

/* Contact@NCBALimited.com is unbreakable and wider than a 320px card otherwise. */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---------- Eyebrow / flourish ---------- */
.nc-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 18px;
}
.nc-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.nc-eyebrow--center { justify-content: center; }
.nc-eyebrow--center::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.nc-on-dark .nc-eyebrow { color: var(--gold); }

.nc-arc-under { display: block; width: 120px; margin-top: 14px; }
.nc-arc-under path { stroke: var(--gold); stroke-width: 2.5; fill: none; }

/* ---------- Buttons ---------- */
.nc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .02em;
  padding: 16px 32px; border-radius: 3px; border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.nc-btn svg { width: 17px; height: 17px; }
.nc-btn--navy { background: var(--navy); color: var(--white); }
.nc-btn--navy:hover { background: var(--navy-deep); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.nc-btn--gold { background: var(--gold); color: var(--navy-ink); }
.nc-btn--gold:hover { background: #C9AC6F; box-shadow: 0 6px 18px rgba(184,155,94,.35); transform: translateY(-1px); }
.nc-btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.nc-btn--ghost:hover { background: var(--navy); color: var(--white); }
.nc-btn--ghost-light { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.nc-btn--ghost-light:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Topbar ---------- */
.nc-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--topbar-h);
  background: var(--navy-ink);
  border-bottom: 1px solid rgba(184,155,94,.35);
  font-size: 13px;
}
.nc-topbar__in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nc-topbar__contact { display: flex; gap: 26px; }
.nc-topbar__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-muted); transition: color .2s; }
.nc-topbar__contact a:hover { color: var(--gold); }
.nc-topbar__contact svg { width: 14px; height: 14px; color: var(--gold); }
/* .55 alpha = 5.8:1 on navy-ink; the old .45 measured 4.37:1 — under AA for this size. */
.nc-topbar__note { margin: 0; color: rgba(255,255,255,.55); letter-spacing: .06em; font-size: 12px; }

/* ---------- Header ---------- */
.nc-header {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 89;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), top .3s var(--ease);
  background: linear-gradient(to bottom, rgba(14,31,51,.55), rgba(14,31,51,0));
}
.nc-header.is-solid {
  background: rgba(14, 31, 51, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(184,155,94,.25), 0 12px 32px rgba(14,31,51,.25);
}
.nc-header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nc-header__brand img { width: 180px; height: auto; }
.nc-nav { display: flex; align-items: center; gap: 8px; }
.nc-nav > ul { display: flex; align-items: center; gap: 2px; }
.nc-nav > ul > li { position: relative; }
.nc-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.85); font-size: 15px; font-weight: 500;
  padding: 12px 14px; position: relative; transition: color .2s;
}
.nc-nav > ul > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nc-nav > ul > li > a:hover, .nc-nav > ul > li > a[aria-current="page"] { color: var(--white); }
.nc-nav > ul > li > a:hover::after, .nc-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nc-nav__caret { width: 14px; height: 14px; opacity: .7; transition: transform .25s var(--ease); }
.has-sub:hover .nc-nav__caret, .has-sub:focus-within .nc-nav__caret { transform: rotate(180deg); }
.nc-sub {
  position: absolute; top: 100%; left: 8px; min-width: 300px;
  background: var(--navy-ink); border-top: 2px solid var(--gold);
  box-shadow: var(--shadow-md); border-radius: 0 0 4px 4px;
  padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-sub:hover .nc-sub, .has-sub:focus-within .nc-sub { opacity: 1; visibility: visible; transform: translateY(0); }
/* Two-column panel is wider than its nav item — center it under the item so it
   stays inside the viewport down to the 900px burger breakpoint. */
.nc-sub--cols { min-width: 620px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; left: 50%; right: auto; transform: translate(-50%, 8px); }
.has-sub:hover .nc-sub--cols, .has-sub:focus-within .nc-sub--cols { transform: translate(-50%, 0); }
.nc-sub a { display: block; padding: 11px 22px; color: rgba(255,255,255,.82); font-size: 14.5px; transition: color .2s, background-color .2s, padding-left .2s; }
.nc-sub a:hover, .nc-sub a[aria-current="page"] { color: var(--gold); background: rgba(255,255,255,.04); padding-left: 27px; }
.nc-nav__cta { margin-left: 18px; padding: 12px 24px; font-size: 14px; }

/* ≥1280px the full nav fits on one line once slightly compacted — without
   this, flex squeeze folded the two longest labels ("Practice Areas",
   "Compliance & Ethics") onto two lines at EVERY desktop width (the 1180px
   container, not the viewport, is the constraint: nowrap at full size needs
   1192px). Below 1280 the row genuinely lacks room; the wrap behavior stays. */
@media (min-width: 1280px) {
  .nc-nav > ul > li > a { white-space: nowrap; font-size: 14.5px; padding: 12px 11px; }
  .nc-nav > ul > li > a::after { left: 11px; right: 11px; }
  .nc-nav__cta { font-size: 13.5px; }
}

.nc-burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 95; }
.nc-burger span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }
.nc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.nc-hero {
  position: relative; display: flex; align-items: center;
  min-height: min(92vh, 860px);
  padding: calc(var(--topbar-h) + var(--header-h) + 40px) 0 90px;
  background-size: cover; background-position: center;
  isolation: isolate;
  overflow: hidden; /* clips the .nc-hero__bg parallax bleed (v1.5.0) */
}
.nc-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14,31,51,.93) 0%, rgba(14,31,51,.72) 45%, rgba(25,70,105,.35) 100%);
}
.nc-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1;
  background: linear-gradient(to top, rgba(14,31,51,.75), transparent);
}
.nc-hero--short { min-height: 480px; padding-bottom: 70px; }
.nc-hero__content { max-width: 780px; }
.nc-hero .nc-eyebrow { color: var(--gold); }
.nc-hero__lede { color: var(--on-dark-muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 56ch; margin-bottom: 2rem; }
.nc-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.nc-hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; /* decorative — must never intercept clicks meant for the hero CTAs */
}
.nc-hero__scroll::after { content: ""; width: 1px; height: 42px; background: linear-gradient(to bottom, var(--gold), transparent); }
/* On ~900px-tall laptop viewports the 92vh hero leaves no clearance and the
   cue overlapped the "Explore Our Services" button (verified at 1920x900).
   Below 960px of height there is no room for a scroll hint — drop it. */
@media (max-height: 960px) { .nc-hero__scroll { display: none; } }

/* Breadcrumb (inner heroes) */
.nc-crumb { display: flex; gap: 10px; align-items: center; font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.6); margin-bottom: 22px; text-transform: uppercase; }
.nc-crumb a { color: rgba(255,255,255,.75); }
.nc-crumb a:hover { color: var(--gold); }
.nc-crumb span[aria-hidden] { color: var(--gold); }

/* ---------- Sections ---------- */
.nc-section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.nc-section--ivory { background: var(--ivory); }
.nc-section--mist { background: var(--mist); }
.nc-section--navy { background: linear-gradient(160deg, var(--navy-ink) 0%, var(--navy-deep) 100%); }
.nc-section--navy, .nc-on-dark { color: var(--on-dark-muted); }
.nc-section--navy h2, .nc-section--navy h3, .nc-section--navy h4, .nc-on-dark h2, .nc-on-dark h3 { color: var(--white); }
.nc-section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.nc-section__head--center { margin-inline: auto; text-align: center; }

/* watermark arc */
.nc-section--arc { position: relative; overflow: hidden; }
.nc-section--arc::before {
  content: ""; position: absolute; top: -120px; right: -140px; width: 560px; height: 560px;
  border: 1px solid var(--gold); border-radius: 50%; opacity: .14; pointer-events: none;
}
.nc-section--arc::after {
  content: ""; position: absolute; top: -80px; right: -100px; width: 560px; height: 560px;
  border: 1px solid var(--gold); border-radius: 50%; opacity: .09; pointer-events: none;
}

/* ---------- Grids & cards ---------- */
.nc-grid { display: grid; gap: 28px; }
.nc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.nc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nc-grid--4 { grid-template-columns: repeat(4, 1fr); }

.nc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 38px 32px; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.nc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.nc-card:hover::before { transform: scaleX(1); }
/* Cards are flex columns so __more links pin to the bottom edge — in equal-
   height grid rows they otherwise floated at whatever height the copy ended
   (three different heights across the services pillars at 1920). */
.nc-card, a.nc-card { display: flex; flex-direction: column; }
a.nc-card { cursor: pointer; }
.nc-card__icon {
  width: 54px; height: 54px; border-radius: 3px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--navy); margin-bottom: 24px;
}
.nc-card__icon svg { width: 26px; height: 26px; }
.nc-card h3 { margin-bottom: .5em; }
.nc-card p { font-size: 15.5px; margin-bottom: 0; color: var(--slate); }
.nc-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; align-self: flex-start; font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--navy); }
.nc-card__more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nc-card:hover .nc-card__more svg { transform: translateX(4px); }
.nc-card:hover .nc-card__more { color: var(--gold-deep); }

/* dark cards (on navy) */
.nc-card--dark { background: rgba(255,255,255,.045); border-color: var(--on-dark-line); }
.nc-card--dark h3 { color: var(--white); }
.nc-card--dark p { color: var(--on-dark-muted); }
.nc-card--dark .nc-card__icon { background: rgba(184,155,94,.16); color: var(--gold); }
.nc-card--dark:hover { box-shadow: 0 24px 48px rgba(0,0,0,.35); }

/* image cards */
.nc-card--img { padding: 0; }
.nc-card--img figure { margin: 0; aspect-ratio: 3/2; overflow: hidden; }
.nc-card--img figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.nc-card--img:hover figure img { transform: scale(1.045); }
/* The body wrapper must relay the flex column for __more's margin-top:auto
   to reach the card's bottom edge (link heights varied per copy length). */
.nc-card--img .nc-card__body { padding: 30px 32px 36px; display: flex; flex-direction: column; flex: 1; }

/* ---------- Stats band ---------- */
.nc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.nc-stat { padding: 8px 12px; position: relative; }
.nc-stat + .nc-stat::before { content: ""; position: absolute; left: -16px; top: 12%; bottom: 12%; width: 1px; background: var(--on-dark-line); }
.nc-stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 4.5vw, 3.8rem); font-weight: 600; color: var(--gold); line-height: 1; display: block; }
.nc-stat__label { font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 12px; display: block; }

/* ---------- Split (image + text) ---------- */
.nc-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.nc-split__media { position: relative; }
.nc-split__media img { width: 100%; border-radius: 4px; box-shadow: var(--shadow-md); }
.nc-split__media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 1px solid var(--gold); border-radius: 4px; opacity: .5; z-index: -1;
}
.nc-split__media--left::before { inset: 24px 24px -24px -24px; }
.nc-split__badge {
  position: absolute; bottom: -26px; left: -26px;
  background: var(--navy-ink); border: 1px solid rgba(184,155,94,.5); color: var(--white);
  border-radius: 4px; padding: 20px 26px; box-shadow: var(--shadow-md);
}
.nc-split__badge .nc-stat__num { font-size: 2.4rem; }
.nc-split__badge .nc-stat__label { margin-top: 4px; font-size: 11px; }

/* ---------- Checklist ---------- */
.nc-check { display: grid; gap: 14px; margin: 1.4rem 0 2rem; }
.nc-check li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.nc-check li svg { width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; margin-top: 4px; }
.nc-on-dark .nc-check li svg, .nc-section--navy .nc-check li svg { color: var(--gold); }
.nc-check li strong { color: var(--ink); font-weight: 700; }
.nc-section--navy .nc-check li strong { color: var(--white); }

/* ---------- Chips ---------- */
.nc-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.nc-chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 11px 22px; font-size: 14.5px; font-weight: 500;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.nc-chip svg { width: 15px; height: 15px; color: var(--gold-deep); }
a.nc-chip:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-2px); cursor: pointer; }

/* ---------- Numbered process ---------- */
.nc-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.nc-step { position: relative; padding-top: 18px; }
.nc-step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 4.4rem; font-weight: 600; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(184,155,94,.75);
  display: block; margin-bottom: 14px;
}
.nc-step h3 { font-size: 1.3rem; }
.nc-step p { font-size: 15.5px; margin: 0; }

/* ---------- FAQ accordion (plain <details>, JS-free) ---------- */
.nc-faq { margin-top: 34px; border-top: 1px solid var(--line); }
.nc-faq__item { border-bottom: 1px solid var(--line); background: transparent; }
.nc-faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink);
  padding: 22px 44px 22px 0; transition: color .2s;
}
.nc-faq__item summary::-webkit-details-marker { display: none; }
.nc-faq__item summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px;
  translate: 0 -50%;
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) center/12px 1.5px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) center/1.5px 12px no-repeat;
  transition: transform .2s;
}
.nc-faq__item[open] summary { color: var(--navy); }
.nc-faq__item[open] summary::after { transform: rotate(45deg); }
.nc-faq__item summary:hover { color: var(--navy); }
.nc-faq__a { padding: 0 0 24px; }
.nc-faq__a p { margin: 0; font-size: 16px; max-width: 68ch; }

/* ---------- Cookie consent bar ----------
   Accept and Decline are ONE shared class — identical size/weight by design.
   Never restyle Decline as the weaker option. */
.nc-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 92;
  background: rgba(14, 31, 51, .96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(184, 155, 94, .45);
  color: var(--on-dark-muted);
  padding: 18px 0;
  box-shadow: 0 -12px 32px rgba(14, 31, 51, .25);
}
.nc-consent[hidden] { display: none; }
/* The region receives programmatic focus when reopened from the footer —
   the landing spot needs no ring; the buttons inside keep :focus-visible. */
.nc-consent:focus { outline: none; }
.nc-consent__in { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.nc-consent__text { margin: 0; font-size: 14px; line-height: 1.6; max-width: 76ch; }
.nc-consent__text strong { color: var(--white); }
.nc-consent__actions { display: flex; gap: 12px; flex-shrink: 0; }
.nc-consent__btn {
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .02em;
  padding: 12px 28px; border-radius: 3px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, .55); color: var(--white);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nc-consent__btn:hover { border-color: var(--gold); color: var(--gold); }
.nc-consent__text a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.nc-consent__text a:hover { color: #C9AC6F; }
@media (max-width: 640px) {
  .nc-consent { padding: 14px 0; }
  .nc-consent__in { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .nc-consent__text { font-size: 13px; max-width: none; }
  .nc-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ---------- Quote / pull ---------- */
.nc-pull {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.4; color: var(--white);
  max-width: 30ch; margin: 0;
}
.nc-pull cite { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 22px; }

/* ---------- CTA band ---------- */
.nc-cta {
  position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0;
  background-size: cover; background-position: center; isolation: isolate;
  text-align: center;
}
.nc-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(14,31,51,.94), rgba(25,70,105,.82)); }
.nc-cta h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.1rem); }
.nc-cta p { color: var(--on-dark-muted); max-width: 58ch; margin: 0 auto 2.2rem; }
.nc-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ---------- Forms ---------- */
.nc-form { display: block; }
.nc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nc-form__field { margin-bottom: 20px; }
.nc-form__field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.nc-form__field input, .nc-form__field select, .nc-form__field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.nc-form__field input:focus, .nc-form__field select:focus, .nc-form__field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(25,70,105,.12);
}
.nc-form__field textarea { resize: vertical; min-height: 140px; }
.nc-form__submit { width: 100%; }
.nc-form__note { font-size: 13.5px; color: var(--slate); text-align: center; margin-top: 14px; }
.nc-form__hp { position: absolute; left: -9999px; }
.nc-form__success {
  background: #ECF6EE; border: 1px solid #BFE3C6; color: #1E5A2A;
  border-radius: 4px; padding: 16px 20px; font-weight: 500; margin-bottom: 24px;
}

/* ---------- Contact info panel ---------- */
.nc-info-tile { display: flex; gap: 18px; align-items: flex-start; padding: 26px 0; border-bottom: 1px solid var(--on-dark-line); }
.nc-info-tile:last-child { border-bottom: 0; }
.nc-info-tile svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.nc-info-tile h3 { color: var(--white); font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.nc-info-tile a, .nc-info-tile p { color: var(--on-dark-muted); font-size: 16.5px; margin: 0; }
.nc-info-tile a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.nc-footer { background: var(--navy-ink); color: var(--on-dark-muted); position: relative; }
.nc-footer__arc { line-height: 0; background: var(--white); }
.nc-footer__arc svg { width: 100%; height: 60px; display: block; background: transparent; }
.nc-footer__arc { background: transparent; margin-top: -1px; }
.nc-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 48px;
  padding: clamp(3.5rem, 6vw, 5rem) 0 3rem;
}
.nc-footer__brand img { width: 200px; margin-bottom: 22px; }
.nc-footer__brand p { font-size: 14.5px; line-height: 1.75; max-width: 40ch; }
.nc-footer__col h3 {
  color: var(--white); font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px;
  padding-bottom: 12px; position: relative;
}
.nc-footer__col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 1px; background: var(--gold); }
.nc-footer__col ul { display: grid; gap: 12px; }
.nc-footer__col a { color: var(--on-dark-muted); font-size: 15px; transition: color .2s, padding-left .2s; }
.nc-footer__col a:hover { color: var(--gold); padding-left: 6px; }
.nc-footer__contact { margin-bottom: 26px; }
.nc-social { display: flex; gap: 12px; margin-top: 26px; }
.nc-social a {
  width: 40px; height: 40px; border: 1px solid var(--on-dark-line); border-radius: 50%;
  display: grid; place-items: center; color: var(--on-dark-muted);
  transition: color .2s, border-color .2s, transform .2s;
}
.nc-social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.nc-social svg { width: 16px; height: 16px; }
.nc-footer__bottom { border-top: 1px solid var(--on-dark-line); padding: 22px 0; font-size: 13px; }
.nc-footer__bottom .nc-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
/* .55 alpha = 5.8:1 on navy-ink; the old .45 measured 4.37:1 — under AA at 13px. */
.nc-footer__bottom p { margin: 0; color: rgba(255,255,255,.55); }
.nc-footer__bottom a { color: rgba(255,255,255,.6); transition: color .2s; }
.nc-footer__bottom a:hover { color: var(--gold); }
/* "Cookie Preferences" is a <button> (it acts, not navigates) dressed as the
   neighboring legal links so the bottom bar reads as one row. */
.nc-consent-open {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: rgba(255,255,255,.6); transition: color .2s;
}
.nc-consent-open:hover { color: var(--gold); }
.nc-footer__credit { display: inline-flex; align-items: center; gap: 8px; }
.nc-footer__credit a { display: inline-flex; align-items: center; }
.nc-footer__credit img { height: 17px; width: auto; opacity: .5; transition: opacity .2s var(--ease); }
.nc-footer__credit a:hover img, .nc-footer__credit a:focus-visible img { opacity: 1; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s var(--ease), transform .65s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; } .reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; } .reveal[data-d="4"] { transition-delay: .4s; }

/* ============================================================
   Refined motion layer (v1.5.0)
   Everything here is inert until ncba.js builds/enables it — and ncba.js
   only does so when motion is welcome (no prefers-reduced-motion) and the
   browser supports IntersectionObserver. No-JS users never see these states.
   ============================================================ */

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

/* Slim house-colored scrollbar (webkit/blink; Firefox keeps native). */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 6px; border: 2px solid var(--mist); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* Scroll progress hairline (element is JS-created). */
.nc-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 96;
  background: var(--gold); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* Masked word reveal — JS wraps words as .nc-wm > .nc-w with a --wi stagger
   index. Padding/margin pairs keep descenders and italic overhang from being
   clipped without shifting the layout. */
.nc-wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .09em .18em 0; margin: 0 -.09em -.18em 0; }
.nc-w {
  display: inline-block; transform: translateY(118%) rotate(2deg); transform-origin: 0 100%;
  transition: transform .85s var(--ease); transition-delay: calc(var(--wi, 0) * 42ms);
}
.nc-split-text.is-visible .nc-w { transform: translateY(0) rotate(0deg); }
/* Split headings opt out of the plain .reveal fade — the word masks take over. */
.reveal.nc-split-text { opacity: 1; transform: none; transition: none; will-change: auto; }

/* Cinematic hero — JS-created background layer under the existing overlays
   (-2 below ::before/::after at -1). Outer layer is parallaxed by JS (no
   transition, inline transform); inner layer carries the one-shot Ken Burns
   settle so the two never fight over the same property. */
.nc-hero__bg { position: absolute; inset: -14% 0; z-index: -2; pointer-events: none; }
.nc-hero__bg-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.14); transition: transform 3.2s var(--ease); will-change: transform;
}
.nc-hero.is-ready .nc-hero__bg-img { transform: scale(1); }

/* Card spotlight sheen — position follows the cursor via --mx/--my (JS). */
.nc-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(184,155,94,.09), transparent 65%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.nc-card:hover::after { opacity: 1; }

/* Stat numeral underline sweep — class is added when the count-up starts. */
.nc-hero .nc-arc-under { margin: 4px 0 28px; }.nc-stat__num { position: relative; }
.nc-stat__num::after {
  content: ""; display: block; width: 42px; height: 1px; margin: 12px auto 0;
  background: var(--gold); transform: scaleX(0); transition: transform .7s var(--ease) .25s;
}
.nc-stat.is-counting .nc-stat__num::after { transform: scaleX(1); }
/* The split-panel badge reuses .nc-stat__num without a .nc-stat parent — no
   underline there (it would reserve space for a line that never draws). */
.nc-split__badge .nc-stat__num::after { content: none; }

/* Desktop dropdown item stagger (mobile flyout keeps items always visible). */
@media (min-width: 901px) {
  .nc-sub li { opacity: 0; transform: translateY(6px); transition: opacity .24s var(--ease), transform .24s var(--ease); }
  .has-sub:hover .nc-sub li, .has-sub:focus-within .nc-sub li { opacity: 1; transform: none; }
  .has-sub:hover .nc-sub li:nth-child(2), .has-sub:focus-within .nc-sub li:nth-child(2) { transition-delay: .04s; }
  .has-sub:hover .nc-sub li:nth-child(3), .has-sub:focus-within .nc-sub li:nth-child(3) { transition-delay: .08s; }
  .has-sub:hover .nc-sub li:nth-child(4), .has-sub:focus-within .nc-sub li:nth-child(4) { transition-delay: .12s; }
  .has-sub:hover .nc-sub li:nth-child(5), .has-sub:focus-within .nc-sub li:nth-child(5) { transition-delay: .16s; }
  .has-sub:hover .nc-sub li:nth-child(n+6), .has-sub:focus-within .nc-sub li:nth-child(n+6) { transition-delay: .2s; }
}

/* FAQ smooth height animation — JS drives inline heights; border-box sizing
   (global reset) makes height:0 collapse the padding too. */
.nc-faq__a { overflow: hidden; transition: height .32s var(--ease), opacity .32s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .nc-progress { display: none; }
  .nc-hero__bg, .nc-hero__bg-img { transform: none !important; transition: none !important; }
  .nc-w { transform: none !important; transition: none !important; }
  .nc-card::after { display: none; }
  .nc-sub li { opacity: 1 !important; transform: none !important; }
  .nc-stat__num::after { transform: scaleX(1); transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nc-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nc-steps { grid-template-columns: 1fr; gap: 26px; }
  .nc-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nc-topbar__note { display: none; }
  .nc-nav {
    position: fixed; inset: 0; z-index: 94;
    background: var(--navy-ink);
    flex-direction: column; justify-content: flex-start; align-items: center; gap: 10px;
    padding: 110px 0 60px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nc-nav.is-open { opacity: 1; visibility: visible; }
  .nc-nav > ul { flex-direction: column; text-align: center; gap: 4px; }
  .nc-nav > ul > li > a { font-size: 21px; font-family: var(--serif); padding: 12px 20px; }
  .nc-sub { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; min-width: 0; padding: 0 0 8px; }
  .nc-sub--cols { display: block; min-width: 0; }
  .nc-sub--cols, .has-sub:hover .nc-sub--cols, .has-sub:focus-within .nc-sub--cols { transform: none; }
  .nc-sub a { font-size: 15px; padding: 8px 16px; text-align: center; }
  .nc-sub a:hover { padding-left: 16px; }
  .nc-nav__caret { display: none; }
  .nc-nav__cta { margin: 22px 0 0; }
  .nc-burger { display: block; }
  .nc-grid--3, .nc-grid--2 { grid-template-columns: 1fr; }
  .nc-split { grid-template-columns: 1fr; }
  .nc-split__media { order: -1; margin-bottom: 12px; }
  .nc-split__media::before { display: none; }
  .nc-split__badge { bottom: -18px; left: 14px; padding: 14px 20px; }
  .nc-stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .nc-stat + .nc-stat::before { display: none; }
  .nc-form__row { grid-template-columns: 1fr; gap: 0; }
  .nc-footer__bottom .nc-container { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  body.nc-body { font-size: 16px; }
  .nc-hero { min-height: 78vh; }
  .nc-hero__actions .nc-btn { width: 100%; }
  .nc-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .nc-stats { grid-template-columns: 1fr 1fr; }
  .nc-card { padding: 30px 24px; }
  .nc-topbar__contact { width: 100%; justify-content: space-between; gap: 12px; }
  .nc-faq__item summary { font-size: 1.12rem; padding: 18px 38px 18px 0; }
}
@media (max-width: 640px) {
  /* Mobile CTA background — 960px variant built by tools/make_mobile_heroes.py.
     Per-page hero overrides are emitted as inline <style> blocks by the page sources. */
  .nc-cta { background-image: url('/wp-content/uploads/2026/07/ncba-sacramento-mobile.jpg') !important; }
}
@media (max-width: 374px) {
  /* Below 375px the phone + email can't share the fixed 42px topbar: the
     mailto overflow-wrap broke the address mid-word ("…NCBALimited.c/om") and
     both links rendered as two clipped lines. Phone keeps the bar; the email
     stays reachable in the footer, contact page, and contact form note. */
  .nc-topbar__contact { justify-content: center; }
  .nc-topbar__contact a { white-space: nowrap; }
  .nc-topbar__contact a[href^="mailto:"] { display: none; }
  /* Contact-page info tile: same address wrapped "…NCBALimited./com".
     14px is the largest size that keeps it on one line in the 190px the tile
     leaves at a 320px viewport (measured live; 14.5px still wraps). */
  .nc-info-tile a, .nc-info-tile p { font-size: 14px; }
}
