/* Legacy Accounting Services, website v3.
   Layout: a quiet, wide-margined page. Each section pairs a short label and heading on the
   left with its content on the right. The gold double rule appears only in the logo.
   Navy and gold on white and pale blue-grey. One light theme by design. */

:root {
  color-scheme: light;

  /* Colour */
  --deep: #13233f;        /* navy: header, footer, buttons */
  --deep-2: #0c1830;      /* pressed and hover on navy */
  --ink: #14213b;         /* headings */
  --text: #3a4558;        /* body copy */
  --muted: #586376;       /* dates, captions */
  --line: #d7dee8;        /* hairlines */
  --mist: #f5f7fa;        /* soft band */
  --tint: #ecf0f6;        /* page heads */
  --tint-2: #e0e7f1;      /* contact band */
  --paper: #ffffff;
  --gold: #bea059;        /* the logo gold */
  --gold-2: #cfb36f;      /* gold button hover */
  --gold-ink: #775d20;    /* gold for small text on light */
  --on-deep: #eef2f8;
  --on-deep-muted: #a7b4c8;
  --shade: 10, 20, 40;    /* rgb of the navy used over photos */

  /* Shape */
  --radius: 10px;         /* buttons */
  --radius-card: 12px;    /* cards and photos */
  --shadow: 0 28px 56px -32px rgba(12, 24, 48, 0.42);

  /* Type */
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Space */
  --wrap: 1160px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --header-h: 88px;       /* header at the top of the page */
  --header-h-min: 68px;   /* header once the page has scrolled */
  --safe-top: env(safe-area-inset-top, 0px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-min) + var(--safe-top) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paints the strip above the fixed header on phones with a system bar. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: var(--safe-top);
  z-index: 60;
  background: var(--deep);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.35rem); line-height: 1.08; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.65rem, 2.7vw, 2.2rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0; text-wrap: pretty; }

a { color: var(--deep); text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--gold); }
.site-header .mega :focus-visible { outline-color: var(--gold-ink); }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin-inline: auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 14px; border: 1px solid var(--ink);
}
.skip:focus { top: calc(var(--safe-top) + 12px); }

.label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-ink);
}

.lead { font-size: clamp(1.14rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text); }

/* ------------------------------------------------------------ header */

/* Fixed, so that it can slim down on scroll without moving the page. */
.site-header {
  position: fixed; top: var(--safe-top); left: 0; right: 0; z-index: 50;
  background: var(--deep); color: var(--on-deep);
  border-bottom: 1px solid rgba(190, 160, 89, 0.38);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
main { padding-top: calc(var(--header-h) + var(--safe-top)); }
main.flush { padding-top: 0; }

.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); transition: min-height 0.35s var(--ease); }
.brand { display: block; flex: none; padding-block: 8px; }
.brand img { height: 62px; width: auto; transition: height 0.35s var(--ease); }

.site-header.is-scrolled { box-shadow: 0 12px 32px -14px rgba(6, 12, 26, 0.55); }
.site-header.is-scrolled .header-row { min-height: var(--header-h-min); }
.site-header.is-scrolled .brand img { height: 50px; }

/* Home page: the header sits on the photo, with no line under it, until the page scrolls
   or a menu opens. The logo and the photo then read as one picture. */
.js .site-header.overlay:not(.is-scrolled):not(.menu-open) {
  background: transparent; border-bottom-color: transparent;
}

.nav-list { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav-list > li > a, .nav-drop-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 0;
  background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  color: var(--on-deep); font: 500 0.97rem/1.65 var(--font); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
}
.nav-list > li > a:hover, .nav-list > li > a[aria-current="page"],
.nav-drop-btn:hover, .nav-drop-btn.is-current, .nav-drop-btn[aria-expanded="true"] { border-bottom-color: var(--gold); }
.chev { width: 12px; height: 12px; flex: none; transition: transform 0.25s var(--ease); }
.nav-drop-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-list > li > a.nav-cta {
  padding: 10px 22px; border: 1px solid var(--gold); border-radius: var(--radius); color: var(--gold);
  transition: background-color 0.15s, color 0.15s;
}
.nav-list > li > a.nav-cta:hover, .nav-list > li > a.nav-cta[aria-current="page"] { background: var(--gold); color: var(--deep-2); }

/* Services menu: a full-width white panel under the header. */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); color: var(--text);
  box-shadow: 0 30px 60px -30px rgba(6, 12, 26, 0.5);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s var(--ease), visibility 0s linear 0.22s;
}
.nav-drop.open .mega {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity 0.22s ease, transform 0.22s var(--ease), visibility 0s;
}
html:not(.js) .nav-drop:hover .mega,
html:not(.js) .nav-drop:focus-within .mega { visibility: visible; opacity: 1; transform: none; }

.mega-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(28px, 4vw, 56px); padding-block: 34px 40px; }
.mega-title { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--ink); }
.mega-title a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.15rem; font-weight: 500; text-decoration: none; }
.mega-title svg { width: 16px; height: 16px; color: var(--gold-ink); transition: transform 0.15s; }
.mega-title a:hover svg { transform: translateX(3px); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { border-bottom: 1px solid var(--line); }
.mega-col li a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; font-size: 0.98rem; }
.mega-col li a:hover { color: var(--deep); text-decoration: underline; text-decoration-color: var(--gold); }
.mega-aside { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; align-self: start; padding: 24px; background: var(--tint); border-radius: var(--radius-card); font-size: 0.95rem; }
.mega-face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.mega-name { color: var(--ink); font-weight: 600; line-height: 1.35; }
.mega-name span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.mega-aside .more { margin-top: 6px; }
/* one service group (corporate services switched off): its list runs in two columns beside the contact card */
.mega-grid.one { grid-template-columns: minmax(0, 2fr) minmax(0, 0.92fr); }
.mega-grid.one .mega-col ul { columns: 2; column-gap: clamp(28px, 4vw, 56px); }
.mega-grid.one .mega-col li { break-inside: avoid; }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid rgba(238, 242, 248, 0.35); border-radius: var(--radius);
  color: var(--on-deep); font: 500 0.95rem/1 var(--font); padding: 11px 14px; cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 1.5px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }

@media (min-width: 801px) {
  /* Let each menu item fill the header's height, so the pointer can move straight onto the panel. */
  .site-nav { align-self: stretch; display: flex; }
  .nav-list { align-items: stretch; }
  .nav-list > li { display: flex; align-items: center; }
}

@media (max-width: 800px) {
  :root { --header-h: 70px; --header-h-min: 62px; }
  .brand img { height: 48px; }
  .site-header.is-scrolled .brand img { height: 42px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - var(--header-h-min) - var(--safe-top)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--deep); border-top: 1px solid rgba(238, 242, 248, 0.14); border-bottom: 1px solid rgba(190, 160, 89, 0.38);
    padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
    padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
    padding-block: 8px 20px;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .nav-drop-btn {
    display: flex; width: 100%; justify-content: space-between;
    padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(238, 242, 248, 0.14);
  }
  .nav-list > li > a:hover, .nav-list > li > a[aria-current="page"],
  .nav-drop-btn:hover, .nav-drop-btn.is-current, .nav-drop-btn[aria-expanded="true"] { border-bottom-color: rgba(238, 242, 248, 0.14); color: var(--gold); }
  .nav-list > li > a.nav-cta { margin-top: 18px; justify-content: center; border: 1px solid var(--gold); }

  .mega, .nav-drop.open .mega { position: static; display: none; visibility: visible; opacity: 1; transform: none; background: none; box-shadow: none; transition: none; }
  .nav-drop.open .mega { display: block; }
  html:not(.js) .nav-drop:hover .mega { display: block; }
  .mega .wrap { padding: 0; }
  .mega-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 6px 0 14px; }
  .mega-title { border-bottom: 0; padding: 14px 0 4px; margin: 0; }
  .mega-title a { color: var(--gold); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
  .mega-title svg { display: none; }
  .mega-col li { border-bottom: 0; }
  .mega-col li a { color: var(--on-deep); padding: 9px 0 9px 14px; font-size: 1rem; }
  .mega-col li a:hover { color: var(--gold); }
  .mega-aside { display: none; }
  .mega-grid.one .mega-col ul { columns: auto; }
}

/* ------------------------------------------------------------ buttons and links */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px; padding: 0 1.5rem;
  border: 1px solid var(--deep); border-radius: var(--radius);
  background: var(--deep); color: #fff;
  font: 500 0.98rem/1.2 var(--font); letter-spacing: 0.01em; text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--deep-2); border-color: var(--deep-2); }
.btn-outline { background: transparent; color: var(--deep); }
.btn-outline:hover { background: var(--deep); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--deep-2); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--deep-2); }
.btn-ghost { background: transparent; border-color: rgba(238, 242, 248, 0.55); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--deep-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.more {
  display: inline-flex; align-items: center; gap: 0.5em;
  color: var(--deep); font-weight: 500; font-size: 0.98rem; text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 3px;
}
.more svg { width: 16px; height: 16px; flex: none; transition: transform 0.15s; }
.more:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------ hero (home) */

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep-2); color: var(--on-deep); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; will-change: transform; }
/* Navy over the photo: heavy on the left where the words are, lighter on the right. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--shade), 0.6) 0%, rgba(var(--shade), 0) 28%),
    linear-gradient(90deg, rgba(var(--shade), 0.94) 0%, rgba(var(--shade), 0.84) 40%, rgba(var(--shade), 0.5) 72%, rgba(var(--shade), 0.36) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding-top: calc(var(--header-h) + var(--safe-top) + clamp(48px, 7vw, 104px));
  padding-bottom: clamp(64px, 8vw, 120px);
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero-copy h1 { max-width: 15em; color: #fff; }
.hero-copy .lead { max-width: 34em; color: rgba(238, 242, 248, 0.86); }
.hero .dates { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); }

/* Filing dates card */
.dates { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(22px, 3vw, 32px); }
.dates-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.dates-head p:last-child { font-size: 0.92rem; color: var(--muted); }
.dates table { width: 100%; border-collapse: collapse; }
.dates th, .dates td { padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; text-align: left; }
.dates th { font-weight: 500; color: var(--ink); font-size: 0.99rem; line-height: 1.35; padding-right: 16px; }
.dates th > span { display: block; font-weight: 400; font-size: 0.84rem; color: var(--muted); margin-top: 2px; }
.dates td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; font-size: 0.99rem; }
.dates tr:last-child th, .dates tr:last-child td { border-bottom: 0; }
.dates-foot { margin-top: 4px; padding-top: 14px; border-top: 3px double var(--ink); font-size: 0.84rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .hero::before {
    background: linear-gradient(180deg, rgba(var(--shade), 0.82) 0%, rgba(var(--shade), 0.72) 45%, rgba(var(--shade), 0.9) 100%);
  }
  .hero-media img { object-position: 50% 40%; }
}

/* ------------------------------------------------------------ page head (inner pages) */

.page-head { background: var(--tint); }
.page-head-inner { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding-block: clamp(48px, 6vw, 84px) clamp(44px, 5.5vw, 72px); }
.page-head h1 { max-width: 18em; }
.page-head .lead { max-width: 40em; }
.crumbs { font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--deep); text-decoration: underline; text-decoration-color: var(--gold); }
.crumbs span[aria-hidden] { margin-inline: 8px; color: #a3adbc; }

/* Page head on a full-width photo, as on the home page. The navy is heavy on the left,
   where the words are, and lighter on the right, so the photo shows. */
.page-head.photo { position: relative; isolation: isolate; overflow: hidden; background: var(--deep-2); color: var(--on-deep); }
.page-head-bg { position: absolute; inset: 0; z-index: -2; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.page-head.photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--shade), 0.93) 0%, rgba(var(--shade), 0.84) 42%, rgba(var(--shade), 0.52) 74%, rgba(var(--shade), 0.4) 100%);
}
.page-head.photo .page-head-inner { padding-block: clamp(76px, 9vw, 136px) clamp(68px, 8vw, 120px); }
.page-head.photo h1 { color: #fff; }
.page-head.photo .lead { color: rgba(238, 242, 248, 0.88); }
.page-head.photo .crumbs, .page-head.photo .crumbs a { color: rgba(238, 242, 248, 0.78); }
.page-head.photo .crumbs a:hover { color: #fff; }
.page-head.photo .crumbs span[aria-hidden] { color: rgba(238, 242, 248, 0.5); }
@media (max-width: 700px) {
  .page-head.photo::before { background: linear-gradient(180deg, rgba(var(--shade), 0.9) 0%, rgba(var(--shade), 0.84) 100%); }
  .page-head.photo .page-head-inner { padding-block: 56px 52px; }
}

/* Page head with a photo beside the words */
.page-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(44px, 5.5vw, 76px); }
.page-head-grid .page-head-inner { padding-block: 0; }
.page-head-media { margin: 0; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 3 / 2; background: var(--tint-2); box-shadow: var(--shadow); }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }
.provider { font-size: 0.92rem; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--gold); }
@media (max-width: 900px) {
  .page-head-grid { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(36px, 6vw, 56px); }
}

/* ------------------------------------------------------------ sections */

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section.band { background: var(--mist); }
.section.band + .section, .section + .section.band { border-top: 0; }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.split-head p:not(.label) { color: var(--text); max-width: 26em; }
.split-head .more { margin-top: 8px; }
.split-body { min-width: 0; display: flex; flex-direction: column; gap: 28px; }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

.prose { display: flex; flex-direction: column; gap: 1.1em; max-width: 40em; }
.prose h3 { margin-top: 0.7em; }

/* The principal's photo */
.portrait { margin: 8px 0 4px; width: min(100%, 280px); }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-card); background: var(--tint); }
.portrait figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) { .portrait { width: 220px; } }

/* Service group cards (home) */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 44px); }
.group-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; transition: box-shadow 0.3s ease; }
.group-card:hover { box-shadow: var(--shadow); }
.group-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint-2); }
.group-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.group-card:hover .group-media img { transform: scale(1.035); }
.group-body { flex: 1; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: clamp(22px, 3vw, 34px); }
.group-body h3 { font-size: 1.5rem; }
.group-body h3 a { color: var(--ink); text-decoration: none; }
.group-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.group-links { list-style: none; margin: 6px 0 10px; padding: 0; width: 100%; border-top: 1px solid var(--ink); }
.group-links li { border-bottom: 1px solid var(--line); }
.group-links a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; color: var(--ink); text-decoration: none; }
.group-links a span { font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.group-links a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.group-body .more { margin-top: auto; }
/* a single service card runs across the full width, photo on the left */
.groups > .group-card:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.groups > .group-card:only-child .group-media { aspect-ratio: auto; height: 100%; min-height: 380px; }
@media (max-width: 900px) {
  .groups { grid-template-columns: minmax(0, 1fr); }
  .groups > .group-card:only-child { display: flex; }
  .groups > .group-card:only-child .group-media { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
}

/* Service rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 24px; gap: clamp(16px, 3vw, 40px);
  align-items: start; padding: 26px 0; color: inherit; text-decoration: none;
  transition: background-color 0.15s, padding 0.15s;
}
.row h3 { transition: color 0.15s; }
.row-when { display: block; margin-top: 6px; font-size: 0.86rem; color: var(--muted); letter-spacing: 0.01em; }
.row p { color: var(--text); }
.row svg { width: 20px; height: 20px; margin-top: 5px; color: #99a4b5; transition: transform 0.15s, color 0.15s; }
a.row:hover h3 { color: var(--deep); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a.row:hover svg { transform: translateX(4px); color: var(--gold-ink); }

@media (max-width: 640px) {
  .row { grid-template-columns: minmax(0, 1fr) 24px; }
  .row > div, .row > p { grid-column: 1; }
  .row svg { grid-column: 2; grid-row: 1; }
}

/* Facts list */
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.9rem; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
.facts dd > span:not([lang]):not(.nw) { display: block; font-weight: 400; color: var(--text); font-size: 0.95rem; }
.facts dd.with-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.facts dd.with-copy a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .facts-long div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .facts-long dd > span:not([lang]):not(.nw) { font-size: 1rem; }
}

/* Bulleted lists */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.62em; }
.list li { position: relative; padding-left: 1.35em; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--gold); }
.list.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.62em clamp(24px, 4vw, 48px); }
@media (max-width: 640px) { .list.cols { grid-template-columns: minmax(0, 1fr); } }

/* Numbered steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-size: 1.28rem; font-weight: 500; color: var(--gold-ink); font-variant-numeric: tabular-nums; line-height: 1.3; }
.steps h3 { margin-bottom: 6px; }

/* Questions and answers */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.12rem; font-weight: 500; line-height: 1.4; transition: color 0.15s; }
.faq summary:hover h3 { color: var(--deep); }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 1.5px 14px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { overflow: hidden; }
.faq-a > div { display: flex; flex-direction: column; gap: 0.8em; padding: 0 40px 22px 0; max-width: 44em; }

/* Insight cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 44px); }
.card { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; border-top: 1px solid var(--ink); padding-top: 20px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 0.86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-meta .label { font-size: 0.74rem; }
.card h2, .card h3 { font-size: 1.22rem; line-height: 1.28; letter-spacing: -0.01em; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--deep); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.card p { font-size: 0.98rem; }
.card .more { margin-top: auto; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-note { margin-top: clamp(36px, 5vw, 56px); padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); max-width: 52em; }
@media (max-width: 900px) { .cards, .cards-2 { grid-template-columns: minmax(0, 1fr); } }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }
.section-head > p { max-width: 30em; color: var(--text); }

/* Contact band and the point of contact card */
.contact-band { background: var(--tint-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 7vw, 92px); }
.contact-grid > div:first-child { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.contact-grid p { max-width: 34em; }
.poc { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding: clamp(22px, 3vw, 32px); background: var(--paper); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.poc-person { display: flex; align-items: center; gap: 18px; }
.poc-face { width: 88px; height: 88px; flex: none; border-radius: 50%; object-fit: cover; background: var(--tint); }
.poc-person .label { font-size: 0.72rem; }
.poc-name { margin-top: 4px; color: var(--ink); font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.poc-role { color: var(--muted); font-size: 0.92rem; }
.contact-lines { margin: 0; width: 100%; border-top: 1px solid var(--ink); }
.contact-lines div { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid rgba(20, 33, 59, 0.16); }
.contact-lines dt { font-size: 0.9rem; color: var(--muted); }
.contact-lines dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.contact-lines dd a { color: var(--ink); }
.split-head .poc-person { margin-top: 10px; }
.split-head .poc-face { width: 104px; height: 104px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ services pages */

.svc-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: var(--section); }
.svc-nav { position: sticky; top: calc(var(--safe-top) + var(--header-h-min) + 28px); display: flex; flex-direction: column; gap: 14px; }
.svc-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc-nav li { border-bottom: 1px solid var(--line); }
.svc-nav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-size: 0.98rem; }
.svc-nav a:hover { color: var(--deep); text-decoration: underline; text-decoration-color: var(--gold); }
.svc-list { min-width: 0; display: flex; flex-direction: column; }
.svc { display: flex; flex-direction: column; gap: 22px; padding-block: clamp(36px, 4.5vw, 56px); border-bottom: 1px solid var(--line); }
.svc:first-child { padding-top: 0; }
.svc:last-child { border-bottom: 0; padding-bottom: 0; }
.svc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.svc-when { font-size: 0.9rem; color: var(--muted); }
.svc > p { max-width: 42em; }
.svc h3 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: -6px; }
.svc .note { font-size: 0.95rem; color: var(--muted); max-width: 46em; }
@media (max-width: 900px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr); }
  .svc-nav { position: static; }
}

/* ------------------------------------------------------------ article */

.article-layout { padding-block: clamp(44px, 6vw, 80px) var(--section); }
.article-side { position: sticky; top: calc(var(--safe-top) + var(--header-h-min) + 28px); font-size: 0.92rem; color: var(--muted); font-variant-numeric: tabular-nums; gap: 10px; }
.article-side .more { margin-top: 14px; }
.article { min-width: 0; max-width: 44rem; display: flex; flex-direction: column; gap: 1.1em; }
.article h2 { font-size: 1.5rem; margin-top: 1.2em; }
.article > h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.15rem; margin-top: 0.6em; }
.article-meta { font-size: 0.92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.article-note { margin-top: 1.8em; padding-top: 1.3em; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.7em; }
.article-note > p:first-child { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.article-note ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4em; }
.article-note a { color: var(--text); }
.signoff { margin-top: 1.2em; display: flex; flex-direction: column; gap: 1.2em; }
.signoff-person { display: flex; align-items: center; gap: 14px; }
.signoff-face { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: var(--tint); }
.signoff-name { color: var(--ink); font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.signoff-role { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) {
  .article-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .article-side .more { display: none; }
}

.table-wrap { overflow-x: auto; margin-block: 0.4em; }

/* ------------------------------------------------------------ fees page */

table.data.fees { min-width: 0; }
table.data.fees td { color: var(--ink); }
table.data.fees .sub { display: block; margin-top: 3px; font-size: 0.9rem; font-weight: 400; line-height: 1.5; color: var(--muted); }
/* worked examples: column headings wrap, and the amounts keep a gap between them */
table.data.fees-eg thead th { white-space: normal; vertical-align: bottom; }
table.data.fees-eg th.num, table.data.fees-eg td.num { padding-left: 18px; }
table.data.fees-eg tbody th { width: 34%; }
table.data.fees-eg td:last-child { font-weight: 600; }
@media (max-width: 640px) {
  table.data.fees-eg tbody th { width: auto; }
  table.data.fees-eg th.num, table.data.fees-eg td.num { padding-left: 0; text-align: left; }
  table.data.fees-eg.stack td { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.split-body .note { font-size: 0.95rem; color: var(--muted); max-width: 46em; }

/* ------------------------------------------------------------ vision and mission (About) */

.vm { margin: 0; display: flex; flex-direction: column; gap: 26px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.vm div { display: flex; flex-direction: column; gap: 6px; }
.vm dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.vm dd { margin: 0; max-width: 40em; color: var(--ink); font-size: 1.08rem; line-height: 1.6; }
.vm .vm-vision { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.012em; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 30rem; }
table.data th, table.data td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); border-bottom: 1px solid var(--ink); white-space: nowrap; }
table.data tbody th { font-weight: 500; color: var(--ink); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; white-space: nowrap; }
table.data tr.total th, table.data tr.total td { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); color: var(--ink); font-weight: 600; }

@media (max-width: 640px) {
  table.data { min-width: 0; }
  table.data thead th { white-space: normal; }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack tbody th { display: block; }
  table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table.data.stack tbody { border-top: 1px solid var(--ink); }
  table.data.stack tr { padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
  table.data.stack tbody th { border: 0; padding: 0 0 8px; font-size: 1.06rem; }
  table.data.stack td { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; border: 0; padding: 5px 0; }
  table.data.stack tbody th::before,
  table.data.stack td::before { content: attr(data-label); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
  table.data.stack tbody th::before { display: block; margin-bottom: 3px; }
  table.data.stack td::before { padding-top: 0.3em; }
}

/* ------------------------------------------------------------ footer */

.site-footer { background: var(--deep); color: var(--on-deep-muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 6vw, 76px) clamp(36px, 4vw, 52px); }
.footer-grid.cols-5 { grid-template-columns: minmax(0, 3.3fr) minmax(0, 2.7fr) minmax(0, 3.2fr) minmax(0, 1.8fr) minmax(0, 3.4fr); gap: clamp(24px, 3vw, 44px); }
.footer-brand { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.footer-brand img { width: 176px; height: auto; }
.footer-brand p { max-width: 20em; color: var(--on-deep-muted); }
.site-footer h2 { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.site-footer h2 a { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.22em; }
.footer-contact { overflow-wrap: break-word; }
.footer-legal { border-top: 1px solid rgba(238, 242, 248, 0.16); padding-block: 22px 30px; display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; line-height: 1.55; }
.footer-legal p { max-width: 62em; }
@media (max-width: 1180px) and (min-width: 1001px) {
  /* five columns get cramped here: the brand takes its own row above the four link columns */
  .footer-grid.cols-5 { grid-template-columns: minmax(0, 2.7fr) minmax(0, 3.2fr) minmax(0, 1.8fr) minmax(0, 3.4fr); }
  .footer-grid.cols-5 .footer-brand { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 32px; }
  .footer-grid.cols-5 .footer-brand p { max-width: 26em; }
}
@media (max-width: 1000px) {
  .footer-grid, .footer-grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid, .footer-grid.cols-5 { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ motion */

/* Sections fade up as they come into view. site.js adds .reveal only to blocks below the
   fold, and only when the visitor has not asked for reduced motion. */
.reveal {
  opacity: 0; transform: translate3d(0, 22px, 0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.3s ease;
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ small things */

.nw { white-space: nowrap; }
.copy-btn {
  background: none; border: 1px solid rgba(20, 33, 59, 0.3); border-radius: var(--radius); color: var(--ink);
  font: 500 0.82rem/1 var(--font); padding: 7px 10px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--ink); }

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

@media print {
  .site-header, .site-footer, .contact-band, .menu-toggle, .hero-media, .page-head-bg { display: none; }
  .page-head.photo { background: none; color: var(--ink); }
  .page-head.photo::before { display: none; }
  .page-head.photo h1, .page-head.photo .lead { color: var(--ink); }
  main { padding-top: 0; }
  .hero { background: none; color: var(--ink); }
  .hero::before { display: none; }
  .hero-copy h1 { color: var(--ink); }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { font-size: 11pt; }
}
