/* ============================================================
   Ravenhill Partners - main.css (v3)
   Structural system modelled on the Rubicon reference:
   navy structure, red diagonal wedge accent, white card grids
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-300.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/dm-600.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/dm-700.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0f1522;
  --navy-2: #141c2e;
  --navy-3: #1a2338;
  --red: #cd0100;
  --red-deep: #7f0100;
  --white: #ffffff;
  --band: #f4f5f7;
  --heading: #101624;
  --text: #5b5d66;
  --text-light: rgba(255, 255, 255, 0.72);
  --line: rgba(16, 22, 36, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);

  --display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 78px;
  --radius: 3px;
  --shadow: 0 3px 14px rgba(16, 22, 36, 0.07);
  --shadow-lift: 0 10px 26px rgba(16, 22, 36, 0.11);
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 400;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

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

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--display);
  font-weight: 300;
  color: var(--heading);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.4;
}

.h-banner {
  font-size: clamp(2.35rem, 4.8vw, 3.8rem);
  line-height: 1.12;
  color: var(--white);
}
.h-sec { font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
.h-mid { font-size: clamp(1.25rem, 1.9vw, 1.55rem); }

.label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 4.5vw, 56px); }
.sec-head .h-sec { margin-bottom: 14px; }
.sec-head p { font-size: 14px; color: var(--text); max-width: 600px; margin-inline: auto; }

.sec-head--left { text-align: left; margin-inline: 0; }
.sec-head--left p { margin-inline: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-deep); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--red); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.6); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--red); border-color: var(--red); }
.btn--outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heading);
}
.link-arrow .ar { color: var(--red); transition: transform 0.3s var(--ease); font-size: 14px; }
.link-arrow:hover .ar { transform: translateX(5px); }
.link-arrow--light { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: var(--navy);
  box-shadow: 0 8px 30px rgba(8, 11, 19, 0.4);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__mark path { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.brand__mark path.c-red { stroke: var(--red); }
.brand__text { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand__name {
  font-family: var(--display);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--white);
}
.brand__sub {
  font-family: var(--sans);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.52em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.site-nav__link {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 0;
  transition: color 0.3s var(--ease);
}
.site-nav__link:hover { color: var(--white); }
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__cta {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 2px;
  padding: 11px 22px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-nav__cta:hover { background: var(--red); border-color: var(--red); }

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.nav-drop__toggle .caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease);
}
.nav-drop__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(8, 11, 19, 0.28);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.nav-drop__panel::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-drop:hover .nav-drop__panel,
.nav-drop:focus-within .nav-drop__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-drop:hover .caret,
.nav-drop:focus-within .caret { transform: rotate(-135deg) translateY(-2px); }

.nav-drop__panel a {
  display: block;
  padding: 12px 24px;
  border-left: 2px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-drop__panel a:hover { border-left-color: var(--red); background: var(--band); }
.nav-drop__panel .t {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--heading);
  margin-bottom: 2px;
}
.nav-drop__panel .d { display: block; font-size: 12px; color: var(--text); line-height: 1.5; }

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 360;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile overlay nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 56px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  overflow: hidden;
}
.mobile-nav::after {
  content: '';
  position: absolute;
  right: -30%;
  bottom: -10%;
  width: 80%;
  height: 70%;
  background: linear-gradient(135deg, rgba(205, 1, 0, 0.85), rgba(127, 1, 0, 0.9));
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}
body.nav-open .mobile-nav { opacity: 1; visibility: visible; }

.mobile-nav__list { display: flex; flex-direction: column; }
.mobile-nav__list > li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
body.nav-open .mobile-nav__list > li { opacity: 1; transform: none; }
body.nav-open .mobile-nav__list > li:nth-child(1) { transition-delay: 0.05s; }
body.nav-open .mobile-nav__list > li:nth-child(2) { transition-delay: 0.1s; }
body.nav-open .mobile-nav__list > li:nth-child(3) { transition-delay: 0.15s; }
body.nav-open .mobile-nav__list > li:nth-child(4) { transition-delay: 0.2s; }
body.nav-open .mobile-nav__list > li:nth-child(5) { transition-delay: 0.25s; }

.mobile-nav__link {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  color: var(--white);
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-nav__link:hover { color: rgba(255, 255, 255, 0.75); }
.mobile-nav__sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin: 28px 0 4px;
}
.mobile-nav__minor {
  display: block;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 0;
}
.mobile-nav__minor:hover { color: var(--white); }
.mobile-nav__foot { margin-top: 36px; font-size: 11.5px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45); }

/* ---------- Banner ---------- */
.banner {
  position: relative;
  min-height: clamp(560px, 88svh, 820px);
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(1200px 600px at 18% 8%, rgba(38, 50, 78, 0.55), transparent 60%),
    linear-gradient(168deg, #131a2b 0%, var(--navy) 55%, #0a0e18 100%);
  overflow: hidden;
  isolation: isolate;
}
.banner--sub { min-height: clamp(420px, 56svh, 560px); }

/* photographic layer, duotoned to brand */
.banner__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.88) brightness(0.5) contrast(1.06);
}
.banner__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(15, 21, 34, 0.86) 0%, rgba(15, 21, 34, 0.55) 48%, rgba(15, 21, 34, 0.3) 100%),
    linear-gradient(180deg, rgba(15, 21, 34, 0.35) 0%, rgba(15, 21, 34, 0.1) 45%, rgba(15, 21, 34, 0.62) 100%);
}

/* red diagonal wedge */
.banner__wedge {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.banner__wedge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(205, 1, 0, 0.62) 0%, rgba(150, 1, 0, 0.74) 55%, rgba(100, 1, 0, 0.82) 100%);
  clip-path: polygon(86% 0, 100% 0, 100% 100%, 66% 100%);
}
.banner__wedge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.22);
  clip-path: polygon(85.55% 0, 86% 0, 66.45% 100%, 66% 100%);
}

.banner__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: clamp(56px, 8vh, 96px);
}
.banner__crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}
.banner__crumb a:hover { color: var(--white); }
.banner__crumb .sep { color: var(--red); }
.banner__title { max-width: 13em; }
.banner__sub {
  margin-top: 22px;
  max-width: 33em;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-light);
}
.banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }

.banner__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.banner__scroll .dot {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.banner__scroll .dot::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ---------- Sections ---------- */
.sec { padding-block: clamp(56px, 7.5vw, 104px); }
.sec--band { background: var(--band); }
.sec--tight { padding-block: clamp(40px, 5vw, 64px); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(10px, 1.5vw, 18px) clamp(18px, 2.4vw, 34px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat__num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--heading);
  white-space: nowrap;
  line-height: 1;
}
.stat__cap { font-size: 11.5px; line-height: 1.6; color: var(--text); max-width: 15em; }

/* ---------- Advise row (logo-strip slot) ---------- */
.advise-row { text-align: center; }
.advise-row__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9a9ca4;
  margin-bottom: 22px;
}
.advise-row__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 56px;
}
.advise-row__items span {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #a2a4ac;
  transition: color 0.3s var(--ease);
}
.advise-row__items span:hover { color: var(--navy); }

/* ---------- Card grid (sectors / scope / values) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card__title {
  font-size: 15px;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  line-height: 1.45;
}
.card__text { font-size: 12.5px; line-height: 1.75; color: var(--text); margin-bottom: 20px; }
.card .link-arrow { margin-top: auto; font-size: 10px; }
/* 6-card layout: last two centred (Rubicon 4+2 pattern) */
.cards--six .card:nth-child(5) { grid-column: 2; }
.cards--six .card:nth-child(6) { grid-column: 3; }

.sec__cta { text-align: center; margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Trust band (dark) ---------- */
.trust {
  background: linear-gradient(150deg, var(--navy-2) 0%, var(--navy) 70%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.trust__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 96px);
}
.trust__visual { position: relative; }
.trust__visual::after {
  content: '';
  position: absolute;
  right: -18px;
  top: 8%;
  bottom: 8%;
  width: 3px;
  background: linear-gradient(180deg, var(--red), rgba(205, 1, 0, 0.15));
}
.trust__visual img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(0.6) brightness(0.82) contrast(1.04);
}
.trust .label { color: #ff6257; }
.trust h2 { color: var(--white); margin-bottom: 16px; }
.trust p { color: var(--text-light); font-size: 14px; max-width: 34em; }
.trust__rows { margin-top: 26px; margin-bottom: 30px; }
.trust__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
}
.trust__row:first-child { border-top: 1px solid var(--line-dark); }
.trust__row .ic { color: var(--red); font-size: 15px; width: 20px; text-align: center; }
.trust__row a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--red); }

/* ---------- Number blocks (2x2) ---------- */
.blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  max-width: 880px;
  margin-inline: auto;
}
.block {
  min-height: clamp(150px, 16vw, 200px);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  gap: 10px;
}
.block__num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
}
.block__cap { font-size: 12px; line-height: 1.6; max-width: 20em; }
.block--navy { background: var(--navy); }
.block--navy .block__num { color: var(--white); }
.block--navy .block__cap { color: rgba(255, 255, 255, 0.65); }
.block--plain { border: 1px solid var(--line); background: var(--white); }
.block--plain .block__num { color: var(--heading); }
.block--plain .block__cap { color: var(--text); }
.block--red { background: linear-gradient(140deg, var(--red) 0%, #9a0100 100%); }
.block--red .block__num { color: var(--white); }
.block--red .block__cap { color: rgba(255, 255, 255, 0.8); }

/* ---------- Mandate cards (dark, wedge corner) ---------- */
.mandates-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}
.mandates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.mandate {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 24px 24px 66px;
  min-height: 236px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.mandate:hover { transform: translateY(-3px); }
.mandate::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(135deg, rgba(205, 1, 0, 0.95), rgba(127, 1, 0, 0.95));
  clip-path: polygon(0 62%, 100% 100%, 0 100%);
  transition: clip-path 0.4s var(--ease);
}
.mandate:hover::after { clip-path: polygon(0 30%, 100% 100%, 0 100%); }
.mandate__type {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff6257;
  margin-bottom: 12px;
}
.mandate:hover .mandate__type { color: #ff8a7d; }
.mandate__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.65;
  color: var(--white);
}
.mandate__meta { margin-top: 12px; font-size: 11px; color: rgba(255, 255, 255, 0.55); line-height: 1.7; }
.mandate__go {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.mandate:hover .mandate__go { color: var(--white); transform: translate(2px, -2px); }

/* ---------- Tombstone grid (transactions page) ---------- */
.filter-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.filter-bar label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.filter-bar select {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--heading);
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23101624' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.filter-bar select:focus { outline: none; border-color: var(--red); }

.stones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.stone {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.stone:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.stone.is-hidden { display: none; }
.stone__code {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.stone__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--heading);
  margin-bottom: 20px;
}
.stone__meta { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.stone__meta div { font-size: 11px; line-height: 1.9; color: var(--text); }
.stone__meta strong { font-weight: 600; color: var(--heading); }

/* ---------- Plain divider list (no chips) ---------- */
.dlist {
  columns: 2;
  column-gap: clamp(40px, 6vw, 96px);
  max-width: 900px;
  margin-inline: auto;
}
.dlist li {
  break-inside: avoid;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--heading);
  font-weight: 500;
}
.dlist li::before {
  content: '';
  width: 8px;
  height: 2px;
  background: var(--red);
  flex: none;
  transform: translateY(-3px);
}

/* ---------- Numbered scope rows ---------- */
.nrows { max-width: 980px; margin-inline: auto; }
.nrow {
  display: grid;
  grid-template-columns: 56px minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(14px, 2.4vw, 40px);
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.nrow:first-child { border-top: 1px solid var(--line); }
.nrow__num {
  font-family: var(--display);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--red);
  padding-top: 3px;
}
.nrow__title { font-size: 15px; line-height: 1.5; }
.nrow__text { font-size: 13px; line-height: 1.75; color: var(--text); }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.process__step {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.process__step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--red);
}
.process__phase {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 12px;
}
.process__title { font-size: 14.5px; margin-bottom: 8px; }
.process__text { font-size: 12.5px; line-height: 1.75; color: var(--text); }

/* ---------- Split (heading left / text right) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.split h2 { margin-bottom: 0; }
.split p { font-size: 14px; }
.split p + p { margin-top: 1.2em; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  background: linear-gradient(150deg, var(--navy-2) 0%, var(--navy) 70%);
  color: var(--white);
  overflow: hidden;
}
.cta::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  background: linear-gradient(135deg, rgba(205, 1, 0, 0.9), rgba(112, 1, 0, 0.94));
  clip-path: polygon(52% 0, 100% 0, 100% 100%, 18% 100%);
}
.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-block: clamp(48px, 6vw, 76px);
}
.cta h2 { color: var(--white); max-width: 18em; }
.cta p { color: var(--text-light); font-size: 13.5px; margin-top: 10px; max-width: 34em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5.5vw, 90px);
}
.cinfo__row { border-top: 1px solid var(--line); padding: 22px 0; }
.cinfo__row:last-child { border-bottom: 1px solid var(--line); }
.cinfo__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}
.cinfo__value { font-family: var(--sans); font-weight: 500; font-size: 15.5px; color: var(--heading); }
.cinfo__value a:hover { color: var(--red); }
.cinfo__note { font-size: 12.5px; line-height: 1.8; color: var(--text); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--heading);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23101624' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.form-field textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(205, 1, 0, 0.08);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #a9abb2; }
.form-note { font-size: 11.5px; color: var(--text); margin-top: 14px; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.site-footer::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 78%;
  background: linear-gradient(135deg, rgba(205, 1, 0, 0.16), rgba(127, 1, 0, 0.22));
  clip-path: polygon(58% 0, 100% 46%, 100% 100%, 0 100%);
  pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr));
  gap: clamp(32px, 4vw, 64px);
  padding-block: clamp(48px, 6vw, 72px) clamp(36px, 4.5vw, 52px);
}
.site-footer .brand__name { font-size: 16px; }
.site-footer__tag { margin-top: 18px; font-size: 12.5px; font-weight: 300; color: rgba(255, 255, 255, 0.55); max-width: 26em; line-height: 1.85; }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}
.site-footer__col ul li { margin-bottom: 10px; }
.site-footer__col a { font-size: 13px; color: rgba(255, 255, 255, 0.85); transition: color 0.3s var(--ease); }
.site-footer__col a:hover { color: var(--red); }

.site-footer__offices {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 72px;
}
.site-footer__office h5 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.site-footer__office p { font-size: 12px; color: rgba(255, 255, 255, 0.55); line-height: 1.8; }
.site-footer__office a { color: rgba(255, 255, 255, 0.75); }
.site-footer__office a:hover { color: var(--red); }

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}
.site-footer__disclaimer {
  padding-bottom: 32px;
  font-size: 10.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.32);
  max-width: 74em;
}

/* ---------- Banner entrance (single, subtle) ---------- */
.fade-item {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
}
.fade-item:nth-child(2) { animation-delay: 0.08s; }
.fade-item:nth-child(3) { animation-delay: 0.16s; }
.fade-item:nth-child(4) { animation-delay: 0.24s; }
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--six .card:nth-child(5) { grid-column: auto; }
  .cards--six .card:nth-child(6) { grid-column: auto; }
  .mandates { grid-template-columns: repeat(2, 1fr); }
  .stones { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat { padding-block: 14px; }
}

@media (max-width: 940px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .banner__wedge::before { clip-path: polygon(90% 0, 100% 0, 100% 100%, 74% 100%); }
  .banner__wedge::after { display: none; }

  .trust__grid { grid-template-columns: 1fr; gap: 36px; }
  .trust__visual { max-width: 320px; margin-inline: auto; }
  .trust__visual::after { display: none; }

  .split { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; }

  .nrow { grid-template-columns: 40px 1fr; }
  .nrow__text { grid-column: 2; }

  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brandcol { grid-column: 1 / -1; }

  .mandates-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; padding-inline: 0; }
  .cards { grid-template-columns: 1fr; }
  .mandates { grid-template-columns: 1fr; }
  .stones { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .blocks { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .dlist { columns: 1; }
  .site-footer__top { grid-template-columns: 1fr; }
  .banner { min-height: clamp(480px, 74svh, 660px); }
  .banner--sub { min-height: clamp(400px, 62svh, 560px); }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-item { opacity: 1; animation: none; }
}
