/* NetOfficials redesign: corporate system.
   Modelled on the structure of established software companies (white and light-grey alternating sections,
   card grids, a strong single brand colour, a dark "why us" band and a large footer).
   Flat colour only: no gradients, glows or decorative imagery. */

:root {
  --brand: #3446c9;
  --brand-dark: #26359f;
  --brand-50: #eef1fd;
  --brand-100: #dfe4fb;
  --navy: #0f1638;
  --navy-2: #182152;
  --text: #1d2133;
  --text-2: #464b60;
  --muted: #6b7086;
  --line: #e3e6ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --green: #12a150;

  --radius: 8px;
  --radius-l: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 56, 0.06), 0 6px 18px rgba(16, 24, 56, 0.06);
  --shadow-h: 0 2px 4px rgba(16, 24, 56, 0.06), 0 14px 32px rgba(16, 24, 56, 0.12);

  --font: "Poppins", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--text); }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8fa0ff; outline-offset: 2px; border-radius: 4px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: 6px; border: 1.5px solid var(--brand); background: var(--brand); color: #fff; font: 500 15.5px/1.2 var(--font); cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; white-space: nowrap; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn svg { width: 16px; height: 16px; }
.btn--outline { background: transparent; color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--brand); }
.btn--white:hover { background: var(--brand-50); border-color: var(--brand-50); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--brand); }
.more-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.more-link:hover svg { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 104px); }
.section--alt { background: var(--bg-alt); }
.sec-head { max-width: 820px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.sec-head .eyebrow { display: block; font-size: 15px; font-weight: 500; color: var(--brand); margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 38px); }
.sec-head p { margin-top: 14px; color: var(--text-2); font-size: 16.5px; }
.sec-head--left { margin-left: 0; text-align: left; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow 0.2s; }
.site-header.is-stuck { box-shadow: 0 4px 18px rgba(16, 24, 56, 0.08); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo img { width: 168px; height: auto; }
.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; gap: 2px; }
.primary-nav > ul > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; background: none; border: 0; font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer; border-radius: 6px; transition: color 0.2s; }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--brand); }
.nav-link svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-30%); width: min(920px, 92vw); padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-h); display: none; grid-template-columns: repeat(4, 1fr) 1.1fr; gap: 24px; }
.mega.is-open { display: grid; }
.mega h3 { font-size: 14.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.mega h3 svg { width: 18px; height: 18px; color: var(--brand); }
.mega li a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--text-2); }
.mega li a:hover { color: var(--brand); }
.mega-card { background: var(--brand-50); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mega-card strong { font-size: 16px; font-weight: 600; }
.mega-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.mega-card .more-link { margin-top: auto; }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 0; text-align: center; }
.hero .eyebrow { display: inline-block; font-weight: 500; color: var(--brand); font-size: 16px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.2; max-width: 980px; margin: 14px auto 18px; }
.hero h1 span { color: var(--brand); }
.hero-lead { max-width: 760px; margin: 0 auto; font-size: clamp(16px, 1.4vw, 18px); color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }


/* ---------- Services grid ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s; }
.service:hover { box-shadow: var(--shadow-h); border-color: transparent; transform: translateY(-3px); }
.ico { width: 56px; height: 56px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; transition: background 0.25s, color 0.25s; }
.ico svg { width: 28px; height: 28px; }
.service:hover .ico { background: var(--brand); color: #fff; }
.service h3 { font-size: 20px; }
.service h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service p { color: var(--text-2); font-size: 15px; }
.service ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; position: relative; z-index: 1; }
.service ul a { display: inline-block; padding: 5px 12px; border-radius: 20px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); transition: all 0.2s; }
.service ul a:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.center { text-align: center; margin-top: 40px; }

/* ---------- Practice tabs ---------- */
.js .ptab-panel[hidden] { display: none; }
.js .ptab-panel + .ptab-panel { margin-top: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: 13.5px; background: #fff; }
.chip img { width: 16px; height: 16px; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.industry { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); transition: all 0.25s; }
.industry:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.industry .ico { width: 48px; height: 48px; border-radius: 10px; }
.industry .ico svg { width: 24px; height: 24px; }
.industry h3 { font-size: 17px; }
.industry h3 a::after { content: ""; position: absolute; inset: 0; }
.industry p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.industry--all { background: var(--brand); border-color: var(--brand); }
.industry--all h3, .industry--all p { color: #fff; }
.industry--all .ico { background: rgba(255, 255, 255, 0.16); color: #fff; }
.industry--all:hover { background: var(--brand-dark); }

/* ---------- Process ---------- */

/* ---------- Why us (dark band) ---------- */
.why { background: var(--navy); color: #fff; }
.why .sec-head h2 { color: #fff; }
.why .sec-head p { color: #b8bfdc; }
.why .sec-head .eyebrow { color: #9fb0ff; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-l); overflow: hidden; }
.why-item { background: var(--navy); padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: background 0.2s; }
.why-item:hover { background: var(--navy-2); }
.why-item .ico { background: rgba(159, 176, 255, 0.14); color: #b9c5ff; }
.why-item h3 { color: #fff; font-size: 19px; }
.why-item p { color: #b8bfdc; font-size: 15px; }
.why-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; }

/* ---------- Technologies ---------- */
.tech-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.tech-tabs button { padding: 10px 20px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.tech-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.tech-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tech-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tech-item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); font-size: 14.5px; font-weight: 500; transition: all 0.2s; }
.tech-item:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.tech-item img { width: 44px; height: 44px; }
.tech-item .txt { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-weight: 600; font-size: 13px; }

/* ---------- Engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.model { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); }
.model--featured { border: 2px solid var(--brand); position: relative; }
.model .badge { position: absolute; top: -13px; left: 32px; padding: 3px 12px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 500; }
.model h3 { font-size: 21px; }
.model > p { color: var(--text-2); font-size: 15px; }
.model ul { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.model li { display: flex; gap: 10px; font-size: 14.5px; }
.model li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 4px; }
.model .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Hire developers ---------- */
.hire { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hire .sec-head { margin: 0; }
.hire-points { display: grid; gap: 12px; margin: 26px 0 30px; }
.hire-points li { display: flex; gap: 10px; color: var(--text-2); }
.hire-points svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 500; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: 20px; font-weight: 500; transition: transform 0.2s; }
.faq details[open] summary::after { content: "−"; background: var(--brand); color: #fff; }
.faq details p { padding: 0 22px 20px; color: var(--text-2); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-box { display: grid; grid-template-columns: 0.9fr 1.1fr; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.contact-info { background: var(--brand); color: #fff; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.contact-info h2 { color: #fff; font-size: clamp(26px, 2.8vw, 34px); }
.contact-info > p { color: #dfe4ff; }
.contact-info ol { display: grid; gap: 16px; counter-reset: c; }
.contact-info ol li { counter-increment: c; display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.contact-info ol li::before { content: counter(c); width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: grid; place-items: center; font-weight: 600; }
.contact-info ol b { display: block; font-weight: 600; }
.contact-info ol span { color: #dfe4ff; font-size: 14.5px; }
.contact-mail { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.22); display: flex; align-items: center; gap: 12px; }
.contact-mail svg { width: 22px; height: 22px; }
.contact-mail a { font-weight: 500; }
.form { padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; }
.form h3 { font-size: 22px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--text-2); padding: 0; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid #cfd4e2; border-radius: 6px; background: #fff; font: 400 15.5px/1.4 var(--font); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field legend { margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.opts span { display: inline-block; padding: 8px 14px; border: 1px solid #cfd4e2; border-radius: 6px; font-size: 14px; transition: all 0.2s; }
.opts label:hover span { border-color: var(--brand); }
.opts input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.opts input:focus-visible + span { outline: 3px solid #8fa0ff; outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { font-weight: 500; color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b8bfdc; padding-top: clamp(56px, 7vw, 80px); font-size: 14.5px; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-cta h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); }
.footer-cta p { margin-top: 6px; }
.footer-cta div:last-child { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
.footer-brand .flogo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 20px; }
.footer-brand .flogo img { width: 34px; height: 34px; }
.footer-brand p { margin-top: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h2 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.footer-col li { padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 48px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13.5px; }
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header.menu-open .primary-nav { display: block; position: fixed; inset: 77px 0 0; background: #fff; padding: 12px var(--gutter) 32px; overflow-y: auto; }
  .site-header.menu-open .primary-nav > ul { flex-direction: column; }
  .site-header.menu-open .nav-link { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mega { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 12px 0; grid-template-columns: 1fr 1fr; }
  .mega-card { display: none; }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .services, .why-grid { grid-template-columns: 1fr 1fr; }
  .models { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .hire, .contact-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .logo img { width: 140px; }
  .services, .why-grid, .industries, .field-row { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr 1fr; }
  .industry p { display: none; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .mega { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.tech-grid + .tech-grid { margin-top: 16px; }
.js .tech-grid + .tech-grid { margin-top: 0; }

/* ---------- Refinements ---------- */
/* Utility bar */
.topbar { background: var(--navy); color: #c9cfe8; font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar p, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; color: #9fb0ff; }
.topbar ul { display: flex; gap: 24px; }
.topbar a:hover { color: #fff; }

/* Full-width mega menu anchored to the header */
.site-header .wrap { position: relative; }
.primary-nav > ul > li { position: static; }
.mega { left: 0; right: 0; top: calc(100% + 1px); transform: none; width: auto; border-radius: 0 0 var(--radius-l) var(--radius-l); border-top: 0; padding: 32px; grid-template-columns: repeat(4, 1fr) 1.15fr; column-gap: 32px; row-gap: 0; }
.mega h3 { margin-bottom: 2px; font-size: 15px; }
.mega h3 + p { white-space: nowrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mega li a { padding: 6px 0; }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mega-foot span a { color: var(--text); font-weight: 500; }
.mega-foot span a:hover { color: var(--brand); }
.nav-cta { display: none; }

/* Who we work with */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stage { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); border-top: 4px solid var(--brand-100); transition: box-shadow 0.25s, border-color 0.25s; }
.stage:hover { box-shadow: var(--shadow-h); border-top-color: var(--brand); }
.stage--mid { border-top-color: var(--brand); }
.stage-tag { align-self: flex-start; padding: 4px 12px; border-radius: 4px; background: var(--brand-50); color: var(--brand); font-size: 13px; font-weight: 500; }
.stage h3 { font-size: 21px; }
.stage > p { color: var(--text-2); font-size: 15px; }
.stage ul { display: grid; gap: 10px; padding: 16px 0; border-block: 1px solid var(--line); }
.stage li { display: flex; gap: 10px; font-size: 14.5px; }
.stage li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 4px; }
.stage .more-link { margin-top: auto; }

/* Global delivery */
.global { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.global .eyebrow { display: block; font-size: 15px; font-weight: 500; color: var(--brand); margin-bottom: 10px; }
.global h2 { font-size: clamp(28px, 3vw, 36px); }
.global > div > p { margin: 16px 0 28px; color: var(--text-2); }

/* Footer contact */
.footer-contact { display: grid; gap: 10px; margin-top: 20px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; color: #9fb0ff; }
.footer-contact a:hover { color: #fff; }

/* Menu toggle turns into a close icon */
.menu-toggle span { transition: transform 0.2s, opacity 0.2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .topbar { display: none; }
  .site-header.menu-open .primary-nav { inset: 77px 0 0; }
  .site-header.menu-open .nav-cta { display: flex; margin-top: 24px; width: 100%; }
  .mega { padding: 8px 0 16px; border-radius: 0; }
  .mega-foot { display: none; }
  .mega h3 + p { display: none; }
  .global { grid-template-columns: 1fr; }
}
/* The desktop mega menu rule above has the same specificity and comes later, so the phone layout is set again here. */
@media (max-width: 1100px) {
  .mega { grid-template-columns: 1fr 1fr; column-gap: 20px; }
}
@media (max-width: 640px) {
  .mega { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .stages { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
  .stage { padding: 24px; }
}

/* ---------- Hero panel: practices and key facts ---------- */
.hero-panel { margin-top: clamp(40px, 5vw, 60px); padding: clamp(18px, 2.4vw, 28px); background: var(--brand); border-radius: 20px; text-align: left; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillars a { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border-radius: var(--radius-l); transition: transform 0.25s, box-shadow 0.25s; }
.pillars a:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(10, 16, 60, 0.25); }
.pillars .ico { width: 52px; height: 52px; margin-bottom: 6px; }
.pillars a:hover .ico { background: var(--brand); color: #fff; }
.pillars strong { font-size: 17.5px; font-weight: 600; line-height: 1.3; }
.pillars .desc { font-size: 14px; color: var(--muted); line-height: 1.55; }
.pillars .go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--brand); }
.pillars .go svg { width: 15px; height: 15px; transition: transform 0.2s; }
.pillars a:hover .go svg { transform: translateX(4px); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(18px, 2.4vw, 28px); }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 6px 24px; border-left: 1px solid rgba(255, 255, 255, 0.25); }
.hero-stats div:first-child { border-left: 0; }
.hero-stats dt { font-size: 14px; color: #d6dcff; }
.hero-stats dd { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; color: #fff; line-height: 1.15; }

/* ---------- Practice tabs ---------- */
.ptabs { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: stretch; }
.ptab-list { display: grid; gap: 12px; grid-auto-rows: 1fr; }
.ptab-list button { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); text-align: left; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; position: relative; }
.ptab-list button:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.ptab-list .ico { width: 48px; height: 48px; border-radius: 10px; }
.ptab-list .ico svg { width: 24px; height: 24px; }
.ptab-list .tl strong { display: block; font-size: 16.5px; font-weight: 600; color: var(--text); }
.ptab-list .tl span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.ptab-list button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); box-shadow: 0 10px 24px rgba(52, 70, 201, 0.25); }
.ptab-list button[aria-selected="true"] .ico { background: rgba(255, 255, 255, 0.16); color: #fff; }
.ptab-list button[aria-selected="true"] .tl strong { color: #fff; }
.ptab-list button[aria-selected="true"] .tl span { color: #d6dcff; }
.ptab-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.js .ptab-panel[hidden] { display: none; }
.ptab-panel + .ptab-panel { margin-top: 16px; }
.js .ptab-panel + .ptab-panel { margin-top: 0; }
.ptab-head { display: flex; align-items: center; gap: 16px; }
.ptab-head .ico { width: 56px; height: 56px; background: var(--brand); color: #fff; }
.ptab-panel h3 { font-size: clamp(22px, 2.2vw, 28px); }
.ptab-panel > p { margin-top: 16px; color: var(--text-2); max-width: 64ch; }
.ptab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 22px 0 26px; }
.ptab-grid a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: color 0.2s; }
.ptab-grid .tx strong { display: block; font-weight: 600; font-size: 16px; color: var(--text); transition: color 0.2s; }
.ptab-grid .tx span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.ptab-grid a > svg { width: 18px; height: 18px; color: var(--brand); flex: none; transition: transform 0.2s; }
.ptab-grid a:hover .tx strong { color: var(--brand); }
.ptab-grid a:hover > svg { transform: translateX(4px); }
.ptab-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 18px 20px; background: var(--bg-alt); border-radius: var(--radius); }
.ptab-foot .stack-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; }

/* ---------- Process timeline ---------- */
.timeline { --gap: 32px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.timeline::before { content: ""; position: absolute; top: 27px; left: 28px; right: calc((100% - 3 * var(--gap)) / 4 - 28px); height: 2px; background: var(--brand-100); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.timeline .node { position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 0 0 8px #fff; margin-bottom: 14px; }
.timeline h3 { font-size: 19px; }
.timeline p { color: var(--text-2); font-size: 15px; }
.timeline .out { margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.timeline .out svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #e3f6ea; color: var(--green); }

/* ---------- Hire developer cards ---------- */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.roles a { height: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); transition: border-color 0.2s, box-shadow 0.2s; }
.roles a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.roles .ico { width: 48px; height: 48px; border-radius: 10px; }
.roles .ico svg { width: 24px; height: 24px; }
.roles a:hover .ico { background: var(--brand); color: #fff; }
.roles .tx strong { display: block; font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.35; }
.roles .tx span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Global delivery cards ---------- */
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.regions a { height: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); transition: border-color 0.2s, box-shadow 0.2s; }
.regions a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.regions .code { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-weight: 600; font-size: 15px; letter-spacing: 0.04em; transition: background 0.2s, color 0.2s; }
.regions a:hover .code { background: var(--brand); color: #fff; }
.regions .tx { flex: 1; }
.regions .tx strong { display: block; font-size: 16px; font-weight: 600; color: var(--text); }
.regions .tx span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.regions a > svg { width: 18px; height: 18px; color: var(--brand); flex: none; transition: transform 0.2s; }
.regions a:hover > svg { transform: translateX(4px); }

@media (max-width: 1100px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .ptabs { grid-template-columns: 300px 1fr; }
}
@media (max-width: 900px) {
  .ptabs { grid-template-columns: 1fr; }
  .ptab-list { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .hero-stats div:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .pillars, .ptab-list, .ptab-grid, .roles, .regions, .timeline { grid-template-columns: 1fr; }
  .hero-stats div { padding: 6px 14px; }
  .ptab-foot { flex-direction: column; align-items: flex-start; }
}
.regions .tx span { white-space: nowrap; }

/* ================= Service and pillar pages ================= */
.section--tight { padding-block: clamp(48px, 6vw, 72px); }




/* Service grid with filters */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.filters button { padding: 10px 18px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.filters button:hover { border-color: var(--brand); color: var(--brand); }
.filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s; }
.svc:hover { box-shadow: var(--shadow-h); border-color: transparent; transform: translateY(-3px); }
.svc:hover .ico { background: var(--brand); color: #fff; }
.svc .tag { align-self: flex-start; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--brand); background: var(--brand-50); padding: 2px 10px; border-radius: 4px; }
.svc h3 { font-size: 18.5px; }
.svc p { font-size: 14.5px; color: var(--text-2); }
.svc .go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--brand); }
.svc .go svg { width: 15px; height: 15px; transition: transform 0.2s; }
.svc:hover .go svg { transform: translateX(4px); }

/* Custom vs off-the-shelf */
.compare-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.compare-wrap .eyebrow { display: block; color: var(--brand); font-weight: 500; margin-bottom: 10px; }
.compare-wrap h2 { font-size: clamp(28px, 3vw, 36px); }
.compare-wrap > div > p { margin-top: 14px; color: var(--text-2); }
.compare-wrap h3 { font-size: 17px; margin: 26px 0 12px; }
.signs { display: grid; gap: 10px; }
.signs li { display: flex; gap: 10px; color: var(--text-2); }
.signs svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 4px; }
.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--navy); color: #fff; font-weight: 500; font-size: 14.5px; }
.cmp thead th:nth-child(2) { background: var(--brand); }
.cmp tbody th { font-weight: 500; color: var(--text); width: 30%; }
.cmp tbody td { color: var(--text-2); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody td:nth-child(2) { background: #fafbff; }
.cmp .yes { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.cmp .yes::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #e3f6ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a150' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Technology items as links */
a.tech-item { height: 100%; }

/* Industry chips */
.ind-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ind-chips a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; transition: border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.ind-chips svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.ind-chips a:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow); }
.ind-chips a.all { background: var(--brand); border-color: var(--brand); color: #fff; }
.ind-chips a.all svg { color: #fff; }
.ind-chips a.all:hover { background: var(--brand-dark); }

/* Related practices */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { height: 100%; display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); transition: border-color 0.2s, box-shadow 0.2s; }
.related a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.related a:hover .ico { background: var(--brand); color: #fff; }
.related .ico { width: 48px; height: 48px; border-radius: 10px; }
.related .ico svg { width: 24px; height: 24px; }
.related .tx { flex: 1; }
.related .tx strong { display: block; font-size: 16px; font-weight: 600; color: var(--text); }
.related .tx span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.related a > svg { width: 18px; height: 18px; color: var(--brand); flex: none; transition: transform 0.2s; }
.related a:hover > svg { transform: translateX(4px); }


@media (max-width: 1100px) {
  .svc-grid, .related { grid-template-columns: 1fr 1fr; }
  .ind-chips { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .compare-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .svc-grid, .related { grid-template-columns: 1fr; }
  .ind-chips { grid-template-columns: 1fr 1fr; }
  .cmp th, .cmp td { padding: 12px; font-size: 13.5px; }
}

/* ---------- Sub-navigation strip (pillar pages) ---------- */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.subnav a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- Dark page hero: copy on navy, photo on the right, facts band below ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: #aab3d8; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #69739f; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }
.phero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.15; }
.phero-sub { margin-top: 16px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; color: #c9d2ff; }
.phero-lead { margin-top: 16px; font-size: 16.5px; color: #d3d8ee; max-width: 64ch; }
.phero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.phero-ctas .btn svg { width: 16px; height: 16px; }
.phero-link { font-weight: 500; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.5); padding-bottom: 2px; }
.phero-link:hover { border-color: #fff; }
.phero-stats dd { white-space: nowrap; font-size: clamp(19px, 1.9vw, 24px); font-weight: 600; color: #fff; line-height: 1.2; }
.phero-stats dt { font-size: 13.5px; color: #aab3d8; }

/* ---------- Tech stack criteria ---------- */
.criteria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.criteria li { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--bg-alt); border-radius: var(--radius-l); border-top: 3px solid var(--brand); }
.criteria h3 { font-size: 19px; }
.criteria p { color: var(--text-2); font-size: 15px; }
.tech-sub { text-align: center; font-size: 18px; margin-bottom: 18px; }

@media (max-width: 900px) {
  .phero-stats { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .criteria { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .phero-ctas { flex-direction: column; align-items: stretch; }
  .phero-ctas .btn { width: 100%; }
  .phero-link { align-self: center; }
  .phero-stats div { padding: 0 14px; }
}

.phero { color: #fff; background: var(--navy); }
.phero-main { position: relative; padding: clamp(28px, 3vw, 40px) 0 clamp(48px, 6vw, 80px); }
.phero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; height: 100%; object-fit: cover; object-position: center; }
.phero-copy { max-width: min(640px, 52%); padding-top: clamp(32px, 4vw, 52px); }
.phero-band { background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.phero-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 0; }
.phero-stats div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 0 24px; border-left: 3px solid var(--brand); }
.crumbs { max-width: 52%; }

@media (max-width: 900px) {
  .phero-main { padding-bottom: 0; display: flex; flex-direction: column; }
  .phero-photo { order: 2; }
  .phero-copy, .crumbs { max-width: none; }
  .phero-photo { position: static; width: 100%; height: 260px; margin-top: 36px; }
  .phero-stats { grid-template-columns: 1fr 1fr; row-gap: 22px; }
}
@media (max-width: 640px) {
  .phero-stats div { padding: 0 14px; }
}

/* Service cards without their own page yet */
.svc--static { cursor: default; }
.svc--static:hover { box-shadow: none; border-color: var(--line); transform: none; }
.svc--static:hover .ico { background: var(--brand-50); color: var(--brand); }

/* Comparison table: fit narrow screens */
.table-card { overflow-x: auto; }
@media (max-width: 640px) {
  .cmp { table-layout: fixed; }
  .cmp th, .cmp td { overflow-wrap: anywhere; hyphens: auto; font-size: 13px; }
  .cmp tbody th { width: auto; }
}

/* ================= Service pages ================= */
/* Five-step timeline */
.timeline--5 { --gap: 24px; grid-template-columns: repeat(5, 1fr); }
.timeline--5::before { right: calc((100% - 4 * var(--gap)) / 5 - 28px); }
.timeline--5 h3 { font-size: 17.5px; }
.timeline--5 p { font-size: 14.5px; }
@media (max-width: 1100px) {
  .timeline--5 { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline--5::before { display: none; }
}
@media (max-width: 900px) { .timeline--5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .timeline--5 { grid-template-columns: 1fr; } }

/* Feature cards that are not links */
.services--static .service:hover { box-shadow: none; border-color: var(--line); transform: none; }
.services--static .service:hover .ico { background: var(--brand-50); color: var(--brand); }

/* Cards inside a grey section need a white face to stand out */
.section--alt .criteria li { background: #fff; }

.inline-link { color: var(--brand); font-weight: 500; border-bottom: 1px solid currentColor; }
.inline-link:hover { color: var(--brand-dark); }

/* Current item in the sub-navigation */
.subnav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

/* Tech tiles must be able to shrink inside narrow grids */
.tech-grid > li { min-width: 0; }
.tech-item { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .tech-item { padding: 18px 6px; font-size: 13.5px; text-align: center; } }

/* ---------- Company pages ---------- */
.criteria--flush { margin-bottom: 0; }
.criteria .q { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
@media (max-width: 960px) { .criteria--flush { grid-template-columns: 1fr; } }

/* ---------- Wide comparison and FAQ categories ---------- */
.cmp--wide thead th:nth-child(2) { background: var(--navy); }
.cmp--wide tbody td:nth-child(2) { background: transparent; }
.cmp--wide tbody th { width: 22%; }
.models--detail .model ul { margin-bottom: 20px; }
.faq-cat { scroll-margin-top: 120px; }
.faq-cat + .faq-cat { margin-top: 56px; }
.faq-cat h2 { font-size: clamp(24px, 2.6vw, 30px); max-width: 900px; margin: 0 auto 18px; }

/* ---------- Services directory search and 404 ---------- */
.dir-search { max-width: 520px; margin: 0 auto 24px; }
.dir-search label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.dir-search input { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.dir-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.dir-empty { text-align: center; color: var(--text-2); margin-top: 24px; }
.nf { padding: clamp(64px, 10vw, 120px) 0; text-align: center; }
.nf .code { font-size: clamp(72px, 14vw, 140px); font-weight: 600; line-height: 1; color: var(--brand); }
.nf h1 { font-size: clamp(28px, 4vw, 40px); margin: 12px 0; }
.nf p { max-width: 560px; margin: 0 auto 28px; color: var(--text-2); }

/* ---------- Blog ---------- */
.phead { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 32px 0 48px; }
.bcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.bcrumbs li + li::before { content: "/"; margin-right: 6px; color: #b3b8c9; }
.bcrumbs a:hover { color: var(--brand); }
.bcrumbs [aria-current] { color: var(--text); }
.phead .eyebrow { display: block; color: var(--brand); font-weight: 500; margin-bottom: 10px; }
.phead h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.15; max-width: 22ch; }
.phead .lead { margin-top: 16px; max-width: 62ch; color: var(--text-2); font-size: 17px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.post-meta .tag { color: var(--brand); background: var(--brand-50); padding: 2px 10px; border-radius: 4px; font-weight: 500; }
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.featured-art { background: var(--navy); color: #fff; display: grid; place-items: center; padding: 40px; min-height: 260px; }
.featured-art svg { width: 84px; height: 84px; color: #8fa0ff; }
.featured-body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.featured-body h2 { font-size: clamp(22px, 2.4vw, 30px); }
.featured-body p { color: var(--text-2); }
.featured-body .tag { align-self: flex-start; font-size: 12px; font-weight: 500; color: var(--brand); background: var(--brand-50); padding: 2px 10px; border-radius: 4px; }
.news { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--navy); color: #fff; border-radius: var(--radius-l); padding: clamp(24px, 4vw, 44px); }
.news h2 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); }
.news p { color: #c9d2ff; margin-top: 6px; }
.news form { display: flex; gap: 10px; flex-wrap: wrap; }
.news input { padding: 13px 16px; border-radius: 8px; border: 0; min-width: 260px; font: inherit; }
.news .form-status { color: #c9d2ff; font-size: 14px; flex-basis: 100%; }
.post-wrap { display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: clamp(32px, 5vw, 64px); justify-content: center; align-items: start; padding: 48px 0 64px; }
.toc { position: sticky; top: 96px; border-left: 2px solid var(--line); padding-left: 18px; font-size: 14.5px; }
.toc h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.toc ol { display: grid; gap: 8px; list-style: none; padding: 0; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--brand); }
.answer { background: var(--brand-50); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin-bottom: 36px; }
.answer h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 6px; }
.answer p { color: var(--text); font-size: 17px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 44px 0 14px; scroll-margin-top: 100px; }
.prose p { margin-bottom: 16px; color: var(--text-2); font-size: 17px; }
.prose ul { margin: 0 0 20px 22px; list-style: disc; color: var(--text-2); font-size: 17px; }
.prose li { margin-bottom: 8px; }
.prose .table-card { margin: 8px 0 24px; }
.callout { background: #fffaf0; border: 1px solid #f3e2b8; border-radius: var(--radius); padding: 16px 20px; margin: 8px 0 24px; }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 16px; }
.inline-cta { background: var(--navy); color: #fff; border-radius: var(--radius-l); padding: 28px; margin: 40px 0; }
.inline-cta h2 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.inline-cta p { color: #c9d2ff; margin-bottom: 18px; }
.author { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; }
.author img { width: 52px; height: 52px; }
.author p { margin: 0; font-size: 15px; }
.author strong { display: block; }
@media (max-width: 960px) {
  .post-wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; order: -1; }
  .featured { grid-template-columns: 1fr; }
  .featured-art { min-height: 160px; }
  .news { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .news input { min-width: 0; width: 100%; } }

/* ---------- Legal pages ---------- */
.draftnote { background: #fff7e6; border: 1px solid #f3dca0; border-radius: var(--radius); padding: 14px 18px; margin-top: 32px; font-size: 15px; color: #5c4a14; }
.legal .post-wrap { padding-top: 32px; }
.legal .prose h2:first-child { margin-top: 0; }
.toc ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.toc .toc-gap { margin-top: 24px; }

/* ---------- Case studies ---------- */
.snapshot { display: grid; gap: 12px; }
.snapshot div { display: grid; gap: 2px; }
.snapshot dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.snapshot dd { margin: 0; color: var(--text); font-size: 15px; }
.service .src { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pullquote { max-width: 760px; margin: 0 auto; text-align: center; }
.pullquote blockquote p { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; font-weight: 500; }
.pullquote figcaption { margin-top: 14px; color: var(--muted); }

/* ---------- Founder page ---------- */
.founder-head { display: flex; gap: 24px; align-items: center; }
.founder-head .lead { margin-top: 12px; }
.monogram { flex: none; width: 96px; height: 96px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 600; letter-spacing: .02em; }
@media (max-width: 560px) { .founder-head { flex-direction: column; align-items: flex-start; } .monogram { width: 72px; height: 72px; font-size: 26px; } }

/* Consent checkbox injected into enquiry forms (no inline styles in markup) */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 18px 0; }
.consent input { width: 20px; height: 20px; flex: none; }

/* Compact footer on phones: two short link columns, Industries and Locations as wrapped rows, no brand blurb. */
@media (max-width: 640px) {
  .site-footer { padding-top: 40px; }
  .footer-cta { padding-bottom: 28px; margin-bottom: 32px; gap: 16px; }
  .footer-grid { gap: 24px 16px; }
  .footer-brand p { display: none; }
  .footer-contact { margin-top: 12px; }
  .footer-col h2 { margin-bottom: 6px; }
  .footer-col li { padding: 0; }
  .footer-col li a { display: block; padding: 4px 0; line-height: 1.4; }
  .footer-contact li { line-height: 1.4; }
  .footer-col[aria-labelledby="fc-ind"], .footer-col[aria-labelledby="fc-company"], .footer-col[aria-labelledby="fc-loc"] { grid-column: 1 / -1; }
  .footer-col[aria-labelledby="fc-ind"] ul, .footer-col[aria-labelledby="fc-company"] ul, .footer-col[aria-labelledby="fc-loc"] ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .footer-bottom { margin-top: 28px; padding: 18px 0; }
  .footer-bottom a, .footer-contact a { display: inline-block; padding: 4px 0; }
}
