/* ==========================================================================
   KINGSHOLME GROUP — design system
   "The Held Ground" — cartographic private-office aesthetic
   Palette: bottle-green ground · antique brass · warm ivory paper
   Type: Libre Caslon Display (display) · Hanken Grotesk (body) · IBM Plex Mono (data)
   ========================================================================== */

/* ---------- Tokens -------------------------------------------------------- */
:root {
  /* colour */
  --ground:    #112019;   /* primary dark surface — the enduring land */
  --ground-2:  #0d1812;   /* deeper, for hero/footer depth */
  --ground-3:  #0a130e;   /* deepest */
  --moss:      #1b3026;   /* lifted surface on dark */
  --moss-2:    #243b2f;   /* hover surface on dark */
  --brass:     #c2a14e;   /* antique brass accent */
  --brass-2:   #d8be80;   /* lighter brass — text on dark */
  --brass-3:   #a98735;   /* deeper brass — hover / pressed */
  --paper:     #f3efe4;   /* warm ivory reading surface */
  --paper-2:   #e9e3d3;   /* deeper paper */
  --paper-3:   #ded7c4;   /* deepest paper */
  --ink:       #15201a;   /* near-black green ink — text on light */
  --ink-soft:  #2c3a31;   /* secondary ink on light */
  --stone:     #5e6b5e;   /* muted sage-stone — secondary text on light */
  --stone-d:   #9aa89b;   /* secondary text on dark */
  --line-d:    rgba(243, 239, 228, 0.14);  /* hairline on dark */
  --line-l:    rgba(21, 32, 26, 0.12);     /* hairline on light */
  --brass-line: rgba(194, 161, 78, 0.34);

  /* type */
  --font-display: "Libre Caslon Display", "Times New Roman", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* fluid type scale */
  --fs-display: clamp(2.8rem, 1.3rem + 5.6vw, 5.6rem);
  --fs-h1:      clamp(2.3rem, 1.5rem + 3.2vw, 3.9rem);
  --fs-h2:      clamp(1.8rem, 1.3rem + 1.9vw, 2.75rem);
  --fs-h3:      clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  --fs-lead:    clamp(1.12rem, 1.02rem + 0.45vw, 1.38rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9rem;
  --fs-micro:   0.78rem;

  /* spacing */
  --space-section: clamp(4.5rem, 2.5rem + 6vw, 8.5rem);
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* shape + motion */
  --radius: 10px;
  --radius-sm: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

/* ---------- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Type ---------------------------------------------------------- */
.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: inherit;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.15rem; }
p { max-width: 64ch; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-soft); }
p + p { margin-top: 1.1em; }

/* eyebrow — cartographic coordinate label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  opacity: 0.7;
}
.eyebrow.center::before { display: none; }

/* ---------- Layout primitives -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }
.section--dark { background: var(--ground); color: var(--paper); }
.section--dark-2 { background: var(--ground-2); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-top: 1rem; }
.section-head .lead { margin-top: 1.1rem; color: var(--ink-soft); }
.section--dark .section-head .lead,
.section--dark-2 .section-head .lead { color: var(--stone-d); }

.rule { height: 1px; border: 0; background: var(--line-l); }
.section--dark .rule, .section--dark-2 .rule { background: var(--line-d); }

/* targets offset for sticky header on anchor scroll */
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  --bg: var(--brass);
  --fg: var(--ground-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
              box-shadow 0.35s var(--ease), color 0.35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); background: var(--brass-2); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --bg: transparent;
  --fg: var(--paper);
  border-color: var(--line-d);
  color: var(--paper);
}
.btn--ghost:hover { background: rgba(243,239,228,0.06); border-color: var(--brass); color: var(--paper); }
.btn--ink {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line-l);
}
.btn--ink:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--sm { padding: 0.7em 1.15em; font-size: 0.85rem; }
.btn .ico { width: 1.05em; height: 1.05em; }

.btn--wa { --bg: #25d366; --fg: #04210f; }
.btn--wa:hover { background: #2bec74; }

/* text link with brass arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brass-3);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.section--dark .link-arrow, .section--dark-2 .link-arrow { color: var(--brass-2); }
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header / Nav -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 24, 18, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 19, 14, 0.92);
  border-bottom-color: var(--line-d);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* brand mark — contour island */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--paper); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark .c { fill: none; stroke: var(--brass); stroke-width: 1.4; }
.brand-mark .c.dot { fill: var(--brass); stroke: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand-name b { font-weight: 400; }
.brand-name span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.28em;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--stone-d);
  padding: 0.55em 0.85em;
  border-radius: 999px;
  position: relative;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"] { background: rgba(243,239,228,0.07); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper);
  padding: 0.5em 0.9em;
  border: 1px solid var(--line-d);
  border-radius: 999px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.header-phone:hover { border-color: var(--brass); color: var(--brass-2); }
.header-phone .ico { width: 1em; height: 1em; color: var(--brass); }

.nav-toggle {
  display: inline-flex;
  width: 46px; height: 46px;
  border: 1px solid rgba(243, 239, 228, 0.3);
  border-radius: 10px;
  background: rgba(243, 239, 228, 0.04);
  color: var(--paper);
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-toggle:hover { border-color: var(--brass); background: rgba(194, 161, 78, 0.1); }
.nav-toggle .ico-bars { width: 22px; height: 22px; overflow: visible; }
.nav-toggle .ico-bars .b {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
body.nav-open .nav-toggle .ico-bars .b:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle .ico-bars .b:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle .ico-bars .b:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 940px) {
  .header-phone { display: none; }
  .header-actions .btn:not(.nav-toggle) { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ground-2);
    border-bottom: 1px solid var(--line-d);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.35s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  body.nav-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a {
    padding: 1em 0.5em;
    border-bottom: 1px solid var(--line-d);
    border-radius: 0;
    font-size: 1.05rem;
  }
  .nav a[aria-current="page"] { background: transparent; color: var(--brass-2); }
}

@media (min-width: 941px) {
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ground-2);
  color: var(--paper);
  overflow: hidden;
  padding-block: clamp(5rem, 3rem + 8vw, 9rem) clamp(4rem, 2rem + 5vw, 7rem);
}
.hero::before {
  /* faint coordinate grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 75%);
}
.hero-contour {
  position: absolute;
  top: 50%;
  right: -8%;
  width: clamp(420px, 52vw, 760px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.hero-contour .c { fill: none; stroke: var(--brass); stroke-width: 1.1; opacity: 0.5; }
.hero-contour .c.faint { opacity: 0.18; }
.hero-contour .c.dot { fill: var(--brass); stroke: none; opacity: 0.9; }
.hero-inner { position: relative; z-index: 1; max-width: 920px; }
.hero h1 {
  font-size: var(--fs-display);
  margin-top: 1.4rem;
  letter-spacing: -0.015em;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-2);
}
.hero .lead {
  margin-top: 1.8rem;
  color: var(--stone-d);
  font-size: var(--fs-lead);
  max-width: 56ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.hero-meta {
  margin-top: 3.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-d);
}
.hero-meta div { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.hero-meta dd { font-size: 0.95rem; color: var(--paper); }

/* ---------- Pillars strip ------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-l);
  border-bottom: 1px solid var(--line-l);
}
.pillars > div {
  padding: 1.6rem 1.4rem;
  border-right: 1px solid var(--line-l);
}
.pillars > div:last-child { border-right: 0; }
.pillars b {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-3);
  margin-bottom: 0.4rem;
}
.pillars span { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars > div:nth-child(2) { border-right: 0; }
  .pillars > div:nth-child(1), .pillars > div:nth-child(2) { border-bottom: 1px solid var(--line-l); }
}
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars > div { border-right: 0; border-bottom: 1px solid var(--line-l); }
  .pillars > div:last-child { border-bottom: 0; }
}

/* ---------- Split intro --------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split .col-sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split .col-sticky { position: static; }
}

/* ---------- Capabilities grid -------------------------------------------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-l);
  border: 1px solid var(--line-l);
  border-radius: var(--radius);
  overflow: hidden;
}
.cap {
  background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  transition: background 0.4s var(--ease);
}
.cap:hover { background: #fff; }
.cap .num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  color: var(--brass-3);
}
.cap h3 { margin: 0.9rem 0 0.7rem; }
.cap p { color: var(--ink-soft); font-size: 0.98rem; }
.cap .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.cap .tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid var(--line-l);
  border-radius: 999px;
  padding: 0.3em 0.7em;
}
@media (max-width: 760px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- Editorial rows (services) ------------------------------------ */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.row + .row { border-top: 1px solid var(--line-l); }
.row.flip .row-text { order: 2; }
.row-text h2 { margin: 1rem 0 1.1rem; }
.row-text p { color: var(--ink-soft); }
.row-text .includes {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.4rem;
}
.row-text .includes li {
  position: relative;
  padding-left: 1.5em;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.row-text .includes li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
}
.row-when {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--stone);
  border-left: 2px solid var(--brass);
  padding-left: 0.9em;
}
.row-when b { color: var(--ink); font-weight: 600; }

/* contour panel — the visual half of each row */
.panel {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ground);
  border: 1px solid var(--line-d);
}
.panel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel .c { fill: none; stroke: var(--brass); stroke-width: 1; opacity: 0.55; }
.panel .c.faint { opacity: 0.2; }
.panel .c.dot { fill: var(--brass); stroke: none; }
.panel .grid-lines line { stroke: var(--line-d); stroke-width: 0.5; }
.panel .panel-label {
  position: absolute;
  left: 1.1rem; bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-2);
}
.panel .panel-coord {
  position: absolute;
  right: 1.1rem; top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--stone-d);
}
@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; }
  .row.flip .row-text { order: 0; }
  .row-text .includes { grid-template-columns: 1fr; }
}

/* ---------- Principles (dark, 2x2) --------------------------------------- */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-d); }
.principle { background: var(--ground); padding: clamp(1.8rem, 3vw, 2.8rem); }
.principle .pn {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  color: var(--brass);
}
.principle h3 { margin: 1rem 0 0.7rem; color: var(--paper); }
.principle p { color: var(--stone-d); font-size: 0.98rem; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Sectors ledger ----------------------------------------------- */
.ledger { border-top: 1px solid var(--line-l); }
.ledger-row {
  display: grid;
  grid-template-columns: 0.5fr 1.4fr 2fr;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.25rem 0.4rem;
  border-bottom: 1px solid var(--line-l);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.ledger-row:hover { background: var(--paper-2); padding-inline: 0.9rem; }
.ledger-row .lk {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  color: var(--brass-3);
}
.ledger-row .lt { font-family: var(--font-display); font-size: 1.3rem; }
.ledger-row .ld { font-size: 0.94rem; color: var(--stone); }
@media (max-width: 760px) {
  .ledger-row { grid-template-columns: 1fr; gap: 0.3rem; padding: 1.1rem 0.4rem; }
  .ledger-row:hover { padding-inline: 0.4rem; }
}

/* ---------- Process (numbered sequence) ---------------------------------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--brass);
}
.step::after {
  content: "";
  position: absolute;
  top: 0.45rem; left: 2.6rem; right: -1.4rem;
  height: 1px;
  background: var(--brass-line);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.section--dark .step h3 { color: var(--paper); }
.step p { font-size: 0.9rem; color: var(--stone-d); }
@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2,1fr); gap: 2rem 1.4rem; }
  .step::after { display: none; }
}
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* ---------- Pull quote / philosophy -------------------------------------- */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.pullquote em { color: var(--brass-2); font-style: italic; }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; border-top: 1px solid var(--line-d); padding-top: 2.5rem; }
.stat .sk { font-family: var(--font-display); font-size: clamp(2.2rem,1.6rem+2vw,3.2rem); color: var(--brass-2); line-height: 1; }
.stat .sl { display:block; margin-top: 0.6rem; font-size: 0.9rem; color: var(--stone-d); max-width: 26ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- FAQ ----------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--line-l); }
.faq-item { border-bottom: 1px solid var(--line-l); }
.section--dark .faq-list, .section--dark .faq-item { border-color: var(--line-d); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.5rem 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.section--dark .faq-q { color: var(--paper); }
.faq-q:hover { color: var(--brass-3); }
.section--dark .faq-q:hover { color: var(--brass-2); }
.faq-q .toggle {
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid var(--line-l);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brass-3);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.section--dark .faq-q .toggle { border-color: var(--line-d); color: var(--brass-2); }
.faq-item.open .faq-q .toggle { transform: rotate(45deg); border-color: var(--brass); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq-a-inner { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  padding: 0 0 1.6rem;
  color: var(--ink-soft);
  max-width: 70ch;
}
.section--dark .faq-a p { color: var(--stone-d); }

/* ---------- Forms --------------------------------------------------------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line-l);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.section--dark .form-card { background: var(--ground); border-color: var(--line-d); }
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem;
}
.section--dark .field label { color: var(--stone-d); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-l);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.section--dark .field input, .section--dark .field select, .section--dark .field textarea {
  background: var(--ground-2);
  color: var(--paper);
  border-color: var(--line-d);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(194,161,78,0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--stone); margin-top: 1rem; }
.section--dark .form-note { color: var(--stone-d); }

/* ---------- Contact layout ----------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.detail { display: flex; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line-l); }
.section--dark .detail { border-color: var(--line-d); }
.detail .di {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--brass-line);
  display: grid; place-items: center;
  color: var(--brass-3);
}
.section--dark .detail .di { color: var(--brass-2); }
.detail h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.section--dark .detail h4 { color: var(--paper); }
.detail p, .detail a { color: var(--ink-soft); font-size: 0.98rem; }
.section--dark .detail p, .section--dark .detail a { color: var(--stone-d); }
.detail a:hover { color: var(--brass-3); }

/* location card with stylised map */
.loc-card {
  border: 1px solid var(--line-l);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.loc-map { position: relative; aspect-ratio: 16/8; background: var(--ground); }
.loc-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loc-map .rl { stroke: var(--line-d); stroke-width: 0.6; fill: none; }
.loc-map .rd { stroke: var(--brass-line); stroke-width: 1; fill: none; }
.loc-map .pin { fill: var(--brass); }
.loc-map .pin-r { fill: none; stroke: var(--brass); stroke-width: 1; opacity: 0.5; }
.loc-body { padding: 1.4rem; }
.loc-body .lk { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.16em; color: var(--brass-3); }
.loc-body h3 { margin: 0.6rem 0 0.5rem; }
.loc-body p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- CTA band ------------------------------------------------------ */
.cta-band {
  position: relative;
  background: var(--ground);
  color: var(--paper);
  overflow: hidden;
  border-radius: var(--radius);
  padding: clamp(2.6rem, 5vw, 4.5rem);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000, transparent 70%);
}
.cta-band-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); max-width: 16ch; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }

/* ---------- Breadcrumbs --------------------------------------------------- */
.crumbs { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--stone); }
.crumbs a { color: var(--brass-3); }
.crumbs span { margin: 0 0.5em; opacity: 0.5; }
.section--dark .crumbs, .section--dark-2 .crumbs { color: var(--stone-d); }

/* ---------- Page hero (inner pages) -------------------------------------- */
.page-hero {
  background: var(--ground-2);
  color: var(--paper);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-bottom: 1px solid var(--line-d);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 80px 80px; opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 20%, transparent 70%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .crumbs { margin-bottom: 1.6rem; }
.page-hero h1 { margin-top: 1rem; max-width: 16ch; font-size: var(--fs-h1); }
.page-hero .lead { margin-top: 1.4rem; color: var(--stone-d); max-width: 60ch; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
  background: var(--ground-3);
  color: var(--stone-d);
  border-top: 1px solid var(--line-d);
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(3rem, 5vw, 4.5rem); }
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.92rem; color: var(--stone-d); max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a, .footer-col p { font-size: 0.92rem; color: var(--stone-d); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--brass-2); }
.footer-group {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line-d);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
}
.footer-group b { color: var(--paper); font-weight: 600; }
.footer-group a { display: inline-flex; align-items: center; gap: 0.4em; color: var(--brass-2); }
.footer-group a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid var(--line-d);
  padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}
.footer-bottom .legal { max-width: 70ch; color: var(--stone-d); opacity: 0.8; }
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom nav a:hover { color: var(--brass-2); }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Helpers ------------------------------------------------------- */
.center-text { text-align: center; }
.center-text .eyebrow { justify-content: center; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.cluster { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.list-check { display: grid; gap: 0.7rem; }
.list-check li { position: relative; padding-left: 1.7em; color: var(--ink-soft); }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.7em; height: 0.7em; border: 1px solid var(--brass); transform: rotate(45deg);
}
.section--dark .list-check li { color: var(--stone-d); }
.prose p { color: var(--ink-soft); }
.section--dark .prose p { color: var(--stone-d); }
.prose p + p { margin-top: 1.1em; }
.divider-label {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 2rem;
}
.divider-label::after { content: ""; height: 1px; background: var(--brass-line); flex: 1; }
