/* =========================================================
   PRAWAAH — Leadership & Career Excellence
   Global stylesheet
   ========================================================= */

:root {
  --navy:        #0E2A47;
  --navy-deep:   #0A2038;
  --ink:         #16324F;
  --blue:        #1B6CA8;
  --blue-mid:    #2E8BC0;
  --blue-light:  #5BAAD9;
  --sky:         #EAF4FB;
  --sky-soft:    #F4F9FD;
  --line:        #DCE7F1;
  --muted:       #5C6B7A;
  --muted-soft:  #8294A3;
  --white:       #FFFFFF;

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Poppins", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.12; margin: 0; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
em, .italic { font-style: italic; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Utility ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--light { color: var(--blue-light); }
.text-muted { color: var(--muted); }
.accent { color: var(--blue); }
.divider {
  width: 64px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  margin: 18px 0 0;
}
.center { text-align: center; }
.center .divider { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 14px 30px; border-radius: 50px; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  border: 1.5px solid transparent;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: linear-gradient(120deg, var(--blue), var(--blue-mid));
  color: #fff; box-shadow: 0 12px 30px -10px rgba(27,108,168,.6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(27,108,168,.7); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: rgba(255,255,255,.6); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -12px rgba(0,0,0,.35); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding: 22px 0;
}
.nav.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif); font-weight: 800; font-size: 1.42rem;
  letter-spacing: 0.18em; color: var(--navy);
}
.brand__tag {
  font-family: var(--sans); font-size: 0.54rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue);
  margin-top: 4px;
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-size: 0.9rem; font-weight: 500; color: var(--ink); position: relative;
  padding: 4px 0; transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); transition: width .3s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--blue); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__cta { margin-left: 6px; padding: 11px 24px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }

/* brand logo image (falls back to text wordmark if file missing) */
.brand__logo { height: 54px; width: auto; display: block; transition: height .35s; }
.nav.scrolled .brand__logo { height: 46px; }
.brand__fallback { flex-direction: column; line-height: 1; }
.is-hidden { display: none !important; }
.show-flex { display: flex !important; }
.show-ib { display: inline-block !important; }
@media (max-width: 400px) { .brand__logo { height: 44px; } }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* Nav sitting over a dark hero (inner pages): light text until scrolled */
.nav--over-dark:not(.scrolled) .brand__name { color: #fff; }
.nav--over-dark:not(.scrolled) .brand__tag { color: var(--blue-light); }
.nav--over-dark:not(.scrolled) .nav__link { color: #e7f0f8; }
.nav--over-dark:not(.scrolled) .nav__link:hover,
.nav--over-dark:not(.scrolled) .nav__link.active { color: #fff; }
.nav--over-dark:not(.scrolled) .nav__link:hover::after,
.nav--over-dark:not(.scrolled) .nav__link.active::after { background: #fff; }
.nav--over-dark:not(.scrolled) .nav__toggle span { background: #fff; }

/* mobile menu */
.nav__mobile {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
  background: var(--navy); transform: translateX(100%); transition: transform .45s var(--ease);
  z-index: 110; padding: 90px 34px; display: flex; flex-direction: column; gap: 8px;
}
.nav__mobile.open { transform: translateX(0); }
.nav__mobile a { color: #cfe0ee; font-size: 1.15rem; font-weight: 500; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav__mobile a:hover { color: #fff; padding-left: 8px; transition: .25s; }
.nav__backdrop { position: fixed; inset: 0; background: rgba(8,20,34,.5); opacity: 0; visibility: hidden; transition: .35s; z-index: 105; }
.nav__backdrop.open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; z-index: 0; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 42%, rgba(255,255,255,.18) 70%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding: 120px 0 80px; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.hero__lead { max-width: 540px; font-size: 1.08rem; color: var(--ink); margin-top: 26px; }
.hero__quote {
  margin-top: 30px; padding-left: 22px; border-left: 3px solid var(--blue);
  font-family: var(--serif); font-style: italic; font-size: 1.18rem; color: var(--navy); max-width: 520px;
}
.hero__quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-top: 12px; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 34px; }
.hero__pill { font-weight: 600; color: var(--blue); font-size: .95rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* page hero (inner pages) */
.phero { position: relative; padding: 170px 0 70px; overflow: hidden; background: var(--navy); }
.phero__canvas { position: absolute; inset: 0; z-index: 0; opacity: .9; }
.phero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,42,71,.55), rgba(14,42,71,.85)); }
.phero__inner { position: relative; z-index: 2; }
.phero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.phero .eyebrow { color: var(--blue-light); }
.phero__lead { color: #c8d8e6; max-width: 640px; margin-top: 20px; font-size: 1.05rem; }
.phero .divider { background: linear-gradient(90deg, var(--blue-light), #fff); }
.crumbs { font-size: .8rem; color: #9fb6c9; margin-bottom: 18px; letter-spacing: .04em; }
.crumbs a:hover { color: #fff; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section--sky { background: var(--sky-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 54px; }
.section__head.center { margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.lead { font-size: 1.06rem; color: var(--muted); margin-top: 18px; }
.section--navy .lead { color: #b9cadb; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 30px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(14,42,71,.28); border-color: #cfe0ef; }
.card--accent { border-left: 4px solid var(--blue); }
.card__num { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--blue); }
.card__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid)); color: #fff; margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card.on-navy { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.card.on-navy p { color: #b9cadb; }

/* stat / value trio */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background:#fff; }
.values .value { padding: 40px 26px; text-align: center; border-right: 1px solid var(--line); }
.values .value:last-child { border-right: 0; }
.value h3 { font-size: 1.9rem; color: var(--blue); }
.value span { display:block; font-size:.74rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); margin-top:8px; }

/* quote band */
.quoteband { padding: 84px 0; background: var(--navy); color:#fff; text-align:center; position:relative; overflow:hidden; }
.quoteband .q { font-family:var(--serif); font-style:italic; font-size: clamp(1.4rem,3.4vw,2.3rem); max-width: 880px; margin: 0 auto; line-height:1.4; }
.quoteband .q .hl { color: var(--blue-light); font-style:italic; }
.quoteband cite { display:block; margin-top:22px; font-family:var(--sans); font-style:normal; font-size:.76rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:#7fa8c9; }

/* feature list */
.flist { list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.flist li { display:flex; gap:14px; align-items:flex-start; color:var(--ink); }
.flist .dot { flex:0 0 auto; width:22px; height:22px; border-radius:50%; background:var(--sky); color:var(--blue); display:grid; place-items:center; margin-top:2px; }
.flist .dot svg { width:13px; height:13px; }
.section--navy .flist li { color:#cdddea; }
.section--navy .flist .dot { background: rgba(91,170,217,.18); color: var(--blue-light); }

/* chips */
.chips { display:flex; flex-wrap:wrap; gap:12px; }
.chip { display:inline-flex; align-items:center; gap:8px; font-size:.85rem; font-weight:500; padding:9px 18px; border-radius:50px; background:var(--sky); color:var(--blue); border:1px solid #d4e6f4; }
.chip.solid { background: linear-gradient(120deg,var(--blue),var(--blue-mid)); color:#fff; border:0; }

/* flow / arrow chain */
.flow { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; font-weight:600; color:var(--blue); }
.flow .arrow { color: var(--blue-light); }

/* journey timeline */
.journey { position:relative; max-width: 860px; margin: 0 auto; }
.journey::before { content:""; position:absolute; left:27px; top:14px; bottom:14px; width:2px; background:linear-gradient(var(--blue),var(--sky)); }
.step { display:flex; gap:26px; padding:22px 0; position:relative; }
.step__num {
  flex:0 0 auto; width:56px; height:56px; border-radius:50%; z-index:1;
  background: linear-gradient(135deg,var(--blue),var(--blue-mid)); color:#fff;
  display:grid; place-items:center; font-family:var(--serif); font-weight:700; font-size:1.3rem;
  box-shadow: 0 10px 24px -8px rgba(27,108,168,.6);
}
.step__body h3 { font-size:1.4rem; }
.step__body .tag { font-size:.74rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--blue-mid); font-style:italic; font-family:var(--serif); }
.step__body p { color:var(--muted); margin:6px 0 0; }

/* ---------- Engagement Loop (animated cycle) ---------- */
.loop-wrap { max-width: 640px; margin: 0 auto; }
.loop-svg { width: 100%; height: auto; overflow: visible; display: block; }
.loop-ring { fill: none; stroke: var(--line); stroke-width: 2; }
.loop-flow {
  fill: none; stroke: url(#loopGrad); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 5 15; animation: loopDash 1s linear infinite;
}
@keyframes loopDash { to { stroke-dashoffset: -40; } }

.node-dot { fill: url(#nodeGrad); }
.node-num { fill:#fff; font-family: var(--serif); font-weight:700; font-size:26px; text-anchor:middle; dominant-baseline:central; }
.node-label { fill: var(--navy); font-family: var(--sans); font-weight:600; font-size:19px; text-anchor:middle; }
.node-sub { fill: var(--muted); font-family: var(--sans); font-size:11.5px; font-weight:500; letter-spacing:.18em; text-anchor:middle; text-transform:uppercase; }
.node-halo {
  fill:none; stroke: var(--blue-light); stroke-width:2;
  transform-box: fill-box; transform-origin: center; opacity:0;
  animation: loopPing 10s ease-out infinite;
}
@keyframes loopPing {
  0% { transform: scale(1); opacity:0; }
  3% { opacity:.65; }
  16% { transform: scale(2.5); opacity:0; }
  100% { opacity:0; }
}
.loop-comet { fill: url(#cometGrad); filter: drop-shadow(0 0 6px rgba(46,139,192,.9)); }
.loop-comet-tail { fill:none; stroke: var(--blue-mid); stroke-width:5; stroke-linecap:round; stroke-dasharray: 26 1230; opacity:.55; animation: loopTail 10s linear infinite; }
@keyframes loopTail { to { stroke-dashoffset: -1256; } }
.loop-core { fill: var(--sky-soft); stroke: var(--line); stroke-width:1.5; }
.loop-core-eyebrow { fill: var(--blue); font-family: var(--sans); font-weight:600; font-size:11px; letter-spacing:.22em; text-anchor:middle; text-transform:uppercase; }
.loop-core-name { fill: var(--navy); font-family: var(--serif); font-weight:700; font-size:30px; text-anchor:middle; }
.loop-caption { font-family:var(--serif); font-style:italic; color:var(--muted); margin-top:26px; text-align:center; }
@media (prefers-reduced-motion: reduce) {
  .loop-flow, .loop-comet, .loop-comet-tail, .node-halo { animation: none; }
  .loop-comet, .loop-comet-tail, .node-halo { display:none; }
}
@media (max-width: 480px) {
  .node-label { font-size: 22px; }
  .node-sub { font-size: 13px; }
  .node-num { font-size: 30px; }
}

/* table */
.tablewrap { border:1px solid var(--line); border-radius:16px; overflow:hidden; }
table.matrix { width:100%; border-collapse:collapse; font-size:.96rem; }
table.matrix th { background: linear-gradient(120deg,var(--blue),var(--blue-mid)); color:#fff; text-align:left; padding:16px 22px; font-weight:600; }
table.matrix td { padding:16px 22px; border-top:1px solid var(--line); color:var(--muted); }
table.matrix td:first-child { font-weight:600; color:var(--blue); }
table.matrix tr:nth-child(even) td { background: var(--sky-soft); }

/* CTA band */
.ctaband { position:relative; overflow:hidden; background: linear-gradient(120deg,var(--navy),#13395d); color:#fff; border-radius:26px; padding: 64px; }
.ctaband__canvas { position:absolute; inset:0; z-index:0; opacity:.5; }
.ctaband__inner { position:relative; z-index:1; }
.ctaband h2 { color:#fff; font-size: clamp(1.8rem,4vw,2.8rem); max-width: 640px; }
.ctaband p { color:#bcd0e2; margin-top:16px; max-width:520px; }

/* contact */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background:#fff; border:1px solid var(--line); border-left:4px solid var(--blue); border-radius:16px; padding:26px 28px; }
.contact-card .label { font-size:.72rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--blue); }
.contact-card .big { font-size:1.25rem; font-weight:600; color:var(--navy); margin-top:8px; }
.contact-card .sub { color:var(--muted); font-size:.92rem; }
.field { margin-bottom:18px; }
.field label { display:block; font-size:.82rem; font-weight:500; color:var(--ink); margin-bottom:7px; }
.field input, .field textarea, .field select {
  width:100%; padding:13px 16px; border:1px solid var(--line); border-radius:12px;
  font-family:var(--sans); font-size:.95rem; color:var(--ink); background:#fff; transition:border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 4px rgba(46,139,192,.12); }
.field textarea { resize:vertical; min-height:130px; }

/* ---------- Legal / long-form content ---------- */
.legal h2 { font-size: 1.4rem; margin: 38px 0 10px; }
.legal h2:first-of-type { margin-top: 10px; }
.legal p { color: var(--muted); margin: 0 0 14px; }
.legal a { color: var(--blue); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--ink); }

/* ---------- Founder ---------- */
.founder { display:grid; grid-template-columns: 340px 1fr; gap:48px; align-items:start; }
.founder__card {
  background:#fff; border:1px solid var(--line); border-radius:20px; padding:34px 30px; text-align:center;
  position:sticky; top:110px; box-shadow:0 20px 50px -30px rgba(14,42,71,.3);
}
.founder__avatar {
  width:120px; height:120px; margin:0 auto 18px; border-radius:50%;
  background:linear-gradient(135deg, var(--blue), var(--blue-mid)); color:#fff;
  display:grid; place-items:center; font-family:var(--serif); font-weight:700; font-size:2.6rem; letter-spacing:.04em;
  box-shadow:0 14px 30px -10px rgba(27,108,168,.6);
}
.founder__name { font-size:1.45rem; }
.founder__role { color:var(--blue); font-weight:600; font-size:.92rem; margin:4px 0 18px; }
.founder__tags { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.founder__tags .chip { font-size:.78rem; padding:7px 13px; }
.founder__bio p { color:var(--muted); margin:0 0 16px; }
.founder__mission {
  font-family:var(--serif); font-style:italic; font-size:1.2rem; color:var(--navy) !important;
  border-left:3px solid var(--blue); padding-left:20px; margin-top:6px !important;
}
@media (max-width: 820px) {
  .founder { grid-template-columns: 1fr; gap:30px; }
  .founder__card { position:static; max-width:420px; margin:0 auto; }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color:#aebfd0; padding: 70px 0 30px; position:relative; overflow:hidden; }
.footer__grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap:40px; position:relative; z-index:1; }
.footer .brand__name { color:#fff; }
.footer p { color:#92a7ba; font-size:.92rem; }
.footer h4 { font-family:var(--sans); font-size:.78rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:#fff; margin-bottom:16px; }
.footer ul { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.footer ul a { color:#9fb4c7; font-size:.92rem; transition:color .25s, padding-left .25s; }
.footer ul a:hover { color:#fff; padding-left:5px; }
.footer__bottom { margin-top:50px; padding-top:24px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.82rem; color:#7d93a7; position:relative; z-index:1; }
.footer__bottom a { color:#9fb4c7; }
.footer__bottom a:hover { color:#fff; }

/* ---------- Social icons ---------- */
.social { display:flex; gap:12px; margin-top:22px; }
.social a {
  width:40px; height:40px; border-radius:50%; display:grid; place-items:center;
  background:rgba(255,255,255,.08); color:#cfe0ee; border:1px solid rgba(255,255,255,.1);
  transition: background .3s, color .3s, transform .3s, border-color .3s;
}
.social a:hover { background: var(--blue); color:#fff; transform: translateY(-3px); border-color: var(--blue); }
.social svg { width:18px; height:18px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity:0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity:1; transform:none; }
.reveal.d1 { transition-delay:.08s; } .reveal.d2 { transition-delay:.16s; }
.reveal.d3 { transition-delay:.24s; } .reveal.d4 { transition-delay:.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1 !important; transform:none !important; } html{scroll-behavior:auto;} }

/* ---------- Responsive ---------- */

/* Large tablets / small laptops */
@media (max-width: 1080px) {
  .container { padding: 0 28px; }
}

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .nav__links { gap: 24px; }
  .ctaband { padding: 52px 40px; }
}

/* Tablet — collapse primary nav to hamburger */
@media (max-width: 820px) {
  .nav__links { display:none; }
  .nav__toggle { display:block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .values .value { border-right:0; border-bottom:1px solid var(--line); }
  .values .value:last-child { border-bottom:0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ctaband { padding: 44px 28px; }
  .section { padding: 70px 0; }
  .phero { padding: 140px 0 56px; }
  /* any inline two-column grids inside cards collapse */
  .card .grid-2, .card .grid-3 { grid-template-columns: 1fr !important; }
}

/* Large phones */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 38px; }
  .phero { padding: 124px 0 48px; }
  .hero__inner { padding: 104px 0 64px; }

  h1 { line-height: 1.15; }
  .hero h1 { font-size: clamp(2.3rem, 9vw, 3.2rem); }
  .phero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .section h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }

  .hero__quote { font-size: 1.05rem; }
  .hero__lead, .phero__lead, .lead { font-size: 1rem; }
  .hero__cta, .ctaband .btn, .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__cta { gap: 12px; }
  .hero__pills { gap: 10px 20px; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .ctaband { padding: 36px 22px; border-radius: 20px; }
  .ctaband__inner .btn { width: 100%; justify-content: center; }
  .ctaband__inner > div { flex-direction: column; }

  .card { padding: 26px 22px; }
  .card.card--accent[style] { padding: 26px 22px !important; }

  /* journey timeline tightens */
  .journey::before { left: 21px; }
  .step { gap: 18px; padding: 16px 0; }
  .step__num { width: 44px; height: 44px; font-size: 1.05rem; }

  /* tables scroll horizontally instead of squishing */
  .tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.matrix { min-width: 460px; }

  /* flow arrow chains wrap nicely */
  .flow { font-size: .92rem; }
  .quoteband { padding: 60px 0; }
  .quoteband .q { font-size: clamp(1.25rem, 6vw, 1.6rem); }

  /* card header rows (framework/approach) stack */
  .card > div[style*="space-between"] { flex-direction: column; align-items: flex-start !important; }

  .crumbs { font-size: .74rem; }
  .social a { width: 38px; height: 38px; }
}

/* Small phones */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .brand__name { font-size: 1.2rem; letter-spacing: .14em; }
  .brand__tag { font-size: .48rem; }
  .nav__cta { padding: 10px 18px; font-size: .85rem; }
  .hero h1 { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .chip { font-size: .8rem; padding: 8px 14px; }
  .values .value { padding: 30px 18px; }
  .value h3 { font-size: 1.6rem; }
}
