/* Avora Clinical Partners
 *
 * The Nexsas "investment management" template, 1:1 from its CSS and computed
 * styles (.template/), hand-written without Tailwind: Inter Tight at normal
 * tracking, h1 68/500, h2 52/400, the cool grey page with white 20px and
 * 32px cards, the dotted hero with glass ribbons, pill buttons whose label
 * slides left as a chevron fades in, cut-out portraits over a colour wash,
 * the quote card with its avatar strip, the journal grid, the contact block
 * and the closing call between two glass shapes.
 *
 * Changed on purpose:
 *  - The hue. The template's violet #864FFE and its pink/orange washes are a
 *    formal clinical blue #2350A0 with a teal #4FB3BF, and the ink is navy
 *    #14213D rather than near-black.
 *  - The header and footer are not the template's, on the operator's
 *    instruction. A navy contact strip scrolls away above a white bar that
 *    stays; the footer is light and leads with how to reach a person.
 *  - Muted text is a solid #566072, not ink at 60%, so it passes AA on the
 *    grey cards; one spacing pair (--stack, --block) replaces the template's
 *    mixed gaps.
 *  - No filter: blur() inside rounded clipped boxes (iOS Safari bleeds it);
 *    every wash is a gradient.
 *
 *  1 tokens and base   2 type   3 layout   4 buttons, badges, ticks
 *  5 header, panel, sheet   6 home   7 inner pages   8 forms
 *  9 footer   10 motion
 */

/* ============================================================ 1 TOKENS */
:root {
  --ink: #14213D;
  --ink-2: #2A3756;
  --muted: #566072;          /* 6.3:1 on white, 5.9:1 on --page */
  --accent: #2350A0;         /* 7.7:1 on white */
  --teal: #4FB3BF;
  --aqua: #D7EEF1;
  --page: #F6F8FB;
  --mist: #EEF2F7;
  --snow: #FCFCFD;
  --stroke: #D7DDE5;
  --stroke-2: #E6EAF0;
  --error: #B42318;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --out: cubic-bezier(.25, .46, .45, .94);
  --stack: 28px;            /* between pill, heading, text and buttons, everywhere */
  --block: 56px;            /* above a card grid or a list, and below a page head */
  --sec: 100px;             /* between sections */
  --rise: 120px;            /* how far a cut-out portrait stands above its card */
  --gut: 20px;
  --tb: 40px;
  --bar: 76px;
  --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --chev-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%2314213D' viewBox='0 0 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'/%3E%3C/svg%3E");
  --chev-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='white' viewBox='0 0 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'/%3E%3C/svg%3E");
}
@media (max-width: 1279px) { :root { --sec: 90px; --rise: 100px; } }
@media (max-width: 1023px) { :root { --sec: 80px; --block: 48px; --bar: 68px; --rise: 60px; } }
@media (max-width: 767px)  { :root { --sec: 64px; --block: 40px; --stack: 22px; --tb: 36px; } }
@media (max-width: 639px)  { :root { --gut: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; line-height: 1.5; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.sheet-lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; color: var(--muted); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font); color: var(--ink); font-weight: 400; }
figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.topbar :focus-visible { outline-color: #fff; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px;
}
.skip-link:focus { top: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis-smooth { scroll-behavior: auto !important; }
.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis-stopped { overflow: hidden; }

/* ============================================================== 2 TYPE */
.h2 { font-size: 52px; line-height: 1.2; font-weight: 400; }
.h4 { font-size: 32px; line-height: 1.3; font-weight: 400; }
.h5 { font-size: 24px; line-height: 1.4; font-weight: 400; }
.lede { font-size: 16px; line-height: 1.5; }
.lede--ink { color: var(--ink); }
.accent { color: var(--accent); }
@media (max-width: 1279px) { .h2 { font-size: 44px; } }
@media (max-width: 1023px) { .h2 { font-size: 40px; } }
@media (max-width: 767px)  { .h2 { font-size: 32px; line-height: 1.25; } .h4 { font-size: 26px; } .h5 { font-size: 21px; } }
@media (max-width: 639px)  { .h2 { font-size: 29px; } .h4 { font-size: 24px; } }

/* ============================================================ 3 LAYOUT */
.wrap { width: 100%; max-width: calc(1290px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }
.sec--white { background: #fff; }
/* One gap between sections. Two sections on the same background share it
 * (the second drops its top padding); a page head is followed by its first
 * section at --block; a card with a portrait standing above it adds the rise,
 * so the gap is measured to the top of the head, not the card. */
.sec--top0, .ihead + .sec { padding-top: 0; }
.sec:not(.sec--white) + .sec:not(.sec--white), .sec--white + .sec--white { padding-top: 0; }
.sec--rise { padding-top: calc(var(--sec) + var(--rise)); }
.sec:not(.sec--white) + .sec--rise:not(.sec--white) { padding-top: var(--rise); }

.shead { display: flex; flex-direction: column; align-items: flex-start; gap: var(--stack); margin-bottom: var(--block); max-width: 760px; }
.shead--c { align-items: center; text-align: center; margin-inline: auto; }
.shead--c .lede { max-width: 628px; }
.fcard-head .shead, .mcard-copy .shead, .pcard-copy .shead, .xcard-copy .shead, .contact-side .shead { margin-bottom: 0; }
.center-btn { display: flex; justify-content: center; margin-top: var(--block); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.shead + .btn-row, .shead + div > .btn, .shead + .ticks { margin-top: 0; }
.btn-row--c { justify-content: center; }

.card { background: #fff; border-radius: 20px; padding: 40px; }
@media (max-width: 767px) { .card { padding: 28px 24px; } }

/* ============================================ 4 BUTTONS, BADGES, TICKS */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: fit-content;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 400; text-align: center; white-space: nowrap;
  overflow: hidden;
  transition: background-color .5s ease-in-out, border-color .5s ease-in-out, color .5s ease-in-out, scale .5s ease-in-out, box-shadow .5s ease-in-out;
}
.btn > span { display: inline-block; transition: translate .3s ease-in-out; }
.btn > span::first-letter { text-transform: uppercase; }
.btn::before {
  content: ""; position: absolute; top: 50%; right: 0;
  width: 0; height: 0; translate: 0 -50%; opacity: 0;
  background: center / contain no-repeat;
  transition: all .3s ease-in-out;
}
.btn--md { font-size: 14px; line-height: 21px; padding: 10px 20px; }
.btn--lg { font-size: 16px; line-height: 24px; padding: 14px 32px; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark::before { background-image: var(--chev-ink); }
.btn--light { background: var(--snow); border-color: var(--stroke); color: var(--ink); }
.btn--light::before { background-image: var(--chev-white); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
@media (hover: hover) {
  .btn:hover { scale: 1.02; }
  .btn:hover::before { width: 12px; height: 12px; translate: -16px -50%; opacity: 1; }
  .btn:hover > span { translate: -8px 0; }
  .btn--dark:hover { background: var(--snow); border-color: var(--stroke); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
  .btn--light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
}

.badge {
  display: inline-flex; align-items: center;
  min-height: 33px; padding: 6px 20px;
  border-radius: 999px;
  background: var(--aqua); color: var(--ink);
  font-size: 14px; line-height: 21px;
}

.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); }
.tk { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--aqua); color: var(--ink); }
.tk svg { width: 10px; height: 7px; }
.card--neg .tk { background: var(--mist); }
.card--neg .tk svg { display: none; }
.card--neg .tk::before { content: ""; width: 9px; height: 1.5px; border-radius: 1px; background: var(--ink); }

/* ============================================ 5 HEADER, PANEL, SHEET */
.site-header { position: sticky; top: calc(-1 * var(--tb)); z-index: 100; }
.topbar { height: var(--tb); background: var(--ink); color: rgba(255, 255, 255, .88); font-size: 13px; line-height: 1; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.tb-note { color: inherit; }
.tb-contact { display: flex; align-items: center; gap: 28px; }
.tb-contact li, .tb-contact a { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.tb-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tb-contact svg { width: 15px; height: 15px; }
@media (max-width: 1279px) { .tb-hours { display: none !important; } }
@media (max-width: 1023px) { .tb-mail { display: none !important; } }
@media (max-width: 767px) { .tb-note { display: none; } .topbar-in { justify-content: center; } }

.mainbar { position: relative; background: #fff; border-bottom: 1px solid var(--stroke-2); transition: box-shadow .3s; }
.site-header.is-stuck .mainbar { box-shadow: 0 10px 30px -18px rgba(20, 33, 61, .35); }
.mainbar-in { display: flex; align-items: center; gap: 24px; height: var(--bar); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--ink); }
/* The logo: the pinwheel cross on its own in the brand blue, no tile
 * (operator, 2026-10-20). The viewBox has a little air around the bars, so
 * the mark is drawn slightly larger than the old 44px tile. */
.brand-disc { display: grid; place-items: center; width: 46px; height: 46px; color: var(--accent); }
.brand-disc .mark { width: 50px; height: 50px; }
.brand-word { display: flex; flex-direction: column; gap: 3px; }
.brand-word b { font-size: 24px; line-height: 1; font-weight: 500; letter-spacing: -.01em; }
.brand-word small { font-size: 12px; line-height: 1; color: var(--muted); letter-spacing: .02em; }

.main-nav { margin-left: auto; height: 100%; }
.nav { display: flex; height: 100%; }
.nav > li { display: flex; align-items: stretch; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 14px;
  font-size: 15px; color: var(--ink-2);
  transition: color .2s;
}
.nav-link svg { width: 16px; height: 16px; transition: rotate .3s; }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-link:hover, .nav-link.is-on { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-on::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.has-panel:hover > .nav-link svg, .has-panel:focus-within > .nav-link svg { rotate: 180deg; }
.has-panel.is-shut > .nav-link svg { rotate: 0deg; }

.areas-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--stroke-2);
  box-shadow: 0 24px 40px -24px rgba(20, 33, 61, .3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .25s, visibility 0s .25s;
}
.has-panel:hover .areas-panel, .has-panel:focus-within .areas-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.has-panel.is-shut .areas-panel { opacity: 0; visibility: hidden; }
.ap-in { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding-block: 32px 36px; }
.ap-intro { display: flex; flex-direction: column; gap: 14px; padding-right: 24px; border-right: 1px solid var(--stroke-2); }
.ap-h { font-size: 22px; line-height: 1.3; color: var(--ink); }
.ap-intro p:not(.ap-h) { font-size: 14px; }
.ap-all { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: 15px; color: var(--accent); }
.ap-all svg { width: 16px; height: 16px; transition: translate .3s; }
.ap-all:hover svg { translate: 3px 0; }
.ap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ap-card { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 16px; border-radius: 16px; transition: background .2s; }
.ap-card:hover, .ap-card[aria-current] { background: var(--page); }
.ap-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--aqua); color: var(--ink); }
.ap-ic svg { width: 24px; height: 24px; }
.ap-tx { display: flex; flex-direction: column; gap: 4px; }
.ap-tx b { font-size: 16px; line-height: 1.35; font-weight: 500; color: var(--ink); }
.ap-tx small { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.head-right { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.burger { display: none; place-items: center; width: 46px; height: 46px; border: 1px solid var(--stroke); border-radius: 50%; color: var(--ink); }
.burger svg { width: 22px; height: 22px; }
.burger .bg-close, .burger[aria-expanded="true"] .bg-open { display: none; }
.burger[aria-expanded="true"] .bg-close { display: block; }
@media (max-width: 1199px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  .head-right { margin-left: auto; }
}
@media (max-width: 479px) { .head-cta { display: none; } }

.sheet {
  position: fixed; left: 0; right: 0; top: var(--sheet-top, 116px); bottom: 0; z-index: 99;
  background: #fff; overflow-y: auto;
  opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s;
}
.sheet.is-open { opacity: 1; transform: none; }
.sheet-in { width: 100%; max-width: 720px; margin-inline: auto; padding: 8px var(--gut) 40px; }
.sh-menu > li { border-bottom: 1px solid var(--stroke-2); }
.sh-link, .sh-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; font-size: 21px; line-height: 1.3; color: var(--ink); text-align: left; }
.sh-link[aria-current] { color: var(--accent); }
.sh-toggle svg { width: 20px; height: 20px; transition: rotate .3s; }
.sh-toggle[aria-expanded="true"] svg { rotate: 180deg; }
.sh-sub { padding: 0 0 14px 4px; }
.sh-sub a { display: block; padding: 9px 0 9px 14px; border-left: 2px solid var(--stroke-2); font-size: 16px; color: var(--muted); }
.sh-sub a[aria-current] { border-color: var(--accent); color: var(--ink); }
.sh-foot { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.sh-contact { display: flex; flex-direction: column; gap: 12px; }
.sh-contact li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.sh-contact a { color: var(--ink); }
.sh-contact svg { width: 18px; height: 18px; color: var(--accent); }

/* ============================================================== 6 HOME */
/* -- Hero: white, a 1px dot every 31px, the ribbons below the copy -- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-dots, .ihead-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, #B9C1CD 1px, transparent 1.3px);
  background-size: 31px 31px; background-position: 6px 6px;
}
.hero-dots { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--stack); padding-top: var(--sec); text-align: center; }
.hero-title { max-width: 1140px; font-size: 68px; line-height: 1.1; font-weight: 500; letter-spacing: -.01em; }
.hero-lede { max-width: 804px; }
.hero { padding-bottom: var(--sec); }
/* Three rounded photographs under the buttons, the middle one taller, kept
 * low so the headline stays the first thing you see. (The template's glass
 * ribbons sat here; the operator found them overpowering.) */
.hero-photos { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: end; gap: 16px; max-width: 960px; margin-top: var(--block); }
.hph { overflow: hidden; border-radius: 20px; }
.hph img { width: 100%; height: 100%; object-fit: cover; }
.hph--side { height: 150px; }
.hph--main { height: 200px; }
@media (max-width: 1279px) { .hero-title { font-size: 56px; } }
@media (max-width: 1023px) { .hero-title { font-size: 48px; } .hph--side { height: 130px; } .hph--main { height: 170px; } }
@media (max-width: 767px)  {
  .hero-title { font-size: 38px; line-height: 1.15; }
  .hero-btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .hero-btns .btn { width: 100%; }
  .hero-photos { grid-template-columns: 1fr; }
  .hph--side { display: none; }
  .hph--main { height: 160px; border-radius: 16px; }
}
@media (max-width: 389px) { .hero-title { font-size: 34px; } }

/* -- Two marquee rows, opposite directions, faded at the edges -- */
.trust-h { font-size: 40px; line-height: 1.2; text-align: center; margin-bottom: var(--block); }
@media (max-width: 767px) { .trust-h { font-size: 28px; } }
.mq-wrap { display: flex; flex-direction: column; gap: 32px; }
.mq {
  margin-inline: auto; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mq--wide { max-width: 1200px; }
.mq--narrow { max-width: 900px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.mq-track { display: flex; align-items: center; gap: 56px; width: max-content; padding-right: 56px; }
/* main.js clones the list once, then the pair runs; without it the row wraps. */
.mq.is-ready .mq-track { animation: mq 46s linear infinite; }
.mq:not(.is-ready) .mq-track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 20px; padding-right: 0; margin-inline: auto; }
.mq:not(.is-ready) { -webkit-mask-image: none; mask-image: none; }
.mq--rev .mq-track { animation-direction: reverse; animation-duration: 38s; }
.mq:hover .mq-track, .mq:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-item { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; line-height: 1.3; font-weight: 500; color: var(--muted); transition: color .2s; }
.mq-item svg { width: 32px; height: 32px; }
.mq-item:hover { color: var(--accent); }
.mq-word { font-size: 22px; line-height: 1.3; color: var(--muted); }
@media (max-width: 767px) { .mq-item { font-size: 21px; } .mq-item svg { width: 26px; height: 26px; } .mq-word { font-size: 18px; } .mq-track { gap: 40px; padding-right: 40px; } }

/* -- Feature card: white, 32px, a wash at the top right, six features
 *    around a cut-out portrait -- */
.fcard { position: relative; overflow: hidden; background: #fff; border-radius: 32px; padding: 100px 56px 0; }
.fcard-wash {
  position: absolute; top: -260px; right: -200px; width: 760px; height: 640px; pointer-events: none;
  background:
    radial-gradient(closest-side at 62% 44%, rgba(35, 80, 160, .9), rgba(35, 80, 160, 0) 70%),
    radial-gradient(closest-side at 40% 62%, rgba(79, 179, 191, .75), rgba(79, 179, 191, 0) 80%);
  transform: rotate(-14deg);
  opacity: .85;
}
.fcard-head { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: var(--stack); max-width: 681px; }
.fcard-head .lede { max-width: 448px; }
.fcard-grid { position: relative; z-index: 2; display: flex; align-items: center; max-width: 1056px; margin: var(--block) auto 0; }
.feat-col { flex: 1; display: flex; flex-direction: column; gap: 40px; padding-bottom: 60px; }
.feat { max-width: 270px; }
.feat-col:last-child .feat { margin-left: auto; }
.feat-ic { display: block; width: 40px; height: 40px; margin-bottom: var(--stack); color: var(--ink); }
.feat-ic svg { width: 40px; height: 40px; stroke-width: 1.1; }
.feat-t { font-size: 16px; line-height: 24px; font-weight: 500; }
.feat p { font-size: 14px; line-height: 21px; margin-top: 8px; }
.fcard-fig { flex: none; align-self: flex-end; width: 460px; margin-inline: 24px; }
.fcard-fig img { width: 100%; height: auto; }
@media (max-width: 1023px) {
  .fcard { padding: 64px 32px 0; border-radius: 24px; }
  .fcard-head { align-items: center; text-align: center; margin-inline: auto; }
  .fcard-head .shead { align-items: center; }
  .fcard-grid { flex-wrap: wrap; justify-content: center; }
  .feat-col { flex: 1 1 45%; padding-bottom: 40px; }
  .feat-col:last-child .feat { margin-left: 0; }
  .feat { max-width: none; }
  .fcard-fig { order: 3; width: min(420px, 90%); margin: 0 auto; }
}
@media (max-width: 639px) {
  .fcard { padding: 48px 20px 0; border-radius: 20px; }
  .feat-col { flex-basis: 100%; gap: 28px; padding-bottom: 28px; }
  .feat-col + .fcard-fig + .feat-col, .feat-col:last-of-type { padding-bottom: 40px; }
  .fcard-wash { width: 520px; height: 440px; top: -220px; right: -260px; }
}

/* -- Mission card: the portrait rises above the card over a wash -- */
.mcard { position: relative; display: flex; align-items: center; min-height: 418px; padding: 64px 56px; background: #fff; border-radius: 20px; }
.mcard-wash {
  position: absolute; top: 0; right: 0; bottom: 0; width: 46%; border-radius: 0 20px 20px 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(79, 179, 191, .95), rgba(79, 179, 191, 0) 62%),
    linear-gradient(270deg, rgba(35, 80, 160, .55), rgba(35, 80, 160, 0));
}
.mcard-fig { position: absolute; right: 72px; top: calc(-1 * var(--rise)); bottom: 0; z-index: 1; }
.mcard-fig img { width: auto; height: 100%; max-width: none; }
.mcard-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: var(--stack); max-width: 520px; }
.mcard--flip .ticks li { color: var(--ink-2); }
@media (max-width: 1279px) { .mcard-fig { right: 32px; } .mcard-copy { max-width: 470px; } }
@media (max-width: 1023px) {
  .mcard { flex-direction: column; padding: 0 28px 48px; min-height: 0; text-align: center; }
  .mcard-wash { width: 100%; height: 300px; bottom: auto; border-radius: 20px 20px 0 0;
    background: radial-gradient(90% 100% at 50% 0%, rgba(79, 179, 191, .9), rgba(79, 179, 191, 0) 70%), linear-gradient(180deg, rgba(35, 80, 160, .4), rgba(35, 80, 160, 0)); }
  .mcard-fig { position: relative; right: auto; top: auto; width: min(340px, 86%); margin: calc(-1 * var(--rise)) auto var(--stack); }
  .mcard-fig img { width: 100%; height: auto; }
  .mcard-copy { align-items: center; max-width: 560px; }
  .mcard-copy .shead { align-items: center; }
  .mcard--flip .ticks { text-align: left; }
}

/* -- "Taking part" card: portrait on the left over a wash, two chips -- */
.pcard { position: relative; display: flex; justify-content: flex-end; min-height: 430px; background: #fff; border-radius: 20px; }
.pcard-wash {
  position: absolute; top: 0; left: 0; bottom: 0; width: 48%; border-radius: 20px 0 0 20px; pointer-events: none;
  background:
    radial-gradient(110% 100% at 0% 0%, rgba(35, 80, 160, .95), rgba(35, 80, 160, 0) 60%),
    radial-gradient(90% 90% at 0% 100%, rgba(79, 179, 191, .8), rgba(79, 179, 191, 0) 70%);
}
.pcard-fig { position: absolute; left: 36px; top: calc(-1 * var(--rise)); bottom: 0; z-index: 1; }
.pcard-fig img { width: auto; height: 100%; max-width: none; }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 14px; border-radius: 14px; white-space: nowrap; }
.chip--light { right: -6%; top: 40%; padding: 18px 22px; background: #fff; color: var(--ink); font-size: 22px; line-height: 1.2; box-shadow: 0 20px 40px -20px rgba(20, 33, 61, .35); }
.chip--dark { left: 30%; bottom: 7%; padding: 14px 16px 14px 22px; background: var(--ink); color: #fff; font-size: 16px; }
.chip-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); }
.chip-ic svg { width: 18px; height: 18px; }
.pcard-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--stack); width: 50%; max-width: 587px; padding: 64px 48px 64px 0; }
@media (max-width: 1279px) { .pcard-fig { left: 8px; } .pcard-copy { width: 48%; } .chip--light { font-size: 18px; } }
@media (max-width: 1023px) {
  .pcard { flex-direction: column; min-height: 0; padding: 0 28px 48px; text-align: center; }
  .pcard-wash { width: 100%; height: 300px; bottom: auto; border-radius: 20px 20px 0 0; }
  .pcard-fig { position: relative; left: auto; top: auto; width: min(460px, 100%); margin: calc(-1 * var(--rise)) auto var(--stack); }
  .pcard-fig img { width: 100%; height: auto; }
  .chip--light { right: 0; top: 30%; font-size: 17px; padding: 14px 16px; }
  .chip--dark { left: 50%; translate: -50% 0; bottom: 6%; font-size: 14px; }
  .pcard-copy { width: 100%; align-items: center; padding: 0; margin-inline: auto; max-width: 560px; }
  .pcard-copy .shead { align-items: center; }
}
@media (max-width: 479px) { .chip--light { font-size: 15px; top: 22%; } .chip--dark { padding: 10px 10px 10px 16px; } .chip-ic { width: 28px; height: 28px; } }

/* -- Three service cards -- */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.sgrid--2 { grid-template-columns: repeat(2, 1fr); }
.scard { display: flex; flex-direction: column; gap: 12px; padding: 32px; background: #fff; border-radius: 20px; }
.sec--white .scard { background: var(--page); }
.scard-ic { display: block; width: 48px; height: 48px; margin-bottom: calc(var(--stack) - 12px); color: var(--ink); }
.scard-ic svg { width: 48px; height: 48px; stroke-width: 1.1; }
.scard-num { font-size: 40px; line-height: 1; color: var(--accent); margin-bottom: calc(var(--stack) - 12px); }
.scard-note { margin-top: calc(var(--stack) - 12px); font-size: 14px; color: var(--accent); }
@media (max-width: 1023px) { .sgrid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 767px)  { .sgrid, .sgrid--2 { grid-template-columns: 1fr; gap: 16px; } .scard { padding: 28px 24px; } }

/* -- Split card: copy left, photo right -- */
.xcard { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: 10px 10px 10px 42px; background: #fff; border-radius: 32px; }
.xcard-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--stack); max-width: 520px; padding-block: 40px; }
.xcard-fig { overflow: hidden; border-radius: 24px; height: 570px; }
.xcard-fig img { width: 100%; height: 100%; object-fit: cover; }
.xcard--about .xcard-copy { gap: 0; max-width: 560px; }
.xcard--about .h4 { margin-bottom: var(--stack); }
@media (max-width: 1023px) {
  .xcard { grid-template-columns: 1fr; padding: 32px 10px 10px; border-radius: 24px; gap: 24px; }
  .xcard-copy { align-items: center; text-align: center; margin-inline: auto; padding: 8px 18px 0; }
  .xcard-copy .shead { align-items: center; }
  .xcard--about .xcard-copy { text-align: left; align-items: flex-start; }
  .xcard-fig { height: 420px; border-radius: 18px; }
}
@media (max-width: 639px) { .xcard-fig { height: 280px; } }

/* -- Quote card with the avatar strip: the five volunteer rights -- */
.qcard { max-width: 740px; margin-inline: auto; padding: 56px 44px; background: #fff; border-radius: 20px; text-align: center; }
.q-text { min-height: 101px; font-size: 24px; line-height: 1.4; color: var(--ink); transition: opacity .3s; }
.q-text.is-out { opacity: 0; }
.q-avs { display: flex; align-items: center; justify-content: center; margin: var(--block) 0 12px; }
.av {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; margin-inline: -3px;
  border-radius: 50%; background: var(--aqua); color: var(--ink);
  box-shadow: 0 0 0 2px #fff;
  transition: width .4s var(--ease), height .4s var(--ease), background .4s, color .4s;
}
.av svg { width: 18px; height: 18px; transition: width .4s, height .4s; }
.av.is-on { width: 72px; height: 72px; background: var(--accent); color: #fff; z-index: 1; }
.av.is-on svg { width: 30px; height: 30px; }
.av:not(.is-on):hover { background: #C3E3E8; }
.q-who { display: flex; flex-direction: column; gap: 2px; }
.q-name { font-size: 16px; font-weight: 500; color: var(--ink); }
.q-role { font-size: 14px; }
@media (max-width: 767px) { .qcard { padding: 40px 22px; } .q-text { font-size: 19px; min-height: 135px; } }

/* -- Journal: one big card, two side cards -- */
.jgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.jstack { display: flex; flex-direction: column; gap: 32px; }
.jstack--two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.jcard { overflow: hidden; background: var(--page); border-radius: 20px; transition: scale .5s; }
.sec:not(.sec--white) .jcard { background: #fff; }
@media (hover: hover) { .jcard:hover { scale: 1.02; } }
.jcard-img { display: block; overflow: hidden; }
.jcard-img img { width: 100%; height: 100%; object-fit: cover; }
.jcard--big .jcard-img { height: 260px; }
.jcard-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; }
.jcard-body .meta { margin-bottom: calc(var(--stack) - 12px); }
.jcard-body .btn { margin-top: calc(var(--stack) - 12px); }
.jcard--row { display: flex; gap: 32px; }
.jcard--row .jcard-img { flex: none; width: 47%; min-height: 260px; border-radius: 20px; }
.jcard--row .jcard-body { padding: 32px 32px 32px 0; justify-content: center; }
.jcard .h5 a:hover { color: var(--accent); }
.meta { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.meta > span { display: inline-flex; align-items: center; gap: 8px; }
.meta svg { width: 22px; height: 22px; color: var(--ink); }
.meta .meta-sep { width: 1px; height: 22px; background: var(--stroke); }
@media (max-width: 1279px) { .jgrid { grid-template-columns: 5fr 7fr; align-items: start; } }
@media (max-width: 1023px) { .jgrid, .jstack--two { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
  .jcard--row { flex-direction: column; gap: 0; }
  .jcard--row .jcard-img { width: 100%; min-height: 0; height: 220px; border-radius: 20px 20px 0 0; }
  .jcard--row .jcard-body, .jcard-body { padding: 24px; }
  .jcard--big .jcard-img { height: 220px; }
}

/* -- Contact block -- */
.contact-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; }
.contact-side { display: flex; flex-direction: column; gap: var(--block); max-width: 520px; }
.shead--l { align-items: flex-start; }
.clist { display: flex; flex-direction: column; gap: 24px; }
.clist li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.clist a:hover { color: var(--ink); }
.clist-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); }
.clist-ic svg { width: 20px; height: 20px; }
.sec--white .clist-ic, .icard .clist-ic { background: var(--aqua); }
.form-card { flex: none; width: 100%; max-width: 560px; padding: 42px; background: #fff; border-radius: 20px; }
.form-h { margin-bottom: var(--stack); }
.icards { display: flex; flex-direction: column; gap: 16px; }
.icard { display: flex; align-items: flex-start; gap: 16px; padding: 24px; background: #fff; border-radius: 20px; }
.icard-t { font-size: 18px; line-height: 1.4; font-weight: 500; margin-bottom: 4px; }
.icard p a { color: var(--ink); }
.contact-note { font-size: 14px; }
@media (max-width: 1023px) {
  .contact-row { flex-direction: column; align-items: stretch; gap: var(--block); }
  .contact-side { max-width: none; }
  .form-card { max-width: none; }
}
@media (max-width: 639px) { .form-card { padding: 28px 20px; } }

/* -- Closing call between two glass shapes -- */
.cta { position: relative; overflow: hidden; background: #fff; padding-block: var(--sec); }
.cta-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--stack); text-align: center; }
.cta-in .h2 { max-width: 700px; }
.cta-in .lede { max-width: 700px; }
.cta-glass { position: absolute; pointer-events: none; }
.cta-glass--a { top: -250px; left: -90px; width: 460px; }
.cta-glass--b { bottom: -90px; right: 10px; width: 320px; }
@media (max-width: 1023px) { .cta-glass--a { width: 360px; top: -170px; } .cta-glass--b { width: 260px; bottom: -80px; } }
@media (max-width: 639px) { .cta-glass--a { width: 200px; top: -130px; left: -80px; } .cta-glass--b { width: 140px; bottom: -70px; right: -40px; } }

/* ======================================================= 7 INNER PAGES */
.ihead { position: relative; overflow: hidden; background: var(--page); }
.ihead-dots { -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); opacity: .8; }
.ihead-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--stack); padding-block: var(--sec) var(--block); text-align: center; }
.ihead-title { max-width: 860px; font-size: 56px; line-height: 1.15; font-weight: 500; letter-spacing: -.01em; }
.ihead-title--sm { font-size: 46px; }
.ihead-lede { max-width: 680px; }
@media (max-width: 1023px) { .ihead-title { font-size: 46px; } .ihead-title--sm { font-size: 38px; } }
@media (max-width: 767px) {
  .ihead-title { font-size: 34px; } .ihead-title--sm { font-size: 29px; }
  .ihead .btn-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .ihead .btn-row .btn { width: 100%; white-space: normal; }
}

.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.acard { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 20px; }
.sec--white .acard { background: var(--page); }
.acard-img { display: block; height: 240px; overflow: hidden; }
.acard-img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.acard:hover .acard-img img { scale: 1.04; }
.acard-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 32px 32px; }
.acard-body .btn { margin-top: auto; }
.acard-body p { margin-bottom: calc(var(--stack) - 12px); }
.acard-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--aqua); color: var(--ink); margin-bottom: calc(var(--stack) - 12px); }
.acard-ic svg { width: 24px; height: 24px; }
.acard .h5 a:hover { color: var(--accent); }
@media (max-width: 1023px) { .agrid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 639px)  { .agrid { grid-template-columns: 1fr; } .acard-body { padding: 24px; } .acard-img { height: 210px; } }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sec--white .card { background: var(--page); }
.card-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--aqua); color: var(--ink); margin-bottom: var(--stack); }
.card-ic svg { width: 26px; height: 26px; }
.card .h5 { margin-bottom: 16px; }
@media (max-width: 767px) { .two { grid-template-columns: 1fr; gap: 16px; } }

.asks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.asks li { display: flex; align-items: flex-start; gap: 16px; padding: 24px; background: #fff; border-radius: 16px; color: var(--ink); font-size: 17px; line-height: 1.45; }
.ask-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--aqua); color: var(--ink); }
.ask-ic svg { width: 20px; height: 20px; }
@media (max-width: 767px) { .asks { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; counter-reset: s; }
.step { display: flex; gap: 28px; padding: 36px; background: #fff; border-radius: 20px; }
.step-n { flex: none; font-size: 52px; line-height: 1; color: var(--accent); min-width: 72px; }
.step-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.step-body .btn { margin-top: calc(var(--stack) - 12px); }
.steps--5 { grid-template-columns: 1fr; max-width: 900px; margin-inline: auto; }
@media (max-width: 1023px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .step { flex-direction: column; gap: 16px; padding: 28px 24px; } .step-n { font-size: 40px; } }

.costs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cost { padding: 32px 28px; background: #fff; border-radius: 20px; border-top: 3px solid var(--accent); }
.cost-t { font-size: 18px; line-height: 1.4; font-weight: 500; margin-bottom: 10px; }
@media (max-width: 1023px) { .costs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .costs { grid-template-columns: 1fr; gap: 16px; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.duo figure { overflow: hidden; border-radius: 20px; height: 560px; }
.duo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .duo figure { height: 400px; } }
@media (max-width: 639px) { .duo { grid-template-columns: 1fr; gap: 16px; } .duo figure { height: 280px; } }

.prose p { font-size: 17px; line-height: 1.7; }
.prose p + p { margin-top: 16px; }
.prose--c { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 30px; line-height: 1.25; margin: 48px 0 16px; }
.prose section:first-child h2, .prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; line-height: 1.4; font-weight: 500; margin: 28px 0 8px; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 767px) { .prose p { font-size: 16px; } .prose h2 { font-size: 25px; margin-top: 36px; } }

.legal-grid, .art-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--bar) + 24px); }
.toc-h { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.toc ol { display: flex; flex-direction: column; border-left: 1px solid var(--stroke); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14.5px; color: var(--muted); }
.toc a:hover { color: var(--ink); border-color: var(--accent); }
.legal-body { padding: 56px; }
.legal-body section + section { border-top: 1px solid var(--stroke-2); margin-top: 40px; padding-top: 8px; }
@media (max-width: 1023px) {
  .legal-grid, .art-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .legal-body { padding: 32px 24px; }
}
.art-hero { overflow: hidden; border-radius: 24px; height: 520px; }
.art-hero img { width: 100%; height: 100%; object-fit: cover; }
.art-grid { margin-top: 48px; }
.art-side { position: sticky; top: calc(var(--bar) + 24px); display: flex; flex-direction: column; gap: 32px; }
.art-side .toc { position: static; }
.side-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; background: #fff; border-radius: 20px; }
.side-card p { font-size: 14.5px; }
.side-t { font-size: 18px; color: var(--ink) !important; font-weight: 500; }
.side-card .btn { margin-top: calc(var(--stack) - 12px); }
.art-body { padding: 56px; }
.art-lede { font-size: 20px !important; line-height: 1.55 !important; color: var(--ink) !important; margin-bottom: 40px; }
.art-note { margin-top: 40px !important; padding-top: 24px; border-top: 1px solid var(--stroke-2); font-size: 14px !important; }
@media (max-width: 1023px) { .art-side { position: static; } .art-hero { height: 380px; } .art-body { padding: 32px 24px; } }
@media (max-width: 639px) { .art-hero { height: 240px; border-radius: 18px; } .art-grid { margin-top: 32px; } }

/* FAQ: underline tabs and accordion cards (the template's FAQ page) */
.faq-wrap { max-width: 1290px; }
.ftabs { position: relative; display: flex; justify-content: center; border-bottom: 1px solid var(--stroke); overflow-x: auto; scrollbar-width: none; }
.ftabs::-webkit-scrollbar { display: none; }
.ftab { flex: none; padding: 14px 40px; font-size: 18px; color: var(--muted); transition: color .3s; }
.ftab.is-on { color: var(--ink); }
.ftab-ind { position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--accent); transition: left .5s var(--out), width .5s var(--out); }
.fpanel { max-width: 850px; margin: 72px auto 0; }
.fpanel.is-entering { animation: rise .5s var(--out); }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.acc { display: flex; flex-direction: column; gap: 16px; }
.acc-item { padding: 0 32px; background: #fff; border-radius: 20px; }
.acc-btn { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 28px 0; font-size: 20px; line-height: 1.4; text-align: left; color: var(--ink); }
.acc-btn svg { flex: none; width: 20px; height: 20px; transition: rotate .3s; }
.acc-btn[aria-expanded="true"] svg { rotate: 180deg; }
.acc-panel { overflow: hidden; }
.acc-panel p { padding: 24px 0 32px; border-top: 1px solid var(--stroke); }
@media (max-width: 767px) {
  .ftabs { justify-content: flex-start; }
  .ftab { padding: 12px 18px; font-size: 16px; }
  .fpanel { margin-top: 40px; }
  .acc-item { padding: 0 20px; }
  .acc-btn { font-size: 17px; padding: 22px 0; }
}

/* ============================================================== 8 FORMS */
.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .select select {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--stroke); border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit; font-size: 16px; line-height: 24px;
  transition: border-color .2s, box-shadow .2s;
}
.field input { height: 50px; }
.field input::placeholder, .field textarea::placeholder { color: #667080; }
.field textarea { border-radius: 12px; min-height: 120px; resize: vertical; }
.select { position: relative; }
.select select { height: 50px; padding-right: 44px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.select svg { position: absolute; right: 16px; top: 15px; width: 20px; height: 20px; pointer-events: none; color: var(--ink); }
.field input:focus, .field textarea:focus, .select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 80, 160, .15); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--error); }
.consents { display: flex; flex-direction: column; gap: 14px; }
.check { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 12px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.check-box { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--stroke); border-radius: 50%; background: #fff; color: transparent; transition: background .2s, border-color .2s; }
.check-box svg { width: 10px; height: 7px; }
.check input:checked + .check-box { background: var(--ink); border-color: var(--ink); color: #fff; }
.check input:focus-visible + .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check.is-invalid .check-box { border-color: var(--error); }
.check-text { font-size: 13px; line-height: 20px; color: var(--muted); }
.check-text a, .consent-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent-links { margin-left: 32px; font-size: 13px; line-height: 20px; }
.form-error { display: none; padding: 12px 16px; border-radius: 12px; background: #FEF3F2; color: var(--error); font-size: 14px; }
.form-error.is-shown { display: block; }
.form-done { display: none; flex-direction: column; align-items: flex-start; gap: var(--stack); padding: 8px 0; }
.form-done.is-shown { display: flex; }
.form-done:focus { outline: none; }
.done-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; }
.done-ic svg { width: 22px; height: 16px; }

/* ============================================================= 9 FOOTER */
.site-footer { background: var(--mist); border-top: 1px solid var(--stroke-2); padding-top: var(--sec); }
.f-reach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--stroke); }
.f-id { display: flex; flex-direction: column; gap: 20px; }
.f-id p { max-width: 400px; font-size: 14px; line-height: 1.6; }
.f-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-ways li { display: flex; flex-direction: column; gap: 10px; padding: 4px 28px; border-left: 1px solid var(--stroke); }
.f-way-h { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.f-way-h svg { width: 18px; height: 18px; color: var(--accent); }
.f-way { font-size: 21px; line-height: 1.3; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
a.f-way:hover { color: var(--accent); }
.f-way--sm { font-size: 15px; font-weight: 400; }
.f-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 48px; }
.f-h { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.f-col ul { display: flex; flex-direction: column; gap: 10px; }
.f-link { position: relative; font-size: 15px; color: var(--muted); }
.f-link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .5s; }
.f-link:hover { color: var(--ink); }
.f-link:hover::after { transform: scaleX(1); transform-origin: left; }
.f-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0 32px; border-top: 1px solid var(--stroke); }
.f-bottom p { font-size: 13.5px; }
.f-top { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.f-top svg { width: 16px; height: 16px; transition: translate .3s; }
.f-top:hover svg { translate: 0 -3px; }
@media (max-width: 1023px) {
  .f-reach { grid-template-columns: 1fr; gap: 36px; }
  .f-ways li:first-child { border-left: 0; padding-left: 0; }
  .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .f-ways { grid-template-columns: 1fr; }
  .f-ways li { border-left: 0; padding: 18px 0; border-top: 1px solid var(--stroke); }
  .f-ways li:first-child { border-top: 0; padding-top: 0; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================= 10 MOTION */
/* The template's reveal: opacity 0, 16px blur, 60px offset, 0.6s ease-out,
 * with each element's own delay. Nothing is hidden unless main.js has added
 * html.motion, so the page reads in full without the script. */
[data-reveal] {
  transition-property: opacity, filter, transform;
  transition-duration: .6s;
  transition-timing-function: var(--out);
}
.motion [data-reveal]:not(.is-in) { opacity: 0; filter: blur(16px); transform: translate(var(--rx, 0), var(--ry, 60px)); }
.motion .hero-photos[data-reveal]:not(.is-in), .motion .fcard-wash[data-reveal]:not(.is-in), .motion .mcard-wash[data-reveal]:not(.is-in) { filter: none; }
.hero-photos[data-reveal] { transition-duration: .9s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mq-track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 20px; padding-right: 0; }
  .mq { -webkit-mask-image: none; mask-image: none; }
}

/* A tall form must not strand a short column beside it: the side column
 * travels with the form on wide screens. */
@media (min-width: 1024px) { .contact-side { position: sticky; top: calc(var(--bar) + 32px); } }

/* Phones and tablets: sideways reveals rise instead, so nothing waits
 * outside the screen edge. */
html { overflow-x: clip; }
@media (max-width: 1023px) {
  .motion [data-reveal="right"]:not(.is-in), .motion [data-reveal="left"]:not(.is-in) { transform: translateY(40px); }
}
