/* ==========================================================================
   Rashtriya Utthaan — design system (mobile-first)
   Brand colours come from the logo: indigo ring + saffron/green tricolour.
   ========================================================================== */

:root {
  --ink: #160c2c;
  --ink-2: #4b4562;
  --ink-3: #6f6987;
  --bg: #fbf9f5;
  --bg-alt: #f4f0fa;
  --surface: #ffffff;
  --line: #e7e1ef;
  --brand: #3a1282;
  --brand-700: #2a0f5c;
  --brand-900: #1a0838;
  --brand-50: #f2edfb;
  --brand-100: #e4dbf6;
  --accent: #f38001;
  --accent-600: #d96f00;
  --accent-50: #fff4e6;
  --green: #12803a;
  --green-50: #e9f6ee;
  --danger: #b42318;
  --danger-50: #fdecea;

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(22, 12, 44, .06), 0 1px 1px rgba(22, 12, 44, .04);
  --shadow: 0 10px 30px -12px rgba(42, 15, 92, .18), 0 2px 6px rgba(22, 12, 44, .05);
  --shadow-lg: 0 30px 60px -20px rgba(42, 15, 92, .35);

  --gutter: 16px;
  --container: 1200px;
  --header-h: 68px;
  --section-y: clamp(56px, 8vw, 104px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1080px) { :root { --header-h: 80px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-family: var(--font-body); font-weight: 700; letter-spacing: -.005em; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-100); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(860px + var(--gutter) * 2); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1.05em; height: 1.05em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em;
  font: 600 .98rem/1.2 var(--font-body);
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(58, 18, 130, .6); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-accent { background: var(--accent); color: var(--brand-900); box-shadow: 0 8px 20px -8px rgba(243, 128, 1, .65); }
.btn-accent:hover { background: #ff9220; color: var(--brand-900); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-sm { min-height: 40px; padding: .5em 1.05em; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: .85em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; color: var(--brand); text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
a:hover > .link-arrow .icon, .link-arrow:hover .icon, article:hover .link-arrow .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 245, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22, 12, 44, .4); background: rgba(255, 255, 255, .92); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--brand-700); white-space: nowrap; }
.brand-sub { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, .65); }
@media (min-width: 1080px) {
  .brand img { width: 52px; height: 52px; }
  .brand-name { font-size: 1.3rem; }
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: block; }

/* Mobile drawer */
.primary-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--surface);
  padding: 12px var(--gutter) 32px;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden;
  transition: transform .35s var(--ease), visibility .35s;
}
.nav-open .primary-nav { transform: none; visibility: visible; }
.nav-open { overflow: hidden; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { border-bottom: 1px solid var(--line); position: relative; }
.nav-link { display: block; padding: 16px 4px; font-weight: 600; font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.nav-link.is-active { color: var(--brand); }
.menu-toggle { position: absolute; right: 0; top: 6px; width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: 10px; }
.menu-toggle .icon { transition: transform .25s var(--ease); transform: rotate(90deg); }
.has-menu.is-open .menu-toggle .icon { transform: rotate(-90deg); }
.mega { display: none; padding: 0 0 16px; }
.has-menu.is-open .mega { display: block; }
.mega-title { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); margin: 12px 0 6px; }
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega li a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; border-radius: 8px; }
.mega li a .icon { color: var(--brand); }
.mega li a:hover { color: var(--brand); background: var(--brand-50); }
.mega-cta { display: none; }
.nav-mobile-extra { display: grid; gap: 12px; margin-top: 24px; }
.nav-contact { display: flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; }

@media (min-width: 1080px) {
  .nav-toggle, .nav-mobile-extra { display: none; }
  .primary-nav { position: static; transform: none; visibility: visible; background: none; padding: 0; overflow: visible; margin-left: auto; }
  .header-actions { margin-left: 8px; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-item { border: 0; }
  .nav-link { padding: 10px 12px; font-size: .95rem; border-radius: 999px; transition: color .2s, background-color .2s; }
  .nav-link:hover { background: var(--brand-50); color: var(--brand); }
  .nav-link.is-active { background: var(--brand-50); }
  .has-menu { display: flex; align-items: center; }
  .has-menu .nav-link { padding-right: 4px; }
  .menu-toggle { position: static; width: 26px; height: 32px; }
  .menu-toggle .icon { transform: rotate(90deg); }
  .mega {
    display: block; position: absolute; top: calc(100% + 14px); left: 50%;
    width: min(880px, 92vw); transform: translate(-50%, 8px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 24px;
    opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .has-menu:hover .mega, .has-menu:focus-within .mega, .has-menu.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .mega-grid { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 20px; }
  .mega-title { margin-top: 0; }
  .mega-cta { display: block; background: linear-gradient(160deg, var(--brand-50), var(--accent-50)); border-radius: var(--radius); padding: 20px; }
  .mega-cta p:not(.mega-title) { font-size: .92rem; color: var(--ink-2); }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 18px; padding-bottom: 0; font-size: .85rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; color: var(--ink-3); }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); color: #c9c1d6; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tight { padding-block: calc(var(--section-y) * .6); }
.section-alt { background: var(--bg-alt); }
.section-white { background: var(--surface); }
.section-dark { background: var(--brand-900); color: rgba(255, 255, 255, .82); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-600); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .eyebrow { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); line-height: 1.7; }
.section-dark .lead { color: rgba(255, 255, 255, .78); }
.muted { color: var(--ink-3); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split-rev > :first-child { order: 2; } }

/* ---------- Home hero ---------- */
.hero { position: relative; padding-block: clamp(28px, 6vw, 72px) clamp(48px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(closest-side, rgba(243, 128, 1, .16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -20%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(closest-side, rgba(58, 18, 130, .14), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--green); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-2); text-decoration: none; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.pill-dot { display: inline-grid; place-items: center; padding: 3px 9px; border-radius: 999px; background: var(--green-50); color: var(--green); font-size: .75rem; }
.pill:hover { color: var(--brand); }

.hero-media { position: relative; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--brand-100); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-2 { position: absolute; width: 46%; right: -4%; bottom: -10%; border-radius: var(--radius); overflow: hidden; border: 5px solid var(--surface); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; display: none; }
.hero-photo-2 img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -2%; bottom: -8%; max-width: 270px;
  background: var(--surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-lg);
  display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; line-height: 1.4; color: var(--ink-2);
}
.hero-badge strong { display: block; color: var(--ink); font-size: .95rem; }
.hero-badge .badge-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); flex: none; }
@media (min-width: 640px) { .hero-photo-2 { display: block; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60vw; height: 60vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(closest-side, rgba(243, 128, 1, .12), transparent 70%); pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { max-width: 760px; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.page-hero-media { margin-top: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow); background: var(--brand-100); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) { .page-hero-media { aspect-ratio: 4 / 3; } }

/* ---------- Stats / proof strip ---------- */
.proof { background: var(--brand-900); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); position: relative; overflow: hidden; }
.proof::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(243, 128, 1, .3), transparent); }
@media (min-width: 900px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof-item { position: relative; z-index: 1; }
.proof-num { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; line-height: 1; color: #fff; }
.proof-num span { color: var(--accent); }
.proof-label { margin-top: 8px; font-size: .9rem; color: rgba(255, 255, 255, .72); line-height: 1.45; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); margin-bottom: 18px; }
.card-icon .icon { width: 26px; height: 26px; }
.card-accent .card-icon { background: var(--accent-50); color: var(--accent-600); }
.card-green .card-icon { background: var(--green-50); color: var(--green); }

.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.service-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-50); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.04); }
.service-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.12rem; margin-bottom: .45em; }
.service-card h3 a { color: var(--ink); text-decoration: none; }
.service-card p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.service-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); margin-bottom: 14px; }
.service-card-media + .service-card-body .service-icon { margin-top: -44px; border: 4px solid var(--surface); width: 52px; height: 52px; background: var(--brand); color: #fff; position: relative; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Services filter */
.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
@media (min-width: 760px) { .toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 .9rem var(--font-body); color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .count { opacity: .7; font-weight: 500; margin-left: 4px; }
.search-field { position: relative; width: 100%; max-width: 360px; }
.search-field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search-field input { width: 100%; min-height: 46px; padding: 10px 16px 10px 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; }
.search-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.empty-state { display: none; text-align: center; padding: 40px 16px; color: var(--ink-3); }
.empty-state.is-visible { display: block; }
[data-service][hidden] { display: none; }

/* Group heading inside services */
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 56px 0 20px; }
.group-head:first-child { margin-top: 0; }
.group-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.group-head p { margin: 0; color: var(--ink-3); max-width: 520px; }

/* Featured project */
.feature-project { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 900px) { .feature-project { grid-template-columns: 1.1fr .9fr; } }
.feature-project-body { padding: clamp(24px, 4vw, 48px); }
.feature-project-media { min-height: 260px; background: var(--brand-100); }
.feature-project-media picture, .feature-project-media img { width: 100%; height: 100%; object-fit: cover; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; background: var(--green-50); color: var(--green); }
.tag-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--green); margin-top: 3px; }
.dot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dot-list li { position: relative; padding-left: 22px; }
.dot-list li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Process / steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1;
  color: var(--brand-100); margin-bottom: 12px;
}
.step h3 { font-size: 1.08rem; margin-bottom: .35em; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.section-dark .step { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.section-dark .step::before { color: var(--accent); }
.section-dark .step p { color: rgba(255, 255, 255, .72); }

/* ---------- Leaders ---------- */
.leader-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .leader-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .leader-grid { grid-template-columns: repeat(3, 1fr); } }
.leader { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 24px); }
.leader:target { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }
.leader-top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.leader-photo { width: 88px; height: 88px; border-radius: 20px; overflow: hidden; flex: none; background: var(--brand-50); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.pos-top { object-position: top; }
.small { font-size: .84rem; line-height: 1.4; }
.leader h3 { margin: 0 0 4px; font-size: 1.15rem; }
.leader-role { font-size: .85rem; font-weight: 600; color: var(--accent-600); line-height: 1.35; }
.leader p { color: var(--ink-2); font-size: .95rem; }
.leader-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; list-style: none; padding-left: 0; }
.leader-tags li { font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); }
.leader-mini { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.leader-mini:hover { border-color: var(--brand-100); transform: translateY(-2px); color: var(--ink); }
.leader-mini .leader-photo { width: 60px; height: 60px; border-radius: 14px; }
.leader-mini strong { display: block; font-size: 1rem; }
.leader-mini span { font-size: .84rem; color: var(--ink-3); line-height: 1.35; display: block; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1080px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--brand-50); }
.gallery-item[hidden] { display: none; }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; font-size: .8rem; line-height: 1.35; color: #fff; background: linear-gradient(transparent, rgba(10, 4, 24, .78)); opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); pointer-events: none; }
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery-item figcaption { display: none; } }
.gallery-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .gallery-preview { grid-template-columns: repeat(4, 1fr); } .gallery-preview .gallery-item:first-child { grid-column: span 2; grid-row: span 2; } .gallery-preview .gallery-item:first-child button { aspect-ratio: auto; height: 100%; } }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10, 4, 24, .94); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 16px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 1200px; width: 100%; }
.lightbox img { max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); width: auto; max-width: 100%; border-radius: 8px; object-fit: contain; }
.lightbox figcaption { color: rgba(255, 255, 255, .85); font-size: .92rem; text-align: center; margin-top: 12px; max-width: 720px; }
.lightbox-count { color: rgba(255, 255, 255, .5); font-size: .8rem; display: block; margin-top: 4px; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 639px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } .lb-prev { transform: scaleX(-1); left: 30%; } .lb-next { right: 30%; } .lightbox { padding-bottom: 80px; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; line-height: 1.4; }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--brand); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer { padding: 0 20px 20px; color: var(--ink-2); }
.faq-answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(40px, 6vw, 80px); }
.cta-card {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #5a22b8 0%, var(--brand-700) 45%, var(--brand-900) 100%);
  color: rgba(255, 255, 255, .85); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  display: grid; gap: 24px;
}
.cta-card::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(closest-side, rgba(243, 128, 1, .45), transparent); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; max-width: 680px; }
.cta-card p { max-width: 640px; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; }
.cta-points li { display: flex; gap: 8px; align-items: center; }
.cta-points .icon { color: var(--accent); }

/* ---------- Service detail ---------- */
.detail-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; } }
.detail-aside { display: grid; gap: 20px; }
@media (min-width: 1000px) { .detail-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-card h2 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; }
.aside-card.is-brand { background: var(--brand-900); color: rgba(255, 255, 255, .8); border: 0; }
.aside-card.is-brand h2 { color: #fff; }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.aside-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; text-decoration: none; color: var(--ink-2); font-weight: 500; border-bottom: 1px dashed var(--line); }
.aside-links a:hover { color: var(--brand); }
.content-block { margin-bottom: clamp(36px, 5vw, 56px); }
.content-block > h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); }
.include-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .include-grid { grid-template-columns: repeat(2, 1fr); } }
.include-item { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.include-item h3 { font-size: 1.02rem; display: flex; gap: 10px; align-items: center; }
.include-item h3 .icon { color: var(--brand); }
.include-item p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.signs { background: var(--accent-50); border: 1px solid #fde1bd; border-radius: var(--radius); padding: 24px; }
.signs h2 { font-size: 1.3rem; }
.answer-box { border-left: 4px solid var(--brand); background: var(--brand-50); padding: 18px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 24px; }
.answer-box p { margin: 0; color: var(--ink); }

/* ---------- Prose (guides, policies) ---------- */
.prose { font-size: 1.05rem; color: var(--ink-2); }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.45rem, 2.8vw, 1.85rem); }
.prose h3 { margin-top: 1.5em; color: var(--ink); }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--brand-50); color: var(--ink); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.toc p { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--ink-3); margin-top: 12px; }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fdfcff;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .84rem; margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--ink-3); margin: 14px 0 0; }
.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; display: flex; gap: 12px; align-items: flex-start; }
.alert-success { background: var(--green-50); color: #0b5a28; border: 1px solid #bfe5cc; }
.alert-error { background: var(--danger-50); color: var(--danger); border: 1px solid #f5c2bd; }
.alert .icon { margin-top: 2px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); flex: none; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--brand); }

.map-facade { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--brand-50), var(--accent-50)); aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 20px; border: 1px solid var(--line); }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade .map-pin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; margin: 0 auto 12px; box-shadow: var(--shadow); }

/* ---------- Assessment ---------- */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.quiz-progress { height: 6px; background: var(--brand-50); }
.quiz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .35s var(--ease); }
.quiz-body { padding: clamp(22px, 4vw, 40px); }
.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: fadeUp .35s var(--ease); }
.quiz-meta { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 8px; }
.quiz-step h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.quiz-options { display: grid; gap: 10px; margin: 20px 0 8px; }
.quiz-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.quiz-option:hover { border-color: var(--brand-100); background: #fdfcff; }
.quiz-option input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.quiz-option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.quiz-result { display: none; }
.quiz-result.is-active { display: block; animation: fadeUp .4s var(--ease); }
.score-ring { --p: 0; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--brand-50) 0); margin-bottom: 16px; }
.score-ring span { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: var(--surface); font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.result-bars { display: grid; gap: 10px; margin: 20px 0; }
.result-bar { display: grid; grid-template-columns: 1fr; gap: 4px; font-size: .9rem; }
@media (min-width: 640px) { .result-bar { grid-template-columns: 220px 1fr 40px; align-items: center; gap: 12px; } }
.result-bar .track { height: 10px; background: var(--brand-50); border-radius: 999px; overflow: hidden; }
.result-bar .fill { height: 100%; border-radius: 999px; background: var(--brand); }
.result-bar .fill.low { background: var(--accent); }
html:not(.js) .quiz-step, html:not(.js) .quiz-progress { display: none; }
.noscript-note { background: var(--accent-50); padding: 16px; border-radius: 12px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: rgba(255, 255, 255, .7); padding-top: clamp(48px, 7vw, 80px); font-size: .94rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { margin: 18px 0; max-width: 380px; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 14px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact > * { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 3px; color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer-bottom p { margin: 0; }
body { padding-bottom: 76px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* Mobile sticky CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(26, 8, 56, .96); backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.nav-open .mobile-cta { transform: translateY(110%); }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* ---------- Misc ---------- */
.logo-row { display: flex; flex-wrap: wrap; gap: 10px; }
.kicker-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.kicker-list li { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.quote-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); position: relative; }
.quote-card .icon { color: var(--accent); width: 36px; height: 36px; margin-bottom: 12px; }
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.4; color: var(--ink); }
.img-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--brand-100); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(28px, 4vw, 44px); }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--brand-100); margin: 0; }

/* ---------- Reveal on scroll (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media print {
  .site-header, .site-footer, .mobile-cta, .cta-band { display: none; }
  body { background: #fff; padding: 0; }
}

/* Contact: show the enquiry form first on small screens */
.contact-split { align-items: start; }
@media (max-width: 899px) { .contact-split > .form-card { order: -1; } }

/* ==========================================================================
   Cinematic layer
   ========================================================================== */
:root {
  --cine-ink: #0b0418;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain { position: absolute; inset: -50%; z-index: 2; pointer-events: none; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; animation: grain 1.2s steps(6) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---- Transparent header over dark tops ---- */
.dark-top main > :first-child { margin-top: calc(var(--header-h) * -1); }
.dark-top:not(.nav-open) .site-header:not(.is-scrolled) {
  background: linear-gradient(rgba(11, 4, 24, .55), rgba(11, 4, 24, 0));
  backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; box-shadow: none;
}
.dark-top:not(.nav-open) .site-header:not(.is-scrolled) .brand-name { color: #fff; }
.dark-top:not(.nav-open) .site-header:not(.is-scrolled) .brand-sub { color: rgba(255, 255, 255, .7); }
.dark-top:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.dark-top:not(.nav-open) .site-header:not(.is-scrolled) .header-cta { background: var(--accent); color: var(--brand-900); box-shadow: none; }
@media (min-width: 1080px) {
  .dark-top .site-header:not(.is-scrolled) .nav-link { color: rgba(255, 255, 255, .86); }
  .dark-top .site-header:not(.is-scrolled) .nav-link:hover,
  .dark-top .site-header:not(.is-scrolled) .nav-link.is-active { background: rgba(255, 255, 255, .12); color: #fff; }
  .dark-top .site-header:not(.is-scrolled) .menu-toggle { color: rgba(255, 255, 255, .8); }
}

/* ---- Home: cinematic hero ---- */
.cine-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--cine-ink); color: rgba(255, 255, 255, .85);
  padding-top: calc(var(--header-h) + 32px);
}
.cine-slides { position: absolute; inset: 0; z-index: 0; }
.cine-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; overflow: hidden; }
.cine-slide.is-active { opacity: 1; }
.cine-slide picture, .cine-slide img { width: 100%; height: 100%; }
.cine-slide img { object-fit: cover; transform: scale(1.12); transform-origin: 60% 40%; }
.cine-slide.is-active img { animation: kenburns 9s cubic-bezier(.25, .1, .25, 1) forwards; }
.cine-slide:nth-child(2) img { transform-origin: 30% 60%; }
.cine-slide:nth-child(3) img { transform-origin: 70% 70%; }
.cine-slide:nth-child(4) img { transform-origin: 40% 30%; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(0, 0, 0); } to { transform: scale(1.02) translate3d(-1.5%, -1%, 0); } }
.cine-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 4, 24, .55) 0%, rgba(11, 4, 24, .15) 30%, rgba(11, 4, 24, .55) 62%, rgba(11, 4, 24, .96) 100%),
    linear-gradient(90deg, rgba(26, 8, 56, .85) 0%, rgba(26, 8, 56, .35) 55%, rgba(26, 8, 56, .1) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.cine-content { position: relative; z-index: 3; padding-bottom: 28px; }
.cine-content .lead { color: rgba(255, 255, 255, .8); max-width: 640px; }
.cine-content .eyebrow { color: var(--accent); }
.cine-title { color: #fff; font-size: clamp(2.15rem, 5vw, 4.25rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: .4em; }
.cine-title em { font-style: italic; color: var(--accent); }
.cine-line { display: block; overflow: hidden; padding-bottom: .06em; }
.cine-line > span { display: inline-block; }
.cine-content .hero-trust { color: rgba(255, 255, 255, .78); }
.cine-content .hero-trust .icon { color: var(--accent); }
.cine-content .pill { display: flex; width: fit-content; max-width: 100%; }
.pill-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .88); box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill-dark:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.pill-dark .pill-dot { background: var(--accent); color: var(--brand-900); }

.js .cine-in { animation: cineIn 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
.js .cine-line > span { animation: lineUp 1.15s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes cineIn { from { opacity: 0; transform: translateY(22px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }

.cine-foot { position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.cine-chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; max-width: 760px; }
.cine-chapter { display: grid; gap: 8px; text-align: left; background: none; border: 0; padding: 6px 0; color: rgba(255, 255, 255, .55); cursor: pointer; font: inherit; }
.cine-chapter-num { font-family: var(--font-display); font-size: .9rem; letter-spacing: .08em; }
.cine-chapter-bar { height: 2px; background: rgba(255, 255, 255, .22); border-radius: 2px; overflow: hidden; }
.cine-chapter-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.cine-chapter.is-active { color: #fff; }
.cine-chapter.is-active .cine-chapter-bar span { animation: chapterFill var(--slide-ms, 7000ms) linear forwards; }
.cine-hero.is-paused .cine-chapter.is-active .cine-chapter-bar span { animation-play-state: paused; }
.cine-chapter-cap { font-size: .78rem; line-height: 1.3; display: none; }
@keyframes chapterFill { from { width: 0; } to { width: 100%; } }
@media (min-width: 900px) { .cine-chapter-cap { display: block; } }
.cine-scroll { display: none; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; position: relative; flex: none; }
.cine-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollCue 1.8s ease-in-out infinite; }
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 900px) { .cine-scroll { display: block; } }

/* Proof strip overlaps the hero edge like opening credits */
.is-home #glance { position: relative; z-index: 4; margin-top: -1px; background: linear-gradient(var(--cine-ink) 0, var(--cine-ink) 50%, var(--bg) 50%); padding-top: 8px; }
.is-home .proof { box-shadow: 0 30px 60px -30px rgba(11, 4, 24, .6); border: 1px solid rgba(255, 255, 255, .08); }

/* ---- Interlude band with parallax ---- */
.cine-band { position: relative; isolation: isolate; overflow: hidden; background: var(--cine-ink); color: rgba(255, 255, 255, .82); padding-block: clamp(110px, 18vw, 220px); }
.cine-band-media { position: absolute; inset: -18% 0; z-index: 0; will-change: transform; }
.cine-band-media picture, .cine-band-media img { width: 100%; height: 100%; object-fit: cover; }
.cine-band-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 4, 24, .92) 0%, rgba(26, 8, 56, .72) 50%, rgba(11, 4, 24, .55) 100%), radial-gradient(100% 100% at 50% 50%, transparent 50%, rgba(0, 0, 0, .5)); }
.cine-band-content { position: relative; z-index: 3; max-width: 900px; }
.cine-band h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.08; }
.cine-band h2 em { color: var(--accent); }
.cine-band .lead { color: rgba(255, 255, 255, .75); max-width: 560px; }
.cine-band .eyebrow { color: var(--accent); }

/* ---- Inner pages: dark title band ---- */
.dark-top .crumb-bar { background: var(--cine-ink); padding-top: var(--header-h); position: relative; z-index: 1; }
.dark-top .breadcrumbs ol { color: rgba(255, 255, 255, .55); }
.dark-top .breadcrumbs a { color: rgba(255, 255, 255, .75); }
.dark-top .breadcrumbs a:hover { color: #fff; }
.dark-top .breadcrumbs [aria-current] { color: #fff; }
.dark-top .breadcrumbs li + li::before { color: rgba(255, 255, 255, .3); }
.dark-top .page-hero {
  isolation: isolate; color: rgba(255, 255, 255, .8);
  background:
    radial-gradient(60% 80% at 85% 55%, rgba(90, 34, 184, .5), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(243, 128, 1, .16), transparent 70%),
    var(--cine-ink);
}
.dark-top .page-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: var(--grain); opacity: .06; mix-blend-mode: overlay; }
.dark-top .page-hero h1 { color: #fff; }
.dark-top .page-hero .lead { color: rgba(255, 255, 255, .76); }
.dark-top .page-hero .lead strong { color: #fff; }
.dark-top .page-hero .eyebrow { color: var(--accent); }
.dark-top .page-hero .meta-line { color: rgba(255, 255, 255, .6); }
.dark-top .page-hero .btn-outline { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); color: #fff; }
.dark-top .page-hero .btn-outline:hover { background: rgba(255, 255, 255, .14); }
.dark-top .page-hero .btn-primary { background: var(--accent); color: var(--brand-900); box-shadow: 0 10px 30px -10px rgba(243, 128, 1, .6); }
.dark-top .page-hero .kicker-list li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); }
.dark-top .page-hero .page-hero-media { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); margin-bottom: calc(clamp(40px, 6vw, 72px) * -1 - 40px); position: relative; z-index: 2; }
.dark-top .page-hero:has(.page-hero-media) + * { padding-top: calc(var(--section-y) + 40px); }
.js .page-hero h1, .js .page-hero .eyebrow, .js .page-hero .lead, .js .page-hero .page-hero-actions, .js .page-hero .meta-line, .js .page-hero .kicker-list { animation: cineIn 1s cubic-bezier(.2, .7, .2, 1) both; }
.js .page-hero h1 { animation-delay: .08s; }
.js .page-hero .lead { animation-delay: .18s; }
.js .page-hero .page-hero-actions, .js .page-hero .meta-line, .js .page-hero .kicker-list { animation-delay: .28s; }
.page-hero-media img { animation: settle 2.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes settle { from { transform: scale(1.1); filter: brightness(.6); } to { transform: none; filter: none; } }

/* Dark sections + CTA get grain too */
.section-dark, .cta-card, .proof { position: relative; isolation: isolate; }
.section-dark::before, .cta-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); opacity: .06; mix-blend-mode: overlay; z-index: 0; }
.section-dark > .container { position: relative; z-index: 1; }

/* Cinematic reveals */
.js .reveal { filter: blur(6px); }
.js .reveal.is-in { filter: none; }
.js .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js .wipe { clip-path: inset(10% 6% 10% 6% round var(--radius-lg)); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1); }
.js .wipe img { transform: scale(1.12); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.js .wipe.is-in { clip-path: inset(0 0 0 0 round 0); }
.js .wipe.is-in img { transform: none; }
.feature-project-media { overflow: hidden; }

/* Lightbox slideshow */
.lb-play { top: 12px; right: 72px; }
.lb-play .icon-pause { display: none; }
.lightbox.is-playing .lb-play .icon-play { display: none; }
.lightbox.is-playing .lb-play .icon-pause { display: block; }
.lightbox.is-playing img.kb { animation: kenburnsSoft 5s ease-out forwards; }
@keyframes kenburnsSoft { from { transform: scale(1); } to { transform: scale(1.06); } }
.lightbox figure { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .cine-slide img, .cine-slide.is-active img { animation: none; transform: none; }
  .js .reveal { filter: none; }
  .js .wipe { clip-path: none; }
  .js .wipe img { transform: none; }
  .cine-band-media { inset: 0; }
}
.dark-top .page-hero:has(.page-hero-media) { overflow: visible; overflow-x: clip; }
.gallery-item picture, .hero-photo picture, .hero-photo-2 picture, .leader-photo picture, .img-frame picture, .page-hero-media picture { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .js .cine-in, .js .cine-line > span, .js .page-hero h1, .js .page-hero .eyebrow, .js .page-hero .lead,
  .js .page-hero .page-hero-actions, .js .page-hero .meta-line, .js .page-hero .kicker-list, .page-hero-media img { animation: none !important; opacity: 1; transform: none; filter: none; }
}

/* ---- Mobile hero: poster layout (photo on top, copy below) ---- */
.show-sm { display: none; }
@media (max-width: 767px) {
  .show-sm { display: inline; }
  .hide-sm { display: none; }

  .cine-hero { min-height: 100svh; padding-top: 0; justify-content: flex-end; }
  .cine-slides { bottom: auto; height: 64svh; min-height: 380px; }
  .cine-slide img { object-position: 50% 30%; }
  .cine-shade {
    background:
      linear-gradient(180deg, rgba(11, 4, 24, .6) 0, rgba(11, 4, 24, 0) 16%, rgba(11, 4, 24, 0) 34%, rgba(11, 4, 24, .75) 50%, var(--cine-ink) 63%),
      linear-gradient(0deg, var(--cine-ink), var(--cine-ink));
    background-size: 100% 100%, 100% 0;
  }
  .cine-content { padding-bottom: 18px; }
  .cine-content .pill { font-size: .78rem; padding: 5px 12px 5px 5px; margin-bottom: 14px; }
  .cine-content .eyebrow { display: none; }
  .cine-title { font-size: clamp(2rem, 8.8vw, 2.6rem); line-height: 1.08; margin-bottom: .35em; text-wrap: balance; }
  .cine-line, .cine-line > span { display: inline; }
  .cine-line { overflow: visible; padding: 0; }
  .js .cine-line > span { animation: none; }
  .js .cine-title { animation: cineIn 1.1s cubic-bezier(.2, .7, .2, 1) .25s both; }
  .cine-content .lead { font-size: 1rem; line-height: 1.55; margin-bottom: 0; }
  .cine-content .hero-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; margin-top: 20px; }
  .cine-content .hero-actions .btn { min-height: 50px; padding: .65em .9em; font-size: .95rem; }
  .cine-content .hero-trust { display: none; }
  .cine-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .cine-chapters { gap: 6px; }
  .cine-chapter { padding: 8px 0; }
  .cine-chapter-num { display: none; }
}
@media (prefers-reduced-motion: reduce) { .js .cine-title { animation: none !important; } }
@media (max-width: 767px) {
  .cine-content .hero-actions { grid-template-columns: auto auto; }
  .cine-content .hero-actions .btn { white-space: nowrap; }
}
@media (max-width: 389px) {
  .cine-content .hero-actions .btn { font-size: .9rem; padding: .6em .75em; }
  .cine-content .hero-actions .btn .icon { display: none; }
}

/* Mobile menu open: a backdrop-filter on the header would trap the fixed drawer inside the header box */
.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; border-color: var(--line); }
.nav-open .primary-nav { z-index: 99; box-shadow: 0 24px 40px -20px rgba(22, 12, 44, .35); }
