@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Ink â€” deep survey navy */
  --ink: #0a1a24;
  --ink-2: #122e3f;
  --ink-3: #1b4257;
  /* Paper â€” warm cream */
  --paper: #f6f2ea;
  --paper-2: #fffdf9;
  --paper-3: #ece5d8;
  /* Forest green accent */
  --green: #1a7a52;
  --green-dark: #12593b;
  --green-light: #2e9a6c;
  /* Gold / brass */
  --gold: #c9a668;
  --gold-light: #ddc094;
  --muted: #566a74;
  --line: rgba(10, 26, 36, 0.12);
  --line-2: rgba(10, 26, 36, 0.06);

  --serif: "Libre Baskerville", Georgia, "Palatino Linotype", Palatino, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 78rem;
  --max-text: 46rem;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: 1.4375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.125rem;
  --fs-4xl: 2.75rem;

  --shadow-sm: 0 1px 3px rgba(10, 26, 36, 0.08);
  --shadow: 0 4px 16px rgba(10, 26, 36, 0.1);
  --shadow-lg: 0 12px 36px rgba(10, 26, 36, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(201, 166, 104, 0.22);
  overflow: visible;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.25rem 0.7rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1.25rem;
  align-items: center;
  overflow: visible;
}
.logo {
  display: block;
  color: #fff;
  text-decoration: none;
  align-self: start;
  z-index: 60;
}
.logo--hang { position: relative; }
.logo-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem 0.65rem 0.55rem;
  box-shadow: 0 10px 28px rgba(10, 26, 36, 0.28), 0 2px 6px rgba(10, 26, 36, 0.12);
  border: 1px solid rgba(10, 26, 36, 0.06);
  /* Hang below the navy header bar over the hero */
  margin-bottom: -2.5rem;
}
.logo-img {
  display: block;
  width: clamp(6.5rem, 18vw, 9.5rem);
  height: auto;
  max-width: 100%;
}
/* Legacy text mark kept harmless if referenced */
.logo-mark, .logo-text { display: none; }

.nav-toggle {
  justify-self: end;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font: inherit;
}
.nav-toggle-box { width: 1.1rem; display: grid; gap: 3px; }
.nav-toggle-box span { display: block; height: 2px; background: #fff; }
.nav-toggle-label { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

.site-nav { display: none; grid-column: 1 / -1; }
.site-nav.is-open { display: block; }
.site-nav__list, .sub-menu { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
}
.site-nav .is-active > a { color: var(--gold); }
.sub-menu { padding-left: 1rem; }
.sub-menu a { font-size: var(--fs-sm); color: #cfdde3; font-weight: 400; }
.header-actions { display: none; gap: 0.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.55); color: #fff; backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-call, .btn-wa { font-size: 0.875rem; padding: 0.5rem 0.9rem; }
.btn-call { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-call:hover { background: var(--gold); color: var(--ink); }
.btn-wa { background: var(--green); color: #fff; border-color: var(--green); }
.btn-wa:hover { background: var(--green-light); color: #fff; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--ink-2);
  color: #cfdde3;
  font-size: var(--fs-sm);
  /* Clear hanging logo card so crumbs stay fully visible */
  padding-top: 2.75rem;
}
.breadcrumbs ol {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
}
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.45rem; color: #7f97a3; }

/* ---------- Hero (cinematic, full-bleed) ---------- */
.hero-cinematic {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-cinematic__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-cinematic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero-cinematic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,26,36,0.82) 0%, rgba(10,26,36,0.62) 45%, rgba(10,26,36,0.9) 100%),
    linear-gradient(100deg, rgba(10,26,36,0.72) 0%, rgba(10,26,36,0.24) 70%);
}
.hero-cinematic__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.25rem 1.25rem 3.5rem;
  width: 100%;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.hero-cinematic h1 {
  font-size: clamp(2rem, 7vw, var(--fs-4xl));
  margin: 0 0 1.25rem;
  max-width: 22ch;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-services-line {
  font-size: clamp(1rem, 2.6vw, var(--fs-lg));
  font-weight: 500;
  color: #fff;
  margin: 0 0 0.6rem;
  max-width: 40rem;
}
.hero-instruments-line {
  font-size: var(--fs-sm);
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin: 0 0 2rem;
  font-weight: 500;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Hero stat rail */
.hero-rail {
  background: var(--ink-2);
  color: #fff;
  border-top: 1px solid rgba(201,166,104,0.25);
}
.hero-rail__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  gap: 1.25rem;
}
.hero-rail dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.hero-rail dd { margin: 0; font-size: var(--fs-sm); line-height: 1.5; }

/* ---------- Main / sections ---------- */
.site-main { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.site-main--flush { max-width: none; padding: 0; }
.section { padding: 3rem 0; }
.section--tint { background: var(--paper-3); }
.section--ink { background: var(--ink); color: #e8eef1; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section__inner { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section-head { margin-bottom: 2rem; max-width: var(--max-text); }
.section-head h2 { font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl)); margin: 0 0 0.65rem; }
.section-head p { color: var(--muted); font-size: var(--fs-lg); margin: 0; }
.section--ink .section-head p { color: #a9bfc9; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 0.7rem;
}
.section--ink .eyebrow { color: var(--gold); }

.page-head h1 { font-size: clamp(var(--fs-2xl), 5.5vw, var(--fs-3xl)); margin: 0 0 0.75rem; }
.standfirst { color: var(--muted); font-size: var(--fs-lg); max-width: var(--max-text); }
.lede { font-size: var(--fs-lg); max-width: var(--max-text); line-height: 1.65; }
.tagline {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-style: italic;
  border-left: 4px solid var(--green);
  padding: 0.35rem 0 0.35rem 1.1rem;
  margin: 1.75rem 0;
}

/* ---------- Prose ---------- */
.prose h2 { font-size: var(--fs-xl); margin: 2.5rem 0 1rem; }
.prose h3 { font-size: var(--fs-lg); margin: 2rem 0 0.75rem; }
.prose p, .prose li { max-width: var(--max-text); line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin: 0.4rem 0; }
.prose figure { margin: 1.75rem 0 2rem; }
.prose figcaption {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 0.6rem;
  max-width: var(--max-text);
  line-height: 1.55;
}

/* Wide cover image on inner pages (service + project detail) */
.page-cover,
.prose .page-cover {
  margin: 0 0 2rem;
  width: 100%;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-3);
}
.page-cover img,
.prose .page-cover img,
.prose figure.page-cover > img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* Defeat global img { height: auto } stretch of low-res assets */
  flex: none;
}
.page-cover figcaption,
.prose .page-cover figcaption {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.55;
}

.kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8125rem; font-weight: 700; color: var(--green-dark); }
.meta-line { color: var(--muted); }
.text-link { font-weight: 600; }

/* ---------- Service tabs ---------- */
.svc-tabs { margin-bottom: 1.75rem; }
.svc-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid var(--line);
}
.svc-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.svc-tab:hover { color: var(--ink); }
.svc-tab[aria-selected="true"] { color: var(--green-dark); border-bottom-color: var(--green); }
.svc-panel[hidden] { display: none; }
.svc-panel-intro { color: var(--muted); margin: 0 0 1.5rem; max-width: var(--max-text); }
.svc-page-intro { color: var(--muted); margin: 0 0 1.5rem; max-width: var(--max-text); line-height: 1.7; }

/* ---------- Cards / service-card grid (equal height, aligned tops) ---------- */
/* 1 col mobile → 2 → 3 on desktop. Used by /services, home tabs, projects. */
.service-card-grid,
.card-grid,
.card-list,
.prose ul.card-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.card-grid { margin: 0; }
.service-card-grid > li,
.card-grid > li,
.card-list > li,
.prose ul.card-list > li {
  display: flex;
  margin: 0;
  max-width: none;
  padding: 0;
}

/* Legacy CMS project/services index markup (ul.card-list + img.card-img). */
.card-list > li > a,
.prose ul.card-list > li > a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card-list > li > a:hover,
.prose ul.card-list > li > a:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--ink);
}
.card-list .card-img,
.prose ul.card-list .card-img,
.service-card .card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--paper-3);
  flex: none;
}
.card-list .card-content,
.prose ul.card-list .card-content {
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 auto;
}
.card-list .card-content strong,
.prose ul.card-list .card-content strong {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.3;
}
.card-list .card-content span,
.prose ul.card-list .card-content span {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.card-list .card-more,
.service-card .card__more,
.service-card .card-more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
}

/* Primary card + service-card (home /services template) */
.service-card,
.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover,
.card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--ink);
}
.service-card .card__media,
.card__media {
  flex: none;
  overflow: hidden;
  background: var(--paper-3);
  height: 190px;
}
.service-card .card__media img,
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
  display: block;
}
.service-card:hover .card__media img,
.card:hover .card__media img { transform: scale(1.04); }
.card__body {
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.4rem;
}
.card__title {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.card__text { color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; margin: 0; }
.card__more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.card__meta { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-strip li { border-left: 3px solid var(--green); padding-left: 1rem; }
.trust-strip dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.trust-strip dd { margin: 0; font-family: var(--serif); font-size: var(--fs-lg); font-weight: 700; }

/* ---------- Method steps ---------- */
.steps { display: grid; gap: 1.5rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 1.5rem 1.35rem;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: var(--fs-2xl);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step h3 { font-size: var(--fs-lg); margin: 0 0 0.5rem; }
.step p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }

/* ---------- Why-us list ---------- */
.why-list { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.why-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 1.1rem 1.25rem;
  line-height: 1.6;
}
.why-list li::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: 0.55rem;
  background: var(--green);
  transform: rotate(45deg);
}

/* ---------- Split about teaser ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
.split__media img { width: 100%; height: clamp(220px, 42vw, 380px); object-fit: cover; }
.split__media--logo {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split__media--logo img {
  width: auto;
  max-width: 100%;
  height: clamp(160px, 28vw, 260px);
  object-fit: contain;
}
.split__media figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 0.5rem; line-height: 1.5; }
.section--ink .split__media figcaption { color: #8ba3ae; }

/* ---------- Quotes / testimonials ---------- */
.quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.quotes blockquote {
  margin: 0;
  height: 100%;
  background: var(--paper-2);
  border-top: 4px solid var(--green);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.quotes blockquote p { font-size: var(--fs-sm); line-height: 1.7; margin: 0 0 1rem; flex: 1 1 auto; }
.quotes footer { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.quotes footer strong { color: var(--ink); }

/* Founder quote strip */
.founder-quote {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.founder-quote__media img { width: 100%; height: clamp(200px, 36vw, 300px); object-fit: cover; }
.founder-quote__media figcaption { font-size: var(--fs-xs); color: #8ba3ae; margin-top: 0.5rem; line-height: 1.5; }
.founder-quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(var(--fs-lg), 3vw, var(--fs-xl));
  line-height: 1.5;
  font-style: italic;
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
}
.founder-quote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--gold);
  margin-top: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.founder-quote cite span { display: block; color: #a9bfc9; font-weight: 400; letter-spacing: 0; margin-top: 0.15rem; }

.vision {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  background: var(--ink);
  color: var(--paper);
  padding: 1.85rem 1.6rem;
  margin: 2rem 0;
  line-height: 1.5;
  border-left: 4px solid var(--gold);
}
.vision footer { font-family: var(--sans); font-size: var(--fs-sm); color: var(--gold); margin-top: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-dark); color: #fff; }
.cta-band__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  gap: 1.75rem;
}
.cta-band h2 { color: #fff; font-size: clamp(var(--fs-xl), 4vw, var(--fs-2xl)); margin: 0 0 0.75rem; }
.cta-band a { color: #fff; }
.cta-band address { font-style: normal; line-height: 1.7; }
.cta-band .btn-light { border-color: #fff; }
.cta-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.cta-contact-list strong { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.7); font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.data { width: 100%; border-collapse: collapse; background: var(--paper-2); font-size: var(--fs-sm); }
.data th, .data td { text-align: left; padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { background: var(--ink); color: #fff; font-weight: 600; letter-spacing: 0.02em; }
.data tbody tr:hover { background: var(--paper-3); }

/* ---------- Forms ---------- */
.contact-layout { display: grid; gap: 2rem; }
.form-panel { background: var(--paper-2); border: 1px solid var(--line); padding: 1.5rem; }
label { display: block; font-size: var(--fs-sm); font-weight: 500; margin-bottom: 0.3rem; }
input, textarea, select {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { border-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 0.85rem 1rem; margin-bottom: 1.25rem; }
.notice-ok { background: #e3f2e9; border-left: 4px solid var(--green); }
.notice-err { background: #f9e6e6; border-left: 4px solid #b3453d; }
.contact-points { padding-left: 1.2rem; }
address.vcard { font-style: normal; line-height: 1.75; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b8c9d1;
  padding: 3rem 1.25rem 5.5rem;
  font-size: var(--fs-sm);
}
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 2rem; }
.footer-section h2 {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1rem;
}
.footer-section p { margin: 0 0 0.6rem; line-height: 1.65; }
.footer-about-text { max-width: 28rem; }
.footer-brand { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 700; color: #fff; margin: 0 0 0.75rem; letter-spacing: 0.02em; }
.site-footer a { color: #fff; text-decoration: none; transition: color 0.18s ease; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0.5rem 0; }
.footer-links a { text-decoration: none; }
.footer-contact-details { font-style: normal; }
.footer-contact-details p { margin: 0 0 0.5rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.footer-social a { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.policy-links a { color: #93a9b4; font-size: var(--fs-xs); }
.policy-links a:hover { color: #fff; }
.copy { color: #93a9b4; font-size: var(--fs-xs); margin: 0 0 0.6rem; }
.funky-credit { font-size: var(--fs-xs); margin: 0; }
.funky-credit a { color: var(--gold); font-weight: 600; }
.funky-credit a:hover { color: #fff; text-decoration: underline; }

.float-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.15rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  z-index: 40;
  box-shadow: var(--shadow-lg);
}
.float-wa:hover { background: var(--green-light); color: #fff; }

/* ---------- Mobile header + open-nav scroll (max-width matches 860px desktop breakpoint) ---------- */
@media (max-width: 859px) {
  /* Logo sits inside navy header bar - no hanging box over hero/content */
  .logo {
    align-self: center;
  }
  .logo-card {
    margin-bottom: 0;
    padding: 0.28rem 0.38rem 0.3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(10, 26, 36, 0.22);
  }
  .logo-img {
    width: clamp(2.6rem, 11vw, 3.15rem);
  }
  .header-inner {
    padding: 0.45rem 1rem;
    align-items: center;
  }
  /* No hang clearance needed on mobile */
  .breadcrumbs {
    padding-top: 0;
  }
  .hero-cinematic__inner {
    padding-top: 3rem;
  }

  /* Open MENU panel must scroll - long Services submenu fully reachable */
  .site-nav.is-open {
    display: block;
    max-height: calc(100vh - 3.75rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 1.25rem;
  }
  @supports (max-height: 100dvh) {
    .site-nav.is-open {
      max-height: calc(100dvh - 3.75rem);
    }
  }
  /* Body lock must not block the panel's own scroll */
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .site-nav.is-open {
    touch-action: pan-y;
  }
}


/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .service-card-grid, .card-grid, .card-list { grid-template-columns: repeat(2, 1fr); }
  .hero-rail__inner { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .logo-card {
    padding: 0.6rem 0.75rem 0.65rem;
    margin-bottom: -3.35rem;
    border-radius: 14px;
  }
  .logo-img {
    width: clamp(8.25rem, 11.5vw, 10.75rem);
  }
  .breadcrumbs { padding-top: 3.65rem; }
  :root {
    --fs-base: 1.125rem;
    --fs-lg: 1.3125rem;
    --fs-xl: 1.625rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3.5rem;
  }
  .header-inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .nav-toggle { display: none; }
  .site-nav { display: block; grid-column: auto; }
  .site-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.1rem 0.25rem; }
  .site-nav a { border: 0; padding: 0.8rem 0.75rem; font-size: 1rem; }
  .site-nav li { position: relative; }
  .site-nav .has-children > a::after { content: "\25BC"; display: inline-block; margin-left: 0.25em; font-size: 0.65em; line-height: 1; opacity: 0.75; }
  .site-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 17rem;
    background: var(--ink-2);
    padding: 0.5rem 0;
    z-index: 60;
    box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--gold);
    max-height: 70vh;
    overflow-y: auto;
  }
  .site-nav .sub-menu a { padding: 0.55rem 1.1rem; }
  .site-nav .sub-menu a:hover { background: var(--ink-3); color: #fff; }
  .site-nav .has-children:hover > .sub-menu,
  .site-nav .has-children:focus-within > .sub-menu { display: block; }
  .header-actions { display: flex; }

  .hero-cinematic { min-height: 84vh; }
  .hero-cinematic__inner { padding: 6.75rem 1.5rem 5rem; }
  .hero-rail__inner { grid-template-columns: repeat(4, 1fr); padding: 1.75rem 1.5rem; gap: 2rem; }

  .section { padding: 4.5rem 0; }
  .section__inner { padding: 0 1.5rem; }
  .site-main { padding: 3rem 1.5rem 5rem; }

  .service-card-grid, .card-grid, .card-list { grid-template-columns: repeat(3, 1fr); }
  .service-card .card__media,
  .card__media,
  .card-list .card-img { height: 200px; }
  .service-card .card__media img,
  .card__media img { height: 100%; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why-list { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split--reverse .split__media { order: 2; }
  .founder-quote { grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; }
  .cta-band__inner { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; padding: 4rem 1.5rem; }
  .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
  .site-footer { padding: 3.5rem 1.5rem 2.5rem; }
  .float-wa { display: none; }
}

@media (min-width: 1200px) {
  .service-card .card__media,
  .card__media,
  .card-list .card-img { height: 215px; }
  .service-card .card__media img,
  .card__media img { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ---------- Team portrait cards (About) ---------- */
.team-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
  max-width: 56rem;
}
.team-card {
  background: var(--paper-2, #f6f3ee);
  border: 1px solid rgba(20, 40, 50, 0.08);
  border-radius: 12px;
  padding: 1.1rem 1.1rem 1.25rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 30, 40, 0.06);
}
.team-card__photo {
  margin: 0 auto 0.9rem;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-3, #ebe6de);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-card__placeholder {
  margin: 0 auto 0.9rem;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: linear-gradient(145deg, #d9e2e8, #b7c5ce);
}
.team-card__name {
  font-size: var(--fs-lg, 1.15rem);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.team-card__role {
  margin: 0;
  color: var(--muted, #5b6b74);
  font-size: var(--fs-sm, 0.95rem);
}

/* ---------- Founder compact portrait cards ---------- */
.founder-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0.5rem 0 1.75rem;
  max-width: 56rem;
  align-items: start;
}
.founder-card {
  background: var(--paper-2, #f6f3ee);
  border: 1px solid rgba(20, 40, 50, 0.08);
  border-radius: 12px;
  padding: 1.15rem 1.15rem 1.35rem;
  box-shadow: 0 8px 24px rgba(15, 30, 40, 0.06);
}
.founder-card figure.founder-card__photo,
.prose .founder-card__photo,
.founder-card__photo {
  display: block;
  margin: 0 auto 1rem;
  width: 260px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-3, #ebe6de);
}
.founder-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.founder-card .kicker {
  text-align: center;
  margin-bottom: 0.35rem;
}
.founder-card h2 {
  text-align: center;
  margin-top: 0.15rem;
}
.founder-card p {
  max-width: none;
}
.page.founder .prose > .page-figure {
  /* legacy full-bleed portraits must not stretch */
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.page.founder .prose > .page-figure img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 720px) {
  .team-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
  .founder-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* ===== Careers (REV1 · 2026-09-17) ===== */
.page-hero--careers {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, var(--paper-2, #f4efe6) 0%, transparent 100%);
}
.page-hero--careers .page-hero__inner { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.why-join-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .why-join-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .why-join-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.why-join-card {
  background: #fff;
  border: 1px solid rgba(15, 40, 50, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 30, 40, 0.06);
  display: flex; flex-direction: column;
}
.why-join-card__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #0b1c28; }
.why-join-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.why-join-card__body { padding: 1rem 1.1rem 1.25rem; }
.why-join-card__body h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--ink, #0b1c28); }
.why-join-card__body p { margin: 0; color: #40545f; font-size: 0.95rem; line-height: 1.55; }
.job-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.job-card {
  background: #fff;
  border: 1px solid rgba(15, 40, 50, 0.1);
  border-radius: 14px;
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: 0 8px 22px rgba(15, 30, 40, 0.05);
}
.job-card--on_hold { opacity: 0.92; border-style: dashed; }
.job-card__top { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 0.75rem; }
.job-card__title { margin: 0; font-size: 1.15rem; }
.job-status {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: 999px;
}
.job-status--open { background: rgba(31, 122, 107, 0.12); color: #1f7a6b; }
.job-status--on_hold { background: rgba(176, 141, 87, 0.18); color: #8a6a2f; }
.job-status--closed { background: rgba(90, 90, 90, 0.12); color: #555; }
.job-meta {
  display: grid; gap: 0.65rem 1rem; margin: 0 0 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .job-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.job-meta dt { margin: 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: #7a8a93; }
.job-meta dd { margin: 0.15rem 0 0; color: var(--ink, #0b1c28); font-weight: 550; }
.job-card__summary { margin: 0 0 0.85rem; color: #40545f; }
.job-card__actions { margin: 0; }
.job-card__note { margin: 0; font-size: 0.92rem; color: #8a6a2f; }
.careers-empty { padding: 1rem 1.15rem; background: var(--paper-2, #f4efe6); border-radius: 12px; }
.apply-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .apply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.careers .form-panel {
  background: #fff;
  border: 1px solid rgba(15, 40, 50, 0.1);
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 8px 22px rgba(15, 30, 40, 0.05);
}
.careers .form-panel h2 { margin-top: 0; }
.careers .form-panel label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.careers .form-panel input[type="text"],
.careers .form-panel input[type="email"],
.careers .form-panel input[type="tel"],
.careers .form-panel input[type="file"],
.careers .form-panel select,
.careers .form-panel textarea {
  width: 100%; max-width: 100%;
  border: 1px solid rgba(15, 40, 50, 0.18);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
}
.careers .form-panel .hp { position: absolute; left: -10000px; height: 0; overflow: hidden; }
.careers-strip {
  background: linear-gradient(135deg, #0b1c28 0%, #143445 55%, #1f7a6b 140%);
  color: #f4efe6;
  padding: 2.25rem 0;
}
.careers-strip__inner {
  max-width: 72rem; margin: 0 auto; padding: 0 1.25rem;
  display: grid; gap: 1rem; align-items: center;
}
@media (min-width: 800px) {
  .careers-strip__inner { grid-template-columns: 1.4fr auto; }
}
.careers-strip h2 { margin: 0 0 0.4rem; color: #fff; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.careers-strip p { margin: 0; color: rgba(244, 239, 230, 0.88); max-width: 40rem; }
.careers-strip .btn { margin-top: 0.25rem; }
.notice { max-width: 72rem; margin: 1rem auto; padding: 0.85rem 1.15rem; border-radius: 10px; }
.notice--ok { background: rgba(31, 122, 107, 0.12); color: #145a4e; }
.notice--err { background: rgba(160, 50, 50, 0.1); color: #8a1f1f; }
