/* ==========================================================================
   EAGL Management Ltd. — design system
   Motif: the arrow through the ring. Every divider, marker and step in this
   site is a variation on the logo: a straight line that carries through.
   ========================================================================== */

:root {
  /* Ink + brand. --brand is a deepened take on the existing EAGL slate blue
     (#698DAF), which is kept as --brand-light for tints and dark backgrounds. */
  --ink:         #0E1F2F;
  --ink-2:       #17324A;
  --brand:       #416C93;
  --brand-light: #698DAF;
  --brand-pale:  #E6EDF4;
  /* --accent carries text and buttons, so it is tuned to clear WCAG AA (4.5:1)
     on both white and paper. --accent-bright is decorative only: the logo
     arrow, rules and icon strokes, where the 3:1 graphics threshold applies. */
  --accent:        #8B4A21;
  --accent-bright: #A85C2E;
  --accent-soft:   #F3E3D7;

  --paper:  #F7F5F2;
  --white:  #FFFFFF;
  --text:   #1E2A35;
  --muted:  #5A6B7A;
  --line:   #E1E6EB;
  --line-2: #CFD8E1;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --container: 1140px;
  --gutter: 24px;
  --radius: 4px;

  --shadow-sm: 0 1px 2px rgba(14, 31, 47, .06);
  --shadow-md: 0 12px 32px -12px rgba(14, 31, 47, .18);
  --shadow-lg: 0 30px 60px -25px rgba(14, 31, 47, .32);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.012em;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.4vw, 3.85rem); line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

strong { font-weight: 600; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px;
  font-size: .9rem; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ------------------------------------------------------------ structure -- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }

.section { padding: clamp(64px, 9vw, 108px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--paper { background: var(--paper); }
.section--pale  { background: var(--brand-pale); }
.section--ink   { background: var(--ink); color: #D6E0EA; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink a { color: #A9C6E0; }
.section--ink a:hover { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; margin-bottom: 0; }
.section--ink .section-head p { color: #9FB3C6; }

/* Eyebrow label with the arrow motif carried in from the logo. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: currentColor; flex: none;
}
.section--ink .eyebrow { color: #CE8E5C; }
.section-head--center .eyebrow::before { display: none; }

.lede { font-size: clamp(1.075rem, 1.7vw, 1.22rem); color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600; letter-spacing: .005em;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #874819; color: #fff; }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: #fff; }

.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

.btn--ghost-light { border-color: rgba(255,255,255,.34); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Text link that grows an arrow, echoing the mark. */
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem;
  text-decoration: none; color: var(--brand);
}
.arrow-link svg { transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ---------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}

.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand:hover { color: inherit; }
.brand svg { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .93rem; font-weight: 500; color: var(--text);
  text-decoration: none; padding: 9px 14px; border-radius: var(--radius);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* `.nav a` outranks `.btn--*`, so the header button needs its colours
   restated at nav specificity or it renders dark-on-dark. */
.header-cta { margin-left: 8px; padding: 12px 22px; font-size: .9rem; }
.nav a.btn--ink { color: #fff; background: var(--ink); }
.nav a.btn--ink:hover { color: #fff; background: var(--ink-2); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid var(--line-2);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 100%; background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: #C9D6E2;
  padding: clamp(72px, 11vw, 132px) 0 clamp(64px, 9vw, 104px);
}
/* Faint concentric rings, lifted straight from the logo. */
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  right: -180px; top: 50%; transform: translateY(-50%);
  width: 720px; height: 720px; border-radius: 50%;
  border: 1px solid rgba(105,141,175,.22);
  box-shadow: inset 0 0 0 34px transparent, inset 0 0 0 35px rgba(105,141,175,.16);
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  left: 0; right: 0; top: 50%;
  height: 1px; background: linear-gradient(90deg,
    transparent, rgba(105,141,175,.22) 20%, rgba(105,141,175,.28) 78%, transparent);
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(40px, 6vw, 76px); align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 em {
  font-style: normal; color: #E7A97A;
  background: linear-gradient(rgba(194,112,61,.5), rgba(194,112,61,.5))
              bottom left / 100% .085em no-repeat;
  padding-bottom: .06em;
}
.hero-lede { font-size: clamp(1.075rem, 1.8vw, 1.2rem); color: #A9BCCE; max-width: 54ch; }
.hero .eyebrow { color: #CE8E5C; }
.hero .btn-row { margin-top: 34px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 40px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: #8FA5B9;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { flex: none; color: var(--brand-light); }

/* The portrait is a transparent cut-out, so it sits straight on the ink
   background with a soft halo instead of sitting inside a box. */
.hero-portrait { position: relative; margin: 0; }
.hero-portrait::before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: 108%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,123,167,.30) 0%, rgba(74,123,167,0) 68%);
}
.hero-portrait picture, .about-portrait picture { display: block; }
.hero-portrait img {
  position: relative; z-index: 1;
  width: 100%; margin-inline: auto;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, .38));
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
}
.hero-portrait figcaption {
  position: absolute; z-index: 2; left: -14px; bottom: 26px;
  background: var(--white); color: var(--ink);
  padding: 15px 20px; border-left: 3px solid var(--accent-bright);
  box-shadow: var(--shadow-md);
  font-size: .82rem; line-height: 1.45; max-width: 250px;
}
.hero-portrait figcaption strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.hero-portrait figcaption span { color: var(--muted); }

/* ------------------------------------------------------- interior hero -- */

.page-hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #A9BCCE;
  padding: clamp(56px, 8vw, 92px) 0 clamp(48px, 7vw, 76px);
}
.page-hero::before {
  content: ""; position: absolute; pointer-events: none;
  right: -260px; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid rgba(105,141,175,.2);
  box-shadow: inset 0 0 0 29px transparent, inset 0 0 0 30px rgba(105,141,175,.14);
}
.page-hero::after {
  content: ""; position: absolute; pointer-events: none;
  left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(105,141,175,.24) 30%, transparent);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: #A9BCCE; max-width: 60ch; font-size: clamp(1.03rem, 1.6vw, 1.15rem); }
.page-hero .eyebrow { color: #CE8E5C; }

.breadcrumbs { font-size: .84rem; color: #7F93A6; margin-bottom: 20px; }
.breadcrumbs a { color: #9FB3C6; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs span { margin: 0 8px; opacity: .5; }

/* ------------------------------------------------------ about portrait -- */

.about-portrait {
  position: relative; margin: 0;
  background: linear-gradient(170deg, var(--brand-pale) 0%, #DCE6F0 100%);
  border-radius: var(--radius);
  padding: 32px 24px 0;
  overflow: hidden;
}
.about-portrait::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(transparent, rgba(14,31,47,.06));
}
.about-portrait img { position: relative; width: 100%; max-width: 380px; margin-inline: auto; }
.about-portrait figcaption {
  position: relative;
  background: var(--white); margin: 0 -24px;
  padding: 20px 26px; border-top: 3px solid var(--accent-bright);
  font-size: .9rem; color: var(--muted); line-height: 1.5;
}
.about-portrait figcaption strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 3px; }

/* --------------------------------------------------------------- phases -- */

.phase {
  display: grid; grid-template-columns: 62px 1fr; gap: 26px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase-num {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--brand); line-height: 1;
}
.phase h3 { margin-bottom: 10px; }
.phase p { color: var(--muted); }
.phase ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------- deliverables list -- */

.deliverables { list-style: none; padding: 0; margin: 0; }
.deliverables li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.deliverables li:first-child { border-top: 1px solid var(--line); }
.deliverables svg { flex: none; margin-top: 4px; color: var(--accent); }

.section--ink .deliverables li { border-color: rgba(255,255,255,.12); }
.section--ink .deliverables li:first-child { border-top-color: rgba(255,255,255,.12); }

/* ------------------------------------------------------------------ grid -- */

.grid { display: grid; gap: 28px; }
/* Grid and flex items default to min-width:auto, so one wide child (a <select>
   with long option text, a long URL) can push a track past the viewport. */
.grid > *, .form-grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ----------------------------------------------------------------- cards -- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .97rem; }

.card-icon {
  width: 46px; height: 46px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--brand-pale); border-radius: 50%;
  color: var(--brand);
}
.section--paper .card-icon { background: var(--white); }

.card-outcome {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--ink); font-weight: 600;
  display: flex; align-items: flex-start; gap: 9px;
}
.card-outcome svg { flex: none; color: var(--accent); margin-top: 3px; }

/* The problem/solution contrast pair. */
.contrast {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.contrast > div { padding: 38px 34px; }
.contrast .is-before { background: var(--paper); }
.contrast .is-after { background: var(--ink); color: #C9D6E2; }
.contrast .is-after h3 { color: #fff; }
.contrast h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.contrast ul { list-style: none; padding: 0; margin: 18px 0 0; }
.contrast li {
  position: relative; padding-left: 26px; margin-bottom: 13px;
  font-size: .95rem; line-height: 1.55;
}
.contrast li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 14px; height: 1.5px; background: var(--line-2);
}
.contrast .is-after li { color: #B4C6D6; }
.contrast .is-after li::before { background: var(--accent-bright); }

/* --------------------------------------------------------------- process -- */
/* Plan. Track. Refine. Achieve. — Mark's own line, drawn as one through-line. */

.process { position: relative; }
.process-track {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px; position: relative;
}
.process-track::before {
  content: ""; position: absolute; z-index: 0;
  top: 21px; left: 6%; right: 6%; height: 1px;
  background: repeating-linear-gradient(90deg,
    var(--line-2) 0 7px, transparent 7px 14px);
}
.process-step { position: relative; z-index: 1; }
.process-num {
  width: 44px; height: 44px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 50%;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
}
.section--paper .process-num { background: var(--paper); }
.process-step:last-child .process-num {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ------------------------------------------------------------------ audiences */

.audience {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.audience:last-child { border-bottom: 1px solid var(--line); }
.audience-mark {
  flex: none; width: 40px; height: 40px; margin-top: 2px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; color: var(--brand);
}
.audience h3 { font-size: 1.1rem; margin-bottom: 6px; }
.audience p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ----------------------------------------------------------------- stats -- */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.stat { border-left: 2px solid var(--accent-bright); padding-left: 20px; }
.stat-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.7rem); line-height: 1; color: var(--ink);
  margin-bottom: 8px; display: block;
}
.section--ink .stat-num { color: #fff; }
.stat-label { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.section--ink .stat-label { color: #9FB3C6; }

/* ------------------------------------------------------------ proof bar -- */
/* Named-client proof sits directly under the hero, not two thirds down. */

.proof-bar { background: var(--white); border-bottom: 1px solid var(--line); padding: 26px 0; }
.proof-bar-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 16px;
}
.proof-bar-items {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 18px 38px;
}
.proof-bar-items img {
  height: 44px; width: auto; max-width: 170px; object-fit: contain;
  filter: grayscale(.55); opacity: .9;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.proof-bar-items img:hover { filter: none; opacity: 1; }
.proof-bar-items span {
  font-size: .88rem; color: var(--muted);
  padding-left: 38px; border-left: 1px solid var(--line);
}
.proof-bar-items .arrow-link { margin-left: auto; }

@media (max-width: 720px) {
  .proof-bar-items { gap: 16px 24px; }
  .proof-bar-items span { padding-left: 0; border-left: 0; width: 100%; }
  .proof-bar-items .arrow-link { margin-left: 0; }
}

/* Featured single testimonial, used where one quote has to carry the page. */
.quote-feature {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px; align-items: start;
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--accent-bright);
  border-radius: var(--radius); padding: 40px 44px; margin: 0;
}
.quote-feature img { max-width: 180px; height: auto; }
.quote-feature blockquote {
  margin: 0 0 20px; font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.32rem); line-height: 1.5; color: var(--ink);
}
.quote-feature figcaption { font-size: .92rem; color: var(--muted); }
.quote-feature figcaption strong { display: block; color: var(--ink); font-size: 1rem; }

@media (max-width: 780px) {
  .quote-feature { grid-template-columns: 1fr; gap: 24px; padding: 32px 26px; }
}

/* ---------------------------------------------------------- testimonials -- */

.quote {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px;
  display: flex; flex-direction: column;
}
.quote-logo {
  height: 46px; width: auto; max-width: 170px; object-fit: contain;
  object-position: left center; margin-bottom: 22px;
}
.quote blockquote {
  margin: 0 0 22px; font-family: var(--font-display);
  font-size: 1.02rem; line-height: 1.55; color: var(--ink);
}
.quote figcaption { margin-top: auto; font-size: .88rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-size: .95rem; }

/* Placeholder state: obviously unfilled, but still legible. The dashed border
   and the italic do the signalling, so the text can stay readable. */
.quote--placeholder { border-style: dashed; border-color: var(--line-2); background: transparent; }
.quote--placeholder blockquote { color: var(--muted); font-style: italic; }
.quote--placeholder figcaption { color: var(--muted); font-style: italic; }
.quote--placeholder figcaption strong { color: var(--muted); }

.placeholder-note {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 720px; margin: 34px auto 0;
  padding: 16px 20px; border-radius: var(--radius);
  background: var(--accent-soft); color: #7A4520;
  font-size: .88rem; line-height: 1.5;
}
.placeholder-note svg { flex: none; margin-top: 3px; }
.placeholder-note strong { color: #6B3C1B; }

/* ------------------------------------------------------- health check -- */

.hc-progress {
  position: sticky; top: 76px; z-index: 40;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 14px 0; margin-bottom: 8px;
}
.hc-progress-inner { display: flex; align-items: center; gap: 16px; }
.hc-progress-bar { flex: 1; height: 5px; background: var(--line); border-radius: 100px; overflow: hidden; }
.hc-progress-fill {
  height: 100%; width: 0%; background: var(--accent-bright);
  border-radius: 100px; transition: width .35s var(--ease);
}
.hc-progress-count { font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }

.hc-group { margin-bottom: 44px; }
.hc-group-title {
  font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}

.hc-q { padding: 22px 0; border-bottom: 1px solid var(--line); }
.hc-q:last-child { border-bottom: 0; }
.hc-q-text {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--ink); margin: 0 0 16px; line-height: 1.4;
}
.hc-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hc-opts label {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; padding: 11px 20px; cursor: pointer;
  font-size: .92rem; font-weight: 500; color: var(--text);
  background: var(--white); border: 1px solid var(--line-2);
  border-radius: 100px;
  transition: border-color .18s var(--ease), background .18s var(--ease),
              color .18s var(--ease);
}
.hc-opts label:hover { border-color: var(--brand); }
.hc-opts input:checked + label {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.hc-opts input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }

.hc-actions { margin-top: 8px; }
.hc-hint { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* Results */
.hc-result { display: none; }
.hc-result.is-shown { display: block; }
.hc-score-card {
  background: var(--ink); color: #C9D6E2; border-radius: var(--radius);
  padding: clamp(32px, 5vw, 48px); margin-bottom: 34px;
  display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 40px; align-items: center;
}
.hc-score-dial { position: relative; display: grid; place-items: center; }
.hc-score-dial svg { transform: rotate(-90deg); width: 150px; height: 150px; }
.hc-score-dial .hc-score-num {
  position: absolute; text-align: center;
  font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: 2.4rem; line-height: 1;
}
.hc-score-dial .hc-score-num small {
  display: block; font-family: var(--font-body); font-size: .72rem;
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: #8FA5B9; margin-top: 6px;
}
.hc-score-card h2 { color: #fff; margin-bottom: 12px; font-size: clamp(1.5rem,3vw,2rem); }
.hc-score-card p { color: #A9BCCE; margin-bottom: 0; }

.hc-breakdown { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); margin-bottom: 34px; }
.hc-dim {
  background: var(--white); padding: 18px 22px;
  display: grid; grid-template-columns: minmax(0,1fr) 120px 62px; gap: 18px; align-items: center;
}
.hc-dim-name { font-weight: 600; color: var(--ink); font-size: .96rem; }
.hc-dim-track { height: 6px; background: var(--line); border-radius: 100px; overflow: hidden; }
.hc-dim-fill { height: 100%; border-radius: 100px; background: var(--brand); }
.hc-dim-fill.is-weak { background: var(--accent-bright); }
.hc-dim-val { font-size: .86rem; color: var(--muted); text-align: right; white-space: nowrap; }

.hc-next { border-left: 3px solid var(--accent-bright); padding-left: 24px; margin-bottom: 34px; }
.hc-next h3 { margin-bottom: 12px; }
.hc-next ul { margin: 0; padding-left: 1.15em; color: var(--muted); }
.hc-next li { margin-bottom: 9px; }

@media (max-width: 720px) {
  .hc-score-card { grid-template-columns: 1fr; gap: 26px; text-align: center; justify-items: center; }
  .hc-dim { grid-template-columns: 1fr; gap: 8px; }
  .hc-dim-val { text-align: left; }
  .hc-opts label { flex: 1; min-width: 0; }
  .hc-progress { top: 0; }
}

/* --------------------------------------------------------- sticky cta -- */
/* Mobile only: the call to action should never be more than a thumb away. */

.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: flex; position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px -12px rgba(14,31,47,.28);
  }
  .sticky-cta .btn { flex: 1; padding: 13px 16px; font-size: .9rem; width: auto; }
  .sticky-cta .btn--ghost { flex: 0 0 auto; }
  body { padding-bottom: 76px; }
}

/* ------------------------------------------------------------------- faq -- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 24px 44px 24px 0; position: relative;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 31px;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--brand); border-bottom: 1.5px solid var(--brand);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 36px; }
.faq .faq-body { padding: 0 0 26px; color: var(--muted); max-width: 76ch; }

/* ------------------------------------------------------------------- cta -- */

.cta-band {
  background: var(--ink); color: #C9D6E2;
  padding: clamp(56px, 8vw, 88px) 0; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent-bright) 100%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #A9BCCE; max-width: 58ch; }
/* Inline links here sit on ink, so they cannot use the default link blue. */
.cta-band p a { color: #A9C6E0; }
.cta-band p a:hover { color: #fff; }

/* ------------------------------------------------------------------ form -- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; width: 100%; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .97rem; color: var(--text);
  padding: 13px 15px; background: var(--white);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(74,123,167,.14);
}
.form-hint { font-size: .82rem; color: var(--muted); margin-top: 14px; }

.contact-cards { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.contact-card { background: var(--white); padding: 24px 26px; }
.contact-card .label {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.contact-card a, .contact-card p {
  font-size: 1.02rem; color: var(--ink); text-decoration: none;
  font-weight: 500; margin: 0;
}
.contact-card a:hover { color: var(--brand); text-decoration: underline; }

/* --------------------------------------------------------------- article -- */

.article-head { padding: clamp(48px, 7vw, 76px) 0 0; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: .85rem; color: var(--muted); margin-bottom: 22px;
}
.prose { font-size: 1.07rem; line-height: 1.75; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.5rem, 2.6vw, 1.85rem); }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { margin-bottom: 1.4em; }
.prose li { margin-bottom: .6em; }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-size: 1.2rem;
  line-height: 1.5; color: var(--ink);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }

.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 30px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  align-items: start; text-decoration: none;
}
.post-item:hover h3 { color: var(--brand); }
.post-item .post-date { font-size: .85rem; color: var(--muted); padding-top: 4px; }
.post-item h3 { font-size: 1.28rem; margin-bottom: 8px; transition: color .18s var(--ease); }
.post-item p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------------------------------------------------------------- footer -- */

.site-footer { background: var(--ink); color: #8FA5B9; padding: clamp(56px, 7vw, 76px) 0 0; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 44px; padding-bottom: 52px;
}
.site-footer h4 {
  color: #fff; font-family: var(--font-body); font-size: .74rem;
  font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: #8FA5B9; text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand svg { height: 50px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: .93rem; max-width: 34ch; color: #8FA5B9; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0 30px;
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; font-size: .84rem;
}

/* ------------------------------------------------------------- utilities -- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Reveal on scroll. Scoped to .js so that if the script fails, is blocked, or
   simply has not run yet, every section is visible rather than blank. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 400px; }
  .hero-portrait figcaption { left: auto; right: -8px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .grid--4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 26px; }
  .process-track::before { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 22px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: transparent; }
  .header-cta { margin: 16px 0 0; justify-content: center; }
  .site-header { position: relative; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .grid--2, .grid--3, .grid--4, .stats { grid-template-columns: 1fr; }
  .contrast { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr; gap: 30px; }
  .post-item { grid-template-columns: 1fr; gap: 8px; }
  .post-item .post-date { padding-top: 0; }
  .hero-portrait figcaption { position: static; max-width: none; margin-top: 16px; box-shadow: none; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
}

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

@media print {
  .site-header, .cta-band, .nav-toggle { display: none; }
  body { font-size: 12pt; color: #000; }
}

/* Retainer entry price -------------------------------------------------- */
.price-note {
  margin-top: 26px; padding: 22px 26px;
  background: var(--accent-soft); border-radius: var(--radius);
}
.price-note__figure {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  color: #6E3A19; margin-bottom: 6px; line-height: 1.2;
}
.price-note__figure strong { font-weight: 600; }
.price-note__figure span {
  font-family: var(--font-body); font-size: .95rem; font-weight: 500;
  letter-spacing: .01em; opacity: .8;
}
.price-note__body { font-size: .95rem; color: #7A4520; margin-bottom: 0; }
