/* ==========================================================================
   Credit Management Bureau — Stylesheet
   Design concept: "The Statement" — a premium annual-report / financial
   statement aesthetic. Hairline rules, tabular numerals, a restrained brass
   accent used only for the ledger mark and key actions, one bold moment
   (the hero credit-line graphic).
   ========================================================================== */

:root {
  /* Color */
  --navy-950: #0b1e33;   /* near-black navy — dark sections */
  --navy-800: #123152;   /* primary navy — headings, header */
  --navy-700: #1c4266;   /* secondary navy — hovers */
  --ink: #1c2530;         /* body text */
  --ink-soft: #4b5766;    /* secondary text */
  --paper: #f7f5f0;       /* warm off-white background */
  --paper-raised: #ffffff;/* card background */
  --line: #dcd6c8;        /* hairline rule, warm gray-tan */
  --line-strong: #b9b0a0; /* stronger rule */
  --brass: #a9791f;       /* accent — used sparingly */
  --brass-dim: #8a6318;
  --sage: #3f6657;        /* secondary data accent (growth/positive) */
  --rose: #8a3a3a;        /* tertiary data accent (risk/negative) */
  --focus: #1c6fd6;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 3px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

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

.tabular { font-variant-numeric: tabular-nums; }

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

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark {
  background: var(--navy-950);
  color: #cfd8e3;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #f5f2ea; }
.section--dark p { color: #a9b7c6; }
.section--paper-raised { background: var(--paper-raised); }
.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}
.hairline-top { border-top: 1px solid var(--line); }
.hairline-bottom { border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--brass-dim);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

.kicker-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  width: 2em;
  height: 2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.15rem;
  max-width: 46ch;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brass);
  color: #fff;
}
.btn--primary:hover { background: var(--brass-dim); }
.btn--ghost-light {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--outline {
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn--outline:hover { background: var(--navy-800); color: #fff; }
.btn--sm { padding: 0.6em 1.2em; font-size: 0.85rem; }
.btn--full { width: 100%; justify-content: center; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  color: var(--navy-800);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.15em;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--brass); border-color: var(--brass); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,245,240,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(11,30,51,0.06);
}
.nav-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 2rem);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy-950);
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
/* Logo images: the full lockup on desktop, the compact icon mark on
   narrow screens — this is what actually fixes the mobile overflow,
   since a raster wordmark can't wrap the way text can. */
.brand-logo-full,
.brand-logo-mark {
  display: block;
  width: auto;
  flex-shrink: 1;
  min-width: 0;
  object-fit: contain;
}
.brand-logo-full { height: 42px; max-width: 100%; }
.brand-logo-mark { height: 34px; display: none; }
.brand-word {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-word small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.4em 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--brass);
  transition: right 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--navy-950); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-950);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.is-open { max-height: 80vh; overflow-y: auto; }
  .nav-links a {
    width: 100%;
    padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }
  .nav-cta .btn--outline { display: none; }
  .nav-toggle { display: flex; }
}

/* Below this width there isn't room for the full wordmark logo plus the
   "Get Started" button next to the hamburger — this is what caused the
   real horizontal-overflow bug (page rendering wider than the viewport).
   Switch to the compact icon-only mark and drop the secondary button. */
@media (max-width: 560px) {
  .brand-logo-full { display: none; }
  .brand-logo-mark { display: block; }
  .brand-word { display: none; }
  .nav-cta .btn--primary { display: none; }
  .nav-bar { gap: 0.6rem; }
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 1rem 0;
}
.breadcrumb a { color: var(--ink-soft); border-bottom: 1px solid var(--line-strong); }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb span { margin: 0 0.5em; color: var(--line-strong); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-950);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  min-height: 560px;
}
.hero--page { min-height: 340px; }
.hero--page .wrap { grid-template-columns: 1fr; text-align: left; padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { max-width: 320px; margin: 0 auto; }
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  max-width: 16ch;
}
.hero .lede { color: #b9c4d1; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-style: italic;
  color: #d8c48d;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.hero-eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: #d8c48d;
}

/* Photo-backed hero: a real royalty-free photograph with a dark navy
   overlay so the headline stays readable, per the original brief. */
.hero-photo {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, rgba(10,26,52,0.94) 0%, rgba(10,26,52,0.88) 40%, rgba(10,26,52,0.62) 100%);
}
.hero-photo .hero-grid-bg { z-index: 1; }
.hero-photo .wrap { z-index: 2; }
.hero-photo .wrap { grid-template-columns: 1fr; max-width: 760px; }

/* reveal-on-load hero elements */
.hero [data-load-in] {
  opacity: 0;
  transform: translateY(14px);
  animation: loadIn 0.7s ease forwards;
}
@keyframes loadIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 2.25rem 1.5rem;
  border-left: 1px solid var(--line);
  text-align: left;
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--navy-950);
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}
.stat-label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}
@media (max-width: 760px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
}

/* ---------- About preview / two-col ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.split--reverse { grid-template-columns: 1.1fr 0.9fr; }
.split.split--reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split, .split.split--reverse { grid-template-columns: 1fr; }
  .split.split--reverse .split-media { order: 0; }
}
.split-media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3.2;
  object-fit: cover;
}
.split-media { position: relative; }
.split-media-tag {
  position: absolute;
  bottom: -1px; left: -1px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.9rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--navy-800);
  max-width: 220px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card-icon {
  display: inline-block;
  width: 44px; height: 44px;
  margin-bottom: 1.25rem;
  color: var(--brass);
}
/* Inline SVGs default to a 300x150 replaced-element box unless explicitly
   sized, so every icon wrapper must force its child svg to fill it. */
.card-icon svg,
.why-icon svg,
.contact-info-icon svg,
.download-icon svg,
.flow-node-icon svg,
.visual-tile-icon svg,
.map-pin svg,
.stat-num svg {
  width: 100%;
  height: 100%;
  display: block;
}
.kicker-num svg { width: 55%; height: 55%; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.card p { font-size: 0.95rem; margin-bottom: 1.25em; }

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .text-link { margin-top: auto; }

.value-card {
  border-top: 2px solid var(--brass);
  padding: 1.75rem 0 0;
}
.value-card h3 { font-size: 1.05rem; }

.why-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.why-item:last-child { border-bottom: none; }
.why-icon {
  width: 30px; height: 30px;
  color: var(--brass);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 0.25em; }
.why-item p { font-size: 0.92rem; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy-950);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; max-width: 26ch; margin: 0 auto 0.5em; }
.cta-banner p { color: #a9b7c6; max-width: 42ch; margin: 0 auto 1.75rem; }
.cta-banner .btn { margin: 0 auto; }
.cta-inner { position: relative; z-index: 2; }
.cta-rule {
  width: 46px; height: 2px; background: var(--brass);
  margin: 0 auto 1.25rem;
}

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-photo {
  width: 100%;
  aspect-ratio: 1/1.05;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: var(--navy-800);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 0.15em; }
.team-role { color: var(--brass-dim); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.6em; }
.team-card p { font-size: 0.88rem; }

/* ---------- Process timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.timeline-step {
  background: var(--paper-raised);
  padding: 1.75rem 1.25rem;
  position: relative;
}
.timeline-step .kicker-num { border-color: var(--brass); color: var(--brass); }
.timeline-step h3 { font-size: 0.98rem; }
.timeline-step p { font-size: 0.85rem; margin: 0; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ---------- Flow diagram (credit management page) ---------- */
.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper-raised);
}
.flow-node {
  flex: 1 0 150px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--line);
  position: relative;
}
.flow-node:last-child { border-right: none; }
.flow-node-icon {
  display: inline-block;
  width: 34px; height: 34px;
  margin: 0 auto 0.9rem;
  color: var(--navy-800);
}
.flow-node h4 { font-size: 0.88rem; margin: 0; color: var(--navy-950); }
.flow-node::after {
  content: "";
  position: absolute;
  right: -1px; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  background: var(--brass);
  border-radius: 50%;
  z-index: 2;
}
.flow-node:last-child::after { display: none; }

.impact-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.impact-item { background: var(--paper-raised); padding: 1.5rem 1.1rem; text-align: left; }
.impact-item h4 { font-size: 0.95rem; margin-bottom: 0.4em; }
.impact-item p { font-size: 0.85rem; margin: 0; }
@media (max-width: 980px) { .impact-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .impact-list { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-950);
}
.faq-q-plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
}
.faq-q-plus::before, .faq-q-plus::after {
  content: "";
  position: absolute;
  background: var(--navy-800);
  transition: transform 0.25s ease;
}
.faq-q-plus::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-q-plus::after { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.faq-item.is-open .faq-q-plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner { padding: 0 0 1.5rem; max-width: 68ch; }
.faq-a-inner p { margin: 0; font-size: 0.95rem; }

/* ---------- Resources / articles ---------- */
.article-card { display: flex; flex-direction: column; }
.article-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: var(--navy-800);
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-card:hover .article-thumb img { transform: scale(1.04); }
.article-category {
  font-size: 0.78rem;
  color: var(--brass-dim);
  font-weight: 600;
  margin-bottom: 0.4em;
}
.article-card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.article-card p { font-size: 0.9rem; }

.download-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 1.4rem;
}
.download-icon {
  width: 40px; height: 40px;
  color: var(--brass);
  flex-shrink: 0;
}
.download-card h4 { font-size: 0.95rem; margin: 0 0 0.2em; }
.download-card p { font-size: 0.82rem; margin: 0 0 0.75em; }

.newsletter-box {
  background: var(--navy-950);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.newsletter-box h2 { color: #fff; }
.newsletter-box p { color: #a9b7c6; }
@media (max-width: 760px) { .newsletter-box { grid-template-columns: 1fr; } }
.field-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.field-row input { flex: 1; min-width: 200px; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 1.4rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.45rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--brass); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field .error-msg {
  display: none;
  color: var(--rose);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--rose); }
.form-field.has-error .error-msg { display: block; }
.form-success {
  display: none;
  background: #eef4f1;
  border: 1px solid var(--sage);
  color: var(--sage);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.form-success.is-visible { display: block; }
.contact-form.is-submitted-hidden { display: none; }

.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-card:last-child { border-bottom: none; }
.contact-info-icon { width: 26px; height: 26px; color: var(--brass); flex-shrink: 0; margin-top: 0.1rem; }
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 0.2em; }
.contact-info-card p { font-size: 0.9rem; margin: 0; }

.map-frame {
  width: 100%;
  aspect-ratio: 16/6;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: #e9e5da;
}
.map-frame svg { width: 100%; height: 100%; display: block; }
.map-pin {
  display: inline-block;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  color: var(--rose);
  width: 36px;
  height: 36px;
}
.map-pin svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.25)); }
.map-frame-label {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: rgba(255,255,255,0.92);
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #a9b7c6; }
.footer-top { padding: clamp(3rem, 5vw, 4rem) 0 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr 0.9fr 0.9fr 0.9fr; gap: 2.5rem; }
@media (max-width: 1040px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #f5f2ea; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1rem; }
.logo-plate {
  display: inline-flex;
  align-items: center;
  background: var(--paper-raised);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
}
.logo-plate img { display: block; height: 34px; width: auto; }
.footer-top p { font-size: 0.9rem; color: #8a97a6; max-width: 32ch; }
.footer-col h4 { color: #f5f2ea; font-size: 0.88rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col a { font-size: 0.9rem; color: #a9b7c6; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.social-row { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid #2a4361;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.social-row a:hover { border-color: var(--brass); background: rgba(169,121,31,0.15); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid #24405f;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 46px; height: 46px;
  background: var(--navy-950);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 90;
  border: none;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brass); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Misc page-specific ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.service-detail {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-of-type { border-bottom: none; }
.service-detail-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.service-detail:nth-of-type(even) .service-detail-grid { direction: rtl; }
.service-detail:nth-of-type(even) .service-detail-grid > * { direction: ltr; }
@media (max-width: 860px) {
  .service-detail-grid { grid-template-columns: 1fr; direction: ltr !important; }
}
.service-detail-media img {
  border-radius: var(--radius);
  aspect-ratio: 4/3.3;
  object-fit: cover;
  width: 100%;
}
.service-detail-list { margin: 1.25rem 0 1.5rem; }
.service-detail-list li {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.service-detail-list li:first-child { border-top: none; }
.service-detail-list svg { width: 16px; height: 16px; color: var(--sage); flex-shrink: 0; margin-top: 0.2rem; }

/* ---------- Visual tiles (data-graphic system, replaces photography) ---------- */
.visual-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.visual-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}
.visual-tile--navy { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.visual-tile--paper {
  background: var(--paper);
  border: 1px solid var(--line);
}
.visual-tile--paper::before {
  background-image:
    linear-gradient(rgba(28,37,48,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,37,48,0.05) 1px, transparent 1px);
}
.visual-tile-icon {
  position: relative;
  z-index: 1;
  width: 27%;
  max-width: 96px;
  color: #d8c48d;
}
.visual-tile--paper .visual-tile-icon { color: var(--navy-800); }
.visual-tile-tag {
  position: absolute;
  z-index: 1;
  bottom: 1rem; left: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}
.visual-tile--paper .visual-tile-tag { color: var(--ink-soft); }
.visual-tile-corner {
  position: absolute; z-index: 1;
  top: 1rem; right: 1rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brass);
}
.visual-tile--hero { aspect-ratio: 1/1; }
.visual-tile--split { aspect-ratio: 4/3.2; width: 100%; }
.visual-tile--service { aspect-ratio: 4/3.3; width: 100%; }
.visual-tile--article { aspect-ratio: 16/10; width: 100%; }
.visual-tile--team { aspect-ratio: 1/1.05; width: 100%; }
.visual-tile--download { width: 100%; aspect-ratio: 3/2; }

.avatar-mono {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: #d8c48d;
  z-index: 1;
  position: relative;
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-800);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 0.3em 0.85em;
  margin-bottom: 1rem;
}
