/* Mairie de Montbrécy-sur-Orne
   Design system: "Accessible & Ethical" (ui-ux-pro-max), tinted with the
   village's materials — slate roofs, red sandstone, the green Orne, and the
   gold of the coat of arms. */

:root {
  --ardoise: #1f2b37;
  --ardoise-2: #2c3b4a;
  --gres: #a1442a;
  --gres-dark: #7f331e;
  --orne: #2e5e52;
  --orne-light: #e3eeea;
  --or: #d9a93a;
  --bg: #f8f5f0;
  --surface: #ffffff;
  --tint: #efe9df;
  --text: #1b232c;
  --muted: #56616c;
  --border: #e0d9cd;
  --ok: #1f7a4d;
  --ko: #b3261e;
  --focus: #0b63c5;

  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgb(31 43 55 / .06), 0 8px 24px rgb(31 43 55 / .08);
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-5: 48px; --space-6: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--ardoise); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.1875rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--gres-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .9375rem; color: var(--muted); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.ic--lg { width: 32px; height: 32px; color: var(--gres); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ardoise); color: #fff; padding: 12px 18px; border-radius: var(--r); }
.skip:focus { top: 16px; }

/* ---------- Utility bar & header ---------- */
.utility { background: var(--ardoise); color: #dfe5ea; font-size: .9375rem; }
.utility__in { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-block: 8px; }
.utility p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.utility a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.utility a:hover { text-decoration: underline; }
.utility__urg .ic { color: var(--or); }
.utility__urg { gap: 6px !important; }

.masthead { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.masthead::after { content: ""; position: absolute; inset: auto 0 -4px; height: 4px; background: linear-gradient(90deg, var(--gres) 0 33.3%, var(--or) 33.3% 66.6%, var(--orne) 66.6%); }
.masthead__in { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ardoise); margin-right: auto; }
.brand img { width: auto; height: 76px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__pre { font: 500 .8125rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--gres); }
.brand__name { font: 700 clamp(1.2rem, 1rem + 1vw, 1.625rem)/1.15 var(--font-head); letter-spacing: -.01em; }
.brand__motto { font-style: italic; color: var(--muted); font-size: .9375rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r);
  font: 500 1rem/1.2 var(--font-head); color: var(--ardoise); text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { background: var(--ardoise); color: #fff; }
.navtoggle { display: none; }

@media (max-width: 1060px) {
  .navtoggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
    border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); color: var(--ardoise);
    font: 600 1rem var(--font-head); cursor: pointer;
  }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 16px 20px; }
  .nav a { min-height: 48px; font-size: 1.0625rem; }
}
@media (max-width: 560px) {
  .brand img { height: 60px; }
  .brand__motto { display: none; }
  .utility__contact { display: none !important; }
  .navtoggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  background: var(--gres); color: #fff; border: 0; border-radius: var(--r); cursor: pointer;
  font: 600 1rem/1.2 var(--font-head); text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--gres-dark); }
.btn:hover .ic { transform: translateX(3px); }
.btn .ic { transition: transform .2s var(--ease); }
.btn--light { background: #fff; color: var(--ardoise); }
.btn--light:hover { background: var(--tint); }
.btn--ghost { background: transparent; color: var(--ardoise); box-shadow: inset 0 0 0 2px var(--ardoise); }
.btn--ghost:hover { background: var(--ardoise); color: #fff; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 1rem var(--font-head); color: var(--gres-dark); }

/* ---------- Hero slideshow ---------- */
.hero { position: relative; background: var(--ardoise); color: #fff; }
.hero__slides { position: relative; height: clamp(440px, 74vh, 720px); overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s linear; }
.slide.is-active img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(15 22 30 / .88) 0%, rgb(15 22 30 / .55) 38%, rgb(15 22 30 / 0) 70%); }
.slide__cap { position: absolute; left: 0; right: 0; bottom: 96px; z-index: 1; }
.slide__cap > * { max-width: 640px; }
.slide__kicker { display: inline-block; font: 600 .875rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ardoise); background: var(--or); padding: 8px 12px; border-radius: 6px; margin-bottom: 16px; }
.slide__title { color: #fff; font-size: clamp(1.75rem, 1.1rem + 3vw, 3.25rem); font-weight: 700; margin-bottom: 12px; text-shadow: 0 2px 16px rgb(0 0 0 / .35); }
.slide__text { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: #eef1f4; margin-bottom: 22px; }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 2; }
.dots { display: flex; gap: 4px; }
.dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.dots button::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .45); transition: background-color .3s, width .3s var(--ease); }
.dots button[aria-current="true"]::before { background: var(--or); width: 40px; }
.dots button:hover::before { background: #fff; }
.hero__btns { display: flex; gap: 8px; }
.ctrl { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .5); background: rgb(15 22 30 / .45); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background-color .2s; }
.ctrl:hover { background: rgb(15 22 30 / .75); }
@media (max-width: 640px) {
  .slide__cap { bottom: 84px; }
  .dots button { width: 32px; }
  .dots button::before { width: 18px; }
  .dots button[aria-current="true"]::before { width: 26px; }
  .ctrl { width: 44px; height: 44px; }
}

/* ---------- Quick access ---------- */
.quick { position: relative; z-index: 3; margin-top: -1px; background: var(--surface); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow); padding: 24px; }
.quick__t { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gres); margin-bottom: 16px; }
.quick__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
.quick__grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  min-height: 112px; padding: 14px 10px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--border);
  color: var(--ardoise); text-decoration: none; font: 500 .9375rem/1.25 var(--font-head);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.quick__grid .ic { width: 28px; height: 28px; color: var(--gres); transition: color .2s; }
.quick__grid a:hover { background: var(--ardoise); border-color: var(--ardoise); color: #fff; transform: translateY(-2px); }
.quick__grid a:hover .ic { color: var(--or); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ardoise); color: #e7ecf0; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: var(--or); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.eyebrow { font: 600 .875rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--gres); margin-bottom: 10px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 12px; }
.card hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.card--contact { border-top: 4px solid var(--gres); }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ic { color: var(--gres); margin-top: 2px; }
.contact-list a { font-weight: 600; }

/* status + hours tables */
.status { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem var(--font-head); padding: 8px 14px; border-radius: 999px; margin-bottom: 18px; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.status--open { background: #e2f3ea; color: var(--ok); }
.status--closed { background: #fbe9e7; color: var(--ko); }
.hours { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.hours thead th { background: var(--ardoise); color: #fff; font: 600 .875rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.hours tbody th { font-weight: 700; width: 30%; }
.hours tr:last-child > * { border-bottom: 0; }
.hours .closed { color: var(--muted); }
.hours .note { display: block; font-size: .875rem; color: var(--muted); }
.hours tr.is-today { background: var(--orne-light); }
.hours tr.is-today th::after { content: "Aujourd'hui"; display: inline-block; margin-left: 8px; font: 600 .75rem/1 var(--font-head); color: #fff; background: var(--orne); padding: 4px 7px; border-radius: 4px; vertical-align: 2px; }
@media (max-width: 480px) { .hours th, .hours td { padding: 10px; } .hours tr.is-today th::after { display: block; width: fit-content; margin: 6px 0 0; } }

/* ---------- News ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.news__item { background: var(--surface); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--border); display: flex; flex-direction: column; }
.news__item p { color: #3a4550; }
.news__date { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: .9375rem; color: var(--muted) !important; }
.tag { display: inline-block; align-self: flex-start; font: 600 .8125rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; background: var(--orne-light); color: var(--orne); padding: 6px 10px; border-radius: 6px; margin-bottom: 14px; }
.tag--warn { background: #fbeee0; color: #8a4b0a; }

/* ---------- Agenda ---------- */
.agenda { list-style: none; margin: 0 0 12px; padding: 0; }
.agenda li { display: flex; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.agenda time { flex: none; width: 68px; height: 68px; border-radius: var(--r); background: var(--ardoise); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 500 .8125rem/1 var(--font-head); text-transform: uppercase; }
.agenda time b { font-size: 1.625rem; font-weight: 700; margin-bottom: 4px; color: var(--or); }
.agenda h3 { font-size: 1.0625rem; margin-bottom: 2px; }
.agenda p { margin: 0; color: var(--muted); }
.card--market { background: var(--orne-light); border-color: #c9ddd5; }
.card--market .ic--lg { color: var(--orne); margin-bottom: 10px; }

/* ---------- Mayor ---------- */
.mayor { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.mayor__crest { width: 100%; filter: drop-shadow(0 12px 30px rgb(0 0 0 / .35)); }
.mayor h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); font-weight: 500; line-height: 1.3; }
.mayor p { max-width: 68ch; }
.mayor__sign { color: #c7d0d8; }
.mayor__sign strong { color: #fff; }
@media (max-width: 720px) { .mayor { grid-template-columns: 1fr; } .mayor__crest { width: 140px; } }

/* ---------- Points of interest + figures ---------- */
.poi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.poi li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.poi .ic { width: 32px; height: 32px; color: var(--orne); margin-bottom: 14px; }
.poi p { margin: 0; color: #3a4550; }
.figures { margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--border); }
.figures div { padding: 24px 8px 0; }
.figures dt { color: var(--muted); font-size: .9375rem; order: 2; }
.figures dd { margin: 0 0 4px; font: 700 clamp(2rem, 1.5rem + 2vw, 2.75rem)/1 var(--font-head); color: var(--gres); font-variant-numeric: tabular-nums; }
.figures div { display: flex; flex-direction: column-reverse; }

/* ---------- Inner pages ---------- */
.pagehead { background: var(--ardoise); color: #e7ecf0; padding-block: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.pagehead h1 { color: #fff; margin-bottom: 12px; }
.pagehead p { max-width: 64ch; font-size: 1.1875rem; margin: 0; }
.pagehead .crumbs { font-size: .9375rem; margin-bottom: 18px; color: #c7d0d8; }
.pagehead .crumbs a { color: #fff; }
.pagehead--img { background-size: cover; background-position: center; }
.pagehead--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(15 22 30 / .9), rgb(15 22 30 / .55)); }
.pagehead > .wrap { position: relative; }

.layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.toc h2 { font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gres); margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 40px; padding: 6px 10px; border-radius: 8px; color: var(--ardoise); text-decoration: none; font-weight: 600; }
.toc a:hover { background: var(--tint); }
@media (max-width: 920px) { .layout { grid-template-columns: 1fr; } .toc { position: static; } .toc ul { display: flex; flex-wrap: wrap; gap: 4px; } .toc a { background: var(--bg); } }

.block { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.block:last-child { border-bottom: 0; }
.block > h2 { display: flex; align-items: center; gap: 12px; }
.block > h2 .ic { width: 30px; height: 30px; color: var(--gres); }
.block p, .block li { max-width: 72ch; }
.lead { font-size: 1.1875rem; color: #3a4550; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.svc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px; }
.svc h3 { display: flex; align-items: center; gap: 10px; }
.svc h3 .ic { color: var(--orne); }
.svc dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 1rem; }
.svc dt { font-weight: 700; color: var(--ardoise); }
.svc dd { margin: 0; }
.svc p:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--gres); transform: rotate(45deg); }

.callout { display: flex; gap: 14px; background: var(--orne-light); border-left: 4px solid var(--orne); border-radius: var(--r); padding: 16px 20px; margin: 16px 0; }
.callout .ic { color: var(--orne); margin-top: 3px; }
.callout p { margin: 0; }
.callout--warn { background: #fbeee0; border-color: #c46a12; }
.callout--warn .ic { color: #8a4b0a; }

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.people li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.people .avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ardoise); color: var(--or); display: grid; place-items: center; font: 700 1.0625rem var(--font-head); }
.people strong { display: block; font-family: var(--font-head); color: var(--ardoise); }
.people span { color: var(--muted); font-size: .9375rem; }

.docs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.docs li + li { border-top: 1px solid var(--border); }
.docs a, .docs span { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 18px; text-decoration: none; color: var(--ardoise); font-weight: 600; }
.docs a:hover { background: var(--tint); }
.docs .ic { color: var(--gres); }
.docs small { margin-left: auto; color: var(--muted); font-weight: 400; white-space: nowrap; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gres); box-shadow: 0 0 0 3px var(--bg); }
.timeline b { font-family: var(--font-head); color: var(--gres-dark); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.gallery img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 18px 20px 20px; }
.gallery figcaption h3 { margin-bottom: 6px; }
.gallery figcaption p { margin: 0; color: #3a4550; }

.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); font-variant-numeric: tabular-nums; }
.data th, .data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data thead th { background: var(--tint); font: 600 .9375rem var(--font-head); color: var(--ardoise); }

/* forms */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ardoise); }
.field .hint { display: block; font-size: .9375rem; color: var(--muted); margin: -2px 0 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #b9b1a3; border-radius: var(--r); background: #fff; color: var(--text);
  font: 400 1.0625rem/1.4 var(--font-body);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--ko); }
.field .err { display: none; color: var(--ko); font-size: .9375rem; margin-top: 6px; font-weight: 600; }
.field [aria-invalid="true"] + .err { display: block; }
.req { color: var(--ko); }

/* ---------- Footer ---------- */
.footer { background: #16202a; color: #c7d0d8; padding-top: 56px; margin-top: 0; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.footer__brand img { width: 64px; }
.footer__brand strong { color: #fff; font-family: var(--font-head); }
.footer__t { font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--or); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer ul a { display: inline-flex; min-height: 32px; align-items: center; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; border-top: 1px solid #2d3a47; font-size: .9375rem; }
.footer__legal p { margin: 0; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .slide img { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .utility, .nav, .navtoggle, .hero__controls, .quick, .footer__legal ul { display: none !important; }
  .slide:not(.is-active) { display: none; }
}
