/* X’Valor Innovation — one-pager. No framework, no external requests. */

:root {
  --navy: #003282;
  --ink: #022153;
  --deep: #011538;
  --red: #ec0045;
  --sky: #5f8bcd;
  --mist: #acc4ee;
  --paper: #f4f6fb;
  --line: rgba(2, 33, 83, .14);
  --line-l: rgba(255, 255, 255, .16);
  --text: #16233f;
  --muted: #55627e;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--text); background: #fff; -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- typography ---------- */
h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08; letter-spacing: -.01em; color: var(--ink); text-wrap: balance;
}
h2 em, .hero__title em { font-style: italic; color: var(--red); }
.sec--dark h2, .sec--contact h2 { color: #fff; }
.sec--dark h2 em, .sec--contact h2 em { color: #ff7a9c; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font: 600 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
}
.eyebrow--light { color: var(--mist); }
.eyebrow .num { color: var(--red); }
.eyebrow .num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; opacity: .6; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(236,0,69,.6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(236,0,69,0); } 100% { box-shadow: 0 0 0 0 rgba(236,0,69,0); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn--sm { padding: 11px 18px; font-size: .85rem; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(236,0,69,.7); }
.btn--red:hover { transform: translateY(-2px); background: #ff1a5a; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.nav.is-solid { background: rgba(1, 21, 56, .82); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line-l); }
.nav__inner { width: min(var(--wrap), 100% - 48px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { color: rgba(255,255,255,.82); text-decoration: none; font-size: .9rem; font-weight: 500; position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: #fff; }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(90deg, rgba(1,21,56,.88) 0%, rgba(1,21,56,.55) 45%, rgba(1,21,56,.2) 100%),
    linear-gradient(180deg, rgba(1,21,56,.5) 0%, rgba(1,21,56,0) 25%, rgba(1,21,56,0) 70%, rgba(1,21,56,.9) 100%),
    url("img/background-home.jpg") center / cover no-repeat, var(--deep);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__x { position: absolute; right: 3%; top: 50%; width: min(44vw, 560px); transform: translateY(-50%); z-index: -1; opacity: .9; }
.hero__x path { fill: none; stroke-linecap: round; stroke-width: 1.2; stroke-dasharray: 460; stroke-dashoffset: 460; animation: draw 2.4s .4s var(--ease) forwards; }
.hero__x .x-a { stroke: rgba(172,196,238,.35); }
.hero__x .x-b { stroke: rgba(236,0,69,.75); stroke-width: 2; animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__body { padding-block: 130px 90px; }
.hero__title {
  font-family: var(--serif); font-weight: 500; color: #fff; max-width: 15ch;
  font-size: clamp(2.6rem, 7.2vw, 6rem); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance;
}
.hero__lede { margin-top: 30px; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.84); line-height: 1.6; }
.hero__lede strong { color: #fff; font-weight: 600; }
.hero__cta { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__body > * { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero__body > *:nth-child(1) { animation-delay: .1s; } .hero__body > *:nth-child(2) { animation-delay: .25s; }
.hero__body > *:nth-child(3) { animation-delay: .4s; } .hero__body > *:nth-child(4) { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 44px; margin-left: -13px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- strip ---------- */
.strip { background: var(--ink); color: #fff; border-block: 1px solid var(--line-l); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 26px; border-left: 1px solid var(--line-l); display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font: 500 clamp(2rem, 3.4vw, 2.8rem)/1 var(--serif); letter-spacing: -.01em; }
.stat:last-child b { font: 600 .95rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #ff7a9c; }
.stat span { font-size: .85rem; color: var(--mist); }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(80px, 11vw, 150px); overflow: hidden; }
.sec--paper { background: var(--paper); }
.sec--dark { background: linear-gradient(180deg, var(--deep), var(--ink)); color: #fff; }
.sec__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 80px); }
.sec__intro { margin-top: 22px; font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.sec--dark .sec__intro, .sec--contact .sec__intro { color: var(--mist); }

.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-l) 1px, transparent 1px), linear-gradient(90deg, var(--line-l) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent);
}
.sec > .wrap { position: relative; z-index: 1; }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- about ---------- */
.about { display: grid; gap: 40px; }
.about__fig { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink); }
.about__fig img { width: 100%; height: clamp(240px, 34vw, 420px); object-fit: cover; object-position: 75% 35%; }
.about__fig figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 60px 32px 28px; color: #fff; font-size: 1rem; max-width: 60ch;
  background: linear-gradient(180deg, transparent, rgba(1,21,56,.92));
}
.about__fig figcaption span { display: block; margin-bottom: 6px; font: 600 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #ff7a9c; }

.acc { display: grid; gap: 12px; }
.acc details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .3s, border-color .3s; }
.acc details[open] { box-shadow: 0 24px 60px -30px rgba(0,50,130,.35); border-color: rgba(0,50,130,.3); }
.acc summary {
  cursor: pointer; list-style: none; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font: 500 1.35rem/1.25 var(--serif); color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background:
    linear-gradient(var(--red), var(--red)) center / 12px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2px 12px no-repeat;
  transition: transform .4s var(--ease), background-color .3s;
}
.acc details[open] summary::after { transform: rotate(135deg); background-color: #fff0f4; }
.acc details > div { padding: 0 28px 28px; max-width: 78ch; display: grid; gap: 14px; color: var(--muted); animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }
.acc strong { color: var(--ink); }
.note { padding: 16px 20px; border-left: 3px solid var(--red); background: #fff5f8; color: var(--ink); border-radius: 0 10px 10px 0; }

.timeline { display: grid; gap: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-top: 1px dashed var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline b { font: 600 1.05rem/1.4 var(--mono); color: var(--red); }
.cycles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.cycles li { padding: 18px; border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 500; line-height: 1.35; }
.cycles b { display: block; font: 500 2.2rem/1 var(--serif); color: var(--red); margin-bottom: 8px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-l); border: 1px solid var(--line-l); border-radius: var(--r); overflow: hidden; counter-reset: s; }
.step { position: relative; padding: 34px 30px 38px; background: rgba(1,21,56,.92); transition: background .35s; }
.step:last-child { grid-column: span 2; }
.step:hover { background: #062a63; }
.step__n { display: block; margin-bottom: 42px; font: 600 .8rem/1 var(--mono); letter-spacing: .14em; color: var(--red); }
.step h3 { font: 500 1.4rem/1.2 var(--serif); color: #fff; margin-bottom: 12px; }
.step p { color: var(--mist); font-size: .98rem; }
.step::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.step:hover::after { transform: scaleX(1); }

/* ---------- methodology ---------- */
.meth { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); }
.meth__h { font: 600 .78rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.bignum { display: grid; gap: 22px; }
.bignum li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; font-size: 1.1rem; }
.bignum b { font: 500 4.4rem/.8 var(--serif); color: var(--navy); }
.bignum strong { color: var(--ink); }

.rail { position: relative; display: grid; gap: 18px; counter-reset: r; padding-left: 34px; }
.rail::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--red), var(--navy)); }
.rail li { position: relative; counter-increment: r; color: var(--muted); }
.rail li::before { content: ""; position: absolute; left: -34px; top: 9px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.rail strong { color: var(--ink); }

.criteria { margin-top: clamp(60px, 8vw, 110px); }
.criteria ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.criteria li { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: 500 1.08rem/1.35 var(--serif); color: var(--ink); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.criteria li:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 22px 44px -26px rgba(236,0,69,.55); }
.criteria li b { display: block; margin-bottom: 14px; font: 600 .75rem/1 var(--mono); color: var(--red); letter-spacing: .12em; }
.criteria small { display: block; margin-top: 6px; font: 400 .88rem/1.45 var(--sans); color: var(--muted); }
.criteria__note { margin-top: 26px; max-width: 78ch; color: var(--muted); }

.plan { margin-top: clamp(60px, 8vw, 110px); padding: clamp(28px, 4vw, 52px); border-radius: 20px; background: var(--paper); }
.plan__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.plan h4 { font: 500 1.2rem/1.25 var(--serif); color: var(--ink); margin-bottom: 10px; }
.plan p { font-size: .95rem; color: var(--muted); line-height: 1.75; }

/* ---------- contact ---------- */
.sec--contact { background: radial-gradient(120% 90% at 100% 0%, #0a3a8f, var(--deep) 62%); color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__mail { margin: 34px 0 28px; }
.contact__mail a { font: 500 clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--serif); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 4px; transition: color .2s; }
.contact__mail a:hover { color: #ff7a9c; }

.form { display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 42px); border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid var(--line-l); backdrop-filter: blur(10px); }
.form label { display: grid; gap: 8px; font: 600 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; font: 400 1rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: #fff;
  background: rgba(1,21,56,.55); border: 1px solid var(--line-l); border-radius: 10px; transition: border-color .2s, background .2s; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--red); background: rgba(1,21,56,.8); }
.form input:user-invalid, .form textarea:user-invalid { border-color: #ff7a9c; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.4em; font-size: .92rem; color: var(--mist); }

/* ---------- footer ---------- */
.foot { background: #010d24; color: var(--mist); font-size: .88rem; padding-block: 34px; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
.foot img { height: 34px; width: auto; }
.foot a, .linklike { color: #fff; text-decoration: none; border-bottom: 1px solid var(--line-l); }
.foot a:hover, .linklike:hover { border-color: var(--red); }
.linklike { background: none; border: 0; border-bottom: 1px solid var(--line-l); padding: 0; cursor: pointer; }

.legal { max-width: 520px; width: calc(100% - 40px); padding: 34px; border: 0; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); }
.legal::backdrop { background: rgba(1,21,56,.7); backdrop-filter: blur(4px); }
.legal h2 { font-size: 1.8rem; margin-bottom: 16px; }
.legal p { margin-bottom: 10px; }
.legal__todo { padding: 10px 14px; background: #fff5f8; border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; font-size: .9rem; }
.legal .btn { margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-l); }
  .meth, .contact { grid-template-columns: 1fr; }
  .criteria ul, .plan__grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px 24px 30px;
    background: rgba(1,21,56,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-l);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
  }
  .nav__links.open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { font-size: 1.15rem; padding: 12px 0; width: 100%; }
  .nav__links .btn { margin-top: 12px; }
  .nav.menu-open { background: rgba(1,21,56,.97); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap, .nav__inner { width: calc(100% - 36px); }
  .criteria ul, .plan__grid, .cycles, .steps { grid-template-columns: 1fr; }
  .step:last-child { grid-column: auto; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .bignum li { grid-template-columns: 56px 1fr; }
  .bignum b { font-size: 3.4rem; }
  .acc summary { padding: 20px; font-size: 1.15rem; } .acc details > div { padding: 0 20px 22px; }
  .about__fig figcaption { padding: 40px 20px 20px; font-size: .92rem; }
  .hero__x { right: -30%; width: 110vw; opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .reveal, .hero__body > * { opacity: 1; transform: none; }
  .hero__x path { stroke-dashoffset: 0; }
}

/* ---------- services (méthodologie) ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.svc:hover { transform: translateY(-5px); border-color: rgba(236,0,69,.5); box-shadow: 0 30px 60px -34px rgba(0,50,130,.45); }
.svc__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--ink)); color: #fff;
}
.svc__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font: 500 1.35rem/1.2 var(--serif); color: var(--ink); }
.svc p {
  color: var(--muted); font-size: .96rem;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.svc__more {
  align-self: flex-start; margin-top: auto; padding: 6px 0 0; background: none; border: 0; cursor: pointer;
  font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.svc__more span { display: inline-block; transition: transform .3s var(--ease); }
.svc__more::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.svc:hover .svc__more span { transform: translateX(5px); }

/* ---------- modals ---------- */
.modal {
  width: min(860px, calc(100% - 28px)); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: 22px;
  background: #fff; color: var(--text); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.65);
}
.modal[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.modal::backdrop { background: rgba(1,21,56,.72); backdrop-filter: blur(6px); }
.modal__head { position: relative; padding: 110px 40px 30px; color: #fff; background: var(--deep); overflow: hidden; }
.modal__head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; opacity: .45; }
.modal__head::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(1,21,56,.2), rgba(1,21,56,.95)); }
.modal__head > * { position: relative; z-index: 2; }
.modal__head .svc__icon { background: var(--red); margin-bottom: 18px; }
.modal__head h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.modal__head form { position: absolute; top: 18px; right: 18px; z-index: 3; }
.modal__x {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); transition: background .2s, transform .3s var(--ease);
}
.modal__x:hover { background: var(--red); transform: rotate(90deg); }
.modal__x--dark { color: var(--ink); background: var(--paper); border-color: var(--line); float: right; margin: -8px -8px 0 16px; }
.modal__body { padding: 34px 40px 42px; display: grid; gap: 18px; color: var(--muted); }
.modal__lede { font-size: 1.1rem; color: var(--ink); line-height: 1.7; }
.modal__body h4 { margin-top: 10px; font: 600 .76rem/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--navy); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.modal__body strong { color: var(--ink); }
.modal .rail .sub { margin-top: 10px; display: grid; gap: 6px; padding-left: 4px; }
.modal .rail .sub li { padding-left: 16px; position: relative; font-size: .95rem; }
.modal .rail .sub li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--red); border: 0; border-radius: 0; }
.crit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.crit li { padding: 18px; border: 1px solid var(--line); border-radius: 12px; font: 500 1rem/1.3 var(--serif); color: var(--ink); }
.crit b { display: block; margin-bottom: 10px; font: 600 .72rem/1 var(--mono); color: var(--red); letter-spacing: .12em; }
.crit small { display: block; margin-top: 5px; font: 400 .84rem/1.45 var(--sans); color: var(--muted); }
.modal .plan__grid { padding: 26px; border-radius: 16px; background: var(--paper); gap: 24px 22px; }
.modal .plan__grid h5 { margin: 0 0 8px; font: 500 1.1rem/1.25 var(--serif); color: var(--ink); }
.modal .plan__grid p { font-size: .92rem; line-height: 1.7; }
.modal--legal { width: min(760px, calc(100% - 28px)); }
.modal--legal h2 { font-size: 2rem; }
.modal--legal p { font-size: .94rem; }

/* ---------- contact extras ---------- */
.contact__addr { margin-top: 28px; font-style: normal; color: var(--mist); line-height: 1.7; font-size: 1.05rem; }
.contact__mail { margin: 22px 0 28px; }
.form__title { font: 500 1.5rem/1.2 var(--serif); color: #fff; margin-bottom: 4px; }

@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .crit { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services, .crit { grid-template-columns: 1fr; }
  .modal__head { padding: 90px 22px 24px; }
  .modal__body { padding: 26px 22px 32px; }
  .modal .plan__grid { grid-template-columns: 1fr; padding: 20px; }
}
