/* Everstone Partners — site styles.
   Pages alternate black and old-paper sections, always starting with black under the black header.
   Gold carries emphasis. Section colours are set once by re-scoping the tokens below. */

:root {
  --black: #000000;
  --black-hover: #2b2b2b;
  --gold: #c9a24a;
  --gold-light: #e9d29a;
  --gold-deep: #85600f;
  --paper: #f4eee2;
  --paper-deep: #ebe2cf;
  --ink: #1a1814;
  --muted: #5f594d;
  --rule: #dcd2bf;
  --field: #b9ae98;
  --field-bg: #ffffff;
  --field-ink: #1a1814;
  --error: #a3271f;
  --check: #85600f;
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 80px;
}

/* Dark surfaces: the header, every odd section of a page, and the footer. */
.site-header,
main > section:nth-of-type(odd),
.site-footer {
  --ink: #ffffff;
  --muted: #b9b2a5;
  --rule: #34302a;
  --gold-deep: var(--gold);
  --paper-deep: #17150f;
  --error: #ff9b8c;
  --check: var(--gold);
  background: var(--black);
  color: var(--ink);
}

/* Old-paper sections: aged sheet with faint mottling, pulp grain, fibres and light scratches. */
main > section:nth-of-type(even) {
  background-color: var(--paper);
  background-image:
    url('paper-scratches.svg'),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011 0.02' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.25 0 0 0 0 0.12 0.24 0 0 0 -0.09'/%3E%3C/filter%3E%3Crect width='520' height='520' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.25 0 0 0 0 0.12 0.55 0 0 0 -0.27'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 900px 600px, 520px 520px, 200px 200px;
  color: var(--ink);
}

main > section:nth-of-type(odd) .button--primary {
  background: var(--gold);
  color: var(--black);
}

main > section:nth-of-type(odd) .button--primary:hover {
  background: var(--gold-light);
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 16px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header--over {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  color: #fff;
  border-bottom-color: transparent;
}

.site-header--over.is-solid,
.site-header--over.nav-open {
  background: var(--black);
  border-bottom-color: var(--rule);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

/* The lockup follows the logo: icon, a fine divider, the name over a rule with a diamond, then the tagline. */
.logo-icon {
  height: 46px;
  width: auto;
  color: currentColor;
  flex: none;
}

.brand-divider {
  align-self: stretch;
  width: 1px;
  margin: 2px 14px;
  background: currentColor;
  opacity: 0.55;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-rule {
  position: relative;
  width: 78%;
  height: 7px;
  margin: 4px 0 3px;
  background:
    linear-gradient(currentColor, currentColor) left center / calc(50% - 6px) 1px no-repeat,
    linear-gradient(currentColor, currentColor) right center / calc(50% - 6px) 1px no-repeat;
  opacity: 0.7;
}

.brand-rule::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border: 1px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.brand-tagline {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.lang a {
  display: inline-block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-item > a:hover,
.nav-item > a[aria-current='page'] {
  border-bottom-color: var(--gold);
}

.subnav {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 300px;
  padding: 12px 0;
  list-style: none;
  background: var(--black);
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav-item--has-sub:hover .subnav,
.nav-item--has-sub:focus-within .subnav {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.subnav a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  text-decoration: none;
}

.subnav a:hover {
  background: var(--paper-deep);
  color: var(--gold-light);
}

.lang {
  display: flex;
  gap: 14px;
}

.lang a {
  opacity: 0.7;
}

.lang a[aria-current='true'] {
  opacity: 1;
  font-weight: 600;
  border-bottom-color: var(--gold);
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: inherit;
  font: 600 14px/1 var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
}

.menu-toggle-close {
  display: none;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-open {
  display: none;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-close {
  display: inline;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 32px;
    background: var(--black);
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav-open .site-nav {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item > a {
    display: block;
    padding: 16px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--rule);
  }

  .nav-item > a[aria-current='page'] {
    border-bottom-color: var(--rule);
    color: var(--gold-deep);
  }

  .subnav {
    position: static;
    min-width: 0;
    padding: 4px 0 8px 16px;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .subnav a {
    padding: 10px 0;
    font-size: 15px;
    color: var(--muted);
  }

  .lang {
    padding-top: 20px;
    gap: 24px;
  }

  .lang a {
    font-size: 16px;
  }

  .brand-word {
    font-size: 20px;
  }

  .brand-tagline {
    font-size: 9.5px;
  }

  .logo-icon {
    height: 42px;
  }

  .brand-divider {
    margin: 2px 12px;
  }
}

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 15px/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button--gold {
  background: var(--gold);
  color: var(--black);
}

.button--gold:hover {
  background: var(--gold-light);
}

.button--primary {
  background: var(--black);
  color: #fff;
}

.button--primary:hover {
  background: var(--black-hover);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.text-link:hover {
  color: var(--gold-deep);
}

/* ---------- Home hero (the only dark surface) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: #fff;
}

.hero-sentinel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80px;
  height: 1px;
}

.hero-inner {
  max-width: var(--container);
  min-height: max(640px, 100svh);
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) var(--gutter) clamp(56px, 9vh, 104px);
  display: flex;
  align-items: flex-end;
}

.hero-art {
  position: absolute;
  right: max(2vw, calc((100vw - var(--container)) / 2 - 40px));
  bottom: -10svh;
  height: 90svh;
  pointer-events: none;
}

.hero-mark {
  height: 100%;
  width: auto;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero-title {
  font-size: clamp(52px, 7.8vw, 108px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
}

.hero-text {
  max-width: 52ch;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

.hero-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.hero-link:hover {
  color: var(--gold-light);
}

/* The one orchestrated moment: the mark grows once on load. */
.mark-ring,
.mark-stem {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: mark-draw 1.6s cubic-bezier(0.4, 0.1, 0.2, 1) 0.2s forwards;
}

.mark-stem {
  animation-duration: 1s;
  animation-delay: 1.15s;
}

.mark-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  animation: mark-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.mark-bar:nth-child(1) { animation-delay: 0.45s; }
.mark-bar:nth-child(2) { animation-delay: 0.55s; }
.mark-bar:nth-child(3) { animation-delay: 0.65s; }
.mark-bar:nth-child(4) { animation-delay: 0.75s; }
.mark-bar:nth-child(5) { animation-delay: 0.85s; }
.mark-bar:nth-child(6) { animation-delay: 0.95s; }

.mark-leaves {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scale(0.82);
  animation: mark-unfold 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.95s forwards;
}

@keyframes mark-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes mark-rise {
  to { transform: scaleY(1); }
}

@keyframes mark-unfold {
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark * {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .site-header,
  .subnav,
  .button {
    transition: none;
  }
}

@media (max-width: 820px) {
  .hero-art {
    right: -14vw;
    bottom: auto;
    top: calc(var(--header-h) - 8px);
    height: 58svh;
    opacity: 0.4;
  }

  .hero-title {
    margin-bottom: 24px;
  }

  .hero-text {
    margin-bottom: 32px;
  }
}

/* Tablets in portrait have room above the headline: show the mark at full strength there. */
@media (min-width: 600px) and (max-width: 820px) and (min-height: 900px) {
  .hero-art {
    right: 6vw;
    top: calc(var(--header-h) + 40px);
    height: 48svh;
    opacity: 1;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 9vw, 136px) 0;
}

.section--tight {
  padding: clamp(48px, 6vw, 88px) 0;
}

.section--stone {
  background: var(--paper-deep);
}

.section-head {
  max-width: 720px;
}

.section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  margin-bottom: 20px;
}

.section-intro {
  max-width: 60ch;
  font-size: 18px;
  color: var(--muted);
}

/* Stages: three steps that rise from left to right, echoing the bars in the mark. */
.stage-list {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: clamp(48px, 6vw, 80px);
  align-items: start;
}

.stage {
  position: relative;
  padding-top: 28px;
}

/* The gold rule above each stage. On wide screens site.js replaces the three rules with one
   staircase line that ends in the Everstone sprout. */
.stage::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--gold);
  transform-origin: 0 50%;
}

.stage--1 { margin-top: 112px; }
.stage--2 { margin-top: 56px; }

.stage-step {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
}

.stage-name {
  font-size: clamp(30px, 3vw, 38px);
  margin-bottom: 12px;
}

.stage-line {
  color: var(--muted);
  max-width: 32ch;
}

.stage-services {
  list-style: none;
  margin-top: 20px;
}

.stage-services li + li {
  margin-top: 14px;
}

.stage-services a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.stage-services a:hover {
  color: var(--gold-deep);
}

.stage-services span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

.stage-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .stage-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stage--1,
  .stage--2 {
    margin-top: 0;
  }
}

/* Growth motion (site.js). Text is always readable: before the section is reached it only
   sits 28px lower, then rises as the gold line reaches its stage. */
.growth-line {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}

.has-line > .growth-line {
  display: block;
}

.has-line > .stage::before {
  visibility: hidden;
}

.growth-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
}

.growth-leaf,
.growth-vein {
  stroke: var(--gold);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.growth-leaf {
  fill: var(--gold);
  fill-opacity: 0.18;
}

.growth-vein {
  fill: none;
  stroke-width: 1;
}

.growth-sprout {
  opacity: 0;
  transform: scale(0.2);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: opacity 0.4s ease, transform 1s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}

.is-grown .growth-sprout {
  opacity: 1;
  transform: none;
}

.stage.is-waiting::before {
  transform: scaleX(0);
}

.stage.is-waiting > * {
  transform: translateY(28px);
}

.stage.is-growing::before {
  transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1) var(--delay, 0s);
}

.stage.is-growing > * {
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--delay, 0s) + var(--i, 0) * 80ms);
}

.stage > :nth-child(2) { --i: 1; }
.stage > :nth-child(3) { --i: 2; }
.stage > :nth-child(4) { --i: 3; }
.stage > :nth-child(5) { --i: 4; }

@media (prefers-reduced-motion: reduce) {
  .stage.is-waiting::before,
  .stage.is-waiting > *,
  .growth-sprout {
    transform: none;
    transition: none;
  }
}

/* Approach */
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

.approach-title {
  font-size: clamp(34px, 4.4vw, 56px);
  margin-bottom: 24px;
}

.approach-lead p {
  font-size: 18px;
  color: var(--muted);
  max-width: 44ch;
}

.approach-points {
  margin: 0;
}

.approach-points div {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.approach-points div:last-child {
  border-bottom: 1px solid var(--rule);
}

.approach-points dt {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 6px;
}

.approach-points dd {
  margin: 0;
  color: var(--muted);
}

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

/* Stats */
.stat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.stat {
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}

.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(36px, 3.8vw, 50px);
  font-weight: 500;
  line-height: 1.02;
  white-space: nowrap;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.stat-label {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 26ch;
}

@media (max-width: 980px) {
  .stat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
}

@media (max-width: 480px) {
  .stat-list {
    grid-template-columns: 1fr;
  }
}

/* Founder */
.founder-quote {
  margin: 0 0 32px;
  max-width: 820px;
}

.founder-quote blockquote {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.22;
}

.founder-quote blockquote p {
  margin: 0;
}

.founder-quote figcaption {
  font-size: 15px;
  color: var(--muted);
}

.founder-name {
  font-weight: 600;
  color: var(--ink);
}

/* Closing call to action */
.closing-inner {
  max-width: var(--container);
}

.closing-title {
  font-size: clamp(36px, 5vw, 64px);
  max-width: 18ch;
  margin-bottom: 20px;
}

.closing-text {
  max-width: 52ch;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
}

/* ---------- Inner pages ---------- */

.page-hero {
  padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 7vw, 96px);
}

.crumb {
  margin-bottom: 20px;
  font-size: 14px;
}

.crumb a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
}

.crumb a:hover {
  text-decoration: underline;
}

.page-title {
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.02;
  max-width: 16ch;
  margin-bottom: 28px;
}

.page-lead {
  max-width: 58ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 36px;
}

.page-hero .page-lead:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(32px, 6vw, 96px);
}

.split-title {
  font-size: clamp(28px, 3vw, 36px);
}

.split-body {
  font-size: 18px;
  max-width: 62ch;
}

.story-body p + p {
  margin-top: 18px;
}

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

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
  margin-top: 40px;
}

@media (min-width: 1000px) {
  .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 28px; }
}

@media (min-width: 820px) {
  .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

/* Trusted partners */
.partner-intro {
  font-size: 18px;
  margin-bottom: 24px;
}

.partner-direct {
  color: var(--muted);
  margin-bottom: 12px;
}

.partner-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}

.partner {
  padding-top: 20px;
  border-top: 2px solid var(--gold);
}

.partner-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.partner-name {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
}

.partner p {
  color: var(--muted);
}

.stage-note a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.steps li {
  counter-increment: step;
  padding-top: 20px;
  border-top: 2px solid var(--gold);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.steps h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

.checks {
  list-style: none;
}

.checks li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--rule);
}

.checks li:first-child {
  border-top: 1px solid var(--rule);
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 27px;
  width: 16px;
  height: 2px;
  background: var(--gold);
}

.related-title {
  font-size: 28px;
  margin-bottom: 24px;
}

.related-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.related-list a {
  display: block;
  height: 100%;
  padding: 24px 0;
  border-top: 2px solid var(--rule);
  text-decoration: none;
}

.related-list a:hover {
  border-top-color: var(--gold);
}

.related-name {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 6px;
}

.related-short {
  display: block;
  color: var(--muted);
}

@media (max-width: 680px) {
  .related-list {
    grid-template-columns: 1fr;
  }
}

/* HRIS (self-contained section) */
.hris-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.hris-points li {
  padding-top: 24px;
  border-top: 2px solid var(--gold);
}

.hris-points h2 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hris-points p {
  color: var(--muted);
}

.hris-next {
  margin-top: clamp(48px, 6vw, 88px);
  padding: 40px;
  background: var(--paper-deep);
}

.hris-next p {
  max-width: 56ch;
  font-size: 18px;
  margin-bottom: 24px;
}

@media (max-width: 820px) {
  .hris-points {
    grid-template-columns: 1fr;
  }

  .hris-next {
    padding: 28px 20px;
  }
}

/* Open roles */
.empty-state {
  max-width: 60ch;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.role-list {
  list-style: none;
}

.role-list a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.role-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.role-meta {
  color: var(--muted);
}

.role-facts {
  display: flex;
  gap: 40px;
  margin: 0;
}

.role-facts dt {
  font-size: 13px;
  color: var(--muted);
}

.role-facts dd {
  margin: 0;
  font-weight: 600;
}

/* Prose */
.prose {
  max-width: calc(68ch + 2 * var(--gutter));
}

.prose p,
.prose li {
  font-size: 17px;
}

.prose h2 {
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 600;
  margin: 48px 0 16px;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 22px;
  margin-bottom: 1em;
}

.prose li + li {
  margin-top: 8px;
}

.leader-name {
  font-size: 32px;
  font-weight: 600;
}

.leader-role {
  color: var(--gold-deep);
  font-weight: 600;
  margin: 4px 0 20px;
}

/* ---------- Forms ---------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}

.form-intro p {
  font-size: 18px;
  color: var(--muted);
  max-width: 40ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px clamp(32px, 6vw, 96px);
  align-items: start;
}

.contact-aside {
  padding-top: 4px;
}

.aside-h {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
}

.aside-h:not(:first-child) {
  margin-top: 32px;
}

.map {
  width: 100%;
  height: 260px;
  margin-top: 32px;
  border: 0;
  background: var(--paper-deep);
}

@media (max-width: 860px) {
  .form-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form {
  max-width: 720px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.field input:not([type='checkbox']),
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 2px;
  background: var(--field-bg);
  color: var(--field-ink);
  font: 400 16px/1.5 var(--sans);
}

.field input[type='file'] {
  padding: 11px 12px;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--black);
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.field [aria-invalid='true'] {
  border-color: var(--error);
}

.field-error {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--error);
}

.field--check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 4px 12px;
  align-items: start;
}

.field--check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--check);
}

.field--check label {
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.field--check label a {
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.field--check .field-error {
  grid-column: 2;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  margin-bottom: 20px;
}

.form-actions {
  margin-top: 8px;
}

.form-status {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: var(--paper-deep);
  font-weight: 500;
}

.form-status--error {
  border-left-color: var(--error);
}

.form-status .button {
  margin-top: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  font-size: 14px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr));
  gap: 40px;
}

.footer-brand p {
  margin-top: 20px;
  max-width: 34ch;
  color: var(--muted);
}

.footer-h {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.site-footer address {
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-legal {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  color: var(--muted);
  font-size: 13px;
}

.footer-legal p {
  margin: 0;
}

@media (max-width: 920px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Trusted Partners: the way in for partners who already work with us (12 Nov 2026). */
.partners-signin { max-width: 46rem; margin-top: 2.5rem; }
