/* Fonts are self-hosted so visitors' IPs are never sent to a font CDN. */
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/Lato-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/Lato-900.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); }

:root {
  --ink: #0c1626;
  --ink-2: #1b2a40;
  --paper: #f5f3ee;
  --paper-2: #ebe7de;
  --line: #d6d0c3;
  --muted: #5b6474;
  --blue: #0f4fa8;
  --gold: #c89b35;
  --gold-soft: #e7c878;
  --white: #ffffff;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --sans: "Lato", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --head: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 14px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Unfilled company details (see site.config.json) */
mark.fill { background: #ffe58a; color: #5a4300; padding: 0 4px; border-radius: 3px; font-weight: 700; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand span { font-weight: 900; font-size: 25px; letter-spacing: -.025em; line-height: 1; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 243, 238, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled, .top.solid { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--head); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--blue); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font: 700 15px/1 var(--sans);
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--blue); border-color: var(--blue); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: min(calc(100vh - var(--head)), 780px);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 56px 64px max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
}
.hero h1 {
  font-weight: 900;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 18px 0 24px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lede { font-size: 19px; color: var(--muted); max-width: 30em; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; background: #111 url("../img/globe.jpg") center / cover no-repeat; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,22,38,.35), rgba(12,22,38,0) 40%);
}

/* ---------- Section scaffolding ---------- */
section { padding: 112px 0; }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-bottom: 56px; align-items: baseline; }
.sec-head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.015em;
  font-weight: 900;
  margin: 0;
  max-width: 18em;
}

/* ---------- About ---------- */
.services { border-top: 1px solid var(--line); }
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 64px; margin-left: 260px; }
.svc { display: grid; grid-template-columns: 44px 1fr; gap: 8px 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.svc .n { font-family: var(--mono); font-size: 13px; color: var(--gold); padding-top: 4px; }
.svc h3 { margin: 0; font-size: 21px; font-weight: 700; }
.svc p { grid-column: 2; margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Approach ---------- */
.route { background: var(--paper-2); }
.route-track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-left: 260px; }
.route-track::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; border-top: 2px dashed var(--gold); }
.stop { position: relative; padding-top: 40px; }
.stop::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper-2); border: 3px solid var(--blue);
}
.stop:last-child::before { background: var(--blue); }
.stop .label { display: block; margin-bottom: 8px; }
.stop h3 { margin: 0 0 8px; font-size: 19px; }
.stop p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Fees band ---------- */
.band { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/globe-900.jpg") right center / cover no-repeat;
  opacity: .16;
  mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
}
.band .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.band .label { color: var(--gold-soft); }
.band h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 900; margin: 16px 0 20px; letter-spacing: -.015em; }
.band p { color: #b9c3d3; margin: 0 0 28px; max-width: 30em; }
.band ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.band li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.band li span { font-family: var(--mono); font-size: 12px; color: var(--gold-soft); min-width: 28px; }
.band a:not(.btn) { color: var(--gold-soft); }
.band mark.fill { font-size: .9em; }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.contact h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; margin: 16px 0 0; }
.contact-box { border-top: 4px solid var(--ink); padding-top: 24px; }
.contact-box > p { margin: 0 0 20px; color: var(--muted); }
.contact-mail { display: inline-block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--gold); margin-bottom: 24px; word-break: break-all; }
.contact-mail:hover { color: var(--ink); }
.contact-facts { margin: 0 0 28px; display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; font-size: 15px; }
.contact-facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-facts dd { margin: 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--muted); background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--blue); text-decoration: underline; }
.foot-grid .brand span { font-size: 21px; }
.foot-grid .brand svg { width: 30px; height: 30px; }
.foot-about p { margin: 14px 0 0; max-width: 28em; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ---------- Legal pages ---------- */
.doc-head { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.02em; font-weight: 900; margin: 14px 0 16px; }
.doc-head .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.doc { padding: 56px 0 112px; }
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }
.toc { position: sticky; top: calc(var(--head) + 24px); font-size: 14px; max-height: calc(100vh - var(--head) - 48px); overflow: auto; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; padding-left: 12px; margin-left: -14px; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11.5px; color: var(--gold); padding-top: 2px; }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a.on { border-left-color: var(--gold); }
.prose { max-width: 720px; counter-reset: sec; }
.prose h2 { counter-increment: sec; font-size: 24px; line-height: 1.25; letter-spacing: -.01em; margin: 56px 0 14px; padding-top: 4px; }
.prose h2::before { content: counter(sec, decimal-leading-zero); display: block; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; color: var(--gold); margin-bottom: 6px; }
.prose h2:first-of-type { margin-top: 40px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: #2b3445; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); }
.prose strong { color: var(--ink); }
.summary { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 22px 26px; }
.summary .label { display: block; margin-bottom: 10px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin-bottom: 4px; }
.summary p.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }

/* ---------- Privacy choices ---------- */
.choice { background: var(--white); border: 1px solid var(--line); padding: 24px 26px; margin: 0 0 16px; }
.choice h3 { margin: 0 0 6px; font-size: 19px; }
.choice p:last-child { margin-bottom: 0; }
.status { display: inline-flex; align-items: flex-start; max-width: 100%; gap: 8px; font-family: var(--mono); font-size: 12.5px; padding: 6px 10px; border-radius: 3px; background: var(--paper-2); color: var(--ink); margin-bottom: 12px; }
.status::before { content: ""; flex: none; margin-top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #2f8f5b; }
.form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--line); padding: 26px; margin-top: 8px; }
.form label { display: grid; gap: 6px; min-width: 0; font-weight: 700; font-size: 15px; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
}
.form textarea { min-height: 110px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; }
.form .hint { font-size: 14px; color: var(--muted); margin: 0; }
.form .err { color: #a32b2b; font-size: 14px; margin: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .svc-list, .route-track { margin-left: 0; }
  .doc .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); background: var(--white); padding: 18px 22px; }
  .toc a { margin-left: 0; padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 56px 24px 48px; }
  .hero-photo { min-height: 360px; }
  .band .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  section { padding: 80px 0; }
}
@media (max-width: 720px) {
  .svc-list { grid-template-columns: 1fr; }
  .route-track { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .route-track::before { left: 7px; right: auto; top: 8px; bottom: 8px; border-top: 0; border-left: 2px dashed var(--gold); }
  .stop { padding: 0 0 32px; }
  .stop::before { left: -36px; top: 4px; }
  .stop:last-child { padding-bottom: 0; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero-copy { padding: 44px 16px 40px; }
  .top .btn { padding: 10px 14px; font-size: 14px; }
  .brand span { font-size: 22px; }
  .hero-photo { min-height: 300px; }
  .foot-grid { grid-template-columns: 1fr; }
  .contact-facts { grid-template-columns: 1fr; gap: 2px; }
  .contact-facts dd { margin-bottom: 10px; }
  .summary, .choice, .form { padding: 20px; }
  .doc-head { padding: 48px 0 36px; }
}
