/* ==========================================================================
   WeTestify — site.css
   Brand: wine #55273c + champagne #c49a6c (from the logo)
   Type:  Bricolage Grotesque (display, restrained) + Public Sans (body)
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/public-sans-latin.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/public-sans-italic-latin.woff2') format('woff2');
  font-weight: 400 700; font-style: italic; font-display: swap;
}

:root {
  /* Colour */
  --wine:          #55273c;
  --wine-deep:     #3a1829;
  --wine-ink:      #2a1520;   /* body text */
  --champagne:     #c49a6c;   /* accent: use on wine only, or as fills */
  --champagne-ink: #8a6239;   /* champagne dark enough for text on white */
  --champagne-soft:#efe1cf;
  --paper:         #ffffff;
  --mist:          #f8f2f4;
  --line:          #eadfe3;   /* decorative separators only */
  --field-border:  #9a8590;   /* form field outlines: 3.4:1 on white (WCAG 1.4.11) */
  --muted:         #6b5562;
  --success:       #3f8f6a;
  --error:         #b3261e;

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Public Sans', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --fs-sm:   0.875rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.25rem;
  --fs-lg:   clamp(1.4rem, 1.15rem + 0.9vw, 1.75rem);
  --fs-xl:   clamp(2rem, 1.45rem + 2.2vw, 3rem);
  --fs-hero: clamp(2.5rem, 1.55rem + 4.2vw, 4.75rem);

  /* Space & shape */
  --gutter:  clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--wine-ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wine);
  text-wrap: balance;
}
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); letter-spacing: -0.01em; line-height: 1.25; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--champagne); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--wine); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm);
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { --max: 860px; }

.eyebrow {
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--champagne-ink); margin-bottom: 1rem;
}
.on-dark .eyebrow { color: var(--champagne); }

/* ── Buttons & links ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .9375rem; }
.btn--primary { background: var(--wine); color: #fff; }
.btn--primary:hover { background: var(--wine-deep); }
.btn--accent { background: var(--champagne); color: var(--wine-ink); }
.btn--accent:hover { background: var(--champagne-soft); }
.btn--ghost { border-color: currentColor; color: var(--wine); }
.btn--ghost:hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.on-dark .btn--ghost { color: #fff; }
.on-dark .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--wine); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.link-arrow { font-weight: 600; color: var(--wine); text-decoration: none; border-bottom: 2px solid var(--champagne); }
.link-arrow:hover { border-bottom-color: var(--wine); }
.on-dark .link-arrow { color: #fff; }
.on-dark .link-arrow:hover { border-bottom-color: #fff; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { margin-right: auto; padding: .25rem 0; }
.brand img { height: 34px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__links { display: flex; gap: 1.5rem; }
.site-nav__links a {
  text-decoration: none; font-weight: 500; color: var(--wine-ink);
  padding: .4rem 0; background: linear-gradient(var(--champagne), var(--champagne)) left bottom / 0 2px no-repeat;
  transition: background-size .25s var(--ease);
 white-space: nowrap;}
.site-nav__links a:hover { background-size: 100% 2px; }

.lang-switch { display: flex; gap: .25rem; font-size: var(--fs-sm); }
.lang-switch a {
  display: block; padding: .35rem .5rem; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600; color: var(--muted);
}
.lang-switch a:hover { color: var(--wine); background: var(--mist); }
.lang-switch a[aria-current] { color: var(--wine); background: var(--mist); }

.nav-toggle {
  display: none; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem .9rem;
  background: none; border: 1.5px solid var(--line); border-radius: 999px;
  font: 600 .9375rem var(--font-body); color: var(--wine); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(42, 21, 32, .25);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav__links { flex-direction: column; gap: 0; }
  .site-nav__links a { display: block; padding: .8rem 0; font-size: var(--fs-md); border-bottom: 1px solid var(--line); background: none; }
  .site-header__inner { flex-wrap: wrap; }
  .no-js .site-nav { width: 100%; flex-wrap: wrap; padding-bottom: 1rem; }
}

/* ── Hero (signature moment: the pre-launch check) ────────────────────── */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) var(--section); background: linear-gradient(180deg, var(--mist), var(--paper) 85%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.hero__title { font-size: var(--fs-hero); font-weight: 700; line-height: 1.04; letter-spacing: -0.022em; max-width: 14ch; }
.hero__title em {
  font-style: normal; color: var(--wine);
  background: linear-gradient(transparent 60%, var(--champagne-soft) 60%, var(--champagne-soft) 92%, transparent 92%);
}
.hero__lede { margin-top: 1.5rem; font-size: var(--fs-md); line-height: 1.55; max-width: 38ch; color: var(--wine-ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__hint { margin-top: 1.25rem; font-size: var(--fs-sm); color: var(--muted); }

.check {
  position: relative;
  background: var(--wine-deep); color: #fff;
  border-radius: var(--r-lg); padding: 1.25rem 1.5rem 1.75rem;
  box-shadow: 0 40px 80px -40px rgba(58, 24, 41, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.check__bar {
  display: flex; align-items: center; gap: .9rem;
  padding: .6rem .85rem; margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, .07); border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: rgba(255, 255, 255, .8);
  font-variant-numeric: tabular-nums;
}
.check__dots, .check__dots::before, .check__dots::after { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.check__dots { position: relative; margin-left: 16px; flex: none; }
.check__dots::before, .check__dots::after { content: ''; position: absolute; top: 0; }
.check__dots::before { left: -13px; }
.check__dots::after { left: 13px; }
.check__domain { margin-left: 1rem; }
.check__label { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 650; color: #fff; margin-bottom: 1rem; }
.check__list { display: grid; gap: .25rem; }
.check__list li {
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .92);
}
.check__mark {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--champagne); color: var(--wine-deep);
}
.check__mark { position: relative; }
.check__mark svg { width: 16px; height: 16px; grid-area: 1 / 1; }
.check__ko { opacity: 0; color: #fff; }
.check__tag {
  display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px;
  background: rgba(196, 154, 108, .18); color: var(--champagne-soft);
  font-size: .75rem; font-weight: 600; vertical-align: .1em;
}
.check__result {
  margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(196, 154, 108, .16); color: var(--champagne-soft);
  font-weight: 600; font-size: var(--fs-sm);
}

/* Timeline. The static styles above ARE the final state, so with reduced motion
   (or no JS) the panel simply shows every check passed. The 4th item (.check__fix)
   fails first, then is fixed. Animations wait until site.js adds .is-live (in view). */
@media (prefers-reduced-motion: no-preference) {
  .check__list li:nth-child(1) { --d: .3s; }
  .check__list li:nth-child(2) { --d: .65s; }
  .check__list li:nth-child(3) { --d: 1s; }
  .check__list li:nth-child(4) { --d: 1.35s; }
  .check__list li:nth-child(5) { --d: 2.75s; }

  .check__list li { animation: row-in .4s var(--ease) var(--d) both; }
  .check__mark { animation: mark-pass .3s var(--ease) calc(var(--d) + .4s) both; }
  .check__ok { animation: icon-in .25s var(--ease) calc(var(--d) + .5s) both; }

  .check__fix .check__mark {
    animation: mark-fail .25s var(--ease) calc(var(--d) + .4s) both,
               mark-fixed .35s var(--ease) calc(var(--d) + 1.25s) forwards;
  }
  .check__fix .check__ko { animation: ko-flash .9s linear calc(var(--d) + .45s) both; }
  .check__fix .check__ok { animation-delay: calc(var(--d) + 1.35s); }
  .check__tag { animation: tag-in .3s var(--ease) calc(1.35s + 1.4s) both; }
  .check__result { animation: row-in .4s var(--ease) 3.3s both; }

  .js .check:not(.is-live) * { animation-play-state: paused; }
}
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes mark-pass { from { background: rgba(255, 255, 255, .12); transform: scale(.85); } }
@keyframes mark-fail { from { background: rgba(255, 255, 255, .12); } to { background: #d64550; } }
@keyframes mark-fixed { from { background: #d64550; } to { background: var(--champagne); } }
@keyframes icon-in { from { opacity: 0; transform: scale(.4); } }
@keyframes ko-flash { 0% { opacity: 0; } 12%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tag-in { from { opacity: 0; transform: translateX(-4px); } }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__intro { margin-top: 1rem; font-size: var(--fs-md); color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.service h3 { font-size: var(--fs-lg); margin-bottom: .75rem; }
.service h3::before {
  content: ''; display: block; width: 2.5rem; height: 4px; border-radius: 2px;
  background: var(--champagne); margin-bottom: 1.25rem;
}
.service p { color: var(--muted); }

.quality {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
  padding: clamp(2rem, 4vw, 3.5rem); border-radius: var(--r-lg);
  background: var(--wine); color: rgba(255, 255, 255, .9);
}
.quality h3 { font-size: var(--fs-xl); color: #fff; line-height: 1.05; }
.quality p { font-size: var(--fs-md); line-height: 1.6; }

/* Steps — a genuine sequence, so they are numbered */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: block;
  font: 750 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--font-display);
  color: var(--champagne); margin-bottom: 1rem; letter-spacing: -0.03em;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
}
.plan--highlight { background: var(--wine); border-color: var(--wine); color: rgba(255, 255, 255, .9); }
.plan__badge {
  position: absolute; top: clamp(1.75rem, 3vw, 2.5rem); right: clamp(1.75rem, 3vw, 2.5rem);
  padding: .25rem .75rem; border-radius: 999px;
  background: var(--champagne); color: var(--wine-ink); font-size: .8125rem; font-weight: 700;
}
.plan__name { font-size: var(--fs-lg); }
.plan--highlight .plan__name { color: #fff; }
.plan__users { font-size: var(--fs-sm); font-weight: 600; color: var(--champagne-ink); margin-top: .25rem; }
.plan--highlight .plan__users { color: var(--champagne); }
.plan__tagline { margin-top: .75rem; color: var(--muted); min-height: 3.2em; }
.plan--highlight .plan__tagline { color: rgba(255, 255, 255, .78); }
.plan__price { margin-top: 1.5rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; }
.plan__amount { font: 750 clamp(2.5rem, 2rem + 2vw, 3.25rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--wine); }
.plan__amount--text { font-size: var(--fs-xl); }
.plan--highlight .plan__amount { color: #fff; }
.plan__per { font-size: var(--fs-sm); color: var(--muted); }
.plan--highlight .plan__per { color: rgba(255, 255, 255, .75); }
.plan__setup { margin-top: .5rem; font-size: var(--fs-sm); color: var(--muted); }
.plan--highlight .plan__setup { color: rgba(255, 255, 255, .75); }
.plan__cta { margin-top: 1.5rem; }
.plan__features { margin-top: 1.75rem; display: grid; gap: .65rem; font-size: .9875rem; }
.plan__features li { padding-left: 1.25rem; position: relative; }
.plan__features li::before {
  content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--champagne);
}
.plan__details { margin-top: auto; padding-top: 1.75rem; }
.plan__details summary {
  cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--wine);
  padding-top: 1rem; border-top: 1px solid var(--line); list-style-position: inside;
}
.plan--highlight .plan__details summary { color: #fff; border-top-color: rgba(255, 255, 255, .15); }
.plan__details dl { margin-top: 1rem; font-size: var(--fs-sm); }
.plan__details dt { font-weight: 700; margin-top: .75rem; }
.plan__details dd { margin: .2rem 0 0; color: var(--muted); }
.plan--highlight .plan__details dd { color: rgba(255, 255, 255, .78); }

.note {
  margin-top: 2rem; padding: 1rem 1.25rem; border-radius: var(--r-md);
  background: var(--mist); font-size: var(--fs-sm); color: var(--wine-ink); max-width: 60rem;
}
.section--mist .note { background: var(--paper); }
.note + .note { margin-top: .75rem; }
/* Notes under the plans: two columns aligned with the cards above. */
.plans__notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.plans__notes .note { margin: 0; max-width: none; }

/* À la carte */
.offers { display: grid; }
.offer { padding-block: 1.75rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.offer:last-child { border-bottom: 1px solid var(--line); }
.offer__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1.5rem; }
.offer h3 { font-size: var(--fs-lg); }
.offer__price { font-weight: 700; color: var(--wine); white-space: nowrap; }
.offer__price span { font-weight: 500; font-size: var(--fs-sm); color: var(--muted); }
.offer > p { color: var(--muted); max-width: 60ch; }
.offer .link-arrow { justify-self: start; margin-top: .25rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); }
.about__story p:not(.eyebrow) { margin-top: 1.25rem; font-size: var(--fs-md); line-height: 1.6; max-width: 38em; }
.about__story h2 { margin-bottom: .5rem; }
.about__founders { display: grid; gap: 2.5rem; align-content: start; padding-top: .5rem; }
.founder { padding-left: 1.5rem; border-left: 4px solid var(--champagne); }
.founder h3 { font-size: var(--fs-lg); }
.founder__role { font-size: var(--fs-sm); font-weight: 600; color: var(--champagne-ink); margin: .25rem 0 .75rem; }
.founder p:not(.founder__role) { color: var(--muted); }
.founder__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; }

/* Contact */
.contact { background: var(--wine-deep); color: rgba(255, 255, 255, .88); }
.contact h2 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__intro > p:not(.eyebrow) { margin-top: 1rem; font-size: var(--fs-md); max-width: 34ch; }
.contact__info { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.contact__info dt { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); font-weight: 600; color: var(--champagne); }
.contact__info dt svg { width: 18px; height: 18px; }
.contact__info dd { margin: .2rem 0 0; }
.contact__info a { color: #fff; text-underline-offset: 3px; }
.contact__panel {
  background: var(--paper); color: var(--wine-ink);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.75rem);
}
.contact__panel :focus-visible { outline-color: var(--wine); }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font: inherit; color: inherit; background: var(--paper);
  border: 1.5px solid var(--field-border); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(85, 39, 60, .18);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: var(--fs-sm); color: var(--error); font-weight: 500; }
.form__privacy { font-size: var(--fs-sm); color: var(--muted); }
.form__privacy a { color: var(--wine); }
.form__submit { justify-self: start; }
.form__status { color: var(--error); font-weight: 500; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success h3 { font-size: var(--fs-xl); margin-bottom: .75rem; }
.form-success:focus { outline: none; }

/* ── Consulting page ──────────────────────────────────────────────────── */
.cv-hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.cv-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: end; }
.cv-hero__title { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.022em; line-height: 1; color: var(--wine); }
.cv-hero__role { margin-top: 1rem; font-weight: 600; color: var(--champagne-ink); }
.cv-hero__lead { margin-top: 1.5rem; font-size: var(--fs-md); line-height: 1.6; max-width: 38em; }
.cv-hero__status { margin-top: 1rem; color: var(--muted); max-width: 38em; }
.cv-hero .hero__actions { margin-top: 2rem; }
.cv-facts { display: grid; gap: 1.5rem; margin: 0; }
.cv-facts div { display: flex; flex-direction: column-reverse; padding-left: 1.25rem; border-left: 4px solid var(--champagne); }
.cv-facts dd { margin: 0; font: 750 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--wine); }
.cv-facts dt { margin-top: .35rem; color: var(--muted); }

.missions { display: grid; }
.mission {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .5rem 2rem;
  padding-block: 1.75rem; border-top: 1px solid var(--line);
}
.mission:last-child { border-bottom: 1px solid var(--line); }
.mission__period { font-weight: 600; color: var(--wine); font-variant-numeric: tabular-nums; }
.mission__now {
  display: inline-block; margin-left: .35rem; padding: .05rem .55rem; border-radius: 999px;
  background: var(--champagne-soft); color: var(--wine-ink); font-size: .8125rem; font-weight: 700;
}
.mission h3 { font-size: var(--fs-lg); }
.mission__sector { display: block; margin-top: .2rem; font: 500 var(--fs-sm)/1.4 var(--font-body); color: var(--muted); }
.mission__role { margin-top: .6rem; font-weight: 600; color: var(--champagne-ink); }
.mission__body > p:last-child { margin-top: .35rem; color: var(--muted); max-width: 62ch; }

.cv-skills { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 6rem); }
.cv-skills h3 { font-size: var(--fs-lg); margin-bottom: 1rem; }
.cv-skills h3:not(:first-child) { margin-top: 2.5rem; }
.cv-list { display: grid; gap: .6rem; }
.cv-list li { padding-left: 1.25rem; position: relative; }
.cv-list li::before {
  content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--champagne);
}
.cv-tools { display: grid; gap: 1.1rem; margin: 0; }
.cv-tools dt { font-weight: 700; }
.cv-tools dd { margin: .2rem 0 0; color: var(--muted); }

.cv-cta { margin-top: 0; align-items: center; }
.cv-cta h2 { font-size: var(--fs-xl); color: #fff; line-height: 1.05; }
.cv-cta .btn { margin-top: 1.5rem; }

/* ── Réalisations (demo sites) ────────────────────────────────────────── */
.work__title { font-size: var(--fs-xl); }
.works { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.work { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: center; }
.work:nth-child(even) .work__shot { order: 2; }
.work__shot { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(42, 21, 32, .10); }
.work__shot img { width: 100%; transition: transform .5s var(--ease); }
.work__shot:hover img { transform: scale(1.02); }
.work__sector { font-size: var(--fs-sm); font-weight: 600; color: var(--champagne-ink); }
.work h2 { font-size: var(--fs-lg); margin-top: .25rem; }
.work__plan { margin: .4rem 0 1rem; font-weight: 600; color: var(--wine); }
.work__body > p:not([class]) { color: var(--muted); max-width: 38em; }
.work__features { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.75rem; }
.work__features li { padding: .25rem .75rem; border-radius: 999px; background: var(--mist); font-size: var(--fs-sm); font-weight: 600; }
.work__credits { margin-top: 3rem; font-size: var(--fs-sm); color: var(--muted); }

/* ── Legal pages ──────────────────────────────────────────────────────── */
.legal h1 { font-size: var(--fs-xl); margin-top: 2rem; }
.legal__meta { color: var(--muted); margin-top: .5rem; font-size: var(--fs-sm); }
.legal section { margin-top: 2.5rem; }
.legal h2 { font-size: var(--fs-lg); margin-bottom: .75rem; }
.legal section p + p, .legal ul + p { margin-top: .75rem; }
.legal ul { margin: .75rem 0 0; padding-left: 1.25rem; }
.legal li + li { margin-top: .35rem; }
.legal a:not(.link-arrow) { color: var(--wine); text-underline-offset: 3px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--wine); color: rgba(255, 255, 255, .78); padding-block: 4rem 2rem; font-size: .9375rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.site-footer__brand img { width: 84px; }
.site-footer__brand p { margin-top: 1.25rem; max-width: 30ch; }
.site-footer__links { display: grid; gap: .6rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: var(--fs-sm); color: rgba(255, 255, 255, .62);
}

/* ── 404 & root picker ────────────────────────────────────────────────── */
.nf { background: var(--wine-deep); color: rgba(255, 255, 255, .85); min-height: 100vh; display: grid; place-items: center; }
.nf__inner { padding-block: 4rem; display: grid; justify-items: center; text-align: center; gap: 2rem; }
.nf__code { font-size: clamp(5rem, 15vw, 9rem); color: var(--champagne); line-height: 1; }
.nf__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.nf__block { display: grid; gap: .75rem; justify-items: center; align-content: start; }
.nf__block h2 { font-size: var(--fs-lg); color: #fff; }
.nf__langs { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.nf__langs a { color: #fff; font-weight: 600; }

/* ── Scroll reveal (only when JS is running) ──────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 34rem; }
  .plans__notes { grid-template-columns: 1fr; max-width: 34rem; gap: .75rem; }
  .plan__tagline { min-height: 0; }
}
@media (max-width: 860px) {
  .hero__grid, .about, .contact__grid, .quality, .cv-hero__grid, .cv-skills { grid-template-columns: 1fr; }
  .cv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work { grid-template-columns: 1fr; }
  .work:nth-child(even) .work__shot { order: 0; }
  .services { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .nf__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .cv-facts { grid-template-columns: 1fr; }
  .mission { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .brand img { height: 28px; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
