/* =========================================================
   ASCAS Services — Édition éditoriale, fidèle à la charte
   (structure inspirée Sundown, habillage 100% ASCAS)
   Base claire · formes pétales · marine en contraste
   ========================================================= */
:root {
  /* Palette principale (charte) */
  --navy: #001321;
  --blue-light: #d6e7f5;
  --yellow: #f4cf5a;
  --yellow-dark: #e6bd3e;
  --off-white: #f6f1e8;
  --white: #ffffff;

  /* Sémantique — thème clair */
  --bg: var(--off-white);
  --surface: var(--white);
  --fg: var(--navy);
  --fg-muted: #51626d;
  --line: #e7ddcb;
  --line-soft: #efe7d8;

  /* Sur fond marine */
  --on-navy: #f3f0e9;
  --on-navy-muted: #9fb3c4;
  --line-navy: rgba(214, 231, 245, 0.18);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1240px;
  --ease: 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600; /* Montserrat SemiBold, comme la charte */
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
}

::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 30px; }

.display { font-family: var(--font-head); font-weight: 600; line-height: 1.0; letter-spacing: -0.02em; }

/* Sur-titre (small caps espacé, comme "ÉLÉMENTS GRAPHIQUES") */
.tag {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tag::before { content: ""; width: 22px; height: 2px; background: var(--yellow); }
.tag--light { color: var(--on-navy-muted); }

/* =========================================================
   Formes pétales (élément graphique de la charte)
   ========================================================= */
.petal {
  position: absolute;
  border-radius: 0 50% 50% 50%;
  z-index: 0;
  pointer-events: none;
}
.petal--blue { background: var(--blue-light); }
.petal--yellow { background: var(--yellow); }
.petal--navy { background: var(--navy); }
.petal--ring { background: transparent; border: 2px solid var(--blue-light); border-radius: 50%; }

/* =========================================================
   Boutons & liens
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 16px 30px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--yellow); color: var(--navy); }
.btn--primary:hover { background: var(--yellow-dark); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: #0a2236; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); }
.btn--block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { position: relative; display: flex; align-items: center; height: 78px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; display: block; }

/* liens centrés (positionnés au centre, indépendamment du logo/CTA) */
.nav__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 32px; align-items: center; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav__links a {
  position: relative;
  font-family: var(--font-head); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-muted); transition: color var(--ease);
}
.nav__links a:hover { color: var(--navy); }
/* petit trait jaune au survol */
.nav__links a:not(.nav__links-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -7px; width: 100%; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform var(--ease);
}
.nav__links a:not(.nav__links-cta):hover::after { transform: scaleX(1); }
.nav__links-cta { display: none; }

.nav__cta {
  font-family: var(--font-head); font-size: 13.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--white); background: var(--navy);
  padding: 12px 22px; border-radius: 999px; transition: background var(--ease);
}
.nav__cta:hover { background: #0a2236; }

.nav__toggle {
  display: none; width: 44px; height: 44px;
  border: none; border-radius: 12px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; color: var(--navy);
}
.nav__toggle svg { width: 26px; height: 26px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__overlay { display: none; }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; order: 2; margin-right: -6px; }
  .brand { margin-right: auto; }
  .nav__right { display: none; }

  /* Menu plein écran (sous la barre), fond marine */
  .nav__links {
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0; z-index: 120;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--navy);
    padding: 22px 30px calc(40px + env(safe-area-inset-bottom));
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s var(--ease);
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a {
    color: var(--on-navy); font-size: 19px; letter-spacing: 0.04em;
    padding: 20px 2px; border-bottom: 1px solid var(--line-navy);
  }
  .nav__links a:hover { color: var(--yellow); }
  .nav__links a::after { display: none; }
  .nav__links-cta {
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 26px; border-bottom: none !important;
    background: var(--yellow); color: var(--navy) !important;
    padding: 16px 24px; border-radius: 999px; text-transform: uppercase; font-size: 14px;
  }

  .nav__overlay { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding-block: 70px 86px; }
.hero .petal--yellow { width: 360px; height: 360px; top: -120px; left: -90px; transform: rotate(20deg); opacity: 0.9; }
.hero .petal--blue { width: 240px; height: 240px; top: 60px; left: 180px; transform: rotate(-30deg); opacity: 0.8; }
.hero__inner { position: relative; z-index: 2; }
.hero__top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: start; }
.hero__intro { padding-top: 12px; }
.hero__intro p { color: var(--fg-muted); margin-top: 20px; max-width: 34ch; font-size: 1.04rem; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__title { font-size: clamp(2.5rem, 7.5vw, 6.2rem); color: var(--navy); }
.hero__title .accent { color: var(--fg-muted); font-weight: 500; }
.hero__title .y { color: var(--yellow-dark); }

.hero__media { margin-top: 52px; position: relative; z-index: 2; }
.hero__media img { width: 100%; height: clamp(280px, 42vw, 520px); object-fit: cover; border-radius: 20px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px 38px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__meta span { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--navy); font-weight: 500; }
.hero__meta svg { width: 18px; height: 18px; color: var(--yellow-dark); flex: none; }

@media (max-width: 880px) {
  .hero__top { grid-template-columns: 1fr; gap: 24px; }
  .hero__media { margin-top: 36px; }
}

/* =========================================================
   Marquee (bandeau marine — Contraste & impact)
   ========================================================= */
.marquee {
  background: var(--navy);
  padding-block: 22px;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track { display: inline-flex; align-items: center; gap: 0; animation: scroll 100s linear infinite; will-change: transform; }
.marquee__track span {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.8vw, 2rem);
  color: var(--on-navy); letter-spacing: 0.01em;
  margin: 0 15px; /* espacement intégré (pas de gap) pour une boucle pile alignée */
  white-space: nowrap;
}
.marquee__track .dot { color: var(--yellow); }
/* -50% = largeur exacte d'une copie (les 2 copies sont identiques) → boucle sans couture */
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   Statement
   ========================================================= */
.statement { padding-block: 96px; position: relative; overflow: hidden; background: var(--surface); }
.statement .petal--blue { width: 280px; height: 280px; left: -110px; bottom: -120px; transform: rotate(160deg); opacity: 0.7; }
.statement .inner { position: relative; z-index: 1; }
.statement .tag { margin-bottom: 30px; display: inline-flex; }
.statement h2 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 3.5rem); line-height: 1.16; letter-spacing: -0.02em; max-width: 100%;
}
.statement h2 em { color: var(--yellow-dark); font-style: normal; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: 90px; position: relative; overflow: hidden; }
.section--surface { background: var(--surface); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.section__head p { color: var(--fg-muted); max-width: 36ch; margin-top: 14px; }
.section__inner { position: relative; z-index: 1; }

/* Services — liste éditoriale */
.list { border-top: 1px solid var(--line); position: relative; z-index: 1; }
.list__row {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 24px;
  padding: 30px 8px; border-bottom: 1px solid var(--line); position: relative;
  transition: padding-left var(--ease);
}
.list__row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(214,231,245,0.6), transparent); transition: width var(--ease); z-index: -1;
}
.list__row:hover { padding-left: 24px; }
.list__row:hover::before { width: 100%; }
.list__num { font-family: var(--font-head); font-weight: 600; color: var(--fg-muted); font-size: 15px; }
.list__body h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.8rem); letter-spacing: -0.01em; }
.list__body p { color: var(--fg-muted); margin-top: 6px; font-size: 15.5px; max-width: 62ch; }
.list__icon { color: var(--navy); transition: color var(--ease), transform var(--ease); }
.list__icon svg { width: 30px; height: 30px; }
.list__row:hover .list__icon { color: var(--yellow-dark); transform: translateX(4px); }
@media (max-width: 620px) {
  .list__row { grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 4px; }
  .list__icon { display: none; }
}

/* Pour qui — cartes audiences */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.audience__item {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 26px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--off-white);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.audience__item:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,19,33,0.08); border-color: var(--blue-light); }
.audience__icon {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  background: var(--blue-light); color: var(--navy);
  display: grid; place-items: center;
}
.audience__icon svg { width: 26px; height: 26px; }
.audience__item h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; margin-bottom: 5px; }
.audience__item p { color: var(--fg-muted); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; z-index: 1; }
.gallery figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--blue-light); box-shadow: 0 10px 30px rgba(0,19,33,0.06); }
.gallery img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  filter: saturate(0.68) contrast(1.03) brightness(0.99); /* harmonisation charte */
  transition: transform 0.6s var(--ease), filter 0.5s var(--ease);
}
/* voile marine subtil (uniformise les teintes, lisibilité de la légende) */
.gallery figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,19,33,0.10) 0%, rgba(0,19,33,0) 32%, rgba(0,19,33,0.42) 100%);
  transition: opacity 0.5s var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); filter: saturate(1) contrast(1) brightness(1); }
.gallery figure:hover::after { opacity: 0.55; }
.gallery figcaption {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--navy);
  background: rgba(246,241,232,0.94); backdrop-filter: blur(4px);
  padding: 8px 14px; border-radius: 999px;
}
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; } }

/* Engagements */
.engage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.engage__item { padding: 30px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: transform var(--ease), box-shadow var(--ease); }
.engage__item:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,19,33,0.08); }
.engage__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--blue-light); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.engage__icon svg { width: 26px; height: 26px; }
.engage__item h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; margin-bottom: 8px; }
.engage__item p { color: var(--fg-muted); font-size: 15px; }
@media (max-width: 860px) { .engage { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .engage { grid-template-columns: 1fr; } }

/* =========================================================
   Grande citation (panneau marine — Contraste & impact)
   ========================================================= */
.bigquote { background: var(--navy); color: var(--on-navy); padding-block: 100px; text-align: center; position: relative; overflow: hidden; }
.bigquote .petal--yellow { width: 220px; height: 220px; top: -70px; left: -60px; transform: rotate(40deg); opacity: 0.95; }
.bigquote .petal--blue { width: 200px; height: 200px; bottom: -70px; right: -50px; transform: rotate(210deg); opacity: 0.5; }
.bigquote .inner { position: relative; z-index: 1; }
.bigquote blockquote {
  margin: 0 auto; max-width: 14em; text-align: center;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem); line-height: 1.2; letter-spacing: -0.02em;
}
.bigquote p { font: inherit; }
.bigquote .y { color: var(--yellow); }
.bigquote footer {
  margin-top: 22px; color: var(--on-navy-muted);
  font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 1.5; letter-spacing: normal;
}

/* =========================================================
   Contact
   ========================================================= */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; position: relative; z-index: 1; }
.contact > * { min-width: 0; }
.contact__details a { word-break: break-word; }
.section--contact .petal--blue { width: 300px; height: 300px; right: -130px; top: -120px; transform: rotate(120deg); opacity: 0.6; }
.contact__intro h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.contact__intro p { color: var(--fg-muted); margin-top: 16px; max-width: 38ch; }
.contact__details { margin-top: 30px; display: grid; gap: 14px; }
.contact__details a, .contact__details span { display: inline-flex; align-items: center; gap: 13px; font-weight: 500; color: var(--navy); }
.contact__details a:hover { color: var(--yellow-dark); }
.contact__details svg { width: 20px; height: 20px; color: var(--yellow-dark); flex: none; }

.form { width: 100%; max-width: 620px; justify-self: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: 0 16px 44px rgba(0,19,33,0.08); }
.form__row { display: grid; grid-template-columns: 1fr; gap: 0; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--fg-muted); }
.field label .req { color: var(--yellow-dark); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--navy);
  background: var(--off-white); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 15px; min-height: 52px; transition: border-color var(--ease), background var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c7372f; background: #fff7f6; }
.form__note { font-size: 13px; color: var(--fg-muted); margin-top: 4px; }
.form__feedback {
  position: relative;
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  display: none;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid transparent;
}
.form__feedback.is-success {
  display: flex;
  background: linear-gradient(90deg, rgba(214, 231, 245, 0.72), rgba(255, 255, 255, 0.96));
  color: var(--navy);
  border-color: var(--blue-light);
  box-shadow: inset 4px 0 0 var(--yellow);
}
.form__feedback.is-error {
  display: flex;
  background: #fff9f7;
  color: var(--navy);
  border-color: #edc7c1;
  box-shadow: inset 4px 0 0 #c7372f;
}
.form__feedback-icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
}
.form__feedback.is-success .form__feedback-icon {
  background: var(--yellow);
  color: var(--navy);
}
.form__feedback.is-success .form__feedback-icon::before { content: "✓"; }
.form__feedback.is-error .form__feedback-icon {
  background: #c7372f;
  color: var(--white);
}
.form__feedback.is-error .form__feedback-icon::before { content: "!"; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } .form { padding: 26px; } }

/* =========================================================
   Footer (panneau marine + wordmark)
   ========================================================= */
.site-footer { background: var(--navy); color: var(--on-navy); padding-top: 76px; position: relative; overflow: hidden; }
.site-footer .petal--blue { width: 260px; height: 260px; right: -120px; top: 40px; transform: rotate(140deg); opacity: 0.18; }
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid var(--line-navy); }
.footer__grid p { color: var(--on-navy-muted); font-size: 15px; max-width: 34ch; margin-top: 16px; }
.footer__grid img { height: 28px; filter: brightness(0) invert(1); }
.footer__grid h4 { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 16px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__grid ul a { color: var(--on-navy); }
.footer__grid ul a:hover { color: var(--yellow); }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

.wordmark {
  position: relative; z-index: 1;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 0.8;
  font-size: clamp(4rem, 23vw, 20rem); text-align: center;
  color: transparent; -webkit-text-stroke: 1.5px rgba(214, 231, 245, 0.45);
  margin-top: 36px; user-select: none;
}
.footer__legal { position: relative; z-index: 1; padding-block: 26px 40px; text-align: center; font-size: 13px; color: var(--on-navy-muted); }

/* =========================================================
   Page 404
   ========================================================= */
.page-404 { min-height: 100vh; }
.error-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding-block: 82px;
}
.error-hero .petal--yellow {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -100px;
  transform: rotate(18deg);
  opacity: 0.88;
}
.error-hero .petal--blue {
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: 70px;
  transform: rotate(140deg);
  opacity: 0.72;
}
.error-hero .petal--ring {
  width: 430px;
  height: 430px;
  right: 12%;
  top: 8%;
  opacity: 0.65;
}
.error-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 58px;
  align-items: center;
}
.error-hero__content p {
  color: var(--fg-muted);
  margin-top: 22px;
  max-width: 42ch;
  font-size: 1.06rem;
}
.error-hero__title {
  margin-top: 26px;
  max-width: 10ch;
  font-size: clamp(2.8rem, 8vw, 7.1rem);
  color: var(--navy);
}
.error-hero__title .y { color: var(--yellow-dark); }
.error-hero__panel {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}
.error-hero__number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(7.2rem, 17vw, 15rem);
  line-height: 0.82;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 19, 33, 0.18);
  text-shadow: 18px 18px 0 rgba(244, 207, 90, 0.28);
}
.error-hero__card {
  position: absolute;
  right: 8%;
  bottom: 18%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(0, 19, 33, 0.12);
}
.error-hero__card img { width: 42px; height: 42px; object-fit: contain; }
.error-hero__card span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

@media (max-width: 900px) {
  .error-hero {
    min-height: auto;
    padding-block: 64px 76px;
  }
  .error-hero__inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .error-hero__title { max-width: 11ch; }
  .error-hero__panel {
    min-height: 240px;
    place-items: start;
  }
  .error-hero__card {
    right: auto;
    left: 32px;
    bottom: 12px;
  }
}

@media (max-width: 520px) {
  .error-hero { padding-block: 48px 58px; }
  .error-hero__title { font-size: clamp(2.35rem, 16vw, 4.1rem); }
  .error-hero__content p { font-size: 1rem; }
  .error-hero__panel { min-height: 200px; }
  .error-hero__card {
    left: 0;
    bottom: 0;
    max-width: 100%;
  }
}

/* =========================================================
   Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}
