/* ==========================================================================
   YOAKE LEGAL — Design System
   Author: built for Yoake Legal. Single stylesheet, no build step required.
   Sections: 1 Tokens · 2 Reset · 3 Typography · 4 Layout · 5 Components
             6 Navigation · 7 Footer · 8 Forms · 9 Wizard · 10 Utilities
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* Brand */
  --navy:          #1D3557;
  --navy-deep:     #16283F;
  --navy-ink:      #122236;
  --navy-tint:     #E8ECF2;

  --emerald:       #2A9D8F;
  --emerald-deep:  #1F7A6F;
  --emerald-tint:  #E7F3F1;

  /* Gold: --gold matches the logo mark exactly. --gold-light is the brand
     highlight tint. --gold-ink is the only gold dark enough for text on white. */
  --gold:          #CFAC6C;
  --gold-light:    #E9C46A;
  --gold-soft:     #F3E9D6;
  --gold-ink:      #8A6A2F;

  --charcoal:      #2E2E2E;
  --grey-light:    #F4F4F4;
  --white:         #FFFFFF;

  /* Surfaces — warm neutrals keep the site calm rather than clinical */
  --paper:         #FBFAF7;
  --paper-2:       #F6F3ED;
  --line:          #E6E1D8;
  --line-strong:   #D6CFC2;

  /* Text */
  --ink:           #22272E;
  --ink-2:         #4A5260;
  --ink-3:         #6B7280;
  --on-dark:       #F4F1EA;
  --on-dark-2:     #B9C2D0;

  /* Type */
  --serif: "Merriweather", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  "Lato", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Fluid scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.8125rem;
  --fs-base: 1.0625rem;
  --fs-md:   clamp(1.0625rem, 0.99rem + 0.32vw, 1.1875rem);
  --fs-lg:   clamp(1.1875rem, 1.09rem + 0.45vw, 1.375rem);
  --fs-h4:   clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  --fs-h3:   clamp(1.375rem, 1.24rem + 0.62vw, 1.75rem);
  --fs-h2:   clamp(1.75rem, 1.44rem + 1.4vw, 2.75rem);
  --fs-h1:   clamp(2.25rem, 1.72rem + 2.4vw, 4rem);
  --fs-hero: clamp(2.5rem, 1.66rem + 3.6vw, 4.75rem);

  /* Space */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 2.5rem;  --sp-8: 3rem;
  --sp-9: 4rem;    --sp-10: 5rem;   --sp-11: 6.5rem; --sp-12: 8rem;
  --section-y: clamp(3.5rem, 2.2rem + 5.4vw, 7.5rem);

  /* Geometry */
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-xl: 22px; --r-pill: 999px;
  --container: 1240px;
  --measure: 68ch;

  /* Elevation — soft, warm-tinted, never harsh */
  --sh-1: 0 1px 2px rgba(29,53,87,.05), 0 2px 8px rgba(29,53,87,.04);
  --sh-2: 0 2px 6px rgba(29,53,87,.06), 0 12px 28px rgba(29,53,87,.07);
  --sh-3: 0 4px 12px rgba(29,53,87,.07), 0 24px 48px rgba(29,53,87,.10);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 380ms;

  --header-h: 84px;
}

/* ---------- 2. RESET ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }
:target { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Focus — visible, on-brand, never removed */
:focus-visible {
  outline: 3px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }

/* Elements we move focus to programmatically (step headings, success panels)
   should receive focus for screen readers without painting a focus ring. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem;
  border-radius: var(--r-md); font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: .04em; text-decoration: none; transition: top 180ms var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. TYPOGRAPHY ------------------------------------------------ */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 700; color: var(--navy-ink); letter-spacing: -0.015em; }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.17; }
h3 { font-size: var(--fs-h3); line-height: 1.28; }
h4 { font-size: var(--fs-h4); line-height: 1.35; }
h5, h6 {
  font-family: var(--sans); font-size: var(--fs-sm); font-weight: 800;
  text-transform: uppercase; letter-spacing: .13em; color: var(--ink-2);
}
p { max-width: var(--measure); }
.lede { font-size: var(--fs-lg); line-height: 1.62; color: var(--ink-2); }
.small { font-size: var(--fs-sm); color: var(--ink-3); }
strong { font-weight: 700; color: var(--navy-ink); }

/* Eyebrow — the editorial signature of the site */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 800;
  text-transform: uppercase; letter-spacing: .19em; color: var(--gold-ink);
  margin: 0 0 var(--sp-4);
}
.eyebrow::before { content: ""; width: 30px; height: 1.5px; background: var(--gold); flex: none; }
.eyebrow--center { justify-content: center; }
.on-dark .eyebrow { color: var(--gold-light); }
.on-dark .eyebrow::before { background: var(--gold-light); }

.display { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -0.028em; }

/* Inline prose links */
.prose a, a.inline-link {
  color: var(--navy); text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 1px; transition: background-size 260ms var(--ease), color 200ms var(--ease);
}
.prose a:hover, a.inline-link:hover { color: var(--gold-ink); background-size: 100% 2.5px; }

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { margin-top: 2.2em; font-size: var(--fs-h3); }
.prose h3 { margin-top: 1.9em; font-size: var(--fs-h4); }
.prose ul, .prose ol { padding-left: 1.35rem; color: var(--ink-2); }
.prose li + li { margin-top: .55rem; }
.prose blockquote {
  border-left: 3px solid var(--gold); padding: .35rem 0 .35rem 1.5rem;
  font-family: var(--serif); font-size: var(--fs-lg); font-style: italic; color: var(--navy);
}

/* ---------- 4. LAYOUT ---------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 5rem, var(--container)); } }
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1400px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--paper { background: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-deep); color: var(--on-dark); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.on-dark { color: var(--on-dark); }
.on-dark h1,.on-dark h2,.on-dark h3,.on-dark h4 { color: #fff; }
.on-dark p, .on-dark .lede { color: var(--on-dark-2); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--sp-4); }
.section-head--center p { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.25rem, .9rem + 1.4vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.split { display: grid; gap: clamp(2rem, 1.2rem + 3.5vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--40-60 { grid-template-columns: 4fr 6fr; }
  .split--60-40 { grid-template-columns: 6fr 4fr; }
  .split--start { align-items: start; }
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule--gold { height: 2px; width: 56px; background: var(--gold); border: 0; }

/* ---------- 5. COMPONENTS ------------------------------------------------ */

/* Buttons */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: .95rem 1.75rem; min-height: 52px;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 700; letter-spacing: .035em;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
              background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
  position: relative; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform 240ms var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy); }
.btn--primary:hover { --btn-bg: var(--navy-ink); --btn-bd: var(--navy-ink); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: #241c07; --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: var(--gold-light); --btn-bd: var(--gold-light); }

.btn--emerald { --btn-bg: var(--emerald-deep); --btn-fg: #fff; --btn-bd: var(--emerald-deep); }
.btn--emerald:hover { --btn-bg: #1a6a60; --btn-bd: #1a6a60; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--gold); --btn-bg: rgba(207,172,108,.09); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.42); }
.btn--ghost-light:hover { --btn-bd: var(--gold-light); --btn-bg: rgba(255,255,255,.08); }

.btn--sm { padding: .65rem 1.25rem; min-height: 42px; font-size: .875rem; }
.btn--lg { padding: 1.1rem 2.15rem; min-height: 58px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.btn-row--center { justify-content: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .9375rem; letter-spacing: .03em;
  color: var(--navy); text-decoration: none; position: relative; padding-bottom: 3px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--ease);
}
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: scaleX(1); }
.link-arrow .icon { transition: transform 260ms var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--gold-light); }

/* Cards */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease);
}
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-2); font-size: var(--fs-base); flex: 1 1 auto; }
.card .link-arrow { margin-top: var(--sp-5); align-self: flex-start; }
.card--flat:hover { transform: none; }

/* Whole-card click target that keeps the heading as the accessible name */
.card--link h3 a { text-decoration: none; color: inherit; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card--link .link-arrow { position: relative; z-index: 0; }

.card-icon {
  width: 48px; height: 48px; margin-bottom: var(--sp-5);
  display: grid; place-items: center; flex: none;
  border-radius: var(--r-md); background: var(--gold-soft); color: var(--gold-ink);
  transition: background-color 320ms var(--ease), color 320ms var(--ease);
}
.card:hover .card-icon { background: var(--navy); color: var(--gold-light); }
.card-icon svg { width: 24px; height: 24px; }

/* Numbered editorial list */
.numbered { counter-reset: n; display: grid; gap: clamp(1.5rem,1rem + 1.6vw,2.5rem); }
.numbered > li { counter-increment: n; display: grid; grid-template-columns: 3.25rem 1fr; gap: var(--sp-5); align-items: start; }
.numbered > li::before {
  content: counter(n, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--gold);
  line-height: 1.4; border-top: 2px solid var(--gold); padding-top: .5rem;
}
.numbered h3 { font-size: var(--fs-h4); margin-bottom: .45rem; }
.numbered p { color: var(--ink-2); }
.on-dark .numbered > li::before { color: var(--gold-light); border-color: var(--gold-light); }

/* Feature panel (image or generated art) */
.figure-panel {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper-2) var(--panel-img, none) center/cover no-repeat;
  aspect-ratio: var(--ratio, 4/3); border: 1px solid var(--line);
}
.figure-panel img { width: 100%; height: 100%; object-fit: cover; }
/* Photo slot: set --photo to a URL to drop in real photography. See README. */
.photo-slot {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: var(--ratio, 4/3); border: 1px solid var(--line);
  background-color: var(--paper-2);
  background-image: var(--photo, url("../img/paper-soft.jpg"));
  background-size: cover; background-position: center;
  display: grid; place-items: center; text-align: center; padding: var(--sp-6);
}
.photo-slot__note {
  font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
  font-weight: 800; color: var(--gold-ink); background: rgba(255,255,255,.86);
  border: 1px dashed var(--gold); border-radius: var(--r-pill); padding: .45rem 1rem;
  max-width: 90%;
}
.photo-slot[data-filled="true"] .photo-slot__note { display: none; }

/* Stat / trust strip */
.trust-strip { border-block: 1px solid var(--line); background: var(--white); }
.trust-strip__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1rem, .5rem + 2vw, 3rem); padding-block: clamp(1.25rem,1rem + 1vw,2rem);
  text-align: center;
}
.trust-strip__item {
  font-family: var(--serif); font-size: var(--fs-md); color: var(--navy);
  display: inline-flex; align-items: center; gap: .85rem;
}
.trust-strip__item + .trust-strip__item::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none;
}

/* Accordion (FAQ) */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-5);
  padding: clamp(1.1rem,.9rem + .6vw,1.5rem) 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: var(--fs-h4); font-weight: 700; color: var(--navy-ink);
  transition: color 200ms var(--ease);
}
.accordion__btn:hover { color: var(--gold-ink); }
.accordion__icon { flex: none; width: 26px; height: 26px; margin-top: .3rem; position: relative; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.5px; background: var(--gold);
  transition: transform 320ms var(--ease), opacity 200ms var(--ease);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__btn[aria-expanded="true"] .accordion__icon::after { transform: rotate(0deg); opacity: 0; }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 340ms var(--ease); }
.accordion__panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding-bottom: 1.5rem; color: var(--ink-2); }

/* Tabs / filter chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  padding: .55rem 1.1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong);
  background: var(--white); color: var(--ink-2); font-size: .875rem; font-weight: 700;
  letter-spacing: .02em; cursor: pointer; transition: all 220ms var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--gold); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Article cards */
.article-card { display: flex; flex-direction: column; height: 100%; }
.article-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em;
  font-weight: 800; color: var(--gold-ink); margin-bottom: .85rem;
}
.article-card__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.article-card__meta .muted { color: var(--ink-3); font-weight: 700; letter-spacing: .08em; }
.article-card h3 { font-size: var(--fs-h4); line-height: 1.32; }
.article-card time { color: var(--ink-3); }

.featured-article {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: grid; gap: 0;
}
@media (min-width: 900px) { .featured-article { grid-template-columns: 5fr 6fr; } }
.featured-article__art {
  min-height: 260px; background: var(--navy) url("../img/band-navy.jpg") center/cover no-repeat;
  position: relative; overflow: hidden;
}
.featured-article__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-article__body { padding: clamp(1.75rem, 1.3rem + 1.8vw, 3rem); }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
.badge--gold { background: var(--gold-soft); color: var(--gold-ink); }
.badge--emerald { background: var(--emerald-tint); color: var(--emerald-deep); }
.badge--navy { background: var(--navy-tint); color: var(--navy); }
.badge--sample { background: #FFF4E0; color: #8A5A00; border: 1px solid #E8C98A; }

/* Placeholder — for content the firm must supply */
.placeholder {
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
  background: repeating-linear-gradient(135deg, transparent, transparent 9px, rgba(207,172,108,.07) 9px, rgba(207,172,108,.07) 18px);
  color: var(--ink-3); padding: .5rem .9rem; font-size: var(--fs-sm); font-style: italic;
  display: inline-block;
}

/* Callout / disclaimer */
.callout {
  border-left: 3px solid var(--gold); background: var(--gold-soft);
  padding: clamp(1.1rem,.9rem + .6vw,1.5rem) clamp(1.25rem,1rem + .8vw,1.75rem);
  border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.65;
}
.callout strong { display: block; margin-bottom: .3rem; color: var(--navy-ink); font-size: var(--fs-base); }
.callout--info { border-left-color: var(--emerald); background: var(--emerald-tint); }
.callout--quiet { background: var(--paper-2); border-left-color: var(--line-strong); }

/* Breadcrumbs */
.breadcrumbs { font-size: var(--fs-sm); color: var(--ink-3); padding-block: 1.25rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumbs a { text-decoration: none; color: var(--ink-2); border-bottom: 1px solid transparent; transition: border-color 200ms; }
.breadcrumbs a:hover { border-color: var(--gold); }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--line-strong); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 700; }

/* Page hero */
.page-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -6%; top: -30%; width: 46%; height: 190%;
  background: url("../img/paper-soft.jpg") center/cover; opacity: .55; pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(2.5rem,1.8rem + 3.5vw,5.5rem); max-width: 800px; }
.page-hero p { margin-top: var(--sp-5); }

/* Big CTA band */
.cta-band { background: var(--navy-deep) url("../img/band-navy.jpg") center/cover no-repeat; color: var(--on-dark); }
.cta-band__inner { padding-block: clamp(3.5rem,2.4rem + 4.5vw,7rem); text-align: center; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-band p { color: var(--on-dark-2); margin: var(--sp-5) auto var(--sp-7); max-width: 56ch; }

/* ---------- 6. NAVIGATION ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,.86); backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); box-shadow: 0 2px 20px rgba(29,53,87,.06); background: rgba(251,250,247,.95); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  height: var(--header-h); transition: height 300ms var(--ease);
}
.site-header[data-scrolled="true"] .nav { height: 68px; }
.nav__brand { display: inline-flex; align-items: center; flex: none; padding: 6px 0; }
.nav__brand img { height: 40px; width: auto; transition: height 300ms var(--ease); }
.site-header[data-scrolled="true"] .nav__brand img { height: 34px; }

.nav__menu { display: none; }
@media (min-width: 1040px) {
  .nav__menu { display: flex; align-items: center; gap: clamp(.5rem,.1rem + 1vw,1.6rem); }
}
.nav__link {
  position: relative; text-decoration: none; font-size: .9375rem; font-weight: 700;
  letter-spacing: .02em; color: var(--ink-2); padding: .55rem .25rem; white-space: nowrap;
  transition: color 220ms var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: center;
  transition: transform 300ms var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--navy-ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--navy-ink); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: .75rem; flex: none; }
.nav__cta { display: none; }
@media (min-width: 1040px) { .nav__cta { display: inline-flex; } }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px; background: none; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md); transition: border-color 220ms;
}
.nav__toggle:hover { border-color: var(--gold); }
@media (min-width: 1040px) { .nav__toggle { display: none; } }
.nav__toggle span { display: block; height: 1.5px; background: var(--navy); border-radius: 2px; transition: transform 300ms var(--ease), opacity 200ms var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--paper);
  transform: translateX(100%); transition: transform 420ms var(--ease);
  display: flex; flex-direction: column; padding-top: var(--header-h); overflow-y: auto;
  visibility: hidden;
}
.mobile-menu[data-open="true"] { transform: translateX(0); visibility: visible; }
@media (min-width: 1040px) { .mobile-menu { display: none; } }
.mobile-menu__inner { padding: var(--sp-6) 1.25rem var(--sp-10); width: min(100%, 560px); margin-inline: auto; }
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--navy-ink);
}
.mobile-menu__link .icon { color: var(--gold); }
.mobile-menu__link[aria-current="page"] { color: var(--gold-ink); }
.mobile-menu__foot { margin-top: var(--sp-8); display: grid; gap: var(--sp-4); }
.mobile-menu__contact { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.8; }
.mobile-menu__contact a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
body[data-menu-open="true"] { overflow: hidden; }

/* ---------- 7. FOOTER ---------------------------------------------------- */
.site-footer { background: var(--navy-ink); color: var(--on-dark-2); padding-top: clamp(3rem,2.2rem + 3vw,5rem); }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer__grid { display: grid; gap: clamp(2rem,1.4rem + 2.4vw,3.5rem); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 2.2fr 1fr 1fr 1.4fr; } }
.footer__brand img { height: 46px; width: auto; margin-bottom: var(--sp-5); }
.footer__tag { font-family: var(--serif); font-size: var(--fs-md); color: var(--on-dark); max-width: 30ch; line-height: 1.5; }
.site-footer h2.footer__title { font-size: var(--fs-xs); }
.footer__title {
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: .16em; color: var(--gold-light); margin-bottom: var(--sp-5);
}
.footer__list { display: grid; gap: .7rem; }
.footer__list a { text-decoration: none; font-size: .9375rem; color: var(--on-dark-2); transition: color 200ms var(--ease); position: relative; }
.footer__list a:hover { color: var(--gold-light); }
.footer address { font-style: normal; font-size: .9375rem; line-height: 1.85; }
.footer address a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(233,196,106,.45); }
.footer address a:hover { color: var(--gold-light); }
.footer__social { display: flex; gap: .6rem; margin-top: var(--sp-5); }
.footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); color: var(--on-dark-2);
  transition: all 240ms var(--ease);
}
.footer__social a:hover { border-color: var(--gold-light); color: var(--gold-light); background: rgba(233,196,106,.1); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__disclaimer {
  margin-top: clamp(2.5rem,2rem + 2vw,4rem); padding: var(--sp-6) 0;
  border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-sm); line-height: 1.75; color: #97A2B3;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); align-items: center; justify-content: space-between;
  font-size: var(--fs-sm);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer__legal-links a { color: #97A2B3; text-decoration: none; }
.footer__legal-links a:hover { color: var(--gold-light); }

/* ---------- 8. FORMS ----------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.form-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-size: .875rem; font-weight: 700; color: var(--navy-ink); letter-spacing: .01em; }
.field .req { color: var(--gold-ink); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; background: var(--white);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  font-size: var(--fs-base); color: var(--ink); transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  min-height: 52px;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236B7280' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.75rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(29,53,87,.12);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA3AF; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: #B3261E; }
.field[data-invalid="true"] input:focus { box-shadow: 0 0 0 3px rgba(179,38,30,.14); }
.field__error { font-size: var(--fs-sm); color: #B3261E; font-weight: 700; display: none; align-items: center; gap: .35rem; }
.field[data-invalid="true"] .field__error { display: flex; }

.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.checkbox input[type="checkbox"] {
  width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--navy); flex: none; cursor: pointer;
}
.checkbox label { font-weight: 400; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }
.checkbox label a { color: var(--navy); }

.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; border-radius: var(--r-md); padding: 1rem 1.25rem; font-size: var(--fs-sm); line-height: 1.6; }
.form-status[data-state="error"] { display: block; background: #FDECEA; border: 1px solid #F1B5B0; color: #8C1D18; }
.form-status[data-state="info"] { display: block; background: var(--navy-tint); border: 1px solid #C6D0DE; color: var(--navy); }

.form-success {
  display: none; text-align: center; padding: clamp(2rem,1.5rem + 2vw,3.5rem);
  background: var(--emerald-tint); border: 1px solid #B9DED8; border-radius: var(--r-lg);
}
.form-success[data-visible="true"] { display: block; }
.form-success__icon {
  width: 64px; height: 64px; margin: 0 auto var(--sp-5); border-radius: 50%;
  background: var(--emerald); color: #fff; display: grid; place-items: center;
}
.form-success h3 { margin-bottom: .75rem; }
.form-success p { margin-inline: auto; }

/* Loading state */
.btn[data-loading="true"] { pointer-events: none; color: transparent !important; position: relative; }
.btn[data-loading="true"]::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; color: var(--btn-fg);
  animation: spin 720ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 9. COMPLIANCE WIZARD ----------------------------------------- */
.wizard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); overflow: hidden; }
.wizard__head { padding: clamp(1.5rem,1.2rem + 1vw,2.25rem) clamp(1.5rem,1.2rem + 1.4vw,3rem); border-bottom: 1px solid var(--line); background: var(--paper); }
.wizard__steps { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; flex-wrap: wrap; }
.wizard__steps strong { color: var(--navy); }
.progress { height: 6px; border-radius: var(--r-pill); background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); }
.progress__bar {
  height: 100%; width: 0%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transition: width 520ms var(--ease);
}
.wizard__body { padding: clamp(1.75rem,1.4rem + 1.6vw,3rem); }
.wizard__step { display: none; }
.wizard__step[data-active="true"] { display: block; animation: stepIn 400ms var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wizard__q { font-family: var(--serif); font-size: var(--fs-h3); color: var(--navy-ink); margin-bottom: .6rem; }
.wizard__help { color: var(--ink-2); margin-bottom: var(--sp-6); max-width: 60ch; }
.wizard__foot {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between;
  padding: clamp(1.25rem,1rem + .8vw,1.75rem) clamp(1.5rem,1.2rem + 1.4vw,3rem);
  border-top: 1px solid var(--line); background: var(--paper);
}
.wizard__saved { font-size: var(--fs-sm); color: var(--emerald-deep); font-weight: 700; display: flex; align-items: center; gap: .4rem; opacity: 0; transition: opacity 300ms; }
.wizard__saved[data-visible="true"] { opacity: 1; }

.choice-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%,230px), 1fr)); }
.choice {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  padding: 1.35rem 1.4rem 1.4rem; background: var(--white); text-align: left;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); cursor: pointer;
  transition: all 240ms var(--ease); min-height: 100%;
}
.choice:hover { border-color: var(--gold); background: #FFFDF8; transform: translateY(-2px); box-shadow: var(--sh-1); }
.choice__title { font-weight: 800; color: var(--navy-ink); font-size: 1rem; padding-right: 2rem; }
.choice__desc { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.55; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__mark {
  position: absolute; top: 1.1rem; right: 1.1rem; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all 240ms var(--ease);
}
.choice__mark svg { width: 12px; height: 12px; opacity: 0; transform: scale(.6); transition: all 240ms var(--ease); color: #fff; }
.choice[data-checkbox="true"] .choice__mark { border-radius: 5px; }
.choice[data-selected="true"] { border-color: var(--navy); background: #F7F9FC; box-shadow: 0 0 0 1px var(--navy); }
.choice[data-selected="true"] .choice__mark { background: var(--navy); border-color: var(--navy); }
.choice[data-selected="true"] .choice__mark svg { opacity: 1; transform: scale(1); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold-ink); outline-offset: 3px; }

/* Roadmap output */
.roadmap { display: grid; gap: var(--sp-6); }
.roadmap__group { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.roadmap__group-head {
  display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.5rem;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.roadmap__group-head h3 { font-size: var(--fs-h4); margin: 0; }
.roadmap__group-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
.roadmap__group-icon svg { width: 18px; height: 18px; }
.roadmap__list { padding: .5rem 1.5rem 1.25rem; }
.roadmap__item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.roadmap__item:last-child { border-bottom: 0; }
.roadmap__item h4 { font-size: 1.0625rem; margin-bottom: .3rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.roadmap__item p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.65; }
.roadmap__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.roadmap__tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .65rem; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-3); border: 1px solid var(--line); }
.roadmap__summary { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%,180px),1fr)); }
.roadmap__stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem 1.4rem; }
.roadmap__stat dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--ink-3); margin-bottom: .4rem; }
.roadmap__stat dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--navy-ink); line-height: 1.3; }

/* Empty state */
.empty-state { text-align: center; padding: clamp(3rem,2.2rem + 3vw,5rem) 1.5rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--white); }
.empty-state__icon { width: 62px; height: 62px; margin: 0 auto var(--sp-5); border-radius: 50%; background: var(--paper-2); color: var(--ink-3); display: grid; place-items: center; }
.empty-state h3 { margin-bottom: .6rem; }
.empty-state p { margin-inline: auto; color: var(--ink-2); }

/* Pricing / bundle */
.bundle {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.75rem,1.4rem + 1.6vw,3rem); position: relative; overflow: hidden;
}
.bundle::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--emerald), var(--gold)); }
.bundle__price { font-family: var(--serif); font-size: clamp(1.6rem,1.3rem + 1.2vw,2.25rem); color: var(--navy-ink); margin: var(--sp-4) 0 .35rem; }
.check-list { display: grid; gap: .85rem; margin-top: var(--sp-5); }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; align-items: start; color: var(--ink-2); font-size: var(--fs-base); }
.check-list svg { width: 22px; height: 22px; color: var(--emerald); margin-top: 3px; flex: none; }
.check-list--light li { color: rgba(255,255,255,.86); }
.check-list--light strong { color: #fff; }
.check-list--light svg { color: var(--gold-light); }

/* ---------- 10. UTILITIES ------------------------------------------------ */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-7 { margin-bottom: var(--sp-7); }
.icon { width: 18px; height: 18px; flex: none; }
.icon--sm { width: 14px; height: 14px; }
.stack { display: grid; gap: var(--sp-5); }
.stack--sm { gap: var(--sp-3); }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
[data-reveal][data-revealed="true"] { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 90ms; }
[data-reveal-delay="2"] { transition-delay: 180ms; }
[data-reveal-delay="3"] { transition-delay: 270ms; }
[data-reveal-delay="4"] { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- HOMEPAGE HERO ------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--paper); }
/* The hero photograph is a real <img> rather than a CSS background: relative
   url() inside a custom property resolves against the stylesheet, not the
   page, which silently breaks the path on pages in subfolders. */
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, var(--paper) 0%, rgba(251,250,247,.97) 32%, rgba(251,250,247,.72) 56%, rgba(251,250,247,.12) 82%, rgba(251,250,247,0) 100%);
}

.hero__inner {
  position: relative; z-index: 2;
  padding-block: clamp(2.5rem, 2.2rem + 6vw, 8.5rem);
  min-height: clamp(0px, 30vw, 640px);
  display: flex; align-items: center;
}
/* On small screens the background photo is replaced by an explicit figure
   below the copy, so the headline never has to fight the portrait. */
.hero__figure { display: none; margin: 0; }
@media (max-width: 899px) {
  .hero__bg { display: none; }
  .hero::after { background: none; }
  .hero__inner { flex-direction: column; align-items: stretch; gap: 2rem; padding-bottom: 0; }
  .hero__figure {
    display: block; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden;
    margin-inline: calc(var(--sp-4) * -1);
  }
  .hero__figure img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: center 22%; }
}
.hero__content { max-width: 42rem; }
.hero h1 { margin-bottom: var(--sp-5); }
.hero h1 em { font-style: normal; color: var(--gold-ink); position: relative; white-space: nowrap; }
.hero__lede { font-size: var(--fs-lg); color: var(--ink-2); max-width: 34rem; margin-bottom: var(--sp-7); }
.hero__actions { margin-bottom: var(--sp-8); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; align-items: center;
  padding-top: var(--sp-6); border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--ink-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta svg { color: var(--gold); }

/* Compliance feature block */
.compliance-feature {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--emerald-deep) url("../img/panel-compliance.jpg") center/cover no-repeat;
  color: #fff; isolation: isolate;
}
.compliance-feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(18,58,54,.93) 0%, rgba(22,72,67,.82) 50%, rgba(31,122,111,.55) 100%);
}
.compliance-feature__inner { display: grid; gap: clamp(2rem,1.4rem + 2.6vw,4rem); padding: clamp(2rem,1.5rem + 3vw,4.5rem); }
@media (min-width: 960px) { .compliance-feature__inner { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.compliance-feature h2 { color: #fff; }
.compliance-feature p { color: rgba(255,255,255,.86); }
.compliance-steps { display: grid; gap: 1rem; }
.compliance-steps li {
  display: grid; grid-template-columns: 34px 1fr; gap: 1rem; align-items: start;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-md); padding: 1rem 1.15rem; backdrop-filter: blur(3px);
}
.compliance-steps b { display: block; color: #fff; font-size: .9375rem; margin-bottom: .15rem; }
.compliance-steps span { font-size: var(--fs-sm); color: rgba(255,255,255,.78); line-height: 1.55; }
.compliance-steps .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #241c07;
  display: grid; place-items: center; font-weight: 800; font-size: .875rem; flex: none;
}

/* Team card */
.team-card { text-align: left; }
.team-card__portrait {
  aspect-ratio: 4/5; border-radius: var(--r-lg); margin-bottom: var(--sp-5);
  background: var(--paper-2) url("../img/paper-soft.jpg") center/cover;
  border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.team-card__portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 12%;
}
.team-card__portrait::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.team-card__portrait svg { width: 56px; height: 56px; color: var(--line-strong); }
.team-card h3 { font-size: var(--fs-h4); margin-bottom: .2rem; }
.team-card__role { font-size: var(--fs-sm); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .9rem; }

/* Contact detail block */
.contact-detail { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; align-items: start; }
.contact-detail__icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--navy-tint); color: var(--navy); display: grid; place-items: center; }
.contact-detail dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--ink-3); margin-bottom: .25rem; }
.contact-detail dd { margin: 0; font-size: var(--fs-md); color: var(--navy-ink); line-height: 1.6; }
.contact-detail dd a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.contact-detail dd a:hover { color: var(--gold-ink); }

/* Map */
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 16/9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback { display: grid; place-items: center; height: 100%; text-align: center; padding: var(--sp-6); gap: var(--sp-4); }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 140%);
  width: min(100% - 2rem, 880px); z-index: 120;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 1.35rem 1.5rem;
  display: grid; gap: 1rem; transition: transform 520ms var(--ease);
}
@media (min-width: 760px) { .cookie-banner { grid-template-columns: 1fr auto; align-items: center; } }
.cookie-banner[data-open="true"] { transform: translate(-50%, 0); }
.cookie-banner p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; max-width: none; }
.cookie-banner .btn-row { flex-wrap: nowrap; }



/* ---------- 11. PHOTOGRAPHY --------------------------------------------- */
.photo {
  margin: 0; border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line);
  aspect-ratio: var(--ratio, 4/3);
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.photo--portrait { aspect-ratio: 4/5; }
.photo--tall { aspect-ratio: 3/4; }
.photo--wide { aspect-ratio: 16/9; }
.photo--frame { position: relative; }
.photo--frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(29,53,87,.06);
  border-radius: inherit;
}
/* A soft gold plate behind a portrait, used on About */
.photo-plate { position: relative; }
.photo-plate::before {
  content: ""; position: absolute; z-index: 0;
  inset: auto -18px -18px auto; width: 62%; height: 62%;
  background: var(--gold-soft); border-radius: var(--r-lg);
}
.photo-plate > .photo { position: relative; z-index: 1; }

/* Section band with a photograph behind a dark overlay */
.photo-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--navy-ink) center/cover no-repeat;
  color: var(--on-dark); isolation: isolate;
}
.photo-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(18,34,54,.94) 0%, rgba(18,34,54,.86) 45%, rgba(18,34,54,.55) 100%);
}
.photo-band__inner { padding: clamp(2rem,1.5rem + 3vw,4.5rem); }

/* ---------- 12. CLIENT MARQUEE ------------------------------------------ */
.clients__head { max-width: 640px; margin-bottom: clamp(2rem,1.5rem + 1.6vw,3rem); }
.clients__head h2 { font-size: var(--fs-h3); }
.marquee {
  position: relative; overflow: hidden; display: flex; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; flex: none;
  gap: clamp(2.5rem, 1.5rem + 4vw, 6rem);
  padding-right: clamp(2.5rem, 1.5rem + 4vw, 6rem);
  list-style: none; margin: 0;
  animation: marquee 34s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee__item a {
  display: grid; place-items: center; padding: .5rem .25rem;
  border-radius: var(--r-md); transition: transform 260ms var(--ease), opacity 260ms var(--ease);
  min-height: 56px;
}
/* Logos are sized individually so they read as equally prominent. A long
   wordmark set to the same height as a compact mark always looks louder. */
.marquee__logo {
  width: auto; max-width: none; opacity: .82; filter: saturate(.92);
  transition: opacity 260ms var(--ease), filter 260ms var(--ease);
}
.marquee__logo--seedfi   { height: clamp(20px, 1.5vw + 12px, 27px); }
.marquee__logo--sterling { height: clamp(26px, 1.8vw + 16px, 35px); }
.marquee__logo--altbank  { height: clamp(30px, 2.1vw + 18px, 41px); }
.marquee__item a:hover .marquee__logo, .marquee__item a:focus-visible .marquee__logo { opacity: 1; filter: none; }
.marquee__item a:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
  .marquee__track { animation: none; }
  .marquee__track + .marquee__track { display: none; }
}

/* ---------- 13. COMPLIANCE JOURNEY GRAPHIC ------------------------------ */
.journey {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.35rem,1.1rem + 1vw,2rem); overflow: hidden;
}
.journey__head {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem;
}
.journey__head h3 { font-size: var(--fs-h4); margin: 0; }
.journey__legend { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: var(--fs-xs); }
.journey__legend span { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.journey__legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Landscape scroller: the map always reads left to right. On narrow screens
   it scrolls horizontally rather than collapsing, so the journey metaphor
   survives on a phone. */
.journey__scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; }
.journey__scroll::-webkit-scrollbar { height: 6px; }
.journey__scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.journey svg { display: block; min-width: 660px; width: 100%; height: auto; }
.journey__hint { font-size: var(--fs-xs); color: var(--ink-3); margin-top: .75rem; }
.journey__swipe { display: none; font-weight: 700; color: var(--gold-ink); }
@media (max-width: 780px) { .journey__swipe { display: inline; } }

.j-node { cursor: pointer; }
.j-node .j-ring { transition: transform 260ms var(--ease), fill 260ms var(--ease); transform-box: fill-box; transform-origin: center; }
.j-node:hover .j-ring, .j-node:focus-visible .j-ring { transform: scale(1.12); }
.j-node:focus-visible { outline: none; }
.j-node:focus-visible .j-ring { stroke: #8A6A2F; stroke-width: 3; }
.j-label { font-family: var(--sans); font-size: 14px; font-weight: 800; fill: #122236; }
.j-sub { font-family: var(--sans); font-size: 12px; fill: #6B7280; }
.j-step { font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: .14em; fill: #8A6A2F; }
.j-count { font-family: var(--serif); font-size: 15px; font-weight: 700; fill: #fff; }
.j-phase { font-family: var(--sans); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; fill: #6B7280; }

.j-path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.j-path--progress {
  fill: none; stroke: url(#jGrad); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  animation: drawPath 1500ms var(--ease) 200ms forwards;
}
@keyframes drawPath { to { stroke-dashoffset: 0; } }
.j-pop { opacity: 0; animation: jPop 460ms var(--ease) forwards; }
@keyframes jPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .j-path--progress { animation: none; stroke-dashoffset: 0; }
  .j-pop { opacity: 1; animation: none; }
}

/* Print — the roadmap must print cleanly.
   This is also the fallback "Download PDF" path when jsPDF is unavailable,
   so everything that is not the roadmap itself is removed. */
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .cookie-banner, .mobile-menu, .btn, .chip,
  .skip-link, .breadcrumbs, .page-hero, .cta-band,
  [data-wizard-panel], [data-download-gate], [data-download-unlocked],
  [data-resume-notice], .callout--quiet, .no-print, .journey__swipe { display: none !important; }
  .print-only { display: block; margin-bottom: 1.25rem; padding-bottom: .5rem;
                border-bottom: 2px solid #CFAC6C; }
  .print-only strong { font-size: 12pt; }
  .print-only p { font-size: 8.5pt; color: #555; margin: 0; }
.journey { border: 1px solid #ddd !important; break-inside: avoid; }
  .journey__scroll { overflow: visible !important; }
  .journey svg { min-width: 0 !important; }
  .roadmap__group { border: 1px solid #ddd !important; margin-bottom: 12pt; }
  .roadmap__group-head { background: #f5f2ec !important; }
  .badge { border: 1px solid #ccc; }
  body { background: #fff; font-size: 11pt; }
  .section { padding-block: 1rem; }
  .card, .roadmap__group { break-inside: avoid; box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}
