/* Fortevere Capital Partners — site.css
   Identidade preservada do site anterior: navy, midnight, ivory, gold, graphite;
   Cormorant Garamond + Inter. Tamanhos mínimos e contraste revistos. */

@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #142640;
  --midnight: #0b1727;
  --ivory: #f4f1ea;
  --paper: #fbfaf7;
  --gold: #ad9a75;
  --gold-ink: #8a7650; /* gold for text on light bg (AA) */
  --graphite: #32383f;
  --muted: #5b626b;
  --line: rgba(20, 38, 64, 0.12);
  --line-strong: rgba(20, 38, 64, 0.22);
  --gold-line: rgba(173, 154, 117, 0.55);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; }
::selection { background: rgba(173, 154, 117, 0.35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--ivory); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--navy); }
.display-xl, .display-lg, .display-md, .prose h2, .icard__title, .arow__title, .mcard h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; }
.display-xl { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; }
.display-lg { font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.1; }
.display-md { font-size: clamp(1.7rem, 2.8vw, 2.35rem); line-height: 1.16; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.7; color: var(--graphite); margin: 0; }
p { margin: 0 0 1em; }

.eyebrow, .h-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 1.25rem;
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.h-label--spaced { margin-top: 2.5rem; }
.muted { color: var(--muted); }
.fineprint { font-size: 0.84rem; line-height: 1.6; color: var(--muted); margin-top: 1.5rem; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.85rem 1.6rem;
  background: var(--navy); color: var(--ivory); border: 1px solid var(--navy);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--midnight); }
.btn--light { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { background: transparent; color: var(--ivory); border-color: rgba(244, 241, 234, 0.45); }
.btn--ghost-light:hover { border-color: var(--ivory); background: transparent; }
.btn--sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: 0.74rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; padding: 0.4rem 0; border-bottom: 1px solid var(--gold-line);
}
.textlink:hover { border-color: var(--navy); }
.textlink--light { color: var(--ivory); border-color: rgba(244, 241, 234, 0.4); }
.textlink--light:hover { border-color: var(--ivory); }
.arrow { flex: none; transition: transform 0.3s var(--ease); }
a:hover > .arrow { transform: translateX(3px); }
.linklike { text-align: left; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* ---------- logo ---------- */
.logo { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--navy); line-height: 1; }
.logo__word { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: 0.24em; }
.logo__sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.36em; color: var(--gold-ink); padding-left: 1px; }
.logo--light { color: var(--ivory); }
.logo--light .logo__sub { color: var(--gold); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244, 241, 234, 0.94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.nav__list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav__link { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--graphite); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.nav__link:hover, .nav__link.is-active { color: var(--navy); border-color: var(--gold); }
.nav__lang a { display: inline-flex; gap: 6px; font-size: 0.78rem; letter-spacing: 0.1em; text-decoration: none; color: var(--muted); padding: 6px 0 6px 18px; border-left: 1px solid var(--line-strong); }
.nav__lang .is-on { color: var(--navy); font-weight: 600; }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px;
    background: none; border: 0; color: var(--navy); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  }
  .nav__toggle-icon, .nav__toggle-icon::before { display: block; width: 20px; height: 1px; background: currentColor; position: relative; transition: transform 0.3s var(--ease); }
  .nav__toggle-icon::before { content: ''; position: absolute; top: 6px; }
  .nav__toggle[aria-expanded='true'] .nav__toggle-icon { transform: translateY(3px) rotate(45deg); }
  .nav__toggle[aria-expanded='true'] .nav__toggle-icon::before { transform: translateY(-6px) rotate(-90deg); }
  .nav__list {
    position: fixed; inset: 76px 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); padding: 16px var(--gutter) 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .js .nav__list.is-open { visibility: visible; opacity: 1; transform: none; }
  html:not(.js) .nav__list { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; flex-wrap: wrap; padding: 0; gap: 12px; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { display: block; padding: 18px 0; font-family: var(--serif); font-size: 1.6rem; text-transform: none; letter-spacing: 0; border: 0; }
  .nav__lang a { border: 0; padding: 18px 0; font-size: 0.9rem; }
  html:not(.js) .nav__toggle { display: none; }
}
body.nav-open { overflow: hidden; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--white { background: var(--paper); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section__head--row > div { max-width: 760px; }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split + .steps, .split + .presence { margin-top: clamp(48px, 6vw, 72px); }
.prose-block > * + * { margin-top: 1.25rem; }
.prose-block .textlink { margin-top: 1.75rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--ivory); padding: clamp(96px, 14vw, 176px) 0 clamp(88px, 12vw, 152px); }
.hero__inner { position: relative; z-index: 1; }
.hero__title { color: var(--ivory); max-width: 15ch; }
.hero__body { color: rgba(244, 241, 234, 0.82); max-width: 56ch; margin-top: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 2.75rem; }
.hero__map { position: absolute; right: -6%; bottom: -8%; width: min(980px, 92vw); opacity: 0.8; pointer-events: none; }

.page-hero { padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.page-hero__body { padding-bottom: 0.4rem; }
.page-hero .actions { display: flex; gap: 24px; align-items: center; margin-top: 2rem; flex-wrap: wrap; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

.subnav { position: sticky; top: 76px; z-index: 30; background: var(--ivory); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 16px 0; white-space: nowrap; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-decoration: none; color: var(--muted); }
.subnav a:hover, .subnav a.is-current { color: var(--navy); }
[id] { scroll-margin-top: 140px; }

/* ---------- expertise rows ---------- */
.arows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.arow a {
  display: grid; grid-template-columns: 64px minmax(220px, 4fr) 6fr 24px; align-items: baseline; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background 0.3s var(--ease);
}
.arow a:hover { background: linear-gradient(90deg, rgba(173, 154, 117, 0.08), transparent 70%); }
.arow__num { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; color: var(--gold-ink); }
.arow__title { font-size: clamp(1.5rem, 2.3vw, 2rem); color: var(--navy); line-height: 1.15; }
.arow__short { color: var(--muted); }
.arow .arrow { color: var(--navy); align-self: center; }
@media (max-width: 760px) {
  .arow a { grid-template-columns: 40px 1fr 20px; row-gap: 6px; }
  .arow__short { grid-column: 2 / 3; }
  .arow .arrow { grid-row: 1; grid-column: 3; }
}

/* ---------- principles / steps ---------- */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--gold-line); }
.principles li { padding: 32px 28px 8px 0; }
.principles li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.principles__n, .steps__n { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; color: var(--gold-ink); margin-bottom: 18px; }
.principles h3, .steps h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; margin-bottom: 12px; }
.principles p, .steps p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.principles--compact { margin-top: clamp(48px, 6vw, 72px); }
.principles--compact h3 { font-size: 1.3rem; }
@media (max-width: 960px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principles li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 32px 32px 0 0; border-top: 1px solid var(--navy); position: relative; }
.steps li + li { padding-left: 32px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding: 28px 0; } }

.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 2.25rem; }
.groups h3 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1rem; padding-top: 1rem; border-top: 1px solid var(--gold-line); }
@media (max-width: 560px) { .groups { grid-template-columns: 1fr; } }
.dash { list-style: none; margin: 0; padding: 0; }
.dash li { position: relative; padding-left: 26px; margin: 0 0 0.6rem; }
.dash li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 14px; height: 1px; background: var(--gold); }
.dash--lg li { padding: 0.85rem 0 0.85rem 26px; margin: 0; border-bottom: 1px solid var(--line); }
.dash--lg li::before { top: 1.65em; }
.offices { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }

.situations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.situations li { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.35; color: var(--navy); padding: 24px 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .situations { grid-template-columns: 1fr; } }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; gap: 32px; } }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.linklist a:hover { color: var(--gold-ink); }
.linklist--quiet a { color: var(--muted); }
.plain { list-style: none; margin: 0; padding: 0; }

/* ---------- presence map ---------- */
.presence { display: grid; grid-template-columns: minmax(0, 8fr) minmax(240px, 3fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.presence--compact { grid-template-columns: 1fr; }
.presence__map { margin: 0; position: relative; aspect-ratio: 1000 / 458; }
.presence__map svg { width: 100%; height: 100%; overflow: visible; }
.arc { stroke: var(--gold); stroke-width: 1; stroke-linecap: round; opacity: 0.7; }
.tip { stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0.85; }
.route--axis .arc { stroke-width: 1.7; opacity: 1; }
.route--axis .tip { stroke-width: 1.6; opacity: 1; }
.js .arc { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); transition-delay: calc(var(--i) * 0.12s); }
.js .tip { opacity: 0; transition: opacity 0.4s ease; transition-delay: calc(var(--i) * 0.12s + 1.2s); }
.js .is-drawn .arc { stroke-dashoffset: 0; }
.js .is-drawn .tip { opacity: 0.85; }
.js .is-drawn .route--axis .tip { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .arc { stroke-dashoffset: 0; transition: none; } .js .tip { opacity: 0.85; transition: none; } }
.node__ring { fill: var(--paper); stroke: var(--navy); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.section:not(.section--white) .node__ring { fill: var(--ivory); }
.node__dot { fill: var(--gold); }
.node__halo { fill: var(--gold); opacity: 0.18; }
.map-label { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--muted); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.section:not(.section--white) .map-label { stroke: var(--ivory); }
.map-label--office { font-size: 15px; font-weight: 600; fill: var(--navy); }
@media (max-width: 640px) { .map-label { font-size: 24px; stroke-width: 8px; } .map-label--office { font-size: 28px; } .arc { stroke-width: 2.4; } .route--axis .arc { stroke-width: 3.6; } }
.presence__legend { list-style: none; display: flex; gap: 32px; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.presence__legend li { display: inline-flex; align-items: center; gap: 10px; }
.lg { display: inline-block; }
.lg--office { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(173, 154, 117, 0.2); }
.lg--link { width: 22px; height: 1px; background: var(--gold); position: relative; }
.lg--link::after { content: ''; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: rotate(45deg); transform-origin: center; }
.presence { display: block; }
@media (max-width: 960px) { .presence { grid-template-columns: 1fr; } }

/* ---------- markets ---------- */
.mgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mcard { display: flex; flex-direction: column; height: 100%; min-height: 260px; padding: 32px; background: var(--paper); text-decoration: none; transition: background 0.3s var(--ease); }
.mcard:hover { background: #fff; }
.mcard h2 { font-size: 1.75rem; line-height: 1.15; margin-bottom: 14px; }
.mcard p { color: var(--muted); margin: 0; }
.mcard__foot { margin-top: auto; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }

/* ---------- insight cards ---------- */
.igrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
@media (max-width: 960px) { .igrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .igrid { grid-template-columns: 1fr; } }
.icard { padding: 28px 0 36px; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; }
.icard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.icard__meta a { text-decoration: none; }
.icard__meta span { color: var(--muted); }
.icard__title { font-size: 1.55rem; line-height: 1.2; margin-bottom: 12px; }
.icard__title a { text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.35s var(--ease); }
.icard__title a:hover { background-size: 100% 1px; }
.icard__sub { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--graphite); }
.icard__summary { color: var(--muted); font-size: 0.95rem; }
.icard__foot { margin-top: auto; display: flex; gap: 16px; font-size: 0.8rem; color: var(--muted); }
.icard--big { padding: 36px 0 44px; }
.icard--big .icard__title { font-size: clamp(2rem, 3.4vw, 2.75rem); max-width: 22ch; }
.icard--big .icard__summary { font-size: 1.05rem; max-width: 70ch; }
.featured { margin-bottom: 32px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 48px; }
.filters input, .filters select { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--graphite); font: inherit; font-size: 0.92rem; border-radius: 0; }
.filters input { flex: 1 1 260px; }

/* ---------- article ---------- */
.preview-bar { background: var(--gold); color: var(--midnight); text-align: center; padding: 10px; font-size: 0.85rem; font-weight: 600; }
.article__head { padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.article__sub { margin-top: 1.25rem; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); font-style: italic; line-height: 1.35; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 2rem; font-size: 0.85rem; color: var(--muted); }
.article__grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; padding-top: 56px; padding-bottom: 88px; justify-content: center; }
.article__toc nav { position: sticky; top: 108px; }
.article__toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.article__toc li { counter-increment: t; border-top: 1px solid var(--line); }
.article__toc a { display: block; padding: 10px 0; font-size: 0.86rem; line-height: 1.4; color: var(--muted); text-decoration: none; }
.article__toc a::before { content: counter(t, decimal-leading-zero) '  '; color: var(--gold-ink); font-size: 0.75rem; }
.article__toc a:hover, .article__toc a.is-current { color: var(--navy); }
@media (max-width: 1000px) { .article__grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .article__toc { display: none; } }

.prose { font-size: 1.06rem; line-height: 1.78; }
.prose h2 { font-size: clamp(1.65rem, 2.4vw, 2.05rem); line-height: 1.2; margin: 3.25rem 0 1.25rem; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.prose h2.h-label { font-family: var(--sans); font-size: 0.75rem; margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose ul li::marker { color: var(--gold); }
.prose a { color: var(--navy); text-decoration-color: var(--gold); }
.prose blockquote { margin: 2rem 0; padding: 0 0 0 24px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; color: var(--navy); }
.prose blockquote cite { display: block; margin-top: 0.75rem; font-family: var(--sans); font-size: 0.8rem; font-style: normal; color: var(--muted); }
.summary { padding: 28px 32px; background: var(--paper); border-top: 2px solid var(--navy); margin-bottom: 2rem; }
.summary p { margin: 0; }
.takeaways { margin-bottom: 1rem; }
.takeaways ul { list-style: none; padding: 0; }
.takeaways li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); margin: 0; }
.takeaways li::before { content: ''; position: absolute; left: 0; top: 1.45em; width: 14px; height: 1px; background: var(--gold); }
.callout { margin: 2rem 0; padding: 22px 26px; background: rgba(173, 154, 117, 0.1); border-left: 2px solid var(--gold); font-size: 0.98rem; }
.callout__title { font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.callout p:last-child { margin: 0; }
.endnote { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.endnote--quiet { border-color: var(--line); }
.refs { font-size: 0.92rem; }
.refs span { color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.share .h-label { margin: 0; }
.inline-image { margin: 2rem 0; }
.inline-image figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* visuals */
.visual { margin: 2.5rem 0; padding: 28px 0 8px; border-top: 1px solid var(--navy); }
.visual__title { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--navy); }
.visual__caption { font-size: 0.92rem; color: var(--muted); margin: 0.4rem 0 1.25rem; }
.visual__flag { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); border: 1px solid var(--gold-line); padding: 3px 8px; margin-bottom: 1rem; }
.visual__meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 1.25rem 0 0; font-size: 0.8rem; color: var(--muted); }
.visual__meta dt { font-weight: 600; }
.visual__meta dd { margin: 0; }
.vtable { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vtable table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; min-width: 520px; }
.vtable th, .vtable td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.vtable thead th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); border-bottom-color: var(--line-strong); }
.vtable tbody th { font-weight: 600; color: var(--navy); }
.vchart svg { width: 100%; }
.vchart .grid { stroke: var(--line); }
.vchart .axis { stroke: var(--navy); stroke-width: 1; }
.vchart .tick, .vchart .val { font-family: var(--sans); font-size: 12px; fill: var(--muted); }
.vchart .val { fill: var(--navy); font-weight: 600; }
.vchart .bar--0, .sw--0 { fill: var(--navy); background: var(--navy); }
.vchart .bar--1, .sw--1 { fill: var(--gold); background: var(--gold); }
.vchart .bar--2, .sw--2 { fill: #7d8a9c; background: #7d8a9c; }
.vchart .line { fill: none; stroke-width: 2; }
.vchart .line--0 { stroke: var(--navy); } .vchart .pt--0 { fill: var(--navy); }
.vchart .line--1 { stroke: var(--gold); } .vchart .pt--1 { fill: var(--gold); }
.vchart__legend { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0 0 8px; font-size: 0.85rem; }
.vchart__legend .sw { display: inline-block; width: 10px; height: 10px; margin-right: 8px; }
.vchart__axis { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 4px 0 0; }
.vtimeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--line-strong); }
.vtimeline__item { position: relative; padding: 0 0 22px; }
.vtimeline__item::before { content: ''; position: absolute; left: -27px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--navy); }
.vtimeline__item.is-in_force::before { background: var(--gold); border-color: var(--gold); }
.vtimeline__date { font-size: 0.8rem; font-weight: 600; color: var(--gold-ink); margin: 0 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vtimeline h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.vtimeline p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.badge { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--line-strong); color: var(--muted); }
.vprocess { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; }
.vprocess li { padding: 18px 18px 18px 0; border-top: 2px solid var(--navy); }
.vprocess li + li { border-top-color: var(--line-strong); }
.vprocess__n { font-size: 0.75rem; font-weight: 600; color: var(--gold-ink); }
.vprocess h4 { font-size: 0.98rem; font-weight: 600; margin: 6px 0; }
.vprocess p { font-size: 0.86rem; color: var(--muted); margin: 0; line-height: 1.5; }
.vrel__head, .vrel__row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 16px; align-items: center; }
.vrel__head { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); padding-bottom: 8px; }
.vrel__row { padding: 12px 0; border-top: 1px solid var(--line); }
.vrel__node { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.vrel__node--r { text-align: right; }
.vrel__link { position: relative; text-align: center; font-size: 0.82rem; color: var(--muted); padding: 0 8px; }
.vrel__link::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--gold); z-index: -1; }
.vrel__link span { background: var(--ivory); padding: 0 6px; }
@media (max-width: 640px) { .vrel__head { display: none; } .vrel__row { grid-template-columns: 1fr; gap: 4px; } .vrel__node--r { text-align: left; } .vrel__link { text-align: left; padding: 0; } .vrel__link::before { display: none; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--ivory); padding: clamp(72px, 9vw, 120px) 0; }
.cta-band__inner { max-width: 820px; }
.cta-band h2 { color: var(--ivory); }
.cta-band .lede { color: rgba(244, 241, 234, 0.78); margin: 1.25rem 0 2.25rem; max-width: 60ch; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line-strong); margin-bottom: 36px; }
.tabs button { background: none; border: 0; padding: 14px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected='true'] { color: var(--navy); border-color: var(--navy); }
html:not(.js) .tabs { display: none; }
html:not(.js) .form[hidden] { display: grid; margin-top: 64px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--graphite);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 0; transition: border-color 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20, 38, 64, 0.08); }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.field--check label { font-weight: 400; color: var(--graphite); font-size: 0.9rem; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #a23b2a; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { margin: 0; font-size: 0.9rem; color: #a23b2a; }
.form .fineprint { margin: 0; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.contact__aside > div { padding: 24px 0; border-top: 1px solid var(--line); }
.contact__aside > div:first-child { border-top: 2px solid var(--navy); }
.contact__aside p, .contact__aside li { font-size: 0.95rem; color: var(--graphite); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--midnight); color: rgba(244, 241, 234, 0.78); padding: clamp(64px, 8vw, 96px) 0 32px; font-size: 0.92rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(244, 241, 234, 0.14); }
.site-footer__desc { margin: 24px 0 0; max-width: 42ch; }
.site-footer__tagline { margin-top: 16px; font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--gold); }
.site-footer__title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: 10px; }
.site-footer__list a, .site-footer .linklike { text-decoration: none; color: rgba(244, 241, 234, 0.85); }
.site-footer__list a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.site-footer__base { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; font-size: 0.8rem; color: rgba(244, 241, 234, 0.55); }
.site-footer__base p { margin: 0; max-width: 70ch; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } .site-footer__base { flex-direction: column; } }

/* ---------- consent ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__inner { pointer-events: auto; max-width: 880px; width: 100%; background: var(--midnight); color: rgba(244, 241, 234, 0.85); padding: 18px 22px; display: flex; align-items: center; gap: 20px 28px; box-shadow: 0 12px 40px rgba(11, 23, 39, 0.25); font-size: 0.88rem; }
.consent__inner p { margin: 0; flex: 1; }
.consent__inner strong { color: var(--ivory); }
.consent__inner a { color: var(--gold); }
.consent__actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 640px) { .consent__inner { flex-direction: column; align-items: stretch; } .consent__actions .btn { flex: 1; } }

/* ---------- reveal (once, subtle) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

@media print {
  .site-header, .site-footer, .cta-band, .consent, .share, .article__toc, .subnav { display: none !important; }
  body { background: #fff; }
  .article__grid { display: block; padding: 0; }
}

/* hidden attribute must win over component display rules */
.js [hidden] { display: none !important; }

.contact__email { font-family: var(--serif); font-size: 1.45rem; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold-line); }
.contact__email:hover { border-color: var(--navy); }
.contact__aside p + p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
