/* THP Design System 2.0.0 — visual-only */
:root {
  --thp-navy: #0E1F3D;
  --thp-navy-2: #223754;
  --thp-white: #FFFFFF;
  --thp-surface: #F5F7FA;
  --thp-muted: #556276;
  --thp-line: #D9DFE7;
  --thp-line-strong: #728096;
  --thp-inverse: #FFFFFF;
  --thp-inverse-muted: #CAD3DE;
  --thp-inverse-line: #44556E;
  --thp-gold: #C9A24B;
  --thp-gold-text: #7D6228;
  --thp-font: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --thp-brand-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --thp-max: 75rem;
  --thp-gutter: clamp(1.25rem, 3vw, 2.5rem);
  --thp-section: clamp(3rem, 6vw, 5.5rem);
  --thp-radius: 2px;
  --thp-space-1: 4px;
  --thp-space-2: 8px;
  --thp-space-3: 12px;
  --thp-space-4: 16px;
  --thp-space-6: 24px;
  --thp-space-8: 32px;
  --thp-space-12: 48px;
  --thp-space-16: 64px;
  --thp-space-20: 80px;
  --thp-space-24: 96px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--thp-white);
  color: var(--thp-navy);
  font-family: var(--thp-font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
.thp-container {
  width: min(calc(100% - var(--thp-gutter) * 2), var(--thp-max));
  margin-inline: auto;
}
.thp-section { padding-block: var(--thp-section); }
.thp-h1 {
  margin: 0;
  font: 500 clamp(2.125rem, 4.4vw, 4rem) / 1.12 var(--thp-font);
  letter-spacing: -0.02em;
}
.thp-h2 {
  margin: 0;
  font: 500 clamp(1.75rem, 2.8vw, 2.5rem) / 1.22 var(--thp-font);
  letter-spacing: -0.015em;
}
.thp-label {
  font: 500 0.9375rem / 1.45 var(--thp-font);
  letter-spacing: 0.01em;
  text-transform: none;
}
.thp-reading { max-width: 68ch; }
.thp-numeric { font-variant-numeric: lining-nums tabular-nums; }
.thp-inverse {
  background: var(--thp-navy);
  color: var(--thp-inverse);
}
.thp-secondary { color: var(--thp-muted); }
.thp-inverse .thp-secondary { color: var(--thp-inverse-muted); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--thp-navy);
  outline-offset: 4px;
}
.thp-inverse a:focus-visible,
.thp-inverse button:focus-visible {
  outline-color: var(--thp-inverse);
}
@media (max-width: 47.999rem) {
  body { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   The Horizon Partnership — site layout (Design System 2.0.0, visual-only)
   Site-specific rules sit below the canonical block above. Content, IDs,
   anchors, links and scripts are unchanged; only presentation differs.
   ========================================================================== */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--thp-navy); color: var(--thp-inverse); }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

/* Full-bleed bands share one content edge: gutter, or centred 75rem field */
.edge, header, .hero, .band, footer {
  padding-inline: max(var(--thp-gutter), calc((100% - var(--thp-max)) / 2));
}
.nav, .wrap, .hero-grid, .foot { max-width: none; margin: 0; }

/* Legacy scroll-reveal: information is visible immediately (script unchanged) */
.rv, .rv.in { opacity: 1; transform: none; transition: none; }
.l1, .l2, .l3, .l4 { transition-delay: 0s; }

/* Shared label style (existing .meta / .idx / fact keys) */
.meta, .idx, .k {
  font: 500 0.9375rem / 1.45 var(--thp-font);
  letter-spacing: 0.01em;
  text-transform: none;
}
.meta { color: var(--thp-gold-text); }

/* --------------------------------------------------------------------------
   Masthead: location stamp strip + compact opaque navy header
   -------------------------------------------------------------------------- */
.edge {
  position: static;
  z-index: auto;
  background: var(--thp-navy);
  color: var(--thp-inverse-muted);
  font: 400 0.8125rem / 1.45 var(--thp-font);
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: right;
  padding-block: 10px 0;
}
.edge-tr { top: auto; right: auto; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--thp-navy);
  color: var(--thp-inverse);
  border-bottom: 1px solid var(--thp-inverse-line);
  transition: none;
}
header.solid { background: var(--thp-navy); }
.nav {
  min-height: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 32px;
  row-gap: 0;
  padding: 0;
}
.brand { display: flex; align-items: center; gap: 14px; padding: 12px 0; }

/* Protected identity: existing monogram disc and mono wordmark treatment */
.mono-disc {
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--thp-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--thp-brand-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  color: var(--thp-gold);
}
.brand .name, .foot .fb .name {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--thp-inverse);
}

.nav-links { display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 0; }
.nav-links a {
  display: inline-block;
  padding: 12px 0;
  font: 500 1rem / 1.4 var(--thp-font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--thp-inverse);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: none;
}
.nav-links a:hover { color: var(--thp-inverse); text-decoration: underline; text-decoration-color: var(--thp-gold); }
.nav-links a:focus-visible { outline: 2px solid var(--thp-inverse); outline-offset: 2px; }

/* Sticky header must not cover anchor destinations */
section[id] { scroll-margin-top: 80px; }

/* --------------------------------------------------------------------------
   Hero: white introduction, content-driven height, ruled facts strip
   -------------------------------------------------------------------------- */
.hero {
  position: static;
  z-index: auto;
  min-height: 0;
  display: block;
  background: var(--thp-white);
  color: var(--thp-navy);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}
.hero-grid {
  width: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.hero-eyebrow { display: block; margin-bottom: 24px; }
.hero h1 {
  margin: 0;
  font: 500 clamp(2.125rem, 4.4vw, 4rem) / 1.12 var(--thp-font);
  letter-spacing: -0.02em;
  color: var(--thp-navy);
  max-width: 16em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; font-weight: 500; color: inherit; }
.hero .sub {
  margin-top: 28px;
  max-width: 60ch;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--thp-muted);
}

.hero-right { align-self: auto; padding: 0; }
.hero-right .stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--thp-line);
  border-bottom: 1px solid var(--thp-line);
}
.hero-right .stack div {
  margin: 0;
  font: 500 0.9375rem / 1.45 var(--thp-font);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--thp-muted);
}
.hero-right .stack b {
  display: block;
  margin-top: 6px;
  font: 500 1.25rem / 1.35 var(--thp-font);
  letter-spacing: -0.01em;
  color: var(--thp-navy);
}

/* Existing "Scroll" cue: quiet, static, in flow */
.scroll-cue {
  position: static;
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 0.875rem / 1.45 var(--thp-font);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--thp-muted);
}
.scroll-cue .ln { width: 24px; height: 1px; background: var(--thp-line-strong); animation: none; transform: none; opacity: 1; }

/* --------------------------------------------------------------------------
   Sections: heading column and content column on one 12-column field
   -------------------------------------------------------------------------- */
section { position: static; z-index: auto; }
.band {
  padding-block: var(--thp-section);
  background: var(--thp-white);
  color: var(--thp-navy);
  border-top: 1px solid var(--thp-line);
}
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 48px;
  row-gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.sec-head { display: block; grid-column: 1; }
.sec-head .idx { margin-bottom: 16px; padding: 0; color: var(--thp-gold-text); }
.sec-head h2 {
  margin: 0;
  font: 500 clamp(1.75rem, 2.7vw, 2.375rem) / 1.22 var(--thp-font);
  letter-spacing: -0.015em;
  color: var(--thp-navy);
  max-width: none;
  text-wrap: balance;
}

/* Narrative blocks (Philosophy, Governance & Structure) */
.lede { display: block; grid-column: 2; margin: 0; }
.lede > div:empty { display: none; }
.lede .body { max-width: 62ch; }
.lede .body p {
  margin: 0 0 1.2em;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--thp-navy);
}
.lede .body p:last-child { margin-bottom: 0; }
.lede .body p .accent { font-family: inherit; font-style: normal; font-weight: 500; color: inherit; }

/* Approach: open numbered rows — number | heading | explanation */
.rows { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--thp-line-strong); }
.row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 4fr) minmax(0, 7fr);
  column-gap: 32px;
  row-gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--thp-line);
  align-items: baseline;
  transition: none;
}
.row:hover { background: transparent; }
.row .n {
  font: 500 0.9375rem / 1.45 var(--thp-font);
  letter-spacing: 0.01em;
  color: var(--thp-muted);
  font-variant-numeric: lining-nums tabular-nums;
}
.row .t {
  font: 500 clamp(1.25rem, 1rem + 0.6vw, 1.5rem) / 1.3 var(--thp-font);
  letter-spacing: -0.01em;
  color: var(--thp-navy);
}
.row .d { max-width: 62ch; line-height: 1.6; color: var(--thp-navy); }

/* The Firm: statement, open experience columns, backgrounds strip */
#firm { background: var(--thp-surface); border-top: 0; }
.cred { display: contents; }
.cred .statement {
  grid-column: 2;
  margin: 0;
  max-width: 56ch;
  font: 500 clamp(1.25rem, 1rem + 0.7vw, 1.5rem) / 1.4 var(--thp-font);
  font-style: normal;
  letter-spacing: -0.01em;
  color: var(--thp-navy);
}
.bench {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  background: transparent;
  border: 0;
}
.bench .cell { background: transparent; padding: 20px 0 0; border-top: 1px solid var(--thp-line-strong); }
.bench .cell .k {
  margin-bottom: 12px;
  font: 500 1.25rem / 1.3 var(--thp-font);
  letter-spacing: -0.01em;
  color: var(--thp-navy);
}
.bench .cell p { font-weight: 400; line-height: 1.6; color: var(--thp-navy); }

.inst { grid-column: 1 / -1; margin: 0; padding-top: 32px; border-top: 1px solid var(--thp-line); }
.inst .meta { margin-bottom: 12px; color: var(--thp-muted); }
.inst .list {
  font: 500 clamp(1.125rem, 1rem + 0.5vw, 1.375rem) / 1.9 var(--thp-font);
  letter-spacing: -0.005em;
  color: var(--thp-navy);
}
.inst .list span { white-space: nowrap; }
.inst .list i {
  color: var(--thp-line-strong);
  font-style: normal;
  font-size: 0.5em;
  vertical-align: middle;
  position: relative;
  top: -0.1em;
  margin: 0 0.9em;
}

/* Governance & Structure facts */
#structure { border-top: 0; }
.facts {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.fact { border-top: 1px solid var(--thp-line-strong); padding-top: 16px; }
.fact .k { margin-bottom: 8px; color: var(--thp-muted); }
.fact .v {
  font: 500 clamp(1.25rem, 1rem + 0.6vw, 1.5rem) / 1.3 var(--thp-font);
  letter-spacing: -0.01em;
  color: var(--thp-navy);
}

/* Enquiries: existing navy emphasis section, restyled only */
.contact { background: var(--thp-navy); color: var(--thp-inverse); border-top: 0; text-align: left; }
.contact .wrap { display: block; }
.contact .meta { color: var(--thp-gold); margin-bottom: 16px; }
.contact .big {
  margin: 0;
  font: 500 clamp(1.75rem, 2.7vw, 2.375rem) / 1.22 var(--thp-font);
  letter-spacing: -0.015em;
  color: var(--thp-inverse);
}
.contact .addr {
  margin-top: 24px;
  font: inherit;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--thp-inverse-muted);
}

/* Footer */
footer {
  position: static;
  z-index: auto;
  background: var(--thp-navy);
  color: var(--thp-inverse);
  border-top: 1px solid var(--thp-inverse-line);
  padding-block: 40px 44px;
}
.foot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: 48px;
  row-gap: 24px;
  align-items: start;
}
.foot .fb { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot .mono-disc { width: 30px; height: 30px; font-size: 15px; }
.foot p { max-width: 60ch; font: 400 0.875rem / 1.6 var(--thp-font); color: var(--thp-inverse-muted); }
.foot .disc { text-align: left; justify-self: stretch; max-width: 56ch; font-size: 0.875rem; color: var(--thp-inverse-muted); }

/* Focus on navy surfaces */
header a:focus-visible, .contact a:focus-visible, footer a:focus-visible { outline-color: var(--thp-inverse); }

/* --------------------------------------------------------------------------
   Responsive reflow — nothing is hidden; groups stack in source order
   -------------------------------------------------------------------------- */
@media (max-width: 56.249rem) {
  .wrap { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .sec-head, .lede, .cred .statement, .rows, .bench, .inst, .facts { grid-column: 1; }
  .sec-head h2 { max-width: 24ch; }
  .bench { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 47.999rem) {
  .edge { text-align: left; }
  header { position: static; }
  section[id] { scroll-margin-top: 16px; }
  .nav { min-height: 0; padding-bottom: 6px; }
  .nav-links { flex-basis: 100%; column-gap: 24px; }
  .nav-links a { padding: 10px 0; }
  .hero-right .stack { grid-template-columns: minmax(0, 1fr); padding: 0; border-bottom: 0; }
  .hero-right .stack div { padding: 14px 0; border-bottom: 1px solid var(--thp-line); }
  .row { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 24px 0; }
  .row .d { grid-column: 1 / -1; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 25rem) {
  .brand .name, .foot .fb .name { font-size: 0.75rem; letter-spacing: 0.2em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
