/* ==========================================================================
   InnovoHib — static site styles
   No framework, no build step. Design tokens first, then components.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — Medisern International corporate identity.
     Primary blue #0A2E73 and green #008A4B are the official values from the
     Corporate Identity Package; the rest are tints/shades derived from them. */
  --blue-600: #14418f;
  --blue-700: #0A2E73;  /* official corporate blue */
  --blue-800: #072253;
  --blue-950: #04143a;
  --teal-500: #00a85c;
  --teal-600: #008A4B;  /* official corporate green */
  --gold-400: #F2C230;  /* crest gold — used sparingly, for emphasis only */
  --gold-500: #D9A520;

  /* Light theme surfaces */
  --bg:        #ffffff;
  --bg-alt:    #f6f8fc;
  --surface:   #ffffff;
  --surface-2: #f1f5f9;
  --text:      #0f172a;
  --text-mut:  #52627a;
  --border:    #e3e9f2;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .07), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, .10), 0 4px 12px rgba(15, 23, 42, .05);

  --accent:      var(--blue-700);
  --accent-soft: #e8edf7;
  --ring:        color-mix(in srgb, var(--accent) 45%, transparent);

  /* Scale */
  --wrap: 1180px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sp: clamp(64px, 8vw, 112px);

  /* Type — fluid, no webfont request */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --t-h1: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem);
  --t-h2: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  --t-h3: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  --t-lede: clamp(1.05rem, .98rem + .45vw, 1.28rem);
}

:root[data-theme="dark"] {
  --bg:        #080f1e;
  --bg-alt:    #0d1526;
  --surface:   #111b30;
  --surface-2: #16223a;
  --text:      #e9eefb;
  --text-mut:  #9aabc4;
  --border:    #1f2d47;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 44px rgba(0, 0, 0, .55);

  --accent:      #6d9dff;
  --accent-soft: #16233f;
  --blue-950:    #050b18;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* A class-level `display` beats the UA stylesheet's [hidden] rule, so restate it. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: var(--t-h1); letter-spacing: -.035em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.ico  { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm); transition: top .18s;
}
.skip-link:focus { top: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .16s, box-shadow .16s, background .16s, border-color .16s;
}
.btn-sm { padding: .55rem 1.15rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--blue-700) 32%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--blue-700) 40%, transparent); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn .ico { width: 1.05em; height: 1.05em; transition: transform .16s; }
.btn:hover .ico { transform: translateX(3px); }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; color: var(--text);
  transition: border-color .16s, color .16s, background .16s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }

.brand { display: flex; align-items: center; gap: .7rem; }
/* Supplied brand mark, in two variants. Size the <img> explicitly — an
   unconstrained one renders at its intrinsic 480px and blows the header open. */
.brand-mark { display: block; flex: none; line-height: 0; }
/* 480x480 canvas has generous padding around the artwork, so the box is
   larger than the mark appears. */
.brand-mark img { display: block; height: 54px; width: auto; }

/* Swap variants on theme: navy-on-light vs white-on-dark. No white plate
   needed now that a proper light-on-dark version exists. */
/* Scoped to .brand-mark so these outrank `.brand-mark img { display: block }`
   — a bare `.mark-dark` loses on specificity and both variants render. */
.brand-mark .mark-dark { display: none; }
:root[data-theme="dark"] .brand-mark .mark-light { display: none; }
:root[data-theme="dark"] .brand-mark .mark-dark  { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.3rem; letter-spacing: -.03em; color: var(--accent); }
.brand-text small { font-size: .68rem; color: var(--text-mut); white-space: nowrap; }

.nav-desktop { display: none; gap: 1.6rem; }
.nav-desktop a { position: relative; font-size: .94rem; font-weight: 500; color: var(--text-mut); padding: .3rem 0; transition: color .16s; }
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--text); }
.nav-desktop a.active::after, .nav-desktop a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .55rem; }
.nav-cta { display: none; }

#theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] #theme-toggle .ico-sun  { display: none; }
:root[data-theme="dark"] #theme-toggle .ico-moon { display: block; }

.scroll-progress { height: 2px; width: 0; background: linear-gradient(90deg, var(--blue-600), var(--teal-500)); transition: width .1s linear; }

/* ---------- Mobile nav ---------- */
.nav-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(4, 10, 22, .55); backdrop-filter: blur(2px); animation: fade .2s; }
.nav-mobile {
  position: fixed; z-index: 120; top: 0; right: 0; bottom: 0; width: min(84vw, 330px);
  background: var(--bg); border-left: 1px solid var(--border);
  padding: 1rem 1.4rem 2rem; display: flex; flex-direction: column; gap: .35rem;
  box-shadow: var(--shadow-lg); animation: slide-in .26s cubic-bezier(.22, 1, .36, 1);
  overflow-y: auto;
}
.nav-mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.nav-mobile-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mut); font-weight: 700; }
.nav-mobile > a:not(.btn) {
  padding: .85rem .4rem; font-size: 1.05rem; font-weight: 500;
  border-bottom: 1px solid var(--border); transition: color .16s, padding-left .16s;
}
.nav-mobile > a:not(.btn):hover { color: var(--accent); padding-left: .8rem; }
.nav-mobile-cta { margin-top: 1.2rem; }
.nav-mobile-group {
  display: block; margin: 1.2rem 0 .2rem; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
}
.nav-mobile-group:first-of-type { margin-top: .2rem; }

@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 16vw, 190px) 0 clamp(70px, 9vw, 110px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
:root[data-theme="dark"] .hero-bg .orb { opacity: .28; }
.orb-1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -14%; right: -10%;
         background: radial-gradient(circle, var(--blue-600), transparent 68%); animation: drift 22s ease-in-out infinite; }
.orb-2 { width: 38vw; height: 38vw; max-width: 500px; max-height: 500px; bottom: -18%; left: -12%;
         background: radial-gradient(circle, var(--teal-500), transparent 68%); animation: drift 28s ease-in-out infinite reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 40%, #000 20%, transparent 75%);
  opacity: .5;
}
@keyframes drift { 50% { transform: translate(-32px, 34px) scale(1.08); } }

.hero-inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.3rem;
  padding: .42rem 1rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: .82rem; font-weight: 600;
}
.grad {
  background: linear-gradient(120deg, var(--blue-600) 10%, var(--teal-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 1.5rem; font-size: var(--t-lede); color: var(--text-mut); max-width: 34em; }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-chips { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-chips li {
  border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color .16s, transform .16s;
}
.hero-chips li:hover { border-color: var(--accent); transform: translateY(-2px); }
.hero-chips a { display: block; padding: .38rem .9rem; color: var(--text-mut); }
.hero-chips li:hover a { color: var(--accent); }

.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.9rem; box-shadow: var(--shadow-lg);
}
.hero-card-top { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.02rem; color: var(--teal-600); }
:root[data-theme="dark"] .hero-card-top { color: var(--teal-500); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal-500) 65%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-card-body { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.mini-stat { background: var(--surface-2); border-radius: var(--r-md); padding: .95rem 1rem; }
.mini-stat strong { display: block; font-size: 1.02rem; color: var(--accent); }
.mini-stat span { font-size: .78rem; color: var(--text-mut); line-height: 1.45; display: block; margin-top: .2rem; }
.hero-card-link { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; color: var(--accent); }
.hero-card-link .ico { transition: transform .16s; }
.hero-card-link:hover .ico { transform: translateX(4px); }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(120deg, var(--blue-800), var(--blue-700) 45%, var(--teal-600)); padding: clamp(48px, 6vw, 68px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.4rem .8rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .16); }
.stat strong { display: block; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 800; color: #fff; letter-spacing: -.03em; }
.stat span { color: rgba(255, 255, 255, .88); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: var(--sp) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 4vw, 3.6rem); }
.section-sub { margin-top: .9rem; color: var(--text-mut); font-size: 1.04rem; }
.kicker {
  display: inline-block; margin-bottom: .8rem; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--accent);
}
.kicker-invert { color: var(--teal-500); }
.body-lg { margin-top: 1.3rem; font-size: 1.1rem; color: var(--text-mut); }
.body { margin-top: 1rem; color: var(--text-mut); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(2.4rem, 5vw, 3.6rem); align-items: center; }
.check-list { margin-top: 1.9rem; display: grid; gap: .8rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; color: var(--text-mut); }
.check-list .ico { color: var(--teal-600); margin-top: .28em; }
:root[data-theme="dark"] .check-list .ico { color: var(--teal-500); }

.about-panel {
  background: linear-gradient(140deg, var(--blue-700), var(--teal-600));
  color: #fff; border-radius: var(--r-xl); padding: clamp(1.9rem, 3.5vw, 2.7rem);
  box-shadow: var(--shadow-lg);
}
.about-panel h3 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); }
.about-panel > p { margin-top: 1rem; color: rgba(255, 255, 255, .9); }
.panel-grid { margin-top: 1.9rem; display: grid; gap: .8rem; }
.panel-grid > div { background: rgba(255, 255, 255, .13); border-radius: var(--r-md); padding: 1rem 1.15rem; }
.panel-grid strong { display: block; font-size: 1rem; }
.panel-grid span { font-size: .85rem; color: rgba(255, 255, 255, .85); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.card h3 { margin-top: 1.15rem; }
.card > p { margin-top: .7rem; color: var(--text-mut); font-size: .94rem; }

.card-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent);
}
.card-icon .ico { width: 26px; height: 26px; }

/* Programs */
.program { display: flex; flex-direction: column; }
.program-meta { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.badge { padding: .24rem .68rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.badge-beginner     { background: #dcfce7; color: #166534; }
.badge-intermediate { background: #dbeafe; color: #1e40af; }
.badge-advanced     { background: #fae8ff; color: #86198f; }
:root[data-theme="dark"] .badge-beginner     { background: #0d2e1c; color: #6ee7a8; }
:root[data-theme="dark"] .badge-intermediate { background: #10244a; color: #93b8ff; }
:root[data-theme="dark"] .badge-advanced     { background: #2f1039; color: #e9a8f5; }
.duration { display: inline-flex; align-items: center; gap: .32rem; font-size: .78rem; color: var(--text-mut); }
.duration .ico { width: 14px; height: 14px; }
.program h3 { margin-top: .8rem; }

.tags { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .38rem; }
.tags li { padding: .24rem .6rem; border-radius: 6px; font-size: .73rem; font-weight: 500; background: var(--surface-2); color: var(--text-mut); border: 1px solid var(--border); }
.outcomes { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--border); display: grid; gap: .5rem; }
.outcomes li { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-mut); }
.outcomes .ico { width: 14px; height: 14px; color: var(--teal-600); }
:root[data-theme="dark"] .outcomes .ico { color: var(--teal-500); }

/* ---------- Shared card internals ---------- */
.micro-head {
  margin-top: 1.4rem; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--text-mut);
}
.service .outcomes { margin-top: .7rem; padding-top: 0; border-top: none; }
.curriculum { margin-top: .7rem; display: grid; gap: .42rem; }
.curriculum li {
  position: relative; padding-left: 1.05rem; font-size: .86rem; color: var(--text-mut);
}
.curriculum li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* ---------- Technology stack ---------- */
.stack-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stack-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.stack-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.stack-card h3 { margin-top: 1.1rem; }
.stack-card > p { margin-top: .6rem; color: var(--text-mut); font-size: .9rem; }
.stack-card .tags { margin-top: 1.1rem; }

/* ---------- "Every program includes" ---------- */
.includes {
  margin-top: 2.2rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.8rem clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.includes h3 { font-size: 1.1rem; }
.includes ul { margin-top: 1.1rem; display: grid; gap: .75rem; }
.includes li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--text-mut); }
.includes .ico { width: 16px; height: 16px; color: var(--teal-600); }
:root[data-theme="dark"] .includes .ico { color: var(--teal-500); }

/* ---------- Corporate tagline ---------- */
.tagline {
  margin-top: 1rem; font-size: clamp(.86rem, .8rem + .25vw, .98rem);
  font-weight: 600; letter-spacing: .01em; color: var(--teal-600);
}
:root[data-theme="dark"] .tagline { color: var(--teal-500); }

/* ---------- Sub-brand lockups ----------
   Supplied stacked lockups: circuit mark + wordmark + "<Sector> Pakistan"
   descriptor + three-word tagline. Transparent PNGs, so they work on either
   theme. They are STACKED, so they need real height to stay legible — the
   descriptor and tagline are tiny relative to the whole. */
.brandmark { display: block; line-height: 0; }
/* Cap BOTH axes and let the image scale inside them. Fixing height alone while
   `img { max-width: 100% }` clamps the width distorts the aspect ratio on any
   container narrower than the natural width at that height. */
.brandmark img { display: block; width: auto; height: auto; max-height: 150px; max-width: 100%; }
.brandmark-lg img { max-height: 200px; }

/* Fixed-height logo box. Without it, a wide lockup sits shorter than a stacked
   one and every heading in the row lands at a different height — measured 68px
   of drift. The box reserves identical space whatever the aspect ratio. */
.card .brandmark, .div-card .brandmark {
  height: 150px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.card .brandmark img, .div-card .brandmark img {
  max-height: 100%; max-width: 100%; width: auto; height: auto;
}
.svc-hero .brandmark-lg { margin-bottom: 1.5rem; }

/* The lockups are navy+teal on transparent, so they vanish on dark surfaces.
   Invert to white rather than shipping a second set of files. */
/* Dark theme: put the lockups on a light plate rather than inverting them.
   Inverting flattened the navy/teal two-tone to a white silhouette, and the
   InnovoHib file is an opaque JPEG-sourced PNG — inverting a white background
   turns the whole rectangle into a solid white block. A plate keeps every logo
   in its real colours and treats all six identically. */
:root[data-theme="dark"] .brandmark {
  background: #fff; border-radius: var(--r-md); padding: .7rem .9rem;
}
:root[data-theme="dark"] .card .brandmark,
:root[data-theme="dark"] .div-card .brandmark { padding: .6rem; }

/* ---------- Six divisions ---------- */
.div-grid { display: grid; gap: 1.4rem; }
.div-card {
  display: flex; flex-direction: column; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.8rem; box-shadow: var(--shadow-sm); color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.div-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.div-card h3 { margin-top: 1.15rem; }
.div-card p { margin-top: .6rem; flex: 1; color: var(--text-mut); font-size: .93rem; }
.div-card .post-link { margin-top: 1.3rem; }
.div-card:hover .post-link .ico { transform: translateX(4px); }



/* Crest motto — the one place gold earns its keep */
.div-motto {
  margin-top: 2.4rem; text-align: center; font-size: clamp(.9rem, .84rem + .3vw, 1.05rem);
  font-weight: 700; letter-spacing: .04em; color: var(--text-mut);
  padding-top: 1.6rem; border-top: 2px solid var(--gold-400);
}

.brand-note { margin-top: 1rem; font-size: .9rem; color: var(--text-mut); }
.brand-note strong { color: var(--accent); }
:root[data-theme="dark"] /* ---------- Capability groups (area pages) ---------- */
.grp-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grp {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.grp:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.grp h3 { font-size: 1.05rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border); }
.grp ul { margin-top: .9rem; display: grid; gap: .5rem; }
.grp li { position: relative; padding-left: 1.05rem; font-size: .89rem; color: var(--text-mut); }
.grp li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal-600);
}
:root[data-theme="dark"] .grp li::before { background: var(--teal-500); }

/* ---------- Programme actions (apply / verify) ---------- */
.prog-actions { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.prog-action {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.prog-action h3 { margin-top: 1.1rem; }
.prog-action p { margin-top: .6rem; margin-bottom: 1.3rem; color: var(--text-mut); font-size: .93rem; }

.apply-form, .verify-form { max-width: 680px; margin: 2rem 0 0; }
.verify-help {
  max-width: 680px; margin: 1.4rem 0 0; padding: 1.2rem 1.4rem;
  border-radius: var(--r-md); background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: .92rem; line-height: 1.7; color: var(--text-mut);
}
.verify-help a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Chairman's message ---------- */
.chair { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.chair-side { text-align: center; }
.chair-photo {
  display: block; width: 100%; max-width: 220px; height: auto; aspect-ratio: 346 / 476;
  margin: 0 auto 1.1rem; object-fit: cover; object-position: top center;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 3px solid var(--blue-700);
}

/* Official seal — shown large enough for its detail to read */
.crest { margin: 0 auto 2.4rem; max-width: 340px; text-align: center; }
.crest img { width: 100%; height: auto; }
.crest figcaption {
  margin-top: .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-mut);
}
.chair-side strong { display: block; font-size: 1.15rem; }
.chair-side span { font-size: .88rem; color: var(--text-mut); }
.chair-quote { display: block; color: var(--accent); opacity: .35; margin-bottom: .6rem; }
.chair-quote .ico { width: 40px; height: 40px; }
.chair-body p + p { margin-top: 1rem; }

/* ---------- Split lists (vision / CSR) ---------- */
.split { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.split-col {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm);
}
.split-head { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; }
.split-head .ico { width: 22px; height: 22px; color: var(--teal-600); }
:root[data-theme="dark"] .split-head .ico { color: var(--teal-500); }
.split .check-list { margin-top: 1.3rem; }

/* ---------- Government registrations ---------- */
.reg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.reg {
  padding: 1.2rem 1rem; text-align: center; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.reg:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.reg strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.reg span { display: block; margin-top: .3rem; font-size: .75rem; color: var(--text-mut); line-height: 1.45; }

/* ---------- Company facts ---------- */
.facts { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.facts > div { padding: .9rem 1.1rem; background: var(--surface-2); border-radius: var(--r-md); border: 1px solid var(--border); }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mut); font-weight: 700; }
.facts dd { margin: .25rem 0 0; font-size: 1.05rem; font-weight: 700; color: var(--accent); }

/* ---------- Service page ---------- */
.svc-hero { padding: clamp(120px, 14vw, 160px) 0 clamp(2.5rem, 5vw, 4rem); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.svc-hero h1 { margin-top: .3rem; font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem); }
.svc-hero .lede { max-width: 60ch; }
.svc-icon { margin-bottom: 1.4rem; }
.crumbs { font-size: .84rem; color: var(--text-mut); margin-bottom: 1.6rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }
.svc-form { max-width: 680px; margin-inline: auto; }
.card-more { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--accent); }
.card-more .ico { width: 1em; height: 1em; transition: transform .16s; }
.card:hover .card-more .ico { transform: translateX(4px); }

/* ---------- Mission & values ---------- */
.mission {
  max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center;
  padding: clamp(1.6rem, 3vw, 2.2rem); border-radius: var(--r-lg);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.mission p { font-size: clamp(1.05rem, .98rem + .45vw, 1.25rem); color: var(--text); font-weight: 500; }
.mvp { display: grid; gap: 1.6rem; text-align: left; }
.mvp h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .5rem; }
.mvp p { font-size: .96rem; font-weight: 400; color: var(--text-mut); }
.chair-sign { margin-top: 1.4rem; font-style: italic; font-weight: 600; color: var(--teal-600); }
:root[data-theme="dark"] .chair-sign { color: var(--teal-500); }
.sub-motto {
  margin-top: 1.1rem; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-500);
}
.value .card-icon { background: color-mix(in srgb, var(--teal-500) 14%, transparent); color: var(--teal-600); }
:root[data-theme="dark"] .value .card-icon { color: var(--teal-500); }

/* ---------- Form rows & optional labels ---------- */
.field-row { display: grid; gap: 0 1rem; }
.opt { font-weight: 400; color: var(--text-mut); font-size: .8em; }

/* ---------- Social links ---------- */
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: #cfdaf0; transition: background .16s, color .16s, transform .16s, border-color .16s;
}
.socials a:hover { background: #fff; color: var(--blue-800); border-color: #fff; transform: translateY(-3px); }
.socials .ico { width: 17px; height: 17px; }

/* ---------- Clients & testimonials ---------- */
.logo-wall {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;
  margin-bottom: 1.6rem;
}
.logo-tile {
  display: grid; place-items: center; gap: .55rem; min-height: 104px; padding: 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--text-mut); font-size: .92rem; font-weight: 700; text-align: center;
  transition: color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.logo-tile .ico { width: 26px; height: 26px; color: var(--accent); }
.logo-tile:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quote-grid { display: grid; gap: 1.4rem; }
.quote {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.quote-mark { font-size: 2.4rem; line-height: .7; color: var(--accent); opacity: .3; font-weight: 800; }
/* flex:1 pushes every figcaption to the card's bottom edge, so the three
   captions line up instead of each floating where its quote happens to end. */
.quote blockquote { margin: .5rem 0 0; flex: 1; font-size: .95rem; color: var(--text-mut); line-height: 1.65; }
.quote figcaption { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; gap: .8rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .95rem;
}
.quote figcaption strong { display: block; font-size: .92rem; }
.quote figcaption span { font-size: .82rem; color: var(--text-mut); }

/* ---------- Insights / blog ---------- */
.post-grid { display: grid; gap: 1.4rem; }
.post {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
/* Gradient stand-in for a cover image — swap for <img> when you have art */
.post-cover { height: 140px; background: linear-gradient(135deg, var(--blue-700), var(--teal-600)); }
.post:nth-child(2) .post-cover { background: linear-gradient(135deg, var(--teal-600), var(--blue-600)); }
.post:nth-child(3) .post-cover { background: linear-gradient(135deg, var(--blue-950), var(--blue-600)); }
.post-hit { display: flex; flex-direction: column; flex: 1; color: inherit; }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: .6rem; font-size: .76rem; color: var(--text-mut); }
.post-cat { padding: .2rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.post h3 { margin-top: .8rem; font-size: 1.08rem; }
.post p { margin-top: .6rem; font-size: .9rem; color: var(--text-mut); flex: 1; }
.post-link { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--accent); }
.post-link .ico { transition: transform .16s; }
.post:hover .post-link .ico { transform: translateX(4px); }

/* ---------- Article pages ---------- */
.article-page { padding: clamp(110px, 14vw, 150px) 0 clamp(3rem, 6vw, 5rem); }
.article { max-width: 720px; }
.article h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-bottom: .8rem; }
.article-meta { color: var(--text-mut); font-size: .88rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--border); }
.article .lede { margin-top: 1.8rem; font-size: 1.18rem; color: var(--text); font-weight: 500; }
.article h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); margin-top: 2.6rem; }
.article p { margin-top: 1.1rem; color: var(--text-mut); font-size: 1.02rem; line-height: 1.75; }
.article .check-list { margin-top: 1.4rem; }
.article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
  background: var(--surface-2); padding: .12em .4em; border-radius: 5px; border: 1px solid var(--border);
}
/* These two rules used to style a stripped-down footer on article pages. Every
   page now shares the full footer, which styles its own links — leaving them in
   underlined every footer link on the five .article-page pages only. */

/* ---------- Newsletter ---------- */
.footer-news-head { margin-top: 1.6rem; }
.newsletter { margin-top: .8rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 190px; min-width: 0; padding: .65rem .9rem; border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff;
}
.newsletter input::placeholder { color: #8ea3c7; }
.newsletter input:focus { outline: none; border-color: #fff; }
.newsletter button { padding: .65rem 1.2rem; border-radius: var(--r-sm); border: none; background: #fff; color: var(--blue-800); font-weight: 700; cursor: pointer; }
.newsletter-note { margin-top: .6rem; font-size: .78rem; color: #8ea3c7; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.step-num {
  display: inline-block; font-size: .9rem; font-weight: 800; letter-spacing: .06em;
  color: var(--accent); background: var(--accent-soft);
  padding: .3rem .65rem; border-radius: 8px;
}
.step h3 { margin-top: 1rem; }
.step p { margin-top: .6rem; color: var(--text-mut); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; max-width: 820px; margin-inline: auto; }
.faq {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; transition: border-color .18s, box-shadow .18s;
}
.faq[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-md); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; cursor: pointer; font-weight: 600; font-size: 1rem;
  list-style: none; transition: color .16s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
/* Chevron drawn in CSS — no icon needed */
.faq-mark {
  flex: none; width: 11px; height: 11px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .22s; opacity: .6;
}
.faq[open] .faq-mark { transform: rotate(225deg) translate(-3px, -3px); }
.faq-body { padding: 0 1.4rem 1.3rem; }
.faq-body p { color: var(--text-mut); font-size: .94rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-800), var(--blue-700) 50%, var(--teal-600)); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-inner { display: grid; gap: 1.8rem; align-items: center; color: #fff; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
.cta-inner p { margin-top: .8rem; color: rgba(255, 255, 255, .9); max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-light { background: #fff; color: var(--blue-800); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .22); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

/* ---------- Partnership ---------- */
.partnership {
  background: linear-gradient(140deg, var(--blue-950), var(--blue-800) 55%, var(--teal-600));
  border-radius: var(--r-xl); padding: clamp(2.4rem, 6vw, 4.2rem); text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.partnership h2 { color: #fff; }
.partnership-lede { margin: 1.2rem auto 0; max-width: 44ch; color: rgba(255, 255, 255, .87); font-size: 1.06rem; }
.sectors {
  margin: 2rem auto 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  max-width: 720px;
}
.sectors li {
  padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
}

.partner-card {
  margin-top: 2.4rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
}
.partner-card h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: #fff; }
.partner-card p { margin-top: .8rem; color: rgba(255, 255, 255, .85); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1.6rem; }
.contact-info { display: grid; gap: 1rem; align-content: start; }
.info-card {
  display: grid; gap: .25rem; padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .18s, border-color .18s;
}
a.info-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.info-card .card-icon { margin-bottom: .6rem; width: 46px; height: 46px; }
.info-card .card-icon .ico { width: 22px; height: 22px; }
.info-card strong { font-size: 1rem; }
.info-card span { color: var(--text-mut); font-size: .92rem; }
/* <address> defaults to italic in every browser — normalise it. */
.info-card address { font-style: normal; color: var(--text-mut); font-size: .92rem; line-height: 1.6; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .42rem; font-size: .86rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .95rem; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  transition: border-color .16s, box-shadow .16s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.error { min-height: 0; margin-top: .3rem; font-size: .8rem; color: #dc2626; }
:root[data-theme="dark"] .error { color: #f87171; }
.form-status { margin-top: 1rem; font-size: .9rem; text-align: center; color: var(--text-mut); }
.form-status.ok { color: var(--teal-600); font-weight: 600; }
:root[data-theme="dark"] .form-status.ok { color: var(--teal-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-950); color: #cfdaf0; padding: clamp(3rem, 6vw, 4.5rem) 0 1.8rem; }
.footer-grid { display: grid; gap: 2.2rem; }
/* The footer is always navy, so it always wants the light variant regardless
   of the page theme. */
.footer-brand .brand-mark img { height: 78px; }
.footer-brand .brand-mark .mark-light { display: none; }
.footer-brand .brand-mark .mark-dark  { display: block; }
/* Direct child only — otherwise the <strong> labels inside the address below
   inherit the brand-name size and read as headings. */
.footer-brand > strong { display: block; margin-top: .7rem; font-size: 1.25rem; color: #fff; }
.footer-address strong {
  display: block; margin-top: .7rem; font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: #fff;
}
.footer-address strong:first-child { margin-top: 0; }
.footer-brand p { margin-top: .6rem; font-size: .9rem; max-width: 32ch; color: #9fb2d4; }
.footer-address { margin-top: 1rem; font-style: normal; font-size: .88rem; line-height: 1.7; color: #9fb2d4; }
.footer-contact { display: block; margin-top: .45rem; font-size: .88rem; color: #cfdaf0; transition: color .16s; }
.footer-contact:hover { color: #fff; }
.site-footer h4 { margin-bottom: .9rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; }
.site-footer nav a { display: block; padding: .3rem 0; font-size: .92rem; color: #9fb2d4; transition: color .16s, padding-left .16s; }
.site-footer nav a:hover { color: #fff; padding-left: .35rem; }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-direction: column; gap: .5rem; text-align: center;
  font-size: .84rem; color: #8ea3c7;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: var(--accent); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .22s, transform .22s, visibility .22s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .stats-grid   { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quote-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .includes ul { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .prog-actions { grid-template-columns: 1fr 1fr; }
  .div-grid { grid-template-columns: repeat(2, 1fr); }
  .mvp { grid-template-columns: repeat(3, 1fr); }
  .footer-grid  { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .panel-grid   { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .hero-inner  { grid-template-columns: 1.15fr .85fr; }
  .about-grid  { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .div-grid { grid-template-columns: repeat(3, 1fr); }
  .chair { grid-template-columns: 260px 1fr; }
  .chair-side { position: sticky; top: 100px; }
  .split { grid-template-columns: 1fr 1fr; }
  .quote-grid, .post-grid { grid-template-columns: repeat(3, 1fr); }
  .includes ul { grid-template-columns: repeat(4, 1fr); }
  .cta-inner { grid-template-columns: 1.4fr auto; }
  .cta-actions { justify-content: flex-end; }
}

/* The desktop nav carries six links plus a CTA, so it needs more room than the
   layout breakpoint above — below this it would wrap. */
@media (min-width: 1060px) {
  .nav-desktop { display: flex; }
  .nav-cta     { display: inline-flex; }
  .nav-toggle  { display: none; }
}

@media (min-width: 1080px) {
}

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

@media print {
  .site-header, .nav-mobile, .nav-scrim, .to-top, .hero-bg { display: none !important; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
