/* DM Sans — self-hosted WOFF2 (latin-ext + latin) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Manrope — self-hosted WOFF2 (latin-ext + latin) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Approved palette only */
  --p-900: #00072d;
  --p-800: #051650;
  --p-700: #0a2472;
  --p-600: #123499;
  --p-050: #eaf1ff;

  --bg: var(--p-900);
  --surface: var(--p-800);
  --surface-2: var(--p-700);
  --ink: var(--p-050);
  --muted: rgba(234, 241, 255, 0.78);
  --line: rgba(18, 52, 153, 0.42);
  --ring: rgba(234, 241, 255, 0.75);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 28px rgba(0, 7, 45, 0.32);
  --shadow-strong: 0 18px 42px rgba(0, 7, 45, 0.42);
  --max: 1180px;
}

/* Robust reset + normalize base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* iOS Safari: prevents horizontal scroll from overflowing elements */
}

/* Background gradient — on body directly (avoids iOS position:fixed quirks) */
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(18, 52, 153, 0.4), transparent 34%),
    linear-gradient(180deg, var(--p-800), var(--p-900));
  overflow-x: hidden;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: var(--p-050);
  color: var(--p-900);
  padding: 10px 14px;
  border-radius: 10px;
}

/* Typography scale */
h1,
h2,
h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

@supports (text-wrap: balance) {
  h1,
  h2 {
    text-wrap: balance;
  }
}

/* Header + nav */
.header {
  z-index: 100;
  background: linear-gradient(180deg, rgba(0, 7, 45, 0.96), rgba(5, 22, 80, 0.94));
  border-bottom: 1px solid rgba(18, 52, 153, 0.56);
}

@supports ((position: sticky) or (position: -webkit-sticky)) {
  .header {
    position: sticky;
    top: 0;
  }
}

@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.header.scrolled {
  box-shadow: 0 12px 28px rgba(0, 7, 45, 0.4);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav > * {
  min-width: 0;
}

.brand {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.nav-links > a,
.nav-drop > button {
  color: var(--muted);
  font-size: 0.94rem;
  position: relative;
  padding: 10px 0;
  transition: color 0.18s ease;
}

.nav-links > a:hover,
.nav-drop > button:hover,
.nav-links .active,
.nav-drop > button.active {
  color: var(--p-050);
}

/* Active nav underline indicator */
.nav-links > a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--p-050);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links > a.active::after { transform: scaleX(1); }

/* CSS chevron for dropdown trigger */
.nav-drop > button { padding-right: 20px; }
.nav-drop > button::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.55;
}
.nav-drop > button[aria-expanded="true"]::after,
.nav-drop.open > button::after {
  transform: translateY(-50%) rotate(180deg);
  opacity: 1;
}

.nav-drop {
  position: relative;
}

.drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: -14px;
  width: 280px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--p-800);
  border: 1px solid rgba(18, 52, 153, 0.56);
  box-shadow: var(--shadow-soft);
}

.nav-drop:hover .drop-menu,
.nav-drop:focus-within .drop-menu,
.nav-drop.open .drop-menu {
  display: grid;
}

.drop-menu a {
  color: var(--muted);
  padding: 11px 12px;
  border-radius: 10px;
}

.drop-menu a:hover {
  color: var(--p-050);
  background: rgba(18, 52, 153, 0.34);
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.lang a,
.lang .active {
  padding: 4px 7px;
  border-radius: 8px;
}

.lang .active {
  color: var(--p-050);
  background: rgba(18, 52, 153, 0.32);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(18, 52, 153, 0.6);
  border-radius: 12px;
  color: var(--p-050);
  touch-action: manipulation;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.menu-toggle:hover {
  background: rgba(18, 52, 153, 0.28);
  border-color: rgba(18, 52, 153, 0.8);
}

/* Buttons + controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation; /* remove 300ms tap delay on iOS */
}

.btn-primary {
  background: var(--p-600);
  border-color: var(--p-600);
  color: var(--p-050);
}

.btn-primary:hover {
  background: var(--p-700);
  border-color: var(--p-700);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(18, 52, 153, 0.3);
  border-color: rgba(18, 52, 153, 0.64);
  color: var(--p-050);
}

.btn-secondary:hover {
  background: rgba(18, 52, 153, 0.42);
  border-color: rgba(234, 241, 255, 0.6);
  transform: translateY(-1px);
}

.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--p-050);
  min-height: 620px;
  padding: 124px 0 96px;
  background:
    radial-gradient(circle at 82% 16%, rgba(18, 52, 153, 0.46), transparent 32%),
    linear-gradient(122deg, var(--p-900) 8%, var(--p-800) 62%, var(--p-700));
}

@supports (height: 100dvh) {
  .hero {
    min-height: 88dvh;
  }
}

.hero::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -230px;
  bottom: -250px;
  border-radius: 50%;
  border: 1px solid rgba(18, 52, 153, 0.62);
}

.hero-grid {
  display: grid;
  /* minmax(0, ...) on both columns — avoids forced minimum width that collapses content column on mobile */
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(18, 52, 153, 0.62);
  background: rgba(0, 7, 45, 0.42);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin-top: 16px;
  max-width: 11ch;
  color: var(--p-050);
}

.hero p {
  margin-top: 22px;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.9vw, 1.26rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-top: 32px;
}

.hero-aside {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(18, 52, 153, 0.64);
  background: linear-gradient(160deg, rgba(5, 22, 80, 0.94), rgba(0, 7, 45, 0.92));
  box-shadow: var(--shadow-strong);
}

.hero-aside strong {
  display: block;
  font-size: 1.16rem;
  line-height: 1.22;
}

.hero-aside p {
  margin-top: 8px;
  color: var(--muted);
}

.hero-aside ul {
  list-style: none;
  margin-top: 18px;
}

.hero-aside li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-top: 1px solid rgba(18, 52, 153, 0.48);
  color: var(--muted);
}

.hero-aside li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--p-050);
}

/* Sections + cards */
main {
  padding: 16px 0 22px;
}

main > .section {
  margin: 16px clamp(10px, 2.2vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(18, 52, 153, 0.56);
  background: var(--p-800);
  box-shadow: var(--shadow-soft);
  overflow: hidden; /* clip not supported on Safari < 16 */
}

main > .section:nth-of-type(odd) {
  background: var(--p-700);
}

main > .section:nth-of-type(even) {
  background: var(--p-800);
}

.section {
  padding: 88px 0;
}

.section-sm {
  padding: 62px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 50px;
  margin-bottom: 44px;
  align-items: end;
}

.section-head > * {
  min-width: 0;
}

.eyebrow {
  color: var(--p-050);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.section-head p,
.content-block p,
.card p,
.process p,
.page-hero p,
.notice,
.list li,
.pill,
label,
.breadcrumbs,
.footer p,
.footer a {
  color: var(--muted);
}

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

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(18, 52, 153, 0.56);
  background: var(--p-800);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p-600), var(--p-700), var(--p-600));
}

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

.card .num {
  display: inline-block;
  color: var(--p-050);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(18, 52, 153, 0.64);
  background: rgba(18, 52, 153, 0.34);
}

.card-link {
  margin-top: auto;
  padding-top: 22px;
  color: var(--p-050);
  font-weight: 700;
}

.pill {
  display: inline-flex;
  border: 1px solid rgba(18, 52, 153, 0.56);
  border-radius: var(--radius-pill);
  padding: 8px 13px;
  background: var(--p-800);
  font-size: 0.82rem;
}

.list {
  list-style: none;
  margin-top: 24px;
}

.list li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-top: 1px solid rgba(18, 52, 153, 0.48);
}

.list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--p-050);
}

.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(18, 52, 153, 0.56);
  border-radius: var(--radius-md);
  overflow: hidden; /* clip not supported on Safari < 16 */
}

.process article {
  counter-increment: step;
  min-width: 0;
  min-height: 220px;
  padding: 28px;
  background: var(--p-800);
  border-left: 1px solid rgba(18, 52, 153, 0.48);
}

.process article:first-child {
  border-left: 0;
}

.process article::before {
  content: '0' counter(step);
  color: var(--p-050);
  font-size: 0.8rem;
}

.process h3 {
  margin-top: 34px;
}

/* Band */
.band {
  padding: 42px 0;
  background: linear-gradient(105deg, var(--p-600), var(--p-700));
  color: var(--p-050);
}

.band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.band h2 {
  max-width: 790px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.band .btn {
  background: var(--p-050);
  color: var(--p-700);
  border-color: var(--p-050);
  flex-shrink: 0;
}

.band .btn:hover {
  background: rgba(234, 241, 255, 0.88);
  transform: translateY(-1px);
}

/* Inner pages */
.page-hero {
  padding: 88px 0 62px;
  border-bottom: 1px solid rgba(18, 52, 153, 0.5);
  background:
    radial-gradient(circle at 86% 2%, rgba(18, 52, 153, 0.42), transparent 30%),
    linear-gradient(135deg, var(--p-800), var(--p-700));
}

.page-hero h1 {
  max-width: 900px;
  color: var(--p-050);
}

.page-hero p {
  max-width: 720px;
  margin-top: 20px;
}

.breadcrumbs {
  font-size: 0.82rem;
  margin-bottom: 28px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: start;
}

.split > :first-child {
  position: sticky;
  top: 108px;
}

.content-block + .content-block {
  margin-top: 54px;
  padding-top: 54px;
  border-top: 1px solid rgba(18, 52, 153, 0.48);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

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

.form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

label {
  font-weight: 500;
  font-size: 0.94rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(18, 52, 153, 0.66);
  color: var(--p-050);
  background: var(--p-900);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px; /* tap target on mobile */
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(234, 241, 255, 0.52);
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(234, 241, 255, 0.18);
}

/* Custom select arrow (since -webkit-appearance: none removes native) */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23eaf1ff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* Textarea height override — min-height not needed for multiline */
textarea {
  min-height: 120px;
  height: auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 60px;
}

.contact-details {
  display: grid;
  gap: 18px;
}

.contact-details a {
  color: var(--p-050);
}

.contact-layout form {
  padding: 28px;
  border: 1px solid rgba(18, 52, 153, 0.56);
  border-radius: var(--radius-md);
  background: var(--p-800);
}

.notice {
  padding: 18px;
  border: 1px solid rgba(18, 52, 153, 0.56);
  border-radius: var(--radius-sm);
  background: var(--p-800);
  line-height: 1.5;
}

/* Footer */
.footer {
  padding: 60px 0 26px;
  border-top: 1px solid rgba(18, 52, 153, 0.46);
  background: var(--p-900);
  color: var(--p-050);
}

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

.footer h3 {
  color: var(--p-050);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer a {
  display: block;
  margin: 8px 0;
  transition: color 0.18s ease;
}

.footer a:hover {
  color: var(--p-050);
}

.footer .brand {
  margin-bottom: 18px;
}

/* Footer contact items with icon */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.5;
}
.footer-contact-item:hover svg { opacity: 0.9; }

/* LinkedIn special */
.footer-linkedin {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 52, 153, 0.36);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  margin-top: 36px;
  border-top: 1px solid rgba(18, 52, 153, 0.46);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom a { display: inline; margin: 0; }
.footer-bottom a:hover { color: var(--p-050); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

/* Flex gap fallback */
@supports not (gap: 12px) {
  .hero-actions > * + *,
  .band .container > * + *,
  .tags > * + *,
  .nav-links > * + * {
    margin-left: 12px;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    flex-wrap: wrap;
    min-height: 66px;
    gap: 12px;
    padding: 10px 0;
  }

  .brand {
    gap: 8px;
    font-size: 0.95rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav-links {
    display: none;
    order: 10;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid rgba(18, 52, 153, 0.46);
    border-radius: 14px;
    background: rgba(5, 22, 80, 0.9);
    box-shadow: var(--shadow-soft);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
  }

  @supports (height: 100dvh) {
    .nav-links {
      max-height: calc(100dvh - 120px);
    }
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a,
  .nav-drop > button {
    text-align: left;
    width: 100%;
    min-height: 44px;
    padding: 10px 0;
  }

  .drop-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    margin: 0 0 8px;
  }

  /* Nav CTA: hide by default on mobile — header stays compact when menu is closed */
  .nav > .btn {
    display: none;
    width: 100%;
    order: 11;
    margin-top: 4px;
  }

  /* Show CTA inside the open nav panel */
  body.nav-open .nav > .btn {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding: calc(80px + env(safe-area-inset-top, 0px)) 0 52px;
    background: linear-gradient(128deg, var(--p-900) 12%, var(--p-800) 64%, var(--p-700));
  }

  .hero::after {
    display: none;
  }

  /* Force single-column on ALL critical grids at ≤960px */
  .hero-grid,
  .section-head,
  .split,
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .hero h1 {
    max-width: 12.5ch;
    font-size: clamp(2rem, 7.2vw, 3.25rem);
    line-height: 1.06;
  }

  .hero p {
    margin-top: 16px;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero .btn,
  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
  }

  .hero-aside {
    padding: 18px;
    border-radius: var(--radius-md);
  }

  .split > :first-child {
    position: static;
  }

  main > .section {
    margin: 8px;
    border-radius: 16px;
  }

  .section {
    padding: 52px 0;
  }

  .page-hero {
    padding: 58px 0 42px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

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

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

  .process article:nth-child(3),
  .process article:nth-child(4) {
    border-top: 1px solid rgba(18, 52, 153, 0.48);
  }

  .process article:nth-child(3) {
    border-left: 0;
  }

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

  .footer-bottom {
    row-gap: 10px;
  }
}

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

  .brand span {
    font-size: 0.9rem;
  }

  .header .lang {
    font-size: 0.78rem;
    margin-left: auto;
  }

  .hero {
    padding: calc(72px + env(safe-area-inset-top, 0px)) 0 44px;
  }

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

  .hero-actions .btn,
  .band .btn,
  .form-field.full .btn {
    width: 100%;
  }

  .hero .eyebrow {
    letter-spacing: 0.1em;
    min-height: 30px;
    padding: 0 10px;
  }

  .hero-aside ul {
    margin-top: 14px;
  }

  .hero-aside li {
    padding: 10px 0 10px 20px;
  }

  .hero-aside li::before {
    top: 16px;
  }

  .section-head {
    margin-bottom: 22px;
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(1.82rem, 9.6vw, 2.55rem);
    line-height: 1.08;
  }

  .hero-aside {
    padding: 16px;
  }

  main {
    padding: 8px 0 12px;
  }

  main > .section {
    margin: 7px 6px;
    border-radius: 14px;
  }

  .section,
  .page-hero {
    padding: 46px 0;
  }

  .grid-3,
  .grid-2,
  .process,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .process article + article {
    border-left: 0;
    border-top: 1px solid rgba(18, 52, 153, 0.48);
  }

  .card,
  .contact-layout form {
    border-radius: 16px;
    padding: 20px;
  }

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

  .form-field.full {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

/* Safety fallback: prevent gradient-text box artifact on some engines/caches */
.hero h1 {
  background-image: none !important;
  background-color: transparent !important;
  color: var(--p-050) !important;
  -webkit-text-fill-color: var(--p-050) !important;
  text-shadow: none !important;
}

/* === v2 – Services & Méthode === */

/* Service card DL structure */
.card-dl { margin: 18px 0 0; display: grid; gap: 12px; }
.card-dl dt { font-size: .73rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(234,241,255,.55); font-weight: 600; margin-bottom: 2px; }
.card-dl dd { margin: 0; color: var(--muted); font-size: .92rem; }

/* 6-step process variant (3 cols × 2 rows) */
@media (min-width: 941px) {
  .process-6 { grid-template-columns: repeat(3,1fr) !important; }
  .process-6 article:nth-child(n+4) { border-top: 1px solid var(--line); }
  .process-6 article:nth-child(4) { border-left: 0; }
}
@media (max-width: 940px) {
  .process-6 article:nth-child(5) { border-left: 0; border-top: 1px solid var(--line); }
  .process-6 article:nth-child(6) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .process-6 article + article { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
}

/* FAQ accordion */
.faq { border: 1px solid rgba(18,52,153,.56); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--p-800); }
.faq details { background: transparent; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { padding: 22px 28px; font-family: Manrope, sans-serif; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--p-050); font-size: 1.5rem; font-weight: 300; flex-shrink: 0; }
.faq details[open] > summary::after { content: '−'; }
.faq .faq-body { padding: 0 28px 24px; color: var(--muted); }
.faq .faq-body p { margin: 0 0 10px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* section-line: subtle left-border accent on split sections */
.section-line > .container { border-left: 3px solid rgba(18,52,153,.55); padding-left: calc(clamp(10px,2.2vw,28px) + 20px); }
@media (max-width: 640px) { .section-line > .container { border-left: 0; padding-left: 0; } }
