/* =========================================================
   Trialoge — design system
   ========================================================= */

:root {
  --navy-950: #06232b;
  --navy-900: #0b3d4a;
  --navy-800: #103f4c;
  --navy-700: #175066;
  --navy-600: #24647d;
  --navy-100: #e4edf0;
  --navy-50:  #f1f6f7;

  --gold-600: #836234;
  --gold-500: #c29b63;
  --gold-100: #f2e9db;

  --ink-900: #15171f;
  --ink-700: #3b3f4a;
  --ink-500: #5b626f;
  --ink-300: #a2a9b5;

  --bg: #fbfcfd;
  --bg-soft: #f1f4f5;
  --bg-cream: #faf7f1;
  --white: #ffffff;

  --line: #dbe4e7;
  --line-navy: rgba(11, 61, 74, .22);

  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 30, 40, 0.06), 0 1px 1px rgba(11, 30, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 30, 40, 0.08), 0 2px 6px rgba(11, 30, 40, 0.05);
  --shadow-lg: 0 24px 60px rgba(11, 30, 40, 0.14), 0 8px 20px rgba(11, 30, 40, 0.08);

  --container: 1180px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  color: var(--navy-950);
}
p { line-height: 1.7; color: var(--ink-700); margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }
.section { padding: clamp(56px, 8vw, 108px) 0; }
.section-soft { background: var(--bg-soft); }
.section-cream { background: var(--bg-cream); }

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-500);
  max-width: 620px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-800); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: rgba(11, 61, 74, .38);
  border-width: 1.5px;
}
.btn-outline:hover { border-color: var(--navy-900); background: var(--navy-50); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 252, 253, 0.86);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(11,30,40,.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 30px; width: auto; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 0 40px;
}
.nav-primary a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-700);
  transition: background-color .18s ease, color .18s ease;
}
.nav-primary a:hover { color: var(--navy-950); background: var(--navy-50); }
.nav-primary a.is-active { color: var(--navy-950); background: var(--navy-100); }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-950);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(72px, 10vw, 132px);
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }
.hero-arch { z-index: 0; }
.hero-arch {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 640px;
  height: 640px;
  opacity: 0.6;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(194, 155, 99, .22), transparent 58%),
    radial-gradient(circle at 68% 72%, rgba(11, 61, 74, .12), transparent 60%);
}
.hero-arch::before {
  content: "";
  position: absolute; inset: 9%;
  border-radius: 50%;
  border: 2px dashed rgba(11, 61, 74, .16);
}
.hero-arch::after {
  content: "";
  position: absolute; inset: 26%;
  border-radius: 50%;
  border: 1px solid rgba(194, 155, 99, .3);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  margin-bottom: .4em;
}
.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.1;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(11,61,74,0) 40%, rgba(6,35,43,.55) 100%);
}
.hero-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  right: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(251,252,253,.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
}
.hero-badge .dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-900); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.hero-badge strong { display: block; font-size: 14px; color: var(--navy-950); }
.hero-badge span { font-size: 13px; color: var(--ink-500); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-hero {
  padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero-arch { z-index: 0; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); max-width: 900px; margin-inline: auto; }
.page-hero .lede { max-width: 640px; margin-inline: auto; text-align: center; }
.page-hero-arch {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  opacity: .5;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(194, 155, 99, .18), transparent 55%),
    radial-gradient(circle at 65% 68%, rgba(11, 61, 74, .10), transparent 60%);
}
.page-hero-arch::before {
  content: "";
  position: absolute; inset: 14%;
  border-radius: 50%;
  border: 2px dashed rgba(11, 61, 74, .14);
}

/* =========================================================
   Stats
   ========================================================= */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 52px;
  overflow: hidden;
}
.stat-band-item {
  position: relative;
  padding: 44px 34px;
}
.stat-band-item:not(:first-child) { border-left: 1px solid var(--line); }
.stat-band-item .stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 3.4vw, 50px);
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1;
  display: block;
}
.stat-band-item .stat-unit { font-size: 0.55em; font-weight: 600; margin-left: 2px; }
.stat-band-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 14px 0 10px;
  color: var(--navy-800);
}
.stat-band-item p { font-size: 13.5px; margin: 0; }

/* =========================================================
   Two-col content
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.2;
  object-fit: cover;
  width: 100%;
}
.split-media .arch-chip {
  position: absolute;
  bottom: -28px; left: -28px;
  width: 120px; height: 120px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.split.reverse { grid-template-columns: 1fr 1fr; direction: rtl; }
.split.reverse > * { direction: ltr; }

/* photo treatment: tones down the generic "stock photo" look for a more branded, editorial feel */
.photo-tone { filter: grayscale(12%) saturate(.88) contrast(1.05) brightness(.98); }

/* real-team collage — used instead of stock photography where it fits the story */
.team-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.team-collage figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 13/20;
}
.team-collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}
.team-collage figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(0deg, rgba(6,35,43,.82), rgba(6,35,43,0));
}

/* =========================================================
   Services accordion (numbered)
   ========================================================= */
.service-list { margin-top: 40px; border-top: 1px solid var(--line); }
.service-item { border-bottom: 1px solid var(--line); }
.service-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 4px;
  background: none;
  border: none;
  text-align: left;
}
.service-icon {
  color: var(--navy-800);
  border: 1.5px solid var(--line-navy);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.service-icon svg { width: 19px; height: 19px; }
.service-item.is-open .service-icon,
.service-trigger:hover .service-icon {
  background: var(--navy-900); color: var(--white); border-color: var(--navy-900);
}
.service-trigger h3 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  flex: 1;
  transition: color .2s ease;
}
.service-item.is-open .service-trigger h3 { color: var(--navy-700); }
.service-chevron {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line-navy);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background-color .2s ease;
}
.service-chevron svg { width: 14px; height: 14px; }
.service-item.is-open .service-chevron { transform: rotate(45deg); background: var(--navy-50); }
.service-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.service-panel-inner { overflow: hidden; }
.service-item.is-open .service-panel { grid-template-rows: 1fr; }
.service-body { padding: 0 4px 32px 68px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.service-body p { margin: 0; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.service-tags span {
  font-size: 12.5px; font-weight: 600; padding: 6px 12px;
  border-radius: var(--radius-pill); background: var(--navy-50); color: var(--navy-800);
}
.service-body img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); aspect-ratio: 16/11; object-fit: cover; width: 100%; }

/* =========================================================
   Process steps
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  counter-reset: step;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
}
.step-card .step-index {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--navy-100);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1;
}
.step-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.step-card p { font-size: 14px; margin: 0; }

/* =========================================================
   Team
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 48px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 110px;
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-photo { aspect-ratio: 13/20; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-info { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.team-info h3 { font-size: 19px; margin-bottom: 4px; }
.team-role { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-600); margin-bottom: 12px; }
.team-langs { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-500); display: flex; align-items: center; gap: 6px; }
.team-bio-toggle {
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-800);
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.team-bio-toggle svg { width: 13px; height: 13px; transition: transform .2s ease; }
.team-card.is-open .team-bio-toggle svg { transform: rotate(180deg); }
.team-bio {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.team-card.is-open .team-bio { grid-template-rows: 1fr; }
.team-bio-inner { overflow: hidden; }
.team-bio p { font-size: 13.5px; padding-top: 12px; margin: 0; color: var(--ink-500); }

/* =========================================================
   Case studies
   ========================================================= */
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  margin-top: 32px;
  box-shadow: var(--shadow-sm);
}
.case-card h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 18px; max-width: 760px; }
.case-intro { max-width: 760px; margin-bottom: 32px; }
.case-timeline { position: relative; margin-top: 8px; }
.case-timeline::before {
  content: "";
  position: absolute;
  left: 21px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
}
.case-step { position: relative; padding: 0 0 32px 64px; }
.case-step:last-child { padding-bottom: 0; }
.case-step-marker {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  z-index: 1;
}
.case-step h4 { font-size: 17.5px; margin-bottom: 8px; }
.case-step p { font-size: 15px; margin: 0; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy-950);
}
.faq-trigger .service-chevron { width: 30px; height: 30px; }
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-item.is-open .service-chevron { transform: rotate(45deg); }
.faq-body { padding: 0 40px 22px 4px; }
.faq-body p { margin: 0; font-size: 14.5px; }

/* =========================================================
   Principles page
   ========================================================= */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 44px;
  counter-reset: principle;
}
.principle-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 24px 24px 22px;
  display: flex;
  gap: 16px;
}
.principle-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-600);
  font-size: 17px;
  flex: none;
  width: 34px;
}
.principle-card p { margin: 0; font-size: 14.5px; }

.rules-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 8px;
}
.rules-toc a {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1.5px solid var(--line-navy);
  color: var(--navy-800);
}
.rules-toc a:hover { background: var(--navy-50); border-color: var(--navy-100); }

.rule-block {
  max-width: 74ch;
  margin-top: 44px;
  padding-top: 8px;
  scroll-margin-top: 110px;
}
.rule-block h3 {
  font-size: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.rule-block ol { counter-reset: item; }
.rule-block ol > li {
  counter-increment: item;
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-700);
}
.rule-block ol > li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--navy-700);
  font-variant-numeric: tabular-nums;
}
.rule-block > p { font-size: 14.5px; color: var(--ink-500); }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: stretch;
  margin-top: 48px;
}
.contact-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
}
.contact-card h3 { color: var(--white); font-size: 22px; }
.contact-card p { color: rgba(255,255,255,.7); }
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.contact-line:first-of-type { margin-top: 20px; }
.contact-line .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.contact-line .ic svg { width: 18px; height: 18px; }
.contact-line a, .contact-line span { font-size: 14.5px; color: var(--white); }
.contact-line small { display: block; font-size: 11.5px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }

.contact-split {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.form-card form { display: flex; flex-direction: column; flex: 1; }
.form-row { margin-bottom: 20px; }
.form-row:has(textarea) { flex: 1; display: flex; flex-direction: column; }
.form-row:has(textarea) textarea { flex: 1; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 8px;
}
.form-row label .required {
  color: var(--navy-700);
  font-weight: 700;
  margin-left: 2px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink-900);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover { border-color: var(--line-navy); }
.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible {
  outline: none;
  border-color: var(--navy-700);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(11, 61, 74, .14);
}
.form-row input:disabled,
.form-row select:disabled,
.form-row textarea:disabled { opacity: .55; cursor: not-allowed; }
.form-card.is-validated .form-row input:invalid,
.form-card.is-validated .form-row textarea:invalid {
  border-color: #b3432f;
  background: #fdf4f2;
}
.form-error {
  display: none;
  font-size: 12.5px;
  color: #b3432f;
  margin-top: 6px;
}
.form-card.is-validated .form-row input:invalid ~ .form-error,
.form-card.is-validated .form-row textarea:invalid ~ .form-error { display: block; }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 12.5px; color: var(--ink-500); margin-top: 14px; }
.form-note.is-success { color: var(--navy-700); font-weight: 600; }
.form-note.is-error { color: #b3432f; font-weight: 600; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* =========================================================
   Contact card map
   ========================================================= */
.contact-map svg { width: 100%; max-width: 150px; height: auto; display: block; }
.contact-map-outline {
  fill: rgba(255,255,255,.07);
  stroke: rgba(255,255,255,.4);
  stroke-width: 1.3;
  stroke-linejoin: round;
}
.contact-map-pin { cursor: pointer; }
.contact-map-hit { fill: transparent; }
.contact-map-pin circle:not(.contact-map-hit) {
  fill: var(--gold-500);
  stroke: var(--navy-950);
  stroke-width: 1;
  transition: r .15s ease;
}
.contact-map-pin:hover circle:not(.contact-map-hit) { r: 6; }
.contact-map-pin text {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  fill: rgba(255,255,255,.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.contact-map-pin:hover text { opacity: 1; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin: 0; max-width: 460px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.65); padding: 64px 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 28px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 14px; max-width: 280px; }
.footer-col h5 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; font-size: 14.5px; color: rgba(255,255,255,.65); transition: color .15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.55); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--white); }

/* =========================================================
   Entrance — one authored moment (hero only)
   ========================================================= */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero .lede, .hero .hero-actions, .hero-figure,
.page-hero h1, .page-hero .lede, .page-hero .hero-actions {
  animation: hero-rise .9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .lede, .page-hero .lede { animation-delay: .08s; }
.hero .hero-actions, .page-hero .hero-actions { animation-delay: .16s; }
.hero-figure { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lede, .hero .hero-actions, .hero-figure,
  .page-hero h1, .page-hero .lede, .page-hero .hero-actions {
    animation: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band-item:nth-child(3) { border-left: none; }
  .stat-band-item:nth-child(3), .stat-band-item:nth-child(4) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-primary, .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-primary.is-open {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    margin: 0;
    gap: 4px;
    overflow-y: auto;
  }
  .nav-primary.is-open a { padding: 16px 18px; font-size: 17px; border-radius: var(--radius-sm); }
  .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .split-media { order: -1; }
  .service-body { grid-template-columns: 1fr; }
  .service-body img { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .stat-band { grid-template-columns: 1fr; }
  .stat-band-item { border-left: none !important; border-top: 1px solid var(--line); }
  .stat-band-item:first-child { border-top: none; }
  .steps { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-map svg { max-width: 200px; margin: 0 auto; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .service-body { padding-left: 4px; }
  .brand span { display: none; }
}

/* =========================================================
   Skip link
   ========================================================= */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--navy-950);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* =========================================================
   Cookie consent banner
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  max-width: 620px;
  margin: 0 auto;
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p {
  color: rgba(255,255,255,.78);
  font-size: 13.5px;
  margin: 0 0 16px;
}
.cookie-banner a { color: var(--white); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn-outline { color: var(--white); border-color: rgba(255,255,255,.35); }
.cookie-banner .btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

/* =========================================================
   404 page
   ========================================================= */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(56px, 10vw, 120px) 0;
}
.error-page .error-code {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 700;
  color: var(--navy-100);
  line-height: 1;
  margin-bottom: 8px;
}

/* =========================================================
   CML affiliation badge
   ========================================================= */
.cml-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 2px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--navy-50);
  border: 1px solid var(--line-navy);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-800);
  transition: background-color .18s ease, border-color .18s ease;
}
.cml-badge:hover { background: var(--navy-100); border-color: var(--navy-700); }
.cml-badge svg { width: 14px; height: 14px; flex: none; }
.cml-badge img { height: 15px; width: auto; flex: none; display: block; }

.footer-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.footer-partner a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 2px; }
.footer-partner a:hover { color: var(--white); }
.footer-partner svg { width: 15px; height: 15px; flex: none; color: rgba(255,255,255,.55); }
.footer-partner img { height: 34px; width: auto; flex: none; display: block; }
