/* ==========================================================================
   Charme Capital Partners — redesign (static prototype)
   Brand tokens are taken from the live site's SCSS (_variables.scss):
   navy #002E6C, blue #A4C7E2, pale blue #E9F0F7, beige #D3CCBD, text #19335F,
   slash separator #A6BBC3, Geomanist type family, serif wordmark.
   ========================================================================== */

/* ---------- Fonts (brand webfonts copied from /assets/fonts) ---------- */
@font-face {
  font-family: "Geomanist";
  src: url("../fonts/geomanist-light-webfont.woff2") format("woff2"),
       url("../fonts/geomanist-light-webfont.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geomanist";
  src: url("../fonts/geomanist-regular-webfont.woff2") format("woff2"),
       url("../fonts/geomanist-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geomanist";
  src: url("../fonts/geomanist-medium-webfont.woff2") format("woff2"),
       url("../fonts/geomanist-medium-webfont.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geomanist";
  src: url("../fonts/geomanist-bold-webfont.woff2") format("woff2"),
       url("../fonts/geomanist-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (primitive → semantic) ---------- */
:root {
  /* primitives */
  --navy: #002e6c;
  --navy-deep: #001d47;
  --ink: #19335f;
  --blue: #a4c7e2;
  --blue-deep: #7fadd1;
  --pale: #e9f0f7;
  --pale-2: #f4f7fb;
  --beige: #d3ccbd;
  --slash: #a6bbc3;
  --white: #ffffff;
  --muted: #4b5f80;
  --line: #d6dfeb;
  --error: #a94442;

  /* semantic */
  --color-bg: var(--white);
  --color-fg: var(--ink);
  --color-heading: var(--navy);
  --color-primary: var(--navy);
  --color-on-primary: var(--white);
  --color-accent: var(--blue);
  --color-on-accent: var(--navy);
  --color-surface: var(--pale);
  --color-border: var(--line);
  --color-focus: var(--blue-deep);

  /* type */
  --font-sans: "Geomanist", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --fs-display: clamp(2rem, 1.2rem + 3.2vw, 4.25rem);
  --lh-body: 1.6;
  --lh-tight: 1.15;

  /* spacing — spacious scale (skill density 3/10: 24–96px) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  /* layout */
  --container: 84rem;             /* 1344px */
  --gutter: clamp(1rem, 3vw, 4rem);
  --header-h: 4.5rem;
  --cut: 1.75rem;                 /* size of the 45° corner cut motif */
  --radius: 2px;

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 480ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.nav-open { overflow: hidden; }

main { flex: 1 0 auto; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--color-heading);
  font-weight: 400;
  line-height: var(--lh-tight);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--blue-deep); }

address { font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* focus — visible, 2px+, high contrast on both light and navy surfaces */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--white);
}

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--navy);
}
.skip-link:focus { top: var(--space-2); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(56rem + 2 * var(--gutter)); }

.section { padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) * 0.6); }
.section--surface { background: var(--color-surface); }
.section--pale { background: var(--pale-2); }

.grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 48em) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 48em) and (max-width: 68.74em) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Typography components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--space-3);
  color: var(--navy);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1px;
  height: 1.1em;
  background: var(--blue-deep);
  transform: skewX(-38deg);
  transform-origin: center;
}
.on-dark .eyebrow,
.hero .eyebrow { color: var(--blue); }

.display { font-size: var(--fs-display); font-weight: 300; letter-spacing: -0.01em; }
.h2 { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -0.005em; }
/* long statement headings (whole sentences of brand copy) sit one step down */
.h2--statement { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem); line-height: 1.25; }
.h3 { font-size: var(--fs-h3); font-weight: 500; }

.lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
  max-width: 34em;
}
.on-dark .lead { color: var(--pale); }

.measure { max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

.section-head {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
@media (min-width: 62em) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: var(--space-6);
  }
  .section-head > .lead { justify-self: end; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;                 /* ≥44px touch target */
  padding: 0.8em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--navy-deep); color: var(--white); }

.btn--accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn--accent:hover { background: var(--white); color: var(--navy); }

.btn--ghost { background: transparent; color: var(--navy); border-color: currentColor; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem;
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.text-link svg { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease); }
.text-link:hover { color: var(--blue-deep); }
.text-link:hover svg { transform: translateX(3px); }
.on-dark .text-link { color: var(--blue); }
.on-dark .text-link:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px -10px rgba(0, 29, 71, 0.55); }

/* brand wedge motif (the 45° cut used on the live site's header + footer) */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 5.5rem;
  background: var(--blue);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 79.99em) {
  /* below the full-nav breakpoint the wedge would sit under the menu button */
  .site-header::after { display: none; }
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
  position: relative;
  z-index: 1;
}

.brand { display: inline-flex; align-items: center; flex: none; padding-block: 0.5rem; }
.brand img { height: 1.375rem; width: auto; }
@media (min-width: 40em) { .brand img { height: 1.625rem; } }
@media (min-width: 80em) { .brand img { height: 1.375rem; } }   /* compact desktop tier */
@media (min-width: 96em) { .brand img { height: 1.75rem; } }

/* hamburger — parallelogram bars echo the brand's slanted menu icon */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem 0.5rem 0.75rem;
  background: none;
  border: 0;
  color: var(--white);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-toggle__icon {
  position: relative;
  width: 1.75rem;
  height: 1.125rem;
  flex: none;
}
.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), clip-path var(--dur) var(--ease);
}
.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: calc(50% - 1.5px); }
.nav-toggle__icon span:nth-child(3) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span { clip-path: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* nav: mobile = full-height panel under the header */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: var(--navy);
  padding: var(--space-4) var(--gutter) var(--space-6);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.site-nav__list { display: flex; flex-direction: column; }
.site-nav__list li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.site-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  padding: 0.75rem 0;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] { color: var(--blue); }
@media (max-width: 79.99em) {
  .site-nav__list a[aria-current="page"]::after {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    background: var(--blue);
    clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
  }
}
.site-nav__lang {
  margin-top: var(--space-4);
  display: flex;
  gap: 0.5em;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slash);
}
.site-nav__lang a { color: var(--white); text-decoration: none; padding: 0.5rem 0.25rem; }
.site-nav__lang [aria-current="true"] { color: var(--blue); }
.site-nav__lang span { padding: 0.5rem 0; }

@media (min-width: 80em) { /* 1280px: full nav (compact tier) */
  .nav-toggle { display: none; }
  .site-header::after { width: 3.5rem; }
  .site-header__bar { gap: var(--space-2); }
  .site-nav {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0;
    padding-right: 2.25rem; /* clear the wedge */
    background: transparent;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav__list { flex-direction: row; align-items: center; }
  .site-nav__list li { border: 0; display: flex; align-items: center; }
  /* slash separators between items, as on the live site */
  .site-nav__list li + li::before {
    content: "";
    width: 1px;
    height: 0.9rem;
    margin-inline: 0.55rem;
    background: var(--slash);
    transform: skewX(-38deg);
    opacity: 0.8;
  }
  .site-nav__list a {
    position: relative;
    min-height: 2.75rem;
    padding: 0.5rem 0.1rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.1rem;
    height: 2px;
    width: auto;
    background: var(--blue);
    clip-path: none;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }
  .site-nav__list a:hover::after,
  .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav__lang { margin: 0; padding-left: 0.5rem; border-left: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.75rem; letter-spacing: 0.08em; }
  .site-nav__lang a { padding: 0.5rem 0.2rem; }
}
@media (min-width: 96em) { /* 1536px: relaxed tier */
  .site-header::after { width: 5.5rem; }
  .site-header__bar { gap: var(--space-3); }
  .site-nav { gap: var(--space-3); padding-right: 3rem; }
  .site-nav__list li + li::before { margin-inline: 0.85rem; }
  .site-nav__list a { font-size: var(--fs-label); letter-spacing: 0.08em; }
  .site-nav__lang { font-size: var(--fs-label); letter-spacing: 0.12em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(82svh, 56rem);
  color: var(--white);
  background: var(--navy-deep);
  isolation: isolate;
  overflow: hidden;
}
.hero--short { min-height: min(56svh, 36rem); }
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus, center);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 29, 71, 0.35) 0%, rgba(0, 29, 71, 0) 30%, rgba(0, 29, 71, 0.55) 100%),
    linear-gradient(100deg, rgba(0, 46, 108, 0.92) 0%, rgba(0, 46, 108, 0.7) 45%, rgba(0, 46, 108, 0.25) 100%);
}
.hero--short::before {
  background:
    linear-gradient(180deg, rgba(0, 29, 71, 0.3) 0%, rgba(0, 29, 71, 0) 35%, rgba(0, 29, 71, 0.45) 100%),
    linear-gradient(100deg, rgba(0, 46, 108, 0.9) 0%, rgba(0, 46, 108, 0.6) 45%, rgba(0, 46, 108, 0.15) 100%);
}
.hero__inner {
  position: relative;
  padding-block: var(--space-6) var(--space-6);
  max-width: 52rem;
}
@media (min-width: 62em) {
  .hero__inner { padding-block: var(--space-7) var(--space-7); }
}
.hero .display { color: var(--white); }
.hero .lead { color: var(--pale); margin-top: var(--space-3); }
.hero .btn-row { margin-top: var(--space-5); }

/* pale rule with a 45° cut: the live site's .panel--rule motif, modernised */
.rule {
  position: relative;
  height: 0.5rem;
  background: var(--blue);
}
.rule::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 36%;
  background: var(--white);
  clip-path: polygon(0.75rem 0, 100% 0, 100% 100%, 0 100%);
}
.rule--on-pale::after { background: var(--pale); }

/* ---------- Facts strip ---------- */
.facts {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
@media (min-width: 62em) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
}
.fact {
  padding-top: var(--space-3);
  border-top: 2px solid var(--navy);
}
.fact__value {
  display: block;
  color: var(--navy);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.fact__label {
  display: block;
  margin-top: var(--space-2);
  color: var(--muted);
  max-width: 24em;
}

/* ---------- Media + text split ---------- */
.split {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 62em) {
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-7); }
  .split--reverse > .split__media { order: 2; }
}
.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.split__media::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  bottom: -0.75rem;
  width: 42%;
  height: 42%;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  pointer-events: none;
}

.quote {
  position: relative;
  padding-left: var(--space-4);
  border-left: 3px solid var(--blue);
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.45;
  color: var(--navy);
  max-width: 30em;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--color-border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 18px 40px -24px rgba(0, 46, 108, 0.45);
}
.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--navy);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.card:hover .card__media img { transform: scale(1.03); }
.card__media::after {
  /* 45° corner cut in white, so every image carries the brand angle */
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--cut);
  height: var(--cut);
  background: var(--white);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3) var(--space-4);
  flex: 1;
}
.card__index {
  color: var(--blue-deep);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.card__title { font-size: var(--fs-h3); font-weight: 500; }
.card__text { color: var(--muted); margin: 0; }
.card__text + .text-link { margin-top: auto; padding-top: var(--space-2); }

/* value cards — duotone treatment keeps the mixed stock imagery consistent */
.value-card .card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(0, 46, 108, 0.35), rgba(0, 46, 108, 0.05));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.value-card .card__media img { filter: saturate(0.75) contrast(1.02); }

/* values grid: 1 / 2 / 3 columns, last item becomes a wide feature row */
.values {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 44em) {
  .values { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .values > .value-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .values > .value-card--wide .card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 16rem; }
  .values > .value-card--wide .card__body { justify-content: center; padding: var(--space-5); }
  .values > .value-card--wide .card__text { max-width: 60ch; }
}
@media (min-width: 68.75em) {
  .values { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Offices ---------- */
.office-card .card__body { gap: var(--space-2); }
.office-card address { color: var(--ink); line-height: 1.55; }
.office-card address strong { display: block; color: var(--navy); font-weight: 500; margin-bottom: 0.15em; }
.office-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}
.office-card__meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 2.75rem;
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
}
.office-card__meta svg { width: 1.05em; height: 1.05em; flex: none; }
.office-card__meta a:hover { text-decoration: underline; }

.office-photo {
  overflow: hidden;
  aspect-ratio: 16 / 7;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.office-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 40em) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 500; color: var(--navy); }
.field .hint { color: var(--muted); font-size: var(--fs-small); }
.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #b7c4d6;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--blue-deep); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--blue);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--error); }
.field__error {
  display: none;
  color: var(--error);
  font-size: var(--fs-small);
  font-weight: 500;
}
.field.is-invalid .field__error { display: block; }
.required-mark { color: var(--blue-deep); }
.form-note { color: var(--muted); font-size: var(--fs-small); }
.form-status {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-left: 3px solid var(--blue);
  background: var(--pale);
  color: var(--navy);
}
.form-status[hidden] { display: none; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(4rem, 12vw, 12rem);
  background: var(--blue);
  opacity: 0.18;
  clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%);
}
.cta-band .h2 { color: var(--white); }
.cta-band .eyebrow { color: var(--blue); }
.cta-band__inner {
  position: relative;
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 62em) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy-deep);
  color: var(--pale);
  overflow: hidden;
}
.site-footer::before {
  /* footer wedge (live site's ::after corner), recoloured */
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: clamp(6rem, 18vw, 16rem);
  height: 0.5rem;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.5rem) 100%, 0 100%);
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.footer__top {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-6) var(--space-5);
}
@media (min-width: 48em) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 62em) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand img { height: 1.5rem; width: auto; margin-bottom: var(--space-3); }
.footer__brand p { max-width: 34ch; color: var(--slash); }
.footer__heading {
  margin-bottom: var(--space-2);
  color: var(--blue);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__list li { margin-bottom: 0.25rem; }
.footer__list a { display: inline-block; padding: 0.3rem 0; }
.footer__offices li { margin-bottom: var(--space-2); color: var(--slash); font-size: var(--fs-small); line-height: 1.45; }
.footer__offices strong { display: block; color: var(--white); font-weight: 500; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--fs-small);
  color: var(--slash);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.footer__legal a { display: inline-block; padding: 0.25rem 0; }
.footer__reg { max-width: 70ch; font-size: 0.8125rem; color: var(--slash); line-height: 1.5; }

/* ---------- Reveal on scroll (JS-gated; no-JS shows everything) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 80ms; }
.js .reveal[data-delay="2"] { transition-delay: 160ms; }
.js .reveal[data-delay="3"] { transition-delay: 240ms; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .card:hover .card__media img { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn, .cta-band { display: none !important; }
  .hero { min-height: 0; color: #000; }
  .hero::before, .hero__media { display: none; }
  .hero .display, .hero .lead { color: #000; }
}
