/* Maze TS — design system
   Institutional near-monochrome identity (deep navy/ink), Lora + Inter.
   Hand-built static CSS, no framework, no build step. Fonts self-hosted. */

/* Self-hosted variable fonts (latin) — no third-party request, no FOUT. */
@font-face {
  font-family: 'Maze Serif';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/serif.woff2) format('woff2');
}
@font-face {
  font-family: 'Maze Serif';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/serif-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter.woff2) format('woff2');
}

:root {
  --navy-900: #08203b;
  --navy-800: #0c2945;
  --navy-700: #143a61;
  --navy-600: #1d4e7e;
  --ink: #1b2a3a;
  --slate: #56697d;
  --slate-light: #8194a6;
  /* "gold-*" tokens retained as the single accent slot — retuned to a
     restrained near-monochrome navy for an institutional register. */
  --gold: #1f4f7a;
  --gold-deep: #0c2945;
  --gold-soft: #cdd9e6;
  --paper: #ffffff;
  --mist: #f3f6fa;
  --mist-deep: #e9eff5;
  --line: #e1e8f0;
  --line-strong: #cdd8e4;

  --container: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(8, 32, 59, .06), 0 2px 8px rgba(8, 32, 59, .05);
  --shadow-md: 0 6px 18px rgba(8, 32, 59, .08), 0 2px 6px rgba(8, 32, 59, .05);
  --shadow-lg: 0 22px 50px rgba(8, 32, 59, .16);

  --ff-display: "Maze Serif", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.16, .84, .44, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: clamp(1rem, .97rem + .15vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 560;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -.012em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 1.07rem + .55vw, 1.45rem); font-weight: 600; }

p { color: var(--slate); }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--gold); }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
strong { color: var(--ink); font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, .5rem + 2.5vw, 2.25rem);
}

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section--mist { background: var(--mist); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section__head { max-width: 680px; margin-bottom: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); }
.section__head .eyebrow { margin-bottom: 1rem; }
.section__head p { margin-top: 1rem; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--ff-body);
  font-weight: 640;
  font-size: .98rem;
  line-height: 1;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--navy-800); color: #fff; box-shadow: 0 6px 16px rgba(8, 32, 59, .20); }
.btn--primary:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(8, 32, 59, .26); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy-700); color: var(--navy-900); background: var(--mist); transform: translateY(-2px); }
.btn--on-dark { background: #fff; color: var(--navy-900); }
.btn--on-dark:hover { background: #e8eef4; color: var(--navy-900); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: #eaf1f8; border-color: rgba(255,255,255,.32); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; transform: translateY(-2px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .9rem;
}
.brand { display: flex; align-items: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--ff-display); font-weight: 600; font-size: 1.5rem; color: var(--navy-900); letter-spacing: .005em; }
.brand__tag { margin-top: .25rem; font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }
@media (max-width: 420px) { .brand__name { font-size: 1.35rem; } .brand__tag { letter-spacing: .16em; font-size: .58rem; } }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: var(--ink); font-weight: 550; font-size: .96rem; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold); border-radius: 2px;
  transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--navy-900); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: #fff; border-radius: 10px;
  cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; stroke: var(--navy-800); }

@media (max-width: 880px) {
  .nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: .5rem 1.25rem 1.5rem;
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 1rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(13, 41, 67, .06), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, var(--mist) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__maze {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
  color: var(--mist-deep);
  -webkit-mask-image: linear-gradient(105deg, transparent 38%, #000 78%);
  mask-image: linear-gradient(105deg, transparent 38%, #000 78%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}
.hero h1 {
  font-size: clamp(2.6rem, 1.7rem + 4vw, 4.4rem);
  font-weight: 540;
  margin: 1.35rem 0 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero__lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.28rem); max-width: 33ch; color: var(--slate); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: .55rem 1.4rem;
  margin-top: 2.4rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero__trust li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 550; color: var(--slate);
}
.hero__trust svg { width: 17px; height: 17px; color: var(--gold-deep); flex: none; }

/* Hero credibility panel */
.cred {
  position: relative;
  background: var(--navy-800);
  color: #e9f0f7;
  border-radius: 20px;
  padding: 2.3rem 2.1rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cred::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(205,217,230,.16), transparent 70%);
}
.cred__label { font-size: .76rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.cred__title { font-family: var(--ff-display); font-size: 1.45rem; color: #fff; margin: .55rem 0 1.6rem; font-weight: 560; }
.cred__list { display: grid; gap: 1.05rem; position: relative; }
.cred__item { display: flex; gap: .85rem; align-items: flex-start; }
.cred__item svg { width: 22px; height: 22px; color: var(--gold-soft); flex: none; margin-top: 1px; }
.cred__item b { display: block; color: #fff; font-weight: 620; font-size: .98rem; }
.cred__item span { font-size: .88rem; color: #adc0d4; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy-900); color: #cdd9e6; }
.trustbar__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: .75rem 2.4rem;
  padding-block: 1.15rem;
  font-size: .9rem; font-weight: 550; letter-spacing: .02em;
}
.trustbar__inner span { display: flex; align-items: center; gap: .6rem; }
.trustbar__inner svg { width: 16px; height: 16px; color: var(--gold-soft); }
.trustbar__dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.28); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.svc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.svc__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: var(--gold-soft);
  margin-bottom: 1.35rem;
}
.svc__icon svg { width: 25px; height: 25px; }
.svc h3 { margin-bottom: .55rem; }
.svc p { font-size: .96rem; flex: 1; }
.svc__more {
  margin-top: 1.35rem;
  font-size: .9rem; font-weight: 640; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: .45rem;
}
.svc__more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.svc:hover .svc__more svg { transform: translateX(4px); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 2.2rem 1.9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step__num {
  counter-increment: step;
  font-family: var(--ff-display);
  font-size: 2.4rem; font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.step__num::before { content: "0" counter(step); }
.step h3 { margin: .9rem 0 .5rem; }
.step p { font-size: .96rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 3.1rem; right: -.9rem;
  width: 1.1rem; height: 2px; background: var(--line-strong);
}

/* ---------- About / values ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.about__lead { font-size: 1.12rem; color: var(--slate); margin: 1.1rem 0; }
.about__motto {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  font-style: italic;
  color: var(--navy-900);
  margin: 1.4rem 0;
}
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.5rem 1.4rem; }
.value svg { width: 24px; height: 24px; color: var(--gold-deep); margin-bottom: .8rem; }
.value b { display: block; font-family: var(--ff-display); font-size: 1.08rem; color: var(--navy-900); margin-bottom: .35rem; font-weight: 600; }
.value span { font-size: .92rem; color: var(--slate); }

/* ---------- Contact / CTA ---------- */
.contact { background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 100%); color: #e9f0f7; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.25rem, 1rem + 5vw, 5rem); align-items: start; }
.contact h2 { color: #fff; }
.contact__lead { color: #b4c5d8; margin: 1.1rem 0 2rem; font-size: 1.1rem; }
.contact__points { display: grid; gap: 1.15rem; }
.contact__point { display: flex; gap: .9rem; align-items: flex-start; }
.contact__point svg { width: 22px; height: 22px; color: var(--gold-soft); flex: none; margin-top: 2px; }
.contact__point b { color: #fff; display: block; font-weight: 620; }
.contact__point span { color: #a9bccf; font-size: .92rem; }

.form {
  background: #fff;
  border-radius: 18px;
  padding: clamp(1.6rem, 1rem + 2vw, 2.4rem);
  box-shadow: var(--shadow-lg);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 640; color: var(--ink); margin-bottom: .45rem; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--ff-body);
  font-size: .98rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: .85rem 1rem;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 79, 122, .18);
}
.form .btn { width: 100%; margin-top: .4rem; }
.form__note { font-size: .82rem; color: var(--slate-light); margin-top: 1rem; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #9fb2c6; padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: var(--slate-light); }
.footer__about { margin-top: 1.1rem; font-size: .92rem; color: #94a8bd; max-width: 38ch; }
.footer h4 { color: #fff; font-family: var(--ff-body); font-size: .82rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__links { display: grid; gap: .7rem; }
.footer__links a { color: #9fb2c6; font-size: .94rem; }
.footer__links a:hover { color: var(--gold-soft); }
.footer address { font-style: normal; font-size: .92rem; line-height: 1.8; color: #94a8bd; }
.footer__legal {
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .82rem; color: #7e93a9;
}
.footer__legal a { color: #7e93a9; }
.footer__legal a:hover { color: var(--gold-soft); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .about, .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__cta .btn { width: 100%; }
}

/* ============================================================
   Interior pages
   ============================================================ */

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--navy-900); color: #fff;
  padding: .7rem 1.1rem; border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .2s var(--ease);
}
.skip:focus { top: 1rem; color: #fff; }

.nav__links a[aria-current="page"] { color: var(--navy-900); font-weight: 650; }
.nav__links a[aria-current="page"]::after { width: 100%; }
@media (max-width: 880px) {
  .nav__links a[aria-current="page"] { color: var(--gold-deep); }
}

/* ---------- Sub-page hero ---------- */
.subhero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #e9f0f7;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.subhero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(205,217,230,.10), transparent 70%);
  pointer-events: none;
}
.subhero__inner { position: relative; padding-block: clamp(2.8rem, 2rem + 4vw, 5rem); max-width: 760px; }
.subhero .eyebrow { color: var(--gold-soft); margin-bottom: 1rem; }
.subhero .eyebrow::before,
.contact .eyebrow::before { background: var(--gold-soft); }
.subhero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
  font-weight: 540;
  margin-bottom: 1rem;
}
.subhero p { color: #b9cadb; font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); max-width: 56ch; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; margin-bottom: 1.4rem; }
.breadcrumb a { color: #a9bccf; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span { color: #7e93a9; }
.breadcrumb svg { width: 13px; height: 13px; color: #6f849a; }

/* ---------- Sticky in-page subnav ---------- */
.subnav { position: sticky; top: 67px; z-index: 40; background: var(--mist); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; gap: .4rem; overflow-x: auto; padding-block: .65rem; scrollbar-width: thin; }
.subnav a {
  flex: none; color: var(--slate); font-size: .9rem; font-weight: 600;
  padding: .55rem 1rem; border-radius: 999px; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.subnav a:hover { background: #fff; color: var(--navy-900); }

/* ---------- Service detail ---------- */
.svc-detail {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.5rem 1.85rem;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 130px;
}
.svc-detail:last-child { border-bottom: 0; }
.svc-detail__icon {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: var(--gold-soft);
}
.svc-detail__icon svg { width: 30px; height: 30px; }
.svc-detail__body h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: .7rem; }
.svc-detail__body > p { font-size: 1.06rem; margin-bottom: 1.5rem; max-width: 62ch; }
.svc-detail__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }
.svc-detail__cols h3 { font-family: var(--ff-body); font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .9rem; }
.feature-list { display: grid; gap: .7rem; }
.feature-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .98rem; color: var(--slate); }
.feature-list svg { width: 18px; height: 18px; color: var(--gold-deep); flex: none; margin-top: 3px; }
.svc-detail__cta { margin-top: 1.8rem; }

/* ---------- Reusable CTA band ---------- */
.cta-band { background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 100%); color: #e9f0f7; text-align: center; }
.cta-band__inner { max-width: 640px; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b4c5d8; font-size: 1.12rem; margin: 1rem 0 2rem; }
.cta-band .btn { margin-inline: .35rem; }

/* ---------- Credentials ---------- */
.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.cred-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; }
.cred-card svg { width: 26px; height: 26px; color: var(--gold-deep); margin-bottom: 1rem; }
.cred-card b { display: block; font-family: var(--ff-display); font-size: 1.12rem; color: var(--navy-900); margin-bottom: .4rem; font-weight: 600; }
.cred-card span { font-size: .94rem; color: var(--slate); }

/* ---------- Prose (legal / long-form) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin: 2.6rem 0 .9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 1.8rem 0 .6rem; color: var(--navy-800); }
.prose p, .prose li { color: var(--slate); margin-bottom: 1rem; }
.prose ul { padding-left: 1.2rem; list-style: disc; }
.prose ul li { margin-bottom: .55rem; }
.prose ul li::marker { color: var(--gold); }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.note {
  display: flex; gap: .8rem; align-items: flex-start;
  background: #eef3f8; border: 1px solid var(--line-strong); border-left: 4px solid var(--navy-700);
  border-radius: 10px; padding: 1.1rem 1.25rem; margin-bottom: 2rem;
  font-size: .92rem; color: #44525f;
}
.note svg { width: 20px; height: 20px; color: var(--gold-deep); flex: none; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; max-width: 780px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.4rem;
  font-family: var(--ff-display); font-weight: 600; font-size: 1.08rem; color: var(--navy-900);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep);
  transform: rotate(45deg); transition: transform .25s var(--ease); margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details > p { padding: 0 1.4rem 1.3rem; color: var(--slate); margin: 0; }

/* ---------- Contact page tweaks ---------- */
/* Contact PAGE: light section (dark subhero already provides contrast) */
.contact--page { border-top: 0; background: var(--mist); color: var(--ink); border-bottom: 1px solid var(--line); }
.contact--page .contact__grid { align-items: stretch; }
.contact--page h2 { color: var(--navy-900); }
.contact--page .contact__lead { color: var(--slate); }
.contact--page .eyebrow { color: var(--gold-deep); }
.contact--page .eyebrow::before { background: var(--gold); }
.contact--page .contact__point b { color: var(--ink); }
.contact--page .contact__point span { color: var(--slate); }
.contact--page .contact__point svg { color: var(--gold-deep); }

.disclaimer {
  margin-top: 2rem; max-width: 760px;
  font-size: .86rem; color: var(--slate);
  padding: .9rem 1.15rem; border-left: 3px solid var(--line-strong);
  background: var(--mist);
}
.disclaimer strong { color: var(--ink); }

.section__cta { margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); text-align: center; }
a.svc__more:hover { color: var(--gold); }
a.svc__more:hover svg { transform: translateX(4px); }

.footer__grid--4 { grid-template-columns: 1.7fr 1fr 1fr 1.3fr; }

@media (max-width: 980px) {
  .svc-detail { grid-template-columns: 1fr; gap: 1.1rem; }
  .svc-detail__icon { width: 56px; height: 56px; }
  .svc-detail__cols { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .footer__grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .footer__grid--4 { grid-template-columns: 1fr; }
}

/* ============================================================
   Premium polish
   ============================================================ */

html { scroll-padding-top: 88px; }              /* anchor jumps clear the sticky nav */
* { -webkit-tap-highlight-color: transparent; } /* no grey flash on mobile tap */

::selection { background: var(--navy-800); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--navy-700);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible { outline-offset: 4px; }

/* Hairline section seam for refined rhythm between adjacent light sections */
.section + .section:not(.section--mist):not(.contact):not(.cta-band) {
  border-top: 1px solid var(--line);
}

/* Slightly richer, consistent easing on interactive lifts */
.svc, .step, .value, .cred-card, .btn, .faq details { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Print: clean, ink-on-paper document — no nav, forms, CTAs or decoration */
@media print {
  .nav, .subnav, .footer, .cta-band, .contact, form, .hero__maze,
  .skip, .nav__toggle, .section__cta, .svc-detail__cta, .btn { display: none !important; }
  body { color: #000; background: #fff; font-size: 12pt; line-height: 1.5; }
  h1, h2, h3, h4 { color: #000; }
  .container { max-width: none; padding: 0; }
  .section { padding-block: 1.2rem; }
  a { color: #000; text-decoration: underline; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .subhero { background: none; color: #000; border: 0; }
  .subhero h1, .subhero p, .subhero .eyebrow { color: #000; }
  @page { margin: 1.8cm; }
}

/* ---------- Testimonials ---------- */
.tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.35rem; max-width: 980px; margin-inline: auto; }
.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.85rem; display: flex; flex-direction: column;
}
.tcard__mark {
  font-family: var(--ff-display); font-size: 3rem; line-height: .5;
  color: var(--line-strong); margin-bottom: .8rem;
}
.tcard__quote { font-size: 1.04rem; color: var(--ink); flex: 1; margin: 0; }
.tcard__by { margin-top: 1.5rem; font-size: .9rem; font-weight: 600; color: var(--slate); }
.tcard--todo { border-style: dashed; border-color: var(--line-strong); background: var(--mist); }
.tcard--todo .tcard__quote { color: var(--slate-light); font-style: italic; letter-spacing: .04em; }
@media (max-width: 900px) { .tgrid { grid-template-columns: 1fr; } }

/* ---------- Key UK tax dates ---------- */
.kd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.kd {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; display: flex; flex-direction: column; gap: .5rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.kd:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.kd__date { font-family: var(--ff-display); font-size: 1.9rem; font-weight: 600; color: var(--navy-900); line-height: 1; }
.kd__tag { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.kd__label { font-size: .96rem; color: var(--slate); }
@media (max-width: 860px) { .kd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kd-grid { grid-template-columns: 1fr; } }

/* ---------- Motion & interaction polish ---------- */
.nav__inner { transition: padding .28s var(--ease); }
.brand__name { transition: font-size .28s var(--ease); }
.nav.is-stuck .nav__inner { padding-block: .55rem; }
.nav.is-stuck .brand__name { font-size: 1.32rem; }
.nav.is-stuck .brand__tag { opacity: .85; }

.btn:active { transform: translateY(0) scale(.985); }

/* Gentle stagger as grids reveal into view */
.services-grid .reveal:nth-child(2), .steps .reveal:nth-child(2), .values .reveal:nth-child(2),
.tgrid .reveal:nth-child(2), .creds .reveal:nth-child(2), .kd-grid .reveal:nth-child(2) { transition-delay: .06s; }
.services-grid .reveal:nth-child(3), .steps .reveal:nth-child(3), .values .reveal:nth-child(3),
.tgrid .reveal:nth-child(3), .creds .reveal:nth-child(3), .kd-grid .reveal:nth-child(3) { transition-delay: .12s; }
.services-grid .reveal:nth-child(4), .values .reveal:nth-child(4),
.creds .reveal:nth-child(4), .kd-grid .reveal:nth-child(4) { transition-delay: .18s; }
.services-grid .reveal:nth-child(5), .kd-grid .reveal:nth-child(5) { transition-delay: .24s; }
.services-grid .reveal:nth-child(6), .kd-grid .reveal:nth-child(6) { transition-delay: .30s; }
@media (prefers-reduced-motion: reduce) {
  .services-grid .reveal, .steps .reveal, .values .reveal, .tgrid .reveal,
  .creds .reveal, .kd-grid .reveal { transition-delay: 0s !important; }
}

/* Accessibility: lift small print to an AA-contrast tone */
.form__note { color: var(--slate); }

/* ============================================================
   Mobile flawless pass
   ============================================================ */

/* Comfortable tap targets everywhere */
.btn { min-height: 46px; }
.nav__links a, .footer__links a, .subnav a { min-height: 24px; }

/* Smooth, momentum scroll for the services jump-nav on touch */
.subnav__inner { -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.subnav__inner::after { content: ""; flex: 0 0 .5rem; }
.subnav a { scroll-snap-align: start; }

@media (max-width: 600px) {
  /* Tighter vertical rhythm so phones don't feel endless */
  .section { padding-block: clamp(2.6rem, 2rem + 3vw, 3.4rem); }
  .subhero__inner { padding-block: clamp(2.2rem, 1.6rem + 3vw, 3rem); }

  /* Hero headline a touch smaller on small phones */
  .hero h1 { font-size: clamp(2.15rem, 1.5rem + 6vw, 2.9rem); }
  .hero__lead { font-size: 1.05rem; }

  /* Stacked, full-width CTAs in every band (not just the hero) */
  .cta-band .btn, .section__cta .btn, .hero__cta .btn { width: 100%; }
  .cta-band__inner .btn { margin-inline: 0; }
  .cta-band__inner { display: flex; flex-direction: column; gap: .8rem; }
  .cta-band__inner h2, .cta-band__inner p, .cta-band__inner .eyebrow { width: 100%; }

  /* Reduce big section-head lead size */
  .section__head p { font-size: 1.02rem; }

  /* Forms: 16px inputs stop iOS auto-zoom on focus */
  .field input, .field textarea, .field select { font-size: 16px; }

  /* Condensed nav: keep the brand from crowding the menu button */
  .brand__name { font-size: 1.3rem; }
  .brand__tag { letter-spacing: .14em; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 2rem; }
  .container { padding-inline: 1.1rem; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 2vw, 2rem); bottom: clamp(1rem, 2vw, 2rem);
  z-index: 60; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff; color: var(--navy-900);
  box-shadow: var(--shadow-md); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.to-top svg { width: 19px; height: 19px; }
@media print { .to-top { display: none; } }

/* ---------- Footer privacy/trust line ---------- */
.footer__trust {
  padding-top: 1.8rem; margin-top: .5rem;
  display: flex; align-items: center; gap: .55rem;
  font-size: .84rem; color: #9fb2c6;
}
.footer__trust svg { width: 15px; height: 15px; color: var(--gold-soft); flex: none; }
