/* ==========================================================================
   Metria Group — themetriagroup.com
   Single-page site. Brand: Brand & Communications Guide v1.0
   ========================================================================== */

:root {
  --navy: #192D46;
  --navy-deep: #13233A;
  --teal: #258B83;
  --teal-dark: #1E7069;
  --sage: #A3B3A0;
  --sage-deep: #61795C;
  --clay: #B8755F;
  --ivory: #F5F2EA;
  --ivory-deep: #ECE7DB;
  --white: #FFFFFF;
  --ink: #192D46;
  --text: #3E4C57;          /* body text on light — 8.9:1 on white */
  --muted: #5A6772;         /* secondary text — 5.9:1 on white */
  --on-dark: #E4EAEE;       /* body text on navy — 11:1 */
  --on-dark-muted: #B9C6CE;
  --rule: #DCD8CE;
  --rule-dark: rgba(228, 234, 238, .18);

  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-underline-offset: .2em; }
a:hover { color: var(--navy); }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -.01em; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .hero :focus-visible { outline-color: var(--sage); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-dark); margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--clay); flex: none; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--sage); }

.h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); line-height: 1.18; letter-spacing: -.02em; max-width: 20ch; }
.h3 { font-size: 1.2rem; line-height: 1.35; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--teal); --fg: #fff; --bd: var(--teal);
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  padding: .95em 1.5em; border: 1.5px solid var(--bd); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --bg: var(--teal-dark); --bd: var(--teal-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.45); }
.btn--ghost:hover { --bg: #fff; --bd: #fff; color: var(--navy); }
.btn--outline { --bg: transparent; --fg: var(--navy); --bd: var(--navy); }
.btn--outline:hover { --bg: var(--navy); --bd: var(--navy); color: #fff; }
.btn--sm { padding: .7em 1.15em; font-size: .82rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 24px rgba(25, 45, 70, .05); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 32px); list-style: none; }
.nav__link {
  position: relative; display: block; padding: 6px 0;
  font-family: var(--font-head); font-size: .86rem; font-weight: 500; color: var(--navy); text-decoration: none;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { font-weight: 600; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--navy);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; margin: 0 auto; background: currentColor; position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  :root { --header-h: 66px; }
  .brand img { height: 34px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 18px 30px rgba(25, 45, 70, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 15px 0; font-size: 1rem; border-bottom: 1px solid var(--rule); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="true"] { color: var(--teal-dark); }
  .nav .btn { margin-top: 20px; justify-content: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 128px);
}
/* Fine contour lines — a quiet echo of the ribbon M; not a redraw of the logo */
.hero__lines {
  position: absolute; z-index: -1; right: -8%; bottom: -12%; width: min(980px, 90vw); height: auto;
  opacity: .5; pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.85rem); line-height: 1.08; letter-spacing: -.025em;
  margin-bottom: 1.6rem; max-width: 15ch;
}
.hero__copy p { color: var(--on-dark); max-width: 36rem; }
.hero__copy .hero__support { font-size: clamp(1.08rem, 1.4vw, 1.2rem); color: #fff; line-height: 1.6; }
.hero__copy .hero__more { color: var(--on-dark-muted); font-size: 1rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }

.hero__media { position: relative; }
.hero__frame {
  position: relative; overflow: hidden; border-radius: 2px 48px 2px 2px;
  aspect-ratio: 5 / 4.4; background: var(--navy-deep);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.hero__frame img {
  width: 100%; height: 118%; object-fit: cover; object-position: 42% 40%;
  will-change: transform; transform: translate3d(0, var(--parallax, 0px), 0);
}
.hero__media::before {
  content: ""; position: absolute; z-index: -1; inset: 22px -22px -22px 22px;
  border: 1px solid rgba(163, 179, 160, .5); border-radius: 2px 48px 2px 2px;
}
.hero__media::after {
  content: ""; position: absolute; left: -22px; bottom: 44px; width: 64px; height: 3px; background: var(--clay);
}

/* Tagline band */
.tagline-band { background: var(--ivory); border-bottom: 1px solid var(--ivory-deep); }
.tagline-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.tagline-band__tag { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--navy); letter-spacing: .01em; margin: 0; }
.tagline-band__tag span { color: var(--teal); }
.tagline-band__pos { margin: 0; font-size: .98rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .hero__media { max-width: 560px; margin-right: 22px; }
  .hero__frame { aspect-ratio: 16 / 11; }
  .hero__frame img { height: 100%; transform: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section-y) 0; position: relative; }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px clamp(40px, 6vw, 96px); align-items: start; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head__copy p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.subhead { display: flex; align-items: baseline; gap: 16px; margin: clamp(64px, 8vw, 96px) 0 32px; }
.subhead h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--rule); transform: translateY(-4px); }
.section--dark .subhead::after { background: var(--rule-dark); }

/* ---------- Outcome areas ---------- */
.outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.outcome { padding: 32px 28px 8px 0; position: relative; }
.outcome + .outcome { padding-left: 28px; border-left: 1px solid var(--rule); }
.outcome::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 3px; background: var(--teal); }
.outcome + .outcome::before { left: 28px; }
.outcome:nth-child(2)::before { background: var(--sage-deep); }
.outcome:nth-child(3)::before { background: var(--clay); }
.outcome:nth-child(4)::before { background: var(--navy); }
.outcome__num { font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.outcome h3 { font-size: 1.15rem; margin: 14px 0 12px; }
.outcome p { font-size: .97rem; line-height: 1.65; }
@media (max-width: 1000px) {
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome:nth-child(3) { border-left: 0; padding-left: 0; }
  .outcome:nth-child(3)::before { left: 0; }
  .outcome:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .outcomes { grid-template-columns: 1fr; }
  .outcome, .outcome + .outcome { padding-left: 0; border-left: 0; }
  .outcome + .outcome { border-top: 1px solid var(--rule); }
  .outcome + .outcome::before { left: 0; }
}

/* ---------- How we help ---------- */
.capabilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.capability { background: var(--white); padding: 28px 24px 26px; border-radius: var(--radius); box-shadow: 0 1px 0 var(--rule); }
.section--ivory .capability { background: #fff; }
.capability h4 { font-size: 1.02rem; line-height: 1.35; margin-bottom: 16px; min-height: 2.7em; }
.capability ul { list-style: none; }
.capability li { position: relative; padding-left: 18px; font-size: .94rem; line-height: 1.5; margin-bottom: 10px; }
.capability li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1.5px; background: var(--teal); }
.capabilities-note { margin: 36px 0 0; max-width: 52rem; font-size: 1.02rem; color: var(--ink); padding-left: 20px; border-left: 3px solid var(--clay); }
@media (max-width: 1000px) { .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .capabilities { grid-template-columns: 1fr; } .capability h4 { min-height: 0; } }

/* ---------- Who we work with ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.audience { padding: 30px 28px; background: var(--ivory); border-radius: var(--radius); border-top: 3px solid var(--teal); }
.audience:nth-child(2) { border-top-color: var(--sage-deep); }
.audience:nth-child(3) { border-top-color: var(--clay); }
.audience h4 { font-size: 1.1rem; line-height: 1.35; margin-bottom: 14px; }
.audience ul { list-style: none; }
.audience li { font-size: .96rem; padding: 7px 0; border-bottom: 1px solid var(--ivory-deep); }
.audience li:last-child { border-bottom: 0; }
@media (max-width: 860px) { .audiences { grid-template-columns: 1fr; } }

.partner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px clamp(40px, 6vw, 96px); margin-top: clamp(48px, 6vw, 72px); align-items: start; }
.partner h4 { font-size: 1.2rem; margin-bottom: 12px; }
.checklist { list-style: none; }
.checklist li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 1.12em; width: 14px; height: 8px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
@media (max-width: 860px) { .partner { grid-template-columns: 1fr; } }

.industries { margin-top: clamp(48px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; }
.industries__label { font-family: var(--font-head); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0; }
.industries ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.industries li { font-size: .92rem; color: var(--navy); background: var(--ivory); padding: 6px 14px; border-radius: 40px; }
.industries__note { flex-basis: 100%; font-size: .85rem; color: var(--muted); margin: 4px 0 0; }

/* ---------- Approach ---------- */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--stage-count, 4), minmax(0, 1fr)); gap: 0; counter-reset: stage; position: relative; }
.stage { position: relative; padding: 34px 28px 0 0; }
.stage::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule-dark); }
.stage::after { content: ""; position: absolute; top: -5px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--navy); border: 2px solid var(--sage); }
.stage:first-child::after { background: var(--sage); }
.stage__num { font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .16em; color: var(--sage); }
.stage h3 { font-size: 1.35rem; margin: 10px 0 14px; }
.stage p { font-size: .96rem; line-height: 1.65; color: var(--on-dark); margin-bottom: .8em; }
.stage p + p { color: var(--on-dark-muted); }
@media (max-width: 960px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } }
@media (max-width: 600px) {
  .stages { grid-template-columns: 1fr; row-gap: 0; }
  .stage { padding: 0 0 32px 34px; }
  .stage::before { top: 6px; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .stage::after { top: 1px; }
  .stage:last-child { padding-bottom: 0; }
  .stage:last-child::before { display: none; }
}

.perspective { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--rule-dark); display: grid; align-items: start; grid-template-columns: minmax(0, .45fr) minmax(0, 1fr); gap: 20px 48px; }
.perspective blockquote { margin: 0; }
.perspective blockquote p { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.45; color: #fff; letter-spacing: -.01em; }
.perspective blockquote p + p { font-family: var(--font-body); font-weight: 400; font-size: 1.05rem; color: var(--on-dark); margin-bottom: 0; }
@media (max-width: 760px) { .perspective { grid-template-columns: 1fr; } }

/* ---------- Metria Model ---------- */
.model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.model__art { position: relative; }
.model__art svg { width: 100%; height: auto; }
.model__title { font-family: var(--font-head); font-size: .95rem; color: var(--muted); font-weight: 500; margin: -4px 0 24px; }
.model__dims { list-style: none; margin-top: 28px; border-top: 1px solid var(--rule); }
.model__dims li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 0 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.model__dims .swatch { width: 10px; height: 10px; border-radius: 50%; margin-top: .45em; }
.model__dims strong { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.model__dims span.sub { color: var(--muted); font-size: .9rem; }
.model__dims p { grid-column: 2; margin: 4px 0 0; font-size: .95rem; line-height: 1.6; }
.model__center { margin-top: 20px; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .model { grid-template-columns: 1fr; } .model__art { max-width: 560px; } }

/* ---------- Differentiators ---------- */
.diffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 0; }
.diff { padding: 32px 28px; background: #fff; border-radius: var(--radius); position: relative; }
.diff__icon { width: 40px; height: 40px; color: var(--teal); margin-bottom: 20px; }
.diff:nth-child(2) .diff__icon { color: var(--sage-deep); }
.diff:nth-child(3) .diff__icon { color: var(--clay); }
.diff h3 { font-size: 1.12rem; margin-bottom: 6px; }
.diff .diff__line { font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: .98rem; margin-bottom: 12px; }
.diff p { font-size: .95rem; line-height: 1.6; margin: 0; }
@media (max-width: 860px) { .diffs { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__body .lede { margin-bottom: 1.4em; }
.experience-card { background: var(--ivory); padding: clamp(28px, 4vw, 40px); border-radius: var(--radius); position: relative; }
.experience-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 72px; background: var(--teal); }
.experience-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.experience-card > p { font-size: .97rem; }
.experience-card ul { list-style: none; margin: 18px 0 20px; }
.experience-card li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--ivory-deep); position: relative; font-size: .96rem; color: var(--ink); }
.experience-card li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 8px; height: 8px; border: 1.5px solid var(--teal); border-radius: 50%; }
.experience-card .closing { font-size: .95rem; margin: 0; color: var(--text); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

.founder-exp__note { font-size: .92rem; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--rule); }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { background: #fff; border: 1px solid var(--rule); padding: 30px 28px; border-radius: var(--radius); border-top: 3px solid var(--teal); }
.case:nth-child(2) { border-top-color: var(--sage-deep); }
.case:nth-child(3) { border-top-color: var(--clay); }
.case:nth-child(4) { border-top-color: var(--navy); }
.case__kicker { font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.case h4 { font-size: 1.15rem; line-height: 1.35; margin: 10px 0 6px; }
.case .case__sub { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--teal-dark); margin-bottom: 14px; }
.case p { font-size: .95rem; line-height: 1.65; }
.case p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro .lede { color: var(--on-dark); }
.contact__intro p { color: var(--on-dark-muted); }
.contact__intro .h2 { margin-bottom: 1.4rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form { background: #fff; color: var(--text); padding: clamp(28px, 4vw, 44px); border-radius: 2px 36px 2px 2px; box-shadow: 0 30px 60px rgba(0, 0, 0, .18); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .opt { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #C9C4B8; border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23192D46' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9AA3A8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(37, 139, 131, .22); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A8402B; }
.field__error { display: none; font-size: .85rem; color: #A8402B; margin-top: 6px; }
.field.has-error .field__error { display: block; }
.form__legal { font-size: .82rem; line-height: 1.55; color: var(--muted); margin: 4px 0 22px; }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { font-size: .92rem; margin: 0; }
.form__status.is-error { color: #A8402B; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-success { text-align: left; padding: 12px 0; }
.form-success__mark { width: 52px; height: 52px; border-radius: 50%; background: rgba(37, 139, 131, .12); color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 20px; }
.form-success h3 { font-size: 1.35rem; margin-bottom: 10px; }
.form-success p { margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ivory); color: var(--muted); padding: 56px 0 32px; font-size: .9rem; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--ivory-deep); }
.site-footer__brand img { height: 44px; width: auto; margin-bottom: 14px; }
.site-footer__brand p { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.site-footer__brand p.desc { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .85rem; letter-spacing: .08em; margin-top: 4px; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-footer nav a { color: var(--navy); text-decoration: none; font-weight: 500; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--muted); }

/* ==========================================================================
   Reveal on scroll (progressive enhancement)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__frame img { transform: none !important; height: 100%; }
}

/* ---------- Legal page ---------- */
.legal { padding: clamp(56px, 8vw, 96px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal .draft { background: var(--ivory); border-left: 3px solid var(--clay); padding: 16px 20px; margin: 24px 0 32px; color: var(--ink); }

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .hero__lines, .form { display: none !important; }
  .hero, .section--dark { background: #fff !important; color: #000 !important; }
  .hero h1, .section--dark h2, .section--dark h3 { color: #000 !important; }
}
.model__copy .h2 { margin-bottom: 1.2rem; }

/* HubSpot-embedded form: HubSpot styles the fields inside its iframe */
.form--hubspot { padding: 10px 6px; min-height: 620px; }
.form--hubspot .hs-form-frame { width: 100%; }

/* Selected experience — stat cards */
.cases--stats .case { display: flex; flex-direction: column; }
.cases--stats .case__kicker { color: var(--teal-dark); }
.cases--stats .case h4 { font-size: 1.25rem; margin: 10px 0 12px; }
.stats { padding-top: 22px; border-top: 1px solid var(--rule); display: grid; gap: 20px; }
.cases--stats .case > p { margin-bottom: 22px; }
.stats--2 { grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; color: var(--teal-dark); }
.stat__label { display: block; margin-top: 8px; font-weight: 600; font-size: .93rem; line-height: 1.4; color: var(--ink); }
.stat--rule { padding-top: 20px; border-top: 1px solid var(--rule); }
.stats__title { margin: 0; font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat-flow { display: grid; grid-template-columns: auto auto auto; justify-content: start; column-gap: 28px; align-items: center; gap: 12px; }
.stat-flow__arrow { font-size: 1.4rem; color: var(--clay); }
.stats__note { margin: 0; font-size: .86rem; color: var(--muted); }
.featured-case { margin-top: 20px; display: grid; grid-template-columns: 200px minmax(0, 1fr); background: var(--navy); color: var(--on-dark); border-radius: var(--radius); overflow: hidden; }
.featured-case__mark { display: grid; place-items: center; background: var(--teal); color: #fff; }
.featured-case__mark svg { width: 84px; height: 84px; }
.featured-case__body { padding: clamp(28px, 4vw, 40px); }
.featured-case .case__kicker { color: var(--sage); }
.featured-case h4 { color: #fff; font-size: 1.35rem; margin: 10px 0 12px; }
.featured-case p { margin: 0; max-width: 60rem; color: var(--on-dark); }
@media (max-width: 680px) {
  .featured-case { grid-template-columns: 1fr; }
  .featured-case__mark { padding: 26px 0; }
  .featured-case__mark svg { width: 60px; height: 60px; }
}

/* Privacy policy */
.legal h1 { margin-bottom: 8px; }
.legal__date { color: var(--muted); margin-bottom: 28px; }
.legal h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.legal li { margin-bottom: .45em; }
.legal__toc { background: var(--ivory); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0 8px; }
.legal__toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; font-size: .95rem; }
.legal__toc li { margin-bottom: .35em; break-inside: avoid; }
@media (max-width: 640px) { .legal__toc ol { columns: 1; } }

/* v3.4 additions */
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 20px; border-top: 1px solid var(--rule); }
.stats-row .stat__num { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { background: var(--ivory); color: var(--ink); font-size: .9rem; padding: 6px 12px; border-radius: 40px; }
.featured-case p + p { margin-top: .8em; }
.cases--stats .case > p + p { margin-top: -10px; }
@media (max-width: 560px) { .stats-row { grid-template-columns: 1fr 1fr; } }
/* five-phase approach */
@media (min-width: 961px) { .stages[style*="--stage-count:5"] .stage { padding-right: 22px; } .stages[style*="--stage-count:5"] .stage h3 { font-size: 1.2rem; } }
@media (max-width: 1100px) and (min-width: 601px) { .stages[style*="--stage-count:5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; } }

/* Hero: wider frame so all three people show */
@media (min-width: 901px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.hero__frame { aspect-ratio: 16 / 10.5; }
.hero__frame img { height: 112%; object-position: 46% 45%; }
@media (max-width: 900px) { .hero__frame { aspect-ratio: 16 / 10; } .hero__frame img { height: 100%; } }

/* Contact image */
.contact__media { margin: clamp(28px, 4vw, 44px) 0 0; position: relative; }
.contact__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px 36px 2px 2px; display: block; }
.contact__media::after { content: ""; position: absolute; left: -16px; bottom: 32px; width: 48px; height: 3px; background: var(--clay); }
