/* =============================================================
   Pax et Vita — Hospice & Home Care
   Single-page static site · vanilla CSS
   Theme palettes set on <html data-theme="…">
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Serene Sage (default) */
  --bg:        #f6f3ec;
  --bg-alt:    #fffdf8;
  --surface:   #ffffff;
  --deep:      #1f3d34;
  --deep-2:    #16302a;
  --text:      #23302a;
  --text-soft: #5a6b62;
  --primary:   #2f6b58;
  --primary-d: #234f41;
  --accent:    #b88a32;
  --accent-soft:#f0e6d0;
  --on-deep:   #eaf1ec;
  --on-deep-soft:#a8c2b6;
  --line:      rgba(35,48,42,0.12);
  --card-sh:   0 1px 2px rgba(31,61,52,.04), 0 14px 34px -18px rgba(31,61,52,.28);
  --card-sh-h: 0 1px 2px rgba(31,61,52,.05), 0 26px 54px -22px rgba(31,61,52,.40);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;

  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --sec-pad: clamp(4.5rem, 9vw, 8.5rem);
}

html[data-theme="clay"] {
  --bg:        #f6f0e8;
  --bg-alt:    #fffaf4;
  --surface:   #ffffff;
  --deep:      #3a2820;
  --deep-2:    #2e1f18;
  --text:      #2e2420;
  --text-soft: #6e5d53;
  --primary:   #b05c39;
  --primary-d: #8c4628;
  --accent:    #c0913f;
  --accent-soft:#f2e7d2;
  --on-deep:   #f3e9e1;
  --on-deep-soft:#cbab98;
  --line:      rgba(46,36,32,0.12);
  --card-sh:   0 1px 2px rgba(58,40,32,.05), 0 14px 34px -18px rgba(58,40,32,.30);
  --card-sh-h: 0 1px 2px rgba(58,40,32,.06), 0 26px 54px -22px rgba(58,40,32,.42);
}

html[data-theme="coastal"] {
  --bg:        #eef3f6;
  --bg-alt:    #fbfdfe;
  --surface:   #ffffff;
  --deep:      #1b2f3d;
  --deep-2:    #142532;
  --text:      #1e2a33;
  --text-soft: #556571;
  --primary:   #2c6383;
  --primary-d: #224d66;
  --accent:    #bd9447;
  --accent-soft:#e6ecf0;
  --on-deep:   #e7eef3;
  --on-deep-soft:#9db5c4;
  --line:      rgba(30,42,51,0.12);
  --card-sh:   0 1px 2px rgba(27,47,61,.05), 0 14px 34px -18px rgba(27,47,61,.30);
  --card-sh-h: 0 1px 2px rgba(27,47,61,.06), 0 26px 54px -22px rgba(27,47,61,.42);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--primary); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--text); }
.display { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem); font-weight: 400; letter-spacing: -0.02em; }
.h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.h3 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
.lead { font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.4rem); line-height: 1.55; color: var(--text-soft); font-weight: 400; }
.kicker {
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--primary);
  display: inline-flex; align-items: center; gap: .7rem;
}
.kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); display: inline-block; }
.kicker.center::after { content: ""; width: 26px; height: 1.5px; background: var(--accent); display: inline-block; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap-wide { max-width: 1340px; }
.section { padding-block: var(--sec-pad); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .lead { color: var(--on-deep-soft); }
.section--deep .kicker { color: var(--accent); }
.sec-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .h2 { margin-top: 1rem; }
.sec-head .lead { margin-top: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border: 1.5px solid transparent; transition: transform .25s ease, background .25s, box-shadow .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn--primary:hover { background: var(--primary-d); transform: translateY(-2px); box-shadow: 0 18px 34px -14px color-mix(in srgb, var(--primary) 75%, transparent); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding-block: 1.1rem;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .8rem; line-height: 1; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; flex: none;
  background: #f3f0e8;
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .02em; color: #fff; transition: color .35s; }
.brand__name small { display: block; font-family: var(--font-body); font-size: .6rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--on-deep-soft); margin-top: 3px; transition: color .35s; }
.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .55rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.88);
  transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.14); }
.nav a.is-active { color: #fff; }
.nav a.is-active::after { content: ""; display: block; height: 1.5px; background: var(--accent); margin: 2px .85rem 0; }
.header.is-solid .nav a.is-active { color: var(--primary); }
.nav a.apply { color: #fff; background: color-mix(in srgb, var(--primary) 88%, #fff); margin-left: .4rem; }
.nav a.apply:hover { background: var(--primary-d); }

/* scrolled state */
.header.is-solid { background: color-mix(in srgb, var(--bg-alt) 92%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(0,0,0,.5); padding-block: .7rem; }
.header.is-solid .brand__name { color: var(--text); }
.header.is-solid .brand__name small { color: var(--text-soft); }
.header.is-solid .nav a { color: var(--text-soft); }
.header.is-solid .nav a:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.header.is-solid .nav a.apply { color: #fff; }
.header.is-solid .menu-btn span { background: var(--text); }

/* mobile menu button */
.menu-btn { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 10px; }
.menu-btn span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background:
   linear-gradient(180deg, rgba(15,30,25,.55) 0%, rgba(15,30,25,.30) 35%, rgba(15,30,25,.62) 100%),
   linear-gradient(90deg, rgba(15,30,25,.55), rgba(15,30,25,.05) 70%); }
.hero__inner { position: relative; z-index: 1; padding-block: 8rem 5rem; }
.hero__inner { max-width: 880px; }
.hero .kicker { color: #fff; }
.hero .kicker::before { background: var(--accent); }
.hero h1 { color: #fff; margin: 1.1rem 0 .4rem; }
.hero .tagline { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem); color: #fff; opacity: .95; }
.hero p.lead { color: rgba(255,255,255,.9); margin-top: 1.6rem; max-width: 580px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.scroll-cue { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 1; color: rgba(255,255,255,.8); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.scroll-cue span { width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,0)); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); transform-origin: top; opacity:.5 } 50%{ transform: scaleY(1); opacity:1 } }

/* trust strip under hero */
.trust { background: var(--deep-2); color: var(--on-deep); }
.trust .wrap { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; padding-block: 1.6rem; }
.trust__item { display: flex; align-items: center; gap: .9rem; justify-content: center; font-weight: 600; font-size: .95rem; }
.trust__item b { color: #fff; }
.trust__item .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 60%, transparent); color:#fff; flex: none; }
.trust__item .ic svg { width: 17px; height: 17px; }

/* ---------- Service intro (hospice / home care openers) ---------- */
.service-open { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.service-open__media { position: relative; }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-sh); background: var(--deep); aspect-ratio: 16/10; }
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame__tag { position: absolute; left: 1rem; bottom: 1rem; background: color-mix(in srgb, var(--deep) 78%, transparent); color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: .45rem .8rem; border-radius: 999px; backdrop-filter: blur(4px); }
.service-open__body .lead { margin-top: 1.25rem; }
.service-open__body .btn { margin-top: 1.8rem; }

/* video poster play button */
.video-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: transparent; }
.video-play::before { content: ""; position: absolute; inset: 0; background: rgba(15,30,25,.28); transition: background .3s; }
.video-play:hover::before { background: rgba(15,30,25,.12); }
.video-play .disc { position: relative; width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 14px 36px -10px rgba(0,0,0,.5); transition: transform .3s; }
.video-play:hover .disc { transform: scale(1.07); }
.video-play .disc svg { width: 26px; height: 26px; margin-left: 4px; color: var(--primary); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border-radius: var(--radius); padding: clamp(1.5rem, 2.6vw, 2.1rem);
  border: 1px solid var(--line); box-shadow: var(--card-sh);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--card-sh-h); }
.card__icon { width: 60px; height: 60px; margin-bottom: 1.2rem; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); }
.card__icon img { width: 38px; height: 38px; object-fit: contain; }
.card h3 { font-size: 1.3rem; }
.card h3.up { text-transform: uppercase; font-family: var(--font-body); font-weight: 800; font-size: 1rem; letter-spacing: .06em; color: var(--primary); }
.card p { margin-top: .6rem; color: var(--text-soft); font-size: .97rem; }
.card .num { font-family: var(--font-display); font-size: 1rem; color: var(--accent); display: block; margin-bottom: .4rem; }

/* scope of services pills */
.scope { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.scope__list { list-style: none; display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; }
.scope__list li { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; box-shadow: var(--card-sh); transition: transform .3s, border-color .3s; }
.scope__list li:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.scope__list li .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.scope__art { text-align: center; }
.scope__art img { width: min(220px, 60%); margin-inline: auto; }

/* CEO quote */
.quote { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.quote__mark { width: clamp(90px,12vw,130px); opacity: .9; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.2rem); line-height: 1.32; font-style: italic; font-weight: 300; color: #fff; }
.quote cite { display: block; margin-top: 1.4rem; font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* ---------- Callout band ---------- */
.callout { text-align: center; }
.callout .h2 { max-width: 18ch; margin-inline: auto; }
.callout p { max-width: 56ch; margin: 1.2rem auto 2rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 1.5rem 3rem 1.5rem 0; position: relative; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--text); display: flex; }
.faq__q .sign { position: absolute; right: 2px; top: 50%; width: 22px; height: 22px; flex: none; transform: translateY(-50%); }
.faq__q .sign::before, .faq__q .sign::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; transition: transform .3s; }
.faq__q .sign::before { left: 0; top: 10px; width: 22px; height: 2px; }
.faq__q .sign::after { left: 10px; top: 0; width: 2px; height: 22px; }
.faq__item.open .faq__q .sign::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq__a p { color: var(--text-soft); padding-bottom: 1.5rem; max-width: 70ch; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: clamp(1rem,2.5vw,1.8rem); }
.team-card { text-align: center; }
.team-card__photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-sh); background: var(--accent-soft); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; margin-top: 1rem; }
.team-card span { display: block; color: var(--text-soft); font-size: .88rem; margin-top: .2rem; }

/* ---------- Resources / support ---------- */
.support { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.support__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-sh); aspect-ratio: 4/3; }
.support__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: stretch; }
.contact__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem,3vw,2.8rem); box-shadow: var(--card-sh); }
.contact__rows { display: grid; gap: 1.4rem; margin-top: 1.8rem; }
.crow { display: flex; gap: 1rem; align-items: flex-start; }
.crow .ic { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); }
.crow .ic svg { width: 22px; height: 22px; }
.crow .lbl { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.crow a, .crow .val { font-size: 1.08rem; font-weight: 600; color: var(--text); }
.crow a:hover { color: var(--primary); }
.crow .val.small { font-weight: 500; font-size: 1rem; line-height: 1.5; }
.phone-pair { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.phone-pair a { display: inline-flex; flex-direction: column; }
.phone-pair a b { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-sh); min-height: 380px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.15); }
.email-cta { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- Footer ---------- */
.footer { background: var(--deep-2); color: var(--on-deep); padding-block: clamp(3.5rem,6vw,5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(2rem,4vw,3rem); padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { color: var(--on-deep-soft); margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.footer h4 { font-family: var(--font-body); font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: .65rem; }
.footer ul a, .footer address { color: var(--on-deep-soft); font-style: normal; font-size: .95rem; line-height: 1.7; }
.footer ul a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; color: var(--on-deep-soft); font-size: .85rem; }
.footer__credit { text-align: center; margin-top: 1.4rem; color: var(--on-deep-soft); font-size: .85rem; }
.footer__credit a { color: #fff; font-weight: 700; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; transition: color .2s; }
.footer__credit a:hover { color: var(--accent); }

/* ---------- Theme switcher (review tool — removable) ---------- */
.theme-switch { position: fixed; right: 1rem; bottom: 1rem; z-index: 200; display: flex; align-items: center; gap: .5rem; background: color-mix(in srgb, var(--bg-alt) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; padding: .5rem .65rem; box-shadow: 0 18px 40px -18px rgba(0,0,0,.4); }
.theme-switch .lbl { font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); padding-left: .4rem; }
.theme-switch button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; padding: 0; transition: transform .2s, border-color .2s; }
.theme-switch button:hover { transform: scale(1.12); }
.theme-switch button[aria-pressed="true"] { border-color: var(--text); }
.sw-sage { background: #2f6b58; }
.sw-clay { background: #b05c39; }
.sw-coastal { background: #2c6383; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 70; width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 0; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--primary) 70%, transparent), 0 2px 6px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, background .25s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary-d); }
.to-top.show:hover { transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .nav { position: fixed; top: 0; left: 0; right: 0; width: auto; background: var(--bg-alt); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .15rem; padding: 5.25rem 1.25rem 1.5rem; transform: translateY(-105%); transition: transform .42s cubic-bezier(.22,.61,.36,1); box-shadow: 0 26px 54px -26px rgba(0,0,0,.55); z-index: 90; }
  .menu-open .nav { transform: none; }
  .nav a { color: var(--text); font-size: 1.02rem; padding: .9rem 1rem; border-radius: 12px; }
  .nav a:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
  .nav a.apply { margin-left: 0; margin-top: .6rem; justify-content: center; }
  .menu-btn { display: flex; z-index: 110; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(10,20,16,.5); opacity: 0; visibility: hidden; transition: opacity .35s; z-index: 80; }
  .menu-open .nav-scrim { opacity: 1; visibility: visible; }
  .service-open { grid-template-columns: 1fr; }
  .service-open__media { order: -1; }
  .scope { grid-template-columns: 1fr; }
  .scope__art { order: -1; }
  .quote { grid-template-columns: 1fr; text-align: center; }
  .quote__mark { margin-inline: auto; }
  .support { grid-template-columns: 1fr; }
  .support__media { order: -1; }
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .scope__list { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .trust .wrap { grid-template-columns: 1fr; gap: .8rem; }
  .trust__item { justify-content: flex-start; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .footer__top { grid-template-columns: 1fr; }
  .theme-switch .lbl { display: none; }
}
