/* =========================================================
   Ana Vazquez — base styles (Brand Identity Guide v1.0, Oct 2026)
   Colors: Electric Blue, Ink Navy, Warm White + 3 accents
           (60% base · 30% blue · 10% accents, one accent per layout)
   Fonts:  Poppins (display) + Inter (body) — Google Fonts, SIL OFL, free to use
   ========================================================= */

:root {
  /* brand palette */
  --blue: #1F51FF;        /* primary · signature */
  --navy: #0B1530;        /* primary · base dark */
  --warm: #FAF7F2;        /* primary · base light */
  --pink: #FF3D7F;        /* accent · the problem */
  --sun:  #FFC531;        /* accent · highlight */
  --mint: #2BB673;        /* accent · results */

  --blue-dark: #1640d6;
  --blue-tint: rgba(31, 81, 255, 0.08);
  --pink-tint: rgba(255, 61, 127, 0.09);
  --mint-tint: rgba(43, 182, 115, 0.11);
  --sun-tint:  rgba(255, 197, 49, 0.18);

  --white: #ffffff;
  --text: var(--navy);
  --muted: #5b6275;
  --line: #ebe6dc;
  --line-strong: #d9d3c6;

  --font-head: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  --sidebar-width: 260px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 21, 48, 0.04), 0 6px 20px rgba(11, 21, 48, 0.05);

  /* legacy aliases so older inline styles keep working */
  --indigo: var(--blue);
  --indigo-dark: var(--blue-dark);
  --indigo-tint: var(--blue-tint);
  --black: var(--navy);
  --gray-900: var(--navy);
  --gray-700: #3d4458;
  --gray-500: var(--muted);
  --gray-300: var(--line-strong);
  --gray-200: var(--line);
  --gray-100: var(--warm);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--warm);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .btn, .eyebrow, .tag, .pill, .nav-section-label { font-family: var(--font-head); }

a { color: inherit; }
img { max-width: 100%; display: block; }

.page-wrap { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 2.25rem;
  padding-left: 0.5rem;
  color: var(--navy);
}
.brand-iso { width: 40px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand-desc {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.43rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 0.3rem;
  white-space: nowrap;
}

.nav-section-label {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  font-weight: 600;
  color: var(--muted);
  margin: 1.5rem 0 0.5rem 0.75rem;
}

.nav-list { list-style: none; margin: 0; padding: 0; }

.nav-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #3d4458;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-list a svg { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; }
.nav-list a:hover { background: var(--warm); color: var(--navy); }
.nav-list a.active { background: var(--blue-tint); color: var(--blue); font-weight: 600; }

.sidebar-cta { margin-top: 1.75rem; padding: 0 0.25rem; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

.nav-toggle { display: none; }

/* ---------- Main content ---------- */

.content {
  flex: 1;
  min-width: 0;
  padding: 3.5rem 4rem 5rem;
  max-width: 980px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 0.6rem;
}

h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.12;
}
h1 .hl, h2 .hl { color: var(--blue); }

h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 1rem; line-height: 1.25; }
h3 { font-weight: 600; }

.lead {
  font-size: 1.08rem;
  color: #3d4458;
  line-height: 1.65;
  max-width: 640px;
}

.page-intro {
  font-size: 1rem;
  color: #3d4458;
  line-height: 1.65;
  max-width: 660px;
  margin-bottom: 2.5rem;
}

.section { margin-top: 4rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }

.link-arrow { color: var(--blue); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Placeholder text — easy to spot, delete the class once real copy is in */
.ph {
  background: var(--sun-tint);
  outline: 1px dashed #e0a800;
  outline-offset: 1px;
  border-radius: 3px;
  padding: 0 0.2em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.7rem 1.25rem;
  border-radius: 100px;
  border: 2px solid var(--blue);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-dark { background: var(--navy); border-color: var(--navy); }
.btn-dark:hover { background: #1b2647; border-color: #1b2647; }
.btn-ghost { background: transparent; color: var(--navy) !important; border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white) !important; border-color: var(--navy); }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- Pills & tags ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  background: var(--blue);
  color: var(--white);
  white-space: nowrap;
}
.pill.mint { background: var(--mint); color: var(--navy); }
.pill.pink { background: var(--pink); color: var(--white); }
.pill.sun  { background: var(--sun);  color: var(--navy); }
.pill.navy { background: var(--navy); color: var(--white); }
.pill.outline { background: var(--white); color: var(--blue); border: 1px solid var(--line-strong); }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  margin: 0.75rem 0.35rem 0 0;
}

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

.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: 2.9rem; }
.hero-media {
  position: relative;
  background: var(--navy);
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img.iso-badge { position: absolute; top: 14px; right: 14px; width: 54px; height: auto; }
.hero-media .pill { position: absolute; left: 14px; bottom: 16px; }

.proof-strip {
  margin-top: 3rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.proof-strip .num { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: #6f93ff; }
.proof-strip .num.mint { color: var(--mint); }
.proof-strip .lbl { font-size: 0.78rem; color: #c9cee0; margin-top: 0.3rem; line-height: 1.35; }

/* ---------- Cards / grids ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.card-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card { text-decoration: none; display: block; color: inherit; }
a.card:hover { border-color: var(--blue); transform: translateY(-2px); }

.card-icon {
  width: 40px; height: 40px;
  border-radius: 100px;
  background: var(--warm);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.card-icon svg { width: 20px; height: 20px; stroke: currentColor; }

.card h3 { font-size: 1.02rem; font-weight: 600; margin: 0 0 0.4rem; }
.card p { font-size: 0.88rem; color: #3d4458; line-height: 1.6; margin: 0; }

/* ---------- The Five: how I'm different ---------- */

.five { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.five-item.feature { grid-column: span 2; }
.five-item {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.five-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.five-item h3 { font-size: 1.05rem; margin: 0 0 0.45rem; }
.five-item p { font-size: 0.88rem; color: #3d4458; line-height: 1.6; margin: 0; }
.five-item .vs {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.8rem;
  color: var(--muted);
}
.five-item .vs strong { color: var(--pink); font-weight: 600; }
.five-item.feature { background: var(--navy); color: var(--white); border-color: var(--navy); }
.five-item.feature .five-num { color: var(--sun); }
.five-item.feature p, .five-item.feature .vs { color: #c9cee0; }
.five-item.feature .vs { border-top-color: #2a3555; }

/* ---------- Things I've built: case studies ---------- */

.case-index { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.case-index a { text-decoration: none; }

.case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 2.5rem;
  scroll-margin-top: 1.5rem;
}
.case-top { padding: 2rem 2rem 1.5rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1rem; }
.case-meta .who { font-size: 0.8rem; color: var(--muted); }
.case h2 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.case-oneliner { font-size: 1rem; color: #3d4458; line-height: 1.6; margin: 0 0 1.25rem; max-width: 700px; }

.case-media { display: grid; grid-template-columns: 2fr 1fr; gap: 0.75rem; padding: 0 2rem; }
.case-media .stack { display: grid; gap: 0.75rem; }
.case-media figure { margin: 0; }
.case-media figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 0.35rem; }

.image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-tint), var(--warm));
  border: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0;
  text-transform: uppercase;
}
.case-media .stack .image-placeholder { aspect-ratio: auto; height: 100%; min-height: 110px; }
.case-media img { width: 100%; border-radius: 12px; object-fit: cover; }

.case-body { padding: 1.75rem 2rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
.case-block h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.45rem;
  display: flex; align-items: center; gap: 0.45rem;
}
.case-block h3::before { content: ""; width: 9px; height: 9px; border-radius: 100px; background: var(--blue); }
.case-block.problem h3 { color: var(--pink); }
.case-block.problem h3::before { background: var(--pink); }
.case-block.insight h3 { color: #b68300; }
.case-block.insight h3::before { background: var(--sun); }
.case-block.did h3 { color: var(--blue); }
.case-block.diff h3 { color: var(--navy); }
.case-block.diff h3::before { background: var(--navy); }
.case-block p, .case-block li { font-size: 0.9rem; line-height: 1.6; color: #3d4458; }
.case-block p { margin: 0; }
.case-block ul { margin: 0; padding-left: 1.1rem; }
.case-block li { margin-bottom: 0.3rem; }
.case-block.full { grid-column: 1 / -1; }

/* "They said / We said" contrast card from the brand kit */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.contrast > div { border-radius: 12px; padding: 1rem 1.15rem; }
.contrast .before { background: var(--warm); border: 1px solid var(--line); }
.contrast .after { background: var(--navy); color: var(--white); }
.contrast .lbl { font-family: var(--font-head); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem; color: var(--muted); }
.contrast .after .lbl { color: var(--sun); }
.contrast .msg { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; line-height: 1.35; }

.case-results {
  background: var(--warm);
  border-top: 1px solid var(--line);
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.result .num { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--mint); }
.result .lbl { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; line-height: 1.4; }
.result .src { font-size: 0.7rem; color: var(--muted); margin-top: 0.2rem; }

.case-next {
  background: var(--navy);
  color: var(--white);
  padding: 1.1rem 2rem;
  font-size: 0.9rem;
  line-height: 1.55;
}
.case-next strong { font-family: var(--font-head); color: var(--sun); margin-right: 0.35rem; }

/* ---------- Mile One method ---------- */

.method-hero {
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
}
.method-hero h2 { font-size: 2rem; margin-bottom: 0.6rem; }
.method-hero h2 .hl { color: #6f93ff; }
.method-hero p { color: #c9cee0; line-height: 1.65; max-width: 620px; margin: 0; }
.method-hero .eyebrow { color: var(--sun); }

.route { position: relative; margin-top: 2.5rem; padding-left: 2.75rem; }
.route::before {
  content: "";
  position: absolute;
  left: 15px; top: 8px; bottom: 8px;
  border-left: 3px dashed var(--line-strong);
}
.mile { position: relative; margin-bottom: 1.5rem; }
.mile-marker {
  position: absolute;
  left: -2.75rem; top: 0.25rem;
  width: 33px; height: 33px;
  border-radius: 100px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px var(--warm);
}
.mile.start .mile-marker { background: var(--sun); color: var(--navy); }
.mile.finish .mile-marker { background: var(--mint); color: var(--navy); }
.mile-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}
.mile-when { font-family: var(--font-head); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.mile-card h3 { font-size: 1.15rem; margin: 0.25rem 0 0.5rem; }
.mile-card p { font-size: 0.9rem; line-height: 1.6; color: #3d4458; margin: 0 0 0.75rem; }
.mile-card ul { margin: 0; padding-left: 1.1rem; }
.mile-card li { font-size: 0.86rem; line-height: 1.55; color: #3d4458; margin-bottom: 0.25rem; }
.mile-card .signal { margin-top: 0.85rem; font-size: 0.82rem; color: var(--muted); }
.mile-card .signal strong { color: var(--navy); }

.method-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 1.25rem; }
.method-mini a {
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  transition: border-color 0.15s ease;
}
.method-mini a:hover { border-color: var(--blue); }
.method-mini .when { font-family: var(--font-head); font-size: 0.68rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; }
.method-mini .what { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; margin-top: 0.2rem; line-height: 1.3; }

/* ---------- Misc ---------- */

.avatar-placeholder {
  width: 44px; height: 44px;
  border-radius: 100px;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.about-photo {
  width: 156px; height: 156px;
  margin-top: 1.5rem;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.quote-card p.quote { font-size: 0.95rem; line-height: 1.65; color: var(--navy); margin: 0 0 1.25rem; }
.quote-person { display: flex; align-items: center; gap: 0.75rem; }
.quote-person .name { font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; }
.quote-person .role { font-size: 0.8rem; color: var(--muted); }

.row-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.row-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.row-item:hover .row-title { color: var(--blue); }
.row-title { font-weight: 600; font-size: 0.95rem; transition: color 0.15s ease; }
.row-meta { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }

.cta-band {
  margin-top: 4rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.cta-band p { margin: 0; font-size: 0.95rem; color: #dfe3ef; }
.cta-band strong { font-family: var(--font-head); color: var(--sun); margin-right: 0.35rem; }
.cta-band a { color: var(--white); }

.footnote {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Mobile ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; max-width: 520px; }
  .proof-strip { grid-template-columns: repeat(3, 1fr); }
  .method-mini { grid-template-columns: repeat(2, 1fr); }
  .five { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .page-wrap { flex-direction: column; }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--line);
    z-index: 10;
  }
  .sidebar > div { width: 100%; }

  .brand { margin-bottom: 0; padding-left: 0; }

  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
  }
  .nav-toggle svg { width: 18px; height: 18px; stroke: var(--navy); }

  .sidebar-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  }
  .sidebar-nav.open { display: block; }

  .content { padding: 2.25rem 1rem 4rem; }
  h1, .hero h1 { font-size: 2rem; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .five { grid-template-columns: 1fr; }
  .five-item.feature { grid-column: auto; }

  .case-top, .case-body, .case-results { padding-left: 1.25rem; padding-right: 1.25rem; }
  .case-media { padding: 0 1.25rem; grid-template-columns: 1fr; }
  .case-media .stack { grid-template-columns: 1fr 1fr; }
  .case-body { grid-template-columns: 1fr; }
  .case-next { padding: 1rem 1.25rem; }
  .contrast { grid-template-columns: 1fr; }
  .row-item { flex-direction: column; gap: 0.25rem; }
  .row-meta { white-space: normal; }
}

/* =========================================================
   DESIGN POLISH LAYER (design-improvements)
   Type scale, rhythm, interaction states, motion, focus, mobile.
   Kept in one block so it is easy to review or roll back.
   ========================================================= */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.2s;
  --shadow-hover: 0 2px 4px rgba(11, 21, 48, 0.05), 0 14px 32px rgba(11, 21, 48, 0.09);
  --ring: 0 0 0 3px var(--warm), 0 0 0 5px var(--blue);
  --section-gap: clamp(4rem, 7vw, 6rem);
}

html { touch-action: manipulation; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; text-rendering: optimizeLegibility; }
::selection { background: var(--sun); color: var(--navy); }

/* ---------- Typography ---------- */

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.025em; line-height: 1.08; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.05rem); letter-spacing: -0.02em; line-height: 1.18; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.16em; margin-bottom: 0.75rem; }
.lead { font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem); line-height: 1.7; }
.page-intro { line-height: 1.7; }
.num, .five-num, .mile-marker, .proof-strip .num, .result .num { font-variant-numeric: tabular-nums; }

/* ---------- Layout & rhythm: centred column, equal edges ---------- */

.content { margin-inline: auto; padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 4rem) 5rem; max-width: 1060px; width: 100%; }
.section { margin-top: var(--section-gap); }
.section-head { margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: 0; }
.five, .card-grid { gap: 1.25rem; }

/* ---------- Sidebar ---------- */

.sidebar { box-shadow: 1px 0 0 var(--line); border-right: 0; }
.nav-list a { position: relative; min-height: 40px; transition: background var(--dur) ease, color var(--dur) ease, transform var(--dur) var(--ease-out); }
.nav-list a:hover { transform: translateX(2px); }
.nav-list a.active::before {
  content: ""; position: absolute; left: -1.25rem; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--blue);
}
.brand-iso { transition: transform 0.35s var(--ease-out); }
.brand:hover .brand-iso { transform: rotate(-6deg) scale(1.05); }

/* ---------- Buttons: step on hover, press on click ---------- */

.btn {
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  letter-spacing: 0.005em;
  box-shadow: 0 1px 0 rgba(11, 21, 48, 0.06);
  transition: background var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease,
              transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(31, 81, 255, 0.22); }
.btn-dark:hover { box-shadow: 0 8px 18px rgba(11, 21, 48, 0.22); }
.btn-ghost:hover { box-shadow: 0 8px 18px rgba(11, 21, 48, 0.14); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; transition-duration: 0.08s; }

/* ---------- Links: underline draws in ---------- */

.link-arrow {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.3s var(--ease-out);
}
.link-arrow:hover { text-decoration: none; background-size: 100% 2px; }

/* ---------- Cards: one family, lift 2px ---------- */

.card, .five-item, .quote-card, .mile-card, .case, .method-mini a {
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, border-color var(--dur) ease;
}
a.card:hover, .method-mini a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--blue); }
a.card:active, .method-mini a:active { transform: translateY(-1px); }
.five-item:hover, .mile-card:hover, .quote-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card-icon { transition: background var(--dur) ease, color var(--dur) ease, transform 0.3s var(--ease-out); }
.card:hover .card-icon { background: var(--blue); color: var(--white); transform: scale(1.06); }
a.card .image-placeholder, .case-media .image-placeholder, .case-media img { transition: transform 0.4s var(--ease-out); }
a.card:hover .image-placeholder { transform: scale(1.02); }

.five-num { font-size: 2.5rem; letter-spacing: -0.03em; }
.five-item.feature { background: radial-gradient(120% 140% at 100% 0%, #1b2a5c 0%, var(--navy) 55%); }

/* proof strip: dividers + calmer label colour */
.proof-strip { padding: 1.6rem 1.25rem; gap: 0; }
.proof-strip > div { padding: 0 1rem; border-left: 1px solid #22305a; }
.proof-strip > div:first-child { border-left: 0; }
.proof-strip .num { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem); }

/* hero media */
.hero { gap: clamp(1.5rem, 4vw, 3.5rem); }
.hero-media { box-shadow: 0 30px 60px -20px rgba(11, 21, 48, 0.45); }
.hero-media img.iso-badge { animation: click-pop 3.2s var(--ease-out) 1.2s infinite; transform-origin: 70% 30%; }
@keyframes click-pop { 0%, 70%, 100% { transform: scale(1); } 76% { transform: scale(0.9); } 84% { transform: scale(1.06); } }

/* pills */
.case-index { gap: 0.5rem; }
.case-index a { border-radius: 100px; }
.case-index .pill { min-height: 36px; transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out); }
.case-index a:hover .pill { background: var(--blue); color: var(--white); border-color: var(--blue); transform: translateY(-1px); }

/* rows */
.row-item { transition: padding var(--dur) var(--ease-out); }
a.row-item:hover { padding-left: 0.4rem; }
.row-title { line-height: 1.4; }

/* ---------- Case studies ---------- */

.case { border-radius: 20px; }
.case:hover { box-shadow: var(--shadow-hover); }
.case-top { padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem) 1.5rem; }
.case-media { padding: 0 clamp(1.25rem, 3vw, 2.25rem); }
.case-body { padding: 2rem clamp(1.25rem, 3vw, 2.25rem) 2.25rem; gap: 1.6rem 2.5rem; }
.case-block h3 { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.45rem; }
.case-results { padding: 1.6rem clamp(1.25rem, 3vw, 2.25rem); }
.case-next { padding: 1.15rem clamp(1.25rem, 3vw, 2.25rem); }
.result .num { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.02em; }
.case h2 { scroll-margin-top: 1.5rem; }

/* ---------- Method ---------- */

.method-hero { background: radial-gradient(90% 120% at 100% 0%, #1b2a5c 0%, var(--navy) 60%); padding: clamp(1.75rem, 4vw, 2.75rem); }
.method-hero h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.mile-marker { transition: transform 0.3s var(--ease-out); }
.mile:hover .mile-marker { transform: scale(1.12); }
.route::before { border-left-style: dotted; border-left-width: 3px; }

/* CTA band */
.cta-band { background: radial-gradient(80% 160% at 100% 0%, #1b2a5c 0%, var(--navy) 60%); padding: 1.6rem 1.9rem; }

/* ---------- Focus (keyboard only) ---------- */

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.btn:focus-visible, .case-index a:focus-visible { border-radius: 100px; }
.method-hero :focus-visible, .cta-band :focus-visible, .case-next :focus-visible, .five-item.feature :focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--sun); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600;
  padding: 0.75rem 1.1rem; border-radius: 10px; text-decoration: none;
}
.skip-link:focus-visible { top: 1rem; }

/* ---------- Hero entrance (once, on load) ---------- */

@keyframes enter-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.content > :is(.eyebrow, h1, .page-intro, .method-hero, .case-index):not(.no-enter),
.hero > div > *, .hero-media {
  animation: enter-up 0.7s var(--ease-out) both;
}
.content > h1, .hero > div > h1 { animation-delay: 0.06s; }
.content > .page-intro, .hero > div > .lead { animation-delay: 0.12s; }
.hero > div > .btn-row, .content > .case-index { animation-delay: 0.18s; }
.hero-media { animation-delay: 0.22s; }

/* ---------- Mobile ---------- */

@media (max-width: 980px) {
  .five-item.feature { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .sidebar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line); padding: 0.7rem 1rem; }
  .nav-toggle { width: 44px; height: 44px; border-radius: 12px; cursor: pointer; transition: background var(--dur) ease; }
  .nav-toggle:active { background: var(--warm); }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }

  .sidebar-nav {
    display: block;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem 1rem 1.5rem;
    background: var(--white);
    box-shadow: 0 24px 40px -12px rgba(11, 21, 48, 0.25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }
  .sidebar-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.25s var(--ease-out), visibility 0s; }
  .nav-list a { min-height: 48px; font-size: 1rem; }
  .nav-list a:hover { transform: none; }
  .nav-list a.active::before { left: -1rem; }
  .sidebar-cta { margin-top: 1.25rem; }

  .content { padding-top: 2rem; }
  .hero-media { aspect-ratio: 4 / 3; max-width: none; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .cta-band { padding: 1.4rem 1.25rem; }
  .cta-band .btn { width: 100%; justify-content: center; }

  .proof-strip { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; padding: 1.4rem 0.5rem; }
  .proof-strip > div { border-left: 0; padding: 0 0.85rem; }
  .proof-strip > div:nth-child(even) { border-left: 1px solid #22305a; }
  .proof-strip > div:last-child { grid-column: 1 / -1; border-top: 1px solid #22305a; padding-top: 1.1rem; }

  .five-num { font-size: 2.1rem; }
  .case { border-radius: 16px; margin-top: 1.75rem; }
  .case-index { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0.25rem 1rem 0.5rem; scrollbar-width: none; }
  .case-index::-webkit-scrollbar { display: none; }
  .case-index .pill { min-height: 44px; padding-inline: 1rem; }
  .case-results { grid-template-columns: repeat(2, 1fr); }
  .case-media .stack .image-placeholder { min-height: 90px; }
  .case-body { gap: 1.4rem; }
  .route { padding-left: 2.4rem; }
  .mile-marker { left: -2.4rem; }
  .method-mini a { min-height: 64px; }
  .row-item { padding: 1rem 0; }
}

/* ---------- Reduced motion: everything rests, nothing stays hidden ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn:hover, a.card:hover, .five-item:hover, .mile-card:hover, .quote-card:hover, .method-mini a:hover { transform: none; }
}

/* keep "(or lose)" together; give the wide feature card a larger voice */
h1 .hl { white-space: nowrap; }
.five-item.feature { display: flex; flex-direction: column; }
.five-item.feature h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); }
.five-item.feature p { font-size: clamp(0.9rem, 0.86rem + 0.2vw, 1.02rem); max-width: 46ch; }
.five-item.feature .vs { margin-top: auto; padding-top: 0.9rem; }
.hero { grid-template-columns: 1.45fr 1fr; }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.3rem); }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .sidebar { overflow: visible; } }
.mile-card p, .mile-card ul, .case-block p, .case-block ul { max-width: 72ch; }
.card-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.card-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }

/* hero photo */
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

/* ---------- My 3 pillars: Venn ---------- */
.pillars-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: 1.5rem; }
.venn { margin: 0; }
.venn svg { width: 100%; height: auto; display: block; overflow: visible; }
.vc { mix-blend-mode: multiply; opacity: 0.9; transition: opacity 0.3s ease, transform 0.45s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.vc-1 { fill: var(--pink); }
.vc-2 { fill: var(--mint); }
.vc-3 { fill: var(--blue); }
.vl { font-family: var(--font-head); font-weight: 700; font-size: 17px; text-anchor: middle; fill: var(--navy); }
.vl-sub { font-family: var(--font-body); font-weight: 500; font-size: 11.5px; text-anchor: middle; fill: var(--navy); opacity: 0.8; }
.vl-3 { fill: #fff; }
.venn-overlaps text { font-family: var(--font-body); font-weight: 600; font-size: 9.75px; text-anchor: middle; fill: #fff; }
.venn-core circle { fill: var(--white); filter: drop-shadow(0 4px 10px rgba(11, 21, 48, 0.35)); }
.venn-core { transform-box: fill-box; transform-origin: center; animation: core-pulse 3.2s var(--ease-out) 1s infinite; }
@keyframes core-pulse { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(0.92); } 86% { transform: scale(1.06); } }
.venn-caption { text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-top: 0.75rem; }

.pillar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.pillar {
  display: grid; grid-template-columns: 14px 1fr; gap: 0.9rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.pillar-dot { width: 14px; height: 14px; border-radius: 100px; margin-top: 0.3rem; }
.p-1 .pillar-dot { background: var(--pink); } .p-1:hover { border-color: var(--pink); }
.p-2 .pillar-dot { background: var(--mint); } .p-2:hover { border-color: var(--mint); }
.p-3 .pillar-dot { background: var(--blue); } .p-3:hover { border-color: var(--blue); }
.pillar h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.pillar p { font-size: 0.88rem; line-height: 1.6; color: #3d4458; margin: 0; }
.pillar blockquote { margin: 0.65rem 0 0; padding-left: 0.75rem; border-left: 2px solid var(--line-strong); font-size: 0.82rem; font-style: italic; color: var(--navy); line-height: 1.5; }
.pillar cite { display: block; font-style: normal; font-size: 0.74rem; color: var(--muted); margin-top: 0.2rem; }

/* hovering a pillar card spotlights its circle */
.pillars-grid:has(.pillar:hover) .vc { opacity: 0.35; }
.pillars-grid:has(.p-1:hover) .vc-1,
.pillars-grid:has(.p-2:hover) .vc-2,
.pillars-grid:has(.p-3:hover) .vc-3 { opacity: 1; transform: scale(1.04); }

@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .venn { max-width: 440px; margin-inline: auto; width: 100%; }
}
