/* ==========================================================================
   Pratham Modular — one stylesheet for every page.
   Mobile-first. Brand colours are custom properties on :root.
   ========================================================================== */

:root {
  /* Brand colours from the Pratham Modular logo */
  --ink: #221B5B;          /* deepest indigo: dark sections, footer */
  --brand: #403292;        /* logo indigo: text, links, buttons */
  --brand-mid: #33287A;    /* hover */
  --tint: #EEECF8;         /* light indigo tint */
  --tint-pale: #F7F6FC;    /* palest tint: alternate sections */
  --pink: #D3175F;
  --orange: #F37721;
  --teal: #00BEAF;
  --yellow: #FDAB02;
  --violet: #8330FE;
  --on-dark: #FFB27A;      /* accent text on dark indigo */
  --gradient: linear-gradient(90deg, #483f98 0%, #763292 20%, #c8197a 40%, #ec174c 60%, #ed3724 80%, #f37721 100%);
  --gradient-btn: linear-gradient(90deg, #403292 0%, #9a2384 55%, #e4194f 100%);
  --off-white: #FAF9F7;
  --white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text: #333333;
  --grey: #555555;
  --line: #E4E1F1;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(34, 27, 91, .06), 0 4px 16px rgba(34, 27, 91, .07);
  --shadow-lift: 0 2px 4px rgba(34, 27, 91, .08), 0 18px 44px rgba(34, 27, 91, .16);
  --nav-h: 72px;
  --container: 1240px;
  --gutter: 20px;
  --section: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 88px; --nav-h: 84px; }
}
@media (min-width: 1024px) {
  :root { --section: 112px; }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--text-dark); margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.bg-pale { background: var(--tint-pale); }

.bg-off { background: var(--off-white); }
.bg-dark { background: var(--ink); color: rgba(255, 255, 255, .85); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.grid { display: grid; gap: 24px; }
.grid-2, .grid-3, .grid-4, .grid-6 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  
  .split--center { align-items: center; }
  
}
.stack > * + * { margin-top: 16px; }
.text-center { text-align: center; }

.mb-0 { margin-bottom: 0; }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.bg-dark .eyebrow { color: var(--on-dark); }
.bg-dark .link-arrow { color: var(--on-dark); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--grey); font-size: 1.05rem; }
.bg-dark .section-head p { color: rgba(255, 255, 255, .75); }
.lead { font-size: 1.12rem; color: var(--grey); }
@media (min-width: 768px) { .lead { font-size: 1.2rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 .98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .25s var(--ease), color .25s var(--ease),
    border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-mid); color: #fff; box-shadow: 0 8px 20px rgba(64, 50, 146, .3); }
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--tint); color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--brand);
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span, .card:hover .link-arrow span { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(34, 27, 91, .06); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 1.2rem/1 var(--font-body); color: var(--ink); letter-spacing: -.01em; white-space: nowrap;
}
.logo:hover { color: var(--ink); }

.logo small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-top: 4px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links a, .nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px;
  font: 500 .95rem/1.2 var(--font-body); color: var(--text-dark); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav-links a:hover, .nav-drop-btn:hover { color: var(--brand); background: var(--tint-pale); }
.nav-links a.is-active, .nav-drop-btn.is-active { color: var(--brand); }
.nav-links a.is-active::after, .nav-drop-btn.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--brand); border-radius: 2px;
}
.nav-links .nav-cta { margin-left: 8px; }
.nav-links .nav-cta a { background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 999px; }
.nav-links .nav-cta a:hover { background: var(--brand-mid); color: #fff; }
.nav-links .nav-cta a.is-active::after { display: none; }
.nav-drop-btn svg { transition: transform .25s var(--ease); }
.has-drop.is-open .nav-drop-btn svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -12px; width: 330px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.has-drop:hover .dropdown, .has-drop.is-open .dropdown, .has-drop:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; width: 100%; }
.dropdown a.is-active::after { display: none; }
.dropdown a.is-active { background: var(--tint-pale); }
.dropdown .dd-icon { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--tint); color: var(--brand); display: grid; place-items: center; }
.dropdown .dd-icon svg { width: 20px; height: 20px; }
.dropdown strong { display: block; font-weight: 600; font-size: .93rem; }
.dropdown small { display: block; color: var(--grey); font-size: .8rem; font-weight: 400; margin-top: 2px; }
.dropdown .dd-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.dropdown .dd-all a { font-weight: 600; color: var(--brand); }
.nav-toggle {
  width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; position: relative; z-index: 120;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.menu-open .nav-toggle span { background: transparent; }
.menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1080px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--ink); color: #fff;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .site-header { background: var(--ink); border-bottom-color: transparent; }
.menu-open .site-header .logo { color: #fff; }
.menu-open .site-header .logo small { color: rgba(255, 255, 255, .6); }

.menu-open .nav-toggle { background: transparent; border-color: rgba(255, 255, 255, .3); }
.menu-open .nav-toggle span::before, .menu-open .nav-toggle span::after { background: #fff; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mobile-menu a { color: #fff; text-decoration: none; display: block; }
.mobile-menu nav > ul > li > a { font: 700 1.9rem/1.2 var(--font-head); padding: 16px 0; }
.mobile-menu a.is-active { color: var(--on-dark); }
.mobile-menu .m-sub { padding: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.mobile-menu .m-sub a { font-size: .95rem; padding: 6px 0; color: rgba(255, 255, 255, .75); }
.mobile-menu .m-sub a.is-active { color: var(--on-dark); }
.mobile-menu .btn { margin-top: 28px; width: 100%; }
.mobile-menu a.btn--light { color: var(--ink); }
@media (min-width: 1080px) { .mobile-menu { display: none; } }
.noscript-nav { padding: 12px var(--gutter); background: var(--tint-pale); font-size: .9rem; }
.noscript-nav a { margin-right: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .82);
  min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center; padding: 72px 0;
}
.hero::before {
  /* subtle geometric pattern: diagonal grid + panel lines, CSS only */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, .03) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .03) 50%, rgba(255, 255, 255, .03) 75%, transparent 75%);
  background-size: 64px 64px, 64px 64px, 128px 128px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 90%);
}
.hero::after {
  content: ""; position: absolute; right: -10vw; top: -20vh; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(64, 50, 146, .55) 0%, rgba(64, 50, 146, 0) 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffc4d8, #ffd2ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(255, 255, 255, .9); max-width: 640px; margin-bottom: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 48px; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--on-dark); }

/* Inner-page header */
.page-hero {
  position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .8);
  padding: 72px 0 64px;
}
@media (min-width: 768px) { .page-hero { padding: 104px 0 88px; } }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: rgba(255, 255, 255, .9); max-width: 720px; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero--image .hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero--image .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image .hero-bg--machine img { object-position: 72% center; } /* machine photo sits right of the text */
.page-hero--image .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(34, 27, 91, .94) 0%, rgba(34, 27, 91, .8) 45%, rgba(34, 27, 91, .35) 100%);
}
.breadcrumb { font-size: .875rem; margin-bottom: 18px; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Stats ---------- */
.stats { background: var(--tint); padding: 48px 0; }
.stat {
  background: #fff; border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow);
  border-top: 3px solid var(--brand);
}
.stat-num { font: 700 clamp(2.4rem, 5vw, 3.2rem)/1 var(--font-head); color: var(--ink); display: block; margin-bottom: 8px; }
.stat-label { color: var(--grey); font-size: .95rem; font-weight: 500; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column;
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card h3 { margin-top: 18px; }
.card p { color: var(--grey); font-size: .97rem; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.icon-box {
  width: 56px; height: 56px; border-radius: 12px; background: var(--tint); color: var(--brand);
  display: grid; place-items: center; transition: background .3s, color .3s;
}
.icon-box svg { width: 30px; height: 30px; }
.card--hover:hover .icon-box { background: var(--brand); color: #fff; }
.bg-pale .card { border-color: transparent; box-shadow: var(--shadow); }

/* Product card with image */
.pcard { padding: 0; overflow: hidden; }
.pcard .pcard-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.pcard .pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard .pcard-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.pcard h2, .pcard h3 { font-size: 1.45rem; margin: 0 0 10px; }
.pcard h2 { font-family: var(--font-head); font-weight: 700; }
.pcard .btn { margin-top: auto; align-self: flex-start; }

/* Sector tiles */

/* Tick list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks .tick {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; margin-top: 1px;
}
.ticks .tick svg { width: 16px; height: 16px; }
.value-panel { background: var(--tint-pale); border-radius: var(--radius-lg); padding: 32px; }
.value-panel .ticks li { font-weight: 500; color: var(--text-dark); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.value-panel .ticks li:last-child { border-bottom: 0; padding-bottom: 0; }
.bullets { list-style: none; padding: 0; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 26px; }
.bullets li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px;
  background: var(--brand); transform: rotate(45deg);
}

/* Image band / figures */
.figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); position: relative; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--wide { aspect-ratio: 16 / 9; }

.figure figcaption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(34, 27, 91, .85); color: #fff;
  font-size: .8rem; padding: 6px 10px; border-radius: 6px;
}

.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.photo-grid .figure { aspect-ratio: 4 / 3; background: #fff; }
.photo-grid .figure--contain img { object-fit: contain; padding: 12px; }

/* ---------- Process timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 32px 64px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--brand); color: var(--brand);
  font: 600 .9rem/1 var(--font-body); z-index: 1;
}
.step::after { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 { margin: 10px 0 6px; }
.step p { color: var(--grey); font-size: .95rem; margin: 0; }
.bg-pale .step::before { background: var(--tint-pale); }
@media (min-width: 1024px) {
  .steps--h { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .steps--h .step { padding: 64px 0 0; }
  .steps--h .step::after { left: 46px; right: -20px; top: 22px; bottom: auto; width: auto; height: 2px; }
  .steps--h .step:last-child::after { display: none; }
  .steps--h .step h3 { margin-top: 0; }
}
.bg-dark .step::before { background: var(--ink); border-color: var(--on-dark); color: var(--on-dark); }
.bg-dark .step::after { background: rgba(255, 255, 255, .15); }
.bg-dark .step p { color: rgba(255, 255, 255, .7); }

/* ---------- Marquee (pure CSS) ---------- */
.marquee { overflow: hidden; position: relative; padding: 8px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee-list li {
  white-space: nowrap; padding: 0 28px; font: 700 1.5rem/1.4 var(--font-head); color: var(--ink);
  display: flex; align-items: center; gap: 56px;
}
.marquee-list li::after { content: "·"; color: var(--brand); margin-left: 0; position: relative; left: 28px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .8);
  border-radius: 20px; padding: 56px 28px; text-align: center;
}
@media (min-width: 768px) { .cta-banner { padding: 80px 64px; } }
.cta-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-banner .btn-row { justify-content: center; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 600; color: var(--text-dark); line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg);
  transition: transform .25s var(--ease), margin .25s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { color: var(--brand); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--grey); }
.faq-item .faq-a p:last-child { margin-bottom: 0; }
.faq-item[open] { border-color: var(--brand); }

/* ---------- Content blocks ---------- */
.prose p { color: var(--text); }
.prose h3 { margin-top: 1.4em; }
.type-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .type-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.type-card { background: #fff; border-radius: var(--radius-lg); padding: 26px; border-left: 3px solid var(--brand); box-shadow: var(--shadow); }
.type-card h3 { margin: 0 0 8px; }
.type-card p { margin: 0; color: var(--grey); font-size: .96rem; }
.spec-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec-row { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .spec-row { grid-template-columns: 240px 1fr; gap: 32px; } }
.spec-row h3 { margin: 0; font-size: 1.02rem; }
.spec-row p { margin: 0; color: var(--grey); max-width: 68ch; }
.sector-block { display: grid; gap: 32px; padding: 56px 0; border-bottom: 1px solid var(--line); align-items: center; }
.sector-block:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .sector-block { grid-template-columns: 1fr 1fr; gap: 64px; padding: 80px 0; }
  .sector-block:nth-child(even) .sector-media { order: 2; }
}
.sector-media { aspect-ratio: 4 / 3; }
.client-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; padding: 0; list-style: none; }
.client-chips li { background: var(--tint); color: var(--ink); padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 500; }
.chips-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); margin: 20px 0 8px; }
.cert-card { text-align: left; }

.cert-card .cert-std { font-size: .8rem; color: var(--brand); font-weight: 600; letter-spacing: .04em; margin: 4px 0 10px; }
.principle { padding: 28px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.principle .num { font: 700 2.4rem/1 var(--font-head); color: var(--brand); display: block; margin-bottom: 12px; }
.principle h3 { margin-bottom: 8px; }
.principle p { margin: 0; color: var(--grey); }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 28px; scrollbar-width: thin; }
.filter-btn {
  flex: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: 500 .92rem/1 var(--font-body); color: var(--text-dark); cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-count { opacity: .7; margin-left: 4px; font-size: .82em; }
.project-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.project-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.project-card[hidden] { display: none; }
.project-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: flex-end; padding: 20px;
  background:
    linear-gradient(rgba(34, 27, 91, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(34, 27, 91, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(160deg, var(--tint-pale) 0%, var(--tint) 55%, #DCD8F0 100%);
}
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-media .pm-name { position: relative; font: 700 1.6rem/1.15 var(--font-head); color: var(--ink); max-width: 90%; }
.project-open {
  position: absolute; inset: 0; border: 0; cursor: pointer; background: rgba(34, 27, 91, 0);
  display: grid; place-items: center; color: #fff; font: 600 .95rem/1 var(--font-body); transition: background .3s;
}
.project-open span {
  padding: 12px 20px; border: 1.5px solid #fff; border-radius: 999px; opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .3s var(--ease);
}
.project-open:hover, .project-open:focus-visible { background: rgba(34, 27, 91, .78); }
.project-open:hover span, .project-open:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .project-open span { opacity: 1; transform: none; background: rgba(34, 27, 91, .8); } .project-open { place-items: end; padding: 16px; } }
.project-body { padding: 20px 22px 24px; }
.project-body h3 { margin: 0 0 8px; font-size: 1.1rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; font-size: .85rem; color: var(--grey); }
.project-body p { margin: 0; color: var(--grey); font-size: .93rem; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.badge--technology { background: #E3EEFB; color: #1D4F8C; }
.badge--banking { background: #FBF0DC; color: #7A5410; }
.badge--pharma { background: #F6E5EC; color: #8A2E55; }
.badge--manufacturing { background: #ECE9F7; color: #4B3C8F; }
.badge--government { background: #EEECF8; color: #403292; }
.badge--education { background: #E2F2F4; color: #146672; }
.badge--managed { background: #F2EEE6; color: #5C4E33; }
.empty-state { text-align: center; padding: 48px 20px; background: var(--tint-pale); border-radius: var(--radius-lg); color: var(--grey); }
.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-lift); }
.modal::backdrop { background: rgba(20, 15, 50, .6); backdrop-filter: blur(3px); }
.modal-media { aspect-ratio: 16 / 8; }
.modal-body { padding: 28px; }
.modal-body h2 { font-size: 1.9rem; margin-bottom: 10px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: var(--shadow); cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--text-dark); z-index: 2;
}
.modal dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 24px; font-size: .95rem; }
.modal dt { font-weight: 600; color: var(--text-dark); }
.modal dd { margin: 0; color: var(--grey); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form-grid { display: grid; gap: 18px; }
@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; color: var(--text-dark); margin-bottom: 6px; }
.field .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #D0CCE4; border-radius: 8px;
  font: 400 1rem/1.4 var(--font-body); color: var(--text-dark); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(64, 50, 146, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B3261E; }
.field .error-msg { display: none; color: #B3261E; font-size: .84rem; margin-top: 6px; }
.field.has-error .error-msg { display: block; }
.form-note { font-size: .85rem; color: var(--grey); margin: 14px 0 0; }
.thanks { text-align: center; padding: 24px 8px; }
.thanks .icon-box { margin: 0 auto 18px; background: var(--brand); color: #fff; width: 64px; height: 64px; border-radius: 50%; }
.thanks h2 { margin-bottom: 10px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon-box { width: 44px; height: 44px; flex: none; }
.contact-list .icon-box svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--text-dark); font-size: .9rem; }
.contact-list a, .contact-list span { color: var(--grey); text-decoration: none; }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #18124A; color: rgba(255, 255, 255, .7); padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; } }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: rgba(255, 255, 255, .55); }

.footer-tagline { margin: 18px 0 20px; max-width: 320px; }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--on-dark); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; }
.socials a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0 96px; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; font-size: .85rem; }
.site-footer .cert-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cert-row li { border: 1px solid rgba(255, 178, 122, .4); color: var(--on-dark); padding: 4px 10px; border-radius: 6px; font-size: .76rem; font-weight: 600; letter-spacing: .04em; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-list[aria-hidden="true"] { display: none; }
}

/* Hero text is never hidden before the animation (it must be readable immediately, even if scripts load slowly). */

.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: var(--brand); }
@media (min-width: 768px) { .footer-bottom { padding-bottom: 28px; } }

/* Home hero: photo on wide screens */

/* Very small phones: keep logo and menu button on one line */
@media (max-width: 400px) {
  .site-header .logo small { display: none; }
  .site-header .logo { font-size: 1.05rem; gap: 8px; }
  
}

/* ==========================================================================
   Brand refresh: logo, gradient accents and real photography
   ========================================================================== */

/* Logo images (header, footer, mobile menu) */
.logo img { display: block; height: 40px; width: auto; }
@media (min-width: 768px) { .logo img { height: 46px; } }
.logo .logo-rev { display: none; }
.menu-open .site-header .logo .logo-std { display: none; }
.menu-open .site-header .logo .logo-rev { display: block; }
.site-footer .logo img { height: 92px; }
@media (max-width: 400px) { .site-header .logo img { height: 34px; } }

/* Gradient accents */
/* The gradient starts at the outer edge (under the transparent border) and never repeats; otherwise its red end
   wraps round into the 2px left border as a thin red line. */
.btn--primary { background: var(--gradient-btn) 0 0 / 140% 100% no-repeat border-box; transition: background-position .4s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn--primary:hover { background: var(--gradient-btn) 100% 0 / 140% 100% no-repeat border-box; box-shadow: 0 10px 24px rgba(200, 25, 122, .28); }
.nav-links .nav-cta a { background: var(--gradient-btn); }
.nav-links .nav-cta a:hover { background: var(--gradient-btn); filter: brightness(1.08); }
.eyebrow { color: var(--pink); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--gradient); }
.bg-dark .eyebrow { color: var(--on-dark); }
.bg-dark .link-arrow { color: var(--on-dark); }
.hero .eyebrow, .page-hero .eyebrow { color: rgba(255, 255, 255, .9); }
.stat { border-top: 0; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient); }

/* Photo hero (home) */
.hero--photo { background: var(--ink); }
.hero--photo::before, .hero--photo::after { display: none; }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 18, 74, .88) 0%, rgba(34, 27, 91, .8) 50%, rgba(34, 27, 91, .2) 100%),
    linear-gradient(0deg, rgba(24, 18, 74, .45) 0%, rgba(24, 18, 74, 0) 35%);
}
@media (max-width: 767px) { .hero-photo::after { background: linear-gradient(180deg, rgba(24, 18, 74, .78) 0%, rgba(24, 18, 74, .9) 100%); } }
.hero--photo .container { position: relative; z-index: 1; }
.hero--photo h1 { max-width: 16ch; }
.hero-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--gradient); z-index: 2; }
.page-hero--image .hero-bg::after {
  background: linear-gradient(90deg, rgba(24, 18, 74, .93) 0%, rgba(34, 27, 91, .84) 50%, rgba(34, 27, 91, .35) 100%);
}
.page-hero { border-bottom: 5px solid transparent; border-image: var(--gradient) 1; }

/* Photo tiles (industries, gallery) */
.ptile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3;
  color: #fff; text-decoration: none; background: var(--ink); isolation: isolate;
}
.ptile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); z-index: -2; }
.ptile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(24, 18, 74, .15) 0%, rgba(24, 18, 74, .6) 45%, rgba(24, 18, 74, .92) 100%); transition: background .4s; }
.ptile:hover img { transform: scale(1.06); }
.ptile:hover::after { background: linear-gradient(180deg, rgba(24, 18, 74, .15) 0%, rgba(24, 18, 74, .94) 100%); }
.ptile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.ptile h3 { color: #fff; margin: 0 0 4px; font-size: 1.15rem; }
.ptile p { margin: 0; color: rgba(255, 255, 255, .9); font-size: .9375rem; }
.ptile .ptile-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(24, 18, 74, .72); padding: 4px 8px; border-radius: 5px; margin-bottom: 8px; }
.ptile:hover { color: #fff; }

/* Manufacturing steps with photos */
.msteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: mstep; }
@media (min-width: 640px) { .msteps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .msteps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.mstep { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); counter-increment: mstep; display: flex; flex-direction: column; }
.mstep-media { position: relative; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.mstep-media img { width: 100%; height: 100%; object-fit: cover; }
.mstep-media--contain img { object-fit: contain; padding: 14px; }
.mstep-media::before {
  content: counter(mstep, decimal-leading-zero); position: absolute; left: 14px; top: 14px; z-index: 1;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient-btn); color: #fff; font: 700 .85rem/1 var(--font-head); box-shadow: 0 6px 16px rgba(34, 27, 91, .25);
}
.mstep-body { padding: 20px 22px 24px; }
.mstep-body h3 { margin: 0 0 6px; }
.mstep-body p { margin: 0; color: var(--grey); font-size: .95rem; }

/* Gallery mosaic */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; } }
.gallery .ptile { aspect-ratio: auto; height: 100%; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery .ptile-body { padding: 16px; }
.gallery .ptile h3 { font-size: 1rem; }

/* CTA banner with photo */
.cta-banner--photo { background: var(--ink); }
.cta-banner--photo::before { display: none; }
.cta-bg { position: absolute !important; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(24, 18, 74, .94) 0%, rgba(64, 50, 146, .82) 55%, rgba(200, 25, 122, .7) 100%); }
.cta-banner--photo > *:not(.cta-bg) { position: relative; z-index: 1; }

/* Certification badges */
.cert-logo { height: 84px; width: auto; max-width: 100%; object-fit: contain; }
.cert-row img { height: 34px; width: auto; background: #fff; border-radius: 6px; padding: 3px; }

/* Product card: category label on the image */
.pcard-media { position: relative; }
.pcard-media .pcard-chip {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .94); color: var(--brand);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px;
}

/* Portfolio: real photo with name overlay */
.project-media.has-photo { padding: 0; }
.project-media.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 18, 74, 0) 45%, rgba(24, 18, 74, .82) 100%); }
.project-media.has-photo .pm-name { position: absolute; left: 20px; bottom: 18px; z-index: 1; color: #fff; font-size: 1.25rem; }

.site-footer .cert-row li { border: 0; padding: 0; }
.modal .project-media.has-photo .pm-name { display: none; }
.mobile-menu a.btn { display: flex; }
.project-media.has-photo::after { display: none; }
.h3-like { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; }
.hero--photo h1 { max-width: 22ch; }
.hero-link { margin: 16px 0 0; }
.hero-link a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; }
.hero-link a:hover { color: var(--on-dark); border-color: var(--on-dark); }

/* Review fixes: clearer dropdown, wrapping filters, WhatsApp clearance, contact form extras */
.dropdown { background: #fff; box-shadow: 0 20px 50px rgba(34, 27, 91, .22); }
.dropdown strong { font-size: .98rem; color: var(--text-dark); }
.dropdown small { font-size: .86rem; color: #4a4a4a; line-height: 1.4; }
.filter-bar { flex-wrap: wrap; overflow: visible; padding-bottom: 4px; }
@media (max-width: 480px) {
  .filter-btn { padding: 9px 14px; font-size: .86rem; }
  .wa-float { width: 50px; height: 50px; right: 12px; bottom: 12px; }
  .wa-float svg { width: 24px; height: 24px; }
  main > section:last-child { padding-bottom: 72px; }
}
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 20px; border: 0; padding: 0; margin: 0; }
.radio-row legend { font-weight: 600; font-size: .9rem; color: var(--text-dark); margin-bottom: 8px; padding: 0; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; margin: 0; cursor: pointer; }
.radio-row input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }
.privacy-note { font-size: .82rem; color: var(--grey); margin: 12px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; }
.size-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.size-table th { text-align: left; background: var(--tint); color: var(--brand); font-weight: 700; padding: 14px 18px; }
.size-table td { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--text); }
.size-table td:first-child { font-weight: 600; color: var(--text-dark); }
.form-submit { margin-top: 24px; }
.field .optional { font-weight: 400; color: var(--grey); }
.field input[type="file"] { padding: 10px; min-height: 0; background: var(--tint-pale); cursor: pointer; }
.field-hint { font-size: .82rem; color: var(--grey); margin: 6px 0 0; }
.form-error { margin: 20px 0 0; padding: 12px 14px; border-radius: 8px; background: #FDECEC; color: #8A1C1C; font-size: .92rem; }
.mt-48 { margin-top: 48px; }
.mt-18 { margin-top: 18px; }

/* Product type cards with a photo */
.type-card.has-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-left: 0; border-top: 3px solid var(--brand); }
.type-media { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.type-media img { width: 100%; height: 100%; }
.type-media--render img { object-fit: contain; padding: 14px; transition: transform .6s var(--ease); }
.type-media--photo img { object-fit: cover; transition: transform .8s var(--ease); }
.type-card.has-media:hover .type-media img { transform: scale(1.04); }
.type-body { padding: 20px 22px 24px; }
.type-body h3 { margin: 0 0 8px; }
.type-body p { margin: 0; color: var(--grey); font-size: .96rem; }

/* Social icons: filled brand marks */
.socials { display: flex; gap: 10px; }
.socials .social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: background .2s, color .2s, transform .2s; }
.site-footer .socials .social { background: rgba(255, 255, 255, .1); color: #fff; border: 0; }
.site-footer .socials .social:hover { transform: translateY(-2px); }
.social--linkedin:hover { background: #0A66C2 !important; color: #fff; }
.social--instagram:hover { background: #E1306C !important; color: #fff; }
.social--facebook:hover { background: #1877F2 !important; color: #fff; }
.socials--light .social { background: var(--tint); color: var(--brand); }

/* Downloads */
.download-card { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.download-thumb { flex: none; width: 96px; aspect-ratio: 1 / 1.41; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 16px rgba(34, 27, 91, .18); background: var(--tint); }
.download-thumb img { width: 100%; height: 100%; object-fit: cover; }
.download-card h3 { margin: 0 0 6px; }
.download-card p { margin: 0 0 12px; color: var(--grey); font-size: .93rem; }
.download-meta { font-size: .8rem; color: var(--grey); margin-left: 6px; }
@media (max-width: 480px) { .download-card { flex-direction: column; align-items: flex-start; } }
.download-thumb--wide { width: 150px; aspect-ratio: 16 / 9; }
.mb-24 { margin-bottom: 24px; }

/* Portfolio pop-up: project details */
.modal { width: min(720px, calc(100% - 32px)); }
.modal-body { padding: 28px 30px 30px; }
.mp-meta { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin: 0 0 6px; }
.modal-body h2 { margin-bottom: 18px; }
.mp-block { padding: 14px 0; border-top: 1px solid var(--line); }
.mp-block h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin: 0 0 6px; }
.mp-block p { margin: 0; color: var(--text); }
.mp-block .client-chips { margin: 0; }
.mp-block .client-chips a { color: inherit; text-decoration: none; }
.mp-block .client-chips a:hover { text-decoration: underline; }
.mp-note { font-size: .85rem; color: var(--grey); border-top: 1px solid var(--line); padding-top: 14px; margin: 0 0 18px; }

/* "Spaces We Furnish": one mild, shared colour treatment so photos from different sources sit together */
.gallery .ptile img { filter: saturate(.85) contrast(1.04) brightness(1.02) sepia(.06); }

/* Type cards: columns never grow past their share; long titles wrap inside the card */
@media (min-width: 700px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .type-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.type-card { min-width: 0; overflow: hidden; }
.type-card h3 { overflow-wrap: anywhere; line-height: 1.3; }
.type-tag { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; }

/* Step numbers are decoration: screen readers already announce the list position */
.step::before { content: counter(step, decimal-leading-zero) / ""; }
.mstep-media::before { content: counter(mstep, decimal-leading-zero) / ""; }
.step-phase { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin: 10px 0 2px; }
.bg-dark .step-phase { color: var(--on-dark); }
@media (min-width: 1024px) { .steps--h .step-phase { margin-top: 0; } }

/* ==========================================================================
   Visual review fixes (readability over photos, line breaks, phone layout)
   ========================================================================== */
/* Balanced line breaks: no single orphaned word at the end of a heading or paragraph */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* One highlighted phrase per header (product category or key idea) */
.page-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffc4d8, #ffd2ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nowrap { white-space: nowrap; }
/* Phones and tablets: text spans most of the width, so darken the header photo evenly from top to bottom */
@media (max-width: 1199px) {
  .page-hero--image .hero-bg::after { background: linear-gradient(180deg, rgba(24, 18, 74, .8) 0%, rgba(24, 18, 74, .9) 100%); }
  .hero-photo::after { background: linear-gradient(180deg, rgba(24, 18, 74, .8) 0%, rgba(24, 18, 74, .9) 100%); }
}
@media (max-width: 767px) {
}
@media (max-width: 480px) {
  .hero--photo { padding: 48px 0 40px; min-height: 0; }
  .hero--photo h1 { font-size: 1.75rem; }
  .hero--photo .lead { margin-bottom: 28px; }
  .hero-meta { display: none; } /* the same facts appear in the stats band directly below */
  .page-hero { padding: 56px 0 48px; }
  .hero .btn-row .btn, .page-hero .btn-row .btn { width: 100%; }
  /* small gallery tiles: the title already names the space, so drop the label instead of wrapping it */
  .gallery .ptile:not(.g-wide) .ptile-tag { display: none; }
}

/* About: leadership */
.leader-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .leader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.leader-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 20px; align-content: start; border-top: 3px solid var(--brand); }
/* Header row: photo beside name and role; the bio runs full width underneath */
.leader-card { grid-template-columns: 96px minmax(0, 1fr); column-gap: 20px; row-gap: 0; }
.leader-body { display: contents; }
.leader-photo { grid-column: 1; grid-row: 1 / span 2; margin: 0 0 20px; width: 96px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: var(--tint); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--tint); }
.leader-body h3 { grid-column: 2; grid-row: 1; align-self: end; }
.leader-role { grid-column: 2; grid-row: 2; align-self: start; }
.leader-body p:not(.leader-role) { grid-column: 1 / -1; }
@media (min-width: 600px) { .leader-card { grid-template-columns: 120px minmax(0, 1fr); column-gap: 24px; } .leader-photo { width: 120px; } }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.leader-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; margin: 0 0 4px; }
.leader-role { font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--pink); margin: 0 0 14px; }
.leader-body p:not(.leader-role) { color: var(--text); font-size: .97rem; }
.leader-body p:last-child { margin-bottom: 0; }
:target { scroll-margin-top: 100px; }
.client-chips a { color: inherit; text-decoration: none; }
.client-chips a:hover, .client-chips a:focus-visible { text-decoration: underline; }

/* Portfolio: text-led project cards (no photo yet). Cards and details are built from data/projects.json. */
.project-card--text { border-top: 4px solid transparent; border-image: var(--gradient) 1; border-image-width: 4px 0 0 0; }
.project-card--text .project-body { display: flex; flex-direction: column; height: 100%; padding: 24px 24px 22px; }
.project-card--text .project-body h3 { font-size: 1.2rem; }
.project-body > p { flex: 1; }
.badge--featured { background: var(--ink); color: #fff; }
.project-more { margin-top: 16px; }
.project-more > summary { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); cursor: pointer; list-style: none; }
.project-more > summary::-webkit-details-marker { display: none; }
.project-more > summary span { transition: transform .25s var(--ease); }
.project-more > summary:hover span, .project-more > summary:focus-visible span { transform: translateX(4px); }
.project-more[open] > summary span { transform: rotate(90deg); }
.project-more .project-details { margin-top: 10px; }
.mp-block h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin: 0 0 6px; }
.project-details .mp-block p { font-size: .93rem; }

.leader-close { margin: 32px auto 0; max-width: 72ch; text-align: center; font-size: 1.05rem; color: var(--text-dark); }
.form-intro { margin: 0 0 18px; color: var(--text-dark); font-weight: 500; }

/* Portfolio: client logo beside the client name. Every logo file is 360×144 on white, shown in the same 120×48 box. */
.client-id { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.client-id h3 { margin: 0; }
.client-logo { flex: 0 0 120px; width: 120px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.client-logo img { width: 100%; height: 100%; object-fit: contain; }
.client-logo--initials { background: var(--tint-pale); color: var(--brand); font: 700 1rem/1 var(--font-head); letter-spacing: .06em; }
@media (max-width: 380px) { .client-logo { flex-basis: 96px; width: 96px; height: 38px; } }
