/* =========================================================================
   DARK HORSE HUB — Shared Stylesheet
   ---------------------------------------------------------------
   Source: Dark Horse Agency Design System (Claude Design), Brand Guidelines v1.0
   Palette: Severn Navy / Dovecote / Cleeve / Rococo / Cotswold.
   Typography: Lexia (serif, light) for display, Gotham for body.
   ========================================================================= */

@font-face{font-family:'Lexia';src:url('fonts/lexia-thin.ttf') format('truetype');font-weight:200;font-style:normal;font-display:swap}
@font-face{font-family:'Lexia';src:url('fonts/lexia-light.ttf') format('truetype');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Lexia';src:url('fonts/lexia-xbold.ttf') format('truetype');font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:'Gotham';src:url('fonts/gotham-light.otf') format('opentype');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Gotham';src:url('fonts/gotham-book.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Gotham';src:url('fonts/gotham-medium.otf') format('opentype');font-weight:500;font-style:normal;font-display:swap}

/* ---------- Design tokens (edit these to retheme) ---------- */
:root {
  /* --- Brand primitives (Brand Guidelines v1.0) --- */
  --dh-navy:        #023F5E;   /* Severn Navy — primary */
  --dh-navy-deep:   #01314A;   /* Deeper navy — footer / hover states */
  --dh-white:       #FFFFFF;   /* Pure White — primary */
  --dh-dovecote:    #88B3CA;   /* Secondary — pastel blue accent */
  --dh-dovecote-40: #CFE1EA;
  --dh-dovecote-20: #E7F0F4;
  --dh-cleeve:      #79AA97;   /* Tertiary — support only, never dominant */
  --dh-cleeve-40:   #C9DDD5;
  --dh-rococo:      #CB8793;   /* Tertiary — support only, never dominant */
  --dh-rococo-40:   #EACFD4;
  --dh-rococo-20:   #F5E7E9;
  --dh-cotswold:    #C0B1A4;   /* Tertiary — support only, never dominant */
  --dh-cotswold-40: #E6E0DB;
  --navy-a08:  rgba(2,63,94,.08);
  --navy-a12:  rgba(2,63,94,.12);
  --navy-a20:  rgba(2,63,94,.20);
  --navy-a60:  rgba(2,63,94,.60);
  --white-a70: rgba(255,255,255,.70);
  --white-a24: rgba(255,255,255,.24);

  /* --- Paper & ink (aliased onto brand primitives — retheme here) --- */
  --paper:       var(--dh-white);        /* main background */
  --paper-warm:  var(--dh-dovecote-20);  /* secondary surfaces */
  --paper-deep:  var(--dh-dovecote-40);  /* card / panel backgrounds */
  --ink:         var(--dh-navy);         /* headings */
  --ink-soft:    var(--dh-navy);         /* body text */
  --ink-muted:   var(--navy-a60);        /* captions, meta */

  /* Accents — Dark Horse brand palette */
  --stiffkey:      var(--dh-navy);       /* Dark Horse Navy — primary deep blue */
  --stiffkey-deep: var(--dh-navy-deep);  /* Footer / darker moments — deeper navy */
  --borrowed:      var(--dh-dovecote);   /* Dark Horse Light Blue — pastel accent */
  --borrowed-soft: var(--dh-dovecote-40);/* Lighter tint of Light Blue */
  --plaster:       var(--dh-rococo);     /* Dark Horse Rose — warm accent */
  --plaster-soft:  var(--dh-rococo-40);  /* Lighter tint of Rose */
  --line:          var(--navy-a12);      /* hairline borders, rules */
  --line-strong:   var(--navy-a20);      /* form-control borders */

  /* Additional brand hue */
  --moss:          var(--dh-cleeve);     /* Dark Horse Green */

  /* Legacy alias — kept for backwards compat with any --hague references */
  --hague:       var(--stiffkey);
  --hague-deep:  var(--stiffkey-deep);

  /* Type */
  --display: "Lexia", Georgia, serif;
  --body:    "Gotham", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --radius: 0; /* sharp, square corners per brand system */
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-top: 3rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 300;
  margin-top: 2rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 300;
  font-family: var(--display);
  letter-spacing: 0;
  color: var(--ink);
  margin-top: 2rem;
}

/* Used for sub-grouping within a section — e.g. the policy groupings
   inside the Freelancer Guide. Quieter than h4 and uppercase to read
   as a "label" rather than a heading. */
.policy-group-heading {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  margin: 2.5rem 0 0.75rem;
}

p { margin: 0 0 1.25em; max-width: 65ch; }

a {
  color: var(--hague);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease, color 0.2s ease;
}
a:hover { color: var(--ink); border-bottom-color: var(--ink); }

strong { font-weight: 500; color: var(--ink); }
em { font-style: italic; color: var(--ink-muted); }

ul, ol { padding-left: 1.2rem; margin: 0 0 1.5em; max-width: 65ch; }
li { margin-bottom: 0.5rem; }
li::marker { color: var(--plaster); }

blockquote {
  border-left: 2px solid var(--plaster);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 60ch;
}

/* ---------- Layout containers ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: 760px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.85);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--ink);
  border: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brand:hover { color: var(--hague); }

.brand__mark {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  font-family: var(--body);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border: none;
  position: relative;
  padding: 0.25rem 0;
}
.nav__link:hover { color: var(--ink); }
.nav__link--active { color: var(--ink); }
.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--plaster);
}

/* ---------- Search ---------- */
.search {
  position: relative;
}

.search__input {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  width: 200px;
  border-radius: var(--radius);
  transition: width 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}
.search__input:focus {
  outline: none;
  width: 260px;
  border-color: var(--hague);
  background: #fff;
}
.search__input::placeholder { color: var(--ink-muted); }

.search__icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: var(--ink-muted);
  pointer-events: none;
}

.search__results {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 360px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(2,63,94,.04), 0 12px 32px rgba(2,63,94,.10);
  display: none;
  z-index: 200;
}
.search__results.is-visible { display: block; }

.search__result {
  display: block;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  border-left: none;
  border-right: none;
  border-top: none;
  color: var(--ink-soft);
}
.search__result:last-child { border-bottom: none; }
.search__result:hover { background: var(--paper-warm); }

.search__result-page {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--plaster);
  display: block;
  margin-bottom: 0.25rem;
}
.search__result-title {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
  display: block;
  margin-bottom: 0.15rem;
}
.search__result-snippet {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.search__empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Hero (landing page) ---------- */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--plaster);
  margin-bottom: 1.5rem;
  display: block;
}

.hero__title {
  max-width: 14ch;
  margin-bottom: 1.5rem;
}

.hero__lede {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 55ch;
  color: var(--ink-soft);
}

/* ---------- Section cards (landing — Who/What/How) ---------- */
.sections {
  padding: 2rem 0 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .sections { grid-template-columns: 1fr; }
}

.section-card {
  display: block;
  background: var(--paper-warm);
  padding: 2.5rem 2rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-bottom: none;
  color: var(--ink-soft);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--plaster);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.section-card:hover {
  background: var(--paper);
  transform: translateY(-3px);
  border-color: var(--ink-muted);
}
.section-card:hover::before { transform: scaleY(1); }

.section-card__number {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--plaster);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: block;
}

.section-card__title {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--ink);
  margin: 0 0 1rem;
  line-height: 1;
}

.section-card__desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  min-height: 5em;
}

.section-card__cta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-card__cta::after {
  content: "→";
  transition: transform 0.3s ease;
}
.section-card:hover .section-card__cta::after { transform: translateX(4px); }

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  background: var(--stiffkey);
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative circles for visual interest */
.page-header::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(136, 179, 202, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.page-header::after {
  content: "";
  position: absolute;
  right: 40px;
  top: 40px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(136, 179, 202, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.page-header > .wrap { position: relative; z-index: 1; }

.page-header__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--borrowed);
  margin-bottom: 1rem;
  display: block;
  font-weight: 500;
}

.page-header__title {
  margin-bottom: 1rem;
  color: var(--paper);
}

.page-header__lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--borrowed-soft);
  font-weight: 300;
  max-width: 50ch;
  font-family: var(--display);
  font-style: italic;
}

/* ---------- Content blocks ---------- */
.content-section { margin-bottom: 4rem; }

.section-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 5rem 0 4rem;
  max-width: 100%;
}

/* Two-column layout for Who/What pages */
.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.two-col__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  font-family: var(--body);
  padding-top: 0.5rem;
  border-top: 1px solid var(--ink);
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Team gallery ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.team-card {
  background: var(--paper-warm);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.3s ease;
}
.team-card:hover { background: var(--paper-deep); }

.team-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--borrowed-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--stiffkey);
  margin-bottom: 1.25rem;
  overflow: hidden;
  flex-shrink: 0;
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__name {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.team-card__role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.team-card__qa {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.team-card__qa dt {
  font-weight: 500;
  color: var(--ink);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.15rem;
  margin-top: 0.65rem;
}
.team-card__qa dt:first-child { margin-top: 0; }
.team-card__qa dd { margin: 0; color: var(--ink-soft); }

/* ---------- Schedule grid ---------- */
.schedule {
  margin: 2rem 0;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule__row {
  display: grid;
  grid-template-columns: 200px repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
}
.schedule__row:last-child { border-bottom: none; }

/* Department-grouping header row */
.schedule__group {
  display: grid;
  grid-template-columns: 200px repeat(5, 1fr);
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.schedule__group:first-child { border-top: none; }

.schedule__group-label {
  grid-column: 1 / -1;
  padding: 0.7rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.schedule__group-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 0;
}

/* Top header row (days) */
.schedule__head {
  background: var(--stiffkey);
  color: var(--paper);
}
.schedule__head .schedule__cell {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-right-color: rgba(136, 179, 202, 0.2);
}

.schedule__cell {
  padding: 0.5rem;
  border-right: 1px solid var(--line);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
}
.schedule__cell:last-child { border-right: none; }

.schedule__name {
  font-family: var(--display);
  font-weight: 300;
  color: var(--ink);
  font-size: 0.95rem;
  justify-content: flex-start;
  padding-left: 1rem;
  gap: 0.6rem;
  position: relative;
}

/* Department colour indicator on the left edge of each name cell */
.schedule__name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--dept-colour, var(--line));
}

/* Day-cell variants */
.schedule__tag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 0;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.schedule__tag--office {
  background: var(--stiffkey);
  color: var(--paper);
}

.schedule__tag--home {
  background: var(--borrowed);
  color: var(--stiffkey-deep);
}

/* Half-day tag — split visually to show AM/PM */
.schedule__tag--am {
  background: linear-gradient(to right, var(--stiffkey) 50%, var(--paper-deep) 50%);
  color: var(--paper);
  padding: 0.3rem 0.55rem;
  font-size: 0.65rem;
}

.schedule__tag--pm {
  background: linear-gradient(to right, var(--paper-deep) 50%, var(--stiffkey) 50%);
  color: var(--paper);
  padding: 0.3rem 0.55rem;
  font-size: 0.65rem;
}

.schedule__tag--am-home {
  background: linear-gradient(to right, var(--borrowed) 50%, var(--paper-deep) 50%);
  color: var(--stiffkey-deep);
  padding: 0.3rem 0.55rem;
  font-size: 0.65rem;
}

.schedule__tag--pm-home {
  background: linear-gradient(to right, var(--paper-deep) 50%, var(--borrowed) 50%);
  color: var(--stiffkey-deep);
  padding: 0.3rem 0.55rem;
  font-size: 0.65rem;
}

/* Outlined ghost tag — used for flexible/as-needed availability (freelancers).
   Visually quieter than the solid Office/Home tags so it reads as a different
   kind of state rather than competing with them. */
.schedule__tag--flex {
  background: transparent;
  color: var(--stiffkey);
  border: 1px solid var(--stiffkey);
  font-weight: 400;
}

/* Empty (non-working) cell */
.schedule__cell--off {
  background: var(--paper-warm);
}

/* Department colour tokens (set on the row) */
.schedule__row[data-dept="management"] { --dept-colour: var(--stiffkey); }
.schedule__row[data-dept="client"]     { --dept-colour: var(--plaster); }
.schedule__row[data-dept="creative"]   { --dept-colour: #88B3CA; }
.schedule__row[data-dept="admin"]      { --dept-colour: #79AA97; }

/* Legend */
.schedule__key {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 1.25rem;
  align-items: center;
}
.schedule__key-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.schedule__key-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 700px) {
  .schedule { overflow-x: auto; }
  .schedule__row,
  .schedule__group { min-width: 620px; }
}

/* ---------- Values / Strategy list ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
  margin: 2.5rem 0;
}
@media (max-width: 720px) {
  .principles { grid-template-columns: 1fr; }
}

.principle__title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--ink);
  margin: 0 0 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.principle__num {
  font-size: 0.75rem;
  color: var(--plaster);
  letter-spacing: 0.15em;
  font-family: var(--body);
  font-weight: 400;
}

.principle__body {
  font-size: 0.95rem;
  margin: 0;
  max-width: none;
}

/* ---------- Pull-quote / feature block ---------- */
.feature-block {
  background: var(--borrowed);
  color: var(--stiffkey-deep);
  padding: clamp(2.5rem, 5vw, 4rem);
  margin: 4rem 0;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.feature-block::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(2, 63, 95, 0.15);
  border-radius: 50%;
}
.feature-block::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(2, 63, 95, 0.1);
  border-radius: 50%;
}

.feature-block h2 {
  color: var(--stiffkey-deep);
  margin-top: 0;
  max-width: 18ch;
}
.feature-block p { color: var(--stiffkey); max-width: 50ch; }
.feature-block .eyebrow { color: var(--stiffkey); }

/* ---------- Statement block (Vision / Mission — deep blue, set apart) ---------- */
.statement {
  background: var(--stiffkey);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  margin: 3.5rem 0;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

/* When two statements stack (Vision + Mission), reduce the gap so they
   read as a paired unit while still feeling distinct. */
.content-section + .content-section .statement {
  margin-top: 1.5rem;
}

/* Decorative circles, echoing page-header treatment */
.statement::before {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(136, 179, 202, 0.15);
  border-radius: 50%;
  pointer-events: none;
}
.statement::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(136, 179, 202, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.statement > * { position: relative; z-index: 1; }

.statement__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--borrowed);
  font-weight: 500;
  display: block;
  margin-bottom: 1.5rem;
}

.statement__body {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--paper);
  max-width: 32ch;
  margin: 0;
  letter-spacing: -0.005em;
}

/* Subtle large decorative quote mark, bottom-right */
.statement__mark {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(-0.5rem, 1vw, 0.5rem);
  font-family: var(--display);
  font-size: clamp(8rem, 18vw, 14rem);
  line-height: 1;
  color: var(--stiffkey-deep);
  pointer-events: none;
  user-select: none;
  font-weight: 300;
  opacity: 0.7;
}

/* ---------- How page: sticky side-nav layout ---------- */
.with-sidenav {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .with-sidenav { grid-template-columns: 1fr; gap: 2rem; }
  .sidenav { position: static !important; }
}

.sidenav {
  position: sticky;
  top: 5rem;
  font-size: 0.85rem;
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}

.sidenav__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  display: block;
}

.sidenav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidenav__list li { margin: 0; }

.sidenav__link {
  display: block;
  padding: 0.4rem 0;
  border: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: color 0.2s ease, padding 0.2s ease;
}
.sidenav__link:hover { color: var(--ink); padding-left: 0.25rem; }
.sidenav__link.is-current { color: var(--ink); font-weight: 500; }

/* ---------- Callout / placeholder boxes ---------- */
.placeholder {
  background: var(--paper-warm);
  border: 1px dashed var(--line);
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-style: italic;
  border-radius: var(--radius);
}

/* ---------- Location: Google Map + site plan side by side ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 720px) {
  .location-grid { grid-template-columns: 1fr; }
}

.location-grid__item {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

.location-grid__item iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.location-grid__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.location-grid__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(2, 63, 95, 0.85), transparent);
  color: var(--paper);
  padding: 1.5rem 1rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  pointer-events: none;
}

/* Placeholder state for the site-plan image until the file is dropped in */
.location-grid__item--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-style: italic;
  border-style: dashed;
}

/* ---------- Office photo (letterbox banner below the location grid) ---------- */
.office-photo {
  margin: 2rem 0 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-warm);
}
.office-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.office-photo__caption {
  padding: 0.75rem 1.25rem;
  background: var(--paper-warm);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
}

.callout {
  background: var(--plaster-soft);
  border-left: 3px solid var(--plaster);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

/* ---------- Action callout (highlighted intro/first-steps blocks) ---------- */
.action-callout {
  background: var(--borrowed-soft);
  border-left: 3px solid var(--stiffkey);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  border-radius: var(--radius);
  position: relative;
}

.action-callout__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--stiffkey);
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.action-callout__title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--stiffkey-deep);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.action-callout p,
.action-callout ul,
.action-callout ol {
  color: var(--stiffkey-deep);
  margin-bottom: 0.75rem;
}
.action-callout p:last-child,
.action-callout ul:last-child,
.action-callout ol:last-child { margin-bottom: 0; }

.action-callout ul,
.action-callout ol { padding-left: 1.2rem; }
.action-callout li::marker { color: var(--stiffkey); }

/* Checklist inside an action-callout — restyle the box for the blue background */
.action-callout .checklist li { border-bottom-color: rgba(2, 63, 95, 0.15); }
.action-callout .checklist li::before { border-color: var(--stiffkey); }

/* ---------- Accordion (details/summary) ---------- */
.accordion {
  margin: 2rem 0;
  border-top: 1px solid var(--line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.accordion__item > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--ink);
  transition: color 0.2s ease;
  user-select: none;
}

/* Hide the default disclosure triangle in all browsers */
.accordion__item > summary::-webkit-details-marker { display: none; }
.accordion__item > summary::marker { content: ""; }

.accordion__item > summary:hover { color: var(--stiffkey); }

/* Custom +/− indicator */
.accordion__item > summary::after {
  content: "+";
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--stiffkey);
  line-height: 1;
  width: 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}

.accordion__item[open] > summary::after {
  content: "−";
}

.accordion__item[open] > summary {
  color: var(--stiffkey);
}

.accordion__body {
  padding: 0.25rem 0 1.75rem;
  animation: accordionOpen 0.3s ease;
}

.accordion__body > *:last-child { margin-bottom: 0; }

@keyframes accordionOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Variant: department accordion (team grouping) */
.accordion--departments .accordion__item > summary {
  padding: 1.5rem 0;
  font-size: 1.3rem;
}

.accordion__count {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-left: 0.75rem;
}

.accordion__item[open] > summary .accordion__count {
  color: var(--stiffkey);
}

/* Push the +/- indicator to the end, count stays next to title */
.accordion__item > summary .accordion__title-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

/* Expand-all / collapse-all controls */
.accordion-controls {
  display: flex;
  justify-content: flex-end;
  margin: 1.5rem 0 0.5rem;
}

.accordion-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.55rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.accordion-toggle:hover {
  background: var(--borrowed-soft);
  border-color: var(--stiffkey);
  color: var(--stiffkey);
}
.accordion-toggle:focus-visible {
  outline: 2px solid var(--stiffkey);
  outline-offset: 2px;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.checklist li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink-muted);
  border-radius: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--stiffkey-deep);
  color: var(--white-a70);
  padding: 3rem 0 2rem;
  margin-top: 6rem;
  font-size: 0.85rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a { color: var(--plaster-soft); border-bottom-color: transparent; }
.site-footer a:hover { color: #fff; border-bottom-color: var(--plaster); }

.site-footer__brand {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--paper);
}

/* ---------- Utilities ---------- */
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--plaster);
  display: block;
  margin-bottom: 0.75rem;
}

.text-muted { color: var(--ink-muted); }

/* ---------- Glossary / definition-list (used for acronyms reference) ---------- */
.glossary {
  margin: 2rem 0;
  border-top: 1px solid var(--line);
}

.glossary__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

@media (max-width: 640px) {
  .glossary__item { grid-template-columns: 1fr; gap: 0.25rem; }
}

.glossary__term {
  font-family: var(--display);
  font-weight: 300;
  color: var(--ink);
  font-size: 1rem;
  margin: 0;
}

.glossary__definition {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 65ch;
}

/* Small inline label — used for 'coming soon' callouts and similar */
.pill {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.25rem 0.65rem;
  border-radius: 0;
  background: var(--plaster-soft);
  color: var(--stiffkey-deep);
  vertical-align: middle;
}

/* ---------- Client list table with column filters ---------- */
.client-table-wrap {
  margin: 2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.client-table-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.client-table-meta strong { color: var(--ink); font-weight: 500; }

.client-table-clear {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.client-table-clear:hover {
  background: var(--borrowed-soft);
  color: var(--stiffkey);
  border-color: var(--stiffkey);
}
.client-table-clear:disabled {
  opacity: 0.4;
  cursor: default;
}

.client-table-scroll { overflow-x: auto; }

.client-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 800px;
}

.client-table thead th {
  background: var(--stiffkey);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: left;
  padding: 0.85rem 1rem;
  border-right: 1px solid rgba(136, 179, 202, 0.18);
  white-space: nowrap;
  vertical-align: bottom;
}
.client-table thead th:last-child { border-right: none; }

.client-table thead .client-table__filter-row th {
  background: var(--paper-warm);
  padding: 0.55rem 0.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.client-table thead .client-table__filter-row th:last-child { border-right: none; }

.client-table__filter {
  width: 100%;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 300;
  padding: 0.4rem 1.6rem 0.4rem 0.6rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  /* Down-chevron */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237A766C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}
.client-table__filter:focus {
  outline: none;
  border-color: var(--stiffkey);
  background-color: #fff;
}
.client-table__filter:not([data-value=""]) {
  background-color: var(--borrowed-soft);
  border-color: var(--stiffkey);
}

.client-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
  line-height: 1.45;
}
.client-table tbody td:last-child { border-right: none; }
.client-table tbody tr:last-child td { border-bottom: none; }
.client-table tbody tr:hover td { background: var(--paper-warm); }

.client-table tbody td:first-child {
  font-family: var(--display);
  font-weight: 300;
  color: var(--ink);
}

.client-table__empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ink-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* Visually hidden — accessible to screen readers and keeps semantic structure
   intact, but doesn't render visually. Used when a design treatment
   incorporates the heading text (e.g. .statement label) and a duplicate H2
   would be redundant. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .sidenav, .search { display: none; }
  body { background: #fff; color: #000; }
}
