/* Capifrance Dordogne & Lot - Live_v1.0.3 */
/* Capifrance Dordogne & Lot — Live_v1.0.1 */
/* V8 corrigée - changement 7 : conformité à la marque Capifrance. */
:root {
  --blue: #0093f7;
  --blue-light: #85ceff;
  --yellow: #fdc41f;
  --blue-action: #082e4f;
  --blue-action-dark: #082e4f;
  --navy: #082e4f;
  --navy-2: #082e4f;
  --ink: #082e4f;
  --muted: rgba(8, 46, 79, 0.72);
  --brume: #f2ecea;
  --stone: #f2ecea;
  --stone-soft: #f8f5f4;
  --mist: #f7fbfe;
  --white: #ffffff;
  --luxury-gold: #c0a176;
  --success: #1c7554;
  --danger: #a23434;
  --line: rgba(8, 46, 79, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 24px 70px rgba(8, 46, 79, 0.12);
  --shadow-card: 0 16px 44px rgba(8, 46, 79, 0.1);
  --radius-sm: 20px;
  --radius-md: 22px;
  --radius-lg: 24px;
  --container: 1240px;
  --header-height: 84px;
  --announcement-height: 39px;
  --font-sans: "Montserrat", "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-editorial: "Montserrat", "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--blue);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5.8rem);
}

h2 {
  font-size: clamp(2.15rem, 4.5vw, 4.45rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1.25rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

::selection {
  background: rgba(0, 147, 247, 0.2);
  color: var(--navy-2);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(calc(100% - 40px), 860px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 136px);
}

.section--compact {
  padding-block: clamp(54px, 7vw, 92px);
}

.section--mist {
  background: var(--mist);
}

.section--stone {
  background: var(--stone-soft);
}

.section--navy {
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy::before {
  position: absolute;
  inset: -45% auto auto -14%;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  content: "";
  transform: rotate(28deg);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.section-header > :last-child {
  max-width: 580px;
  justify-self: end;
}

.section-header h2 {
  max-width: 850px;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--blue-action);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

.section--navy .eyebrow,
.hero--dark .eyebrow {
  color: #85ceff;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.58;
}

.section--navy .lede,
.hero--dark .lede {
  color: rgba(255, 255, 255, 0.72);
}

.editorial {
  font-family: var(--font-editorial);
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.035em;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 220ms var(--ease);
}

.text-link:hover::after {
  transform: translateX(5px);
}

.section--navy .text-link {
  color: var(--white);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--blue-action);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(8, 46, 79, 0.2);
  transition: transform 240ms var(--ease), background-color 240ms ease, box-shadow 240ms ease;
}

.button:hover {
  background: var(--blue-action-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(8, 46, 79, 0.26);
}

.button::after {
  content: "↗";
  font-size: 1.02em;
}

.button--secondary {
  border-color: rgba(8, 46, 79, 0.24);
  background: transparent;
  color: var(--navy);
  box-shadow: none;
}

.button--secondary:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}

.button--light {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.button--light:hover {
  background: var(--blue-light);
  color: var(--navy);
}

.button--ghost-light {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
  box-shadow: none;
}

.button--ghost-light:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.button--small {
  min-height: 46px;
  padding: 10px 18px;
  font-size: 0.88rem;
}

.button--small::after,
.button--submit::after {
  content: "→";
}

.site-announcement {
  padding: 9px 20px;
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-align: center;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 34px rgba(8, 46, 79, 0.06);
}

.header-inner {
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand {
  display: block;
  width: clamp(198px, 15vw, 226px);
  padding: 8px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 100%;
  height: auto;
}

.brand--footer {
  width: min(100%, 300px);
  padding: 10px;
}

.primary-nav {
  justify-self: center;
}

.primary-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  align-items: center;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--mist);
  color: var(--blue-action);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.language-switcher {
  position: relative;
}

.language-switcher > button {
  display: inline-flex;
  min-width: 54px;
  min-height: 46px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: 210px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  list-style: none;
  box-shadow: var(--shadow-card);
}

.language-switcher.is-open .language-menu {
  display: grid;
}

.language-menu a,
.language-menu span {
  display: flex;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: space-between;
  font-size: 0.87rem;
  text-decoration: none;
}

.language-menu a:hover {
  background: var(--mist);
}

.language-menu [aria-current="page"] {
  color: var(--blue-action);
  font-weight: 800;
}

.language-menu .is-coming {
  color: #8a959e;
}

.language-menu small {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-panel {
  display: none;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
  content: "";
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-open .nav-toggle span {
  opacity: 0;
}

.nav-open .nav-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height) - var(--announcement-height));
  overflow: hidden;
  padding-block: clamp(30px, 5.2vh, 48px);
  align-items: center;
  background:
    radial-gradient(circle at 16% 15%, rgba(0, 147, 247, 0.12), transparent 34%),
    linear-gradient(180deg, #f9fbfc 0%, #ffffff 68%);
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(8, 46, 79, 0.08);
  border-radius: var(--radius-lg);
  content: "";
  transform: rotate(32deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.82fr);
  gap: clamp(34px, 4.5vw, 76px);
  align-items: center;
}

.hero-copy h1 {
  max-width: 900px;
  margin-bottom: clamp(16px, 2.2vh, 24px);
  text-wrap: balance;
  font-size: clamp(3rem, min(4.5vw, 6.4vh), 4.9rem);
  line-height: 0.98;
}

.hero-copy .lede {
  max-width: 660px;
  margin-bottom: clamp(18px, 2.6vh, 28px);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust span::before {
  width: 8px;
  height: 8px;
  border: 2px solid var(--blue);
  border-radius: var(--radius-sm);
  content: "";
}

.hero-visual {
  position: relative;
  min-height: min(56vh, 530px);
}

.hero-photo {
  position: absolute;
  inset: 0 0 44px 48px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--stone);
  box-shadow: var(--shadow-soft);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 46, 79, 0.62));
  content: "";
}

.hero-photo-caption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
  color: var(--white);
  font-family: var(--font-editorial);
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  font-style: normal;
  font-weight: 300;
  line-height: 1.2;
}

.hero-card {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  width: min(306px, 72%);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.hero-card-label {
  margin-bottom: 14px;
  color: var(--blue-action);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 1.06rem;
}

.hero-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.hero-stat {
  position: absolute;
  z-index: 4;
  top: 20px;
  right: -6px;
  display: grid;
  width: 158px;
  min-height: 112px;
  padding: 18px;
  border-radius: var(--radius-lg);
  align-content: end;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.hero-stat strong {
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-stat span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
}

.hero--inner {
  padding-block: clamp(28px, 4.8vh, 44px);
}

.hero--inner .hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.72fr);
}

.hero--inner .hero-copy h1 {
  font-size: clamp(2.5rem, min(3.8vw, 5.5vh), 4rem);
  line-height: 0.99;
}

article > .hero--inner {
  min-height: calc(100svh - var(--header-height) - var(--announcement-height) - 50px);
}

article > .hero--inner .hero-copy h1 {
  font-size: clamp(2.15rem, min(3.15vw, 4.8vh), 3.45rem);
  line-height: 1.01;
}

article > .hero--inner .hero-copy .lede {
  font-size: clamp(0.96rem, min(1.12vw, 2vh), 1.08rem);
}

.hero--inner .hero-visual {
  min-height: min(51vh, 470px);
}

.hero--inner .hero-photo {
  inset: 0;
}

.hero--dark {
  background: var(--navy);
}

.hero--dark::after {
  border-color: rgba(255, 255, 255, 0.12);
}

.hero--dark h1 {
  color: var(--white);
}

.proof-band {
  position: relative;
  z-index: 4;
  margin-top: -42px;
}

.proof-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.proof-item {
  min-height: 154px;
  padding: 30px;
}

.proof-item + .proof-item {
  border-left: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  letter-spacing: -0.035em;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms ease;
}

.card:hover {
  border-color: rgba(8, 46, 79, 0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.card-body {
  padding: 30px;
}

.card-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--blue-action);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 15px;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.card .text-link {
  margin-top: 10px;
  font-size: 0.88rem;
}

.number-card {
  padding: 34px;
}

.number-card .number {
  display: inline-grid;
  width: 56px;
  height: 56px;
  margin-bottom: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  place-items: center;
  color: var(--blue-action);
  font-size: 0.75rem;
  font-weight: 800;
}

.number-card h3 {
  max-width: 300px;
}

.image-card {
  min-height: 470px;
}

.image-card picture,
.image-card img {
  width: 100%;
  height: 100%;
}

.image-card img {
  object-fit: cover;
  transition: transform 800ms var(--ease);
}

.image-card:hover img {
  transform: scale(1.035);
}

.image-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 30px;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 28%, rgba(8, 46, 79, 0.86));
  color: var(--white);
}

.image-card-overlay h3 {
  margin-bottom: 7px;
  color: var(--white);
}

.image-card-overlay p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.88fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.split--reverse > :first-child {
  order: 2;
}

.split-copy h2 {
  margin-bottom: 26px;
}

.split-copy .lede {
  margin-bottom: 30px;
}

.split-media {
  position: relative;
}

.split-media picture,
.split-media img {
  width: 100%;
}

.split-media img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.split-note {
  position: absolute;
  right: -24px;
  bottom: 34px;
  width: min(330px, 78%);
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.split-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
}

.check-list {
  display: grid;
  margin: 28px 0 34px;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue);
  border-radius: var(--radius-sm);
  content: "";
}

.check-list li::after {
  position: absolute;
  top: 0.55em;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid var(--blue-action);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.territory-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.7fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.territory-map {
  position: relative;
  min-height: 540px;
}

.territory-map picture {
  display: block;
  width: 100%;
  height: 100%;
}

.territory-map img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: contain;
  object-position: center;
}

.territory-list {
  display: grid;
  margin: 34px 0 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.territory-list a {
  display: flex;
  min-height: 64px;
  border-bottom: 1px solid var(--line-light);
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.territory-list a::after {
  content: "↗";
  transition: transform 220ms var(--ease);
}

.territory-list a:hover::after {
  transform: translate(4px, -4px);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.team-card {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  border-radius: var(--radius-lg);
  background: var(--navy);
}

.team-card picture,
.team-card img {
  width: 100%;
  height: 100%;
}

.team-card img {
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.88);
  transition: transform 700ms var(--ease), filter 350ms ease;
}

.team-card:hover img {
  filter: saturate(1);
  transform: scale(1.035);
}

.team-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(8, 46, 79, 0.96));
  content: "";
}

.team-card-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px;
  color: rgba(255, 255, 255, 0.72);
}

.team-card h3 {
  margin-bottom: 6px;
  color: var(--white);
}

.team-card p {
  margin-bottom: 18px;
  font-size: 0.82rem;
}

.team-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.team-card-links a {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 34px;
  gap: 10px;
}

.filter-button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.adviser-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.68fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.adviser-portrait {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--stone);
  box-shadow: var(--shadow-soft);
}

.adviser-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.adviser-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.tag {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-items: center;
  background: var(--white);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 750;
}

.process {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process li {
  display: grid;
  min-height: 170px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 86px minmax(0, 1fr) minmax(240px, 0.65fr);
  gap: 30px;
  align-items: start;
  counter-increment: process;
}

.process li::before {
  color: var(--blue-action);
  content: "0" counter(process);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.process h3 {
  margin-bottom: 0;
}

.process p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.quote-block {
  position: relative;
  padding: clamp(36px, 5vw, 68px);
  border-radius: var(--radius-lg);
  background: var(--stone-soft);
}

.quote-block blockquote {
  max-width: 900px;
  margin-bottom: 28px;
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: clamp(1.7rem, 3.4vw, 3.25rem);
  font-style: normal;
  font-weight: 300;
  line-height: 1.22;
}

.quote-block cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  display: grid;
  width: 100%;
  min-height: 86px;
  padding: 22px 0;
  border: 0;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  background: transparent;
  color: var(--navy);
  font-size: 1.03rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  color: var(--blue-action);
  font-size: 1.5rem;
  font-weight: 400;
}

.faq-item.is-open button::after {
  content: "−";
}

.faq-answer {
  display: none;
  max-width: 800px;
  padding: 0 0 28px;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.form-shell {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  grid-template-columns: minmax(270px, 0.48fr) minmax(0, 1fr);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.form-aside {
  padding: clamp(30px, 5vw, 58px);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}

.form-aside h2,
.form-aside h3 {
  color: var(--white);
}

.form-aside h2 {
  max-width: 100%;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  overflow-wrap: normal;
}

.form-aside ul {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.form-aside li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.87rem;
}

.form-main {
  padding: clamp(30px, 5vw, 64px);
}

.form-progress {
  display: grid;
  margin-bottom: 36px;
  grid-template-columns: repeat(var(--steps, 4), 1fr);
  gap: 8px;
}

.form-progress span {
  height: 6px;
  border-radius: var(--radius-sm);
  background: #dce3e8;
  transition: background-color 220ms ease;
}

.form-progress span.is-active,
.form-progress span.is-complete {
  background: var(--blue-action);
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: form-in 320ms var(--ease) both;
}

@keyframes form-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step > h2,
.form-step > h3 {
  margin-bottom: 12px;
}

.form-step-intro {
  margin-bottom: 28px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-grid--1 {
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #cbd4da;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-action);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(8, 46, 79, 0.12);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint {
  color: var(--muted);
  font-size: 0.75rem;
}

.field-error {
  min-height: 1.1em;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 650;
}

fieldset.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.field legend {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice label {
  display: grid;
  min-height: 90px;
  padding: 18px;
  border: 1px solid #cbd4da;
  border-radius: var(--radius-sm);
  align-content: center;
  color: var(--navy);
  font-weight: 750;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.choice label small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 500;
}

.choice input:checked + label {
  border-color: var(--blue-action);
  background: rgba(0, 147, 247, 0.07);
  transform: translateY(-2px);
}

.choice input:focus-visible + label {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.consent-list {
  display: grid;
  margin-top: 24px;
  gap: 15px;
}

.checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--blue-action);
}

.checkbox label {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.form-actions {
  display: flex;
  margin-top: 32px;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.form-actions .button[hidden] {
  display: none;
}

.form-status {
  display: none;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 650;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(28, 117, 84, 0.1);
  color: var(--success);
}

.form-status.is-error {
  background: rgba(162, 52, 52, 0.09);
  color: var(--danger);
}

.form-status.is-loading {
  background: rgba(8, 46, 79, 0.09);
  color: var(--blue-action-dark);
}

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

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.article-card-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.article-card:hover img {
  transform: scale(1.035);
}

.article-card-body {
  padding: 26px;
}

.article-card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-card h3 {
  margin-bottom: 14px;
}

.article-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 0.45fr);
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}

.article-content {
  color: #34414b;
  font-size: 1.02rem;
}

.article-content h2 {
  margin-top: 2.1em;
  margin-bottom: 0.65em;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
}

.article-content h3 {
  margin-top: 1.8em;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin-bottom: 1.45em;
}

.article-content blockquote {
  margin: 2.2em 0;
  padding: 26px 30px;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--mist);
  color: var(--navy);
  font-family: var(--font-editorial);
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 300;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  display: grid;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  gap: 16px;
  background: var(--white);
}

.article-aside p {
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.76rem;
}

.breadcrumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumbs li + li::before {
  margin-right: 8px;
  color: #9da8b0;
  content: "/";
}

.breadcrumbs a {
  text-decoration: none;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 7vw, 86px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}

.cta-panel::after {
  position: absolute;
  top: -170px;
  right: -130px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  content: "";
  transform: rotate(31deg);
}

.cta-panel-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.cta-panel h2 {
  max-width: 780px;
  margin-bottom: 18px;
  color: var(--white);
}

.cta-panel p {
  max-width: 650px;
  margin-bottom: 0;
}

.language-prompt {
  position: fixed;
  z-index: 1500;
  right: 20px;
  bottom: 20px;
  display: none;
  width: min(430px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.language-prompt.is-visible {
  display: block;
}

.language-prompt strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
}

.language-prompt p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.language-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.cookie-banner {
  position: fixed;
  z-index: 1600;
  right: 20px;
  bottom: 20px;
  display: none;
  width: min(480px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.cookie-banner p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.79rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  padding-block: 76px 28px;
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.65);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(250px, 1.1fr) repeat(3, minmax(150px, 0.55fr));
  gap: 52px;
  padding-bottom: 58px;
}

.footer-brand .brand {
  margin-bottom: 26px;
  width: min(100%, 300px);
}

.footer-brand p {
  max-width: 390px;
  font-size: 0.84rem;
}

.footer-column h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 11px;
  list-style: none;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  text-decoration: none;
}

.notice {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mist);
  color: var(--muted);
  font-size: 0.82rem;
}

.notice--important {
  border-color: rgba(8, 46, 79, 0.22);
  background: rgba(242, 236, 234, 0.72);
  color: var(--navy);
}

.legal-content {
  max-width: 860px;
}

.legal-content h2 {
  margin-top: 2em;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
}

.legal-content h3 {
  margin-top: 1.7em;
}

.legal-content p,
.legal-content li {
  color: #3f4b55;
}

.site-map-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.site-map-list section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.site-map-list h2 {
  font-size: 1.2rem;
}

.site-map-list ul {
  display: grid;
  margin: 0;
  gap: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] {
  transition-delay: 80ms;
}

[data-delay="2"] {
  transition-delay: 160ms;
}

[data-delay="3"] {
  transition-delay: 240ms;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

@media (min-width: 881px) and (max-height: 820px) {
  :root {
    --header-height: 72px;
    --announcement-height: 30px;
  }

  .site-announcement {
    padding-block: 6px;
    font-size: 0.68rem;
  }

  .header-inner {
    gap: 18px;
  }

  .brand {
    width: clamp(180px, 13vw, 205px);
  }

  .primary-nav a {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .language-switcher > button,
  .button--small {
    min-height: 42px;
  }

  .hero,
  .hero--inner {
    padding-block: 24px;
  }

  .hero-grid,
  .hero--inner .hero-grid {
    gap: clamp(28px, 3.5vw, 54px);
  }

  .hero-copy h1 {
    margin-bottom: 14px;
  }

  .hero-copy .lede {
    margin-bottom: 18px;
    line-height: 1.48;
  }

  .hero-visual {
    min-height: min(57vh, 470px);
  }

  .hero--inner .hero-visual {
    min-height: min(54vh, 420px);
  }

  .hero-photo-caption {
    font-size: clamp(1rem, 1.45vw, 1.35rem);
  }

  .hero .button {
    min-height: 46px;
    padding: 11px 19px;
    font-size: 0.88rem;
  }

  .hero-card {
    padding: 17px;
  }

  .hero-card-label {
    margin-bottom: 8px;
  }

  .hero-stat {
    width: 146px;
    min-height: 98px;
    padding: 16px;
  }

  .adviser-meta {
    gap: 8px;
    margin-top: 12px;
  }

  .tag {
    min-height: 34px;
    padding: 6px 11px;
    font-size: 0.7rem;
  }
}

@media (min-width: 881px) and (max-height: 730px) {
  :root {
    --header-height: 68px;
    --announcement-height: 0px;
  }

  .site-announcement {
    display: none;
  }

  .hero,
  .hero--inner {
    padding-block: 18px;
  }

  .hero-visual {
    min-height: min(58vh, 420px);
  }

  .hero--inner .hero-visual {
    min-height: min(56vh, 380px);
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, min(4vw, 6vh), 4.1rem);
  }

  .hero--inner .hero-copy h1 {
    font-size: clamp(2.25rem, min(3.35vw, 5.2vh), 3.45rem);
  }

  article > .hero--inner .hero-copy h1 {
    font-size: clamp(2rem, min(2.8vw, 4.5vh), 3rem);
  }

  .eyebrow {
    margin-bottom: 10px;
  }
}

@media (max-width: 1120px) {
  .split-note {
    right: 0;
  }

  .primary-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-actions {
    justify-self: end;
  }

  .mobile-panel {
    position: fixed;
    z-index: 990;
    top: calc(var(--header-height) + 33px);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 28px 20px 40px;
    overflow-y: auto;
    background: var(--white);
  }

  .nav-open .mobile-panel {
    display: block;
  }

  .mobile-panel nav ul {
    display: grid;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
  }

  .mobile-panel nav a {
    display: flex;
    min-height: 58px;
    border-bottom: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 750;
    text-decoration: none;
  }

  .mobile-panel nav a::after {
    content: "→";
  }

  .hero-grid,
  .hero--inner .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    gap: 48px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .team-grid,
  .card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1.2fr repeat(2, 0.7fr);
  }

  .footer-column:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 880px) {
  :root {
    --header-height: 75px;
    --announcement-height: 0px;
  }

  .site-announcement {
    display: none;
  }

  .mobile-panel {
    top: var(--header-height);
  }

  .header-actions .button {
    display: none;
  }

  .hero-grid,
  .hero--inner .hero-grid,
  .section-header,
  .split,
  .territory-grid,
  .adviser-hero,
  .article-layout,
  .cta-panel-inner {
    grid-template-columns: 1fr;
  }

  .section-header > :last-child {
    justify-self: start;
  }

  .hero,
  .hero--inner {
    min-height: calc(100svh - var(--header-height));
    padding-block: clamp(22px, 4vh, 34px);
  }

  article > .hero--inner {
    min-height: calc(100svh - var(--header-height) - 40px);
  }

  .hero-grid,
  .hero--inner .hero-grid {
    gap: clamp(18px, 3vh, 26px);
  }

  .hero-copy h1,
  .hero--inner .hero-copy h1 {
    margin-bottom: 12px;
    font-size: clamp(2.15rem, min(6.8vw, 5.4vh), 3.25rem);
    line-height: 1;
  }

  article > .hero--inner .hero-copy h1 {
    font-size: clamp(1.95rem, min(5.8vw, 4.8vh), 2.8rem);
    line-height: 1.02;
  }

  .hero-copy .lede,
  article > .hero--inner .hero-copy .lede {
    margin-bottom: 14px;
    font-size: clamp(0.92rem, 2.4vw, 1.04rem);
    line-height: 1.46;
  }

  .hero .button-row {
    gap: 9px;
  }

  .hero .button {
    min-height: 44px;
    padding: 9px 15px;
    font-size: 0.84rem;
  }

  .hero-visual,
  .hero--inner .hero-visual {
    min-height: clamp(210px, 28vh, 300px);
  }

  .hero-photo,
  .hero--inner .hero-photo {
    inset: 0;
  }

  .hero-photo-caption {
    right: 16px;
    bottom: 16px;
    left: 16px;
    font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  }

  .hero-card,
  .hero-stat {
    display: none;
  }

  .hero-trust {
    gap: 6px 12px;
    margin-top: 14px;
    font-size: 0.7rem;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-item + .proof-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .card-grid,
  .article-grid,
  .site-map-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split--reverse > :first-child {
    order: 0;
  }

  .split-media {
    max-width: 620px;
  }

  .process li {
    grid-template-columns: 58px 1fr;
  }

  .process p {
    grid-column: 2;
  }

  .form-shell {
    grid-template-columns: 1fr;
  }

  .form-aside {
    padding-bottom: 34px;
  }

  .article-aside {
    position: static;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .container,
  .container--narrow {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding-block: 70px;
  }

  .brand {
    width: 158px;
  }

  .language-switcher > button {
    min-width: 48px;
    padding-inline: 10px;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
  }

  .header-inner {
    gap: 10px;
  }

  .hero,
  .hero--inner {
    padding-block: 22px;
  }

  .hero-copy h1,
  .hero--inner .hero-copy h1 {
    font-size: clamp(2.05rem, 9.2vw, 2.75rem);
  }

  article > .hero--inner .hero-copy h1 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .hero-visual,
  .hero--inner .hero-visual {
    min-height: clamp(190px, 25vh, 230px);
  }

  .hero-photo,
  .hero--inner .hero-photo {
    inset: 0;
  }

  .hero-photo-caption {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .proof-band {
    margin-top: -22px;
  }

  .proof-item {
    min-height: auto;
    padding: 24px;
  }

  .card-grid,
  .card-grid--2,
  .card-grid--4,
  .team-grid,
  .article-grid,
  .site-map-list,
  .form-grid,
  .choice-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: 540px;
  }

  .split-note {
    right: 12px;
    bottom: 18px;
  }

  .territory-map,
  .territory-map picture,
  .territory-map img {
    min-height: 390px;
  }

  .process li {
    min-height: auto;
    grid-template-columns: 48px 1fr;
    gap: 18px;
  }

  .form-main,
  .form-aside {
    padding: 28px 22px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }

  .cta-panel-inner {
    align-items: start;
  }

  .footer-brand,
  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 620px) and (max-height: 760px) {
  .hero,
  .hero--inner {
    padding-block: 14px;
  }

  .hero-grid,
  .hero--inner .hero-grid {
    gap: 12px;
  }

  .hero-copy h1,
  .hero--inner .hero-copy h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.4rem);
  }

  article > .hero--inner .hero-copy h1 {
    font-size: clamp(1.7rem, 7.4vw, 2.1rem);
  }

  .hero-copy .lede,
  article > .hero--inner .hero-copy .lede {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .hero-visual,
  .hero--inner .hero-visual {
    min-height: 130px;
  }

  .hero-photo-caption {
    display: none;
  }
}

/* Viewport-fit final corrections */
@media (max-width: 1320px) {
  .split-note {
    right: 0;
  }
}

@media (max-width: 620px) {
  article > .hero--inner {
    min-height: calc(100svh - var(--header-height) - 86px);
  }
}

@media print {
  .site-announcement,
  .site-header,
  .site-footer,
  .cookie-banner,
  .language-prompt,
  .button-row,
  .form-shell {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding-block: 24px;
  }
}

/* V5 — viewport-fit system for editorial sections */
@media (min-width: 881px) {
  .section {
    padding-block: clamp(30px, 4.2vh, 48px);
    scroll-margin-top: calc(var(--header-height) + 1px);
  }

  .section--compact {
    padding-block: clamp(24px, 3.5vh, 40px);
  }

  .section-header {
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.52fr);
    gap: clamp(26px, 3.2vw, 46px);
    margin-bottom: clamp(22px, 3.4vh, 34px);
    align-items: end;
  }

  .section-header h2,
  .split-copy h2,
  .territory-grid h2,
  .cta-panel h2 {
    font-size: clamp(2.15rem, min(3.25vw, 5.35vh), 3.35rem);
    line-height: 1.02;
    text-wrap: balance;
  }

  .section-header .lede,
  .split-copy .lede,
  .territory-grid .lede {
    font-size: clamp(0.9rem, min(1vw, 1.75vh), 1.02rem);
    line-height: 1.48;
  }

  .section-header > :last-child {
    max-width: 520px;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 0.7rem;
  }

  .card-grid,
  .article-grid,
  .team-grid {
    gap: clamp(12px, 1.3vw, 18px);
  }

  .card-body {
    padding: clamp(17px, 1.5vw, 22px);
  }

  .card-kicker {
    margin-bottom: 9px;
    font-size: 0.62rem;
  }

  .card h3 {
    margin-bottom: 9px;
    font-size: clamp(1.05rem, 1.25vw, 1.28rem);
    line-height: 1.08;
  }

  .card p {
    margin-bottom: 10px;
    font-size: clamp(0.76rem, 0.82vw, 0.84rem);
    line-height: 1.45;
  }

  .card .text-link {
    margin-top: 4px;
    font-size: 0.78rem;
  }

  .number-card {
    padding: 22px;
  }

  .number-card .number {
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
  }

  .image-card {
    min-height: min(47vh, 390px);
  }

  .image-card-overlay {
    padding: 22px;
  }

  .process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .process li {
    display: grid;
    min-height: 0;
    padding: clamp(16px, 1.6vw, 22px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    background: var(--white);
  }

  .section--mist .process li,
  .section--stone .process li {
    background: rgba(255,255,255,.76);
  }

  .process li::before {
    padding-top: 3px;
    font-size: 0.68rem;
  }

  .process h3 {
    margin: 0 0 7px;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.12;
  }

  .process p {
    grid-column: 2;
    margin: 0;
    font-size: clamp(0.73rem, 0.78vw, 0.82rem);
    line-height: 1.42;
  }

  .split,
  .territory-grid,
  .adviser-hero {
    gap: clamp(34px, 5vw, 72px);
  }

  .split-copy h2 {
    margin-bottom: 16px;
  }

  .split-copy .lede {
    margin-bottom: 18px;
  }

  .check-list {
    margin: 18px 0 22px;
    gap: 9px;
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .check-list li {
    padding-left: 28px;
  }

  .check-list li::before {
    width: 16px;
    height: 16px;
  }

  .check-list li::after {
    top: .48em;
    left: 5px;
  }

  .split-media img {
    width: 100%;
    max-height: min(58vh, 500px);
    aspect-ratio: 4 / 3;
  }

  .split-note {
    right: 0;
    bottom: 18px;
    width: min(300px, 72%);
    padding: 18px;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .team-card {
    min-height: min(44vh, 370px);
  }

  .team-card-content {
    padding: 20px;
  }

  .team-card h3 {
    font-size: 1.25rem;
  }

  .team-card p {
    margin-bottom: 12px;
    font-size: 0.75rem;
  }

  .filters {
    margin-bottom: 20px;
  }

  .filter-button {
    min-height: 38px;
    padding: 7px 13px;
    font-size: 0.75rem;
  }

  .article-grid:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid:has(> :nth-child(2):last-child) .article-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.78fr) minmax(0, 1.22fr);
    min-height: min(39vh, 330px);
  }

  .article-grid:has(> :nth-child(2):last-child) .article-card-media {
    height: 100%;
    aspect-ratio: auto;
  }

  .article-card-body {
    padding: clamp(18px, 1.7vw, 24px);
  }

  .article-card-meta {
    margin-bottom: 9px;
    font-size: 0.62rem;
  }

  .article-card h3 {
    margin-bottom: 9px;
    font-size: clamp(1.05rem, 1.25vw, 1.28rem);
    line-height: 1.12;
  }

  .article-card p {
    margin-bottom: 9px;
    font-size: clamp(0.75rem, 0.78vw, 0.82rem);
    line-height: 1.42;
  }

  .article-card .card-kicker {
    margin-bottom: 5px;
  }

  .article-card .text-link {
    font-size: 0.76rem;
  }

  .territory-map,
  .territory-map picture,
  .territory-map img {
    min-height: min(50vh, 440px);
  }

  .territory-list {
    margin-top: 22px;
  }

  .territory-list a {
    min-height: 48px;
    font-size: 0.86rem;
  }

  .adviser-portrait img {
    max-height: min(62vh, 520px);
  }

  .quote-block {
    padding: clamp(28px, 3.5vw, 46px);
  }

  .quote-block blockquote {
    margin-bottom: 18px;
    font-size: clamp(1.45rem, min(2.6vw, 4.5vh), 2.5rem);
  }

  .faq-item button {
    min-height: 64px;
    padding: 15px 0;
    font-size: 0.92rem;
  }

  .faq-answer {
    padding-bottom: 18px;
    font-size: 0.86rem;
  }

  .cta-panel {
    padding: clamp(30px, 4.5vw, 56px);
  }

  .cta-panel-inner {
    gap: 28px;
  }

  .cta-panel h2 {
    margin-bottom: 10px;
  }

  .cta-panel p {
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .form-shell {
    grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  }

  .form-aside,
  .form-main {
    padding: clamp(22px, 2.6vw, 34px);
  }

  .form-aside h2 {
    font-size: clamp(1.65rem, min(2.3vw, 3.8vh), 2.35rem);
  }

  .form-aside p,
  .form-aside li {
    font-size: 0.76rem;
    line-height: 1.42;
  }

  .form-aside ul {
    margin-top: 18px;
    gap: 8px;
  }

  .form-aside li {
    padding-bottom: 8px;
  }

  .form-progress {
    margin-bottom: 22px;
  }

  .form-step > h2,
  .form-step > h3 {
    font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  }

  .form-step-intro {
    margin-bottom: 18px;
    font-size: 0.84rem;
  }

  .form-grid {
    gap: 13px;
  }

  .field {
    gap: 5px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 44px;
    padding: 10px 12px;
  }

  .field textarea {
    min-height: 92px;
  }

  .choice-grid {
    gap: 9px;
  }

  .choice label {
    min-height: 66px;
    padding: 12px;
    font-size: 0.82rem;
  }

  .consent-list {
    margin-top: 16px;
    gap: 10px;
  }

  .checkbox label {
    font-size: 0.69rem;
    line-height: 1.42;
  }

  .form-actions {
    margin-top: 20px;
  }

  .site-map-list {
    gap: 16px;
  }

  .site-map-list section {
    padding: 18px;
  }
}

@media (min-width: 881px) and (max-height: 780px) {
  .section {
    padding-block: 24px;
  }

  .section-header {
    margin-bottom: 18px;
  }

  .section-header h2,
  .split-copy h2,
  .territory-grid h2,
  .cta-panel h2 {
    font-size: clamp(1.95rem, min(2.9vw, 4.9vh), 2.85rem);
  }

  .team-card {
    min-height: min(42vh, 320px);
  }

  .image-card {
    min-height: min(43vh, 330px);
  }

  .split-media img {
    max-height: min(54vh, 420px);
  }

  .article-grid:has(> :nth-child(2):last-child) .article-card {
    min-height: min(37vh, 280px);
  }
}

/* V5.1 — landscape-tablet and short-laptop refinements */
@media (min-width: 881px) and (max-width: 1120px) {
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .team-grid:has(> :only-child) {
    grid-template-columns: minmax(240px, 310px);
  }

  .team-card {
    min-height: min(39vh, 300px);
  }

  .team-card-content {
    padding: 15px;
  }

  .team-card h3 {
    font-size: 1rem;
  }

  .team-card p {
    margin-bottom: 8px;
    font-size: 0.67rem;
    line-height: 1.32;
  }

  .team-card-links {
    gap: 6px 9px;
  }

  .team-card-links a {
    font-size: 0.64rem;
  }
}

@media (min-width: 881px) and (max-height: 730px) {
  .site-map-list {
    gap: 12px;
  }

  .site-map-list section {
    padding: 14px;
  }

  .site-map-list h2 {
    margin-bottom: 8px;
    font-size: 0.95rem;
  }

  .site-map-list ul {
    gap: 3px;
    font-size: 0.72rem;
    line-height: 1.3;
  }
}

/* V5 — chaptered long-form and legal content */
.article-chapter-layout {
  display: grid;
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}

.article-chapter-layout--lead {
  grid-template-columns: 76px minmax(0, 1fr) minmax(230px, 0.42fr);
}

.article-chapter-layout--plain {
  width: min(calc(100% - 40px), 1080px);
  grid-template-columns: 76px minmax(0, 1fr);
}

.article-chapter-number,
.legal-panel-number {
  align-self: start;
  color: var(--blue);
  font-size: clamp(2.4rem, 4.5vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.article-chapter-copy {
  max-width: 820px;
}

.article-chapter .article-content {
  color: #34414b;
  font-size: clamp(0.92rem, 1vw, 1.02rem);
  line-height: 1.58;
}

.article-chapter .article-content h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, min(3.2vw, 5vh), 3.35rem);
  line-height: 1.04;
  text-wrap: balance;
}

.article-chapter .article-content p,
.article-chapter .article-content ul,
.article-chapter .article-content ol {
  margin-bottom: 1.05em;
}

.article-preamble {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.02em;
}

.article-chapter .article-content blockquote {
  margin: 20px 0 0;
  padding: 18px 22px;
  font-size: clamp(1.15rem, 1.8vw, 1.48rem);
  line-height: 1.35;
}

.article-aside--chapter {
  position: static;
  top: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.article-aside--chapter .card-body {
  padding: clamp(20px, 2vw, 28px);
}

.legal-panel {
  display: grid;
  width: min(calc(100% - 40px), 1080px);
  grid-template-columns: 82px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

.legal-panel--with-notice {
  width: min(calc(100% - 40px), var(--container));
  grid-template-columns: 82px minmax(0, 0.92fr) minmax(260px, 0.48fr);
}

.legal-panel-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, min(3.4vw, 5.2vh), 3.5rem);
  text-wrap: balance;
}

.legal-panel-copy .lede {
  margin-bottom: 0;
  max-width: 760px;
}

.legal-panel-notice {
  align-self: center;
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (min-width: 881px) {
  .section:has(.site-map-list) {
    padding-block: 18px;
  }

  .site-map-list {
    gap: 12px;
  }

  .site-map-list section {
    padding: 14px 16px;
  }

  .site-map-list h2 {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .site-map-list ul {
    gap: 5px;
    font-size: 0.76rem;
    line-height: 1.35;
  }
}

@media (max-width: 1120px) and (min-width: 881px) {
  .article-chapter-layout--lead {
    grid-template-columns: 60px minmax(0, 1fr) minmax(210px, 0.42fr);
  }

  .article-chapter-layout--plain,
  .legal-panel {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .legal-panel--with-notice {
    grid-template-columns: 60px minmax(0, 1fr) minmax(230px, 0.44fr);
  }
}

@media (max-width: 880px) {
  .article-chapter-layout,
  .article-chapter-layout--lead,
  .article-chapter-layout--plain,
  .legal-panel,
  .legal-panel--with-notice {
    width: min(calc(100% - 40px), var(--container));
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .article-chapter-number,
  .legal-panel-number {
    font-size: 2rem;
  }

  .article-aside--chapter {
    max-width: 520px;
  }

  .legal-panel-notice {
    max-width: 620px;
  }
}

/* V5.2 — compact progressive forms on laptop-height viewports */
@media (min-width: 881px) and (max-height: 820px) {
  .section:has(.form-shell) {
    padding-block: 16px;
  }

  .section:has(.form-shell) .section-header {
    gap: 24px;
    margin-bottom: 12px;
  }

  .section:has(.form-shell) .section-header h2 {
    font-size: clamp(1.72rem, min(2.45vw, 4.15vh), 2.28rem);
    line-height: 1.02;
  }

  .section:has(.form-shell) .section-header .lede {
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .section:has(.form-shell) .eyebrow {
    margin-bottom: 6px;
    font-size: 0.62rem;
  }

  .form-shell {
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  }

  .form-aside,
  .form-main {
    padding: 18px 20px;
  }

  .form-aside h2 {
    margin-bottom: 8px;
    font-size: clamp(1.28rem, min(1.85vw, 3.25vh), 1.72rem);
    line-height: 1.06;
  }

  .form-aside p,
  .form-aside li {
    font-size: 0.68rem;
    line-height: 1.34;
  }

  .form-aside ul {
    margin-top: 12px;
    gap: 6px;
  }

  .form-aside li {
    padding-bottom: 6px;
  }

  .form-progress {
    margin-bottom: 12px;
  }

  .form-step > h2,
  .form-step > h3 {
    margin-bottom: 5px;
    font-size: clamp(1.18rem, min(1.65vw, 2.85vh), 1.5rem);
    line-height: 1.08;
  }

  .form-step-intro {
    margin-bottom: 10px;
    font-size: 0.76rem;
    line-height: 1.34;
  }

  .form-grid {
    gap: 9px;
  }

  .field {
    gap: 3px;
  }

  .field label,
  .field legend,
  fieldset.field legend {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  fieldset.field legend {
    margin-bottom: 7px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 40px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .field textarea {
    min-height: 68px;
  }

  .field-hint,
  .field-error {
    font-size: 0.64rem;
  }

  .field-error {
    min-height: 0.8em;
  }

  .choice-grid {
    gap: 7px;
  }

  .choice label {
    min-height: 54px;
    padding: 8px 10px;
    font-size: 0.75rem;
    line-height: 1.18;
  }

  .choice label small {
    margin-top: 3px;
    font-size: 0.65rem;
    line-height: 1.2;
  }

  .consent-list {
    margin-top: 10px;
    gap: 7px;
  }

  .checkbox {
    grid-template-columns: 18px 1fr;
    gap: 8px;
  }

  .checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
  }

  .checkbox label {
    font-size: 0.64rem;
    line-height: 1.34;
  }

  .form-actions {
    margin-top: 10px;
  }

  .form-actions .button {
    min-height: 44px;
    padding-block: 9px;
    font-size: 0.76rem;
  }

  .form-status {
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 0.72rem;
  }
}

@media (min-width: 881px) and (max-height: 730px) {
  .section:has(.form-shell) {
    padding-block: 10px;
  }

  .section:has(.form-shell) .section-header {
    gap: 20px;
    margin-bottom: 8px;
  }

  .section:has(.form-shell) .section-header h2 {
    font-size: clamp(1.55rem, min(2.2vw, 3.8vh), 2rem);
  }

  .section:has(.form-shell) .section-header .lede {
    font-size: 0.72rem;
    line-height: 1.32;
  }

  .form-aside,
  .form-main {
    padding: 14px 16px;
  }

  .form-aside h2 {
    font-size: clamp(1.16rem, min(1.7vw, 2.9vh), 1.48rem);
  }

  .form-aside p,
  .form-aside li {
    font-size: 0.62rem;
    line-height: 1.28;
  }

  .form-aside ul {
    margin-top: 9px;
    gap: 4px;
  }

  .form-aside li {
    padding-bottom: 4px;
  }

  .form-progress {
    margin-bottom: 8px;
  }

  .form-step > h2,
  .form-step > h3 {
    margin-bottom: 3px;
    font-size: clamp(1.08rem, min(1.5vw, 2.55vh), 1.32rem);
  }

  .form-step-intro {
    margin-bottom: 7px;
    font-size: 0.7rem;
    line-height: 1.28;
  }

  .form-grid {
    gap: 7px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 38px;
    padding: 6px 9px;
    font-size: 0.74rem;
  }

  .field textarea {
    min-height: 58px;
  }

  fieldset.field legend {
    margin-bottom: 5px;
  }

  .choice-grid {
    gap: 5px;
  }

  .choice label {
    min-height: 48px;
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .choice label small {
    margin-top: 2px;
    font-size: 0.61rem;
  }

  .consent-list {
    margin-top: 7px;
    gap: 5px;
  }

  .form-actions {
    margin-top: 7px;
  }
}

/* V5.2 — all form sections fit inside short desktop viewports */
@media (min-width: 881px) {
  .section:has(.form-shell) {
    padding-block: clamp(16px, 2.5vh, 28px);
  }

  .form-shell .field-error:empty {
    display: none;
  }
}

@media (min-width: 881px) and (max-height: 930px) {
  .section:has(.form-shell) {
    padding-block: 10px;
  }

  .form-shell {
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  }

  .form-aside,
  .form-main {
    padding: 16px 20px;
  }

  .form-aside .eyebrow {
    margin-bottom: 6px;
  }

  .form-aside h2 {
    margin-bottom: 8px;
    font-size: clamp(1.3rem, min(1.8vw, 3.2vh), 1.72rem);
    line-height: 1.04;
  }

  .form-aside p,
  .form-aside li {
    font-size: 0.68rem;
    line-height: 1.28;
  }

  .form-aside p {
    margin-bottom: 0;
  }

  .form-aside ul {
    margin-top: 10px;
    gap: 5px;
  }

  .form-aside li {
    padding-bottom: 5px;
  }

  .form-progress {
    margin-bottom: 10px;
    gap: 5px;
  }

  .form-progress span {
    height: 4px;
  }

  .form-step > h2,
  .form-step > h3 {
    margin-bottom: 4px;
    font-size: clamp(1.12rem, min(1.55vw, 2.9vh), 1.48rem);
    line-height: 1.08;
  }

  .form-step-intro {
    margin-bottom: 9px;
    font-size: 0.72rem;
    line-height: 1.32;
  }

  .form-grid {
    gap: 7px 12px;
  }

  .field {
    gap: 3px;
  }

  .field label,
  .field legend {
    font-size: 0.7rem;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .field textarea {
    min-height: 68px;
  }

  fieldset.field legend {
    margin-bottom: 6px;
    font-size: 0.7rem;
  }

  .choice-grid {
    gap: 6px 8px;
  }

  .choice label {
    min-height: 52px;
    padding: 8px 10px;
    font-size: 0.74rem;
    line-height: 1.15;
  }

  .choice label small {
    margin-top: 2px;
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .field-hint,
  .field-error {
    font-size: 0.65rem;
  }

  .consent-list {
    margin-top: 9px;
    gap: 6px;
  }

  .checkbox {
    gap: 7px;
  }

  .checkbox label {
    font-size: 0.62rem;
    line-height: 1.25;
  }

  .form-actions {
    margin-top: 10px;
  }

  .form-actions .button {
    min-height: 42px;
    padding-block: 8px;
    font-size: 0.74rem;
  }

  .form-status {
    margin-top: 8px;
    font-size: 0.7rem;
  }
}

@media (min-width: 881px) and (max-height: 730px) {
  .section:has(.form-shell) {
    padding-block: 6px;
  }

  .form-aside,
  .form-main {
    padding: 13px 18px;
  }

  .form-aside h2 {
    font-size: 1.28rem;
  }

  .form-aside p,
  .form-aside li {
    font-size: 0.64rem;
  }

  .form-aside ul {
    margin-top: 7px;
  }

  .form-progress {
    margin-bottom: 8px;
  }

  .form-step-intro {
    margin-bottom: 7px;
  }

  .form-grid {
    gap: 6px 10px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 40px;
    padding-block: 7px;
  }

  .field textarea {
    min-height: 62px;
  }

  .choice label {
    min-height: 48px;
    padding-block: 6px;
  }

  .consent-list {
    margin-top: 7px;
    gap: 4px;
  }

  .form-actions {
    margin-top: 8px;
  }
}

/* V6 — expanded adviser directory */
.team-directory { display: grid; gap: 18px; }
.team-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; }
.team-pagination-status { min-width: 110px; color: var(--navy); font-size: .82rem; font-weight: 750; text-align: center; }
.team-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.team-card[hidden] { display: none !important; }
@media (max-width: 880px) { .team-directory[data-mobile-page="true"] .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .team-directory[data-mobile-page="true"] .team-grid { grid-template-columns: 1fr; } }
html, body { overflow-x: clip; }

/* The territorial map is essential content and must not depend on scroll-triggered reveal timing. */
.territory-grid > .reveal:first-child {
  opacity: 1;
  transform: none;
}

/* Version 8 corrected in progress — Change 1: simplified header */
:root { --announcement-height: 0px; }
.site-announcement { display: none !important; }
.primary-nav ul { gap: 2px; }
.primary-menu-item { position: relative; }
.primary-menu-trigger {
  display: inline-flex; min-height: 44px; padding: 10px 13px; border: 0;
  border-radius: var(--radius-sm); align-items: center; gap: 6px;
  background: transparent; color: var(--ink); font: inherit; font-size: .86rem;
  font-weight: 700; cursor: pointer; transition: color 180ms ease, background-color 180ms ease;
}
.primary-menu-trigger:hover, .primary-menu-trigger[aria-expanded="true"], .primary-menu-item.is-active .primary-menu-trigger {
  background: var(--mist); color: var(--blue-action);
}
.primary-menu-trigger > span { font-size: .78em; transition: transform 180ms ease; }
.primary-menu-trigger[aria-expanded="true"] > span { transform: rotate(180deg); }
.mega-menu {
  position: fixed; z-index: 1200; top: var(--header-height); left: 50%; display: none;
  width: min(1040px, calc(100vw - 48px)); padding: 22px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: rgba(255,255,255,.985);
  box-shadow: 0 24px 70px rgba(8,46,79,.17); transform: translateX(-50%);
}
.primary-menu-item.is-open .mega-menu { display: block; }
.mega-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 18px; }
.mega-grid--single { grid-template-columns: repeat(2, minmax(0,1fr)); }
.mega-column { display: grid; gap: 8px; align-content: start; }
.mega-column--services { padding: 18px; border-radius: var(--radius-md); background: var(--mist); }
.mega-link { display: grid; gap: 3px; min-height: 76px; padding: 13px 15px; border-radius: var(--radius-md); color: var(--navy); text-decoration: none; }
.mega-link:hover, .mega-link:focus-visible { background: var(--mist); text-decoration: none; }
.mega-link strong { font-size: .95rem; }
.mega-link span { color: var(--muted); font-size: .79rem; line-height: 1.38; font-weight: 500; }
.mega-heading { margin-bottom: 4px; color: var(--blue-action); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.mega-service-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 10px; }
.mega-service-links a, .mega-all-link { min-height: 40px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--navy); font-size: .82rem; font-weight: 700; text-decoration: none; }
.mega-service-links a:hover, .mega-all-link:hover { background: var(--white); text-decoration: none; }
.mega-all-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--blue-action); }
.project-launch::after { content: "→"; }
.project-dialog { width: min(920px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--white); color: var(--navy); box-shadow: 0 30px 100px rgba(8,46,79,.3); }
.project-dialog::backdrop { background: rgba(8,46,79,.58); backdrop-filter: blur(5px); }
.project-dialog-header { display: flex; gap: 28px; padding: 28px 30px 20px; align-items: flex-start; justify-content: space-between; }
.project-dialog-header h2 { margin: 3px 0 7px; font-size: clamp(1.8rem,3vw,2.6rem); }
.project-dialog-header p { margin: 0; color: var(--muted); }
.project-dialog-close { width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--navy); font-size: 1.7rem; cursor: pointer; }
.project-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0 30px 30px; }
.project-choice { display: grid; min-height: 210px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); align-content: start; color: var(--navy); text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.project-choice:hover, .project-choice:focus-visible { border-color: var(--blue); box-shadow: var(--shadow-card); transform: translateY(-3px); text-decoration: none; }
.project-choice strong { margin-bottom: 10px; font-size: 1.2rem; }
.project-choice span { color: var(--muted); line-height: 1.5; }
.project-choice em { margin-top: auto; padding-top: 18px; color: var(--blue-action); font-size: .82rem; font-style: normal; font-weight: 800; }
.mobile-project-launch, .mobile-panel > .language-switcher { display: none; }

@media (min-width: 881px) and (max-height: 820px) {
  .mega-menu { top: var(--header-height); padding: 15px; }
  .mega-link { min-height: 64px; padding: 10px 12px; }
  .project-choice { min-height: 176px; }
  .project-dialog-header { padding-block: 20px 14px; }
  .project-choices { padding-bottom: 22px; }
}
@media (max-width: 1120px) {
  .mobile-panel { top: var(--header-height); }
  .mobile-panel nav > ul { gap: 0; }
  .mobile-menu-group { border-bottom: 1px solid var(--line); }
  .mobile-menu-group > button { display: flex; width: 100%; min-height: 58px; padding: 0; border: 0; align-items: center; justify-content: space-between; background: transparent; color: var(--navy); font: inherit; font-size: 1.05rem; font-weight: 750; cursor: pointer; }
  .mobile-menu-group > button > span:last-child { font-size: 1.3rem; transition: transform 180ms ease; }
  .mobile-menu-group > button[aria-expanded="true"] > span:last-child { transform: rotate(45deg); }
  .mobile-menu-group > ul { margin: 0 0 12px !important; padding: 0 0 4px 14px !important; }
  .mobile-menu-group > ul a { min-height: 48px !important; border-bottom: 0 !important; font-size: .93rem !important; font-weight: 650 !important; }
  .mobile-menu-group > ul a::after { content: "→"; }
  .mobile-direct-link { min-height: 58px; }
  .mobile-project-launch { display: inline-flex; width: 100%; }
  .mobile-panel > .language-switcher { display: block; margin-top: 16px; }
  .mobile-panel > .language-switcher > button { width: 100%; justify-content: space-between; }
  .mobile-panel > .language-switcher .language-menu { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
}
@media (max-width: 880px) {
  .header-actions > .language-switcher { display: none; }
  .project-dialog { max-height: calc(100svh - 24px); overflow-y: auto; }
  .project-dialog-header { padding: 22px 20px 16px; }
  .project-choices { grid-template-columns: 1fr; padding: 0 20px 20px; }
  .project-choice { min-height: 138px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary-menu-trigger > span, .mobile-menu-group > button > span:last-child, .project-choice { transition: none; }
}
@media (max-width: 1120px) {
  .mobile-panel {
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    height: calc(100svh - var(--header-height));
    background: var(--white);
  }
  .mobile-menu-group > ul[hidden] { display: none !important; }
}
.project-choice em { white-space: nowrap; }

/* Change 1 refinement — compact desktop dropdowns with hover access */
@media (min-width: 1121px) {
  .mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: max-content;
    max-width: min(760px, calc(100vw - 48px));
    padding: 16px;
    transform: none;
  }
  .primary-menu-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
  }
  .mega-menu--sell { width: 360px; }
  .mega-menu--buy { width: 720px; }
  .mega-menu--team { width: 650px; }
  .mega-grid { grid-template-columns: minmax(250px, .9fr) minmax(310px, 1.1fr); gap: 14px; }
  .mega-grid--single { display: grid; grid-template-columns: 1fr; gap: 2px; }
  .mega-column { gap: 7px; }
  .mega-column--services { padding: 12px; }
  .mega-list { display: grid; gap: 2px; }
  .mega-link {
    display: flex;
    min-height: 42px;
    padding: 10px 12px;
    align-items: center;
    border-radius: var(--radius-sm);
    color: var(--navy);
    font-size: .88rem;
    font-weight: 700;
  }
  .mega-heading { margin: 0 0 3px 3px; }
  .mega-service-links { grid-template-columns: 1fr; gap: 2px; }
  .mega-service-links a {
    min-height: 40px;
    padding: 9px 10px;
    font-size: .84rem;
  }
  .mega-link:hover, .mega-link:focus-visible,
  .mega-service-links a:hover, .mega-service-links a:focus-visible {
    background: var(--mist);
    color: var(--blue-action);
  }
  .mega-all-link { display: none; }
}

/* Change 1 — validated responsive header refinement */
@media (min-width: 1181px) {
  .header-inner {
    display: flex;
    gap: clamp(20px, 2vw, 34px);
  }
  .primary-nav {
    margin-left: auto;
    justify-self: auto;
  }
  .header-actions {
    flex: 0 0 auto;
  }
}

@media (max-width: 1180px) {
  body.nav-open {
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .primary-nav {
    display: none !important;
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: clamp(10px, 2vw, 22px);
  }

  .header-actions {
    justify-self: end;
  }

  .header-actions > .language-switcher,
  .header-actions > .project-launch {
    display: none;
  }

  .mobile-panel {
    position: fixed;
    z-index: 990;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: auto;
    max-height: calc(100dvh - var(--header-height));
    padding: clamp(18px, 3vh, 30px) clamp(18px, 4vw, 34px) max(28px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 260ms ease, visibility 0s linear 260ms;
    scrollbar-gutter: stable;
  }

  .nav-open .mobile-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .mobile-panel nav > ul {
    display: grid;
    gap: 0;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
  }

  .mobile-menu-group {
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu-group > button {
    display: flex;
    width: 100%;
    min-height: 62px;
    padding: 0 2px;
    border: 0;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-size: clamp(1rem, 2vw, 1.12rem);
    font-weight: 750;
    text-align: left;
    cursor: pointer;
  }

  .mobile-accordion-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
    place-items: center;
    color: var(--blue-action);
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 260ms ease, background-color 180ms ease;
  }

  .mobile-menu-group.is-open > button .mobile-accordion-icon {
    background: var(--mist);
    transform: rotate(45deg);
  }

  .mobile-submenu {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 280ms cubic-bezier(.2,.7,.2,1), opacity 180ms ease;
  }

  .mobile-submenu-inner {
    min-height: 0;
    overflow: hidden;
  }

  .mobile-menu-group.is-open > .mobile-submenu {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .mobile-submenu ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0 0 16px 12px;
    list-style: none;
  }

  .mobile-submenu li {
    margin: 0;
  }

  .mobile-submenu a {
    display: flex;
    min-height: 46px;
    padding: 9px 8px;
    border: 0;
    border-radius: 20px;
    align-items: center;
    justify-content: space-between;
    color: var(--navy);
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
  }

  .mobile-submenu a::after {
    content: "→";
    flex: 0 0 auto;
    margin-left: 14px;
    color: var(--blue-action);
  }

  .mobile-submenu a:hover,
  .mobile-submenu a:focus-visible {
    background: var(--mist);
    text-decoration: none;
  }

  .mobile-submenu-heading {
    padding: 14px 8px 5px;
    color: var(--blue-action);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  .mobile-direct-link {
    min-height: 62px !important;
  }

  .mobile-project-launch {
    display: inline-flex;
    width: 100%;
    margin-top: 4px;
  }

  .mobile-panel > .language-switcher {
    display: block;
    margin-top: 16px;
  }

  .mobile-panel > .language-switcher > button {
    width: 100%;
    justify-content: space-between;
  }

  .mobile-panel > .language-switcher .language-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
}

@media (max-width: 620px) {
  .mobile-panel {
    padding-inline: 16px;
  }

  .mobile-menu-group > button,
  .mobile-direct-link {
    min-height: 58px !important;
  }

  .mobile-submenu ul {
    padding-left: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-panel,
  .mobile-submenu,
  .mobile-accordion-icon {
    transition-duration: 1ms !important;
  }
}
@media (max-width: 1180px) {
  .mobile-panel {
    height: calc(100dvh - var(--header-height));
    max-height: none;
  }
}

/* Version 8 corrected in progress — Change 2: unified conversion path */
[data-unified-project-form] [data-branch][hidden] { display: none !important; }
[data-unified-project-form] .choice-grid { align-items: stretch; }
[data-unified-project-form] .choice label small:empty { display: none; }
[data-unified-project-form] .choice label { min-height: 100%; }
@media (max-width: 680px) {
  [data-unified-project-form] .choice-grid { grid-template-columns: 1fr; }
}

/* Version 8 corrected in progress — Change 2 refinement: action-first project page */
body[data-route="project"] main {
  background: var(--stone);
}

.project-entry {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding: clamp(28px, 4vh, 52px) 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 147, 247, 0.10), transparent 34%),
    var(--stone);
}

.project-entry__container {
  width: 100%;
}

.project-entry__heading {
  display: grid;
  max-width: 760px;
  margin: 0 0 clamp(18px, 2.5vh, 30px);
  gap: 8px;
}

.project-entry__heading h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 3.2vw, 3.65rem);
  line-height: 0.98;
  text-wrap: balance;
}

.project-entry__heading p {
  margin: 0;
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
}

.project-entry .form-shell {
  width: 100%;
  max-height: none;
}

.project-entry .form-aside {
  padding: clamp(24px, 3vw, 40px);
}

.project-entry .form-aside h2 {
  font-size: clamp(1.75rem, 2.3vw, 2.35rem);
}

.project-entry .form-aside ul {
  margin-top: 20px;
  gap: 10px;
}

.project-entry .form-aside li {
  padding-bottom: 10px;
}

.project-entry .form-main {
  padding: clamp(24px, 3vw, 42px);
}

.project-entry .form-progress {
  margin-bottom: 24px;
}

.project-entry .form-step h2 {
  margin-bottom: 8px;
}

.project-entry .form-step-intro {
  margin-bottom: 20px;
}

@media (max-height: 800px) and (min-width: 1181px) {
  .project-entry {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .project-entry__heading {
    margin-bottom: 16px;
  }

  .project-entry__heading h1 {
    font-size: clamp(1.9rem, 2.8vw, 3rem);
  }

  .project-entry .form-aside,
  .project-entry .form-main {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@media (max-width: 1180px) {
  .project-entry {
    min-height: calc(100svh - var(--header-height));
    align-items: flex-start;
    padding: 24px 0 36px;
  }

  .project-entry__heading {
    margin-bottom: 18px;
  }
}

@media (max-width: 760px) {
  .project-entry {
    padding-top: 18px;
  }

  .project-entry__heading {
    gap: 6px;
  }

  .project-entry__heading h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .project-entry .form-shell {
    border-radius: var(--radius-md);
  }

  .project-entry .form-aside,
  .project-entry .form-main {
    padding: 22px;
  }
}

/* Action-first refinement: keep the first question in the initial viewport. */
.project-entry {
  align-items: flex-start;
  padding-top: clamp(18px, 2.5vh, 30px);
}

.project-entry__heading {
  margin-bottom: 14px;
  gap: 4px;
}

.project-entry__heading h1 {
  font-size: clamp(1.9rem, 2.7vw, 3rem);
  line-height: 1;
}

.project-entry__heading p {
  font-size: 0.98rem;
}

@media (max-width: 760px) {
  .project-entry {
    padding-top: 12px;
  }

  .project-entry__heading {
    margin-bottom: 10px;
  }

  .project-entry__heading .eyebrow,
  .project-entry__heading p,
  .project-entry .form-aside {
    display: none;
  }

  .project-entry__heading h1 {
    font-size: 1.8rem;
  }

  .project-entry .form-shell {
    display: block;
  }

  .project-entry .form-main {
    padding: 18px;
  }

  .project-entry .form-progress {
    margin-bottom: 16px;
  }

  .project-entry .form-step h2 {
    font-size: 1.45rem;
  }

  .project-entry .form-step-intro {
    margin-bottom: 14px;
  }
}

/* Version 8 corrected in progress — Change 2c: stable progressive-form geometry. */
.project-entry .form-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: clamp(570px, 68svh, 640px);
  overflow: hidden;
}

.project-entry .form-main > .form-progress {
  grid-row: 1;
}

.project-entry .form-main > .form-step {
  grid-row: 2;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.project-entry .form-main > .form-actions {
  grid-row: 3;
  align-self: end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(8, 46, 79, 0.10);
}

.project-entry .form-main > .form-status {
  grid-row: 4;
  min-height: 24px;
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .project-entry .form-main {
    height: clamp(570px, calc(100svh - 150px), 680px);
  }
}

@media (max-width: 760px) {
  .project-entry .form-main {
    height: clamp(540px, calc(100svh - 110px), 650px);
  }

  .project-entry .form-main > .form-step {
    padding-right: 2px;
  }

  .project-entry .form-main > .form-actions {
    margin-top: 12px;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-entry .form-step.is-active {
    animation: none;
  }
}

/* Keep the action rail identical on every step, including step one. */
.project-entry .form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.project-entry .form-actions .button {
  width: 100%;
}

.project-entry .form-actions [data-form-back] {
  grid-column: 1;
}

.project-entry .form-actions [data-form-next],
.project-entry .form-actions [data-form-submit] {
  grid-column: 2;
}

.project-entry .form-actions [data-form-back][hidden] {
  display: inline-flex !important;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 760px) {
  .project-entry .form-actions {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 760px) {
  .project-entry .form-actions .button {
    min-height: 52px;
    padding-inline: 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

/* Version 8 corrected in progress — Change 2d: full project form viewport fit. */
body[data-route="project"] {
  overflow: hidden;
}

body[data-route="project"] main {
  height: calc(100svh - var(--header-height));
  min-height: 0;
  overflow: hidden;
}

.project-entry {
  box-sizing: border-box;
  height: calc(100svh - var(--header-height));
  min-height: 0;
  padding: clamp(10px, 1.6vh, 18px) 0;
  overflow: hidden;
}

.project-entry__container {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.project-entry__heading {
  margin-bottom: clamp(8px, 1.2vh, 14px);
}

.project-entry .form-shell {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.project-entry .form-main {
  height: 100%;
  min-height: 0;
  padding: clamp(16px, 2.2vh, 28px) clamp(18px, 2.5vw, 38px);
}

.project-entry .form-aside {
  min-height: 0;
  overflow: hidden;
  padding: clamp(18px, 2.4vh, 30px);
}

.project-entry .form-progress {
  margin-bottom: clamp(10px, 1.7vh, 18px);
}

.project-entry .form-step h2 {
  margin-bottom: 6px;
}

.project-entry .form-step-intro {
  margin-bottom: clamp(10px, 1.6vh, 16px);
}

.project-entry .form-main > .form-actions {
  margin-top: clamp(8px, 1.3vh, 14px);
  padding-top: clamp(8px, 1.3vh, 14px);
}

.project-entry .form-main > .form-status {
  min-height: 18px;
  margin-top: 4px;
}

@media (max-height: 800px) and (min-width: 1181px) {
  .project-entry__heading .eyebrow,
  .project-entry__heading p {
    display: none;
  }

  .project-entry__heading h1 {
    font-size: clamp(1.75rem, 2.4vw, 2.55rem);
  }

  .project-entry .form-aside h2 {
    font-size: clamp(1.45rem, 1.9vw, 1.9rem);
  }

  .project-entry .form-aside p,
  .project-entry .form-aside li {
    font-size: 0.9rem;
  }
}

@media (max-width: 1180px) {
  body[data-route="project"] main,
  .project-entry {
    height: calc(100svh - var(--header-height));
  }

  .project-entry {
    padding: 10px 0;
  }

  .project-entry .form-shell {
    display: block;
  }

  .project-entry .form-aside {
    display: none;
  }

  .project-entry .form-main {
    height: 100%;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .project-entry {
    padding: 8px 0;
  }

  .project-entry__heading {
    margin-bottom: 6px;
  }

  .project-entry__heading h1 {
    font-size: clamp(1.55rem, 7.5vw, 1.9rem);
  }

  .project-entry .form-main {
    padding: 12px 14px;
  }

  .project-entry .form-progress {
    margin-bottom: 8px;
  }

  .project-entry .form-step h2 {
    font-size: 1.25rem;
    line-height: 1.12;
  }

  .project-entry .form-step-intro {
    margin-bottom: 8px;
    font-size: 0.9rem;
  }

  .project-entry .form-main > .form-actions {
    margin-top: 8px;
    padding-top: 8px;
  }

  .project-entry .button {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@supports (height: 100dvh) {
  body[data-route="project"] main,
  .project-entry {
    height: calc(100dvh - var(--header-height));
  }
}

html:has(body[data-route="project"]) {
  overflow: hidden;
}

body[data-route="project"] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
}

@supports (height: 100dvh) {
  body[data-route="project"] {
    height: 100dvh;
  }
}

/* Project-page scroll lock without moving the fixed header or focused controls. */
html.project-page {
  overflow: hidden;
}

body[data-route="project"] {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
}

body[data-route="project"] .site-footer {
  display: none;
}

/* Pixel-safe viewport fit: account for header border and form-shell border. */
body[data-route="project"] main,
.project-entry {
  height: calc(100svh - var(--header-height) - 2px);
}

.project-entry .form-shell {
  min-height: 0;
  height: calc(100% - 2px);
  align-self: start;
}

@supports (height: 100dvh) {
  body[data-route="project"] main,
  .project-entry {
    height: calc(100dvh - var(--header-height) - 2px);
  }
}

@media (max-width: 1180px) and (max-height: 800px) {
  .project-entry__heading .eyebrow,
  .project-entry__heading p {
    display: none;
  }

  .project-entry__heading {
    margin-bottom: 6px;
  }

  .project-entry__heading h1 {
    font-size: clamp(1.6rem, 4vw, 2rem);
  }
}

@media (max-width: 1180px) {
  .project-entry .form-shell {
    transform: translateY(-4px);
  }
}

/* Version 8 corrected in progress — Change 3: clarified labels and nested territory navigation */
@media (min-width: 1181px) {
  .mega-menu--team { width: 790px; }
  .mega-menu--team .mega-grid { grid-template-columns: 245px 220px 220px; align-items: start; }
  .mega-menu--team .mega-column:first-child { grid-column: 1; }
  .mega-menu--team .mega-column--services { grid-column: 2; position: relative; overflow: visible; }
  .territory-flyouts { display: grid; gap: 4px; }
  .territory-flyout { position: relative; outline: none; }
  .territory-department-link {
    display: flex; min-height: 42px; padding: 10px 12px; border-radius: var(--radius-sm);
    align-items: center; justify-content: space-between; color: var(--navy);
    font-size: .88rem; font-weight: 750; text-decoration: none;
  }
  .territory-department-link:hover,
  .territory-department-link:focus-visible,
  .territory-flyout:hover > .territory-department-link,
  .territory-flyout:focus-within > .territory-department-link {
    background: var(--white); color: var(--blue-action); text-decoration: none;
  }
  .territory-city-panel {
    position: absolute; z-index: 2; top: 0; left: calc(100% + 14px); display: grid;
    width: 205px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-md);
    background: var(--white); box-shadow: 0 18px 45px rgba(8,46,79,.13);
    opacity: 0; visibility: hidden; transform: translateX(-5px); pointer-events: none;
    transition: opacity 160ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }
  .territory-flyout:hover .territory-city-panel,
  .territory-flyout:focus-within .territory-city-panel {
    opacity: 1; visibility: visible; transform: translateX(0); pointer-events: auto;
    transition-delay: 0s;
  }
  .territory-city-label {
    display: flex; min-height: 38px; padding: 8px 10px; border-radius: var(--radius-sm);
    align-items: center; color: var(--navy); font-size: .83rem; font-weight: 650;
  }
  .territory-city-label + .territory-city-label { border-top: 1px solid rgba(8,46,79,.06); }
}

@media (max-width: 1180px) {
  .mobile-territory-group { margin: 2px 0; }
  .mobile-territory-row { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .mobile-territory-row > a {
    min-height: 48px; padding: 10px 8px; border-radius: 20px; align-items: center;
    color: var(--navy); font-size: .94rem; font-weight: 750; text-decoration: none;
  }
  .mobile-territory-row > a::after { content: none; }
  .mobile-territory-row > button {
    display: grid; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 20px;
    place-items: center; background: var(--white); color: var(--blue-action); cursor: pointer;
  }
  .mobile-territory-row > button span { font-size: 1.2rem; transition: transform 240ms ease; }
  .mobile-territory-group.is-open .mobile-territory-row > button span { transform: rotate(45deg); }
  .mobile-territory-panel {
    display: grid; grid-template-rows: 0fr; opacity: 0;
    transition: grid-template-rows 260ms cubic-bezier(.2,.7,.2,1), opacity 180ms ease;
  }
  .mobile-territory-panel > ul { min-height: 0; overflow: hidden; }
  .mobile-territory-group.is-open > .mobile-territory-panel { grid-template-rows: 1fr; opacity: 1; }
  .mobile-territory-panel ul { display: grid; gap: 0; margin: 0; padding: 0 0 8px 20px; list-style: none; }
  .mobile-territory-city {
    display: flex; min-height: 40px; padding: 7px 10px; align-items: center;
    color: var(--muted); font-size: .88rem; font-weight: 650;
  }
}

@media (prefers-reduced-motion: reduce) {
  .territory-city-panel, .mobile-territory-panel, .mobile-territory-row > button span { transition-duration: 1ms !important; }
}
@media (min-width: 1181px) {
  .mega-menu--team { left: auto; right: 0; }
}

/* V8 corrigée - changement 3B : territoires visibles sans sous-menu */
@media (min-width: 981px) {
  .territory-direct { display: grid; gap: 18px; }
  .territory-direct-group { display: grid; gap: 6px; }
  .territory-department-link {
    display: inline-flex;
    width: fit-content;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--navy);
  }
  .territory-direct-cities { display: grid; gap: 2px; }
  .territory-city-link {
    display: block;
    padding: 7px 10px;
    border-radius: 10px;
    color: var(--navy);
    text-decoration: none;
  }
  .territory-city-link:hover,
  .territory-city-link:focus-visible { background: rgba(0,147,247,.08); color: var(--blue); }
  .territory-flyouts, .territory-flyout, .territory-city-panel { display: none !important; }
}
.mobile-submenu-heading--linked { padding-top: 12px; }
.mobile-submenu-heading--linked a {
  display: block;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
}
.mobile-territory-link { padding-left: 18px !important; }

/* V8 corrigée - changement 4 : formulaires mobiles et hiérarchie territoriale. */
.territory-direct-cities {
  padding-left: 14px;
  border-left: 2px solid rgba(0,147,247,.18);
}
.territory-city-link {
  position: relative;
  font-weight: 680;
}
.territory-city-link::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--blue-action);
  opacity: .7;
}
.mobile-submenu-heading--linked + li .mobile-territory-link,
.mobile-territory-link {
  margin-left: 14px;
  padding-left: 18px !important;
  border-left: 2px solid rgba(0,147,247,.18);
  font-weight: 680;
}

.form-progress-wrap {
  display: grid;
  gap: 8px;
}
.form-step-count {
  display: none;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
}
.form-main input,
.form-main select,
.form-main textarea,
.form-main button {
  min-height: 44px;
}
.form-main input,
.form-main select,
.form-main textarea {
  font-size: 16px;
}
.form-main .choice label,
.form-main .checkbox label {
  min-height: 44px;
}
.form-main [aria-invalid="true"] {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180,35,24,.12);
}
.form-actions .button[disabled] {
  cursor: wait;
  opacity: .72;
}

@media (max-width: 780px) {
  .project-entry {
    min-height: 100vh;
    min-height: 100svh;
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .project-entry__container {
    height: 100%;
    min-height: 0;
  }
  .project-entry .form-shell {
    height: min(690px, calc(100dvh - var(--header-height, 76px) - 92px));
    min-height: 480px;
    max-height: calc(100dvh - var(--header-height, 76px) - 28px);
  }
  .project-entry .form-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    min-height: 0;
    overflow: hidden;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  .project-entry .form-progress-wrap {
    position: relative;
    z-index: 2;
    background: inherit;
  }
  .project-entry .form-step-count {
    display: block;
  }
  .project-entry .form-main > .form-step.is-active {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 4px;
  }
  .project-entry .form-main > .form-actions {
    position: relative;
    z-index: 3;
    margin-top: 8px;
    padding-top: 10px;
    background: inherit;
  }
  .project-entry .form-status.is-visible {
    max-height: 82px;
    overflow-y: auto;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .project-entry .form-actions {
    display: flex;
    flex-direction: column;
  }
  .project-entry .form-actions [data-form-next],
  .project-entry .form-actions [data-form-submit] {
    order: 1;
    width: 100%;
  }
  .project-entry .form-actions [data-form-back] {
    order: 2;
    width: 100%;
  }
}

@media (max-height: 650px) and (orientation: landscape) {
  .project-entry {
    height: auto;
    min-height: 100svh;
  }
  .project-entry .form-shell {
    height: auto;
    min-height: 460px;
    max-height: none;
  }
}


/* Luxury & Prestige is the only general content family allowed to use the official gold. */
[data-service="luxury"] .eyebrow,
[data-service="luxury"] .luxury-accent {
  color: var(--luxury-gold);
}

/* Version 8 corrected in progress — Change 9: responsive territory discovery */
.territory-home-grid{display:grid;grid-template-columns:minmax(320px,.92fr) minmax(0,1.08fr);gap:clamp(32px,5vw,80px);align-items:center}
.territory-finder{min-width:0}
.territory-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:24px 0 12px}
.territory-search input,.territory-select{width:100%;min-height:48px;border:1px solid rgba(255,255,255,.3);border-radius:22px;background:#fff;color:var(--navy);padding:0 18px;font:inherit}
.territory-search-result{min-height:28px;margin:4px 0 14px}
.territory-search-result p{margin:0 0 4px;color:#fff}
.territory-search-result .text-link{color:#fff}
.territory-select{display:none;margin:0 0 18px}
.territory-finder-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}
.territory-finder-group{border-left:2px solid var(--blue-light);padding-left:16px}
.territory-finder-department{display:inline-block;color:#fff;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}
.territory-finder-links{display:flex;flex-wrap:wrap;gap:8px}
.territory-chip{display:inline-flex;align-items:center;min-height:44px;padding:8px 13px;border:1px solid rgba(255,255,255,.24);border-radius:20px;color:#fff;background:rgba(255,255,255,.06);font-weight:600}
.territory-chip:hover,.territory-chip:focus-visible{background:#fff;color:var(--navy)}
.territory-full-map-link{display:inline-flex;margin-top:22px;color:#fff}
@media (max-width:900px){.territory-home-grid{grid-template-columns:1fr}.territory-home-map{max-width:680px;margin-inline:auto}.territory-finder-groups{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.territory-home-section .territory-home-map{display:none}.territory-home-grid{display:block}.territory-search{grid-template-columns:1fr}.territory-search .button{width:100%}.territory-select{display:block}.territory-finder-groups{grid-template-columns:1fr;gap:22px}.territory-finder-links{display:grid;grid-template-columns:1fr}.territory-chip{width:100%;justify-content:flex-start}.territory-full-map-link{min-height:44px;align-items:center}}

/* V8 corrigée - changement 10 : orientation vers le conseiller adapté. */
.finder-hero{padding:clamp(3rem,6vw,6rem) 0 2rem;background:linear-gradient(135deg,var(--brume),#fff)}
.adviser-finder{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(0,1.25fr);gap:clamp(1.5rem,4vw,4rem);align-items:start}
.finder-form{display:grid;gap:1rem;padding:1.25rem;background:#fff;border-radius:24px;position:sticky;top:7rem;box-shadow:0 18px 50px rgba(8,46,79,.08)}
.finder-form label{display:grid;gap:.45rem;font-weight:600;color:var(--navy)}
.finder-form select{min-height:48px;border:1px solid rgba(8,46,79,.24);border-radius:20px;padding:.7rem .9rem;background:#fff;font:inherit;color:var(--navy)}
.finder-results{min-height:22rem;scroll-margin-top:7rem;outline:none}.finder-card-list{display:grid;gap:1rem}
.finder-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:1.25rem;padding:1rem;background:#fff;border-radius:24px;box-shadow:0 18px 50px rgba(8,46,79,.08)}
.finder-card img{width:150px;height:188px;object-fit:cover;border-radius:20px}.finder-card h3{margin:.2rem 0}.finder-card ul{margin:.5rem 0 1rem;padding-left:1.2rem}.finder-empty{padding:2rem;background:#fff;border-radius:24px}
@media(max-width:800px){.adviser-finder{grid-template-columns:1fr}.finder-form{position:static}.finder-card{grid-template-columns:100px minmax(0,1fr)}.finder-card img{width:100px;height:125px}.finder-card .button-row{flex-direction:column;align-items:stretch}}
@media(max-width:480px){.finder-card{grid-template-columns:1fr}.finder-card img{width:100%;height:auto;max-height:320px}}
/* Capifrance Dordogne & Lot - Live_v1.0 - Change 11 */
.card-kicker:empty{display:none}.proof-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.adviser-carousel{position:relative;overflow:hidden}.adviser-track{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 2px 18px}.adviser-track::-webkit-scrollbar{display:none}.adviser-slide{flex:0 0 calc((100% - 54px)/4);scroll-snap-align:start;border:1px solid rgba(8,46,79,.14);border-radius:22px;overflow:hidden;background:#fff}.adviser-slide a{display:block;color:inherit;text-decoration:none}.adviser-slide picture,.adviser-slide img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover}.adviser-slide div{padding:16px}.adviser-slide h3{margin:0 0 6px;font-size:1rem}.adviser-slide p,.adviser-slide span{display:block;margin:0 0 6px;font-size:.86rem}.adviser-slide em{font-style:normal;font-weight:600}.adviser-controls{display:flex;justify-content:center;gap:10px;margin:8px 0 22px}.adviser-controls button{min-width:44px;min-height:44px;border-radius:22px;border:1px solid #082e4f;background:#fff;color:#082e4f}.project-hub{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.project-hub-column{background:#fff;border-radius:22px;padding:24px}.project-hub-column ul{list-style:none;padding:0;margin:12px 0 0}.project-hub-column li+li{margin-top:10px}.compact-footer{padding:34px 0 16px}.compact-footer .footer-top{grid-template-columns:1.3fr repeat(3,1fr);gap:28px}.compact-footer .footer-brand p{max-width:30ch}.footer-accordion{display:none}.footer-languages{white-space:nowrap}.footer-languages a{color:inherit;text-decoration:none}
@media(max-width:900px){.proof-grid{grid-template-columns:repeat(2,1fr)}.adviser-slide{flex-basis:calc((100% - 36px)/3)}.project-hub{grid-template-columns:1fr}.compact-footer .footer-top{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.adviser-slide{flex-basis:78%}.proof-grid{grid-template-columns:1fr 1fr}.compact-footer .footer-top{display:block}.compact-footer .footer-column{border-top:1px solid rgba(255,255,255,.2)}.compact-footer .footer-column h2{display:none}.footer-accordion{display:flex;width:100%;align-items:center;justify-content:space-between;padding:14px 0;background:none;border:0;color:inherit;font:inherit;font-weight:600}.compact-footer .footer-column ul{display:none;padding-bottom:14px}.compact-footer .footer-column.is-open ul{display:block}.compact-footer .footer-bottom{display:grid;gap:12px}.footer-languages{white-space:normal;line-height:2}.hero-trust span:nth-child(n+2){display:none}}
@media(prefers-reduced-motion:reduce){.adviser-track{scroll-behavior:auto}}

/* Live_v1.0.1 critical stability fixes */
.form-step:not([hidden]) { display: block; }
.form-step[hidden] { display: none !important; }
.home-journeys .section-header, .section > .container > .section-header { position: relative; z-index: 2; }
.territory-search, .territory-search-result, .territory-select { display: none !important; }
.adviser-portrait picture, .adviser-portrait img { width: 100%; height: 100%; }
.adviser-portrait img { object-fit: cover; image-rendering: auto; }
@media (min-width: 1121px) {
  .primary-menu-trigger { position: relative; z-index: 2; pointer-events: auto; }
  .primary-menu-item { pointer-events: auto; }
}

/* Capifrance Dordogne & Lot — Live_v1.0.2
   Home journey/social-proof spacing correction. */
.proof-band {
  margin-top: clamp(48px, 6vw, 88px);
}

/* Live_v1.0.3 - separation before territory and balanced team mega-menu */
.home-paths-section .proof-band {
  margin-bottom: clamp(72px, 8vw, 128px);
}
@media (min-width: 901px) {
  .nav-item--team .mega-menu { min-width: min(760px, calc(100vw - 48px)); }
  .nav-item--team .mega-grid { grid-template-columns: minmax(190px,.75fr) minmax(420px,1.45fr); }
  .nav-item--team .territory-direct {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 24px;
    align-items: start;
  }
}
@media (max-width: 767px) {
  .home-paths-section .proof-band { margin-bottom: 56px; }
}
