/* ============================================================
   Miracle Minds | Corporate Overview
   Consulting-portal theme (navy/blue brand, abstract graphics)
   ============================================================ */

:root {
  --navy:      #0a1f44;
  --navy-2:    #102a52;
  --navy-3:    #16356b;
  --blue:      #1a5fd0;
  --blue-dark: #134aa3;
  --blue-soft: #eaf1fc;
  --azure:     #2f6fe0;
  --sky:       #7fb0ff;
  --ink:       #14213d;
  --body:      #41506b;
  --muted:     #6b7894;
  --line:      #e2e8f2;
  --line-2:    #cfd8e8;
  --bg:        #ffffff;
  --bg-soft:   #f5f8fc;
  --maxw:      1240px;
  --nav-h:     66px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Lora", Georgia, serif; font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Overflow / mobile safeguards ---------- */
html { overflow-x: hidden; }
img, svg, video, table { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
h1, h2, h3, .hero__title, .pagehead__title { overflow-wrap: break-word; }
/* grid/flex children must be allowed to shrink below content size */
.contactpage__grid > *, .cform__row > *, .growth > *, .pdetail__inner > *,
.cards-3 > *, .cards-4 > *, .delivery > *, .cases > *, .tile__body { min-width: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Shared layout ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 100px 32px; }
.section--alt { background: var(--bg-soft); max-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { max-width: 820px; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin: 16px 0 20px; }
.section__lede { color: var(--body); font-size: 1.08rem; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--row h2 { margin-bottom: 0; }

.label {
  display: inline-block; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); font-weight: 700; padding-bottom: 10px; position: relative;
}
.label::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--blue); border-radius: 2px; }
.accent { color: var(--sky); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.92rem; font-weight: 600; padding: 13px 26px; border-radius: 6px;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn--solid { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(26,95,208,0.22); }
.btn--solid:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blue-soft); transform: translateY(-1px); }
.btn--outline-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }

.arrow::after { content: "\2192"; font-size: 1.05em; transition: transform 0.25s var(--ease); }
.arrow:hover::after { transform: translateX(4px); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 600; font-size: 0.92rem;
}
.textlink:hover { color: var(--blue-dark); }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy); color: #c7d6f0; font-size: 0.8rem; }
.utility__inner { max-width: var(--maxw); margin: 0 auto; padding: 8px 32px; display: flex; align-items: center; justify-content: space-between; }
.utility__region { display: inline-flex; align-items: center; gap: 7px; color: #9db4dd; }
.utility__links { display: flex; gap: 22px; }
.utility__links a { color: #c7d6f0; font-weight: 500; transition: color 0.2s var(--ease); }
.utility__links a:hover { color: #fff; }

/* ---------- Main nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 90; background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.nav.is-stuck { box-shadow: 0 2px 16px rgba(10,31,68,0.08); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.nav__brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.nav__logo { border-radius: 7px; }
.nav__mark { font-weight: 800; font-size: 0.92rem; letter-spacing: 0.16em; color: var(--navy); }

.nav__menu { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 22px 14px; font-size: 0.92rem; font-weight: 500; color: var(--ink);
  border-bottom: 3px solid transparent; transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-link:hover { color: var(--blue); }
.nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link { border-bottom-color: var(--blue); color: var(--blue); }
.caret { transition: transform 0.25s var(--ease); }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }

/* Mega panel */
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  width: 560px; max-width: 90vw; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 24px 60px rgba(10,31,68,0.16);
  padding: 24px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease); z-index: 95;
}
.nav-item--mega:hover .mega, .nav-item--mega:focus-within .mega, .nav-item--mega.is-tap-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega__title { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega__link { display: block; padding: 12px 14px; border-radius: 8px; transition: background 0.2s var(--ease); }
.mega__link:hover { background: var(--bg-soft); }
.mega__kicker { display: block; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.mega__link strong { display: block; font-size: 0.95rem; color: var(--ink); margin: 3px 0; font-weight: 600; }
.mega__link small { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }

.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__search-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--line); background: #fff; border-radius: 6px; color: var(--ink); cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__search-btn:hover { border-color: var(--blue); color: var(--blue); }
.nav__cta { padding: 10px 20px; }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 40px; padding: 9px; background: none; border: 1px solid var(--line);
  border-radius: 6px; cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Search overlay ---------- */
.search { position: fixed; inset: 0; z-index: 150; background: rgba(10,31,68,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 90px 24px; }
.search[hidden] { display: none; }
.search__panel { width: 100%; max-width: 640px; background: #fff; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.3); overflow: hidden; }
.search__field { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search__field input { flex: 1; border: none; outline: none; font-size: 1.1rem; font-family: inherit; color: var(--ink); background: none; }
.search__close { border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); font-size: 0.72rem; font-weight: 600; padding: 5px 10px; border-radius: 5px; cursor: pointer; }
.search__results { list-style: none; max-height: 50vh; overflow-y: auto; }
.search__results li a { display: flex; flex-direction: column; padding: 14px 22px; border-bottom: 1px solid var(--line); transition: background 0.15s var(--ease); }
.search__results li a:hover, .search__results li a.is-active { background: var(--blue-soft); }
.search__results strong { color: var(--ink); font-weight: 600; }
.search__results small { color: var(--muted); font-size: 0.85rem; }
.search__empty { padding: 22px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  padding: 120px 32px 110px;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: linear-gradient(120deg, #000, transparent 72%); -webkit-mask-image: linear-gradient(120deg, #000, transparent 72%);
}
.hero__viz { position: absolute; top: 0; right: 0; height: 100%; width: 60%; opacity: 0.9; }
.hero__inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.hero__eyebrow { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.hero__title { font-size: clamp(2.8rem, 7vw, 5.2rem); margin: 18px 0 24px; color: #fff; max-width: 14ch; }
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.32rem); color: #c4d2ec; max-width: 600px; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 40px; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font-size: 0.8rem; font-weight: 500; color: #d6e2f6; padding: 8px 16px; border: 1px solid rgba(255,255,255,0.22); border-radius: 4px; background: rgba(255,255,255,0.05); }

/* ---------- Stats band ---------- */
.stats { background: var(--navy); color: #fff; }
.stats__inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; border-left: 3px solid var(--blue); }
.stat__num { font-family: "Lora", serif; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; line-height: 1; }
.stat__label { font-size: 0.88rem; color: #aebfde; }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card, .diff {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 34px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover, .diff:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,31,68,0.08); border-color: var(--line-2); }
.card__num { font-family: "Lora", serif; font-weight: 700; font-size: 1.05rem; color: var(--blue); }
.card h3, .diff h3 { font-size: 1.35rem; margin: 14px 0 12px; }
.card p, .diff p { color: var(--body); font-size: 0.98rem; }
.diff__proof { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink); }
.diff__proof span { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; font-weight: 700; }

/* ---------- Image-led tiles (practices + industries) ---------- */
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tile:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(10,31,68,0.12); }
.tile__viz { position: relative; height: 132px; display: flex; align-items: flex-end; padding: 16px; }
.tile__num { font-family: "Lora", serif; font-weight: 700; font-size: 1.1rem; color: #fff; background: rgba(10,31,68,0.45); border: 1px solid rgba(255,255,255,0.3); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.tile__abbr { font-family: "Lora", serif; font-weight: 700; font-size: 1.3rem; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.25); }
.tile__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.tile__kicker { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.tile__body h3 { font-size: 1.25rem; margin: 8px 0 10px; line-height: 1.25; }
.tile__body p { color: var(--body); font-size: 0.92rem; flex: 1; }
.tile__body .textlink { margin-top: 16px; }
.tile--ind .tile__body h3 { font-size: 1.12rem; }

/* ---------- Generated illustration backgrounds ---------- */
.viz--grid, .viz--grid2, .viz--nodes, .viz--dots,
.viz--arc, .viz--stack, .viz--wave, .viz--bars {
  background-color: var(--navy);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.viz--grid  { background-image: url("img/viz-grid.svg"); }
.viz--grid2 { background-image: url("img/viz-grid2.svg"); }
.viz--nodes { background-image: url("img/viz-nodes.svg"); }
.viz--dots  { background-image: url("img/viz-dots.svg"); }
.viz--arc   { background-image: url("img/viz-arc.svg"); }
.viz--stack { background-image: url("img/viz-stack.svg"); }
.viz--wave  { background-image: url("img/viz-wave.svg"); }
.viz--bars  { background-image: url("img/viz-bars.svg"); }

/* ---------- Capabilities matrix ---------- */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.matrix { width: 100%; border-collapse: collapse; min-width: 880px; }
.matrix th, .matrix td { padding: 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.matrix thead th { background: var(--navy); color: #fff; }
.matrix__corner { font-family: "Inter", sans-serif; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #aebfde; font-weight: 600; }
.matrix__abbr { display: block; font-family: "Lora", serif; font-weight: 700; font-size: 1.05rem; color: #fff; }
.matrix thead small { display: block; font-size: 0.66rem; color: #aebfde; margin-top: 4px; font-weight: 400; }
.matrix__practice { display: block; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.matrix tbody small { display: block; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-top: 4px; font-weight: 600; }
.matrix tbody th { background: var(--bg-soft); }
.matrix td { color: var(--body); font-size: 0.88rem; line-height: 1.5; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: none; }
.matrix th:last-child, .matrix td:last-child { border-right: none; }
.matrix tbody tr:hover td { background: var(--blue-soft); }

/* ---------- Methodology timeline ---------- */
.timeline__rail { display: flex; justify-content: space-between; margin-bottom: 30px; }
.timeline__end { font-family: "Lora", serif; font-weight: 600; font-size: 1.2rem; color: var(--navy); }
.timeline__end small { display: block; font-family: "Inter", sans-serif; font-size: 0.78rem; color: var(--muted); margin-top: 2px; font-weight: 400; }
.timeline__end--right { text-align: right; color: var(--blue); }
.timeline__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.timeline__steps::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--blue)); border-radius: 2px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 22px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,31,68,0.08); }
.step__num { font-family: "Lora", serif; font-weight: 700; font-size: 1.05rem; color: var(--blue); }
.step h3 { font-size: 1.3rem; margin: 10px 0 12px; }
.step p { color: var(--body); font-size: 0.9rem; }
.step__out { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink); }
.step__out span { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 5px; font-weight: 700; }

/* ---------- Case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.case:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(10,31,68,0.1); }
.case__viz { height: 150px; }
.case__body { padding: 32px 32px 34px; }
.case__practice { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.case h3 { font-size: 1.4rem; margin: 12px 0 6px; }
.case__meta { font-size: 0.82rem; color: var(--muted); }
.case__chal { color: var(--body); font-size: 0.95rem; margin: 18px 0 20px; }
.case__chal strong { color: var(--ink); }
.case__out { list-style: none; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.case__out li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--ink); }
.case__out li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }

/* ---------- Delivery model ---------- */
.delivery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 32px 30px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.tier:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,31,68,0.08); }
.tier__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.tier__label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.tier__pct { font-family: "Lora", serif; font-weight: 700; font-size: 1.7rem; color: var(--navy); }
.tier__pct small { display: block; font-family: "Inter", sans-serif; font-size: 0.7rem; color: var(--muted); font-weight: 400; }
.tier h3 { font-size: 1.25rem; margin-bottom: 12px; }
.tier p { color: var(--body); font-size: 0.92rem; }
.tier__mix { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink); }
.tier__mix span { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 5px; font-weight: 700; }

/* ---------- Banner ---------- */
.banner { margin-top: 28px; padding: 24px 30px; border-radius: 10px; background: var(--blue-soft); border: 1px solid #d4e2f8; border-left: 4px solid var(--blue); font-size: 1.02rem; color: var(--body); }
.banner strong { color: var(--navy); }

/* ---------- Insights ---------- */
.insight { border-radius: 12px; }
.insight__link { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); height: 100%; }
.insight__link:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(10,31,68,0.12); }
.insight__viz { height: 150px; }
.insight__body { padding: 24px 26px 28px; }
.insight__tag { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.insight__body h3 { font-size: 1.2rem; margin: 10px 0 16px; line-height: 1.3; }

/* ---------- Growth chart ---------- */
.growth { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px 28px 22px; display: flex; flex-direction: column; }
.chart__plot { display: flex; gap: 14px; }
.chart__yaxis { height: var(--plot, 300px); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; flex: none; font-size: 0.7rem; font-weight: 600; color: var(--muted); line-height: 1; transform: translateY(-0.35em); }
.chart__main { flex: 1; min-width: 0; }
.chart__cols { height: var(--plot, 300px); display: flex; align-items: flex-end; gap: 16px; padding: 0 6px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background-image: repeating-linear-gradient(to top, var(--line) 0, var(--line) 1px, transparent 1px, transparent calc(100% / 6)); }
.chart__col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar-stack { display: flex; flex-direction: column-reverse; align-items: center; width: 100%; max-width: 78px; gap: 0; }
.bar { width: 100%; height: calc(var(--h) * var(--plot, 300px)); min-height: 24px; border-radius: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.22); }
.bar-stack .bar:first-child { border-radius: 4px 4px 0 0; }
.bar--organic { background: var(--blue); }
.bar--organic-2 { background: #5d8fe0; }
.bar--inorganic { background: var(--navy); }
.bar__val { font-size: 0.72rem; font-weight: 700; color: #fff; }
.chart__xlabels { display: flex; gap: 16px; padding: 12px 6px 0; }
.chart__xlabels span { flex: 1; text-align: center; font-size: 0.82rem; color: var(--body); font-weight: 600; }
.chart__legend { display: flex; justify-content: center; gap: 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.chart__legend span { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--body); }
.dot { width: 11px; height: 11px; border-radius: 2px; }
.dot--organic { background: var(--blue); }
.dot--inorganic { background: var(--navy); }
.growth__notes { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.gnote { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: 22px 26px; transition: box-shadow 0.3s var(--ease); }
.gnote:hover { box-shadow: 0 12px 30px rgba(10,31,68,0.07); }
.gnote__year { display: block; font-family: "Lora", serif; font-weight: 700; font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.gnote p { color: var(--body); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; text-align: center; padding: 110px 32px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; }
.contact__viz { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }
.contact__inner { position: relative; max-width: 820px; margin: 0 auto; }
.contact__eyebrow { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.contact__title { font-size: clamp(2rem, 5vw, 3.4rem); margin: 14px 0 18px; color: #fff; }
.contact__lede { color: #c4d2ec; font-size: 1.18rem; margin-bottom: 34px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c7d6f0; }
.footer__main { max-width: var(--maxw); margin: 0 auto; padding: 64px 32px 48px; display: grid; grid-template-columns: 1.2fr 3fr; gap: 48px; }
.footer__brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.footer__brand span { font-weight: 800; font-size: 0.92rem; letter-spacing: 0.16em; }
.footer__tag { font-family: "Lora", serif; font-style: italic; color: #9db4dd; margin: 16px 0 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; color: #c7d6f0; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.footer__social a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer__col h4 { font-family: "Inter", sans-serif; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 16px; }
.footer__col a { display: block; color: #aebfde; font-size: 0.9rem; padding: 6px 0; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bar { border-top: 1px solid rgba(255,255,255,0.12); }
.footer__bar-inner { max-width: var(--maxw); margin: 0 auto; padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: #8aa0c8; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { color: #8aa0c8; transition: color 0.2s var(--ease); }
.footer__legal a:hover { color: #fff; }
.footer__url { font-weight: 600; color: var(--sky) !important; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Focus styles ---------- */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.hero a:focus-visible, .contact a:focus-visible, .utility a:focus-visible, .footer a:focus-visible, .stats *:focus-visible { outline-color: #fff; }

/* ---------- Bold Accenture-style hero ---------- */
.hero__title--xl {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-size: clamp(3rem, 9vw, 7rem);
  text-transform: none;
  max-width: 16ch;
}
.hero__title--xl .accent { font-family: "Inter", sans-serif; font-weight: 900; }
.btn--outline-dark { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--outline-dark:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Page header (subpages) ---------- */
.pagehead {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  padding: 88px 32px 76px;
}
.pagehead--sm { padding: 72px 32px 60px; }
.pagehead__inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: #9db4dd; margin-bottom: 22px; }
.crumbs a { color: #c4d2ec; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { color: #5d76a8; }
.pagehead__title { font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(2.2rem, 5.5vw, 4rem); color: #fff; margin: 12px 0 18px; line-height: 1.04; }
.pagehead__lede { color: #c4d2ec; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 660px; line-height: 1.6; }

/* ---------- Practice / industry detail ---------- */
.pdetail--alt { background: var(--bg-soft); max-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdetail--alt > .pdetail__inner { max-width: var(--maxw); margin: 0 auto; }
.pdetail__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.pdetail__inner--rev .pdetail__media { order: 2; }
.pdetail__media {
  position: relative; border-radius: 14px; min-height: 320px;
  display: flex; align-items: flex-end; padding: 22px;
}
.pdetail__num { font-family: "Lora", serif; font-weight: 700; font-size: 1.4rem; color: #fff; background: rgba(10,31,68,0.45); border: 1px solid rgba(255,255,255,0.3); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.pdetail__abbr { font-family: "Lora", serif; font-weight: 700; font-size: 2rem; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.3); }
.pdetail__content h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 14px 0 16px; }
.pdetail__content > p { color: var(--body); font-size: 1.05rem; max-width: 60ch; }
.pdetail__sub { font-family: "Inter", sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 30px 0 16px; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offer { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 8px; padding: 16px 18px; }
.pdetail--alt .offer { background: #fff; }
.offer__v { display: block; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 6px; }
.offer p { font-size: 0.92rem; color: var(--ink); }

/* ---------- Contact page ---------- */
.contactpage__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contactpage__aside h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 16px; }
.contactpage__aside p { color: var(--body); }
.contactpage__list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contactpage__list li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contactpage__k { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.contactpage__list a { color: var(--ink); font-weight: 600; }
.contactpage__list a:hover { color: var(--blue); }

.contactpage__formwrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: 0 16px 44px rgba(10,31,68,0.06); }
.cform { display: flex; flex-direction: column; gap: 18px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform__field { display: flex; flex-direction: column; gap: 7px; }
.cform__field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.cform__field label span { color: var(--blue); }
.cform input, .cform select, .cform textarea {
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); width: 100%;
}
.cform textarea { resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,95,208,0.15); }
.cform input.is-invalid, .cform textarea.is-invalid, .cform select.is-invalid { border-color: #d23b3b; box-shadow: 0 0 0 3px rgba(210,59,59,0.12); }
.cform__error { color: #c5302f; font-size: 0.8rem; min-height: 0; }
.cform__error:empty { display: none; }
.cform__check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--body); }
.cform__check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.cform__check span span { color: var(--blue); }
.cform__submit { align-self: flex-start; margin-top: 6px; }
.cform__note { font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.cform__success { text-align: center; padding: 20px 10px; }
.cform__success-icon { width: 66px; height: 66px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.cform__success h2 { font-size: 1.5rem; margin-bottom: 12px; }
.cform__success p { color: var(--body); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .utility { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 28px rgba(10,31,68,0.1);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease); margin-left: 0;
  }
  .nav.is-open .nav__menu { max-height: 80vh; overflow-y: auto; opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav-link { padding: 14px 32px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
  .nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link { border-bottom-color: var(--line); border-left-color: var(--blue); }
  .caret { display: none; }
  .mega { position: static; transform: none; width: auto; max-width: none; box-shadow: none; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 32px 18px; opacity: 1; visibility: visible; pointer-events: auto; background: var(--bg-soft); }
  .mega__grid { grid-template-columns: 1fr; }
  .mega__link small { display: none; }
  .stats__inner { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .timeline__steps { grid-template-columns: 1fr 1fr; }
  .timeline__steps::before { display: none; }
  .cases { grid-template-columns: 1fr; }
  .delivery { grid-template-columns: 1fr; }
  .growth { grid-template-columns: 1fr; }
  .footer__main { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .pdetail__inner { grid-template-columns: 1fr; gap: 32px; }
  .pdetail__inner--rev .pdetail__media { order: 0; }
  .pdetail__media { min-height: 200px; }
  .contactpage__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 20px; }
  .hero { padding: 88px 20px 72px; }
  .hero__viz { width: 100%; opacity: 0.42; }
  .hero__title--xl { font-size: clamp(2.3rem, 9.2vw, 3.4rem); }
  .hero__lede { font-size: 1.05rem; }
  .pagehead__title { font-size: clamp(2rem, 8vw, 3rem); }
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr; }
  .timeline__steps { grid-template-columns: 1fr; }
  .nav__inner { padding: 0 18px; gap: 12px; }
  .section__head--row { align-items: flex-start; }
  .footer__cols { grid-template-columns: 1fr; }
  .pagehead { padding: 64px 20px 52px; }
  .offers, .offers--4 { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
  .contactpage__formwrap { padding: 24px; }
  /* full-width primary actions read better on phones */
  .hero__actions .btn, .contact .btn--lg { width: 100%; }
}
/* Very small phones: keep big type and the brand lockup from overflowing */
@media (max-width: 380px) {
  .hero__title--xl { font-size: 2.25rem; letter-spacing: -0.02em; }
  .pagehead__title { font-size: 1.85rem; }
  .nav__mark { font-size: 0.82rem; letter-spacing: 0.1em; }
  .nav__inner { gap: 10px; }
  .stat__num { font-size: 1.7rem; }
  .section, .hero { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   SVG motion (home hero + contact rings)
   All animation gated behind prefers-reduced-motion: no-preference
   ============================================================ */
@keyframes hv-breathe { 0%, 100% { transform: scale(0.97); } 50% { transform: scale(1.045); } }
@keyframes hv-glow    { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.95; } }
@keyframes hv-node    { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.45); opacity: 1; } }
@keyframes hv-flow    { to { stroke-dashoffset: -130; } }
@keyframes hv-ping    { 0% { transform: scale(0.5); opacity: 0.85; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes hv-drift   { to { background-position: 72px 72px; } }
@keyframes hv-contact { 0%, 100% { transform: scale(0.9); opacity: 0.45; } 50% { transform: scale(1.07); opacity: 0.85; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__viz .hv-glow { transform-box: fill-box; transform-origin: 72% 30%; animation: hv-glow 7s ease-in-out infinite; }

  .hero__viz .hv-rings circle { transform-box: fill-box; transform-origin: center; animation: hv-breathe 6.5s ease-in-out infinite; }
  .hero__viz .hv-rings circle:nth-child(2) { animation-delay: 0.55s; }
  .hero__viz .hv-rings circle:nth-child(3) { animation-delay: 1.1s; }
  .hero__viz .hv-rings circle:nth-child(4) { animation-delay: 1.65s; }

  .hero__viz .hv-ping { transform-box: fill-box; transform-origin: center; animation: hv-ping 3.6s cubic-bezier(0.22,1,0.36,1) infinite; }

  .hero__viz .hv-lines line { stroke-dasharray: 4 9; animation: hv-flow 2.8s linear infinite; }
  .hero__viz .hv-lines line:nth-child(2) { animation-duration: 3.4s; }
  .hero__viz .hv-lines line:nth-child(3) { animation-duration: 2.4s; }
  .hero__viz .hv-lines line:nth-child(4) { animation-duration: 3.1s; }

  .hero__viz .hv-nodes circle { transform-box: fill-box; transform-origin: center; animation: hv-node 3.2s ease-in-out infinite; }
  .hero__viz .hv-nodes circle:nth-child(2) { animation-delay: 0.5s; }
  .hero__viz .hv-nodes circle:nth-child(3) { animation-delay: 1s; }
  .hero__viz .hv-nodes circle:nth-child(4) { animation-delay: 1.5s; }

  .hero--home .hero__grid { animation: hv-drift 9s linear infinite; }

  .contact__viz circle { transform-box: fill-box; transform-origin: center; animation: hv-contact 5s ease-in-out infinite; }
  .contact__viz circle:nth-child(2) { animation-delay: 0.7s; }
  .contact__viz circle:nth-child(3) { animation-delay: 1.4s; }
}
