/* ==========================================================================
   AY Services — core stylesheet
   Typeface: Aptos (with Segoe UI / system fallbacks)
   Palette:  charcoal authority, AY gold accent, warm white ground
   ========================================================================== */

/* ---------- typeface ----------
   Aptos is used site-wide. Where Aptos is installed on the visitor's device
   (Microsoft 365 / Windows 11) it is picked up by the stack below.
   If a licensed Aptos web font is obtained, place the files in
   assets/fonts/ and uncomment the declarations below — no other change needed.

@font-face { font-family: "Aptos"; src: local("Aptos"), url("../fonts/Aptos.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aptos"; src: local("Aptos SemiBold"), url("../fonts/Aptos-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Aptos Display"; src: local("Aptos Display"), url("../fonts/Aptos-Display.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
*/

:root {
  --font: Aptos, "Segoe UI Variable Text", "Segoe UI", system-ui,
    -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Aptos Display", Aptos, "Segoe UI Variable Display",
    "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --ink-mute: #6d6a64;
  --charcoal: #1e1e1e;
  --charcoal-2: #272726;
  --charcoal-3: #343331;

  --gold: #c49b31;
  --gold-dark: #8c6d1c;   /* text / hover: 4.8:1 on white */
  --gold-icon: #a8842a;   /* icon strokes on light backgrounds */
  --gold-text: #7d6218;   /* small gold type: 5.8:1 on white */
  --gold-light: #d5b237;

  --paper: #ffffff;
  --paper-warm: #faf8f4;
  --panel: #f4f2ed;
  --line: #e3dfd7;
  --line-strong: #cec8bb;
  --line-dark: rgba(255, 255, 255, 0.14);

  --maxw: 1200px;
  --gutter: 24px;
  --radius: 2px;

  --t: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(196, 155, 49, 0.18);
}

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

img, svg { max-width: 100%; }
svg text { font-family: var(--font); }
img { height: auto; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.15rem, 1.35rem + 3.1vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-dark); }

ul { margin: 0 0 1.15em; padding-left: 1.1em; }
li { margin-bottom: 0.4em; }

strong { color: var(--ink); font-weight: 600; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--charcoal);
  color: #fff;
  padding: 12px 18px;
  font-size: 0.875rem;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  color: #fff;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(44px, 5.5vw, 78px) 0; }
.section--tight { padding: clamp(34px, 4vw, 52px) 0; }
.section--warm { background: var(--paper-warm); }
.section--panel { background: var(--panel); }
.section--dark { background: var(--charcoal); }

.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark p { color: #cfcac1; }

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.62;
  color: var(--ink-soft);
}

.measure { max-width: 62ch; }
.measure-wide { max-width: 76ch; }

/* eyebrow label with gold rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.section--dark .eyebrow { color: var(--gold-light); }
.section--dark .svc-card__icon,
.section--dark .value__icon { color: var(--gold-light); }

.section-head { max-width: 720px; margin-bottom: clamp(24px, 3vw, 38px); }
.section-head p { color: var(--ink-mute); }
.section--dark .section-head p { color: #b9b4ab; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn--gold { background: var(--gold); color: #1a1a1a; }
.btn--gold:hover { background: var(--gold-dark); color: #fff; }
.btn--dark { background: var(--charcoal); color: #fff; }
.btn--dark:hover { background: var(--gold-dark); color: #fff; }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--charcoal); background: var(--charcoal); color: #fff; }
.btn--onDark { border-color: rgba(255, 255, 255, 0.4); color: #fff; background: transparent; }
.btn--onDark:hover { background: #fff; color: var(--charcoal); border-color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.link-arrow {
  display: inline-flex;
  padding: 4px 0;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.link-arrow svg { transition: transform var(--t); }
.link-arrow:hover { color: var(--gold-dark); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- top contact ribbon ---------- */
.ribbon {
  background: var(--charcoal);
  color: #d8d3ca;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.ribbon .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  color: #d8d3ca;
}
.ribbon-item svg { flex: none; color: var(--gold); }
a.ribbon-item:hover { color: #fff; }
.ribbon-group {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.ribbon-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t);
}
.masthead.is-stuck { box-shadow: 0 1px 14px rgba(26, 26, 26, 0.07); }

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  transition: min-height var(--t);
}
.masthead.is-stuck .wrap { min-height: 72px; }

.logo { display: inline-flex; align-items: center; padding: 6px 0; }
.logo img {
  width: 190px;
  height: auto;
  display: block;
  transition: width var(--t);
}
.masthead.is-stuck .logo img { width: 168px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list li { margin: 0; }
.nav-list a {
  position: relative;
  display: block;
  padding: 6px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--t);
}
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after { width: 100%; }
.nav-list a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-list a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: -8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--charcoal);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(20, 20, 20, 0.9) 0%,
      rgba(20, 20, 20, 0.78) 42%,
      rgba(20, 20, 20, 0.42) 74%,
      rgba(20, 20, 20, 0.3) 100%
    );
}
.hero .wrap {
  padding-top: clamp(54px, 7.5vw, 104px);
  padding-bottom: clamp(54px, 7.5vw, 104px);
}
.hero-inner { max-width: 760px; }
.hero-eyebrow {
  margin: 0 0 22px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 1.3rem + 3.9vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}
.hero p {
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  color: #ddd8ce;
}
.hero .btn-row { margin-top: 30px; }

/* ---------- professional information strip ---------- */
.strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.strip-item {
  padding: 24px 24px;
  border-left: 1px solid var(--line);
}
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-term {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.strip-term .num { color: var(--gold-text); }
.strip-desc {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--ink-mute);
  line-height: 1.45;
}

/* compact gold-dashed list */
.mini-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}
.mini-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 9px;
  font-size: 0.9375rem;
  color: var(--ink-mute);
  break-inside: avoid;
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
@media (max-width: 560px) { .mini-list { columns: 1; } }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(26px, 4vw, 60px); }
.grid--aside { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(26px, 3.6vw, 54px); }
.grid--center { align-items: center; }

/* ---------- heading row with a large icon ---------- */
.head-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 26px);
  margin-bottom: clamp(20px, 2.6vw, 32px);
}
.head-row__icon {
  flex: none;
  color: var(--gold-icon);
  line-height: 0;
}
.head-row__icon svg { display: block; }
.head-row .eyebrow { margin-bottom: 10px; }
.head-row h2, .head-row h3 { margin: 0; }
.head-row__title {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem);
  letter-spacing: -0.01em;
  text-transform: none;
}
.section--dark .head-row__icon { color: var(--gold-light); }
@media (max-width: 560px) {
  .head-row { gap: 16px; }
  .head-row__icon svg { width: 44px; height: 44px; }
}

/* body copy set in two columns so text fills the width */
.cols-2 {
  columns: 2;
  column-gap: clamp(28px, 4vw, 56px);
  max-width: 100%;
}
.cols-2 p { break-inside: avoid; margin-bottom: 1.1em; }
@media (max-width: 760px) { .cols-2 { columns: 1; } }

/* ---------- service cards ---------- */
.svc-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t), transform var(--t);
}
.svc-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.svc-card__num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-text);
}
.svc-card__icon {
  margin: 16px 0 18px;
  color: var(--gold-icon);
}
.svc-card__icon svg { display: block; }
.svc-card h3 {
  font-size: 1.0625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.svc-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.svc-card .link-arrow { margin-top: auto; }

/* ---------- process diagram (conceptual infographic) ---------- */
.diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.diagram--onWarm { background: #fff; }
.diagram-step {
  position: relative;
  padding: 22px 20px;
  border-left: 1px solid var(--line);
}
.diagram-step:first-child { border-left: 0; }
.diagram-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.diagram.is-visible .diagram-step::before { width: 100%; }
.diagram-step:nth-child(2)::before { transition-delay: 140ms; }
.diagram-step:nth-child(3)::before { transition-delay: 280ms; }
.diagram-step:nth-child(4)::before { transition-delay: 420ms; }
.diagram-step .idx {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-text);
}
.diagram-step .term {
  display: block;
  margin: 10px 0 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.diagram-step .note {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-mute);
}
/* ---------- compliance section ---------- */
.compliance-figure {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--charcoal-2);
}
.compliance-figure svg { display: block; width: 100%; height: auto; }
.quote-mark {
  margin: 0 0 18px;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem);
  line-height: 1.45;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.quote-mark span { color: var(--gold-light); }

/* ---------- values ---------- */
.value {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.value__idx {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-text);
}
.value__icon { margin: 12px 0 12px; color: var(--gold-icon); }
.value h3 {
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.value p { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-mute); }

/* ---------- fact / info rows ---------- */
.facts { border-top: 1px solid var(--line); }
.fact {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.fact dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.fact dd { margin: 0; font-size: 0.9375rem; color: var(--ink-mute); }

/* areas covered list */
.areas {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 761px) {
  .areas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(28px, 4vw, 56px);
  }
}
.areas li {
  position: relative;
  padding: 16px 0 16px 26px;
  border-top: 1px solid var(--line);
  margin: 0;
}
.areas li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
.areas strong {
  display: block;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.areas span { font-size: 0.9375rem; color: var(--ink-mute); line-height: 1.6; }

/* ---------- page header (interior pages) ---------- */
.page-head {
  position: relative;
  background: var(--charcoal);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 96px 100%;
  opacity: 0.7;
}
.page-head .wrap {
  position: relative;
  padding-top: clamp(36px, 4.4vw, 60px);
  padding-bottom: clamp(36px, 4.4vw, 60px);
}
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head p { color: #c6c1b8; max-width: 62ch; margin-bottom: 0; }
.breadcrumb {
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8f8a81;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { padding: 0 8px; }

/* ---------- contact blocks ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-item {
  padding: 26px 26px;
  border-left: 1px solid var(--line);
}
.contact-item:first-child { border-left: 0; padding-left: 0; }
.contact-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.contact-item h3 svg { color: var(--gold-text); flex: none; }
.contact-item p, .contact-item address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-mute);
  margin: 0;
}
.contact-item a { color: var(--ink-soft); }
.contact-item a:hover { color: var(--gold-dark); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #b5b0a7;
  font-size: 0.9375rem;
}
.site-footer .wrap { padding-top: clamp(40px, 4.6vw, 60px); padding-bottom: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1.15fr 1.15fr;
  gap: clamp(28px, 4vw, 52px);
}
.footer-brand {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 6px;
}
.footer-tag {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin: 0 0 20px;
}
.site-footer h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; line-height: 1.5; }
.footer-list a { display: inline-block; padding: 3px 0; }
.footer-list a, .site-footer address a { color: #b5b0a7; }
.footer-list a:hover, .site-footer address a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.65; }
.site-footer address p { margin-bottom: 14px; }
.footer-note { font-size: 0.8125rem; color: #8b8780; margin-top: 14px; }
/* any link inside a dark area must never fall back to the black default */
.site-footer a { color: #b5b0a7; }
.site-footer a:hover { color: #ffffff; }
.section--dark a:not([class]) { color: var(--gold-light); }
.section--dark a:not([class]):hover { color: #ffffff; }
.footer-bottom a { color: var(--gold-light); }
.footer-bottom a:hover { color: #ffffff; }

.footer-bottom {
  margin-top: clamp(28px, 3.4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #8b8780;
}
.ext::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: 0.7;
}

/* ---------- single-page layout helpers ---------- */
section[id], .svc-block { scroll-margin-top: 104px; }
.svc-block {
  padding: clamp(28px, 3.4vw, 46px) 0;
  border-top: 1px solid var(--line);
}
.svc-block:first-of-type { margin-top: clamp(20px, 2.4vw, 34px); }
.svc-block .mini-list { columns: 1; }
@media (max-width: 900px) { section[id], .svc-block { scroll-margin-top: 84px; } }

/* ---------- motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .strip-grid { grid-template-columns: repeat(3, 1fr); }
  .strip-item:nth-child(4) { border-left: 0; padding-left: 0; }
  .strip-item:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--split, .grid--aside { grid-template-columns: 1fr; }
  .diagram { grid-template-columns: repeat(2, 1fr); }
  .diagram-step:nth-child(3) { border-left: 0; }
  .diagram-step:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line); }
  .contact-item:first-child { border-top: 0; padding-top: 24px; }

  /* mobile navigation */
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(26, 26, 26, 0.08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .nav-list li { border-top: 1px solid var(--line); }
  .nav-list li:first-child { border-top: 0; }
  .nav-list a { padding: 16px 2px; font-size: 1rem; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--gold-dark); }
  .masthead .wrap { position: relative; min-height: 76px; }
  .masthead.is-stuck .wrap { min-height: 68px; }
  .logo img { width: 164px; }
  .masthead.is-stuck .logo img { width: 156px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .ribbon { font-size: 0.75rem; }
  .ribbon .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .ribbon-group { gap: 8px 18px; }
  .ribbon-sep { display: none; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item { padding: 22px 18px; }
  .strip-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .fact { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .diagram { grid-template-columns: 1fr; }
  .diagram-step { border-left: 0; border-top: 1px solid var(--line); }
  .diagram-step:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { gap: 12px; }
  .svc-card { padding: 26px 22px 24px; }
}

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

@media print {
  .ribbon, .masthead, .btn-row { display: none; }
  body { color: #000; }
}
